@lovrabet/rabetbase-cli 2.1.2-beta.3 → 2.1.2

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 (161) 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/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.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/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -1
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +1 -1
@@ -1 +1 @@
1
- const a22_0x10bcfa=a22_0x244e;(function(_0x4b63c7,_0x23d924){const _0x51ddc6=a22_0x244e,_0xb7fe17=_0x4b63c7();while(!![]){try{const _0x4daa91=-parseInt(_0x51ddc6(0x1f0))/0x1*(-parseInt(_0x51ddc6(0x1e8))/0x2)+parseInt(_0x51ddc6(0x1ef))/0x3+-parseInt(_0x51ddc6(0x1db))/0x4+parseInt(_0x51ddc6(0x1ed))/0x5*(parseInt(_0x51ddc6(0x1e3))/0x6)+parseInt(_0x51ddc6(0x1ec))/0x7*(parseInt(_0x51ddc6(0x1e5))/0x8)+-parseInt(_0x51ddc6(0x1d8))/0x9+parseInt(_0x51ddc6(0x1dd))/0xa*(-parseInt(_0x51ddc6(0x1e7))/0xb);if(_0x4daa91===_0x23d924)break;else _0xb7fe17['push'](_0xb7fe17['shift']());}catch(_0x46976b){_0xb7fe17['push'](_0xb7fe17['shift']());}}}(a22_0x2798,0x3c5a2));import{logger}from'../utils/logger.js';function a22_0x244e(_0x5b64d1,_0x51fb1c){_0x5b64d1=_0x5b64d1-0x1d1;const _0x2798e9=a22_0x2798();let _0x244e95=_0x2798e9[_0x5b64d1];return _0x244e95;}import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x6d7c80){const _0x2aa4ed=a22_0x244e,_0x40febd=[];for(const [_0x5e739c,_0x5da88f]of Object[_0x2aa4ed(0x1de)](_0x6d7c80)){if(_0x5da88f===!![]){const _0x4c2823=_0x5e739c[_0x2aa4ed(0x1d6)](/([A-Z])/g,'-$1')['toLowerCase']();_0x40febd[_0x2aa4ed(0x1d4)](_0x4c2823);}}return _0x40febd;}export function parseDynamicFlags(){const _0xf1fc62=a22_0x244e,_0x3dd9ab=[];for(let _0x5457c3=0x3;_0x5457c3<process[_0xf1fc62(0x1e0)][_0xf1fc62(0x1da)];_0x5457c3++){const _0x3956c7=process['argv'][_0x5457c3];if(_0x3956c7&&_0x3956c7[_0xf1fc62(0x1f2)]('--')){const _0x17fa22=_0x3956c7['slice'](0x2);_0x17fa22&&!_0x17fa22[_0xf1fc62(0x1ea)]('=')&&_0x3dd9ab[_0xf1fc62(0x1d4)](_0x17fa22);}}return _0x3dd9ab;}export function getAllProvidedFlags(_0x353ce8){const _0x277f59=a22_0x244e,_0x2fadc3=camelCaseFlagsToKebab(_0x353ce8),_0x147da2=parseDynamicFlags(),_0x445407=new Set([..._0x2fadc3,..._0x147da2]);return Array[_0x277f59(0x1e4)](_0x445407);}export function normalizeLegacyBffSaveFlags(_0x29030c){const _0x1f5ade=a22_0x244e,_0x502c06=new Set(_0x29030c);return _0x502c06[_0x1f5ade(0x1d2)]('dangerously-bff-save')&&_0x502c06[_0x1f5ade(0x1d1)](_0x1f5ade(0x1ee)),Array[_0x1f5ade(0x1e4)](_0x502c06);}const SKILLS_INSTALL_COMMAND_LINE=a22_0x10bcfa(0x1d7);export async function skillsCommand(_0xb53a42,_0x2e5dae,_0x1b63e5){const _0x41994e=a22_0x10bcfa;logger[_0x41994e(0x1dc)](process[_0x41994e(0x1d5)]());if(_0x1b63e5?.[_0x41994e(0x1e9)]||_0xb53a42===_0x41994e(0x1d9)){showHelp();return;}console[_0x41994e(0x1f4)](_0x41994e(0x1df)+(_0xb53a42||_0x41994e(0x1e1))),console[_0x41994e(0x1f1)]('\x0aAvailable\x20commands:'),console[_0x41994e(0x1f1)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x41994e(0x1f1)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console['log'](''),console[_0x41994e(0x1f1)](_0x41994e(0x1eb)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x41994e(0x1f4)](_0x41994e(0x1f3),'不支持的命令:\x20'+_0xb53a42),process[_0x41994e(0x1d3)](0x1);}function showHelp(){const _0x2bb0d2=a22_0x10bcfa;console[_0x2bb0d2(0x1f1)](_0x2bb0d2(0x1e2)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x2bb0d2(0x1e6));}function a22_0x2798(){const _0x34eea3=['428700KbhgZM','42117aHvtly','log','startsWith','skill','error','add','has','exit','push','cwd','replace','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','2938644uGHKjH','--help','length','56576edLPSC','setLogPath','50Sqzpwk','entries','Error:\x20Unsupported\x20command:\x20','argv','(empty)','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','414oCVPaW','from','336QYozCt','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','429979JyoyGi','2iAOQuq','help','includes','Equivalent\x20command:\x20','53830eEpddL','19950lqLKMD','enable-bff-save'];a22_0x2798=function(){return _0x34eea3;};return a22_0x2798();}
1
+ (function(_0xfc2280,_0x4ef028){const _0x1a83d4=a22_0x2d11,_0x1d3df9=_0xfc2280();while(!![]){try{const _0x7e9c80=-parseInt(_0x1a83d4(0x9f))/0x1*(-parseInt(_0x1a83d4(0x9c))/0x2)+-parseInt(_0x1a83d4(0xa0))/0x3*(parseInt(_0x1a83d4(0x98))/0x4)+parseInt(_0x1a83d4(0x9b))/0x5+parseInt(_0x1a83d4(0xaa))/0x6+-parseInt(_0x1a83d4(0x95))/0x7+-parseInt(_0x1a83d4(0x94))/0x8*(-parseInt(_0x1a83d4(0xa8))/0x9)+-parseInt(_0x1a83d4(0x90))/0xa*(-parseInt(_0x1a83d4(0x99))/0xb);if(_0x7e9c80===_0x4ef028)break;else _0x1d3df9['push'](_0x1d3df9['shift']());}catch(_0x495b40){_0x1d3df9['push'](_0x1d3df9['shift']());}}}(a22_0x2dcc,0x80a15));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x38b0fb){const _0x16fea7=a22_0x2d11,_0x36b27a=[];for(const [_0xdbe52,_0x1f426c]of Object[_0x16fea7(0xa4)](_0x38b0fb)){if(_0x1f426c===!![]){const _0x1f9e6d=_0xdbe52[_0x16fea7(0xad)](/([A-Z])/g,_0x16fea7(0xa2))[_0x16fea7(0x92)]();_0x36b27a[_0x16fea7(0x8f)](_0x1f9e6d);}}return _0x36b27a;}export function parseDynamicFlags(){const _0x118289=a22_0x2d11,_0x49eafc=[];for(let _0x3d2213=0x3;_0x3d2213<process['argv'][_0x118289(0x9a)];_0x3d2213++){const _0x123b61=process['argv'][_0x3d2213];if(_0x123b61&&_0x123b61['startsWith']('--')){const _0x38ecb6=_0x123b61['slice'](0x2);_0x38ecb6&&!_0x38ecb6[_0x118289(0x9e)]('=')&&_0x49eafc['push'](_0x38ecb6);}}return _0x49eafc;}export function getAllProvidedFlags(_0x49504e){const _0x54243d=a22_0x2d11,_0x5eaca9=camelCaseFlagsToKebab(_0x49504e),_0x130a8c=parseDynamicFlags(),_0x546f6a=new Set([..._0x5eaca9,..._0x130a8c]);return Array[_0x54243d(0xa3)](_0x546f6a);}export function normalizeLegacyBffSaveFlags(_0x4615a3){const _0x1153fc=a22_0x2d11,_0x3b7665=new Set(_0x4615a3);return _0x3b7665[_0x1153fc(0x97)](_0x1153fc(0x96))&&_0x3b7665['add']('enable-bff-save'),Array[_0x1153fc(0xa3)](_0x3b7665);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';function a22_0x2d11(_0x190045,_0x47bc87){_0x190045=_0x190045-0x8e;const _0x2dcc48=a22_0x2dcc();let _0x2d114c=_0x2dcc48[_0x190045];return _0x2d114c;}function a22_0x2dcc(){const _0x170878=['\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','23202vJsIAx','log','1734978yDgbWJ','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','replace','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','push','330uFXKLR','setLogPath','toLowerCase','skill','2888gBAnDF','3452498JPDWCM','dangerously-bff-save','has','12jPrfup','27049PLjgkt','length','498085TJkNpd','568722gPXEqm','exit','includes','1wtpYMS','664863jppBDz','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','from','entries','cwd','help'];a22_0x2dcc=function(){return _0x170878;};return a22_0x2dcc();}export async function skillsCommand(_0x3d7ee5,_0x3af107,_0x3e20dc){const _0x2f4b62=a22_0x2d11;logger[_0x2f4b62(0x91)](process[_0x2f4b62(0xa5)]());if(_0x3e20dc?.[_0x2f4b62(0xa6)]||_0x3d7ee5==='--help'){showHelp();return;}console[_0x2f4b62(0xac)]('Error:\x20Unsupported\x20command:\x20'+(_0x3d7ee5||'(empty)')),console[_0x2f4b62(0xa9)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x2f4b62(0xa7)),console[_0x2f4b62(0xa9)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x2f4b62(0xa9)](''),console[_0x2f4b62(0xa9)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2f4b62(0xac)](_0x2f4b62(0x93),'不支持的命令:\x20'+_0x3d7ee5),process[_0x2f4b62(0x9d)](0x1);}function showHelp(){const _0x2fbc54=a22_0x2d11;console[_0x2fbc54(0xa9)](_0x2fbc54(0xa1)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x2fbc54(0xab)+SKILLS_INSTALL_COMMAND_LINE+_0x2fbc54(0x8e));}
@@ -1 +1 @@
1
- const a21_0x2b2cf2=a21_0x29f2;(function(_0xf51cf4,_0x374f07){const _0x134760=a21_0x29f2,_0x2acc33=_0xf51cf4();while(!![]){try{const _0x3bc983=-parseInt(_0x134760(0x1ce))/0x1*(parseInt(_0x134760(0x1d2))/0x2)+parseInt(_0x134760(0x1b3))/0x3*(-parseInt(_0x134760(0x1b5))/0x4)+parseInt(_0x134760(0x1d0))/0x5*(-parseInt(_0x134760(0x1bc))/0x6)+-parseInt(_0x134760(0x1b9))/0x7+-parseInt(_0x134760(0x1b7))/0x8*(-parseInt(_0x134760(0x1c7))/0x9)+parseInt(_0x134760(0x1bd))/0xa*(parseInt(_0x134760(0x1c0))/0xb)+-parseInt(_0x134760(0x1b8))/0xc*(-parseInt(_0x134760(0x1be))/0xd);if(_0x3bc983===_0x374f07)break;else _0x2acc33['push'](_0x2acc33['shift']());}catch(_0x45d858){_0x2acc33['push'](_0x2acc33['shift']());}}}(a21_0x2531,0xf0ffa));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a21_0x2b2cf2(0x1b2);export const NPX_SKILLS_SUBCOMMAND_ADD=a21_0x2b2cf2(0x1cc);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a21_0x2b2cf2(0x1cd);export const DEFAULT_RABETBASE_SKILL_NAME=a21_0x2b2cf2(0x1c3);export function buildNpxSkillsAddArgv(_0x2d1ebe=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2d1ebe];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a21_0x2b2cf2(0x1c4),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x462626,_0xb53807){const _0x53f779=a21_0x2b2cf2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3b0d86=_0xb53807?.[_0x53f779(0x1cb)]??_0x53f779(0x1c5),_0x4cfe8e=resolveNpmBin(_0x53f779(0x1c4)),_0x58825f=buildNpxSkillsAddArgv(_0xb53807?.[_0x53f779(0x1b6)]??DEFAULT_RABETBASE_SKILL_NAME),_0x2ba63=[_0x4cfe8e,..._0x58825f][_0x53f779(0x1ba)]('\x20');console[_0x53f779(0x1ca)]('*\x20'+_0x2ba63);const _0x37e084=spawnSync(_0x4cfe8e,_0x58825f,{'cwd':_0x462626,'stdio':_0x3b0d86,'env':process.env,'shell':![]}),_0x1509db=_0x37e084[_0x53f779(0x1b4)];if(_0x1509db===0x0)return{'ok':!![],'status':0x0};let _0x2b6c94=_0x53f779(0x1d3)+(_0x1509db??_0x53f779(0x1c1));if(_0x3b0d86==='pipe'){const _0x332084=_0x37e084[_0x53f779(0x1bb)]?_0x37e084[_0x53f779(0x1bb)][_0x53f779(0x1d1)]()[_0x53f779(0x1cf)]():'',_0x56b4d5=_0x37e084[_0x53f779(0x1c8)]?_0x37e084['stdout'][_0x53f779(0x1d1)]()['trim']():'';if(_0x332084)_0x2b6c94=_0x332084;else{if(_0x56b4d5)_0x2b6c94=_0x56b4d5;}}return{'ok':![],'status':_0x1509db??null,'error':_0x2b6c94};}function a21_0x2531(){const _0x515308=['yes','Lovrabet','npx','inherit','remove','18PoTnPS','stdout','--global','log','stdio','add','lovrabet/lovrabet-skill','7gobbij','trim','140rplIIS','toString','410866gPnKul','exit\x20','skills','51UWVLDE','status','59960OLpJQB','skill','1199216aCLSnw','1443372iDVaHX','1582224kOPsrU','join','stderr','193278DYRHfS','70ETNFjp','286qgCNvb','pipe','1354573ZtvgNM','unknown'];a21_0x2531=function(){return _0x515308;};return a21_0x2531();}function a21_0x29f2(_0x3d0111,_0x23c3e2){_0x3d0111=_0x3d0111-0x1b2;const _0x2531ba=a21_0x2531();let _0x29f237=_0x2531ba[_0x3d0111];return _0x29f237;}export function runNpxSkillsRemove(_0x5077d4,_0x55b5eb){const _0x5da0ef=a21_0x2b2cf2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x14674f=_0x55b5eb?.[_0x5da0ef(0x1cb)]??_0x5da0ef(0x1c5),_0x286c39=resolveNpmBin(_0x5da0ef(0x1c4)),_0x55bb8d=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5da0ef(0x1c6),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x55b5eb?.[_0x5da0ef(0x1b6)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x55b5eb?.[_0x5da0ef(0x1c2)]?['-y']:[]],_0xa8bed8=[_0x286c39,..._0x55bb8d][_0x5da0ef(0x1ba)]('\x20');console['log']('*\x20'+_0xa8bed8);const _0x1d88a1=spawnSync(_0x286c39,_0x55bb8d,{'cwd':_0x5077d4,'stdio':_0x14674f,'env':process.env,'shell':![]}),_0x5072b3=_0x1d88a1[_0x5da0ef(0x1b4)];if(_0x5072b3===0x0)return{'ok':!![],'status':0x0};let _0x337ab3=_0x5da0ef(0x1d3)+(_0x5072b3??_0x5da0ef(0x1c1));if(_0x14674f===_0x5da0ef(0x1bf)){const _0x3b7b32=_0x1d88a1[_0x5da0ef(0x1bb)]?_0x1d88a1[_0x5da0ef(0x1bb)][_0x5da0ef(0x1d1)]()['trim']():'',_0x1a8167=_0x1d88a1[_0x5da0ef(0x1c8)]?_0x1d88a1[_0x5da0ef(0x1c8)][_0x5da0ef(0x1d1)]()[_0x5da0ef(0x1cf)]():'';if(_0x3b7b32)_0x337ab3=_0x3b7b32;else{if(_0x1a8167)_0x337ab3=_0x1a8167;}}return{'ok':![],'status':_0x5072b3??null,'error':_0x337ab3};}export function runNpxSkillsAddGlobal(_0x1cadc7,_0x1935ce,_0x99bfe7){const _0x4d0375=a21_0x2b2cf2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x47f12e=_0x99bfe7?.[_0x4d0375(0x1cb)]??_0x4d0375(0x1c5),_0x5b85f7=resolveNpmBin(_0x4d0375(0x1c4)),_0x564d86=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1935ce,_0x4d0375(0x1c9),..._0x99bfe7?.[_0x4d0375(0x1c2)]?['-y']:[]],_0x346887=[_0x5b85f7,..._0x564d86][_0x4d0375(0x1ba)]('\x20');console[_0x4d0375(0x1ca)]('*\x20'+_0x346887);const _0x775c09=spawnSync(_0x5b85f7,_0x564d86,{'cwd':_0x1cadc7,'stdio':_0x47f12e,'env':process.env,'shell':![]}),_0x1bcee6=_0x775c09[_0x4d0375(0x1b4)];if(_0x1bcee6===0x0)return{'ok':!![],'status':0x0};let _0xa2295f=_0x4d0375(0x1d3)+(_0x1bcee6??_0x4d0375(0x1c1));if(_0x47f12e===_0x4d0375(0x1bf)){const _0x4b9d43=_0x775c09[_0x4d0375(0x1bb)]?_0x775c09[_0x4d0375(0x1bb)][_0x4d0375(0x1d1)]()[_0x4d0375(0x1cf)]():'',_0x349cde=_0x775c09[_0x4d0375(0x1c8)]?_0x775c09['stdout'][_0x4d0375(0x1d1)]()[_0x4d0375(0x1cf)]():'';if(_0x4b9d43)_0xa2295f=_0x4b9d43;else{if(_0x349cde)_0xa2295f=_0x349cde;}}return{'ok':![],'status':_0x1bcee6??null,'error':_0xa2295f};}
1
+ const a21_0x230fe9=a21_0x5f11;function a21_0x5ac6(){const _0x510c66=['npx','stdio','remove','272188qTjfJJ','1766448HQdANf','toString','lovrabet/lovrabet-skill','exit\x20','skill','4WwQUdr','inherit','108AtiBaY','yes','Lovrabet','pipe','--skill','6299448VBKMga','7SvZhdl','1306125GaoHBD','169590BqKfOQ','stdout','join','unknown','status','log','162546QYkiWT','add','828120wwqlsD','trim','stderr'];a21_0x5ac6=function(){return _0x510c66;};return a21_0x5ac6();}(function(_0x2d4df8,_0x4b0a3f){const _0x9db0eb=a21_0x5f11,_0x1ea5ea=_0x2d4df8();while(!![]){try{const _0x32614f=-parseInt(_0x9db0eb(0x12d))/0x1*(-parseInt(_0x9db0eb(0x13d))/0x2)+parseInt(_0x9db0eb(0x136))/0x3+-parseInt(_0x9db0eb(0x127))/0x4+parseInt(_0x9db0eb(0x13f))/0x5+parseInt(_0x9db0eb(0x128))/0x6+parseInt(_0x9db0eb(0x135))/0x7*(-parseInt(_0x9db0eb(0x134))/0x8)+parseInt(_0x9db0eb(0x12f))/0x9*(parseInt(_0x9db0eb(0x137))/0xa);if(_0x32614f===_0x4b0a3f)break;else _0x1ea5ea['push'](_0x1ea5ea['shift']());}catch(_0x5ae747){_0x1ea5ea['push'](_0x1ea5ea['shift']());}}}(a21_0x5ac6,0x8acd1));import{spawnSync}from'node:child_process';function a21_0x5f11(_0x2cf091,_0x5f4efd){_0x2cf091=_0x2cf091-0x123;const _0x5ac6e6=a21_0x5ac6();let _0x5f11b0=_0x5ac6e6[_0x2cf091];return _0x5f11b0;}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a21_0x230fe9(0x13e);export const NPX_SKILLS_FLAG_SKILL=a21_0x230fe9(0x133);export const RABETBASE_SKILL_SOURCE=a21_0x230fe9(0x12a);export const DEFAULT_RABETBASE_SKILL_NAME=a21_0x230fe9(0x131);export function buildNpxSkillsAddArgv(_0x46c872=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x46c872];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a21_0x230fe9(0x124),...buildNpxSkillsAddArgv()][a21_0x230fe9(0x139)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x401ca9,_0x2487fc){const _0x47aaaf=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5dc7d7=_0x2487fc?.[_0x47aaaf(0x125)]??_0x47aaaf(0x12e),_0xac8539=resolveNpmBin(_0x47aaaf(0x124)),_0x4630e0=buildNpxSkillsAddArgv(_0x2487fc?.[_0x47aaaf(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME),_0x346bd1=[_0xac8539,..._0x4630e0][_0x47aaaf(0x139)]('\x20');console[_0x47aaaf(0x13c)]('*\x20'+_0x346bd1);const _0x50c5dd=spawnSync(_0xac8539,_0x4630e0,{'cwd':_0x401ca9,'stdio':_0x5dc7d7,'env':process.env,'shell':![]}),_0x3d37e9=_0x50c5dd[_0x47aaaf(0x13b)];if(_0x3d37e9===0x0)return{'ok':!![],'status':0x0};let _0x10ba2c=_0x47aaaf(0x12b)+(_0x3d37e9??_0x47aaaf(0x13a));if(_0x5dc7d7===_0x47aaaf(0x132)){const _0x24c5d5=_0x50c5dd[_0x47aaaf(0x123)]?_0x50c5dd[_0x47aaaf(0x123)][_0x47aaaf(0x129)]()[_0x47aaaf(0x140)]():'',_0x2ec092=_0x50c5dd['stdout']?_0x50c5dd[_0x47aaaf(0x138)][_0x47aaaf(0x129)]()[_0x47aaaf(0x140)]():'';if(_0x24c5d5)_0x10ba2c=_0x24c5d5;else{if(_0x2ec092)_0x10ba2c=_0x2ec092;}}return{'ok':![],'status':_0x3d37e9??null,'error':_0x10ba2c};}export function runNpxSkillsRemove(_0x5c4244,_0x318d06){const _0x133693=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x145815=_0x318d06?.[_0x133693(0x125)]??_0x133693(0x12e),_0x3bab55=resolveNpmBin(_0x133693(0x124)),_0x4a02f3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x133693(0x126),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x318d06?.[_0x133693(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x318d06?.[_0x133693(0x130)]?['-y']:[]],_0x2ce6f5=[_0x3bab55,..._0x4a02f3]['join']('\x20');console['log']('*\x20'+_0x2ce6f5);const _0x1f9787=spawnSync(_0x3bab55,_0x4a02f3,{'cwd':_0x5c4244,'stdio':_0x145815,'env':process.env,'shell':![]}),_0x5d7144=_0x1f9787['status'];if(_0x5d7144===0x0)return{'ok':!![],'status':0x0};let _0x5e083c=_0x133693(0x12b)+(_0x5d7144??_0x133693(0x13a));if(_0x145815===_0x133693(0x132)){const _0x5594bb=_0x1f9787[_0x133693(0x123)]?_0x1f9787[_0x133693(0x123)][_0x133693(0x129)]()[_0x133693(0x140)]():'',_0x299cf3=_0x1f9787['stdout']?_0x1f9787['stdout'][_0x133693(0x129)]()[_0x133693(0x140)]():'';if(_0x5594bb)_0x5e083c=_0x5594bb;else{if(_0x299cf3)_0x5e083c=_0x299cf3;}}return{'ok':![],'status':_0x5d7144??null,'error':_0x5e083c};}export function runNpxSkillsAddGlobal(_0x41f9e2,_0xeddaf4,_0x1ba350){const _0xccc3aa=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x599666=_0x1ba350?.[_0xccc3aa(0x125)]??_0xccc3aa(0x12e),_0x20b034=resolveNpmBin('npx'),_0x2b84a3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xeddaf4,'--global',..._0x1ba350?.[_0xccc3aa(0x130)]?['-y']:[]],_0x2abbd8=[_0x20b034,..._0x2b84a3]['join']('\x20');console[_0xccc3aa(0x13c)]('*\x20'+_0x2abbd8);const _0x1cb45a=spawnSync(_0x20b034,_0x2b84a3,{'cwd':_0x41f9e2,'stdio':_0x599666,'env':process.env,'shell':![]}),_0x2dd7fb=_0x1cb45a[_0xccc3aa(0x13b)];if(_0x2dd7fb===0x0)return{'ok':!![],'status':0x0};let _0x19257d=_0xccc3aa(0x12b)+(_0x2dd7fb??'unknown');if(_0x599666===_0xccc3aa(0x132)){const _0x15f478=_0x1cb45a[_0xccc3aa(0x123)]?_0x1cb45a['stderr']['toString']()['trim']():'',_0x4968ff=_0x1cb45a['stdout']?_0x1cb45a[_0xccc3aa(0x138)][_0xccc3aa(0x129)]()[_0xccc3aa(0x140)]():'';if(_0x15f478)_0x19257d=_0x15f478;else{if(_0x4968ff)_0x19257d=_0x4968ff;}}return{'ok':![],'status':_0x2dd7fb??null,'error':_0x19257d};}
@@ -1 +1 @@
1
- (function(_0x5c50d3,_0x2829d5){const _0x55cf80=a38_0x2386,_0x57ab30=_0x5c50d3();while(!![]){try{const _0x3354fa=-parseInt(_0x55cf80(0x123))/0x1+-parseInt(_0x55cf80(0x11f))/0x2+parseInt(_0x55cf80(0x12c))/0x3+parseInt(_0x55cf80(0x12f))/0x4*(parseInt(_0x55cf80(0x126))/0x5)+parseInt(_0x55cf80(0x12a))/0x6+-parseInt(_0x55cf80(0x129))/0x7+parseInt(_0x55cf80(0x120))/0x8;if(_0x3354fa===_0x2829d5)break;else _0x57ab30['push'](_0x57ab30['shift']());}catch(_0x5184a9){_0x57ab30['push'](_0x57ab30['shift']());}}}(a38_0x4d04,0xd2d32));function a38_0x4d04(){const _0x3bb474=['7030xdERsM','rabetbase.command','error','9291401mixKbP','7268436qWLgZe','durationMs','2636601CtqPfR','flags','[REDACTED]','3224pRuUoX','service','471400aHEkow','2782976CKAKKq','test','entries','1144800Hhfvza','message','stringify'];a38_0x4d04=function(){return _0x3bb474;};return a38_0x4d04();}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 a38_0x2386(_0x5e39de,_0x5f02cc){_0x5e39de=_0x5e39de-0x11e;const _0x4d04f2=a38_0x4d04();let _0x2386c3=_0x4d04f2[_0x5e39de];return _0x2386c3;}function isSensitiveKey(_0x335c6d){const _0x156fa0=a38_0x2386;return SENSITIVE_PATTERNS['some'](_0x1b6114=>_0x1b6114[_0x156fa0(0x121)](_0x335c6d));}function sanitizeFlags(_0x498ee1){const _0x5c1658=a38_0x2386,_0x4ad2fb={};for(const [_0x5d9333,_0x22f72a]of Object[_0x5c1658(0x122)](_0x498ee1)){isSensitiveKey(_0x5d9333)?_0x4ad2fb[_0x5d9333]=_0x22f72a!=null&&_0x22f72a!==''?_0x5c1658(0x12e):_0x22f72a:_0x4ad2fb[_0x5d9333]=_0x22f72a;}return _0x4ad2fb;}export async function reportCommandTrace(_0x35607f){const _0xefae05=a38_0x2386;try{const _0x47ae7a=sanitizeFlags(_0x35607f[_0xefae05(0x12d)]);await sendCliTraceLog({'spanName':_0xefae05(0x127),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x35607f[_0xefae05(0x11e)],'command.name':_0x35607f['command'],'command.flags':JSON[_0xefae05(0x125)](_0x47ae7a),..._0x35607f[_0xefae05(0x12b)]!=null?{'command.duration_ms':_0x35607f[_0xefae05(0x12b)]}:{},..._0x35607f[_0xefae05(0x128)]?{'command.error':_0x35607f[_0xefae05(0x128)]instanceof Error?_0x35607f[_0xefae05(0x128)][_0xefae05(0x124)]:String(_0x35607f['error'])}:{}}});}catch{}}
1
+ (function(_0xc47b54,_0x90ec1e){const _0x3311=a38_0x2a93,_0x29d1c9=_0xc47b54();while(!![]){try{const _0x31337a=-parseInt(_0x3311(0x10b))/0x1*(parseInt(_0x3311(0x114))/0x2)+parseInt(_0x3311(0x119))/0x3*(parseInt(_0x3311(0x108))/0x4)+parseInt(_0x3311(0x111))/0x5+-parseInt(_0x3311(0x115))/0x6*(-parseInt(_0x3311(0x113))/0x7)+parseInt(_0x3311(0x11c))/0x8*(-parseInt(_0x3311(0x118))/0x9)+parseInt(_0x3311(0x11a))/0xa*(parseInt(_0x3311(0x109))/0xb)+-parseInt(_0x3311(0x110))/0xc*(parseInt(_0x3311(0x10a))/0xd);if(_0x31337a===_0x90ec1e)break;else _0x29d1c9['push'](_0x29d1c9['shift']());}catch(_0xa05ffa){_0x29d1c9['push'](_0x29d1c9['shift']());}}}(a38_0x5f59,0x3241a));function a38_0x2a93(_0xc41788,_0x2418d1){_0xc41788=_0xc41788-0x108;const _0x5f5967=a38_0x5f59();let _0x2a9387=_0x5f5967[_0xc41788];return _0x2a9387;}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(_0x254b59){const _0xfae69e=a38_0x2a93;return SENSITIVE_PATTERNS['some'](_0x750afa=>_0x750afa[_0xfae69e(0x11f)](_0x254b59));}function sanitizeFlags(_0x59a88b){const _0x25bd73=a38_0x2a93,_0x1e960a={};for(const [_0x2fa903,_0x360424]of Object[_0x25bd73(0x117)](_0x59a88b)){isSensitiveKey(_0x2fa903)?_0x1e960a[_0x2fa903]=_0x360424!=null&&_0x360424!==''?_0x25bd73(0x10f):_0x360424:_0x1e960a[_0x2fa903]=_0x360424;}return _0x1e960a;}export async function reportCommandTrace(_0x4d7cce){const _0xb0f134=a38_0x2a93;try{const _0x37c86b=sanitizeFlags(_0x4d7cce[_0xb0f134(0x10d)]);await sendCliTraceLog({'spanName':_0xb0f134(0x11d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4d7cce[_0xb0f134(0x112)],'command.name':_0x4d7cce[_0xb0f134(0x116)],'command.flags':JSON[_0xb0f134(0x11e)](_0x37c86b),..._0x4d7cce[_0xb0f134(0x10e)]!=null?{'command.duration_ms':_0x4d7cce[_0xb0f134(0x10e)]}:{},..._0x4d7cce['error']?{'command.error':_0x4d7cce[_0xb0f134(0x11b)]instanceof Error?_0x4d7cce[_0xb0f134(0x11b)][_0xb0f134(0x10c)]:String(_0x4d7cce['error'])}:{}}});}catch{}}function a38_0x5f59(){const _0x43f451=['command','entries','72rbQnGx','4839mAHcLb','10VzHyRB','error','369568ikWOVZ','rabetbase.command','stringify','test','992OUUiHI','3599717YQRHXq','11466lMEFNw','3201ObHsBB','message','flags','durationMs','[REDACTED]','2556DqHOEv','1022315qiLvuU','service','63ArTZch','194fqiDbQ','94698DtztHD'];a38_0x5f59=function(){return _0x43f451;};return a38_0x5f59();}
@@ -1 +1 @@
1
- function a35_0x3717(_0x57c65d,_0x5dd1ae){_0x57c65d=_0x57c65d-0x1e0;var _0x29789e=a35_0x2978();var _0x371725=_0x29789e[_0x57c65d];return _0x371725;}(function(_0x174264,_0x4793bf){var _0x5c9b5b=a35_0x3717,_0xfeddbb=_0x174264();while(!![]){try{var _0x1dce3d=-parseInt(_0x5c9b5b(0x1ec))/0x1+-parseInt(_0x5c9b5b(0x1e6))/0x2+-parseInt(_0x5c9b5b(0x1ee))/0x3*(parseInt(_0x5c9b5b(0x1e9))/0x4)+-parseInt(_0x5c9b5b(0x1e7))/0x5*(parseInt(_0x5c9b5b(0x1e5))/0x6)+-parseInt(_0x5c9b5b(0x1e4))/0x7*(parseInt(_0x5c9b5b(0x1e8))/0x8)+-parseInt(_0x5c9b5b(0x1e3))/0x9*(-parseInt(_0x5c9b5b(0x1ed))/0xa)+parseInt(_0x5c9b5b(0x1e1))/0xb;if(_0x1dce3d===_0x4793bf)break;else _0xfeddbb['push'](_0xfeddbb['shift']());}catch(_0x412f29){_0xfeddbb['push'](_0xfeddbb['shift']());}}}(a35_0x2978,0x956be));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a35_0x2978(){var _0x5813ab=['error','29786526RtHqxM','service','279VsqNXV','10682BbdxZq','168ZCHrRG','2253042RGoTix','91510pvQmQE','296HbnmxW','40XNgqlC','cli.help','Failed\x20to\x20report\x20CLI\x20help\x20trace:','954504gEBIHk','243170reEQkq','59916DizsRM'];a35_0x2978=function(){return _0x5813ab;};return a35_0x2978();}export async function reportCliHelpTrace(_0x518ae2,_0x136ad9){var _0x26fe20=a35_0x3717;try{await sendCliTraceLog({'spanName':_0x26fe20(0x1ea),'logData':{'rabetbase.help.kind':_0x518ae2,..._0x136ad9?.['service']&&{'rabetbase.help.service':_0x136ad9[_0x26fe20(0x1e2)]}}});}catch(_0x492678){console[_0x26fe20(0x1e0)](_0x26fe20(0x1eb),_0x492678);}}
1
+ function a35_0x2699(_0x3b3c1e,_0x2f5729){_0x3b3c1e=_0x3b3c1e-0x1bb;var _0x4a3e8a=a35_0x4a3e();var _0x269954=_0x4a3e8a[_0x3b3c1e];return _0x269954;}(function(_0x339dd9,_0x36431c){var _0x470b1c=a35_0x2699,_0x440412=_0x339dd9();while(!![]){try{var _0x328292=parseInt(_0x470b1c(0x1c6))/0x1*(parseInt(_0x470b1c(0x1bc))/0x2)+-parseInt(_0x470b1c(0x1c1))/0x3*(parseInt(_0x470b1c(0x1bb))/0x4)+parseInt(_0x470b1c(0x1c3))/0x5+parseInt(_0x470b1c(0x1c8))/0x6+-parseInt(_0x470b1c(0x1bf))/0x7*(parseInt(_0x470b1c(0x1c0))/0x8)+-parseInt(_0x470b1c(0x1c2))/0x9*(parseInt(_0x470b1c(0x1c5))/0xa)+parseInt(_0x470b1c(0x1c9))/0xb;if(_0x328292===_0x36431c)break;else _0x440412['push'](_0x440412['shift']());}catch(_0x4a0c25){_0x440412['push'](_0x440412['shift']());}}}(a35_0x4a3e,0x2eff7));function a35_0x4a3e(){var _0x1972bb=['cli.help','1282794rQMluv','4184895qplevW','790204hFISiG','60OVQBNz','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','95333RPIfph','112iFicQU','3cqrbGn','1450476TJJpzb','232870EdkHLr','error','20awErye','8741xmYdom'];a35_0x4a3e=function(){return _0x1972bb;};return a35_0x4a3e();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x454784,_0x14dd89){var _0x4cb9fa=a35_0x2699;try{await sendCliTraceLog({'spanName':_0x4cb9fa(0x1c7),'logData':{'rabetbase.help.kind':_0x454784,..._0x14dd89?.[_0x4cb9fa(0x1bd)]&&{'rabetbase.help.service':_0x14dd89[_0x4cb9fa(0x1bd)]}}});}catch(_0x42f338){console[_0x4cb9fa(0x1c4)](_0x4cb9fa(0x1be),_0x42f338);}}
@@ -1 +1 @@
1
- function a39_0x35e7(){const _0x48b5a0=['10SfaIaH','daily','nickname','366652cfkAOS','7047742IHWPGZ','6HwvpZR','1SCgipL','3514715kwvWtf','1558778tsfdWW','15bmYJNp','56vHRXeH','username','96TvWdRN','7kmENhH','5892147eTuHbP','rabetbase-cli','userInfo','5546416gGmGJM','production','674124qJizvt'];a39_0x35e7=function(){return _0x48b5a0;};return a39_0x35e7();}(function(_0xf019dd,_0x3641b1){const _0x586898=a39_0x2a8f,_0x13b899=_0xf019dd();while(!![]){try{const _0x4e0840=parseInt(_0x586898(0x112))/0x1*(-parseInt(_0x586898(0x114))/0x2)+parseInt(_0x586898(0x115))/0x3*(parseInt(_0x586898(0x11f))/0x4)+parseInt(_0x586898(0x113))/0x5*(-parseInt(_0x586898(0x111))/0x6)+-parseInt(_0x586898(0x119))/0x7*(parseInt(_0x586898(0x11d))/0x8)+parseInt(_0x586898(0x11a))/0x9*(-parseInt(_0x586898(0x120))/0xa)+-parseInt(_0x586898(0x123))/0xb*(-parseInt(_0x586898(0x118))/0xc)+-parseInt(_0x586898(0x124))/0xd*(-parseInt(_0x586898(0x116))/0xe);if(_0x4e0840===_0x3641b1)break;else _0x13b899['push'](_0x13b899['shift']());}catch(_0x405de4){_0x13b899['push'](_0x13b899['shift']());}}}(a39_0x35e7,0x6d42a));import a39_0x3b7b2e from'node:os';function a39_0x2a8f(_0x4adc31,_0x393933){_0x4adc31=_0x4adc31-0x111;const _0x35e7e5=a39_0x35e7();let _0x2a8f29=_0x35e7e5[_0x4adc31];return _0x2a8f29;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x380dac=a39_0x2a8f,_0x580706=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x34ae4e=_0x580706?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x380dac(0x121):_0x380dac(0x11e)),'username':_0x34ae4e?.['username']??a39_0x3b7b2e[_0x380dac(0x11c)]()[_0x380dac(0x117)]??_0x380dac(0x11b),..._0x34ae4e&&{'nickname':_0x34ae4e[_0x380dac(0x122)]}}),cliOtelTraceInitialized=!![];}return _0x580706;}
1
+ function a39_0x2818(_0x5eecda,_0x485e84){_0x5eecda=_0x5eecda-0x14e;const _0x5496af=a39_0x5496();let _0x281841=_0x5496af[_0x5eecda];return _0x281841;}(function(_0x1c188b,_0x312ffa){const _0x3b0015=a39_0x2818,_0x295455=_0x1c188b();while(!![]){try{const _0x39359e=-parseInt(_0x3b0015(0x15b))/0x1*(parseInt(_0x3b0015(0x158))/0x2)+-parseInt(_0x3b0015(0x151))/0x3+-parseInt(_0x3b0015(0x156))/0x4+parseInt(_0x3b0015(0x15a))/0x5+-parseInt(_0x3b0015(0x15c))/0x6+parseInt(_0x3b0015(0x159))/0x7*(-parseInt(_0x3b0015(0x152))/0x8)+parseInt(_0x3b0015(0x154))/0x9;if(_0x39359e===_0x312ffa)break;else _0x295455['push'](_0x295455['shift']());}catch(_0x54ee13){_0x295455['push'](_0x295455['shift']());}}}(a39_0x5496,0x6421c));import a39_0x5ecd18 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a39_0x5496(){const _0x4dc1a7=['12XkLARd','1428vrpaLI','561600MRjWhG','69413uPDcKK','1317900zRztsJ','daily','unknown','user','rabetbase-cli','948294LDgoBd','6552XiYRNV','username','15077637qTHxzm','production','1032684IYVceJ','userInfo'];a39_0x5496=function(){return _0x4dc1a7;};return a39_0x5496();}import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x47b2cb=a39_0x2818,_0xa1a79d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2909cb=_0xa1a79d?.[_0x47b2cb(0x14f)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x47b2cb(0x14e)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x47b2cb(0x15d):_0x47b2cb(0x155)),'username':_0x2909cb?.[_0x47b2cb(0x153)]??a39_0x5ecd18[_0x47b2cb(0x157)]()[_0x47b2cb(0x153)]??_0x47b2cb(0x150),..._0x2909cb&&{'nickname':_0x2909cb['nickname']}}),cliOtelTraceInitialized=!![];}return _0xa1a79d;}
@@ -1 +1 @@
1
- (function(_0x38611b,_0x138550){const _0x3b8699=a36_0x3c5f,_0x595a01=_0x38611b();while(!![]){try{const _0x4d42c8=parseInt(_0x3b8699(0x15d))/0x1+-parseInt(_0x3b8699(0x15b))/0x2*(-parseInt(_0x3b8699(0x154))/0x3)+-parseInt(_0x3b8699(0x157))/0x4*(parseInt(_0x3b8699(0x153))/0x5)+-parseInt(_0x3b8699(0x15e))/0x6+parseInt(_0x3b8699(0x159))/0x7+parseInt(_0x3b8699(0x15c))/0x8+-parseInt(_0x3b8699(0x15f))/0x9*(parseInt(_0x3b8699(0x156))/0xa);if(_0x4d42c8===_0x138550)break;else _0x595a01['push'](_0x595a01['shift']());}catch(_0x57d78b){_0x595a01['push'](_0x595a01['shift']());}}}(a36_0x1c55,0x1c10e));function a36_0x3c5f(_0x35739f,_0x552083){_0x35739f=_0x35739f-0x152;const _0x1c551d=a36_0x1c55();let _0x3c5fbc=_0x1c551d[_0x35739f];return _0x3c5fbc;}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 _0x379cd8=a36_0x3c5f;process[_0x379cd8(0x158)](_0x379cd8(0x155),()=>{void flushOtelNodeIfUsed();});const _0x51a90b=()=>{const _0x55d309=_0x379cd8;void flushOtelNodeIfUsed()['then'](()=>process[_0x55d309(0x15a)](0x0));};process['once'](_0x379cd8(0x152),_0x51a90b),process[_0x379cd8(0x158)]('SIGTERM',_0x51a90b);}export async function exitWithOtelShutdown(_0x1d80e5){await flushOtelNodeIfUsed(),process['exit'](_0x1d80e5);}function a36_0x1c55(){const _0x872362=['2171835XHYTDB','SIGINT','1615ztUIPI','95079GdIvKs','beforeExit','10BivYxa','1468SwxWdd','once','458374heoMIu','exit','10GjZoDf','734200wnrCjE','220024yhnmzX','365592EuLXcU'];a36_0x1c55=function(){return _0x872362;};return a36_0x1c55();}
1
+ (function(_0x3be254,_0x354d34){const _0x3f02c7=a36_0x277d,_0x266d42=_0x3be254();while(!![]){try{const _0x22f6c2=-parseInt(_0x3f02c7(0x10d))/0x1*(parseInt(_0x3f02c7(0x10a))/0x2)+-parseInt(_0x3f02c7(0x105))/0x3+parseInt(_0x3f02c7(0x111))/0x4*(-parseInt(_0x3f02c7(0x108))/0x5)+-parseInt(_0x3f02c7(0x109))/0x6*(-parseInt(_0x3f02c7(0x107))/0x7)+-parseInt(_0x3f02c7(0x106))/0x8*(-parseInt(_0x3f02c7(0x10b))/0x9)+parseInt(_0x3f02c7(0x112))/0xa*(parseInt(_0x3f02c7(0x114))/0xb)+parseInt(_0x3f02c7(0x113))/0xc;if(_0x22f6c2===_0x354d34)break;else _0x266d42['push'](_0x266d42['shift']());}catch(_0x549e7c){_0x266d42['push'](_0x266d42['shift']());}}}(a36_0x3c2a,0x92204));function a36_0x277d(_0x26f19f,_0x4329ff){_0x26f19f=_0x26f19f-0x105;const _0x3c2aab=a36_0x3c2a();let _0x277dee=_0x3c2aab[_0x26f19f];return _0x277dee;}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 _0x5dc82d=a36_0x277d;process[_0x5dc82d(0x10e)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x132c27=()=>{const _0x5c27a3=_0x5dc82d;void flushOtelNodeIfUsed()[_0x5c27a3(0x110)](()=>process[_0x5c27a3(0x10f)](0x0));};process[_0x5dc82d(0x10e)](_0x5dc82d(0x10c),_0x132c27),process[_0x5dc82d(0x10e)](_0x5dc82d(0x115),_0x132c27);}export async function exitWithOtelShutdown(_0x52483b){await flushOtelNodeIfUsed(),process['exit'](_0x52483b);}function a36_0x3c2a(){const _0x38ceed=['SIGINT','155kOWjuS','once','exit','then','444rwejTD','30nzjEyS','8638668mSczaV','3032909FRynFH','SIGTERM','78543aQHfCx','8iQJULM','16163MuOLGX','8715CPJeKI','192hIgYjq','15202uMdgqJ','3378663TdwCCU'];a36_0x3c2a=function(){return _0x38ceed;};return a36_0x3c2a();}
@@ -1 +1 @@
1
- function a37_0x3367(){const _0x59e4b7=['1791cOZJbk','53156472NtMJJV','spanName','112077EIgDJs','48280sJEkna','1531855Mpkytt','3MiIMtO','logData','2161712otMDlJ','70sJYfXz','rabetbase-cli','version','196383DERpVN','432xqXAAq','4wgdtSL','5207970KwUWAy','traceparent'];a37_0x3367=function(){return _0x59e4b7;};return a37_0x3367();}const a37_0x4e2a55=a37_0x43b5;function a37_0x43b5(_0x44b188,_0x39e9c6){_0x44b188=_0x44b188-0x169;const _0x3367cd=a37_0x3367();let _0x43b5cf=_0x3367cd[_0x44b188];return _0x43b5cf;}(function(_0x57caec,_0x23d02c){const _0x3fcf45=a37_0x43b5,_0xdbb9de=_0x57caec();while(!![]){try{const _0x190af9=-parseInt(_0x3fcf45(0x16a))/0x1+parseInt(_0x3fcf45(0x16d))/0x2*(-parseInt(_0x3fcf45(0x16b))/0x3)+-parseInt(_0x3fcf45(0x173))/0x4*(parseInt(_0x3fcf45(0x174))/0x5)+-parseInt(_0x3fcf45(0x172))/0x6*(-parseInt(_0x3fcf45(0x179))/0x7)+parseInt(_0x3fcf45(0x169))/0x8*(-parseInt(_0x3fcf45(0x176))/0x9)+parseInt(_0x3fcf45(0x16e))/0xa*(parseInt(_0x3fcf45(0x171))/0xb)+parseInt(_0x3fcf45(0x177))/0xc;if(_0x190af9===_0x23d02c)break;else _0xdbb9de['push'](_0xdbb9de['shift']());}catch(_0x2ca62f){_0xdbb9de['push'](_0xdbb9de['shift']());}}}(a37_0x3367,0xd00e7));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a37_0x4e2a55(0x16f);export async function sendCliTraceLog(_0xada6fc){const _0x2534b6=a37_0x4e2a55;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xada6fc['traceName']??DEFAULT_TRACE_NAME,'version':_0xada6fc[_0x2534b6(0x170)]??getCliVersion(),'spanName':_0xada6fc[_0x2534b6(0x178)],'eventType':'manual','logData':_0xada6fc[_0x2534b6(0x16c)],..._0xada6fc[_0x2534b6(0x175)]&&{'traceparent':_0xada6fc[_0x2534b6(0x175)]}});}
1
+ const a37_0x15be70=a37_0x42f1;(function(_0x3043ec,_0x53ba0f){const _0x2e763b=a37_0x42f1,_0x1128cc=_0x3043ec();while(!![]){try{const _0x4f6086=-parseInt(_0x2e763b(0x103))/0x1+-parseInt(_0x2e763b(0x106))/0x2*(-parseInt(_0x2e763b(0x107))/0x3)+parseInt(_0x2e763b(0x104))/0x4+-parseInt(_0x2e763b(0x110))/0x5*(-parseInt(_0x2e763b(0x10c))/0x6)+-parseInt(_0x2e763b(0x111))/0x7+-parseInt(_0x2e763b(0x10f))/0x8*(parseInt(_0x2e763b(0x10e))/0x9)+parseInt(_0x2e763b(0x109))/0xa*(parseInt(_0x2e763b(0x114))/0xb);if(_0x4f6086===_0x53ba0f)break;else _0x1128cc['push'](_0x1128cc['shift']());}catch(_0xe4bc67){_0x1128cc['push'](_0x1128cc['shift']());}}}(a37_0xf288,0xe889d));function a37_0xf288(){const _0x5f0c85=['9470TFWQyR','traceName','spanName','24fSBSAO','logData','468NuutZi','37744QijBrJ','1840190DlYQRQ','7559454ZrLTts','manual','rabetbase-cli','9768dARIUO','1872826JyodWT','1706220QdoYFH','traceparent','12bWsIix','705459EyLBuJ','version'];a37_0xf288=function(){return _0x5f0c85;};return a37_0xf288();}import{sendTraceLog}from'@lovrabet/otel-logger';function a37_0x42f1(_0xefeaee,_0xf36c4d){_0xefeaee=_0xefeaee-0x103;const _0xf28897=a37_0xf288();let _0x42f113=_0xf28897[_0xefeaee];return _0x42f113;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a37_0x15be70(0x113);export async function sendCliTraceLog(_0x4d7c49){const _0x52d0a2=a37_0x15be70;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4d7c49[_0x52d0a2(0x10a)]??DEFAULT_TRACE_NAME,'version':_0x4d7c49[_0x52d0a2(0x108)]??getCliVersion(),'spanName':_0x4d7c49[_0x52d0a2(0x10b)],'eventType':_0x52d0a2(0x112),'logData':_0x4d7c49[_0x52d0a2(0x10d)],..._0x4d7c49['traceparent']&&{'traceparent':_0x4d7c49[_0x52d0a2(0x105)]}});}
@@ -1 +1 @@
1
- function a1_0x2c1b(_0x1e6cef,_0x3a2d68){_0x1e6cef=_0x1e6cef-0xf9;const _0x3d6585=a1_0x3d65();let _0x2c1b76=_0x3d6585[_0x1e6cef];return _0x2c1b76;}const a1_0x5c4cb6=a1_0x2c1b;(function(_0x35a162,_0x2e21f6){const _0x289b01=a1_0x2c1b,_0x4b0098=_0x35a162();while(!![]){try{const _0x209cf9=parseInt(_0x289b01(0x101))/0x1+parseInt(_0x289b01(0x10d))/0x2*(-parseInt(_0x289b01(0x11b))/0x3)+parseInt(_0x289b01(0x10b))/0x4*(-parseInt(_0x289b01(0x109))/0x5)+-parseInt(_0x289b01(0x12d))/0x6*(-parseInt(_0x289b01(0x115))/0x7)+parseInt(_0x289b01(0x128))/0x8*(parseInt(_0x289b01(0x11d))/0x9)+parseInt(_0x289b01(0x130))/0xa*(-parseInt(_0x289b01(0x123))/0xb)+-parseInt(_0x289b01(0xff))/0xc*(parseInt(_0x289b01(0x106))/0xd);if(_0x209cf9===_0x2e21f6)break;else _0x4b0098['push'](_0x4b0098['shift']());}catch(_0x101c32){_0x4b0098['push'](_0x4b0098['shift']());}}}(a1_0x3d65,0x23b67));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a1_0x5c4cb6(0xfd),'folders':[a1_0x5c4cb6(0x127),a1_0x5c4cb6(0xfb)],'files':[{'type':a1_0x5c4cb6(0x12a),'path':'.cursor/skills/rabetbase.md','template':a1_0x5c4cb6(0x12f)}]},'windsurf':{'name':a1_0x5c4cb6(0x103),'description':'Windsurf\x20IDE','folders':[a1_0x5c4cb6(0x111)],'files':[{'type':a1_0x5c4cb6(0x12a),'path':'.windsurf/workflows/rabetbase.md','template':a1_0x5c4cb6(0x12f)}]},'claude':{'name':'Claude\x20Code','description':a1_0x5c4cb6(0x11f),'folders':[a1_0x5c4cb6(0x118)],'files':[{'type':a1_0x5c4cb6(0x12a),'path':a1_0x5c4cb6(0x120),'template':a1_0x5c4cb6(0x12f)}]},'cline':{'name':'Cline','description':a1_0x5c4cb6(0x116),'folders':[a1_0x5c4cb6(0xfc)],'files':[{'type':a1_0x5c4cb6(0x12a),'path':'.cline/skills/lovrabet/SKILL.md','template':a1_0x5c4cb6(0x12f)}]},'codex':{'name':a1_0x5c4cb6(0x10e),'description':a1_0x5c4cb6(0x124),'folders':[a1_0x5c4cb6(0x104)],'files':[{'type':a1_0x5c4cb6(0x12a),'path':'.codex/skills/lovrabet/SKILL.md','template':a1_0x5c4cb6(0x12f)}]},'opencode':{'name':a1_0x5c4cb6(0x108),'description':a1_0x5c4cb6(0x102),'folders':[a1_0x5c4cb6(0x11a)],'files':[{'type':'file','path':a1_0x5c4cb6(0x10c),'template':a1_0x5c4cb6(0x12f)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a1_0x5c4cb6(0x112)],'files':[{'type':a1_0x5c4cb6(0x12a),'path':a1_0x5c4cb6(0x114),'template':a1_0x5c4cb6(0x12f)},{'type':a1_0x5c4cb6(0x12a),'path':a1_0x5c4cb6(0x12c),'template':a1_0x5c4cb6(0x12f)}]},'codebuddy':{'name':a1_0x5c4cb6(0x11e),'description':a1_0x5c4cb6(0x12b),'folders':['.codebuddy'],'files':[{'type':a1_0x5c4cb6(0x12a),'path':a1_0x5c4cb6(0x129),'template':a1_0x5c4cb6(0x12f)}]},'trae':{'name':a1_0x5c4cb6(0x10f),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a1_0x5c4cb6(0x12a),'path':a1_0x5c4cb6(0xfe),'template':a1_0x5c4cb6(0x12f)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a1_0x5c4cb6(0x113),'description':a1_0x5c4cb6(0x119),'folders':[a1_0x5c4cb6(0x122)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a1_0x5c4cb6(0x12f)}]},'antigravity':{'name':a1_0x5c4cb6(0x110),'description':a1_0x5c4cb6(0x125),'folders':[a1_0x5c4cb6(0x122)],'files':[{'type':'file','path':a1_0x5c4cb6(0x10a),'template':a1_0x5c4cb6(0x12f)}]}};export const CORE_IDE_LIST=[a1_0x5c4cb6(0xfa),a1_0x5c4cb6(0x126),a1_0x5c4cb6(0xf9),a1_0x5c4cb6(0x107),'cursor',a1_0x5c4cb6(0x100),a1_0x5c4cb6(0x121),a1_0x5c4cb6(0x11c),a1_0x5c4cb6(0x105)];function a1_0x3d65(){const _0x199ac3=['9guXAjy','CodeBuddy','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','qoder','.agent','11CZtMQN','Codex\x20IDE','Antigravity\x20IDE','cline','.cursorrules','2057536qYSRuB','.codebuddy/skills/lovrabet/SKILL.md','file','CodeBuddy\x20IDE','.qoder/skills/lovrabet/SKILL.md','60ZWxIPf','cursor','SKILL.md.tpl','1033490nYWVRH','codebuddy','claude','.cursor','.cline','Cursor\x20IDE','.trae/skills/lovrabet/SKILL.md','156IbZoCp','opencode','242627hJNCbE','OpenCode\x20IDE','Windsurf','.codex','windsurf','144521HCVGig','codex','OpenCode','542785NXDaMW','.agent/skills/lovrabet/SKILL.md','4bGxzIz','.opencode/skills/lovrabet/SKILL.md','7466PrgdIc','Codex','Trae','Antigravity','.windsurf','.qoder','其他\x20(通用模板)','.qoder/rules/rabetbase.md','161420wjGQfR','Cline\x20IDE','agent','.claude','通用模板\x20-\x20兜底方案','.opencode','183dZKfTo','trae'];a1_0x3d65=function(){return _0x199ac3;};return a1_0x3d65();}export const IDE_LIST=['antigravity',a1_0x5c4cb6(0xfa),a1_0x5c4cb6(0x126),a1_0x5c4cb6(0xf9),a1_0x5c4cb6(0x107),a1_0x5c4cb6(0x12e),'opencode','qoder',a1_0x5c4cb6(0x11c),'windsurf',a1_0x5c4cb6(0x117)];export const ALL_CORE_IDES=[a1_0x5c4cb6(0x12e),'windsurf',a1_0x5c4cb6(0xfa),'cline',a1_0x5c4cb6(0x107),a1_0x5c4cb6(0x100),'qoder',a1_0x5c4cb6(0xf9),'trae'];
1
+ const a1_0x30d109=a1_0x3a6d;function a1_0x9237(){const _0x116929=['Trae\x20IDE','Windsurf','cline','.trae/skills/lovrabet/SKILL.md','cursor','trae','opencode','5091888pftzMf','7087815EtDXnm','Windsurf\x20IDE','Claude\x20Code','qoder','395994mkeOCO','.agent/skills/lovrabet/SKILL.md','Trae','.windsurf','claude','OpenCode','Codex','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','codex','.opencode/skills/lovrabet/SKILL.md','file','codebuddy','CodeBuddy','Antigravity\x20IDE','.claude/skills/lovrabet/SKILL.md','4339120BsmbKd','5997YdFfTb','.opencode','.codebuddy','.cursor','35dzDgRw','19914QSBXqc','.agent','Antigravity','1028TPULQn','windsurf','.qoder/skills/lovrabet/SKILL.md','1695606BbtyyR','agent','SKILL.md.tpl','.claude','antigravity','Qoder','其他\x20(通用模板)','Codex\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md'];a1_0x9237=function(){return _0x116929;};return a1_0x9237();}(function(_0x49824e,_0x4b173b){const _0x553f32=a1_0x3a6d,_0x3179c0=_0x49824e();while(!![]){try{const _0x31a5ca=-parseInt(_0x553f32(0x96))/0x1+parseInt(_0x553f32(0x80))/0x2+parseInt(_0x553f32(0x75))/0x3*(-parseInt(_0x553f32(0x7d))/0x4)+-parseInt(_0x553f32(0x74))/0x5+parseInt(_0x553f32(0x7a))/0x6*(parseInt(_0x553f32(0x79))/0x7)+parseInt(_0x553f32(0x91))/0x8+parseInt(_0x553f32(0x92))/0x9;if(_0x31a5ca===_0x4b173b)break;else _0x3179c0['push'](_0x3179c0['shift']());}catch(_0x32d87a){_0x3179c0['push'](_0x3179c0['shift']());}}}(a1_0x9237,0x7cb8a));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':['.cursorrules',a1_0x30d109(0x78)],'files':[{'type':a1_0x30d109(0x6f),'path':'.cursor/skills/rabetbase.md','template':a1_0x30d109(0x82)}]},'windsurf':{'name':a1_0x30d109(0x8b),'description':a1_0x30d109(0x93),'folders':[a1_0x30d109(0x99)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x89),'template':a1_0x30d109(0x82)}]},'claude':{'name':a1_0x30d109(0x94),'description':a1_0x30d109(0x94),'folders':[a1_0x30d109(0x83)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x73),'template':a1_0x30d109(0x82)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x9e),'template':a1_0x30d109(0x82)}]},'codex':{'name':a1_0x30d109(0x9c),'description':a1_0x30d109(0x87),'folders':['.codex'],'files':[{'type':'file','path':a1_0x30d109(0x9f),'template':a1_0x30d109(0x82)}]},'opencode':{'name':a1_0x30d109(0x9b),'description':'OpenCode\x20IDE','folders':[a1_0x30d109(0x76)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x6e),'template':a1_0x30d109(0x82)}]},'qoder':{'name':a1_0x30d109(0x85),'description':a1_0x30d109(0x9d),'folders':['.qoder'],'files':[{'type':a1_0x30d109(0x6f),'path':'.qoder/rules/rabetbase.md','template':a1_0x30d109(0x82)},{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x7f),'template':a1_0x30d109(0x82)}]},'codebuddy':{'name':a1_0x30d109(0x71),'description':'CodeBuddy\x20IDE','folders':[a1_0x30d109(0x77)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x88),'template':a1_0x30d109(0x82)}]},'trae':{'name':a1_0x30d109(0x98),'description':a1_0x30d109(0x8a),'folders':['.trae'],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x8d),'template':a1_0x30d109(0x82)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a1_0x30d109(0x86),'description':a1_0x30d109(0x6c),'folders':[a1_0x30d109(0x7b)],'files':[{'type':a1_0x30d109(0x6f),'path':a1_0x30d109(0x97),'template':a1_0x30d109(0x82)}]},'antigravity':{'name':a1_0x30d109(0x7c),'description':a1_0x30d109(0x72),'folders':[a1_0x30d109(0x7b)],'files':[{'type':a1_0x30d109(0x6f),'path':'.agent/skills/lovrabet/SKILL.md','template':a1_0x30d109(0x82)}]}};export const CORE_IDE_LIST=[a1_0x30d109(0x9a),a1_0x30d109(0x8c),a1_0x30d109(0x70),a1_0x30d109(0x6d),a1_0x30d109(0x8e),'opencode','qoder','trae',a1_0x30d109(0x7e)];function a1_0x3a6d(_0x27e923,_0x42108e){_0x27e923=_0x27e923-0x6c;const _0x92370f=a1_0x9237();let _0x3a6d42=_0x92370f[_0x27e923];return _0x3a6d42;}export const IDE_LIST=[a1_0x30d109(0x84),a1_0x30d109(0x9a),'cline',a1_0x30d109(0x70),a1_0x30d109(0x6d),'cursor','opencode',a1_0x30d109(0x95),a1_0x30d109(0x8f),'windsurf',a1_0x30d109(0x81)];export const ALL_CORE_IDES=[a1_0x30d109(0x8e),'windsurf',a1_0x30d109(0x9a),a1_0x30d109(0x8c),a1_0x30d109(0x6d),a1_0x30d109(0x90),a1_0x30d109(0x95),'codebuddy',a1_0x30d109(0x8f)];
@@ -1 +1 @@
1
- (function(_0x148bf4,_0x1f3a19){const _0x1c8c92=a12_0x5304,_0x14db3d=_0x148bf4();while(!![]){try{const _0x437507=parseInt(_0x1c8c92(0x166))/0x1+parseInt(_0x1c8c92(0x15f))/0x2+-parseInt(_0x1c8c92(0x165))/0x3*(-parseInt(_0x1c8c92(0x168))/0x4)+parseInt(_0x1c8c92(0x164))/0x5+parseInt(_0x1c8c92(0x160))/0x6*(parseInt(_0x1c8c92(0x163))/0x7)+parseInt(_0x1c8c92(0x162))/0x8+-parseInt(_0x1c8c92(0x161))/0x9*(parseInt(_0x1c8c92(0x167))/0xa);if(_0x437507===_0x1f3a19)break;else _0x14db3d['push'](_0x14db3d['shift']());}catch(_0x5631a2){_0x14db3d['push'](_0x14db3d['shift']());}}}(a12_0x2ebc,0x4c930));function a12_0x5304(_0x6d018d,_0x1bcc85){_0x6d018d=_0x6d018d-0x15f;const _0x2ebcec=a12_0x2ebc();let _0x530440=_0x2ebcec[_0x6d018d];return _0x530440;}import{createJqFilter}from'@lovrabet/cli-framework';function a12_0x2ebc(){const _0x3962c6=['1368OzlGEL','13167135BLFtNz','4364872BjalLf','17584KvXVYS','862840KkcZhZ','3EklxdU','388488SjyZdc','10BbyfrP','36468snuggy','176290ujrKSm'];a12_0x2ebc=function(){return _0x3962c6;};return a12_0x2ebc();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);
1
+ (function(_0x350fef,_0x37c81e){const _0x196273=a12_0x255e,_0x5d708a=_0x350fef();while(!![]){try{const _0x52cedf=parseInt(_0x196273(0x116))/0x1*(-parseInt(_0x196273(0x112))/0x2)+-parseInt(_0x196273(0x10f))/0x3+parseInt(_0x196273(0x10e))/0x4+parseInt(_0x196273(0x114))/0x5*(-parseInt(_0x196273(0x115))/0x6)+-parseInt(_0x196273(0x110))/0x7+parseInt(_0x196273(0x111))/0x8+-parseInt(_0x196273(0x113))/0x9*(-parseInt(_0x196273(0x117))/0xa);if(_0x52cedf===_0x37c81e)break;else _0x5d708a['push'](_0x5d708a['shift']());}catch(_0x3992f9){_0x5d708a['push'](_0x5d708a['shift']());}}}(a12_0x5ef3,0x54844));function a12_0x255e(_0x53d8d2,_0x57db0d){_0x53d8d2=_0x53d8d2-0x10e;const _0x5ef386=a12_0x5ef3();let _0x255eb4=_0x5ef386[_0x53d8d2];return _0x255eb4;}import{createJqFilter}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors);function a12_0x5ef3(){const _0x4c0b7d=['45aDAJXJ','5RiWdpS','2284278nYVipx','35cbzten','210770lNaKNj','2301004LgpYPp','315579wNaQNk','1035391MxHEcQ','3699424OdCAfT','9318ZdKIxa'];a12_0x5ef3=function(){return _0x4c0b7d;};return a12_0x5ef3();}
@@ -1 +1 @@
1
- (function(_0x29875d,_0x2d1eee){const _0x395ebf=a13_0x22ba,_0x164502=_0x29875d();while(!![]){try{const _0x6ddeac=parseInt(_0x395ebf(0x97))/0x1*(parseInt(_0x395ebf(0x90))/0x2)+-parseInt(_0x395ebf(0x98))/0x3*(parseInt(_0x395ebf(0x93))/0x4)+-parseInt(_0x395ebf(0x99))/0x5*(-parseInt(_0x395ebf(0x8c))/0x6)+-parseInt(_0x395ebf(0x96))/0x7+parseInt(_0x395ebf(0x9a))/0x8*(parseInt(_0x395ebf(0x8f))/0x9)+-parseInt(_0x395ebf(0x92))/0xa*(-parseInt(_0x395ebf(0x8d))/0xb)+-parseInt(_0x395ebf(0x9b))/0xc*(parseInt(_0x395ebf(0x8b))/0xd);if(_0x6ddeac===_0x2d1eee)break;else _0x164502['push'](_0x164502['shift']());}catch(_0x515e11){_0x164502['push'](_0x164502['shift']());}}}(a13_0x1cca,0x1e538));function a13_0x1cca(){const _0x63c4a6=['json','112450XrjHrd','54WsbvnN','1001LMbGet','stableVersion','171OpbHvM','42414elqDsR','now','20390ZHcchf','4nFpdks','node','application/json','436149grGehg','9vfDSOw','671475HflhRq','130005ZtnkUu','28664kekMbM','372kmKGmJ','cli'];a13_0x1cca=function(){return _0x63c4a6;};return a13_0x1cca();}import{getTemplateBaseUrl}from'../utils/config.js';function a13_0x22ba(_0x499d02,_0x47320f){_0x499d02=_0x499d02-0x89;const _0x1ccaca=a13_0x1cca();let _0x22ba80=_0x1ccaca[_0x499d02];return _0x22ba80;}export async function fetchCdnConfig(){const _0x450fbc=a13_0x22ba;try{const _0x4a3547=getTemplateBaseUrl(),_0x5f49ee=_0x4a3547+'/config.json',_0x486929=await fetch(_0x5f49ee,{'headers':{'Accept':_0x450fbc(0x95)}});if(!_0x486929['ok'])return null;const _0x10b9c2=await _0x486929[_0x450fbc(0x8a)]();if(!_0x10b9c2[_0x450fbc(0x89)]?.[_0x450fbc(0x8e)]||!_0x10b9c2['sdk']?.[_0x450fbc(0x94)]?.['stableVersion'])return null;return _0x10b9c2;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x245d50=a13_0x22ba,_0xb756ca=Date[_0x245d50(0x91)]();if(cachedConfig&&_0xb756ca-cacheTime<CACHE_TTL)return cachedConfig;const _0x4764a2=await fetchCdnConfig();return _0x4764a2&&(cachedConfig=_0x4764a2,cacheTime=_0xb756ca),_0x4764a2;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
1
+ function a13_0x2c3b(_0x5798ba,_0x4c0518){_0x5798ba=_0x5798ba-0x1bb;const _0x17bcc7=a13_0x17bc();let _0x2c3b0f=_0x17bcc7[_0x5798ba];return _0x2c3b0f;}(function(_0x27e78c,_0x132d47){const _0x4ed5c1=a13_0x2c3b,_0x301c47=_0x27e78c();while(!![]){try{const _0x13f17c=-parseInt(_0x4ed5c1(0x1c7))/0x1+-parseInt(_0x4ed5c1(0x1c3))/0x2*(-parseInt(_0x4ed5c1(0x1c6))/0x3)+-parseInt(_0x4ed5c1(0x1c1))/0x4*(parseInt(_0x4ed5c1(0x1c5))/0x5)+-parseInt(_0x4ed5c1(0x1bd))/0x6*(parseInt(_0x4ed5c1(0x1cd))/0x7)+-parseInt(_0x4ed5c1(0x1bb))/0x8*(-parseInt(_0x4ed5c1(0x1c9))/0x9)+parseInt(_0x4ed5c1(0x1bc))/0xa*(-parseInt(_0x4ed5c1(0x1c0))/0xb)+parseInt(_0x4ed5c1(0x1ca))/0xc;if(_0x13f17c===_0x132d47)break;else _0x301c47['push'](_0x301c47['shift']());}catch(_0x500880){_0x301c47['push'](_0x301c47['shift']());}}}(a13_0x17bc,0x60589));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x27a3a9=a13_0x2c3b;try{const _0x2823b1=getTemplateBaseUrl(),_0x51ca1c=_0x2823b1+_0x27a3a9(0x1be),_0x4e2f63=await fetch(_0x51ca1c,{'headers':{'Accept':_0x27a3a9(0x1c4)}});if(!_0x4e2f63['ok'])return null;const _0x4ef203=await _0x4e2f63['json']();if(!_0x4ef203[_0x27a3a9(0x1c2)]?.[_0x27a3a9(0x1cb)]||!_0x4ef203[_0x27a3a9(0x1c8)]?.[_0x27a3a9(0x1bf)]?.[_0x27a3a9(0x1cb)])return null;return _0x4ef203;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;function a13_0x17bc(){const _0x372d8f=['1167OHprhe','474372PCfqiu','sdk','52011WVjvWG','17174244BBpKVY','stableVersion','now','4907VsLXPm','504plsAMC','20tuzGYj','4278axdtmN','/config.json','node','2348929oGJFGG','4mGWpyo','cli','364jjhqKi','application/json','350830HuvYSp'];a13_0x17bc=function(){return _0x372d8f;};return a13_0x17bc();}const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x363df9=a13_0x2c3b,_0x19bee0=Date[_0x363df9(0x1cc)]();if(cachedConfig&&_0x19bee0-cacheTime<CACHE_TTL)return cachedConfig;const _0x1c7a08=await fetchCdnConfig();return _0x1c7a08&&(cachedConfig=_0x1c7a08,cacheTime=_0x19bee0),_0x1c7a08;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
@@ -1 +1 @@
1
- const a6_0x3fafa7=a6_0x1491;(function(_0x52bfae,_0x79ff86){const _0xbac1e8=a6_0x1491,_0x2edc61=_0x52bfae();while(!![]){try{const _0x22beda=-parseInt(_0xbac1e8(0x10a))/0x1+parseInt(_0xbac1e8(0x122))/0x2+-parseInt(_0xbac1e8(0x106))/0x3+parseInt(_0xbac1e8(0x11b))/0x4+-parseInt(_0xbac1e8(0x105))/0x5*(parseInt(_0xbac1e8(0x115))/0x6)+-parseInt(_0xbac1e8(0x123))/0x7*(parseInt(_0xbac1e8(0x124))/0x8)+-parseInt(_0xbac1e8(0x11f))/0x9*(-parseInt(_0xbac1e8(0x116))/0xa);if(_0x22beda===_0x79ff86)break;else _0x2edc61['push'](_0x2edc61['shift']());}catch(_0x5c3a5f){_0x2edc61['push'](_0x2edc61['shift']());}}}(a6_0x443a,0xb8aa8));function a6_0x1491(_0x5b3111,_0xb71e2b){_0x5b3111=_0x5b3111-0x105;const _0x443ab3=a6_0x443a();let _0x149195=_0x443ab3[_0x5b3111];return _0x149195;}import a6_0x3bbccd from'node:fs';import a6_0x3e9842 from'node:path';import a6_0x181501 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a6_0x3fafa7(0x11c);function isNonNumericVersion(_0x19a59d){const _0x3c16bd=a6_0x3fafa7,_0x1a8a5f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1a8a5f[_0x3c16bd(0x10c)](_0xc11139=>_0xc11139[_0x3c16bd(0x129)](_0x19a59d));}function getInstalledVersion(_0x4c47c9,_0x1f4ef3){const _0x262f33=a6_0x3fafa7;try{const _0x5d0afd=a6_0x3e9842['join'](_0x4c47c9,_0x262f33(0x114),_0x1f4ef3,_0x262f33(0x120));if(a6_0x3bbccd['existsSync'](_0x5d0afd)){const _0x1d731a=JSON[_0x262f33(0x10f)](a6_0x3bbccd[_0x262f33(0x125)](_0x5d0afd,_0x262f33(0x108)));return _0x1d731a[_0x262f33(0x127)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x44ec32=a6_0x3fafa7;try{const _0x28d6db=await getCdnConfig();return _0x28d6db?.[_0x44ec32(0x11a)]?.[_0x44ec32(0x12a)]?.[_0x44ec32(0x110)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x19266d=a6_0x3fafa7;try{const _0x15a2b8=await getCdnConfig();return _0x15a2b8?.[_0x19266d(0x11a)]?.[_0x19266d(0x12a)]?.[_0x19266d(0x10d)]||_0x19266d(0x10b);}catch{return _0x19266d(0x10b);}}function a6_0x443a(){const _0x26f962=['@lovrabet/sdk','some','packageName','minVersion','parse','stableVersion','dependencies','npm\x20install\x20','\x20\x20\x20Upgrade\x20command:\x20','node_modules','89844ERxONf','2370FCQXOq','\x20\x20\x20Stable\x20version:\x20','↪\x20SDK\x20update\x20available','log','sdk','2657556HWLHor','1.2.0','join','devDependencies','73881pJbxtq','package.json','\x1b[1m','368266oIxFvz','389585CdjYPD','144iMjPuf','readFileSync','coerce','version','\x1b[33m','test','node','5bXBWeC','2585925RibNzD','existsSync','utf-8','\x20\x20\x20Current\x20version:\x20','158924StjzMo'];a6_0x443a=function(){return _0x26f962;};return a6_0x443a();}export async function checkSdkVersion(_0x45687){const _0x57ede0=a6_0x3fafa7,_0x282d96=a6_0x3e9842[_0x57ede0(0x11d)](_0x45687,_0x57ede0(0x120)),[_0xcce6ad,_0x13928f]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x2a8af4=_0xcce6ad||FALLBACK_MIN_SDK_VERSION;if(!a6_0x3bbccd[_0x57ede0(0x107)](_0x282d96))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2a8af4,'packageName':_0x13928f,'stableVersion':_0xcce6ad};try{const _0x865eff=JSON[_0x57ede0(0x10f)](a6_0x3bbccd[_0x57ede0(0x125)](_0x282d96,'utf8')),_0x5956cf=_0x865eff[_0x57ede0(0x111)]||{},_0x236241=_0x865eff[_0x57ede0(0x11e)]||{},_0x2369c0=_0x5956cf[_0x13928f]||_0x236241[_0x13928f];if(!_0x2369c0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2a8af4,'packageName':_0x13928f,'stableVersion':_0xcce6ad};let _0x3ef0ed=getInstalledVersion(_0x45687,_0x13928f);!_0x3ef0ed&&(_0x3ef0ed=_0x2369c0);if(isNonNumericVersion(_0x2369c0))return{'installed':!![],'version':_0x3ef0ed,'needsUpgrade':![],'minVersion':_0x2a8af4,'packageName':_0x13928f,'stableVersion':_0xcce6ad};const _0x3ff1cf=a6_0x181501[_0x57ede0(0x126)](_0x3ef0ed),_0x52f28e=a6_0x181501[_0x57ede0(0x126)](_0x2a8af4),_0x412e7b=_0x3ff1cf&&_0x52f28e?a6_0x181501['lt'](_0x3ff1cf,_0x52f28e):![];return{'installed':!![],'version':_0x3ef0ed,'needsUpgrade':_0x412e7b,'minVersion':_0x2a8af4,'packageName':_0x13928f,'stableVersion':_0xcce6ad};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2a8af4,'packageName':_0x13928f,'stableVersion':_0xcce6ad};}}export function checkSdkVersionSync(_0x3de7f9){const _0x1ec8c0=a6_0x3fafa7,_0x2a90d3=a6_0x3e9842[_0x1ec8c0(0x11d)](_0x3de7f9,_0x1ec8c0(0x120)),_0x35d738=_0x1ec8c0(0x10b);if(!a6_0x3bbccd[_0x1ec8c0(0x107)](_0x2a90d3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x35d738,'stableVersion':null};try{const _0x16cc1a=JSON[_0x1ec8c0(0x10f)](a6_0x3bbccd[_0x1ec8c0(0x125)](_0x2a90d3,'utf8')),_0x35e63c=_0x16cc1a[_0x1ec8c0(0x111)]||{},_0x526ffc=_0x16cc1a[_0x1ec8c0(0x11e)]||{},_0x3e822b=_0x35e63c[_0x35d738]||_0x526ffc[_0x35d738];if(!_0x3e822b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x35d738,'stableVersion':null};let _0x3211dc=getInstalledVersion(_0x3de7f9,_0x35d738);!_0x3211dc&&(_0x3211dc=_0x3e822b);if(isNonNumericVersion(_0x3e822b))return{'installed':!![],'version':_0x3211dc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x35d738,'stableVersion':null};const _0x3bddfb=a6_0x181501['coerce'](_0x3211dc),_0x54e488=_0x3bddfb?a6_0x181501['lt'](_0x3bddfb,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3211dc,'needsUpgrade':_0x54e488,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x35d738,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x35d738,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x46ccdb){const _0x299965=a6_0x3fafa7;if(!_0x46ccdb['needsUpgrade'])return;const _0x4be07f=_0x299965(0x128),_0x25a592='\x1b[0m',_0x12dd88=_0x299965(0x121),_0x9d7db9=_0x46ccdb['packageName']||'@lovrabet/sdk',_0x353f21=_0x46ccdb['stableVersion']||_0x46ccdb[_0x299965(0x10e)],_0x427746=_0x299965(0x112)+_0x9d7db9+'@'+(_0x353f21||'latest');console[_0x299965(0x119)](),console['log'](''+_0x4be07f+_0x12dd88+_0x299965(0x118)+_0x25a592),console[_0x299965(0x119)](_0x4be07f+_0x299965(0x109)+_0x9d7db9+'@'+_0x46ccdb[_0x299965(0x127)]+_0x25a592),console[_0x299965(0x119)](_0x4be07f+_0x299965(0x117)+_0x353f21+_0x25a592),console[_0x299965(0x119)](_0x4be07f+_0x299965(0x113)+_0x427746+_0x25a592),console[_0x299965(0x119)]();}
1
+ (function(_0x577172,_0x1870c6){const _0x547452=a6_0x4d75,_0x30a92f=_0x577172();while(!![]){try{const _0x23a7d1=parseInt(_0x547452(0x73))/0x1*(-parseInt(_0x547452(0x79))/0x2)+-parseInt(_0x547452(0x72))/0x3*(-parseInt(_0x547452(0x85))/0x4)+-parseInt(_0x547452(0x81))/0x5+-parseInt(_0x547452(0x88))/0x6+parseInt(_0x547452(0x7e))/0x7*(-parseInt(_0x547452(0x8d))/0x8)+parseInt(_0x547452(0x71))/0x9*(-parseInt(_0x547452(0x75))/0xa)+-parseInt(_0x547452(0x7a))/0xb*(-parseInt(_0x547452(0x83))/0xc);if(_0x23a7d1===_0x1870c6)break;else _0x30a92f['push'](_0x30a92f['shift']());}catch(_0x147efd){_0x30a92f['push'](_0x30a92f['shift']());}}}(a6_0x1165,0x43a80));function a6_0x1165(){const _0x4e6f25=['package.json','847930yshUgY','3311lLpREo','readFileSync','utf8','npm\x20install\x20','331247ptAHhY','sdk','version','750730ROYRko','test','58980nOIraQ','some','873164fuglux','node','devDependencies','1881960okpQpC','\x20\x20\x20Upgrade\x20command:\x20','minVersion','log','stableVersion','88UEFLif','parse','latest','existsSync','coerce','@lovrabet/sdk','\x1b[1m','needsUpgrade','18zaoWDp','3dmlVpC','1BbxbjF','all','61420Ccwmhx','join','dependencies'];a6_0x1165=function(){return _0x4e6f25;};return a6_0x1165();}import a6_0x3b9f54 from'node:fs';import a6_0x3fe43e from'node:path';import a6_0x24eb9f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x2bc537){const _0x4a127a=a6_0x4d75,_0x2bf6e1=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2bf6e1[_0x4a127a(0x84)](_0x1322e6=>_0x1322e6[_0x4a127a(0x82)](_0x2bc537));}function getInstalledVersion(_0x5c5751,_0x5c923b){const _0x445533=a6_0x4d75;try{const _0x241a9d=a6_0x3fe43e[_0x445533(0x76)](_0x5c5751,'node_modules',_0x5c923b,_0x445533(0x78));if(a6_0x3b9f54[_0x445533(0x90)](_0x241a9d)){const _0x1f8a6c=JSON['parse'](a6_0x3b9f54['readFileSync'](_0x241a9d,'utf-8'));return _0x1f8a6c[_0x445533(0x80)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5bcd7a=a6_0x4d75;try{const _0xaf1d20=await getCdnConfig();return _0xaf1d20?.[_0x5bcd7a(0x7f)]?.[_0x5bcd7a(0x86)]?.[_0x5bcd7a(0x8c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3c9b65=a6_0x4d75;try{const _0xcdcf21=await getCdnConfig();return _0xcdcf21?.[_0x3c9b65(0x7f)]?.['node']?.['packageName']||_0x3c9b65(0x92);}catch{return _0x3c9b65(0x92);}}export async function checkSdkVersion(_0x5712a8){const _0x2294ff=a6_0x4d75,_0x158763=a6_0x3fe43e[_0x2294ff(0x76)](_0x5712a8,_0x2294ff(0x78)),[_0x10b33f,_0x102862]=await Promise[_0x2294ff(0x74)]([getSdkStableVersion(),getSdkPackageName()]),_0x32d51b=_0x10b33f||FALLBACK_MIN_SDK_VERSION;if(!a6_0x3b9f54['existsSync'](_0x158763))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};try{const _0xa77ac2=JSON['parse'](a6_0x3b9f54['readFileSync'](_0x158763,_0x2294ff(0x7c))),_0x501c59=_0xa77ac2[_0x2294ff(0x77)]||{},_0x323479=_0xa77ac2['devDependencies']||{},_0x250f67=_0x501c59[_0x102862]||_0x323479[_0x102862];if(!_0x250f67)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};let _0x2d6019=getInstalledVersion(_0x5712a8,_0x102862);!_0x2d6019&&(_0x2d6019=_0x250f67);if(isNonNumericVersion(_0x250f67))return{'installed':!![],'version':_0x2d6019,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};const _0x4c862b=a6_0x24eb9f['coerce'](_0x2d6019),_0x4ce67a=a6_0x24eb9f[_0x2294ff(0x91)](_0x32d51b),_0x50a094=_0x4c862b&&_0x4ce67a?a6_0x24eb9f['lt'](_0x4c862b,_0x4ce67a):![];return{'installed':!![],'version':_0x2d6019,'needsUpgrade':_0x50a094,'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x32d51b,'packageName':_0x102862,'stableVersion':_0x10b33f};}}function a6_0x4d75(_0x3ab128,_0x133711){_0x3ab128=_0x3ab128-0x70;const _0x11653c=a6_0x1165();let _0x4d7586=_0x11653c[_0x3ab128];return _0x4d7586;}export function checkSdkVersionSync(_0x3e4adc){const _0x2f0008=a6_0x4d75,_0x5616e9=a6_0x3fe43e[_0x2f0008(0x76)](_0x3e4adc,_0x2f0008(0x78)),_0x3b612e=_0x2f0008(0x92);if(!a6_0x3b9f54[_0x2f0008(0x90)](_0x5616e9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};try{const _0x205137=JSON[_0x2f0008(0x8e)](a6_0x3b9f54[_0x2f0008(0x7b)](_0x5616e9,_0x2f0008(0x7c))),_0x43d6b2=_0x205137[_0x2f0008(0x77)]||{},_0x53ac32=_0x205137[_0x2f0008(0x87)]||{},_0x41ecfd=_0x43d6b2[_0x3b612e]||_0x53ac32[_0x3b612e];if(!_0x41ecfd)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};let _0x50b5fc=getInstalledVersion(_0x3e4adc,_0x3b612e);!_0x50b5fc&&(_0x50b5fc=_0x41ecfd);if(isNonNumericVersion(_0x41ecfd))return{'installed':!![],'version':_0x50b5fc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};const _0x2f9cd4=a6_0x24eb9f[_0x2f0008(0x91)](_0x50b5fc),_0xbf0a3=_0x2f9cd4?a6_0x24eb9f['lt'](_0x2f9cd4,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x50b5fc,'needsUpgrade':_0xbf0a3,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b612e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x11839b){const _0xa6e7af=a6_0x4d75;if(!_0x11839b[_0xa6e7af(0x70)])return;const _0x1edfea='\x1b[33m',_0x1b23d4='\x1b[0m',_0x4bfcf6=_0xa6e7af(0x93),_0x35baa8=_0x11839b['packageName']||_0xa6e7af(0x92),_0x24bc0e=_0x11839b[_0xa6e7af(0x8c)]||_0x11839b[_0xa6e7af(0x8a)],_0x3a691a=_0xa6e7af(0x7d)+_0x35baa8+'@'+(_0x24bc0e||_0xa6e7af(0x8f));console[_0xa6e7af(0x8b)](),console[_0xa6e7af(0x8b)](''+_0x1edfea+_0x4bfcf6+'↪\x20SDK\x20update\x20available'+_0x1b23d4),console[_0xa6e7af(0x8b)](_0x1edfea+'\x20\x20\x20Current\x20version:\x20'+_0x35baa8+'@'+_0x11839b[_0xa6e7af(0x80)]+_0x1b23d4),console[_0xa6e7af(0x8b)](_0x1edfea+'\x20\x20\x20Stable\x20version:\x20'+_0x24bc0e+_0x1b23d4),console[_0xa6e7af(0x8b)](_0x1edfea+_0xa6e7af(0x89)+_0x3a691a+_0x1b23d4),console[_0xa6e7af(0x8b)]();}
@@ -1 +1 @@
1
- (function(_0x368567,_0xc8c663){const _0x392ca7=a16_0x277c,_0x12aa3e=_0x368567();while(!![]){try{const _0x47a055=parseInt(_0x392ca7(0x19b))/0x1*(parseInt(_0x392ca7(0x1a0))/0x2)+parseInt(_0x392ca7(0x195))/0x3+-parseInt(_0x392ca7(0x1a5))/0x4+-parseInt(_0x392ca7(0x196))/0x5+parseInt(_0x392ca7(0x1a1))/0x6*(parseInt(_0x392ca7(0x1a6))/0x7)+-parseInt(_0x392ca7(0x192))/0x8*(-parseInt(_0x392ca7(0x18d))/0x9)+parseInt(_0x392ca7(0x18b))/0xa*(-parseInt(_0x392ca7(0x1a4))/0xb);if(_0x47a055===_0xc8c663)break;else _0x12aa3e['push'](_0x12aa3e['shift']());}catch(_0x4672a9){_0x12aa3e['push'](_0x12aa3e['shift']());}}}(a16_0x2bd9,0x532cd));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a16_0x277c(_0x4f93cd,_0x5609f6){_0x4f93cd=_0x4f93cd-0x18a;const _0x2bd9fe=a16_0x2bd9();let _0x277c3f=_0x2bd9fe[_0x4f93cd];return _0x277c3f;}import a16_0x23cd47 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a16_0x2bd9(){const _0x3c0a6c=['../..','\x1b[33m','log','6tseZPj','6gsEnFp','npm\x20install\x20-g\x20','utf-8','22QGKELa','1186852TOlwzD','2535883veiblp','\x1b[1m','↪\x20New\x20version\x20available','2421700cYfTlu','needsUpgrade','144288rEkplz','currentVersion','@latest','\x20\x20\x20Upgrade\x20command:\x20','test','272IKrvRJ','\x1b[0m','version','102747Kuxxnb','2218665PgaXcE','1.0.0','\x20\x20\x20Current\x20CLI\x20version:\x20','stableVersion','\x20\x20\x20Stable\x20version:\x20','207955EhTBhl','some'];a16_0x2bd9=function(){return _0x3c0a6c;};return a16_0x2bd9();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x24d1f1=a16_0x277c;try{const _0x1a59c4=fileURLToPath(import.meta.url),_0x3a08d5=resolve(dirname(_0x1a59c4),_0x24d1f1(0x19d)),_0x44ba73=resolve(_0x3a08d5,'package.json'),_0x5ea7e7=JSON['parse'](readFileSync(_0x44ba73,_0x24d1f1(0x1a3)));return _0x5ea7e7[_0x24d1f1(0x194)]||_0x24d1f1(0x197);}catch{return'1.0.0';}}function isNonNumericVersion(_0xa5e2b9){const _0x18cfa2=a16_0x277c,_0x4f8442=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x4f8442[_0x18cfa2(0x19c)](_0xe65ad6=>_0xe65ad6[_0x18cfa2(0x191)](_0xa5e2b9));}export async function checkCliVersion(){const _0x1767ad=a16_0x277c,_0x537c10=getCurrentCliVersion(),_0x5abedf=await getCdnConfig(),_0x379a64=_0x5abedf?.['cli']?.[_0x1767ad(0x199)]||null;let _0xd42b2=![];if(_0x379a64)try{const _0x181685=a16_0x23cd47['coerce'](_0x537c10),_0x289aca=a16_0x23cd47['coerce'](_0x379a64);_0x181685&&_0x289aca&&(_0xd42b2=a16_0x23cd47['lt'](_0x181685,_0x289aca));}catch{_0xd42b2=![];}return{'currentVersion':_0x537c10,'stableVersion':_0x379a64,'needsUpgrade':_0xd42b2,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x2d9ac2){const _0x17d552=a16_0x277c;if(!_0x2d9ac2[_0x17d552(0x18c)])return;const _0x3ac1f6=_0x17d552(0x19e),_0x5bd44b=_0x17d552(0x193),_0x235b5d=_0x17d552(0x1a7),_0x59cc63=_0x17d552(0x1a2)+NPM_PACKAGE_NAME+_0x17d552(0x18f);console['log'](),console[_0x17d552(0x19f)](''+_0x3ac1f6+_0x235b5d+_0x17d552(0x18a)+_0x5bd44b),console[_0x17d552(0x19f)](_0x3ac1f6+_0x17d552(0x198)+_0x2d9ac2[_0x17d552(0x18e)]+_0x5bd44b),console[_0x17d552(0x19f)](_0x3ac1f6+_0x17d552(0x19a)+_0x2d9ac2[_0x17d552(0x199)]+_0x5bd44b),console[_0x17d552(0x19f)](_0x3ac1f6+_0x17d552(0x190)+_0x59cc63+_0x5bd44b),console['log']();}
1
+ function a16_0x4b4d(_0x324289,_0x3a2a00){_0x324289=_0x324289-0xfb;const _0x5ac181=a16_0x5ac1();let _0x4b4d08=_0x5ac181[_0x324289];return _0x4b4d08;}(function(_0x56a8c5,_0xcbc0d0){const _0x51dddf=a16_0x4b4d,_0x159bf8=_0x56a8c5();while(!![]){try{const _0x4f67b6=-parseInt(_0x51dddf(0x108))/0x1+-parseInt(_0x51dddf(0x112))/0x2*(-parseInt(_0x51dddf(0x109))/0x3)+parseInt(_0x51dddf(0x110))/0x4+parseInt(_0x51dddf(0x106))/0x5*(parseInt(_0x51dddf(0x111))/0x6)+-parseInt(_0x51dddf(0xff))/0x7*(parseInt(_0x51dddf(0x10e))/0x8)+parseInt(_0x51dddf(0x104))/0x9+-parseInt(_0x51dddf(0x113))/0xa;if(_0x4f67b6===_0xcbc0d0)break;else _0x159bf8['push'](_0x159bf8['shift']());}catch(_0x39cb7d){_0x159bf8['push'](_0x159bf8['shift']());}}}(a16_0x5ac1,0x820a9));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a16_0x3b5b9f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x261e9c=a16_0x4b4d;try{const _0x27fcd3=fileURLToPath(import.meta.url),_0x37a494=resolve(dirname(_0x27fcd3),'../..'),_0x4b3d5e=resolve(_0x37a494,_0x261e9c(0x10c)),_0x157996=JSON[_0x261e9c(0xfe)](readFileSync(_0x4b3d5e,_0x261e9c(0x10d)));return _0x157996[_0x261e9c(0x103)]||_0x261e9c(0x105);}catch{return _0x261e9c(0x105);}}function isNonNumericVersion(_0xc1d463){const _0x2d621b=a16_0x4b4d,_0x117ad1=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x117ad1[_0x2d621b(0xfd)](_0x1619ae=>_0x1619ae[_0x2d621b(0x102)](_0xc1d463));}function a16_0x5ac1(){const _0x5ba846=['110dbSxCv','10665000HnjRim','\x1b[1m','npm\x20install\x20-g\x20','\x1b[0m','currentVersion','\x1b[33m','needsUpgrade','↪\x20New\x20version\x20available','log','some','parse','3668kofyNd','cli','@latest','test','version','7210323gtUwvF','1.0.0','3131515AzbaUS','\x20\x20\x20Stable\x20version:\x20','832234TzMfmK','46080TJLnfS','coerce','stableVersion','package.json','utf-8','4616QyPbfZ','\x20\x20\x20Upgrade\x20command:\x20','1845924yBBJmU','6ElrUFQ'];a16_0x5ac1=function(){return _0x5ba846;};return a16_0x5ac1();}export async function checkCliVersion(){const _0x6bed96=a16_0x4b4d,_0x3fadd8=getCurrentCliVersion(),_0x555e6=await getCdnConfig(),_0x3f7d3b=_0x555e6?.[_0x6bed96(0x100)]?.['stableVersion']||null;let _0x1deffa=![];if(_0x3f7d3b)try{const _0x4d7680=a16_0x3b5b9f[_0x6bed96(0x10a)](_0x3fadd8),_0x4bc693=a16_0x3b5b9f[_0x6bed96(0x10a)](_0x3f7d3b);_0x4d7680&&_0x4bc693&&(_0x1deffa=a16_0x3b5b9f['lt'](_0x4d7680,_0x4bc693));}catch{_0x1deffa=![];}return{'currentVersion':_0x3fadd8,'stableVersion':_0x3f7d3b,'needsUpgrade':_0x1deffa,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x26106e){const _0x313849=a16_0x4b4d;if(!_0x26106e[_0x313849(0x119)])return;const _0x4f38a9=_0x313849(0x118),_0x4d2f17=_0x313849(0x116),_0x5039bc=_0x313849(0x114),_0x27ee5f=_0x313849(0x115)+NPM_PACKAGE_NAME+_0x313849(0x101);console['log'](),console[_0x313849(0xfc)](''+_0x4f38a9+_0x5039bc+_0x313849(0xfb)+_0x4d2f17),console[_0x313849(0xfc)](_0x4f38a9+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x26106e[_0x313849(0x117)]+_0x4d2f17),console[_0x313849(0xfc)](_0x4f38a9+_0x313849(0x107)+_0x26106e[_0x313849(0x10b)]+_0x4d2f17),console[_0x313849(0xfc)](_0x4f38a9+_0x313849(0x10f)+_0x27ee5f+_0x4d2f17),console[_0x313849(0xfc)]();}
@@ -1 +1 @@
1
- (function(_0x3c8908,_0x35de14){const _0x391999=a8_0x4d07,_0x385443=_0x3c8908();while(!![]){try{const _0x11e2c2=-parseInt(_0x391999(0x133))/0x1*(parseInt(_0x391999(0x12d))/0x2)+parseInt(_0x391999(0x132))/0x3+-parseInt(_0x391999(0x12e))/0x4+parseInt(_0x391999(0x12b))/0x5+parseInt(_0x391999(0x12f))/0x6+parseInt(_0x391999(0x12c))/0x7*(-parseInt(_0x391999(0x136))/0x8)+parseInt(_0x391999(0x134))/0x9*(parseInt(_0x391999(0x130))/0xa);if(_0x11e2c2===_0x35de14)break;else _0x385443['push'](_0x385443['shift']());}catch(_0x457a88){_0x385443['push'](_0x385443['shift']());}}}(a8_0x1d9a,0x99628));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a8_0x4fa7b3,getMultiAppConfigs as a8_0x5c1c53,getTemplateBaseUrl as a8_0x62611c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a8_0x4d07(_0x40371d,_0x5a89ad){_0x40371d=_0x40371d-0x12b;const _0x1d9a0d=a8_0x1d9a();let _0x4d07eb=_0x1d9a0d[_0x40371d];return _0x4d07eb;}export{isInProject}from'../context.js';export function readConfig(_0x50699d){const _0x43856e=a8_0x4d07,_0x1c982d=readRawConfig(_0x50699d);return _0x1c982d['env']&&typeof _0x1c982d[_0x43856e(0x135)]===_0x43856e(0x131)&&initEnv(_0x1c982d[_0x43856e(0x135)]),_0x1c982d;}export function getConfigAppCode(){return a8_0x4fa7b3();}export function getMultiAppConfigs(_0x4952a3='project'){return a8_0x5c1c53(_0x4952a3);}function a8_0x1d9a(){const _0x25521c=['5068tMgfRN','160WRjDul','4055840ubzCxd','765354VVDeXq','120wCDVtf','string','1129275TZpOzY','8273kZPgrw','922275Ybfrst','env','1384gGRLEM','3478160gEDAWm'];a8_0x1d9a=function(){return _0x25521c;};return a8_0x1d9a();}export function getTemplateBaseUrl(){return a8_0x62611c();}
1
+ const a8_0x4cf54f=a8_0x3750;function a8_0x4f8d(){const _0x344fcb=['464cmiDcs','1078448FbuJXd','env','2038230gJnOwQ','276862nRDnBj','900614ODYSbK','project','7265184jNJuqJ','5421mZJAJi','252pnZVIW','6614972Uuacku','string'];a8_0x4f8d=function(){return _0x344fcb;};return a8_0x4f8d();}(function(_0x1a2008,_0x678a0a){const _0x216256=a8_0x3750,_0x522b68=_0x1a2008();while(!![]){try{const _0x46db23=-parseInt(_0x216256(0x116))/0x1+parseInt(_0x216256(0x121))/0x2+-parseInt(_0x216256(0x119))/0x3*(-parseInt(_0x216256(0x11d))/0x4)+-parseInt(_0x216256(0x120))/0x5+-parseInt(_0x216256(0x118))/0x6+-parseInt(_0x216256(0x11b))/0x7+-parseInt(_0x216256(0x11e))/0x8*(-parseInt(_0x216256(0x11a))/0x9);if(_0x46db23===_0x678a0a)break;else _0x522b68['push'](_0x522b68['shift']());}catch(_0x361aa9){_0x522b68['push'](_0x522b68['shift']());}}}(a8_0x4f8d,0xa0c3b));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a8_0x16e350,getMultiAppConfigs as a8_0x56edaf,getTemplateBaseUrl as a8_0x37a101}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a8_0x3750(_0x5801cb,_0x226a3a){_0x5801cb=_0x5801cb-0x116;const _0x4f8d0b=a8_0x4f8d();let _0x37507e=_0x4f8d0b[_0x5801cb];return _0x37507e;}export function readConfig(_0x36ff7b){const _0x5378d3=a8_0x3750,_0x109246=readRawConfig(_0x36ff7b);return _0x109246['env']&&typeof _0x109246['env']===_0x5378d3(0x11c)&&initEnv(_0x109246[_0x5378d3(0x11f)]),_0x109246;}export function getConfigAppCode(){return a8_0x16e350();}export function getMultiAppConfigs(_0x3ef59a=a8_0x4cf54f(0x117)){return a8_0x56edaf(_0x3ef59a);}export function getTemplateBaseUrl(){return a8_0x37a101();}
@@ -1 +1 @@
1
- function a9_0x3600(){const _0x5eb33c=['name','1522580NTRAVj','isDirectory','187260aoCBfJ','mkdirSync','copyFileSync','13113130IOCieG','5624hufWZk','2703176IbPnqV','error','2cCjCsc','6768fZAqxN','2346EoxXty','15631PBnpEc','复制目录时出错:','join','801822LpUhUY'];a9_0x3600=function(){return _0x5eb33c;};return a9_0x3600();}(function(_0x301477,_0x137115){const _0x342151=a9_0x3813,_0x9b3ce6=_0x301477();while(!![]){try{const _0x2e287f=-parseInt(_0x342151(0x1e4))/0x1+parseInt(_0x342151(0x1de))/0x2*(-parseInt(_0x342151(0x1d7))/0x3)+parseInt(_0x342151(0x1dc))/0x4+-parseInt(_0x342151(0x1e6))/0x5+-parseInt(_0x342151(0x1e0))/0x6*(parseInt(_0x342151(0x1e1))/0x7)+-parseInt(_0x342151(0x1db))/0x8*(-parseInt(_0x342151(0x1df))/0x9)+parseInt(_0x342151(0x1da))/0xa;if(_0x2e287f===_0x137115)break;else _0x9b3ce6['push'](_0x9b3ce6['shift']());}catch(_0x15206b){_0x9b3ce6['push'](_0x9b3ce6['shift']());}}}(a9_0x3600,0x73b2e));import a9_0x1775ae from'node:path';function a9_0x3813(_0x182631,_0x342461){_0x182631=_0x182631-0x1d6;const _0x36004b=a9_0x3600();let _0x381369=_0x36004b[_0x182631];return _0x381369;}import a9_0x49220c from'node:fs';export async function copyDirectory(_0x54af7a,_0x2cf5ef){const _0x4c7f3b=a9_0x3813;try{const _0x296b31=a9_0x49220c['readdirSync'](_0x54af7a,{'withFileTypes':!![]});a9_0x49220c[_0x4c7f3b(0x1d8)](_0x2cf5ef,{'recursive':!![]});for(const _0x42d1cb of _0x296b31){const _0xac9802=a9_0x1775ae[_0x4c7f3b(0x1e3)](_0x54af7a,_0x42d1cb[_0x4c7f3b(0x1e5)]),_0x39f485=a9_0x1775ae['join'](_0x2cf5ef,_0x42d1cb[_0x4c7f3b(0x1e5)]);_0x42d1cb[_0x4c7f3b(0x1d6)]()?await copyDirectory(_0xac9802,_0x39f485):a9_0x49220c[_0x4c7f3b(0x1d9)](_0xac9802,_0x39f485);}}catch(_0x358ca3){console[_0x4c7f3b(0x1dd)](_0x4c7f3b(0x1e2),_0x358ca3);}}
1
+ function a9_0x980c(){const _0x5b9890=['45CyINHj','150VWFZjs','747912NDXAkd','name','2197013qtPNkR','2704312wuaKfh','6zQndUB','3UkFQCW','复制目录时出错:','631707mSqKhu','copyFileSync','join','656360axhAOS','2329280hwvYvT','436028SGdYKS'];a9_0x980c=function(){return _0x5b9890;};return a9_0x980c();}function a9_0xbca0(_0x399f34,_0x42c49d){_0x399f34=_0x399f34-0xd8;const _0x980c06=a9_0x980c();let _0xbca008=_0x980c06[_0x399f34];return _0xbca008;}(function(_0x3167cd,_0x48806e){const _0x1d871a=a9_0xbca0,_0x3490de=_0x3167cd();while(!![]){try{const _0x21a524=-parseInt(_0x1d871a(0xe5))/0x1+parseInt(_0x1d871a(0xdb))/0x2*(parseInt(_0x1d871a(0xe3))/0x3)+parseInt(_0x1d871a(0xe1))/0x4+parseInt(_0x1d871a(0xda))/0x5+-parseInt(_0x1d871a(0xe2))/0x6*(-parseInt(_0x1d871a(0xe0))/0x7)+-parseInt(_0x1d871a(0xd9))/0x8*(-parseInt(_0x1d871a(0xdc))/0x9)+parseInt(_0x1d871a(0xdd))/0xa*(-parseInt(_0x1d871a(0xde))/0xb);if(_0x21a524===_0x48806e)break;else _0x3490de['push'](_0x3490de['shift']());}catch(_0x15fd34){_0x3490de['push'](_0x3490de['shift']());}}}(a9_0x980c,0x6993d));import a9_0x5177ad from'node:path';import a9_0x57b84a from'node:fs';export async function copyDirectory(_0x4514cc,_0x587e8f){const _0x592c20=a9_0xbca0;try{const _0x1fc25b=a9_0x57b84a['readdirSync'](_0x4514cc,{'withFileTypes':!![]});a9_0x57b84a['mkdirSync'](_0x587e8f,{'recursive':!![]});for(const _0x26ae46 of _0x1fc25b){const _0x411513=a9_0x5177ad['join'](_0x4514cc,_0x26ae46['name']),_0x1f2f46=a9_0x5177ad[_0x592c20(0xd8)](_0x587e8f,_0x26ae46[_0x592c20(0xdf)]);_0x26ae46['isDirectory']()?await copyDirectory(_0x411513,_0x1f2f46):a9_0x57b84a[_0x592c20(0xe6)](_0x411513,_0x1f2f46);}}catch(_0x1b4b7d){console['error'](_0x592c20(0xe4),_0x1b4b7d);}}
@@ -1 +1 @@
1
- (function(_0x1c27c0,_0x4c6819){const _0x21180e=a5_0x46f8,_0x2160ef=_0x1c27c0();while(!![]){try{const _0x576a32=parseInt(_0x21180e(0x112))/0x1+parseInt(_0x21180e(0x11b))/0x2+parseInt(_0x21180e(0x117))/0x3+-parseInt(_0x21180e(0x114))/0x4*(-parseInt(_0x21180e(0x115))/0x5)+-parseInt(_0x21180e(0x116))/0x6+parseInt(_0x21180e(0x118))/0x7*(-parseInt(_0x21180e(0x111))/0x8)+-parseInt(_0x21180e(0x113))/0x9;if(_0x576a32===_0x4c6819)break;else _0x2160ef['push'](_0x2160ef['shift']());}catch(_0x23f02e){_0x2160ef['push'](_0x2160ef['shift']());}}}(a5_0x1730,0xc2286));function a5_0x1730(){const _0x84467=['3190170HDNhPy','1977597fDQUGT','7IaAiDX','trim','number','2559002SAShBE','isFinite','6633712EDWAUm','749084cTKCxt','6372135XIjtMd','520poreYh','6785NmCeUS'];a5_0x1730=function(){return _0x84467;};return a5_0x1730();}function toFiniteNumber(_0x5edddc){const _0x1a111b=a5_0x46f8;if(typeof _0x5edddc===_0x1a111b(0x11a)&&Number[_0x1a111b(0x11c)](_0x5edddc))return _0x5edddc;if(typeof _0x5edddc==='string'){const _0x3773de=_0x5edddc[_0x1a111b(0x119)]();if(!_0x3773de)return undefined;const _0x2475cc=Number(_0x3773de);if(Number[_0x1a111b(0x11c)](_0x2475cc))return _0x2475cc;}return undefined;}function a5_0x46f8(_0x141429,_0x39979e){_0x141429=_0x141429-0x111;const _0x1730f6=a5_0x1730();let _0x46f8a8=_0x1730f6[_0x141429];return _0x46f8a8;}export function normalizeEntityWithIdResponse(_0x202113){const _0x116581=toFiniteNumber(_0x202113);if(_0x116581!==undefined)return{'id':_0x116581,'entity':{'id':_0x116581}};if(!_0x202113||typeof _0x202113!=='object')return{'id':undefined,'entity':{}};const _0x3eb17d={..._0x202113},_0x4b274a=toFiniteNumber(_0x3eb17d['id']);return _0x4b274a!==undefined&&(_0x3eb17d['id']=_0x4b274a),{'id':_0x4b274a,'entity':_0x3eb17d};}
1
+ function a5_0xca04(_0xaf959d,_0x196dce){_0xaf959d=_0xaf959d-0x105;const _0x2f6ee9=a5_0x2f6e();let _0xca04bd=_0x2f6ee9[_0xaf959d];return _0xca04bd;}(function(_0xa35c7f,_0x35d26f){const _0x17f8b6=a5_0xca04,_0x1e35c0=_0xa35c7f();while(!![]){try{const _0x514d60=-parseInt(_0x17f8b6(0x109))/0x1*(parseInt(_0x17f8b6(0x10d))/0x2)+-parseInt(_0x17f8b6(0x10b))/0x3+parseInt(_0x17f8b6(0x10c))/0x4*(-parseInt(_0x17f8b6(0x10e))/0x5)+parseInt(_0x17f8b6(0x110))/0x6+parseInt(_0x17f8b6(0x10a))/0x7+parseInt(_0x17f8b6(0x10f))/0x8+parseInt(_0x17f8b6(0x108))/0x9;if(_0x514d60===_0x35d26f)break;else _0x1e35c0['push'](_0x1e35c0['shift']());}catch(_0x2d2c49){_0x1e35c0['push'](_0x1e35c0['shift']());}}}(a5_0x2f6e,0x7b524));function a5_0x2f6e(){const _0x49ab3c=['12oORjXA','412pdnTwE','833045Osivjs','1808768OMFGil','3886320GsksIc','isFinite','number','trim','8802144iUisfZ','217PgMYBR','723751eDWxxr','2716716FUFbna'];a5_0x2f6e=function(){return _0x49ab3c;};return a5_0x2f6e();}function toFiniteNumber(_0x21621b){const _0x2ab9fa=a5_0xca04;if(typeof _0x21621b===_0x2ab9fa(0x106)&&Number[_0x2ab9fa(0x105)](_0x21621b))return _0x21621b;if(typeof _0x21621b==='string'){const _0x316e11=_0x21621b[_0x2ab9fa(0x107)]();if(!_0x316e11)return undefined;const _0x5c5f6f=Number(_0x316e11);if(Number['isFinite'](_0x5c5f6f))return _0x5c5f6f;}return undefined;}export function normalizeEntityWithIdResponse(_0x5096d5){const _0x7af933=toFiniteNumber(_0x5096d5);if(_0x7af933!==undefined)return{'id':_0x7af933,'entity':{'id':_0x7af933}};if(!_0x5096d5||typeof _0x5096d5!=='object')return{'id':undefined,'entity':{}};const _0x8f589e={..._0x5096d5},_0x48eeaf=toFiniteNumber(_0x8f589e['id']);return _0x48eeaf!==undefined&&(_0x8f589e['id']=_0x48eeaf),{'id':_0x48eeaf,'entity':_0x8f589e};}
@@ -1 +1 @@
1
- (function(_0x5d94ae,_0x10bf1b){const _0x2ef01d=a18_0x1e44,_0x130a91=_0x5d94ae();while(!![]){try{const _0x1cc660=parseInt(_0x2ef01d(0x1ad))/0x1*(parseInt(_0x2ef01d(0x1b1))/0x2)+-parseInt(_0x2ef01d(0x1a9))/0x3*(-parseInt(_0x2ef01d(0x1ab))/0x4)+-parseInt(_0x2ef01d(0x1a8))/0x5*(-parseInt(_0x2ef01d(0x1af))/0x6)+parseInt(_0x2ef01d(0x1b2))/0x7*(parseInt(_0x2ef01d(0x1b0))/0x8)+-parseInt(_0x2ef01d(0x1ae))/0x9+parseInt(_0x2ef01d(0x1ac))/0xa*(parseInt(_0x2ef01d(0x1b4))/0xb)+-parseInt(_0x2ef01d(0x1aa))/0xc*(parseInt(_0x2ef01d(0x1b3))/0xd);if(_0x1cc660===_0x10bf1b)break;else _0x130a91['push'](_0x130a91['shift']());}catch(_0x2251ee){_0x130a91['push'](_0x130a91['shift']());}}}(a18_0x1d84,0x51484));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a18_0x1d84(){const _0x218bde=['3643662NOwtFK','1592515jJnsPN','32685yjgObG','2832OPUKop','200krXwvc','10cYmfSJ','21olSAWd','3387960LjRGum','12KVlGDl','8BzlRQW','29218AclJxK','3429307PrseUH','88153FrBEVb'];a18_0x1d84=function(){return _0x218bde;};return a18_0x1d84();}export async function copyDir(_0x7077e8,_0x2d88aa){const _0x195064=statSync(_0x7077e8);if(_0x195064['isDirectory']()){!existsSync(_0x2d88aa)&&mkdirSync(_0x2d88aa,{'recursive':!![]});const _0x5edab3=readdirSync(_0x7077e8);for(const _0x33be94 of _0x5edab3){await copyDir(join(_0x7077e8,_0x33be94),join(_0x2d88aa,_0x33be94));}}else copyFileSync(_0x7077e8,_0x2d88aa);}export function ensureDir(_0x15c222){!existsSync(_0x15c222)&&mkdirSync(_0x15c222,{'recursive':!![]});}function a18_0x1e44(_0x4adba1,_0x22d1c3){_0x4adba1=_0x4adba1-0x1a8;const _0x1d84bd=a18_0x1d84();let _0x1e4428=_0x1d84bd[_0x4adba1];return _0x1e4428;}export function pathExists(_0x27e662){return existsSync(_0x27e662);}
1
+ function a18_0x49b9(){const _0x28ee28=['isDirectory','12VXOycX','115210SEhfsQ','2384851sXnIxA','2920ptgLTC','7434ifyzkr','167397xwSHca','15936oxOdgc','44pbmmSx','4268uGOTZB','6PwvZsH','1701040wmsCnq','2557185qAwpqM'];a18_0x49b9=function(){return _0x28ee28;};return a18_0x49b9();}(function(_0x3a890c,_0x472e36){const _0x1e081f=a18_0x1cb4,_0x24312c=_0x3a890c();while(!![]){try{const _0x4fa6e5=parseInt(_0x1e081f(0x73))/0x1*(parseInt(_0x1e081f(0x78))/0x2)+parseInt(_0x1e081f(0x6f))/0x3*(-parseInt(_0x1e081f(0x71))/0x4)+parseInt(_0x1e081f(0x75))/0x5+-parseInt(_0x1e081f(0x77))/0x6*(-parseInt(_0x1e081f(0x6c))/0x7)+parseInt(_0x1e081f(0x74))/0x8+parseInt(_0x1e081f(0x6e))/0x9*(-parseInt(_0x1e081f(0x6d))/0xa)+parseInt(_0x1e081f(0x72))/0xb*(-parseInt(_0x1e081f(0x70))/0xc);if(_0x4fa6e5===_0x472e36)break;else _0x24312c['push'](_0x24312c['shift']());}catch(_0x1ae797){_0x24312c['push'](_0x24312c['shift']());}}}(a18_0x49b9,0x5cfa6));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a18_0x1cb4(_0x582dc2,_0x8cd0d1){_0x582dc2=_0x582dc2-0x6c;const _0x49b959=a18_0x49b9();let _0x1cb429=_0x49b959[_0x582dc2];return _0x1cb429;}import{join}from'node:path';export async function copyDir(_0x38253c,_0x4b2572){const _0x12b31d=a18_0x1cb4,_0x1787ea=statSync(_0x38253c);if(_0x1787ea[_0x12b31d(0x76)]()){!existsSync(_0x4b2572)&&mkdirSync(_0x4b2572,{'recursive':!![]});const _0x5166ef=readdirSync(_0x38253c);for(const _0x5378da of _0x5166ef){await copyDir(join(_0x38253c,_0x5378da),join(_0x4b2572,_0x5378da));}}else copyFileSync(_0x38253c,_0x4b2572);}export function ensureDir(_0x4cf3ae){!existsSync(_0x4cf3ae)&&mkdirSync(_0x4cf3ae,{'recursive':!![]});}export function pathExists(_0x57728f){return existsSync(_0x57728f);}
@@ -1 +1 @@
1
- const a15_0x200761=a15_0x58d5;(function(_0x10dbe7,_0x397b39){const _0x208830=a15_0x58d5,_0x3867b1=_0x10dbe7();while(!![]){try{const _0x9853a1=parseInt(_0x208830(0x151))/0x1*(-parseInt(_0x208830(0x140))/0x2)+-parseInt(_0x208830(0x133))/0x3*(parseInt(_0x208830(0x150))/0x4)+-parseInt(_0x208830(0x141))/0x5*(parseInt(_0x208830(0x13f))/0x6)+-parseInt(_0x208830(0x13a))/0x7*(parseInt(_0x208830(0x135))/0x8)+parseInt(_0x208830(0x12f))/0x9+parseInt(_0x208830(0x14f))/0xa+parseInt(_0x208830(0x131))/0xb*(parseInt(_0x208830(0x14c))/0xc);if(_0x9853a1===_0x397b39)break;else _0x3867b1['push'](_0x3867b1['shift']());}catch(_0x2fb973){_0x3867b1['push'](_0x3867b1['shift']());}}}(a15_0x410c,0x4ab88));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 _0x4206e1=getTemplateBaseUrl();return _0x4206e1+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a15_0x200761(0x149),a15_0x200761(0x134));export async function fetchGuidesFromCDN(){const _0xaff4a8=a15_0x200761,_0x2a32b8=getGuidesCdnUrl(),_0x3c019b=await fetch(_0x2a32b8,{'headers':{'Accept':_0xaff4a8(0x13b)}});if(!_0x3c019b['ok'])throw new Error(_0xaff4a8(0x137)+_0x3c019b['status']+'\x20'+_0x3c019b['statusText']);const _0x2a00cc=await _0x3c019b[_0xaff4a8(0x130)]();if(!_0x2a00cc['guides']||typeof _0x2a00cc['guides']!==_0xaff4a8(0x144))throw new Error(_0xaff4a8(0x14e));return _0x2a00cc;}export function writeGuidesToProject(_0x4a32da,_0x31ca8a,_0x22bef9=a15_0x200761(0x136),_0x41ad95){const _0x141ea8=a15_0x200761,_0x2482e9=join(_0x31ca8a,_0x22bef9);mkdirSync(_0x2482e9,{'recursive':!![]});for(const [_0x27084d,_0x435a8c]of Object[_0x141ea8(0x142)](_0x4a32da[_0x141ea8(0x14b)])){let _0x34a6df=_0x435a8c[_0x141ea8(0x13c)];_0x435a8c['lastUpdated']&&(_0x34a6df=appendUpdateTime(_0x34a6df,_0x435a8c[_0x141ea8(0x152)])),writeFileSync(join(_0x2482e9,_0x27084d+_0x141ea8(0x13d)),_0x34a6df,_0x141ea8(0x139));}}function a15_0x410c(){const _0x2dcd49=['entries','extendContent','object','push','CDN\x20数据中缺少\x20skillTemplate','replace','trimEnd','.lovrabet','\x0a\x0a>更新时间:','guides','11112jCxEcQ','skillTemplate','CDN\x20返回数据格式错误','3490760pQXZjg','1008jFhWPN','287411DMxcAN','lastUpdated','4283658IsWWJu','json','5489sCnROJ','map','1185GkZKWb','cache','2864ybGUeY','.lovrabet/skill/guides','CDN\x20请求失败:\x20','length','utf-8','3983qPQGgv','application/json','content','.md','title','3936vUSomp','4fjdbnN','785SORtaR'];a15_0x410c=function(){return _0x2dcd49;};return a15_0x410c();}export function appendUpdateTime(_0x46bb4c,_0x13d58c){const _0x73b02a=a15_0x200761;return _0x46bb4c=_0x46bb4c[_0x73b02a(0x147)](/\n*>更新时间:.*$/m,''),_0x46bb4c[_0x73b02a(0x148)]()+(_0x73b02a(0x14a)+_0x13d58c);}export function getSkillTemplate(_0x3ebafb){const _0x1359c5=a15_0x200761;return _0x3ebafb['skillTemplate']?.[_0x1359c5(0x13c)]||'';}export function appendExtendContents(_0x4a3b24,_0x5f3322,_0x48e4b5){const _0x3bf357=a15_0x200761,_0x4a896d=[];for(const [,_0x2f9d04]of Object['entries'](_0x5f3322['guides'])){_0x2f9d04[_0x3bf357(0x143)]&&_0x4a896d[_0x3bf357(0x145)](_0x2f9d04[_0x3bf357(0x143)][_0x3bf357(0x148)]());}if(_0x4a896d[_0x3bf357(0x138)]===0x0)return _0x4a3b24;return _0x4a3b24['trimEnd']()+'\x0a\x0a'+_0x4a896d['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3782a0,_0x44696e,_0x1c3e76){const _0x243ccf=a15_0x200761,_0x13996b=getSkillTemplate(_0x3782a0);if(!_0x13996b)throw new Error(_0x243ccf(0x146));const _0x3f6e10=dirname(_0x44696e);mkdirSync(_0x3f6e10,{'recursive':!![]});let _0x395b84=_0x13996b[_0x243ccf(0x147)](/\{\{IDE_NAME\}\}/g,_0x1c3e76);_0x395b84=appendExtendContents(_0x395b84,_0x3782a0),_0x3782a0[_0x243ccf(0x14d)][_0x243ccf(0x152)]&&(_0x395b84=appendUpdateTime(_0x395b84,_0x3782a0[_0x243ccf(0x14d)][_0x243ccf(0x152)])),writeFileSync(_0x44696e,_0x395b84,_0x243ccf(0x139));}function a15_0x58d5(_0x275639,_0x4f794b){_0x275639=_0x275639-0x12f;const _0x410cb9=a15_0x410c();let _0x58d54e=_0x410cb9[_0x275639];return _0x58d54e;}export async function installGuides(_0x31caf7){const _0x214237=a15_0x200761,_0x5ca84a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5ca84a,_0x31caf7),Object['keys'](_0x5ca84a[_0x214237(0x14b)])['length'];}export function getGuidesSummary(_0x3e6fdb){const _0x2fdde0=a15_0x200761;return Object[_0x2fdde0(0x142)](_0x3e6fdb[_0x2fdde0(0x14b)])[_0x2fdde0(0x132)](([_0x149e65,_0x2f974a])=>({'key':_0x149e65,'title':_0x2f974a[_0x2fdde0(0x13e)],'path':_0x2f974a['path']}));}
1
+ const a15_0x1afdd4=a15_0x1f14;(function(_0x1eb003,_0x2b8a47){const _0x42b7e7=a15_0x1f14,_0x31edeb=_0x1eb003();while(!![]){try{const _0x4e3c9e=-parseInt(_0x42b7e7(0x183))/0x1+parseInt(_0x42b7e7(0x17a))/0x2*(-parseInt(_0x42b7e7(0x188))/0x3)+-parseInt(_0x42b7e7(0x17d))/0x4+-parseInt(_0x42b7e7(0x178))/0x5*(-parseInt(_0x42b7e7(0x18e))/0x6)+-parseInt(_0x42b7e7(0x185))/0x7+parseInt(_0x42b7e7(0x17e))/0x8*(-parseInt(_0x42b7e7(0x16e))/0x9)+parseInt(_0x42b7e7(0x193))/0xa*(parseInt(_0x42b7e7(0x18f))/0xb);if(_0x4e3c9e===_0x2b8a47)break;else _0x31edeb['push'](_0x31edeb['shift']());}catch(_0x5df62d){_0x31edeb['push'](_0x31edeb['shift']());}}}(a15_0x1ee2,0x457d3));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a15_0x1f14(_0x259594,_0x484595){_0x259594=_0x259594-0x16d;const _0x1ee2d6=a15_0x1ee2();let _0x1f1486=_0x1ee2d6[_0x259594];return _0x1f1486;}function getGuidesCdnUrl(){const _0x17c8e7=a15_0x1f14,_0x576c22=getTemplateBaseUrl();return _0x576c22+_0x17c8e7(0x191);}function a15_0x1ee2(){const _0x176b9f=['174XVJXEe','49863JkTMbv','CDN\x20请求失败:\x20','/skills/guides.json','statusText','2940dOsJwf','keys','27lYLcDc','extendContent','.md','join','.lovrabet/skill/guides','object','json','entries','.lovrabet','utf-8','16655KYbRhv','\x0a\x0a>更新时间:','166484TUvrix','map','guides','976304QoQEGn','574456vJTgMR','title','CDN\x20数据中缺少\x20skillTemplate','lastUpdated','skillTemplate','399811YTBZoD','cache','1414868IbjZOS','trimEnd','application/json','3TrnlZA','length','content','push','CDN\x20返回数据格式错误','replace'];a15_0x1ee2=function(){return _0x176b9f;};return a15_0x1ee2();}const CACHE_DIR=join(homedir(),a15_0x1afdd4(0x176),a15_0x1afdd4(0x184));export async function fetchGuidesFromCDN(){const _0x100d55=a15_0x1afdd4,_0x4fcce9=getGuidesCdnUrl(),_0x1da553=await fetch(_0x4fcce9,{'headers':{'Accept':_0x100d55(0x187)}});if(!_0x1da553['ok'])throw new Error(_0x100d55(0x190)+_0x1da553['status']+'\x20'+_0x1da553[_0x100d55(0x192)]);const _0x31dfa2=await _0x1da553[_0x100d55(0x174)]();if(!_0x31dfa2[_0x100d55(0x17c)]||typeof _0x31dfa2[_0x100d55(0x17c)]!==_0x100d55(0x173))throw new Error(_0x100d55(0x18c));return _0x31dfa2;}export function writeGuidesToProject(_0x4f8091,_0x2e678b,_0x3af184=a15_0x1afdd4(0x172),_0x4b7c0b){const _0x332ec=a15_0x1afdd4,_0x37f937=join(_0x2e678b,_0x3af184);mkdirSync(_0x37f937,{'recursive':!![]});for(const [_0x5324bb,_0x1360b0]of Object[_0x332ec(0x175)](_0x4f8091['guides'])){let _0x4f9fc5=_0x1360b0['content'];_0x1360b0[_0x332ec(0x181)]&&(_0x4f9fc5=appendUpdateTime(_0x4f9fc5,_0x1360b0['lastUpdated'])),writeFileSync(join(_0x37f937,_0x5324bb+_0x332ec(0x170)),_0x4f9fc5,_0x332ec(0x177));}}export function appendUpdateTime(_0x38861d,_0x5acd4a){const _0x3e4953=a15_0x1afdd4;return _0x38861d=_0x38861d['replace'](/\n*>更新时间:.*$/m,''),_0x38861d['trimEnd']()+(_0x3e4953(0x179)+_0x5acd4a);}export function getSkillTemplate(_0x2c8466){const _0x5ef028=a15_0x1afdd4;return _0x2c8466['skillTemplate']?.[_0x5ef028(0x18a)]||'';}export function appendExtendContents(_0x3008b2,_0x194dbc,_0x206114){const _0x52d623=a15_0x1afdd4,_0x313f38=[];for(const [,_0x591108]of Object[_0x52d623(0x175)](_0x194dbc['guides'])){_0x591108['extendContent']&&_0x313f38[_0x52d623(0x18b)](_0x591108[_0x52d623(0x16f)]['trimEnd']());}if(_0x313f38[_0x52d623(0x189)]===0x0)return _0x3008b2;return _0x3008b2[_0x52d623(0x186)]()+'\x0a\x0a'+_0x313f38[_0x52d623(0x171)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x410553,_0x47d952,_0xcf9a76){const _0x5adc68=a15_0x1afdd4,_0x43beda=getSkillTemplate(_0x410553);if(!_0x43beda)throw new Error(_0x5adc68(0x180));const _0x4623db=dirname(_0x47d952);mkdirSync(_0x4623db,{'recursive':!![]});let _0x9d3ee3=_0x43beda[_0x5adc68(0x18d)](/\{\{IDE_NAME\}\}/g,_0xcf9a76);_0x9d3ee3=appendExtendContents(_0x9d3ee3,_0x410553),_0x410553[_0x5adc68(0x182)][_0x5adc68(0x181)]&&(_0x9d3ee3=appendUpdateTime(_0x9d3ee3,_0x410553[_0x5adc68(0x182)][_0x5adc68(0x181)])),writeFileSync(_0x47d952,_0x9d3ee3,'utf-8');}export async function installGuides(_0x97a128){const _0x5a1caa=a15_0x1afdd4,_0x34b303=await fetchGuidesFromCDN();return writeGuidesToProject(_0x34b303,_0x97a128),Object[_0x5a1caa(0x16d)](_0x34b303['guides'])[_0x5a1caa(0x189)];}export function getGuidesSummary(_0x210b91){const _0xbc10cc=a15_0x1afdd4;return Object[_0xbc10cc(0x175)](_0x210b91[_0xbc10cc(0x17c)])[_0xbc10cc(0x17b)](([_0x448277,_0x22e56d])=>({'key':_0x448277,'title':_0x22e56d[_0xbc10cc(0x17f)],'path':_0x22e56d['path']}));}
@@ -1 +1 @@
1
- function a14_0x1a36(){const _0x5e2e60=['*\x20请求失败,','6973666MmSviN','15gnFpRM','8KfSpmU','json','ENOTFOUND','content-type','message','573kegmss','status','\x20次重试...','243776IuDxVy','text','20yIoSjG','TypeError','log','2614NANUMF','signal','fetch','3739992borAIn','headers','Request\x20failed','11807244YYdpxt','includes','5051409QBFWiR','1441494cHOIGb','ECONNRESET','ms\x20后进行第\x20','url','AbortError'];a14_0x1a36=function(){return _0x5e2e60;};return a14_0x1a36();}(function(_0x4fff57,_0x3ab074){const _0x1e4399=a14_0x346c,_0x112a91=_0x4fff57();while(!![]){try{const _0x3bb69d=parseInt(_0x1e4399(0x1a7))/0x1+parseInt(_0x1e4399(0x1bc))/0x2*(parseInt(_0x1e4399(0x1b4))/0x3)+-parseInt(_0x1e4399(0x1b7))/0x4*(parseInt(_0x1e4399(0x1ae))/0x5)+parseInt(_0x1e4399(0x1bf))/0x6+-parseInt(_0x1e4399(0x1ad))/0x7+-parseInt(_0x1e4399(0x1af))/0x8*(parseInt(_0x1e4399(0x1a4))/0x9)+-parseInt(_0x1e4399(0x1b9))/0xa*(-parseInt(_0x1e4399(0x1a6))/0xb);if(_0x3bb69d===_0x3ab074)break;else _0x112a91['push'](_0x112a91['shift']());}catch(_0x23da59){_0x112a91['push'](_0x112a91['shift']());}}}(a14_0x1a36,0xb521b));export async function httpRequest(_0x3da1b0,_0x2060c4={}){const _0x473300=a14_0x346c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2060c4;let _0x57779c=null;for(let _0x554bfa=0x0;_0x554bfa<=retries;_0x554bfa++){try{const _0x39e42f=new AbortController(),_0x57fd48=setTimeout(()=>_0x39e42f['abort'](),timeout),_0x2ab0f1=await fetch(_0x3da1b0,{'headers':headers,'signal':_0x39e42f[_0x473300(0x1bd)]});clearTimeout(_0x57fd48);let _0x11df65;const _0x2f8189=_0x2ab0f1[_0x473300(0x1a2)]['get'](_0x473300(0x1b2));return _0x2f8189?.['includes']('application/json')?_0x11df65=await _0x2ab0f1[_0x473300(0x1b0)]():_0x11df65=await _0x2ab0f1['text'](),{'ok':_0x2ab0f1['ok'],'status':_0x2ab0f1[_0x473300(0x1b5)],'statusText':_0x2ab0f1['statusText'],'data':_0x11df65,'headers':_0x2ab0f1[_0x473300(0x1a2)],'url':_0x2ab0f1[_0x473300(0x1aa)],'text':()=>_0x2ab0f1[_0x473300(0x1b8)]()};}catch(_0x4a0d15){_0x57779c=_0x4a0d15 instanceof Error?_0x4a0d15:new Error(String(_0x4a0d15));if(_0x554bfa===retries)break;if(shouldRetry(_0x4a0d15)){console[_0x473300(0x1bb)](_0x473300(0x1ac)+retryDelay+_0x473300(0x1a9)+(_0x554bfa+0x1)+_0x473300(0x1b6)),await sleep(retryDelay);continue;}else break;}}throw _0x57779c||new Error(_0x473300(0x1a3));}function shouldRetry(_0x261012){const _0x232636=a14_0x346c;if(_0x261012 instanceof Error){if(_0x261012['name']===_0x232636(0x1ab))return![];if(_0x261012['name']===_0x232636(0x1ba)&&_0x261012[_0x232636(0x1b3)]['includes'](_0x232636(0x1be)))return!![];if(_0x261012['message'][_0x232636(0x1a5)](_0x232636(0x1a8)))return!![];if(_0x261012[_0x232636(0x1b3)][_0x232636(0x1a5)](_0x232636(0x1b1)))return![];}return![];}function a14_0x346c(_0x4a7595,_0xad9340){_0x4a7595=_0x4a7595-0x1a2;const _0x1a3630=a14_0x1a36();let _0x346c91=_0x1a3630[_0x4a7595];return _0x346c91;}function sleep(_0x2b05f8){return new Promise(_0x380ec4=>setTimeout(_0x380ec4,_0x2b05f8));}export function validateUrl(_0x38b16f){try{return new URL(_0x38b16f),!![];}catch{return![];}}
1
+ (function(_0x16c3c4,_0x5a4ca5){const _0x439a40=a14_0x147d,_0x3a6817=_0x16c3c4();while(!![]){try{const _0x4454f5=-parseInt(_0x439a40(0x84))/0x1+-parseInt(_0x439a40(0x92))/0x2*(parseInt(_0x439a40(0x8b))/0x3)+-parseInt(_0x439a40(0x85))/0x4*(-parseInt(_0x439a40(0x8e))/0x5)+parseInt(_0x439a40(0x97))/0x6*(parseInt(_0x439a40(0x86))/0x7)+-parseInt(_0x439a40(0x87))/0x8+parseInt(_0x439a40(0x88))/0x9+parseInt(_0x439a40(0x8f))/0xa;if(_0x4454f5===_0x5a4ca5)break;else _0x3a6817['push'](_0x3a6817['shift']());}catch(_0x1e6108){_0x3a6817['push'](_0x3a6817['shift']());}}}(a14_0x4c84,0xbdb52));export async function httpRequest(_0x544815,_0x3e70e4={}){const _0x23fd55=a14_0x147d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3e70e4;let _0x784ebb=null;for(let _0x17d59a=0x0;_0x17d59a<=retries;_0x17d59a++){try{const _0x560109=new AbortController(),_0x5213b0=setTimeout(()=>_0x560109[_0x23fd55(0x9c)](),timeout),_0x58988a=await fetch(_0x544815,{'headers':headers,'signal':_0x560109[_0x23fd55(0x9a)]});clearTimeout(_0x5213b0);let _0x50e8be;const _0xaf1c8b=_0x58988a['headers'][_0x23fd55(0x83)]('content-type');return _0xaf1c8b?.[_0x23fd55(0x90)]('application/json')?_0x50e8be=await _0x58988a[_0x23fd55(0x94)]():_0x50e8be=await _0x58988a[_0x23fd55(0x9d)](),{'ok':_0x58988a['ok'],'status':_0x58988a['status'],'statusText':_0x58988a[_0x23fd55(0x98)],'data':_0x50e8be,'headers':_0x58988a[_0x23fd55(0x8c)],'url':_0x58988a[_0x23fd55(0x91)],'text':()=>_0x58988a[_0x23fd55(0x9d)]()};}catch(_0x123c8b){_0x784ebb=_0x123c8b instanceof Error?_0x123c8b:new Error(String(_0x123c8b));if(_0x17d59a===retries)break;if(shouldRetry(_0x123c8b)){console[_0x23fd55(0x95)]('*\x20请求失败,'+retryDelay+_0x23fd55(0x89)+(_0x17d59a+0x1)+_0x23fd55(0x9b)),await sleep(retryDelay);continue;}else break;}}throw _0x784ebb||new Error('Request\x20failed');}function a14_0x4c84(){const _0x4a9d87=['signal','\x20次重试...','abort','text','get','1085466yOnJVh','36IoJWyQ','1956493kbnSOg','9229072trRgCx','2563506WSVIEK','ms\x20后进行第\x20','name','12HDLPMj','headers','TypeError','788685bAcXDh','7386440wjvyya','includes','url','412232epCyhI','ECONNRESET','json','log','fetch','30zfrhZU','statusText','message'];a14_0x4c84=function(){return _0x4a9d87;};return a14_0x4c84();}function a14_0x147d(_0x39ab7f,_0x5306e0){_0x39ab7f=_0x39ab7f-0x83;const _0x4c849d=a14_0x4c84();let _0x147d01=_0x4c849d[_0x39ab7f];return _0x147d01;}function shouldRetry(_0x140e43){const _0x484d3d=a14_0x147d;if(_0x140e43 instanceof Error){if(_0x140e43[_0x484d3d(0x8a)]==='AbortError')return![];if(_0x140e43[_0x484d3d(0x8a)]===_0x484d3d(0x8d)&&_0x140e43[_0x484d3d(0x99)][_0x484d3d(0x90)](_0x484d3d(0x96)))return!![];if(_0x140e43['message']['includes'](_0x484d3d(0x93)))return!![];if(_0x140e43[_0x484d3d(0x99)][_0x484d3d(0x90)]('ENOTFOUND'))return![];}return![];}function sleep(_0x48c408){return new Promise(_0x13458f=>setTimeout(_0x13458f,_0x48c408));}export function validateUrl(_0x36bd76){try{return new URL(_0x36bd76),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a3_0x5e41(_0x4b12de,_0x71e3a8){_0x4b12de=_0x4b12de-0x140;const _0x1e7e10=a3_0x1e7e();let _0x5e411e=_0x1e7e10[_0x4b12de];return _0x5e411e;}function a3_0x1e7e(){const _0x4bb856=['44iqNPQX','22160MZjCuN','6813jViIwD','nonInteractive','stdout','isRaw','true','2015832wfUziI','8816689uWmraz','setRawMode','26910202mOUXnE','68736OjlGls','428190BuNrXP','48jYYCtQ','isTTY','29286mfSFdR','8mUybUu','stdin'];a3_0x1e7e=function(){return _0x4bb856;};return a3_0x1e7e();}(function(_0xf5e94a,_0x11526f){const _0x534cef=a3_0x5e41,_0x292a1f=_0xf5e94a();while(!![]){try{const _0x304c8a=parseInt(_0x534cef(0x14b))/0x1*(-parseInt(_0x534cef(0x14d))/0x2)+parseInt(_0x534cef(0x147))/0x3+parseInt(_0x534cef(0x140))/0x4*(-parseInt(_0x534cef(0x14c))/0x5)+-parseInt(_0x534cef(0x14f))/0x6+parseInt(_0x534cef(0x148))/0x7*(-parseInt(_0x534cef(0x150))/0x8)+parseInt(_0x534cef(0x142))/0x9*(parseInt(_0x534cef(0x141))/0xa)+parseInt(_0x534cef(0x14a))/0xb;if(_0x304c8a===_0x11526f)break;else _0x292a1f['push'](_0x292a1f['shift']());}catch(_0x3cfe83){_0x292a1f['push'](_0x292a1f['shift']());}}}(a3_0x1e7e,0xe56e4));function env(_0x3c4329){return process.env[`RABETBASE_${_0x3c4329}`]||process.env[`LOVRABET_${_0x3c4329}`]||undefined;}export function isNonInteractive(_0x5b723b){const _0x505560=a3_0x5e41;return!!(_0x5b723b[_0x505560(0x143)]||_0x5b723b['ci']||env('CI')===_0x505560(0x146)||process.env.CI==='true'||!process[_0x505560(0x144)][_0x505560(0x14e)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x571456=a3_0x5e41;if(!process[_0x571456(0x151)][_0x571456(0x14e)])return![];try{const _0x348025=process[_0x571456(0x151)][_0x571456(0x145)];return process['stdin'][_0x571456(0x149)](!![]),process[_0x571456(0x151)][_0x571456(0x149)](_0x348025??![]),!![];}catch{return![];}}
1
+ (function(_0x2da442,_0x3d16e3){const _0x10f91d=a3_0x1d53,_0x199b27=_0x2da442();while(!![]){try{const _0x5224fc=parseInt(_0x10f91d(0xea))/0x1*(parseInt(_0x10f91d(0xe5))/0x2)+parseInt(_0x10f91d(0xde))/0x3*(parseInt(_0x10f91d(0xe1))/0x4)+parseInt(_0x10f91d(0xe3))/0x5*(parseInt(_0x10f91d(0xe9))/0x6)+-parseInt(_0x10f91d(0xe6))/0x7*(-parseInt(_0x10f91d(0xe7))/0x8)+-parseInt(_0x10f91d(0xeb))/0x9+-parseInt(_0x10f91d(0xdd))/0xa+-parseInt(_0x10f91d(0xe0))/0xb*(parseInt(_0x10f91d(0xdb))/0xc);if(_0x5224fc===_0x3d16e3)break;else _0x199b27['push'](_0x199b27['shift']());}catch(_0x13c047){_0x199b27['push'](_0x199b27['shift']());}}}(a3_0xee65,0xc6dcf));function a3_0x1d53(_0x5b0aad,_0x4596c4){_0x5b0aad=_0x5b0aad-0xdb;const _0xee6547=a3_0xee65();let _0x1d533b=_0xee6547[_0x5b0aad];return _0x1d533b;}function a3_0xee65(){const _0x3027a5=['4qUGpth','108591fEljjG','8kdAfpy','isRaw','127038bFgLtx','594827zrOkTp','11230425kBvzFP','931128YUUcpR','true','1844900hZGvSC','3mqBJJj','setRawMode','143XtqNBS','4983356bOUySq','stdin','190oOfKiL','stdout'];a3_0xee65=function(){return _0x3027a5;};return a3_0xee65();}function env(_0x23bd54){return process.env[`RABETBASE_${_0x23bd54}`]||process.env[`LOVRABET_${_0x23bd54}`]||undefined;}export function isNonInteractive(_0x1676e7){const _0x111596=a3_0x1d53;return!!(_0x1676e7['nonInteractive']||_0x1676e7['ci']||env('CI')===_0x111596(0xdc)||process.env.CI==='true'||!process[_0x111596(0xe4)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x577e97=a3_0x1d53;if(!process[_0x577e97(0xe2)]['isTTY'])return![];try{const _0x1e91d1=process[_0x577e97(0xe2)][_0x577e97(0xe8)];return process['stdin']['setRawMode'](!![]),process[_0x577e97(0xe2)][_0x577e97(0xdf)](_0x1e91d1??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a2_0x34553b=a2_0xaeca;(function(_0x3295ec,_0x2e7e62){const _0x5e7732=a2_0xaeca,_0x5c0257=_0x3295ec();while(!![]){try{const _0x281133=-parseInt(_0x5e7732(0x151))/0x1*(parseInt(_0x5e7732(0x15f))/0x2)+parseInt(_0x5e7732(0x135))/0x3*(parseInt(_0x5e7732(0x139))/0x4)+parseInt(_0x5e7732(0x134))/0x5*(-parseInt(_0x5e7732(0x12d))/0x6)+-parseInt(_0x5e7732(0x13d))/0x7*(-parseInt(_0x5e7732(0x129))/0x8)+-parseInt(_0x5e7732(0x14a))/0x9+parseInt(_0x5e7732(0x130))/0xa*(parseInt(_0x5e7732(0x138))/0xb)+parseInt(_0x5e7732(0x14e))/0xc;if(_0x281133===_0x2e7e62)break;else _0x5c0257['push'](_0x5c0257['shift']());}catch(_0x560500){_0x5c0257['push'](_0x5c0257['shift']());}}}(a2_0x5dc8,0xd924f));function a2_0xaeca(_0x32e3f0,_0x1ebc05){_0x32e3f0=_0x32e3f0-0x129;const _0x5dc857=a2_0x5dc8();let _0xaeca9f=_0x5dc857[_0x32e3f0];return _0xaeca9f;}function a2_0x5dc8(){const _0x5917c0=['2712NUYScB','filter','logFilePath','setRawCommand','20352vUIscC','red','level','160YqNIXv','message','rawCommand','yellow','965JbFsUl','64485rlJIRq','split','warn','913231lAHnzG','152SjqvNP','setLogPath','.lovrabet.log','开始执行:\x20','12817ByWSQF','now','mkdirSync','existsSync','info','unknown','parse','getWinstonInstance','error','完成:\x20','utf8','readLogs','winstonLogger','7950105Zyzagc','失败:\x20','toISOString','blue','1652436abXivo','combine','format','317KeecwL','green','errors','writeFileSync','currentRawCommand','initWinstonLogger','trim','readFileSync','map','dirname','timestamp','clear','join','clearLogs','3004EMiWPT','success'];a2_0x5dc8=function(){return _0x5917c0;};return a2_0x5dc8();}import a2_0x45187a from'winston';import a2_0x58159d from'node:fs';import a2_0x381c04 from'node:path';class Logger{['winstonLogger'];[a2_0x34553b(0x12b)];[a2_0x34553b(0x155)]='';constructor(){const _0x3dee35=a2_0x34553b;this[_0x3dee35(0x12b)]='';}[a2_0x34553b(0x12c)](_0x15bd5f){const _0x3ca191=a2_0x34553b;this[_0x3ca191(0x155)]=_0x15bd5f;}[a2_0x34553b(0x156)](){const _0x487d1a=a2_0x34553b,_0x19f68b=a2_0x381c04[_0x487d1a(0x15a)](this[_0x487d1a(0x12b)]);!a2_0x58159d[_0x487d1a(0x140)](_0x19f68b)&&a2_0x58159d[_0x487d1a(0x13f)](_0x19f68b,{'recursive':!![]});const _0x2e5bf2=a2_0x45187a[_0x487d1a(0x150)][_0x487d1a(0x14f)](a2_0x45187a[_0x487d1a(0x150)]['timestamp'](),a2_0x45187a['format'][_0x487d1a(0x153)]({'stack':!![]}),a2_0x45187a[_0x487d1a(0x150)]['printf'](_0x932155=>{const _0x1e32e4=_0x487d1a,_0x1d38ce={'timestamp':_0x932155[_0x1e32e4(0x15b)]||new Date()[_0x1e32e4(0x14c)](),'level':_0x932155[_0x1e32e4(0x12f)]||_0x1e32e4(0x141),'command':_0x932155['command']||_0x1e32e4(0x142),'rawCommand':_0x932155[_0x1e32e4(0x132)]||this['currentRawCommand']||undefined,'message':_0x932155[_0x1e32e4(0x131)]||'','duration':_0x932155['duration']||undefined,'details':_0x932155['details']||undefined};return JSON['stringify'](_0x1d38ce);}));this[_0x487d1a(0x149)]=a2_0x45187a['createLogger']({'level':'info','format':_0x2e5bf2,'transports':[new a2_0x45187a['transports']['File']({'filename':this['logFilePath'],'level':_0x487d1a(0x141)})],'silent':![]}),a2_0x45187a['addColors']({'success':_0x487d1a(0x152),'error':_0x487d1a(0x12e),'warn':_0x487d1a(0x133),'info':_0x487d1a(0x14d)});}[a2_0x34553b(0x13a)](_0x54fd0c){const _0x58ebec=a2_0x34553b;this[_0x58ebec(0x12b)]=a2_0x381c04[_0x58ebec(0x15d)](_0x54fd0c,_0x58ebec(0x13b)),this[_0x58ebec(0x149)]&&this[_0x58ebec(0x149)][_0x58ebec(0x15c)](),this[_0x58ebec(0x156)]();}[a2_0x34553b(0x141)](_0xc402e7,_0x2898d6,_0x4b2f22){const _0x330205=a2_0x34553b;if(!this[_0x330205(0x12b)]||!this[_0x330205(0x149)])return;this['winstonLogger']['info'](_0x2898d6,{'command':_0xc402e7,'details':_0x4b2f22});}['success'](_0x22c8fa,_0x17e454,_0x4f3cf1,_0x5e0c0f){const _0x542327=a2_0x34553b;if(!this[_0x542327(0x12b)]||!this[_0x542327(0x149)])return;this[_0x542327(0x149)]['log'](_0x542327(0x141),_0x17e454,{'level':_0x542327(0x160),'command':_0x22c8fa,'duration':_0x4f3cf1,'details':_0x5e0c0f});}[a2_0x34553b(0x145)](_0x286d92,_0x228903,_0x285dfb){const _0x5e879b=a2_0x34553b;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x5e879b(0x145)](_0x228903,{'command':_0x286d92,'details':_0x285dfb});}[a2_0x34553b(0x137)](_0x5799d5,_0x553b31,_0x47ac79){const _0x55353c=a2_0x34553b;if(!this[_0x55353c(0x12b)]||!this[_0x55353c(0x149)])return;this[_0x55353c(0x149)]['warn'](_0x553b31,{'command':_0x5799d5,'details':_0x47ac79});}async['logTask'](_0x115e59,_0x4fe35d,_0x18effe){const _0x113723=a2_0x34553b,_0xd7bacf=Date['now']();this[_0x113723(0x141)](_0x115e59,_0x113723(0x13c)+_0x4fe35d);try{const _0x178071=await _0x18effe(),_0x292f24=Date[_0x113723(0x13e)]()-_0xd7bacf;return this[_0x113723(0x160)](_0x115e59,_0x113723(0x146)+_0x4fe35d,_0x292f24),_0x178071;}catch(_0x258cd8){const _0x289b71=Date[_0x113723(0x13e)]()-_0xd7bacf;this[_0x113723(0x145)](_0x115e59,_0x113723(0x14b)+_0x4fe35d,{'error':_0x258cd8 instanceof Error?_0x258cd8[_0x113723(0x131)]:String(_0x258cd8),'duration':_0x289b71});throw _0x258cd8;}}[a2_0x34553b(0x148)](){const _0xf93de7=a2_0x34553b;try{if(!a2_0x58159d[_0xf93de7(0x140)](this[_0xf93de7(0x12b)]))return[];const _0x5a9818=a2_0x58159d[_0xf93de7(0x158)](this[_0xf93de7(0x12b)],_0xf93de7(0x147));return _0x5a9818[_0xf93de7(0x136)]('\x0a')[_0xf93de7(0x12a)](_0x4131c8=>_0x4131c8[_0xf93de7(0x157)]())[_0xf93de7(0x159)](_0x305fce=>JSON[_0xf93de7(0x143)](_0x305fce));}catch(_0x39ca63){return console['warn']('Failed\x20to\x20read\x20logs:',_0x39ca63),[];}}[a2_0x34553b(0x15e)](){const _0x1687a2=a2_0x34553b;try{a2_0x58159d[_0x1687a2(0x140)](this[_0x1687a2(0x12b)])&&a2_0x58159d[_0x1687a2(0x154)](this['logFilePath'],'',_0x1687a2(0x147));}catch(_0x2a577d){console[_0x1687a2(0x137)]('Failed\x20to\x20clear\x20logs:',_0x2a577d);}}[a2_0x34553b(0x144)](){const _0x578c03=a2_0x34553b;return this[_0x578c03(0x149)];}}export const logger=new Logger();
1
+ const a2_0x251168=a2_0x1f8e;function a2_0x1f8e(_0x1a5977,_0x507fcc){_0x1a5977=_0x1a5977-0xcc;const _0x559a5f=a2_0x559a();let _0x1f8e90=_0x559a5f[_0x1a5977];return _0x1f8e90;}function a2_0x559a(){const _0x2e0105=['.lovrabet.log','existsSync','filter','File','clearLogs','readLogs','7038102DJUHIJ','timestamp','level','utf8','combine','6rQtHPi','createLogger','dirname','details','rawCommand','duration','trim','transports','green','winstonLogger','now','errors','format','stringify','message','585456CdiuuH','log','toISOString','1841938bAMRYX','initWinstonLogger','readFileSync','4994355IrAWAo','开始执行:\x20','warn','red','2313584LFEvJC','join','logFilePath','error','失败:\x20','info','command','currentRawCommand','split','yellow','success','Failed\x20to\x20read\x20logs:','setRawCommand','getWinstonInstance','8qmcIof','完成:\x20','blue','192380tOzGUy','writeFileSync','printf','9GdxPec','parse','mkdirSync','3889850rqAoeR'];a2_0x559a=function(){return _0x2e0105;};return a2_0x559a();}(function(_0xa00063,_0x2c2196){const _0x4a14b1=a2_0x1f8e,_0x24da6e=_0xa00063();while(!![]){try{const _0x360690=-parseInt(_0x4a14b1(0xfc))/0x1+parseInt(_0x4a14b1(0xe1))/0x2*(-parseInt(_0x4a14b1(0xd2))/0x3)+parseInt(_0x4a14b1(0xeb))/0x4+-parseInt(_0x4a14b1(0xe7))/0x5+parseInt(_0x4a14b1(0xcd))/0x6+-parseInt(_0x4a14b1(0xe4))/0x7*(-parseInt(_0x4a14b1(0xf9))/0x8)+parseInt(_0x4a14b1(0xff))/0x9*(parseInt(_0x4a14b1(0x102))/0xa);if(_0x360690===_0x2c2196)break;else _0x24da6e['push'](_0x24da6e['shift']());}catch(_0x1caee8){_0x24da6e['push'](_0x24da6e['shift']());}}}(a2_0x559a,0x99089));import a2_0x53e98d from'winston';import a2_0x51c630 from'node:fs';import a2_0x34df1d from'node:path';class Logger{[a2_0x251168(0xdb)];[a2_0x251168(0xed)];[a2_0x251168(0xf2)]='';constructor(){const _0x24da26=a2_0x251168;this[_0x24da26(0xed)]='';}[a2_0x251168(0xf7)](_0x28a78e){const _0x185bbd=a2_0x251168;this[_0x185bbd(0xf2)]=_0x28a78e;}[a2_0x251168(0xe5)](){const _0x53eb9c=a2_0x251168,_0x3fa7c4=a2_0x34df1d[_0x53eb9c(0xd4)](this[_0x53eb9c(0xed)]);!a2_0x51c630[_0x53eb9c(0x104)](_0x3fa7c4)&&a2_0x51c630[_0x53eb9c(0x101)](_0x3fa7c4,{'recursive':!![]});const _0x422909=a2_0x53e98d[_0x53eb9c(0xde)][_0x53eb9c(0xd1)](a2_0x53e98d[_0x53eb9c(0xde)][_0x53eb9c(0xce)](),a2_0x53e98d[_0x53eb9c(0xde)][_0x53eb9c(0xdd)]({'stack':!![]}),a2_0x53e98d['format'][_0x53eb9c(0xfe)](_0x4057e9=>{const _0x518e05=_0x53eb9c,_0x22e200={'timestamp':_0x4057e9[_0x518e05(0xce)]||new Date()[_0x518e05(0xe3)](),'level':_0x4057e9[_0x518e05(0xcf)]||'info','command':_0x4057e9[_0x518e05(0xf1)]||'unknown','rawCommand':_0x4057e9[_0x518e05(0xd6)]||this[_0x518e05(0xf2)]||undefined,'message':_0x4057e9[_0x518e05(0xe0)]||'','duration':_0x4057e9[_0x518e05(0xd7)]||undefined,'details':_0x4057e9[_0x518e05(0xd5)]||undefined};return JSON[_0x518e05(0xdf)](_0x22e200);}));this[_0x53eb9c(0xdb)]=a2_0x53e98d[_0x53eb9c(0xd3)]({'level':'info','format':_0x422909,'transports':[new a2_0x53e98d[(_0x53eb9c(0xd9))][(_0x53eb9c(0x106))]({'filename':this[_0x53eb9c(0xed)],'level':_0x53eb9c(0xf0)})],'silent':![]}),a2_0x53e98d['addColors']({'success':_0x53eb9c(0xda),'error':_0x53eb9c(0xea),'warn':_0x53eb9c(0xf4),'info':_0x53eb9c(0xfb)});}['setLogPath'](_0x113a00){const _0x4de74f=a2_0x251168;this[_0x4de74f(0xed)]=a2_0x34df1d[_0x4de74f(0xec)](_0x113a00,_0x4de74f(0x103)),this[_0x4de74f(0xdb)]&&this[_0x4de74f(0xdb)]['clear'](),this[_0x4de74f(0xe5)]();}[a2_0x251168(0xf0)](_0x4c4003,_0x18b2f2,_0x417f5a){const _0x581d4d=a2_0x251168;if(!this[_0x581d4d(0xed)]||!this['winstonLogger'])return;this[_0x581d4d(0xdb)]['info'](_0x18b2f2,{'command':_0x4c4003,'details':_0x417f5a});}['success'](_0x52ebf5,_0x4e194b,_0x3f18a1,_0xdc8807){const _0x3220e8=a2_0x251168;if(!this[_0x3220e8(0xed)]||!this[_0x3220e8(0xdb)])return;this[_0x3220e8(0xdb)][_0x3220e8(0xe2)]('info',_0x4e194b,{'level':_0x3220e8(0xf5),'command':_0x52ebf5,'duration':_0x3f18a1,'details':_0xdc8807});}[a2_0x251168(0xee)](_0x5c049c,_0x29e370,_0x10c79d){const _0x1878f9=a2_0x251168;if(!this[_0x1878f9(0xed)]||!this[_0x1878f9(0xdb)])return;this['winstonLogger'][_0x1878f9(0xee)](_0x29e370,{'command':_0x5c049c,'details':_0x10c79d});}[a2_0x251168(0xe9)](_0x2202a6,_0x331454,_0x294c53){const _0x45f4bd=a2_0x251168;if(!this[_0x45f4bd(0xed)]||!this['winstonLogger'])return;this['winstonLogger'][_0x45f4bd(0xe9)](_0x331454,{'command':_0x2202a6,'details':_0x294c53});}async['logTask'](_0x158671,_0x18335c,_0x38373b){const _0x2519ce=a2_0x251168,_0x3c1d2d=Date[_0x2519ce(0xdc)]();this[_0x2519ce(0xf0)](_0x158671,_0x2519ce(0xe8)+_0x18335c);try{const _0x25a0b0=await _0x38373b(),_0x3ed534=Date[_0x2519ce(0xdc)]()-_0x3c1d2d;return this[_0x2519ce(0xf5)](_0x158671,_0x2519ce(0xfa)+_0x18335c,_0x3ed534),_0x25a0b0;}catch(_0x28998e){const _0x518b5e=Date[_0x2519ce(0xdc)]()-_0x3c1d2d;this['error'](_0x158671,_0x2519ce(0xef)+_0x18335c,{'error':_0x28998e instanceof Error?_0x28998e[_0x2519ce(0xe0)]:String(_0x28998e),'duration':_0x518b5e});throw _0x28998e;}}[a2_0x251168(0xcc)](){const _0x2c7315=a2_0x251168;try{if(!a2_0x51c630['existsSync'](this[_0x2c7315(0xed)]))return[];const _0x4b3852=a2_0x51c630[_0x2c7315(0xe6)](this[_0x2c7315(0xed)],_0x2c7315(0xd0));return _0x4b3852[_0x2c7315(0xf3)]('\x0a')[_0x2c7315(0x105)](_0xd7b06d=>_0xd7b06d[_0x2c7315(0xd8)]())['map'](_0xc79653=>JSON[_0x2c7315(0x100)](_0xc79653));}catch(_0x40a644){return console[_0x2c7315(0xe9)](_0x2c7315(0xf6),_0x40a644),[];}}[a2_0x251168(0x107)](){const _0x3c5292=a2_0x251168;try{a2_0x51c630[_0x3c5292(0x104)](this[_0x3c5292(0xed)])&&a2_0x51c630[_0x3c5292(0xfd)](this[_0x3c5292(0xed)],'',_0x3c5292(0xd0));}catch(_0x20c021){console['warn']('Failed\x20to\x20clear\x20logs:',_0x20c021);}}[a2_0x251168(0xf8)](){const _0x15e7ac=a2_0x251168;return this[_0x15e7ac(0xdb)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a17_0x333b(){const _0x3f77d6=['64uBdxhA','25703793dsLmPt','win32','225402FoIXjA','1053977BoOPXC','platform','6279580KuVwca','203DQunmM','.cmd','121104ugbsOO','1641456hFEbvP','686160pWulgH'];a17_0x333b=function(){return _0x3f77d6;};return a17_0x333b();}const a17_0x391434=a17_0x4b21;(function(_0x51478f,_0x49f9d7){const _0x21e470=a17_0x4b21,_0x3e8d69=_0x51478f();while(!![]){try{const _0x2b4b2e=-parseInt(_0x21e470(0x118))/0x1+parseInt(_0x21e470(0x112))/0x2+-parseInt(_0x21e470(0x117))/0x3*(parseInt(_0x21e470(0x114))/0x4)+-parseInt(_0x21e470(0x11a))/0x5+parseInt(_0x21e470(0x111))/0x6*(parseInt(_0x21e470(0x11b))/0x7)+-parseInt(_0x21e470(0x113))/0x8+parseInt(_0x21e470(0x115))/0x9;if(_0x2b4b2e===_0x49f9d7)break;else _0x3e8d69['push'](_0x3e8d69['shift']());}catch(_0x5c76cf){_0x3e8d69['push'](_0x3e8d69['shift']());}}}(a17_0x333b,0xa22aa));export const isWindows=process[a17_0x391434(0x119)]===a17_0x391434(0x116);function a17_0x4b21(_0x578d90,_0x475753){_0x578d90=_0x578d90-0x111;const _0x333b05=a17_0x333b();let _0x4b2130=_0x333b05[_0x578d90];return _0x4b2130;}export function resolveNpmBin(_0x22ba4d){const _0x1e9259=a17_0x391434;return isWindows?_0x22ba4d+_0x1e9259(0x11c):_0x22ba4d;}
1
+ function a17_0x30e7(){const _0xa23a28=['4sluxlp','3276175aCxKMH','875724jIdzDm','10XuZWqy','.cmd','6949646idivzJ','platform','756488PauTRP','6iVwlYL','81924NtahZK','win32','2964159mFyQzm','682900TEGwTe','15txhlgG'];a17_0x30e7=function(){return _0xa23a28;};return a17_0x30e7();}const a17_0x583ac8=a17_0x4124;(function(_0x28637a,_0xbabd9f){const _0x329044=a17_0x4124,_0x117833=_0x28637a();while(!![]){try{const _0x2da024=-parseInt(_0x329044(0x1dc))/0x1*(-parseInt(_0x329044(0x1e1))/0x2)+-parseInt(_0x329044(0x1d5))/0x3+-parseInt(_0x329044(0x1df))/0x4*(-parseInt(_0x329044(0x1e0))/0x5)+parseInt(_0x329044(0x1db))/0x6*(-parseInt(_0x329044(0x1e2))/0x7)+parseInt(_0x329044(0x1da))/0x8+parseInt(_0x329044(0x1de))/0x9*(-parseInt(_0x329044(0x1d6))/0xa)+parseInt(_0x329044(0x1d8))/0xb;if(_0x2da024===_0xbabd9f)break;else _0x117833['push'](_0x117833['shift']());}catch(_0x5069ef){_0x117833['push'](_0x117833['shift']());}}}(a17_0x30e7,0x4c6fe));function a17_0x4124(_0x2a7847,_0xddc59b){_0x2a7847=_0x2a7847-0x1d5;const _0x30e748=a17_0x30e7();let _0x4124e6=_0x30e748[_0x2a7847];return _0x4124e6;}export const isWindows=process[a17_0x583ac8(0x1d9)]===a17_0x583ac8(0x1dd);export function resolveNpmBin(_0x36ddc2){const _0x504619=a17_0x583ac8;return isWindows?_0x36ddc2+_0x504619(0x1d7):_0x36ddc2;}