@lovrabet/rabetbase-cli 2.3.14 → 2.3.15-beta.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 (264) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/asset-update.js +1 -1
  103. package/lib/commands/menu/delete.js +1 -1
  104. package/lib/commands/menu/external-link-create.js +1 -1
  105. package/lib/commands/menu/external-link-update.js +1 -1
  106. package/lib/commands/menu/group-create.js +1 -1
  107. package/lib/commands/menu/group-update.js +1 -1
  108. package/lib/commands/menu/index.js +1 -1
  109. package/lib/commands/menu/list.js +1 -1
  110. package/lib/commands/menu/move.js +1 -1
  111. package/lib/commands/menu/regroup-start.js +1 -1
  112. package/lib/commands/menu/rename.js +1 -0
  113. package/lib/commands/menu/shared/compare-table.js +1 -1
  114. package/lib/commands/menu/shared/delete-plan.js +1 -1
  115. package/lib/commands/menu/shared/facts.js +1 -1
  116. package/lib/commands/menu/shared/index.js +1 -1
  117. package/lib/commands/menu/shared/inquirer.js +1 -1
  118. package/lib/commands/menu/shared/local-pages.js +1 -1
  119. package/lib/commands/menu/shared/logic.js +1 -1
  120. package/lib/commands/menu/shared/mutations.js +1 -1
  121. package/lib/commands/menu/shared/service.js +1 -1
  122. package/lib/commands/menu/shared/sync-core.js +1 -1
  123. package/lib/commands/menu/shared/update-core.js +1 -1
  124. package/lib/commands/menu/shared/valid-url.js +1 -1
  125. package/lib/commands/menu/sync.js +1 -1
  126. package/lib/commands/notification/config-list.js +1 -1
  127. package/lib/commands/notification/index.js +1 -1
  128. package/lib/commands/ocr/index.js +1 -1
  129. package/lib/commands/page/generate-start.js +1 -1
  130. package/lib/commands/page/generate-status.js +1 -1
  131. package/lib/commands/page/index.js +1 -1
  132. package/lib/commands/page/pull.js +1 -1
  133. package/lib/commands/page/push.js +1 -1
  134. package/lib/commands/page/relation-audit.js +1 -1
  135. package/lib/commands/page/restore.js +1 -1
  136. package/lib/commands/page/shared.js +1 -1
  137. package/lib/commands/page/standard-page-status.js +1 -1
  138. package/lib/commands/page/sync.js +1 -1
  139. package/lib/commands/permit/index.js +1 -1
  140. package/lib/commands/permit/page-get.js +1 -1
  141. package/lib/commands/permit/page-set.js +1 -1
  142. package/lib/commands/permit/role-apis-set.js +1 -1
  143. package/lib/commands/permit/role-menus-set.js +1 -1
  144. package/lib/commands/permit/role-menus.js +1 -1
  145. package/lib/commands/permit/shared.js +1 -1
  146. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  147. package/lib/commands/project/create/format-elapsed.js +1 -1
  148. package/lib/commands/project/create/main.js +1 -1
  149. package/lib/commands/project/create/non-interactive.js +1 -1
  150. package/lib/commands/project/create/project-template-path.js +1 -1
  151. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  152. package/lib/commands/project/create/use-format-code.js +1 -1
  153. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  154. package/lib/commands/project/index.js +1 -1
  155. package/lib/commands/project/init.js +1 -1
  156. package/lib/commands/project/upgrade.js +1 -1
  157. package/lib/commands/registry.js +1 -1
  158. package/lib/commands/role/create.js +1 -1
  159. package/lib/commands/role/delete.js +1 -1
  160. package/lib/commands/role/detail.js +1 -1
  161. package/lib/commands/role/index.js +1 -1
  162. package/lib/commands/role/list.js +1 -1
  163. package/lib/commands/role/shared.js +1 -1
  164. package/lib/commands/role/update.js +1 -1
  165. package/lib/commands/role/user-add.js +1 -1
  166. package/lib/commands/role/user-remove.js +1 -1
  167. package/lib/commands/role/user-resolve.js +1 -1
  168. package/lib/commands/run/index.js +1 -1
  169. package/lib/commands/schema.js +1 -1
  170. package/lib/commands/sql/create.js +1 -1
  171. package/lib/commands/sql/delete.js +1 -1
  172. package/lib/commands/sql/detail.js +1 -1
  173. package/lib/commands/sql/exec.js +1 -1
  174. package/lib/commands/sql/index.js +1 -1
  175. package/lib/commands/sql/list.js +1 -1
  176. package/lib/commands/sql/pull.js +1 -1
  177. package/lib/commands/sql/push.js +1 -1
  178. package/lib/commands/sql/save.js +1 -1
  179. package/lib/commands/sql/shared.js +1 -1
  180. package/lib/commands/sql/status.js +1 -1
  181. package/lib/commands/sql/validate.js +1 -1
  182. package/lib/commands/task/index.js +1 -1
  183. package/lib/commands/task/status.js +1 -1
  184. package/lib/commands/workspace/add.js +1 -1
  185. package/lib/commands/workspace/index.js +1 -1
  186. package/lib/commands/workspace/remove.js +1 -1
  187. package/lib/config/schema.js +1 -1
  188. package/lib/constant/cdn.js +1 -1
  189. package/lib/constant/cli.js +1 -1
  190. package/lib/constant/defaults.js +1 -1
  191. package/lib/constant/domain.js +1 -1
  192. package/lib/constant/env.js +1 -1
  193. package/lib/constant/output.js +1 -1
  194. package/lib/constant/paths.js +1 -1
  195. package/lib/constant/risk.js +1 -1
  196. package/lib/context/app-resolver.js +1 -1
  197. package/lib/context/auth-resolver.js +1 -1
  198. package/lib/context/config-loader.js +1 -1
  199. package/lib/context.js +1 -1
  200. package/lib/core/alias-resolver.js +1 -1
  201. package/lib/core/api-client.js +1 -1
  202. package/lib/core/bff/config.js +1 -1
  203. package/lib/core/bff/file-system.js +1 -1
  204. package/lib/core/bff/hash.js +1 -1
  205. package/lib/core/bff/lock.js +1 -1
  206. package/lib/core/bff/utils.js +1 -1
  207. package/lib/core/db-resolver.js +1 -1
  208. package/lib/core/page/file-system.js +1 -1
  209. package/lib/core/page/hash.js +1 -1
  210. package/lib/core/page/lock.js +1 -1
  211. package/lib/core/sql-index-auditor.js +1 -1
  212. package/lib/core/sql-sync/config.js +1 -1
  213. package/lib/core/sql-sync/file-system.js +1 -1
  214. package/lib/core/sql-sync/hash.js +1 -1
  215. package/lib/core/sql-sync/lock.js +1 -1
  216. package/lib/core/sql-sync/utils.js +1 -1
  217. package/lib/core/sql-validator.js +1 -1
  218. package/lib/errors.js +1 -1
  219. package/lib/framework/build-all-flags.js +1 -1
  220. package/lib/framework/error-output.js +1 -1
  221. package/lib/framework/explicit-yes.js +1 -1
  222. package/lib/framework/flags.js +1 -1
  223. package/lib/framework/help.js +1 -1
  224. package/lib/framework/index.js +1 -1
  225. package/lib/framework/output.js +1 -1
  226. package/lib/framework/response.js +1 -1
  227. package/lib/framework/runner-alias.js +1 -1
  228. package/lib/framework/runner.js +1 -1
  229. package/lib/framework/schema-export.js +1 -1
  230. package/lib/framework/types.js +1 -1
  231. package/lib/generated/build-info.js +1 -1
  232. package/lib/help.js +1 -1
  233. package/lib/skills/main.js +1 -1
  234. package/lib/skills/npx-skills-add.js +1 -1
  235. package/lib/telemetry/cli-command-trace.js +1 -1
  236. package/lib/telemetry/cli-help-trace.js +1 -1
  237. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  238. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  239. package/lib/telemetry/send-cli-trace-log.js +1 -1
  240. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  241. package/lib/utils/ai_config.js +1 -1
  242. package/lib/utils/apply-jq-filter.js +1 -1
  243. package/lib/utils/cdn-config.js +1 -1
  244. package/lib/utils/check-sdk-version.js +1 -1
  245. package/lib/utils/cli-version-check.js +1 -1
  246. package/lib/utils/cli-version-policy.js +1 -1
  247. package/lib/utils/config.js +1 -1
  248. package/lib/utils/copy-directory.js +1 -1
  249. package/lib/utils/entity-with-id.js +1 -1
  250. package/lib/utils/file-utils.js +1 -1
  251. package/lib/utils/guides-cdn.js +1 -1
  252. package/lib/utils/http-client.js +1 -1
  253. package/lib/utils/is-non-interactive.js +1 -1
  254. package/lib/utils/logger.js +1 -1
  255. package/lib/utils/params.js +1 -1
  256. package/lib/utils/platform.js +1 -1
  257. package/lib/utils/rules-cdn.js +1 -1
  258. package/lib/utils/sleep.js +1 -1
  259. package/lib/utils/template-replacer.js +1 -1
  260. package/lib/utils/update-notice.js +1 -1
  261. package/lib/utils/version.js +1 -1
  262. package/lib/utils/with-active-cookie.js +1 -1
  263. package/lib/utils/write-cli-side-channel.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x22fcd4,_0x143aca){const _0x3e071a=a231_0x5583,_0x3269c2=_0x22fcd4();while(!![]){try{const _0x5cfa43=parseInt(_0x3e071a(0xb3))/0x1*(-parseInt(_0x3e071a(0xae))/0x2)+-parseInt(_0x3e071a(0xb7))/0x3*(parseInt(_0x3e071a(0xb8))/0x4)+parseInt(_0x3e071a(0xb4))/0x5+parseInt(_0x3e071a(0xb1))/0x6*(parseInt(_0x3e071a(0xbb))/0x7)+-parseInt(_0x3e071a(0xb6))/0x8*(parseInt(_0x3e071a(0xaf))/0x9)+parseInt(_0x3e071a(0xb9))/0xa*(parseInt(_0x3e071a(0xb2))/0xb)+parseInt(_0x3e071a(0xba))/0xc*(parseInt(_0x3e071a(0xb5))/0xd);if(_0x5cfa43===_0x143aca)break;else _0x3269c2['push'](_0x3269c2['shift']());}catch(_0x30b726){_0x3269c2['push'](_0x3269c2['shift']());}}}(a231_0x3b19,0xc7a00));import{buildSchemaPayload as a231_0xff9555}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a231_0x3b19(){const _0x3a26ff=['315944davaTs','10azJSog','16927260FYCYnK','7JbhNIf','2xHylKw','18uatDkH','../commands/registry.js','3546054XKcypC','11467445JeVKcE','1233021yPjDBk','2322970whiTpe','13JtZFTA','1408856HZoILR','42gmKOfg'];a231_0x3b19=function(){return _0x3a26ff;};return a231_0x3b19();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a231_0x5583(_0x266709,_0x1399c9){_0x266709=_0x266709-0xae;const _0x3b1930=a231_0x3b19();let _0x55833b=_0x3b1930[_0x266709];return _0x55833b;}export async function buildSchemaPayload(){const _0x5ddef0=a231_0x5583,{serviceRegistry:_0xe5ddb0,findDefinition:_0x51748b}=await import(_0x5ddef0(0xb0));return a231_0xff9555({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xe5ddb0,'buildAllFlags':buildAllFlags,'findDefinition':_0x51748b});}
1
+ (function(_0x2ae7e0,_0x10e86d){const _0x40603a=a232_0x7a14,_0x231273=_0x2ae7e0();while(!![]){try{const _0x6e7760=-parseInt(_0x40603a(0xd3))/0x1+-parseInt(_0x40603a(0xcc))/0x2+parseInt(_0x40603a(0xd1))/0x3*(parseInt(_0x40603a(0xce))/0x4)+parseInt(_0x40603a(0xd0))/0x5+-parseInt(_0x40603a(0xcd))/0x6+-parseInt(_0x40603a(0xcf))/0x7+parseInt(_0x40603a(0xcb))/0x8;if(_0x6e7760===_0x10e86d)break;else _0x231273['push'](_0x231273['shift']());}catch(_0x57bea3){_0x231273['push'](_0x231273['shift']());}}}(a232_0xe075,0xf34ca));import{buildSchemaPayload as a232_0x13dd0c}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a232_0x7a14(_0x17046a,_0x4ae773){_0x17046a=_0x17046a-0xcb;const _0xe075ff=a232_0xe075();let _0x7a1401=_0xe075ff[_0x17046a];return _0x7a1401;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x55f456=a232_0x7a14,{serviceRegistry:_0x30ff93,findDefinition:_0x556ede}=await import(_0x55f456(0xd2));return a232_0x13dd0c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x30ff93,'buildAllFlags':buildAllFlags,'findDefinition':_0x556ede});}function a232_0xe075(){const _0x255450=['3401480vnRdPu','11446218GqLzTy','1344868bmJjzC','770770UxPCvu','1885910EcWLWK','3giaEDj','../commands/registry.js','1412614uRJsfu','43314576MtjHMc'];a232_0xe075=function(){return _0x255450;};return a232_0xe075();}
@@ -1 +1 @@
1
- (function(_0x53b968,_0x4f5fd4){var _0x2907b6=a232_0xf297,_0xe1986f=_0x53b968();while(!![]){try{var _0x506911=parseInt(_0x2907b6(0x151))/0x1+-parseInt(_0x2907b6(0x14e))/0x2+parseInt(_0x2907b6(0x14f))/0x3+parseInt(_0x2907b6(0x149))/0x4*(-parseInt(_0x2907b6(0x14a))/0x5)+parseInt(_0x2907b6(0x14c))/0x6+parseInt(_0x2907b6(0x14d))/0x7*(-parseInt(_0x2907b6(0x150))/0x8)+-parseInt(_0x2907b6(0x148))/0x9*(-parseInt(_0x2907b6(0x14b))/0xa);if(_0x506911===_0x4f5fd4)break;else _0xe1986f['push'](_0xe1986f['shift']());}catch(_0x9e2f05){_0xe1986f['push'](_0xe1986f['shift']());}}}(a232_0x368d,0xc6d32));function a232_0x368d(){var _0x36ec2b=['255812kVfZNw','6573051dHQeFd','8HDFHAt','173390UjolDT','10wFDmnN','1974048hEOKjt','83566gtqfHT','1707380KOQdHl','2627751jZjLVL','304MrMNbd'];a232_0x368d=function(){return _0x36ec2b;};return a232_0x368d();}function a232_0xf297(_0x5874d0,_0x5b34ba){_0x5874d0=_0x5874d0-0x148;var _0x368da8=a232_0x368d();var _0xf2970a=_0x368da8[_0x5874d0];return _0xf2970a;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a233_0x704a(_0x499b4f,_0x198e3c){_0x499b4f=_0x499b4f-0x140;var _0x5955e8=a233_0x5955();var _0x704aca=_0x5955e8[_0x499b4f];return _0x704aca;}function a233_0x5955(){var _0x94223c=['143070KRfWyw','111062cYGBPX','412700dQCwze','150aKVhxz','1103224mCdbCB','304duXzFw','144vTlqFX','512238ztIPyS','2517808AbGKVY','487824nnpMOW'];a233_0x5955=function(){return _0x94223c;};return a233_0x5955();}(function(_0x589211,_0x4c0d03){var _0xa988f4=a233_0x704a,_0x4961a7=_0x589211();while(!![]){try{var _0xd353fb=-parseInt(_0xa988f4(0x140))/0x1+parseInt(_0xa988f4(0x145))/0x2+parseInt(_0xa988f4(0x143))/0x3+parseInt(_0xa988f4(0x144))/0x4+parseInt(_0xa988f4(0x146))/0x5*(parseInt(_0xa988f4(0x149))/0x6)+parseInt(_0xa988f4(0x147))/0x7*(parseInt(_0xa988f4(0x141))/0x8)+parseInt(_0xa988f4(0x142))/0x9*(-parseInt(_0xa988f4(0x148))/0xa);if(_0xd353fb===_0x4c0d03)break;else _0x4961a7['push'](_0x4961a7['shift']());}catch(_0x31ac0f){_0x4961a7['push'](_0x4961a7['shift']());}}}(a233_0x5955,0x92328));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a233_0x4d913a=a233_0x5538;function a233_0x5538(_0x655620,_0x37bf4e){_0x655620=_0x655620-0xb0;const _0x3d467d=a233_0x3d46();let _0x55385f=_0x3d467d[_0x655620];return _0x55385f;}function a233_0x3d46(){const _0x207c27=['2NLDZqg','v2.3.14','1749234UCtvIZ','11145184lQtTJD','2428974fPsllP','7PhjyKD','335rVuzHz','10180VVOUYs','6a66cde','32403310isojNd','2026-08-06T10:53:11.186Z','626887QNygMC','754626mqdRMi','2.3.14'];a233_0x3d46=function(){return _0x207c27;};return a233_0x3d46();}(function(_0x2b9ab0,_0x2eb047){const _0x3ae805=a233_0x5538,_0x1e34fd=_0x2b9ab0();while(!![]){try{const _0x4c5537=-parseInt(_0x3ae805(0xb2))/0x1*(parseInt(_0x3ae805(0xb5))/0x2)+parseInt(_0x3ae805(0xb3))/0x3+-parseInt(_0x3ae805(0xbc))/0x4*(parseInt(_0x3ae805(0xbb))/0x5)+-parseInt(_0x3ae805(0xb7))/0x6*(parseInt(_0x3ae805(0xba))/0x7)+-parseInt(_0x3ae805(0xb8))/0x8+-parseInt(_0x3ae805(0xb9))/0x9+parseInt(_0x3ae805(0xb0))/0xa;if(_0x4c5537===_0x2eb047)break;else _0x1e34fd['push'](_0x1e34fd['shift']());}catch(_0x57f699){_0x1e34fd['push'](_0x1e34fd['shift']());}}}(a233_0x3d46,0xb4a3a));export const VERSION=a233_0x4d913a(0xb4);export const GIT_TAG=a233_0x4d913a(0xb6);export const GIT_COMMIT=a233_0x4d913a(0xbd);export const BUILD_TIME=a233_0x4d913a(0xb1);
1
+ const a234_0x111187=a234_0x4128;(function(_0x5e25cf,_0x1b3f2c){const _0x60a241=a234_0x4128,_0xc8f523=_0x5e25cf();while(!![]){try{const _0x1db8bd=-parseInt(_0x60a241(0xc1))/0x1*(-parseInt(_0x60a241(0xc2))/0x2)+parseInt(_0x60a241(0xc9))/0x3+-parseInt(_0x60a241(0xc6))/0x4+-parseInt(_0x60a241(0xc3))/0x5+-parseInt(_0x60a241(0xc5))/0x6+-parseInt(_0x60a241(0xc4))/0x7+parseInt(_0x60a241(0xbe))/0x8*(parseInt(_0x60a241(0xc7))/0x9);if(_0x1db8bd===_0x1b3f2c)break;else _0xc8f523['push'](_0xc8f523['shift']());}catch(_0x3fcc6){_0xc8f523['push'](_0xc8f523['shift']());}}}(a234_0x47ae,0x55ee6));export const VERSION=a234_0x111187(0xbf);export const GIT_TAG=a234_0x111187(0xc8);function a234_0x4128(_0x1dd0bc,_0x361bce){_0x1dd0bc=_0x1dd0bc-0xbe;const _0x47ae44=a234_0x47ae();let _0x41280c=_0x47ae44[_0x1dd0bc];return _0x41280c;}function a234_0x47ae(){const _0x54251b=['d6d7e1b','1WHDOWC','542956zKVAjt','1549370QenFVo','3710875TtOuZm','3900552AXLpEI','923604RFRDDT','915633RLlyDq','v2.3.15-beta.2','215877dUIAOf','136pCKmhi','2.3.15-beta.2'];a234_0x47ae=function(){return _0x54251b;};return a234_0x47ae();}export const GIT_COMMIT=a234_0x111187(0xc0);export const BUILD_TIME='2026-08-09T06:05:57.204Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a234_0x5a01(_0x4b006c,_0x265544){_0x4b006c=_0x4b006c-0xb4;var _0xf3acef=a234_0xf3ac();var _0x5a018d=_0xf3acef[_0x4b006c];return _0x5a018d;}(function(_0x3282bf,_0x2bd793){var _0x16230d=a234_0x5a01,_0x47ec82=_0x3282bf();while(!![]){try{var _0x37e9dd=-parseInt(_0x16230d(0xb4))/0x1*(parseInt(_0x16230d(0xbd))/0x2)+-parseInt(_0x16230d(0xbe))/0x3+-parseInt(_0x16230d(0xbc))/0x4+-parseInt(_0x16230d(0xb6))/0x5+parseInt(_0x16230d(0xc4))/0x6*(-parseInt(_0x16230d(0xb7))/0x7)+-parseInt(_0x16230d(0xb8))/0x8*(-parseInt(_0x16230d(0xc2))/0x9)+-parseInt(_0x16230d(0xb9))/0xa*(-parseInt(_0x16230d(0xc3))/0xb);if(_0x37e9dd===_0x2bd793)break;else _0x47ec82['push'](_0x47ec82['shift']());}catch(_0x472bbb){_0x47ec82['push'](_0x47ec82['shift']());}}}(a234_0xf3ac,0x855bd));import a234_0x2b8861 from'chalk';function a234_0xf3ac(){var _0x51525f=['2YNoIix','770781BzmbTm','\x20--help','\x20to\x20view\x20available\x20commands.','green','9eyCrxD','52327IqNnQN','87198bZRzKb','106718fcDUiu','log','3874595dFjIpE','189tyCsAy','5843304PegBWZ','3140TCggtp','\x20\x20Use\x20','bold','587676wJjMlv'];a234_0xf3ac=function(){return _0x51525f;};return a234_0xf3ac();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x540fed=a234_0x5a01;console[_0x540fed(0xb5)](),console[_0x540fed(0xb5)](a234_0x2b8861['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x540fed(0xb5)](),console[_0x540fed(0xb5)](_0x540fed(0xba)+a234_0x2b8861[_0x540fed(0xc1)][_0x540fed(0xbb)](CLI_BIN_NAME+_0x540fed(0xbf))+_0x540fed(0xc0)),console['log']();}
1
+ (function(_0x157eff,_0x3b1158){var _0x3cc0d8=a235_0x3b17,_0x46f1b1=_0x157eff();while(!![]){try{var _0x10ee8e=parseInt(_0x3cc0d8(0x1ce))/0x1*(-parseInt(_0x3cc0d8(0x1d5))/0x2)+-parseInt(_0x3cc0d8(0x1cf))/0x3+-parseInt(_0x3cc0d8(0x1d2))/0x4*(parseInt(_0x3cc0d8(0x1c6))/0x5)+-parseInt(_0x3cc0d8(0x1cd))/0x6*(parseInt(_0x3cc0d8(0x1cc))/0x7)+parseInt(_0x3cc0d8(0x1ca))/0x8*(parseInt(_0x3cc0d8(0x1d4))/0x9)+-parseInt(_0x3cc0d8(0x1c9))/0xa*(parseInt(_0x3cc0d8(0x1c7))/0xb)+parseInt(_0x3cc0d8(0x1cb))/0xc;if(_0x10ee8e===_0x3b1158)break;else _0x46f1b1['push'](_0x46f1b1['shift']());}catch(_0x5812ef){_0x46f1b1['push'](_0x46f1b1['shift']());}}}(a235_0x2f07,0x88e3d));function a235_0x3b17(_0xe06d2c,_0x313520){_0xe06d2c=_0xe06d2c-0x1c6;var _0x2f07db=a235_0x2f07();var _0x3b17bc=_0x2f07db[_0xe06d2c];return _0x3b17bc;}import a235_0x4ad497 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4a8b29=a235_0x3b17;console[_0x4a8b29(0x1d3)](),console['log'](a235_0x4ad497[_0x4a8b29(0x1d1)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4a8b29(0x1d3)](),console[_0x4a8b29(0x1d3)]('\x20\x20Use\x20'+a235_0x4ad497[_0x4a8b29(0x1d1)][_0x4a8b29(0x1d0)](CLI_BIN_NAME+_0x4a8b29(0x1c8))+_0x4a8b29(0x1d6)),console[_0x4a8b29(0x1d3)]();}function a235_0x2f07(){var _0x2c1e37=['6Xubdas','1CwgPhO','1574220EarmGi','bold','green','12476PKWEFI','log','224874ldohTZ','290236DokhSn','\x20to\x20view\x20available\x20commands.','315XoLCnW','979xtiMAC','\x20--help','99740cyHqay','24gNvJWV','29685648wNWCcY','1638140ddIdTG'];a235_0x2f07=function(){return _0x2c1e37;};return a235_0x2f07();}
@@ -1 +1 @@
1
- (function(_0x4d6550,_0xaaf63){const _0x5b78a4=a235_0x213f,_0x48fc67=_0x4d6550();while(!![]){try{const _0x4dba90=parseInt(_0x5b78a4(0x1c7))/0x1*(-parseInt(_0x5b78a4(0x1dd))/0x2)+-parseInt(_0x5b78a4(0x1c9))/0x3+-parseInt(_0x5b78a4(0x1c1))/0x4*(parseInt(_0x5b78a4(0x1cb))/0x5)+parseInt(_0x5b78a4(0x1be))/0x6+-parseInt(_0x5b78a4(0x1bd))/0x7+-parseInt(_0x5b78a4(0x1c8))/0x8+-parseInt(_0x5b78a4(0x1d9))/0x9*(-parseInt(_0x5b78a4(0x1c0))/0xa);if(_0x4dba90===_0xaaf63)break;else _0x48fc67['push'](_0x48fc67['shift']());}catch(_0x1dbddb){_0x48fc67['push'](_0x48fc67['shift']());}}}(a235_0x74db,0x3f284));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a235_0x213f(_0x1a99cc,_0x811d52){_0x1a99cc=_0x1a99cc-0x1ba;const _0x74dbe0=a235_0x74db();let _0x213f29=_0x74dbe0[_0x1a99cc];return _0x213f29;}export function camelCaseFlagsToKebab(_0x56aa51){const _0x73916c=a235_0x213f,_0x1f4158=[];for(const [_0xa84fa3,_0x5540e0]of Object[_0x73916c(0x1bb)](_0x56aa51)){if(_0x5540e0===!![]){const _0x4a15e3=_0xa84fa3[_0x73916c(0x1d6)](/([A-Z])/g,'-$1')[_0x73916c(0x1c4)]();_0x1f4158[_0x73916c(0x1c5)](_0x4a15e3);}}return _0x1f4158;}export function parseDynamicFlags(){const _0x292205=a235_0x213f,_0x2525ec=[];for(let _0x3aedc5=0x3;_0x3aedc5<process[_0x292205(0x1da)][_0x292205(0x1d0)];_0x3aedc5++){const _0x21c1c1=process['argv'][_0x3aedc5];if(_0x21c1c1&&_0x21c1c1[_0x292205(0x1c3)]('--')){const _0x1d2e51=_0x21c1c1['slice'](0x2);_0x1d2e51&&!_0x1d2e51[_0x292205(0x1d2)]('=')&&_0x2525ec['push'](_0x1d2e51);}}return _0x2525ec;}export function getAllProvidedFlags(_0x4853f9){const _0xe3f0f3=a235_0x213f,_0x47d0e4=camelCaseFlagsToKebab(_0x4853f9),_0x484430=parseDynamicFlags(),_0x2efe16=new Set([..._0x47d0e4,..._0x484430]);return Array[_0xe3f0f3(0x1ce)](_0x2efe16);}export function normalizeLegacyBffSaveFlags(_0x1cf979){const _0x1c9053=a235_0x213f,_0x1803a7=new Set(_0x1cf979);return _0x1803a7[_0x1c9053(0x1c6)](_0x1c9053(0x1dc))&&_0x1803a7[_0x1c9053(0x1bf)](_0x1c9053(0x1d5)),Array[_0x1c9053(0x1ce)](_0x1803a7);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a235_0x74db(){const _0x472521=['replace','help','log','22113MRHejq','argv','exit','dangerously-bff-save','2908ASnLBf','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','entries','不支持的命令:\x20','1405222OhOQil','2952192TbLOdh','add','1730Pabfnk','2744uQpGTU','--help','startsWith','toLowerCase','push','has','161WvxdJH','513120xVlRCo','270405gRooQA','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','505lrHKnK','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','from','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','length','skill','includes','error','\x0aAvailable\x20commands:','enable-bff-save'];a235_0x74db=function(){return _0x472521;};return a235_0x74db();}export async function skillsCommand(_0x445453,_0x482bca,_0x7863b4){const _0xd1c682=a235_0x213f;logger['setLogPath'](process['cwd']());if(_0x7863b4?.[_0xd1c682(0x1d7)]||_0x445453===_0xd1c682(0x1c2)){showHelp();return;}console[_0xd1c682(0x1d3)](_0xd1c682(0x1cd)+(_0x445453||'(empty)')),console[_0xd1c682(0x1d8)](_0xd1c682(0x1d4)),console['log']('\x20\x20'+CLI_BIN_NAME+_0xd1c682(0x1ba)),console[_0xd1c682(0x1d8)](''),console[_0xd1c682(0x1d8)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0xd1c682(0x1d3)](_0xd1c682(0x1d1),_0xd1c682(0x1bc)+_0x445453),process[_0xd1c682(0x1db)](0x1);}function showHelp(){const _0x33f7a7=a235_0x213f;console['log'](_0x33f7a7(0x1ca)+CLI_BIN_NAME+_0x33f7a7(0x1cc)+SKILLS_INSTALL_COMMAND_LINE+_0x33f7a7(0x1cf));}
1
+ (function(_0x4c4f88,_0x3b4123){const _0x556f7a=a236_0x1f1e,_0x2f20fd=_0x4c4f88();while(!![]){try{const _0x1a9bc5=parseInt(_0x556f7a(0x146))/0x1*(parseInt(_0x556f7a(0x15d))/0x2)+parseInt(_0x556f7a(0x140))/0x3*(parseInt(_0x556f7a(0x152))/0x4)+-parseInt(_0x556f7a(0x15b))/0x5+parseInt(_0x556f7a(0x15c))/0x6*(-parseInt(_0x556f7a(0x156))/0x7)+-parseInt(_0x556f7a(0x145))/0x8+-parseInt(_0x556f7a(0x13e))/0x9+-parseInt(_0x556f7a(0x143))/0xa*(-parseInt(_0x556f7a(0x147))/0xb);if(_0x1a9bc5===_0x3b4123)break;else _0x2f20fd['push'](_0x2f20fd['shift']());}catch(_0x2b1e7b){_0x2f20fd['push'](_0x2f20fd['shift']());}}}(a236_0x4b1c,0x7a152));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a236_0x1f1e(_0x1b5036,_0x49912b){_0x1b5036=_0x1b5036-0x13d;const _0x4b1c96=a236_0x4b1c();let _0x1f1e2c=_0x4b1c96[_0x1b5036];return _0x1f1e2c;}export function camelCaseFlagsToKebab(_0x2bcfd1){const _0x1e7450=a236_0x1f1e,_0x19ec27=[];for(const [_0x45cd12,_0x26f580]of Object[_0x1e7450(0x153)](_0x2bcfd1)){if(_0x26f580===!![]){const _0x182399=_0x45cd12[_0x1e7450(0x15f)](/([A-Z])/g,'-$1')[_0x1e7450(0x161)]();_0x19ec27[_0x1e7450(0x154)](_0x182399);}}return _0x19ec27;}export function parseDynamicFlags(){const _0x376128=a236_0x1f1e,_0x59e537=[];for(let _0x36d78c=0x3;_0x36d78c<process[_0x376128(0x158)][_0x376128(0x14d)];_0x36d78c++){const _0x201ae4=process[_0x376128(0x158)][_0x36d78c];if(_0x201ae4&&_0x201ae4[_0x376128(0x15a)]('--')){const _0x173738=_0x201ae4['slice'](0x2);_0x173738&&!_0x173738[_0x376128(0x14a)]('=')&&_0x59e537[_0x376128(0x154)](_0x173738);}}return _0x59e537;}export function getAllProvidedFlags(_0x3cd2d4){const _0xe1bb11=a236_0x1f1e,_0x1a9e38=camelCaseFlagsToKebab(_0x3cd2d4),_0xc4a1a4=parseDynamicFlags(),_0x4e9676=new Set([..._0x1a9e38,..._0xc4a1a4]);return Array[_0xe1bb11(0x14f)](_0x4e9676);}function a236_0x4b1c(){const _0x508ceb=['7sWgMmc','dangerously-bff-save','argv','cwd','startsWith','3600540kOMwQU','2588184zCyWrn','4yvwVSp','(empty)','replace','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','toLowerCase','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','5463531mOfsig','Error:\x20Unsupported\x20command:\x20','24tvRmlo','enable-bff-save','log','258380TNeOeP','setLogPath','6469832XCjiXC','100711SGozNx','1012jMbUdn','error','不支持的命令:\x20','includes','--help','\x0aAvailable\x20commands:','length','help','from','Equivalent\x20command:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','244396LMWSzQ','entries','push','add'];a236_0x4b1c=function(){return _0x508ceb;};return a236_0x4b1c();}export function normalizeLegacyBffSaveFlags(_0x193f66){const _0x59d84c=a236_0x1f1e,_0x57c7b3=new Set(_0x193f66);return _0x57c7b3['has'](_0x59d84c(0x157))&&_0x57c7b3[_0x59d84c(0x155)](_0x59d84c(0x141)),Array[_0x59d84c(0x14f)](_0x57c7b3);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4f937e,_0x526630,_0x500613){const _0x2874a8=a236_0x1f1e;logger[_0x2874a8(0x144)](process[_0x2874a8(0x159)]());if(_0x500613?.[_0x2874a8(0x14e)]||_0x4f937e===_0x2874a8(0x14b)){showHelp();return;}console[_0x2874a8(0x148)](_0x2874a8(0x13f)+(_0x4f937e||_0x2874a8(0x15e))),console[_0x2874a8(0x142)](_0x2874a8(0x14c)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x2874a8(0x160)),console['log'](''),console['log'](_0x2874a8(0x150)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2874a8(0x148)]('skill',_0x2874a8(0x149)+_0x4f937e),process['exit'](0x1);}function showHelp(){const _0x591a67=a236_0x1f1e;console[_0x591a67(0x142)](_0x591a67(0x151)+CLI_BIN_NAME+_0x591a67(0x13d)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
@@ -1 +1 @@
1
- const a236_0x44f988=a236_0xa6a4;(function(_0x3e4077,_0x46ad27){const _0xa82cec=a236_0xa6a4,_0x110637=_0x3e4077();while(!![]){try{const _0xd832d=parseInt(_0xa82cec(0xf6))/0x1*(parseInt(_0xa82cec(0xf0))/0x2)+parseInt(_0xa82cec(0xf5))/0x3+-parseInt(_0xa82cec(0xe6))/0x4*(parseInt(_0xa82cec(0xec))/0x5)+-parseInt(_0xa82cec(0xe8))/0x6*(-parseInt(_0xa82cec(0xed))/0x7)+-parseInt(_0xa82cec(0xe9))/0x8+-parseInt(_0xa82cec(0x101))/0x9+parseInt(_0xa82cec(0xf1))/0xa;if(_0xd832d===_0x46ad27)break;else _0x110637['push'](_0x110637['shift']());}catch(_0x18dda3){_0x110637['push'](_0x110637['shift']());}}}(a236_0x50fb,0xc856c));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a236_0x44f988(0x100);export const NPX_SKILLS_SUBCOMMAND_ADD=a236_0x44f988(0xea);export const NPX_SKILLS_FLAG_SKILL=a236_0x44f988(0xf3);function a236_0xa6a4(_0x539641,_0x563785){_0x539641=_0x539641-0xe4;const _0x50fbb3=a236_0x50fb();let _0xa6a43a=_0x50fbb3[_0x539641];return _0xa6a43a;}export const RABETBASE_SKILL_SOURCE=a236_0x44f988(0xfb);export const LEGACY_RABETBASE_SKILL_SOURCE=a236_0x44f988(0xfa);export const DEFAULT_RABETBASE_SKILL_NAME=a236_0x44f988(0xf8);export function buildNpxSkillsAddArgv(_0x212b6e){const _0x119253=a236_0x44f988,_0x259e09=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x212b6e&&_0x259e09[_0x119253(0xee)](NPX_SKILLS_FLAG_SKILL,_0x212b6e),_0x259e09;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a236_0x44f988(0xfe),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a236_0x44f988(0xf7)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2180be,_0x23d235){const _0x26fd57=a236_0x44f988;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1cc4a5=_0x23d235?.[_0x26fd57(0x103)]??_0x26fd57(0x104),_0x3f59e2=resolveNpmBin('npx'),_0x18b15c=buildNpxSkillsAddArgv(_0x23d235?.[_0x26fd57(0xfd)]),_0xbaf578=[_0x26fd57(0xfe),..._0x18b15c][_0x26fd57(0xf7)]('\x20');console[_0x26fd57(0xf9)]('*\x20'+_0xbaf578);const _0x120d7e=spawnSync(_0x3f59e2,_0x18b15c,{'cwd':_0x2180be,'stdio':_0x1cc4a5,'env':process.env,'shell':![]}),_0x257493=_0x120d7e['status'];if(_0x257493===0x0)return{'ok':!![],'status':0x0};let _0x28b34c=_0x26fd57(0xef)+(_0x257493??'unknown');if(_0x1cc4a5===_0x26fd57(0xff)){const _0xcae0da=_0x120d7e['stderr']?_0x120d7e[_0x26fd57(0xe4)][_0x26fd57(0xfc)]()[_0x26fd57(0xeb)]():'',_0x3ce78d=_0x120d7e[_0x26fd57(0x102)]?_0x120d7e['stdout'][_0x26fd57(0xfc)]()[_0x26fd57(0xeb)]():'';if(_0xcae0da)_0x28b34c=_0xcae0da;else{if(_0x3ce78d)_0x28b34c=_0x3ce78d;}}return{'ok':![],'status':_0x257493??null,'error':_0x28b34c};}export function runNpxSkillsRemove(_0x97e2d5,_0x24426c,_0x25fc57=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2ac570=a236_0x44f988;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x9fdb3a=_0x24426c?.[_0x2ac570(0x103)]??'inherit',_0x1040b9=resolveNpmBin('npx'),_0x779978=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2ac570(0xf4),_0x25fc57,NPX_SKILLS_FLAG_SKILL,_0x24426c?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x24426c?.[_0x2ac570(0xe7)]?['-y']:[]],_0x46334c=[_0x1040b9,..._0x779978]['join']('\x20');console[_0x2ac570(0xf9)]('*\x20'+_0x46334c);const _0x4be7c3=spawnSync(_0x1040b9,_0x779978,{'cwd':_0x97e2d5,'stdio':_0x9fdb3a,'env':process.env,'shell':![]}),_0x48c1a5=_0x4be7c3[_0x2ac570(0xe5)];if(_0x48c1a5===0x0)return{'ok':!![],'status':0x0};let _0x5e1deb=_0x2ac570(0xef)+(_0x48c1a5??_0x2ac570(0xf2));if(_0x9fdb3a==='pipe'){const _0x32189e=_0x4be7c3[_0x2ac570(0xe4)]?_0x4be7c3[_0x2ac570(0xe4)][_0x2ac570(0xfc)]()[_0x2ac570(0xeb)]():'',_0x1d20d3=_0x4be7c3[_0x2ac570(0x102)]?_0x4be7c3['stdout'][_0x2ac570(0xfc)]()[_0x2ac570(0xeb)]():'';if(_0x32189e)_0x5e1deb=_0x32189e;else{if(_0x1d20d3)_0x5e1deb=_0x1d20d3;}}return{'ok':![],'status':_0x48c1a5??null,'error':_0x5e1deb};}function a236_0x50fb(){const _0x1d14fd=['18892310rmACyF','unknown','--skill','remove','1020990jKIhRh','25mWLMvB','join','Lovrabet','log','lovrabet/lovrabet-skill','lovrabet/rabetbase','toString','skill','npx','pipe','skills','12240000Zsjemi','stdout','stdio','inherit','stderr','status','46724TevXMC','yes','1158fmlcmU','9122176tiFlAo','add','trim','215txLfJU','38143RTsEXe','push','exit\x20','43354AwHHKF'];a236_0x50fb=function(){return _0x1d14fd;};return a236_0x50fb();}export function runNpxSkillsAddGlobal(_0x39f450,_0x5562e3,_0x428e46){const _0x43f6e4=a236_0x44f988;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x40e2ef=_0x428e46?.['stdio']??_0x43f6e4(0x104),_0x6b1d88=resolveNpmBin(_0x43f6e4(0xfe)),_0x52a5c3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5562e3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0xbdf2e9=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5562e3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x43f6e4(0xf7)]('\x20');console[_0x43f6e4(0xf9)]('*\x20'+_0xbdf2e9);const _0x6a278=spawnSync(_0x6b1d88,_0x52a5c3,{'cwd':_0x39f450,'stdio':_0x40e2ef,'env':process.env,'shell':![]}),_0x1994f9=_0x6a278[_0x43f6e4(0xe5)];if(_0x1994f9===0x0)return{'ok':!![],'status':0x0};let _0x321b8d=_0x43f6e4(0xef)+(_0x1994f9??'unknown');if(_0x40e2ef===_0x43f6e4(0xff)){const _0x5a5740=_0x6a278[_0x43f6e4(0xe4)]?_0x6a278[_0x43f6e4(0xe4)][_0x43f6e4(0xfc)]()[_0x43f6e4(0xeb)]():'',_0x1db693=_0x6a278[_0x43f6e4(0x102)]?_0x6a278[_0x43f6e4(0x102)]['toString']()[_0x43f6e4(0xeb)]():'';if(_0x5a5740)_0x321b8d=_0x5a5740;else{if(_0x1db693)_0x321b8d=_0x1db693;}}return{'ok':![],'status':_0x1994f9??null,'error':_0x321b8d};}
1
+ const a237_0x35f532=a237_0x1eb2;(function(_0x2bc64e,_0x258bd8){const _0x279d03=a237_0x1eb2,_0x84c299=_0x2bc64e();while(!![]){try{const _0xa3b70a=parseInt(_0x279d03(0x17d))/0x1+parseInt(_0x279d03(0x177))/0x2+parseInt(_0x279d03(0x176))/0x3*(-parseInt(_0x279d03(0x16f))/0x4)+parseInt(_0x279d03(0x16e))/0x5*(-parseInt(_0x279d03(0x171))/0x6)+-parseInt(_0x279d03(0x170))/0x7*(-parseInt(_0x279d03(0x167))/0x8)+parseInt(_0x279d03(0x16d))/0x9+parseInt(_0x279d03(0x174))/0xa;if(_0xa3b70a===_0x258bd8)break;else _0x84c299['push'](_0x84c299['shift']());}catch(_0x2800e1){_0x84c299['push'](_0x84c299['shift']());}}}(a237_0xa7c7,0x8fc0d));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a237_0x35f532(0x160);function a237_0x1eb2(_0x5010cd,_0x202f2b){_0x5010cd=_0x5010cd-0x15e;const _0xa7c796=a237_0xa7c7();let _0x1eb2b4=_0xa7c796[_0x5010cd];return _0x1eb2b4;}export const NPX_SKILLS_SUBCOMMAND_ADD=a237_0x35f532(0x16a);export const NPX_SKILLS_FLAG_SKILL=a237_0x35f532(0x15f);export const RABETBASE_SKILL_SOURCE=a237_0x35f532(0x17a);export const LEGACY_RABETBASE_SKILL_SOURCE=a237_0x35f532(0x173);function a237_0xa7c7(){const _0x48b4d6=['4693970pLWGTQ','stdio','51XwxLFj','929084bgqOFb','skill','stderr','lovrabet/rabetbase','yes','npx','274171uDDMIF','log','--skill','skills','trim','join','unknown','inherit','remove','status','305264QJEYJR','exit\x20','stdout','add','pipe','Lovrabet','7433172KZMFge','45625NwVvAm','206344KTZbcA','28kzzufl','474EydbTS','toString','lovrabet/lovrabet-skill'];a237_0xa7c7=function(){return _0x48b4d6;};return a237_0xa7c7();}export const DEFAULT_RABETBASE_SKILL_NAME=a237_0x35f532(0x16c);export function buildNpxSkillsAddArgv(_0x114582){const _0x2998c8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x114582&&_0x2998c8['push'](NPX_SKILLS_FLAG_SKILL,_0x114582),_0x2998c8;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a237_0x35f532(0x17c),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a237_0x35f532(0x162)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x37123a,_0x523994){const _0x306e03=a237_0x35f532;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28d653=_0x523994?.['stdio']??'inherit',_0x29e81d=resolveNpmBin(_0x306e03(0x17c)),_0x2bc14f=buildNpxSkillsAddArgv(_0x523994?.[_0x306e03(0x178)]),_0x50fbd0=[_0x306e03(0x17c),..._0x2bc14f]['join']('\x20');console['log']('*\x20'+_0x50fbd0);const _0x44a508=spawnSync(_0x29e81d,_0x2bc14f,{'cwd':_0x37123a,'stdio':_0x28d653,'env':process.env,'shell':![]}),_0x234761=_0x44a508[_0x306e03(0x166)];if(_0x234761===0x0)return{'ok':!![],'status':0x0};let _0xd1126a=_0x306e03(0x168)+(_0x234761??'unknown');if(_0x28d653===_0x306e03(0x16b)){const _0x3a9294=_0x44a508['stderr']?_0x44a508[_0x306e03(0x179)]['toString']()[_0x306e03(0x161)]():'',_0x4bf267=_0x44a508[_0x306e03(0x169)]?_0x44a508[_0x306e03(0x169)][_0x306e03(0x172)]()[_0x306e03(0x161)]():'';if(_0x3a9294)_0xd1126a=_0x3a9294;else{if(_0x4bf267)_0xd1126a=_0x4bf267;}}return{'ok':![],'status':_0x234761??null,'error':_0xd1126a};}export function runNpxSkillsRemove(_0x281da2,_0x979203,_0x673942=LEGACY_RABETBASE_SKILL_SOURCE){const _0x546094=a237_0x35f532;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2e0c2e=_0x979203?.[_0x546094(0x175)]??'inherit',_0xba12=resolveNpmBin('npx'),_0x2fd5a0=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x546094(0x165),_0x673942,NPX_SKILLS_FLAG_SKILL,_0x979203?.[_0x546094(0x178)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x979203?.[_0x546094(0x17b)]?['-y']:[]],_0x583dc4=[_0xba12,..._0x2fd5a0][_0x546094(0x162)]('\x20');console[_0x546094(0x15e)]('*\x20'+_0x583dc4);const _0x2eff0e=spawnSync(_0xba12,_0x2fd5a0,{'cwd':_0x281da2,'stdio':_0x2e0c2e,'env':process.env,'shell':![]}),_0x9b355a=_0x2eff0e['status'];if(_0x9b355a===0x0)return{'ok':!![],'status':0x0};let _0x987405='exit\x20'+(_0x9b355a??'unknown');if(_0x2e0c2e===_0x546094(0x16b)){const _0x2415f8=_0x2eff0e[_0x546094(0x179)]?_0x2eff0e['stderr']['toString']()[_0x546094(0x161)]():'',_0x2a3b75=_0x2eff0e[_0x546094(0x169)]?_0x2eff0e[_0x546094(0x169)]['toString']()[_0x546094(0x161)]():'';if(_0x2415f8)_0x987405=_0x2415f8;else{if(_0x2a3b75)_0x987405=_0x2a3b75;}}return{'ok':![],'status':_0x9b355a??null,'error':_0x987405};}export function runNpxSkillsAddGlobal(_0x4c07f7,_0x435538,_0x255be7){const _0xa5e08d=a237_0x35f532;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x178586=_0x255be7?.[_0xa5e08d(0x175)]??_0xa5e08d(0x164),_0x531d99=resolveNpmBin('npx'),_0x13f5c8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x435538,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x33d5c0=[_0xa5e08d(0x17c),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x435538,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xa5e08d(0x162)]('\x20');console['log']('*\x20'+_0x33d5c0);const _0x43aa32=spawnSync(_0x531d99,_0x13f5c8,{'cwd':_0x4c07f7,'stdio':_0x178586,'env':process.env,'shell':![]}),_0x1e94f6=_0x43aa32[_0xa5e08d(0x166)];if(_0x1e94f6===0x0)return{'ok':!![],'status':0x0};let _0x322a84=_0xa5e08d(0x168)+(_0x1e94f6??_0xa5e08d(0x163));if(_0x178586==='pipe'){const _0x5978b0=_0x43aa32[_0xa5e08d(0x179)]?_0x43aa32[_0xa5e08d(0x179)][_0xa5e08d(0x172)]()[_0xa5e08d(0x161)]():'',_0x36a132=_0x43aa32[_0xa5e08d(0x169)]?_0x43aa32['stdout'][_0xa5e08d(0x172)]()[_0xa5e08d(0x161)]():'';if(_0x5978b0)_0x322a84=_0x5978b0;else{if(_0x36a132)_0x322a84=_0x36a132;}}return{'ok':![],'status':_0x1e94f6??null,'error':_0x322a84};}
@@ -1 +1 @@
1
- function a237_0x2832(){const _0x137ca5=['440MNNHbU','3344936OhQuQi','error','32vmvGTp','66195QmhVDi','service','some','test','15fXzKuD','568051eHcUkQ','entries','1456302XcjTYn','stringify','command','26OWobuT','rabetbase.command','[REDACTED]','message','429588ddBXeV','durationMs','2216088gJXMUr','2675036IBRVvF'];a237_0x2832=function(){return _0x137ca5;};return a237_0x2832();}(function(_0x15be7c,_0x36c33b){const _0x3c119e=a237_0x498d,_0x414f81=_0x15be7c();while(!![]){try{const _0x2a388f=-parseInt(_0x3c119e(0x89))/0x1+parseInt(_0x3c119e(0x85))/0x2*(parseInt(_0x3c119e(0x91))/0x3)+parseInt(_0x3c119e(0x8c))/0x4+parseInt(_0x3c119e(0x95))/0x5*(-parseInt(_0x3c119e(0x82))/0x6)+-parseInt(_0x3c119e(0x8e))/0x7+parseInt(_0x3c119e(0x90))/0x8*(-parseInt(_0x3c119e(0x8b))/0x9)+-parseInt(_0x3c119e(0x8d))/0xa*(-parseInt(_0x3c119e(0x96))/0xb);if(_0x2a388f===_0x36c33b)break;else _0x414f81['push'](_0x414f81['shift']());}catch(_0x11c147){_0x414f81['push'](_0x414f81['shift']());}}}(a237_0x2832,0x9443d));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a237_0x498d(_0x5c14e3,_0x100520){_0x5c14e3=_0x5c14e3-0x81;const _0x28320b=a237_0x2832();let _0x498d9b=_0x28320b[_0x5c14e3];return _0x498d9b;}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,/^value$/i];function isSensitiveKey(_0x29337b){const _0x594622=a237_0x498d;return SENSITIVE_PATTERNS[_0x594622(0x93)](_0x354d26=>_0x354d26[_0x594622(0x94)](_0x29337b));}function sanitizeFlags(_0x25cf8c){const _0x30e1b4=a237_0x498d,_0x545c9e={};for(const [_0x1b0800,_0x3420b5]of Object[_0x30e1b4(0x81)](_0x25cf8c)){isSensitiveKey(_0x1b0800)?_0x545c9e[_0x1b0800]=_0x3420b5!=null&&_0x3420b5!==''?_0x30e1b4(0x87):_0x3420b5:_0x545c9e[_0x1b0800]=_0x3420b5;}return _0x545c9e;}export async function reportCommandTrace(_0x581e5f){const _0x1bbebc=a237_0x498d;try{const _0x10e7f7=sanitizeFlags(_0x581e5f['flags']);await sendCliTraceLog({'spanName':_0x1bbebc(0x86),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x581e5f[_0x1bbebc(0x92)],'command.name':_0x581e5f[_0x1bbebc(0x84)],'command.flags':JSON[_0x1bbebc(0x83)](_0x10e7f7),..._0x581e5f[_0x1bbebc(0x8a)]!=null?{'command.duration_ms':_0x581e5f[_0x1bbebc(0x8a)]}:{},..._0x581e5f[_0x1bbebc(0x8f)]?{'command.error':_0x581e5f[_0x1bbebc(0x8f)]instanceof Error?_0x581e5f[_0x1bbebc(0x8f)][_0x1bbebc(0x88)]:String(_0x581e5f[_0x1bbebc(0x8f)])}:{}}});}catch{}}
1
+ (function(_0x1f6b84,_0x5143e4){const _0x3a2add=a238_0x3258,_0x5cc4a1=_0x1f6b84();while(!![]){try{const _0x579d5d=-parseInt(_0x3a2add(0x180))/0x1+-parseInt(_0x3a2add(0x187))/0x2+parseInt(_0x3a2add(0x182))/0x3*(parseInt(_0x3a2add(0x17c))/0x4)+-parseInt(_0x3a2add(0x185))/0x5+parseInt(_0x3a2add(0x181))/0x6+-parseInt(_0x3a2add(0x17d))/0x7+parseInt(_0x3a2add(0x17a))/0x8;if(_0x579d5d===_0x5143e4)break;else _0x5cc4a1['push'](_0x5cc4a1['shift']());}catch(_0x223458){_0x5cc4a1['push'](_0x5cc4a1['shift']());}}}(a238_0x4942,0x498a6));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,/^value$/i];function isSensitiveKey(_0x2056e1){const _0x5d4a5c=a238_0x3258;return SENSITIVE_PATTERNS[_0x5d4a5c(0x183)](_0x297e78=>_0x297e78[_0x5d4a5c(0x188)](_0x2056e1));}function a238_0x3258(_0xa40a12,_0x266156){_0xa40a12=_0xa40a12-0x179;const _0x4942d5=a238_0x4942();let _0x32582e=_0x4942d5[_0xa40a12];return _0x32582e;}function sanitizeFlags(_0x5bc1b1){const _0x25969f=a238_0x3258,_0x2b1a0c={};for(const [_0x4b3a86,_0x8ddaf5]of Object[_0x25969f(0x179)](_0x5bc1b1)){isSensitiveKey(_0x4b3a86)?_0x2b1a0c[_0x4b3a86]=_0x8ddaf5!=null&&_0x8ddaf5!==''?'[REDACTED]':_0x8ddaf5:_0x2b1a0c[_0x4b3a86]=_0x8ddaf5;}return _0x2b1a0c;}function a238_0x4942(){const _0x4e8642=['some','error','1825200PjQVrZ','message','50138xtbjyO','test','entries','5639184dYmtyT','command','52BFYNtb','2714404oNSXHn','durationMs','service','163929bFDsrc','2237346QSvTnd','38133sJebon'];a238_0x4942=function(){return _0x4e8642;};return a238_0x4942();}export async function reportCommandTrace(_0x10396f){const _0x540260=a238_0x3258;try{const _0xe40d25=sanitizeFlags(_0x10396f['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x10396f[_0x540260(0x17f)],'command.name':_0x10396f[_0x540260(0x17b)],'command.flags':JSON['stringify'](_0xe40d25),..._0x10396f[_0x540260(0x17e)]!=null?{'command.duration_ms':_0x10396f['durationMs']}:{},..._0x10396f[_0x540260(0x184)]?{'command.error':_0x10396f[_0x540260(0x184)]instanceof Error?_0x10396f[_0x540260(0x184)][_0x540260(0x186)]:String(_0x10396f[_0x540260(0x184)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x5f4986,_0x30d93e){var _0x2e9e1a=a238_0x15a5,_0x1c6945=_0x5f4986();while(!![]){try{var _0x36de15=-parseInt(_0x2e9e1a(0xfa))/0x1*(-parseInt(_0x2e9e1a(0xef))/0x2)+-parseInt(_0x2e9e1a(0xf8))/0x3*(-parseInt(_0x2e9e1a(0xfc))/0x4)+-parseInt(_0x2e9e1a(0xf9))/0x5+-parseInt(_0x2e9e1a(0xf4))/0x6+-parseInt(_0x2e9e1a(0xf6))/0x7*(-parseInt(_0x2e9e1a(0xf5))/0x8)+-parseInt(_0x2e9e1a(0xfb))/0x9+parseInt(_0x2e9e1a(0xf2))/0xa;if(_0x36de15===_0x30d93e)break;else _0x1c6945['push'](_0x1c6945['shift']());}catch(_0x5eedda){_0x1c6945['push'](_0x1c6945['shift']());}}}(a238_0x21bd,0x1e513));function a238_0x21bd(){var _0x820533=['7nfLPaB','cli.help','15EoflPX','689995uAJJtQ','19646pBQnse','385092lxpIFx','104876fKWPnR','2dngkVK','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','3271540LlcVgg','service','1408248oDWzte','494232HbqVIc'];a238_0x21bd=function(){return _0x820533;};return a238_0x21bd();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a238_0x15a5(_0x583700,_0x450693){_0x583700=_0x583700-0xef;var _0x21bd97=a238_0x21bd();var _0x15a5f6=_0x21bd97[_0x583700];return _0x15a5f6;}export async function reportCliHelpTrace(_0x3e20d0,_0x9532f5){var _0x2cb492=a238_0x15a5;try{await sendCliTraceLog({'spanName':_0x2cb492(0xf7),'logData':{'rabetbase.help.kind':_0x3e20d0,..._0x9532f5?.[_0x2cb492(0xf3)]&&{'rabetbase.help.service':_0x9532f5[_0x2cb492(0xf3)]}}});}catch(_0xd6cc99){console[_0x2cb492(0xf1)](_0x2cb492(0xf0),_0xd6cc99);}}
1
+ function a239_0x244d(_0x2c6959,_0x2befec){_0x2c6959=_0x2c6959-0xb1;var _0x1f1ca9=a239_0x1f1c();var _0x244d7b=_0x1f1ca9[_0x2c6959];return _0x244d7b;}function a239_0x1f1c(){var _0x1f4431=['2822264ziJXin','9534114UwpZCc','1248310IDjpgA','4190118geYpkE','5620748SVreeB','Failed\x20to\x20report\x20CLI\x20help\x20trace:','5egzxJi','cli.help','84328vHperU','158435AXAmeH','service','error'];a239_0x1f1c=function(){return _0x1f4431;};return a239_0x1f1c();}(function(_0x99fd61,_0x20e9d8){var _0x1872bd=a239_0x244d,_0x496094=_0x99fd61();while(!![]){try{var _0x350713=parseInt(_0x1872bd(0xbc))/0x1+-parseInt(_0x1872bd(0xb5))/0x2+parseInt(_0x1872bd(0xb6))/0x3+parseInt(_0x1872bd(0xb3))/0x4+-parseInt(_0x1872bd(0xb9))/0x5*(parseInt(_0x1872bd(0xb4))/0x6)+parseInt(_0x1872bd(0xb7))/0x7+parseInt(_0x1872bd(0xbb))/0x8;if(_0x350713===_0x20e9d8)break;else _0x496094['push'](_0x496094['shift']());}catch(_0x266023){_0x496094['push'](_0x496094['shift']());}}}(a239_0x1f1c,0xd236e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x995a4,_0xca3789){var _0x509cda=a239_0x244d;try{await sendCliTraceLog({'spanName':_0x509cda(0xba),'logData':{'rabetbase.help.kind':_0x995a4,..._0xca3789?.[_0x509cda(0xb1)]&&{'rabetbase.help.service':_0xca3789[_0x509cda(0xb1)]}}});}catch(_0x1c88a3){console[_0x509cda(0xb2)](_0x509cda(0xb8),_0x1c88a3);}}
@@ -1 +1 @@
1
- function a239_0x248e(){const _0x24047b=['11LEXVhT','3582180zgsgGs','nickname','222WNpKMQ','production','unknown','4407900axmGVM','284605lVviTw','daily','tenant','user','email','30949990vbkETA','320bFkhWn','17703HSngrA','tenant_code','2914470deepFv','2cMSHYL','116473hTNXwA'];a239_0x248e=function(){return _0x24047b;};return a239_0x248e();}function a239_0x10d8(_0x38dccc,_0x15fcac){_0x38dccc=_0x38dccc-0x19f;const _0x248e02=a239_0x248e();let _0x10d84d=_0x248e02[_0x38dccc];return _0x10d84d;}(function(_0x54bda9,_0x13b92b){const _0x4295f7=a239_0x10d8,_0x5c7a3e=_0x54bda9();while(!![]){try{const _0x165c82=parseInt(_0x4295f7(0x1ab))/0x1*(-parseInt(_0x4295f7(0x1a2))/0x2)+-parseInt(_0x4295f7(0x1a1))/0x3+-parseInt(_0x4295f7(0x1a5))/0x4+-parseInt(_0x4295f7(0x1aa))/0x5+-parseInt(_0x4295f7(0x1a7))/0x6*(-parseInt(_0x4295f7(0x1a3))/0x7)+parseInt(_0x4295f7(0x1b1))/0x8*(-parseInt(_0x4295f7(0x19f))/0x9)+parseInt(_0x4295f7(0x1b0))/0xa*(parseInt(_0x4295f7(0x1a4))/0xb);if(_0x165c82===_0x13b92b)break;else _0x5c7a3e['push'](_0x5c7a3e['shift']());}catch(_0x5c586e){_0x5c7a3e['push'](_0x5c7a3e['shift']());}}}(a239_0x248e,0x922d6));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xcd61ac=a239_0x10d8,_0x2b1075=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x372253=_0x2b1075?.[_0xcd61ac(0x1ae)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xcd61ac(0x1a9)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xcd61ac(0x1ac):_0xcd61ac(0x1a8))}),setUserContext({'id':_0x372253?.['id'],'username':_0x372253?.['username'],'nickname':_0x372253?.[_0xcd61ac(0x1a6)],'email':_0x372253?.[_0xcd61ac(0x1af)],'tenantCode':_0x372253?.[_0xcd61ac(0x1ad)][_0xcd61ac(0x1a0)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2b1075;}
1
+ function a240_0x1ad5(_0x4c6a51,_0x3a82a6){_0x4c6a51=_0x4c6a51-0x1db;const _0x4a9242=a240_0x4a92();let _0x1ad5a1=_0x4a9242[_0x4c6a51];return _0x1ad5a1;}(function(_0x14f2aa,_0x944873){const _0x231a73=a240_0x1ad5,_0x6ec7c6=_0x14f2aa();while(!![]){try{const _0xc865a4=-parseInt(_0x231a73(0x1e2))/0x1+-parseInt(_0x231a73(0x1e5))/0x2+parseInt(_0x231a73(0x1dd))/0x3+parseInt(_0x231a73(0x1e3))/0x4+parseInt(_0x231a73(0x1dc))/0x5*(parseInt(_0x231a73(0x1db))/0x6)+parseInt(_0x231a73(0x1de))/0x7+parseInt(_0x231a73(0x1e4))/0x8;if(_0xc865a4===_0x944873)break;else _0x6ec7c6['push'](_0x6ec7c6['shift']());}catch(_0x2673d3){_0x6ec7c6['push'](_0x6ec7c6['shift']());}}}(a240_0x4a92,0x27c13));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a240_0x4a92(){const _0x17c510=['212622vWLWbs','5rhhCoB','398532fSIapp','1656319zYkxbj','nickname','tenant','user','202685olYQyL','517632fWDVWJ','1219776eDNSfD','642516KSfWKp','unknown','production'];a240_0x4a92=function(){return _0x17c510;};return a240_0x4a92();}export async function ensureCliOtelTraceConfig(){const _0x1142ca=a240_0x1ad5,_0x37b2d0=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3c7a99=_0x37b2d0?.[_0x1142ca(0x1e1)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1142ca(0x1e6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x1142ca(0x1e7))}),setUserContext({'id':_0x3c7a99?.['id'],'username':_0x3c7a99?.['username'],'nickname':_0x3c7a99?.[_0x1142ca(0x1df)],'email':_0x3c7a99?.['email'],'tenantCode':_0x3c7a99?.[_0x1142ca(0x1e0)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x37b2d0;}
@@ -1 +1 @@
1
- function a240_0x4a11(){const _0x52eafa=['989360hSRCNa','3966787qCfcXO','SIGTERM','7294888bPPrzb','exit','591390UatijY','4157828RIqFjk','1202542zLOvpw','7RgoXEK','once','45VOkIeR','1sSSQhc','then','beforeExit','277266vipoaM','SIGINT','54mAUhHM'];a240_0x4a11=function(){return _0x52eafa;};return a240_0x4a11();}(function(_0x19811b,_0x5cdb05){const _0x5dde07=a240_0x576f,_0x41cd66=_0x19811b();while(!![]){try{const _0x35ad94=-parseInt(_0x5dde07(0x1d6))/0x1*(-parseInt(_0x5dde07(0x1e3))/0x2)+parseInt(_0x5dde07(0x1d9))/0x3+parseInt(_0x5dde07(0x1e2))/0x4+parseInt(_0x5dde07(0x1e1))/0x5*(-parseInt(_0x5dde07(0x1db))/0x6)+parseInt(_0x5dde07(0x1d3))/0x7*(-parseInt(_0x5dde07(0x1df))/0x8)+parseInt(_0x5dde07(0x1d5))/0x9*(parseInt(_0x5dde07(0x1dc))/0xa)+parseInt(_0x5dde07(0x1dd))/0xb;if(_0x35ad94===_0x5cdb05)break;else _0x41cd66['push'](_0x41cd66['shift']());}catch(_0x14935d){_0x41cd66['push'](_0x41cd66['shift']());}}}(a240_0x4a11,0x956f4));function a240_0x576f(_0x4eccfe,_0x225155){_0x4eccfe=_0x4eccfe-0x1d3;const _0x4a11fa=a240_0x4a11();let _0x576f31=_0x4a11fa[_0x4eccfe];return _0x576f31;}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 _0x46904b=a240_0x576f;process[_0x46904b(0x1d4)](_0x46904b(0x1d8),()=>{void flushOtelNodeIfUsed();});const _0x8cb2c2=()=>{const _0x2ab749=_0x46904b;void flushOtelNodeIfUsed()[_0x2ab749(0x1d7)](()=>process[_0x2ab749(0x1e0)](0x0));};process[_0x46904b(0x1d4)](_0x46904b(0x1da),_0x8cb2c2),process['once'](_0x46904b(0x1de),_0x8cb2c2);}export async function exitWithOtelShutdown(_0x56a1cd){await flushOtelNodeIfUsed(),process['exit'](_0x56a1cd);}
1
+ (function(_0x207d41,_0x22603d){const _0x22e11d=a241_0x6804,_0x51116e=_0x207d41();while(!![]){try{const _0x28ffbe=-parseInt(_0x22e11d(0x108))/0x1+-parseInt(_0x22e11d(0x10b))/0x2+-parseInt(_0x22e11d(0x105))/0x3+parseInt(_0x22e11d(0x10a))/0x4*(-parseInt(_0x22e11d(0x107))/0x5)+parseInt(_0x22e11d(0x10f))/0x6*(-parseInt(_0x22e11d(0x106))/0x7)+-parseInt(_0x22e11d(0x109))/0x8+parseInt(_0x22e11d(0x10d))/0x9;if(_0x28ffbe===_0x22603d)break;else _0x51116e['push'](_0x51116e['shift']());}catch(_0x24093e){_0x51116e['push'](_0x51116e['shift']());}}}(a241_0x142f,0xcdeed));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a241_0x6804(_0x2e230c,_0x138193){_0x2e230c=_0x2e230c-0x104;const _0x142fcc=a241_0x142f();let _0x6804d3=_0x142fcc[_0x2e230c];return _0x6804d3;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2471b8=a241_0x6804;process['once'](_0x2471b8(0x104),()=>{void flushOtelNodeIfUsed();});const _0x98c0f6=()=>{const _0x43c758=_0x2471b8;void flushOtelNodeIfUsed()['then'](()=>process[_0x43c758(0x10c)](0x0));};process['once'](_0x2471b8(0x10e),_0x98c0f6),process['once']('SIGTERM',_0x98c0f6);}function a241_0x142f(){const _0x24716b=['SIGINT','38196ANnVxz','beforeExit','1655055yiiIcf','294FqyFBu','5EufCMR','1503707oRxwHH','9823696VFlbmv','6679160SDfQxp','2210322FFXrGY','exit','64522602CxFvKa'];a241_0x142f=function(){return _0x24716b;};return a241_0x142f();}export async function exitWithOtelShutdown(_0x5a267d){const _0x214034=a241_0x6804;await flushOtelNodeIfUsed(),process[_0x214034(0x10c)](_0x5a267d);}
@@ -1 +1 @@
1
- const a241_0x535f02=a241_0x43a9;(function(_0x5285c6,_0x336d34){const _0xbaab6b=a241_0x43a9,_0x4058f2=_0x5285c6();while(!![]){try{const _0xa08cd=parseInt(_0xbaab6b(0xef))/0x1*(parseInt(_0xbaab6b(0xf3))/0x2)+parseInt(_0xbaab6b(0xe7))/0x3*(-parseInt(_0xbaab6b(0xe6))/0x4)+-parseInt(_0xbaab6b(0xea))/0x5*(-parseInt(_0xbaab6b(0xe9))/0x6)+-parseInt(_0xbaab6b(0xf2))/0x7+-parseInt(_0xbaab6b(0xed))/0x8*(parseInt(_0xbaab6b(0xf5))/0x9)+parseInt(_0xbaab6b(0xf1))/0xa+parseInt(_0xbaab6b(0xf6))/0xb*(-parseInt(_0xbaab6b(0xe8))/0xc);if(_0xa08cd===_0x336d34)break;else _0x4058f2['push'](_0x4058f2['shift']());}catch(_0x2c84fc){_0x4058f2['push'](_0x4058f2['shift']());}}}(a241_0xcafa,0xaf04e));import{sendTraceLog}from'@lovrabet/otel-logger';function a241_0x43a9(_0x78af85,_0x2e34fe){_0x78af85=_0x78af85-0xe6;const _0xcafa0a=a241_0xcafa();let _0x43a927=_0xcafa0a[_0x78af85];return _0x43a927;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a241_0x535f02(0xf0);export async function sendCliTraceLog(_0x1fa1c4){const _0x8163f3=a241_0x535f02;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1fa1c4[_0x8163f3(0xee)]??DEFAULT_TRACE_NAME,'version':_0x1fa1c4[_0x8163f3(0xf4)]??getCliVersion(),'spanName':_0x1fa1c4[_0x8163f3(0xec)],'eventType':_0x8163f3(0xeb),'logData':_0x1fa1c4['logData'],..._0x1fa1c4['traceparent']&&{'traceparent':_0x1fa1c4['traceparent']}});}function a241_0xcafa(){const _0x26a0ed=['11482820ilUQGi','8582098zMMOmi','78AVgUPG','version','128718TJnzNG','16236ZwVRpO','20knLUPB','239025TbLPhj','2676erUtxd','3864348hcMSFQ','5gVYrEM','manual','spanName','248wZfabc','traceName','33883TuIEcQ','rabetbase-cli'];a241_0xcafa=function(){return _0x26a0ed;};return a241_0xcafa();}
1
+ const a242_0x3337fe=a242_0x12e0;(function(_0x2f4e16,_0x51df74){const _0x5af7c4=a242_0x12e0,_0x5a7fa5=_0x2f4e16();while(!![]){try{const _0x185320=-parseInt(_0x5af7c4(0xb8))/0x1+parseInt(_0x5af7c4(0xb6))/0x2*(parseInt(_0x5af7c4(0xab))/0x3)+-parseInt(_0x5af7c4(0xb7))/0x4*(-parseInt(_0x5af7c4(0xae))/0x5)+-parseInt(_0x5af7c4(0xb5))/0x6*(-parseInt(_0x5af7c4(0xad))/0x7)+-parseInt(_0x5af7c4(0xb2))/0x8*(parseInt(_0x5af7c4(0xb4))/0x9)+-parseInt(_0x5af7c4(0xb9))/0xa+parseInt(_0x5af7c4(0xa9))/0xb;if(_0x185320===_0x51df74)break;else _0x5a7fa5['push'](_0x5a7fa5['shift']());}catch(_0x2b15fd){_0x5a7fa5['push'](_0x5a7fa5['shift']());}}}(a242_0x2d13,0xd0e7c));import{sendTraceLog}from'@lovrabet/otel-logger';function a242_0x12e0(_0x2ade06,_0x296740){_0x2ade06=_0x2ade06-0xa8;const _0x2d139d=a242_0x2d13();let _0x12e0a9=_0x2d139d[_0x2ade06];return _0x12e0a9;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a242_0x2d13(){const _0x2dc7cc=['66ECeEZg','3042330PoZdqr','36alxSPA','1674186jFZysp','2698920SJkOOl','manual','13215818ustaKZ','spanName','3eTlBKb','traceName','914893Chkhdv','80335QAhDJf','version','rabetbase-cli','logData','8oeHRRx','traceparent','13546269uJidNY'];a242_0x2d13=function(){return _0x2dc7cc;};return a242_0x2d13();}const DEFAULT_TRACE_NAME=a242_0x3337fe(0xb0);export async function sendCliTraceLog(_0x26a2d2){const _0x346fcc=a242_0x3337fe;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x26a2d2[_0x346fcc(0xac)]??DEFAULT_TRACE_NAME,'version':_0x26a2d2[_0x346fcc(0xaf)]??getCliVersion(),'spanName':_0x26a2d2[_0x346fcc(0xaa)],'eventType':_0x346fcc(0xa8),'logData':_0x26a2d2[_0x346fcc(0xb1)],..._0x26a2d2['traceparent']&&{'traceparent':_0x26a2d2[_0x346fcc(0xb3)]}});}
@@ -1 +1 @@
1
- const a242_0x6aa869=a242_0x6c2b;(function(_0x2176cb,_0x5dd543){const _0x405798=a242_0x6c2b,_0x48bc06=_0x2176cb();while(!![]){try{const _0x4cc41b=parseInt(_0x405798(0x147))/0x1+-parseInt(_0x405798(0x146))/0x2*(-parseInt(_0x405798(0x143))/0x3)+-parseInt(_0x405798(0x152))/0x4+parseInt(_0x405798(0x144))/0x5*(-parseInt(_0x405798(0x14f))/0x6)+-parseInt(_0x405798(0x150))/0x7+parseInt(_0x405798(0x14b))/0x8*(-parseInt(_0x405798(0x153))/0x9)+-parseInt(_0x405798(0x151))/0xa*(-parseInt(_0x405798(0x14a))/0xb);if(_0x4cc41b===_0x5dd543)break;else _0x48bc06['push'](_0x48bc06['shift']());}catch(_0x5ab91b){_0x48bc06['push'](_0x48bc06['shift']());}}}(a242_0x509f,0x9755e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';function a242_0x6c2b(_0x16b073,_0x211532){_0x16b073=_0x16b073-0x142;const _0x509fce=a242_0x509f();let _0x6c2b1a=_0x509fce[_0x16b073];return _0x6c2b1a;}export const PLATFORM_ISSUE_SPAN_NAME=a242_0x6aa869(0x142);function a242_0x509f(){const _0x3a767e=['redactionKinds','join','sanitize','252846cfcEsp','8439725qNuaoz','20243990vxPCYm','1389884nwbdln','662544CeoLXy','description','issue.log.collect','105PvNVTe','125baTAvO','redactionCount','57878isOLui','557357fYiQgT','title','originalBytes','11ZWIGji','40pBjvDr'];a242_0x509f=function(){return _0x3a767e;};return a242_0x509f();}export async function sendPlatformIssueCollectLog(_0x27d023){const _0x1d079b=a242_0x6aa869;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x27d023[_0x1d079b(0x148)],'issue.description':_0x27d023[_0x1d079b(0x154)],..._0x27d023['sanitize']?{'issue.description_original_bytes':_0x27d023[_0x1d079b(0x14e)][_0x1d079b(0x149)],'issue.description_truncated':_0x27d023[_0x1d079b(0x14e)]['truncated'],'issue.description_redactions':_0x27d023[_0x1d079b(0x14e)][_0x1d079b(0x145)],'issue.description_redaction_kinds':_0x27d023['sanitize'][_0x1d079b(0x14c)][_0x1d079b(0x14d)](',')}:{}}});}
1
+ const a243_0x2a5d8=a243_0x3ecc;(function(_0x1a1892,_0x2eaf14){const _0x3da6d2=a243_0x3ecc,_0x5a9372=_0x1a1892();while(!![]){try{const _0x4efd7d=-parseInt(_0x3da6d2(0x165))/0x1*(-parseInt(_0x3da6d2(0x167))/0x2)+parseInt(_0x3da6d2(0x16f))/0x3*(-parseInt(_0x3da6d2(0x170))/0x4)+-parseInt(_0x3da6d2(0x172))/0x5+parseInt(_0x3da6d2(0x16c))/0x6+-parseInt(_0x3da6d2(0x166))/0x7*(parseInt(_0x3da6d2(0x160))/0x8)+-parseInt(_0x3da6d2(0x162))/0x9+parseInt(_0x3da6d2(0x168))/0xa*(parseInt(_0x3da6d2(0x163))/0xb);if(_0x4efd7d===_0x2eaf14)break;else _0x5a9372['push'](_0x5a9372['shift']());}catch(_0x1bc222){_0x5a9372['push'](_0x5a9372['shift']());}}}(a243_0x155a,0x9b938));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a243_0x155a(){const _0x770d92=['platform-issue-log-collect','2141592OVxFRo','redactionCount','truncated','6IePZOu','1803628uTXyTY','sanitize','5871385OpWaha','join','8hMKFob','issue.log.collect','9842841siPXQj','11iKFPCV','title','949sROMOL','5772893YpmjUc','418IiTccI','40764060zbkBaO','description','originalBytes'];a243_0x155a=function(){return _0x770d92;};return a243_0x155a();}export const PLATFORM_ISSUE_TRACE_NAME=a243_0x2a5d8(0x16b);export const PLATFORM_ISSUE_SPAN_NAME=a243_0x2a5d8(0x161);function a243_0x3ecc(_0x32fccf,_0x2b3b97){_0x32fccf=_0x32fccf-0x15f;const _0x155af2=a243_0x155a();let _0x3eccac=_0x155af2[_0x32fccf];return _0x3eccac;}export async function sendPlatformIssueCollectLog(_0x215fd1){const _0x3307b6=a243_0x2a5d8;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x215fd1[_0x3307b6(0x164)],'issue.description':_0x215fd1[_0x3307b6(0x169)],..._0x215fd1[_0x3307b6(0x171)]?{'issue.description_original_bytes':_0x215fd1[_0x3307b6(0x171)][_0x3307b6(0x16a)],'issue.description_truncated':_0x215fd1[_0x3307b6(0x171)][_0x3307b6(0x16e)],'issue.description_redactions':_0x215fd1['sanitize'][_0x3307b6(0x16d)],'issue.description_redaction_kinds':_0x215fd1[_0x3307b6(0x171)]['redactionKinds'][_0x3307b6(0x15f)](',')}:{}}});}
@@ -1 +1 @@
1
- const a244_0x1b9b06=a244_0x3da5;(function(_0x135f13,_0x1fee36){const _0x10703d=a244_0x3da5,_0x1d71bc=_0x135f13();while(!![]){try{const _0x5b45ac=-parseInt(_0x10703d(0x15d))/0x1+parseInt(_0x10703d(0x142))/0x2+parseInt(_0x10703d(0x15b))/0x3*(-parseInt(_0x10703d(0x14c))/0x4)+parseInt(_0x10703d(0x13f))/0x5+-parseInt(_0x10703d(0x134))/0x6*(-parseInt(_0x10703d(0x13d))/0x7)+-parseInt(_0x10703d(0x151))/0x8*(-parseInt(_0x10703d(0x133))/0x9)+parseInt(_0x10703d(0x137))/0xa*(-parseInt(_0x10703d(0x140))/0xb);if(_0x5b45ac===_0x1fee36)break;else _0x1d71bc['push'](_0x1d71bc['shift']());}catch(_0x409b62){_0x1d71bc['push'](_0x1d71bc['shift']());}}}(a244_0x122d,0xc6ba3));export const CORE_IDE_CONFIGS={'cursor':{'name':a244_0x1b9b06(0x152),'description':'Cursor\x20IDE','folders':[a244_0x1b9b06(0x155),a244_0x1b9b06(0x156)],'files':[{'type':a244_0x1b9b06(0x13b),'path':'.cursor/skills/rabetbase.md','template':a244_0x1b9b06(0x14b)}]},'windsurf':{'name':a244_0x1b9b06(0x144),'description':a244_0x1b9b06(0x158),'folders':[a244_0x1b9b06(0x153)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md','template':a244_0x1b9b06(0x14b)}]},'claude':{'name':a244_0x1b9b06(0x12d),'description':a244_0x1b9b06(0x12d),'folders':['.claude'],'files':[{'type':a244_0x1b9b06(0x13b),'path':'.claude/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'cline':{'name':a244_0x1b9b06(0x150),'description':'Cline\x20IDE','folders':[a244_0x1b9b06(0x131)],'files':[{'type':'file','path':a244_0x1b9b06(0x160),'template':a244_0x1b9b06(0x14b)}]},'codex':{'name':a244_0x1b9b06(0x130),'description':'Codex\x20IDE','folders':[a244_0x1b9b06(0x145)],'files':[{'type':a244_0x1b9b06(0x13b),'path':'.codex/skills/lovrabet/SKILL.md','template':a244_0x1b9b06(0x14b)}]},'opencode':{'name':a244_0x1b9b06(0x15c),'description':a244_0x1b9b06(0x12e),'folders':[a244_0x1b9b06(0x13a)],'files':[{'type':a244_0x1b9b06(0x13b),'path':'.opencode/skills/lovrabet/SKILL.md','template':a244_0x1b9b06(0x14b)}]},'qoder':{'name':'Qoder','description':a244_0x1b9b06(0x139),'folders':['.qoder'],'files':[{'type':'file','path':a244_0x1b9b06(0x12f),'template':'SKILL.md.tpl'},{'type':a244_0x1b9b06(0x13b),'path':a244_0x1b9b06(0x14e),'template':a244_0x1b9b06(0x14b)}]},'codebuddy':{'name':a244_0x1b9b06(0x159),'description':a244_0x1b9b06(0x148),'folders':[a244_0x1b9b06(0x15e)],'files':[{'type':a244_0x1b9b06(0x13b),'path':a244_0x1b9b06(0x147),'template':'SKILL.md.tpl'}]},'trae':{'name':a244_0x1b9b06(0x132),'description':a244_0x1b9b06(0x149),'folders':[a244_0x1b9b06(0x143)],'files':[{'type':a244_0x1b9b06(0x13b),'path':'.trae/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};function a244_0x122d(){const _0x17dce0=['.codebuddy','qoder','.cline/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','Claude\x20Code','OpenCode\x20IDE','.qoder/rules/rabetbase.md','Codex','.cline','Trae','36ufoeQH','1152MfWKLf','antigravity','windsurf','20nvNxtG','agent','Qoder\x20IDE','.opencode','file','opencode','48524RhiBSz','通用模板\x20-\x20兜底方案','7883655qzwxyc','22492129MgOVdB','trae','2628018fMkLWQ','.trae','Windsurf','.codex','claude','.codebuddy/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','Trae\x20IDE','.agent','SKILL.md.tpl','4MYAjUd','codebuddy','.qoder/skills/lovrabet/SKILL.md','cursor','Cline','2586112XsuQsP','Cursor','.windsurf','codex','.cursorrules','.cursor','cline','Windsurf\x20IDE','CodeBuddy','Antigravity\x20IDE','1140324ewhGIf','OpenCode','231167YASfkE'];a244_0x122d=function(){return _0x17dce0;};return a244_0x122d();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a244_0x1b9b06(0x13e),'folders':[a244_0x1b9b06(0x14a)],'files':[{'type':a244_0x1b9b06(0x13b),'path':a244_0x1b9b06(0x161),'template':'SKILL.md.tpl'}]},'antigravity':{'name':'Antigravity','description':a244_0x1b9b06(0x15a),'folders':['.agent'],'files':[{'type':a244_0x1b9b06(0x13b),'path':a244_0x1b9b06(0x161),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=['claude',a244_0x1b9b06(0x157),'codebuddy',a244_0x1b9b06(0x154),a244_0x1b9b06(0x14f),a244_0x1b9b06(0x13c),'qoder',a244_0x1b9b06(0x141),a244_0x1b9b06(0x136)];export const IDE_LIST=[a244_0x1b9b06(0x135),a244_0x1b9b06(0x146),a244_0x1b9b06(0x157),a244_0x1b9b06(0x14d),a244_0x1b9b06(0x154),a244_0x1b9b06(0x14f),a244_0x1b9b06(0x13c),'qoder',a244_0x1b9b06(0x141),a244_0x1b9b06(0x136),a244_0x1b9b06(0x138)];function a244_0x3da5(_0x17a87e,_0x36c205){_0x17a87e=_0x17a87e-0x12d;const _0x122ddc=a244_0x122d();let _0x3da5ce=_0x122ddc[_0x17a87e];return _0x3da5ce;}export const ALL_CORE_IDES=[a244_0x1b9b06(0x14f),a244_0x1b9b06(0x136),a244_0x1b9b06(0x146),a244_0x1b9b06(0x157),a244_0x1b9b06(0x154),a244_0x1b9b06(0x13c),a244_0x1b9b06(0x15f),'codebuddy',a244_0x1b9b06(0x141)];
1
+ const a245_0x5ae589=a245_0x366b;function a245_0x3b88(){const _0x46b754=['3742335MToujU','cline','.qoder/rules/rabetbase.md','OpenCode\x20IDE','Trae\x20IDE','Antigravity\x20IDE','antigravity','.codex/skills/lovrabet/SKILL.md','1698594uKjDhy','187824AYiPhv','.codebuddy','.windsurf/workflows/rabetbase.md','4026084OlhRBt','1758Akqapp','.codebuddy/skills/lovrabet/SKILL.md','.cursor','.claude','qoder','21LlDLaS','.windsurf','.cline','SKILL.md.tpl','.opencode','.agent/skills/lovrabet/SKILL.md','trae','Codex','Antigravity','.claude/skills/lovrabet/SKILL.md','Windsurf','Qoder','Cline','Windsurf\x20IDE','Trae','.opencode/skills/lovrabet/SKILL.md','1601aiohUe','.cursor/skills/rabetbase.md','claude','cursor','Codex\x20IDE','codex','codebuddy','.qoder','windsurf','Claude\x20Code','agent','OpenCode','opencode','CodeBuddy','878400cjhpgG','.agent','file','.cline/skills/lovrabet/SKILL.md','.codex','5338773LhHFyE'];a245_0x3b88=function(){return _0x46b754;};return a245_0x3b88();}(function(_0x5c3902,_0x46f5ce){const _0x35a44f=a245_0x366b,_0x506642=_0x5c3902();while(!![]){try{const _0x145349=parseInt(_0x35a44f(0x191))/0x1*(-parseInt(_0x35a44f(0x1b2))/0x2)+parseInt(_0x35a44f(0x19f))/0x3+parseInt(_0x35a44f(0x1b1))/0x4+parseInt(_0x35a44f(0x1a5))/0x5+parseInt(_0x35a44f(0x1ad))/0x6*(parseInt(_0x35a44f(0x1b7))/0x7)+-parseInt(_0x35a44f(0x1ae))/0x8+-parseInt(_0x35a44f(0x1a4))/0x9;if(_0x145349===_0x46f5ce)break;else _0x506642['push'](_0x506642['shift']());}catch(_0x4fe35d){_0x506642['push'](_0x506642['shift']());}}}(a245_0x3b88,0xd52ab));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':['.cursorrules',a245_0x5ae589(0x1b4)],'files':[{'type':'file','path':a245_0x5ae589(0x192),'template':a245_0x5ae589(0x1ba)}]},'windsurf':{'name':a245_0x5ae589(0x1c1),'description':a245_0x5ae589(0x18e),'folders':[a245_0x5ae589(0x1b8)],'files':[{'type':a245_0x5ae589(0x1a1),'path':a245_0x5ae589(0x1b0),'template':a245_0x5ae589(0x1ba)}]},'claude':{'name':a245_0x5ae589(0x19a),'description':a245_0x5ae589(0x19a),'folders':[a245_0x5ae589(0x1b5)],'files':[{'type':a245_0x5ae589(0x1a1),'path':a245_0x5ae589(0x1c0),'template':'SKILL.md.tpl'}]},'cline':{'name':a245_0x5ae589(0x1c3),'description':'Cline\x20IDE','folders':[a245_0x5ae589(0x1b9)],'files':[{'type':a245_0x5ae589(0x1a1),'path':a245_0x5ae589(0x1a2),'template':'SKILL.md.tpl'}]},'codex':{'name':a245_0x5ae589(0x1be),'description':a245_0x5ae589(0x195),'folders':[a245_0x5ae589(0x1a3)],'files':[{'type':a245_0x5ae589(0x1a1),'path':a245_0x5ae589(0x1ac),'template':a245_0x5ae589(0x1ba)}]},'opencode':{'name':a245_0x5ae589(0x19c),'description':a245_0x5ae589(0x1a8),'folders':[a245_0x5ae589(0x1bb)],'files':[{'type':a245_0x5ae589(0x1a1),'path':a245_0x5ae589(0x190),'template':a245_0x5ae589(0x1ba)}]},'qoder':{'name':a245_0x5ae589(0x1c2),'description':'Qoder\x20IDE','folders':[a245_0x5ae589(0x198)],'files':[{'type':a245_0x5ae589(0x1a1),'path':a245_0x5ae589(0x1a7),'template':a245_0x5ae589(0x1ba)},{'type':a245_0x5ae589(0x1a1),'path':'.qoder/skills/lovrabet/SKILL.md','template':a245_0x5ae589(0x1ba)}]},'codebuddy':{'name':a245_0x5ae589(0x19e),'description':'CodeBuddy\x20IDE','folders':[a245_0x5ae589(0x1af)],'files':[{'type':'file','path':a245_0x5ae589(0x1b3),'template':'SKILL.md.tpl'}]},'trae':{'name':a245_0x5ae589(0x18f),'description':a245_0x5ae589(0x1a9),'folders':['.trae'],'files':[{'type':a245_0x5ae589(0x1a1),'path':'.trae/skills/lovrabet/SKILL.md','template':a245_0x5ae589(0x1ba)}]}};function a245_0x366b(_0xceabad,_0x3fd46c){_0xceabad=_0xceabad-0x18e;const _0x3b8848=a245_0x3b88();let _0x366b38=_0x3b8848[_0xceabad];return _0x366b38;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':'通用模板\x20-\x20兜底方案','folders':[a245_0x5ae589(0x1a0)],'files':[{'type':'file','path':a245_0x5ae589(0x1bc),'template':a245_0x5ae589(0x1ba)}]},'antigravity':{'name':a245_0x5ae589(0x1bf),'description':a245_0x5ae589(0x1aa),'folders':[a245_0x5ae589(0x1a0)],'files':[{'type':a245_0x5ae589(0x1a1),'path':a245_0x5ae589(0x1bc),'template':a245_0x5ae589(0x1ba)}]}};export const CORE_IDE_LIST=[a245_0x5ae589(0x193),a245_0x5ae589(0x1a6),'codebuddy',a245_0x5ae589(0x196),'cursor',a245_0x5ae589(0x19d),a245_0x5ae589(0x1b6),a245_0x5ae589(0x1bd),a245_0x5ae589(0x199)];export const IDE_LIST=[a245_0x5ae589(0x1ab),'claude',a245_0x5ae589(0x1a6),a245_0x5ae589(0x197),a245_0x5ae589(0x196),a245_0x5ae589(0x194),'opencode',a245_0x5ae589(0x1b6),a245_0x5ae589(0x1bd),'windsurf',a245_0x5ae589(0x19b)];export const ALL_CORE_IDES=[a245_0x5ae589(0x194),a245_0x5ae589(0x199),a245_0x5ae589(0x193),'cline',a245_0x5ae589(0x196),'opencode',a245_0x5ae589(0x1b6),'codebuddy','trae'];
@@ -1 +1 @@
1
- function a245_0x32ea(_0x57271c,_0xf09563){_0x57271c=_0x57271c-0x1a8;const _0x3ea0c2=a245_0x3ea0();let _0x32ea06=_0x3ea0c2[_0x57271c];return _0x32ea06;}(function(_0x4910e6,_0x3893c){const _0x515a6=a245_0x32ea,_0x3ba571=_0x4910e6();while(!![]){try{const _0x2a4ff6=parseInt(_0x515a6(0x1ac))/0x1*(-parseInt(_0x515a6(0x1a9))/0x2)+parseInt(_0x515a6(0x1af))/0x3+parseInt(_0x515a6(0x1ab))/0x4*(parseInt(_0x515a6(0x1b0))/0x5)+parseInt(_0x515a6(0x1ad))/0x6+parseInt(_0x515a6(0x1a8))/0x7+-parseInt(_0x515a6(0x1ae))/0x8+parseInt(_0x515a6(0x1aa))/0x9;if(_0x2a4ff6===_0x3893c)break;else _0x3ba571['push'](_0x3ba571['shift']());}catch(_0x4c167e){_0x3ba571['push'](_0x3ba571['shift']());}}}(a245_0x3ea0,0x8d771));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a245_0x3ea0(){const _0x441d33=['671730HHjPXe','1069570vytyNn','7390719aGLcZJ','79700sgDDYT','4308831CMKBgb','4fZfzdn','26FkIaGp','205794osxxeX','3129264IQQEaL'];a245_0x3ea0=function(){return _0x441d33;};return a245_0x3ea0();}
1
+ (function(_0x5dd336,_0x3f6853){const _0x1a1572=a246_0x5914,_0x132ea7=_0x5dd336();while(!![]){try{const _0x301065=parseInt(_0x1a1572(0x1d4))/0x1*(-parseInt(_0x1a1572(0x1da))/0x2)+parseInt(_0x1a1572(0x1d6))/0x3+-parseInt(_0x1a1572(0x1d9))/0x4*(-parseInt(_0x1a1572(0x1e0))/0x5)+-parseInt(_0x1a1572(0x1de))/0x6*(-parseInt(_0x1a1572(0x1dd))/0x7)+parseInt(_0x1a1572(0x1d5))/0x8*(-parseInt(_0x1a1572(0x1d7))/0x9)+-parseInt(_0x1a1572(0x1dc))/0xa*(-parseInt(_0x1a1572(0x1df))/0xb)+parseInt(_0x1a1572(0x1db))/0xc*(parseInt(_0x1a1572(0x1d8))/0xd);if(_0x301065===_0x3f6853)break;else _0x132ea7['push'](_0x132ea7['shift']());}catch(_0x505582){_0x132ea7['push'](_0x132ea7['shift']());}}}(a246_0x3edc,0xa75ae));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a246_0x3edc(){const _0x17d11a=['1xuxzos','4600672pjByhV','3312444OgkwOM','9OIHoyr','793gBdLVw','4TbDddM','1929686YKwPvM','66804xSBiQD','2330wEdmcp','26516uzMAzk','12csjoQV','19503aFtidJ','1804965jYvild'];a246_0x3edc=function(){return _0x17d11a;};return a246_0x3edc();}import{CliErrors}from'../errors.js';function a246_0x5914(_0x585894,_0x3e4fba){_0x585894=_0x585894-0x1d4;const _0x3edce4=a246_0x3edc();let _0x5914af=_0x3edce4[_0x585894];return _0x5914af;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x438a4e,_0xb79bb6){const _0x92f63e=a246_0x27a6,_0x34546e=_0x438a4e();while(!![]){try{const _0x2db0d3=parseInt(_0x92f63e(0x148))/0x1+-parseInt(_0x92f63e(0x147))/0x2*(parseInt(_0x92f63e(0x149))/0x3)+-parseInt(_0x92f63e(0x140))/0x4+parseInt(_0x92f63e(0x14f))/0x5+-parseInt(_0x92f63e(0x14a))/0x6*(-parseInt(_0x92f63e(0x14b))/0x7)+parseInt(_0x92f63e(0x145))/0x8+-parseInt(_0x92f63e(0x146))/0x9;if(_0x2db0d3===_0xb79bb6)break;else _0x34546e['push'](_0x34546e['shift']());}catch(_0x20a1a4){_0x34546e['push'](_0x34546e['shift']());}}}(a246_0x4717,0x9f302));function a246_0x4717(){const _0x2e085e=['6596514OoJUge','161114HeKhZp','1247106JFDViB','21RKqfsC','657978LkctAS','35jggHof','stableVersion','application/json','node','1883960ogmLqO','1005808ZmCbBb','json','/config/index.json','sdk','cli','224944sFRkij'];a246_0x4717=function(){return _0x2e085e;};return a246_0x4717();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x495fbc=a246_0x27a6,_0x4be80c=getTemplateBaseUrl(),_0x3ca783=[_0x4be80c+'/config.json',_0x4be80c+_0x495fbc(0x142)];for(const _0x12ab17 of _0x3ca783){try{const _0x11af4d=await fetch(_0x12ab17,{'headers':{'Accept':_0x495fbc(0x14d)}});if(!_0x11af4d['ok'])continue;const _0x312b9b=await _0x11af4d[_0x495fbc(0x141)]();if(!_0x312b9b[_0x495fbc(0x144)]?.['stableVersion']||!_0x312b9b[_0x495fbc(0x143)]?.[_0x495fbc(0x14e)]?.[_0x495fbc(0x14c)])continue;return _0x312b9b;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x54cb60=Date['now']();if(hasCachedConfig){const _0x1e57cf=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x54cb60-cacheTime<_0x1e57cf)return cachedConfig;}const _0x11d562=await fetchCdnConfig();return cachedConfig=_0x11d562,cacheTime=_0x54cb60,hasCachedConfig=!![],_0x11d562;}function a246_0x27a6(_0x4caafa,_0x116332){_0x4caafa=_0x4caafa-0x140;const _0x4717cb=a246_0x4717();let _0x27a61a=_0x4717cb[_0x4caafa];return _0x27a61a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a247_0x12fd(_0x12fe1c,_0x162b26){_0x12fe1c=_0x12fe1c-0x108;const _0x47c448=a247_0x47c4();let _0x12fdbf=_0x47c448[_0x12fe1c];return _0x12fdbf;}(function(_0x5260e6,_0x3e3caf){const _0x17fb0d=a247_0x12fd,_0x451e40=_0x5260e6();while(!![]){try{const _0x68f43e=-parseInt(_0x17fb0d(0x119))/0x1+-parseInt(_0x17fb0d(0x118))/0x2+-parseInt(_0x17fb0d(0x10d))/0x3*(-parseInt(_0x17fb0d(0x114))/0x4)+parseInt(_0x17fb0d(0x110))/0x5*(parseInt(_0x17fb0d(0x113))/0x6)+parseInt(_0x17fb0d(0x117))/0x7*(-parseInt(_0x17fb0d(0x108))/0x8)+parseInt(_0x17fb0d(0x109))/0x9*(-parseInt(_0x17fb0d(0x10b))/0xa)+parseInt(_0x17fb0d(0x111))/0xb*(parseInt(_0x17fb0d(0x115))/0xc);if(_0x68f43e===_0x3e3caf)break;else _0x451e40['push'](_0x451e40['shift']());}catch(_0x575362){_0x451e40['push'](_0x451e40['shift']());}}}(a247_0x47c4,0xf1d68));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x37d164=a247_0x12fd,_0xd0b942=getTemplateBaseUrl(),_0x46f672=[_0xd0b942+_0x37d164(0x10c),_0xd0b942+_0x37d164(0x11c)];for(const _0x5636fe of _0x46f672){try{const _0x2ae31a=await fetch(_0x5636fe,{'headers':{'Accept':_0x37d164(0x10a)}});if(!_0x2ae31a['ok'])continue;const _0x59f7f3=await _0x2ae31a[_0x37d164(0x10e)]();if(!_0x59f7f3[_0x37d164(0x11a)]?.['stableVersion']||!_0x59f7f3[_0x37d164(0x11b)]?.[_0x37d164(0x116)]?.[_0x37d164(0x10f)])continue;return _0x59f7f3;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a247_0x47c4(){const _0x279176=['json','stableVersion','10IHlmLT','675389JqqQqB','now','833844VgJTDX','4XEzmkm','804nujFmo','node','1491GoYjHQ','2718898fHrwuW','636933kZyzED','cli','sdk','/config/index.json','65976PIfRJh','12255093fdvCdp','application/json','10TIGJZc','/config.json','5140671humnlB'];a247_0x47c4=function(){return _0x279176;};return a247_0x47c4();}export async function getCdnConfig(){const _0x201620=a247_0x12fd,_0x5aad1c=Date[_0x201620(0x112)]();if(hasCachedConfig){const _0x193dd2=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5aad1c-cacheTime<_0x193dd2)return cachedConfig;}const _0x54834c=await fetchCdnConfig();return cachedConfig=_0x54834c,cacheTime=_0x5aad1c,hasCachedConfig=!![],_0x54834c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a247_0x51a895=a247_0x1456;(function(_0x2bbb33,_0xb090c8){const _0x3185ce=a247_0x1456,_0x51c6d9=_0x2bbb33();while(!![]){try{const _0x437947=-parseInt(_0x3185ce(0x20d))/0x1+parseInt(_0x3185ce(0x205))/0x2+-parseInt(_0x3185ce(0x1f7))/0x3*(parseInt(_0x3185ce(0x209))/0x4)+-parseInt(_0x3185ce(0x1fd))/0x5*(parseInt(_0x3185ce(0x1f5))/0x6)+-parseInt(_0x3185ce(0x20c))/0x7+parseInt(_0x3185ce(0x204))/0x8+parseInt(_0x3185ce(0x1fc))/0x9;if(_0x437947===_0xb090c8)break;else _0x51c6d9['push'](_0x51c6d9['shift']());}catch(_0x395a37){_0x51c6d9['push'](_0x51c6d9['shift']());}}}(a247_0x59b6,0x36a47));function a247_0x1456(_0x5db813,_0x3d1598){_0x5db813=_0x5db813-0x1ea;const _0x59b693=a247_0x59b6();let _0x14562b=_0x59b693[_0x5db813];return _0x14562b;}import a247_0x50372b from'node:fs';import a247_0x2d2e32 from'node:path';import a247_0xe58959 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a247_0x51a895(0x200);function isNonNumericVersion(_0x59b71b){const _0x4e550e=a247_0x51a895,_0x455d6e=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x455d6e[_0x4e550e(0x207)](_0x5762e9=>_0x5762e9[_0x4e550e(0x1ec)](_0x59b71b));}function getInstalledVersion(_0x1ec93f,_0x47084a){const _0x4d1d53=a247_0x51a895;try{const _0x5338f7=a247_0x2d2e32['join'](_0x1ec93f,'node_modules',_0x47084a,'package.json');if(a247_0x50372b[_0x4d1d53(0x1f8)](_0x5338f7)){const _0xa6e094=JSON[_0x4d1d53(0x20f)](a247_0x50372b[_0x4d1d53(0x202)](_0x5338f7,_0x4d1d53(0x1ea)));return _0xa6e094[_0x4d1d53(0x201)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1fef16=a247_0x51a895;try{const _0xfe2443=await getCdnConfig();return _0xfe2443?.[_0x1fef16(0x1f4)]?.[_0x1fef16(0x1fb)]?.[_0x1fef16(0x1f2)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x523d0f=a247_0x51a895;try{const _0x211ae0=await getCdnConfig();return _0x211ae0?.[_0x523d0f(0x1f4)]?.[_0x523d0f(0x1fb)]?.[_0x523d0f(0x208)]||_0x523d0f(0x1ed);}catch{return _0x523d0f(0x1ed);}}export async function checkSdkVersion(_0x2f2a1c){const _0x4adee0=a247_0x51a895,_0x1204f6=a247_0x2d2e32['join'](_0x2f2a1c,_0x4adee0(0x1f0)),[_0x580a0b,_0x11bcca]=await Promise[_0x4adee0(0x20b)]([getSdkStableVersion(),getSdkPackageName()]),_0x14556b=_0x580a0b||FALLBACK_MIN_SDK_VERSION;if(!a247_0x50372b[_0x4adee0(0x1f8)](_0x1204f6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14556b,'packageName':_0x11bcca,'stableVersion':_0x580a0b};try{const _0x19ca7e=JSON[_0x4adee0(0x20f)](a247_0x50372b[_0x4adee0(0x202)](_0x1204f6,'utf8')),_0x337f12=_0x19ca7e['dependencies']||{},_0x1ccab2=_0x19ca7e[_0x4adee0(0x1fa)]||{},_0x447356=_0x337f12[_0x11bcca]||_0x1ccab2[_0x11bcca];if(!_0x447356)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14556b,'packageName':_0x11bcca,'stableVersion':_0x580a0b};let _0x1f5606=getInstalledVersion(_0x2f2a1c,_0x11bcca);!_0x1f5606&&(_0x1f5606=_0x447356);if(isNonNumericVersion(_0x447356))return{'installed':!![],'version':_0x1f5606,'needsUpgrade':![],'minVersion':_0x14556b,'packageName':_0x11bcca,'stableVersion':_0x580a0b};const _0x2b085a=a247_0xe58959[_0x4adee0(0x1f9)](_0x1f5606),_0x14b5ba=a247_0xe58959[_0x4adee0(0x1f9)](_0x14556b),_0x1d9f9b=_0x2b085a&&_0x14b5ba?a247_0xe58959['lt'](_0x2b085a,_0x14b5ba):![];return{'installed':!![],'version':_0x1f5606,'needsUpgrade':_0x1d9f9b,'minVersion':_0x14556b,'packageName':_0x11bcca,'stableVersion':_0x580a0b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14556b,'packageName':_0x11bcca,'stableVersion':_0x580a0b};}}export function checkSdkVersionSync(_0x1c028){const _0x485918=a247_0x51a895,_0x11b0f3=a247_0x2d2e32['join'](_0x1c028,'package.json'),_0x3f6b28=_0x485918(0x1ed);if(!a247_0x50372b[_0x485918(0x1f8)](_0x11b0f3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f6b28,'stableVersion':null};try{const _0x5242ff=JSON[_0x485918(0x20f)](a247_0x50372b[_0x485918(0x202)](_0x11b0f3,_0x485918(0x203))),_0x2f255a=_0x5242ff['dependencies']||{},_0x58c453=_0x5242ff['devDependencies']||{},_0x574a30=_0x2f255a[_0x3f6b28]||_0x58c453[_0x3f6b28];if(!_0x574a30)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f6b28,'stableVersion':null};let _0x2a24f2=getInstalledVersion(_0x1c028,_0x3f6b28);!_0x2a24f2&&(_0x2a24f2=_0x574a30);if(isNonNumericVersion(_0x574a30))return{'installed':!![],'version':_0x2a24f2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f6b28,'stableVersion':null};const _0x16a033=a247_0xe58959['coerce'](_0x2a24f2),_0x31ae9d=_0x16a033?a247_0xe58959['lt'](_0x16a033,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2a24f2,'needsUpgrade':_0x31ae9d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f6b28,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f6b28,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x592f94){const _0x19818a=a247_0x51a895;if(!_0x592f94[_0x19818a(0x1ee)])return;const _0x261b23=_0x19818a(0x206),_0xadad4a=_0x19818a(0x1eb),_0x30fc76=_0x19818a(0x1ff),_0x5e2812=_0x592f94[_0x19818a(0x208)]||_0x19818a(0x1ed),_0xf5e05c=_0x592f94[_0x19818a(0x1f2)]||_0x592f94[_0x19818a(0x20e)],_0x32bd62='npm\x20install\x20'+_0x5e2812+'@'+(_0xf5e05c||_0x19818a(0x1fe));console['log'](),console[_0x19818a(0x1f6)](''+_0x261b23+_0x30fc76+_0x19818a(0x1f1)+_0xadad4a),console[_0x19818a(0x1f6)](_0x261b23+_0x19818a(0x1ef)+_0x5e2812+'@'+_0x592f94[_0x19818a(0x201)]+_0xadad4a),console[_0x19818a(0x1f6)](_0x261b23+_0x19818a(0x1f3)+_0xf5e05c+_0xadad4a),console['log'](_0x261b23+_0x19818a(0x20a)+_0x32bd62+_0xadad4a),console[_0x19818a(0x1f6)]();}function a247_0x59b6(){const _0x574019=['readFileSync','utf8','1132664EwvZMw','274312AlwVcz','\x1b[33m','some','packageName','4bbQRAw','\x20\x20\x20Upgrade\x20command:\x20','all','338786rYVfiP','198044FztCZl','minVersion','parse','utf-8','\x1b[0m','test','@lovrabet/sdk','needsUpgrade','\x20\x20\x20Current\x20version:\x20','package.json','↪\x20SDK\x20update\x20available','stableVersion','\x20\x20\x20Stable\x20version:\x20','sdk','6ZDubzl','log','356808cNnxml','existsSync','coerce','devDependencies','node','3392055pyPDaK','332205VQopNJ','latest','\x1b[1m','1.2.0','version'];a247_0x59b6=function(){return _0x574019;};return a247_0x59b6();}
1
+ const a248_0x13f32e=a248_0x30e1;(function(_0x542337,_0x2bbd42){const _0x4b07cd=a248_0x30e1,_0x1a36bd=_0x542337();while(!![]){try{const _0x5c292e=-parseInt(_0x4b07cd(0xcd))/0x1+-parseInt(_0x4b07cd(0xd9))/0x2*(parseInt(_0x4b07cd(0xdf))/0x3)+-parseInt(_0x4b07cd(0xc5))/0x4*(parseInt(_0x4b07cd(0xe1))/0x5)+-parseInt(_0x4b07cd(0xe2))/0x6*(parseInt(_0x4b07cd(0xe0))/0x7)+parseInt(_0x4b07cd(0xd8))/0x8+parseInt(_0x4b07cd(0xc7))/0x9+parseInt(_0x4b07cd(0xdc))/0xa*(parseInt(_0x4b07cd(0xce))/0xb);if(_0x5c292e===_0x2bbd42)break;else _0x1a36bd['push'](_0x1a36bd['shift']());}catch(_0x22be4e){_0x1a36bd['push'](_0x1a36bd['shift']());}}}(a248_0x5b76,0x29551));import a248_0x3bb7e3 from'node:fs';import a248_0x50b282 from'node:path';import a248_0x3e6e35 from'semver';function a248_0x30e1(_0x48fc80,_0x2fb366){_0x48fc80=_0x48fc80-0xc2;const _0x5b76e4=a248_0x5b76();let _0x30e1f5=_0x5b76e4[_0x48fc80];return _0x30e1f5;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a248_0x13f32e(0xe7);function isNonNumericVersion(_0x3fcb33){const _0x645f71=a248_0x13f32e,_0x1041f6=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1041f6['some'](_0x36d936=>_0x36d936[_0x645f71(0xc2)](_0x3fcb33));}function getInstalledVersion(_0x23d03e,_0x32c96f){const _0x3be280=a248_0x13f32e;try{const _0x79c128=a248_0x50b282['join'](_0x23d03e,'node_modules',_0x32c96f,'package.json');if(a248_0x3bb7e3['existsSync'](_0x79c128)){const _0x10dd37=JSON['parse'](a248_0x3bb7e3['readFileSync'](_0x79c128,_0x3be280(0xd6)));return _0x10dd37[_0x3be280(0xda)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4877fe=a248_0x13f32e;try{const _0x526007=await getCdnConfig();return _0x526007?.['sdk']?.['node']?.[_0x4877fe(0xc4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3bad42=a248_0x13f32e;try{const _0x407480=await getCdnConfig();return _0x407480?.[_0x3bad42(0xd4)]?.['node']?.[_0x3bad42(0xc3)]||_0x3bad42(0xe4);}catch{return'@lovrabet/sdk';}}function a248_0x5b76(){const _0x2fc3ea=['1965JcbmiX','2317gegjQF','725YBbAbM','5178lOqcgi','parse','@lovrabet/sdk','existsSync','devDependencies','1.2.0','\x1b[1m','test','packageName','stableVersion','6324chbiDb','coerce','2429298OAAMdt','latest','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','\x20\x20\x20Stable\x20version:\x20','↪\x20SDK\x20update\x20available','141369RfkzyG','2978624jhxMwe','dependencies','\x1b[33m','\x20\x20\x20Current\x20version:\x20','utf8','needsUpgrade','sdk','all','utf-8','readFileSync','1742232OgCBqU','622xhEmCh','version','minVersion','20bIhyLb','join','log'];a248_0x5b76=function(){return _0x2fc3ea;};return a248_0x5b76();}export async function checkSdkVersion(_0x1187b5){const _0x21ea8b=a248_0x13f32e,_0x2fc081=a248_0x50b282[_0x21ea8b(0xdd)](_0x1187b5,'package.json'),[_0x3b8555,_0x532f9c]=await Promise[_0x21ea8b(0xd5)]([getSdkStableVersion(),getSdkPackageName()]),_0x5dff00=_0x3b8555||FALLBACK_MIN_SDK_VERSION;if(!a248_0x3bb7e3[_0x21ea8b(0xe5)](_0x2fc081))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5dff00,'packageName':_0x532f9c,'stableVersion':_0x3b8555};try{const _0x53bae8=JSON[_0x21ea8b(0xe3)](a248_0x3bb7e3[_0x21ea8b(0xd7)](_0x2fc081,_0x21ea8b(0xd2))),_0x1d0b39=_0x53bae8['dependencies']||{},_0x20de1f=_0x53bae8['devDependencies']||{},_0x15d5b9=_0x1d0b39[_0x532f9c]||_0x20de1f[_0x532f9c];if(!_0x15d5b9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5dff00,'packageName':_0x532f9c,'stableVersion':_0x3b8555};let _0x492c5e=getInstalledVersion(_0x1187b5,_0x532f9c);!_0x492c5e&&(_0x492c5e=_0x15d5b9);if(isNonNumericVersion(_0x15d5b9))return{'installed':!![],'version':_0x492c5e,'needsUpgrade':![],'minVersion':_0x5dff00,'packageName':_0x532f9c,'stableVersion':_0x3b8555};const _0x1f0018=a248_0x3e6e35[_0x21ea8b(0xc6)](_0x492c5e),_0x4d69be=a248_0x3e6e35[_0x21ea8b(0xc6)](_0x5dff00),_0x5ba791=_0x1f0018&&_0x4d69be?a248_0x3e6e35['lt'](_0x1f0018,_0x4d69be):![];return{'installed':!![],'version':_0x492c5e,'needsUpgrade':_0x5ba791,'minVersion':_0x5dff00,'packageName':_0x532f9c,'stableVersion':_0x3b8555};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5dff00,'packageName':_0x532f9c,'stableVersion':_0x3b8555};}}export function checkSdkVersionSync(_0x37ef8d){const _0x36b79c=a248_0x13f32e,_0x80b6c=a248_0x50b282[_0x36b79c(0xdd)](_0x37ef8d,'package.json'),_0xcb69ba='@lovrabet/sdk';if(!a248_0x3bb7e3[_0x36b79c(0xe5)](_0x80b6c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcb69ba,'stableVersion':null};try{const _0x19d5e0=JSON[_0x36b79c(0xe3)](a248_0x3bb7e3[_0x36b79c(0xd7)](_0x80b6c,_0x36b79c(0xd2))),_0x2e7a61=_0x19d5e0[_0x36b79c(0xcf)]||{},_0x4c4633=_0x19d5e0[_0x36b79c(0xe6)]||{},_0x24001c=_0x2e7a61[_0xcb69ba]||_0x4c4633[_0xcb69ba];if(!_0x24001c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcb69ba,'stableVersion':null};let _0x42f46a=getInstalledVersion(_0x37ef8d,_0xcb69ba);!_0x42f46a&&(_0x42f46a=_0x24001c);if(isNonNumericVersion(_0x24001c))return{'installed':!![],'version':_0x42f46a,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcb69ba,'stableVersion':null};const _0x389ca6=a248_0x3e6e35['coerce'](_0x42f46a),_0x3773ab=_0x389ca6?a248_0x3e6e35['lt'](_0x389ca6,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x42f46a,'needsUpgrade':_0x3773ab,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcb69ba,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xcb69ba,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x54b8f0){const _0x14ffb6=a248_0x13f32e;if(!_0x54b8f0[_0x14ffb6(0xd3)])return;const _0x1a6e73=_0x14ffb6(0xd0),_0x269be3='\x1b[0m',_0xcfc7f=_0x14ffb6(0xe8),_0x47bd37=_0x54b8f0[_0x14ffb6(0xc3)]||_0x14ffb6(0xe4),_0x417c5d=_0x54b8f0[_0x14ffb6(0xc4)]||_0x54b8f0[_0x14ffb6(0xdb)],_0x460432=_0x14ffb6(0xca)+_0x47bd37+'@'+(_0x417c5d||_0x14ffb6(0xc8));console[_0x14ffb6(0xde)](),console[_0x14ffb6(0xde)](''+_0x1a6e73+_0xcfc7f+_0x14ffb6(0xcc)+_0x269be3),console['log'](_0x1a6e73+_0x14ffb6(0xd1)+_0x47bd37+'@'+_0x54b8f0['version']+_0x269be3),console['log'](_0x1a6e73+_0x14ffb6(0xcb)+_0x417c5d+_0x269be3),console['log'](_0x1a6e73+_0x14ffb6(0xc9)+_0x460432+_0x269be3),console[_0x14ffb6(0xde)]();}
@@ -1 +1 @@
1
- (function(_0x86d81a,_0x207f57){const _0x1f211c=a248_0x5458,_0x4916a5=_0x86d81a();while(!![]){try{const _0x1519bf=parseInt(_0x1f211c(0xfd))/0x1+parseInt(_0x1f211c(0xf0))/0x2+-parseInt(_0x1f211c(0xe7))/0x3*(parseInt(_0x1f211c(0x100))/0x4)+-parseInt(_0x1f211c(0xeb))/0x5*(-parseInt(_0x1f211c(0xea))/0x6)+parseInt(_0x1f211c(0xf9))/0x7*(parseInt(_0x1f211c(0xf5))/0x8)+parseInt(_0x1f211c(0xf7))/0x9*(parseInt(_0x1f211c(0xe6))/0xa)+parseInt(_0x1f211c(0xf8))/0xb*(-parseInt(_0x1f211c(0xde))/0xc);if(_0x1519bf===_0x207f57)break;else _0x4916a5['push'](_0x4916a5['shift']());}catch(_0x1c58f0){_0x4916a5['push'](_0x4916a5['shift']());}}}(a248_0x53b5,0x6bc32));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a248_0x53b5(){const _0x1e548d=['stableVersion','currentVersion','\x20\x20\x20Recommended\x20stable:\x20','110962uZWmlq','parse','minimumVersionMessage','npm\x20install\x20-g\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','1417032iebRZS','filter','1638495xoaaxX','2211AjCgHW','21qrhKmn','minimumVersion','1.0.0','version','67243OpxiLA','log','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','700324HNjWQl','\x1b[1m','↪\x20New\x20version\x20available','\x20\x20\x20Minimum\x20supported:\x20','coerce','latest','34512BAUPrb','\x20\x20\x20Current\x20CLI\x20version:\x20','package.json','upgradeMessage','Minimum\x20supported:\x20','Current\x20version:\x20','Upgrade\x20command:\x20','\x20\x20\x20Upgrade\x20command:\x20','20ZJpvkq','15EFolOD','validation','belowMinimum','18THzUGr','1461090UJIyHh','needsUpgrade'];a248_0x53b5=function(){return _0x1e548d;};return a248_0x53b5();}import a248_0x227446 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5061df){const _0x3bca32=a248_0x5458,_0x5593ea=_0x5061df[_0x3bca32(0xed)]||_0x3bca32(0xdd);return _0x3bca32(0xf3)+NPM_PACKAGE_NAME+'@'+_0x5593ea;}function getCurrentCliVersion(){const _0x6bf0fd=a248_0x5458;try{const _0x3bb086=fileURLToPath(import.meta.url),_0xbd1db9=resolve(dirname(_0x3bb086),'../..'),_0x2f624c=resolve(_0xbd1db9,_0x6bf0fd(0xe0)),_0x21e665=JSON[_0x6bf0fd(0xf1)](readFileSync(_0x2f624c,'utf-8'));return _0x21e665[_0x6bf0fd(0xfc)]||_0x6bf0fd(0xfb);}catch{return _0x6bf0fd(0xfb);}}export async function checkCliVersion(){const _0x217b64=a248_0x5458,_0x3cfe34=getCurrentCliVersion(),_0x39a4f4=await getCliVersionPolicy(),_0x32f5e1=_0x39a4f4?.[_0x217b64(0xed)]||null,_0x3e4e16=_0x39a4f4?.[_0x217b64(0xfa)]||null;let _0x4ce0b8=![],_0x51262c=![];const _0x152521=a248_0x227446[_0x217b64(0xdc)](_0x3cfe34);if(_0x152521&&_0x32f5e1)try{const _0x153cc7=a248_0x227446[_0x217b64(0xdc)](_0x32f5e1);if(_0x153cc7)_0x4ce0b8=a248_0x227446['lt'](_0x152521,_0x153cc7);}catch{}if(_0x152521&&_0x3e4e16)try{const _0x5c97b5=a248_0x227446['coerce'](_0x3e4e16);if(_0x5c97b5)_0x51262c=a248_0x227446['lt'](_0x152521,_0x5c97b5);}catch{}return _0x51262c&&(_0x4ce0b8=!![]),{'currentVersion':_0x3cfe34,'stableVersion':_0x32f5e1,'minimumVersion':_0x3e4e16,'needsUpgrade':_0x4ce0b8,'belowMinimum':_0x51262c,'isPreRelease':![],'upgradeMessage':_0x39a4f4?.[_0x217b64(0xe1)],'minimumVersionMessage':_0x39a4f4?.[_0x217b64(0xf2)]};}function a248_0x5458(_0x55fc69,_0x2ea11f){_0x55fc69=_0x55fc69-0xda;const _0x53b55e=a248_0x53b5();let _0x5458dd=_0x53b55e[_0x55fc69];return _0x5458dd;}export function printCliUpgradeWarning(_0x43b297){const _0x1c6815=a248_0x5458;if(!_0x43b297[_0x1c6815(0xec)]&&!_0x43b297[_0x1c6815(0xe9)])return;const _0x22fc3e='\x1b[31m',_0x11d072='\x1b[33m',_0x2cf879='\x1b[0m',_0x3397d0=_0x1c6815(0x101),_0x20c55e=getCliUpgradeCommand(_0x43b297);console[_0x1c6815(0xfe)](),_0x43b297[_0x1c6815(0xe9)]?(console[_0x1c6815(0xfe)](''+_0x22fc3e+_0x3397d0+_0x1c6815(0xf4)+_0x2cf879),console[_0x1c6815(0xfe)](_0x22fc3e+_0x1c6815(0xdf)+_0x43b297[_0x1c6815(0xee)]+_0x2cf879),_0x43b297[_0x1c6815(0xfa)]&&console['log'](_0x22fc3e+_0x1c6815(0xdb)+_0x43b297['minimumVersion']+_0x2cf879),_0x43b297[_0x1c6815(0xed)]&&_0x43b297['stableVersion']!==_0x43b297[_0x1c6815(0xfa)]&&console['log'](_0x22fc3e+_0x1c6815(0xef)+_0x43b297[_0x1c6815(0xed)]+_0x2cf879),_0x43b297[_0x1c6815(0xf2)]&&console['log'](_0x22fc3e+'\x20\x20\x20'+_0x43b297['minimumVersionMessage']+_0x2cf879),console[_0x1c6815(0xfe)](_0x22fc3e+_0x1c6815(0xe5)+_0x20c55e+_0x2cf879)):(console[_0x1c6815(0xfe)](''+_0x11d072+_0x3397d0+_0x1c6815(0xda)+_0x2cf879),console['log'](_0x11d072+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x43b297[_0x1c6815(0xee)]+_0x2cf879),console[_0x1c6815(0xfe)](_0x11d072+'\x20\x20\x20Stable\x20version:\x20'+_0x43b297[_0x1c6815(0xed)]+_0x2cf879),_0x43b297[_0x1c6815(0xe1)]&&console[_0x1c6815(0xfe)](_0x11d072+'\x20\x20\x20'+_0x43b297[_0x1c6815(0xe1)]+_0x2cf879),console[_0x1c6815(0xfe)](_0x11d072+_0x1c6815(0xe5)+_0x20c55e+_0x2cf879)),console[_0x1c6815(0xfe)]();}export function assertCliVersionSupported(_0x1ffbd7){const _0x47488b=a248_0x5458;if(!_0x1ffbd7[_0x47488b(0xe9)])return;const _0x288eef=[_0x1ffbd7[_0x47488b(0xf2)],_0x47488b(0xe3)+_0x1ffbd7[_0x47488b(0xee)],_0x1ffbd7['minimumVersion']?_0x47488b(0xe2)+_0x1ffbd7[_0x47488b(0xfa)]:null,_0x47488b(0xe4)+getCliUpgradeCommand(_0x1ffbd7)][_0x47488b(0xf6)](Boolean)['join']('\x0a');throw CliErrors[_0x47488b(0xe8)](_0x47488b(0xff),_0x288eef);}
1
+ (function(_0x30d836,_0x1f891c){const _0x108aef=a249_0x15a2,_0x432421=_0x30d836();while(!![]){try{const _0x14ada0=parseInt(_0x108aef(0xce))/0x1+-parseInt(_0x108aef(0xd4))/0x2*(parseInt(_0x108aef(0xc3))/0x3)+parseInt(_0x108aef(0xcd))/0x4*(parseInt(_0x108aef(0xc5))/0x5)+-parseInt(_0x108aef(0xd0))/0x6+parseInt(_0x108aef(0xb1))/0x7*(-parseInt(_0x108aef(0xc6))/0x8)+-parseInt(_0x108aef(0xc0))/0x9*(parseInt(_0x108aef(0xbc))/0xa)+-parseInt(_0x108aef(0xc9))/0xb*(-parseInt(_0x108aef(0xb4))/0xc);if(_0x14ada0===_0x1f891c)break;else _0x432421['push'](_0x432421['shift']());}catch(_0x2c4059){_0x432421['push'](_0x432421['shift']());}}}(a249_0x129b,0x791b2));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a249_0x58b22e from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xdf58f){const _0x5f4af7=a249_0x15a2,_0x4898be=_0xdf58f[_0x5f4af7(0xd6)]||_0x5f4af7(0xb3);return _0x5f4af7(0xcc)+NPM_PACKAGE_NAME+'@'+_0x4898be;}function getCurrentCliVersion(){const _0x4f95df=a249_0x15a2;try{const _0x508f6a=fileURLToPath(import.meta.url),_0xd54504=resolve(dirname(_0x508f6a),_0x4f95df(0xd2)),_0x351c3c=resolve(_0xd54504,'package.json'),_0x550811=JSON[_0x4f95df(0xcf)](readFileSync(_0x351c3c,_0x4f95df(0xc2)));return _0x550811[_0x4f95df(0xb7)]||'1.0.0';}catch{return _0x4f95df(0xb0);}}export async function checkCliVersion(){const _0x50ee63=a249_0x15a2,_0x210ea4=getCurrentCliVersion(),_0xe8c036=await getCliVersionPolicy(),_0x147823=_0xe8c036?.[_0x50ee63(0xd6)]||null,_0x4ca528=_0xe8c036?.['minimumVersion']||null;let _0x4507bc=![],_0x5ca509=![];const _0x400fc7=a249_0x58b22e['coerce'](_0x210ea4);if(_0x400fc7&&_0x147823)try{const _0x59f7bc=a249_0x58b22e[_0x50ee63(0xb9)](_0x147823);if(_0x59f7bc)_0x4507bc=a249_0x58b22e['lt'](_0x400fc7,_0x59f7bc);}catch{}if(_0x400fc7&&_0x4ca528)try{const _0x3ea18e=a249_0x58b22e[_0x50ee63(0xb9)](_0x4ca528);if(_0x3ea18e)_0x5ca509=a249_0x58b22e['lt'](_0x400fc7,_0x3ea18e);}catch{}return _0x5ca509&&(_0x4507bc=!![]),{'currentVersion':_0x210ea4,'stableVersion':_0x147823,'minimumVersion':_0x4ca528,'needsUpgrade':_0x4507bc,'belowMinimum':_0x5ca509,'isPreRelease':![],'upgradeMessage':_0xe8c036?.[_0x50ee63(0xba)],'minimumVersionMessage':_0xe8c036?.[_0x50ee63(0xb8)]};}export function printCliUpgradeWarning(_0x5858d6){const _0x267133=a249_0x15a2;if(!_0x5858d6[_0x267133(0xd7)]&&!_0x5858d6[_0x267133(0xb5)])return;const _0x4b6f0d=_0x267133(0xbb),_0x1117ab='\x1b[33m',_0x302981=_0x267133(0xd5),_0x40c0ad='\x1b[1m',_0x194e16=getCliUpgradeCommand(_0x5858d6);console[_0x267133(0xbe)](),_0x5858d6['belowMinimum']?(console[_0x267133(0xbe)](''+_0x4b6f0d+_0x40c0ad+_0x267133(0xbd)+_0x302981),console[_0x267133(0xbe)](_0x4b6f0d+_0x267133(0xc4)+_0x5858d6[_0x267133(0xd8)]+_0x302981),_0x5858d6[_0x267133(0xcb)]&&console[_0x267133(0xbe)](_0x4b6f0d+_0x267133(0xb6)+_0x5858d6['minimumVersion']+_0x302981),_0x5858d6[_0x267133(0xd6)]&&_0x5858d6[_0x267133(0xd6)]!==_0x5858d6[_0x267133(0xcb)]&&console['log'](_0x4b6f0d+_0x267133(0xbf)+_0x5858d6[_0x267133(0xd6)]+_0x302981),_0x5858d6[_0x267133(0xb8)]&&console[_0x267133(0xbe)](_0x4b6f0d+_0x267133(0xc1)+_0x5858d6['minimumVersionMessage']+_0x302981),console[_0x267133(0xbe)](_0x4b6f0d+_0x267133(0xc7)+_0x194e16+_0x302981)):(console['log'](''+_0x1117ab+_0x40c0ad+_0x267133(0xd3)+_0x302981),console[_0x267133(0xbe)](_0x1117ab+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x5858d6['currentVersion']+_0x302981),console[_0x267133(0xbe)](_0x1117ab+'\x20\x20\x20Stable\x20version:\x20'+_0x5858d6[_0x267133(0xd6)]+_0x302981),_0x5858d6[_0x267133(0xba)]&&console[_0x267133(0xbe)](_0x1117ab+_0x267133(0xc1)+_0x5858d6[_0x267133(0xba)]+_0x302981),console[_0x267133(0xbe)](_0x1117ab+_0x267133(0xc7)+_0x194e16+_0x302981)),console[_0x267133(0xbe)]();}function a249_0x15a2(_0x193a84,_0x4af094){_0x193a84=_0x193a84-0xb0;const _0x129b8f=a249_0x129b();let _0x15a24e=_0x129b8f[_0x193a84];return _0x15a24e;}function a249_0x129b(){const _0x5bb150=['coerce','upgradeMessage','\x1b[31m','400OMAuUN','↪\x20Critical\x20CLI\x20upgrade\x20required','log','\x20\x20\x20Recommended\x20stable:\x20','220230AkdZWM','\x20\x20\x20','utf-8','33933gKrDjx','\x20\x20\x20Current\x20CLI\x20version:\x20','1235GOJGQv','32nyptgK','\x20\x20\x20Upgrade\x20command:\x20','filter','1539857gHhfOG','validation','minimumVersion','npm\x20install\x20-g\x20','13228cFOeKP','927077YyZyRv','parse','5921952uAehcP','Current\x20version:\x20','../..','↪\x20New\x20version\x20available','6HfXtFH','\x1b[0m','stableVersion','needsUpgrade','currentVersion','Upgrade\x20command:\x20','1.0.0','1378979RJVdDg','join','latest','132lATvAP','belowMinimum','\x20\x20\x20Minimum\x20supported:\x20','version','minimumVersionMessage'];a249_0x129b=function(){return _0x5bb150;};return a249_0x129b();}export function assertCliVersionSupported(_0x1da80b){const _0x53ca83=a249_0x15a2;if(!_0x1da80b[_0x53ca83(0xb5)])return;const _0x3bcce7=[_0x1da80b[_0x53ca83(0xb8)],_0x53ca83(0xd1)+_0x1da80b['currentVersion'],_0x1da80b[_0x53ca83(0xcb)]?'Minimum\x20supported:\x20'+_0x1da80b[_0x53ca83(0xcb)]:null,_0x53ca83(0xd9)+getCliUpgradeCommand(_0x1da80b)][_0x53ca83(0xc8)](Boolean)[_0x53ca83(0xb2)]('\x0a');throw CliErrors[_0x53ca83(0xca)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x3bcce7);}
@@ -1 +1 @@
1
- (function(_0x584f3d,_0x375457){const _0x8cbdd2=a249_0x539a,_0x165014=_0x584f3d();while(!![]){try{const _0x3a46af=-parseInt(_0x8cbdd2(0x18d))/0x1*(parseInt(_0x8cbdd2(0x19b))/0x2)+-parseInt(_0x8cbdd2(0x191))/0x3+-parseInt(_0x8cbdd2(0x18b))/0x4+parseInt(_0x8cbdd2(0x1a2))/0x5*(parseInt(_0x8cbdd2(0x19c))/0x6)+parseInt(_0x8cbdd2(0x192))/0x7*(parseInt(_0x8cbdd2(0x19a))/0x8)+parseInt(_0x8cbdd2(0x19d))/0x9*(-parseInt(_0x8cbdd2(0x197))/0xa)+parseInt(_0x8cbdd2(0x195))/0xb*(parseInt(_0x8cbdd2(0x199))/0xc);if(_0x3a46af===_0x375457)break;else _0x165014['push'](_0x165014['shift']());}catch(_0x55c1f1){_0x165014['push'](_0x165014['shift']());}}}(a249_0x3d3d,0xe486d));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x49d78e){const _0x1b0260=a249_0x539a;return typeof _0x49d78e==='string'&&_0x49d78e[_0x1b0260(0x193)]()[_0x1b0260(0x1a0)]>0x0?_0x49d78e[_0x1b0260(0x193)]():null;}function a249_0x539a(_0x313b43,_0x1e5a37){_0x313b43=_0x313b43-0x18b;const _0x3d3db5=a249_0x3d3d();let _0x539af1=_0x3d3db5[_0x313b43];return _0x539af1;}function normalizeCliVersionPolicy(_0x95dccf){const _0x37bf50=a249_0x539a;if(!_0x95dccf||typeof _0x95dccf!==_0x37bf50(0x190))return null;const _0x40e68e=_0x95dccf,_0x5d86c6=_0x40e68e[_0x37bf50(0x19f)]&&typeof _0x40e68e['cli']===_0x37bf50(0x190)?_0x40e68e['cli']:_0x40e68e,_0x32ffd9=pickString(_0x5d86c6[_0x37bf50(0x18e)])||pickString(_0x5d86c6[_0x37bf50(0x198)])||pickString(_0x5d86c6[_0x37bf50(0x1a1)]),_0x249020=pickString(_0x5d86c6[_0x37bf50(0x18f)])||pickString(_0x5d86c6[_0x37bf50(0x196)]);if(!_0x32ffd9&&!_0x249020)return null;return{'stableVersion':_0x32ffd9,'minimumVersion':_0x249020,'upgradeMessage':pickString(_0x5d86c6[_0x37bf50(0x19e)])||undefined,'minimumVersionMessage':pickString(_0x5d86c6['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x45e326=a249_0x539a,_0x183ec5=new AbortController(),_0x304d99=setTimeout(()=>_0x183ec5[_0x45e326(0x18c)](),FETCH_TIMEOUT_MS);try{const _0x4f42c4=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x183ec5[_0x45e326(0x1a3)]});if(!_0x4f42c4['ok'])return null;const _0x35c38a=await _0x4f42c4[_0x45e326(0x194)]();return normalizeCliVersionPolicy(_0x35c38a);}catch{return null;}finally{clearTimeout(_0x304d99);}}function a249_0x3d3d(){const _0x26fcbd=['minVersion','399820zejCTy','latestVersion','11585112SGzEDd','1651032KJglEB','214238AJouHU','1357650mEJQrc','180DeWyby','upgradeMessage','cli','length','recommendedVersion','10CsDjwJ','signal','now','2112732bSIdVP','abort','11JQgKGN','stableVersion','minimumVersion','object','3854505YmdNZS','14evyhWX','trim','json','44felZWj'];a249_0x3d3d=function(){return _0x26fcbd;};return a249_0x3d3d();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x9686f3=a249_0x539a,_0x3a92b1=Date[_0x9686f3(0x1a4)]();if(hasCachedPolicy){const _0x227769=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3a92b1-cacheTime<_0x227769)return cachedPolicy;}const _0xee72db=await fetchCliVersionPolicy();return cachedPolicy=_0xee72db,cacheTime=_0x3a92b1,hasCachedPolicy=!![],_0xee72db;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x426cfb,_0x5f652d){const _0x5e5b5a=a250_0x3798,_0x2290d0=_0x426cfb();while(!![]){try{const _0x5e5df0=-parseInt(_0x5e5b5a(0x1c0))/0x1+-parseInt(_0x5e5b5a(0x1d2))/0x2*(-parseInt(_0x5e5b5a(0x1bc))/0x3)+parseInt(_0x5e5b5a(0x1c2))/0x4*(parseInt(_0x5e5b5a(0x1c5))/0x5)+-parseInt(_0x5e5b5a(0x1bd))/0x6+parseInt(_0x5e5b5a(0x1c6))/0x7*(parseInt(_0x5e5b5a(0x1c8))/0x8)+-parseInt(_0x5e5b5a(0x1d1))/0x9*(parseInt(_0x5e5b5a(0x1d0))/0xa)+parseInt(_0x5e5b5a(0x1cf))/0xb;if(_0x5e5df0===_0x5f652d)break;else _0x2290d0['push'](_0x2290d0['shift']());}catch(_0x41fe64){_0x2290d0['push'](_0x2290d0['shift']());}}}(a250_0x1f48,0xb90ee));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function a250_0x3798(_0x4515dc,_0x1226cb){_0x4515dc=_0x4515dc-0x1bc;const _0x1f486d=a250_0x1f48();let _0x3798f6=_0x1f486d[_0x4515dc];return _0x3798f6;}function pickString(_0x2b7f57){const _0x504450=a250_0x3798;return typeof _0x2b7f57===_0x504450(0x1cc)&&_0x2b7f57[_0x504450(0x1c3)]()[_0x504450(0x1c4)]>0x0?_0x2b7f57['trim']():null;}function normalizeCliVersionPolicy(_0x50ce69){const _0x5423e6=a250_0x3798;if(!_0x50ce69||typeof _0x50ce69!==_0x5423e6(0x1cd))return null;const _0x58b5b9=_0x50ce69,_0xfcde9=_0x58b5b9['cli']&&typeof _0x58b5b9['cli']==='object'?_0x58b5b9['cli']:_0x58b5b9,_0x26ee48=pickString(_0xfcde9['stableVersion'])||pickString(_0xfcde9[_0x5423e6(0x1c7)])||pickString(_0xfcde9[_0x5423e6(0x1ca)]),_0x5452be=pickString(_0xfcde9[_0x5423e6(0x1cb)])||pickString(_0xfcde9[_0x5423e6(0x1ce)]);if(!_0x26ee48&&!_0x5452be)return null;return{'stableVersion':_0x26ee48,'minimumVersion':_0x5452be,'upgradeMessage':pickString(_0xfcde9[_0x5423e6(0x1c9)])||undefined,'minimumVersionMessage':pickString(_0xfcde9[_0x5423e6(0x1bf)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3a2308=a250_0x3798,_0x2d46fa=new AbortController(),_0x5a394e=setTimeout(()=>_0x2d46fa['abort'](),FETCH_TIMEOUT_MS);try{const _0x33b4a0=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3a2308(0x1be)},'signal':_0x2d46fa['signal']});if(!_0x33b4a0['ok'])return null;const _0x514b82=await _0x33b4a0[_0x3a2308(0x1c1)]();return normalizeCliVersionPolicy(_0x514b82);}catch{return null;}finally{clearTimeout(_0x5a394e);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a250_0x1f48(){const _0x139281=['69349fzHEyj','latestVersion','248KMUWtC','upgradeMessage','recommendedVersion','minimumVersion','string','object','minVersion','18625189kUfigl','11033720uRdOhI','9SeAFUm','193182sJyUGM','27dDXrfb','6542304CxJLgy','application/json','minimumVersionMessage','419933mgEvVF','json','6416YlTSRi','trim','length','1565tEvOlr'];a250_0x1f48=function(){return _0x139281;};return a250_0x1f48();}export async function getCliVersionPolicy(){const _0x517e73=Date['now']();if(hasCachedPolicy){const _0x208e0b=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x517e73-cacheTime<_0x208e0b)return cachedPolicy;}const _0x67e863=await fetchCliVersionPolicy();return cachedPolicy=_0x67e863,cacheTime=_0x517e73,hasCachedPolicy=!![],_0x67e863;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a250_0x5d13(_0x14a3a7,_0x394138){_0x14a3a7=_0x14a3a7-0xe6;const _0x312dab=a250_0x312d();let _0x5d13a1=_0x312dab[_0x14a3a7];return _0x5d13a1;}const a250_0x457f0d=a250_0x5d13;(function(_0x5c2fad,_0x204cc6){const _0x57b77a=a250_0x5d13,_0x5157d0=_0x5c2fad();while(!![]){try{const _0xe073fe=parseInt(_0x57b77a(0xe7))/0x1*(-parseInt(_0x57b77a(0xed))/0x2)+-parseInt(_0x57b77a(0xe8))/0x3*(parseInt(_0x57b77a(0xf2))/0x4)+-parseInt(_0x57b77a(0xf4))/0x5*(-parseInt(_0x57b77a(0xeb))/0x6)+parseInt(_0x57b77a(0xf0))/0x7*(parseInt(_0x57b77a(0xef))/0x8)+-parseInt(_0x57b77a(0xec))/0x9*(-parseInt(_0x57b77a(0xf1))/0xa)+-parseInt(_0x57b77a(0xea))/0xb*(-parseInt(_0x57b77a(0xee))/0xc)+-parseInt(_0x57b77a(0xe9))/0xd*(parseInt(_0x57b77a(0xf3))/0xe);if(_0xe073fe===_0x204cc6)break;else _0x5157d0['push'](_0x5157d0['shift']());}catch(_0x40dc80){_0x5157d0['push'](_0x5157d0['shift']());}}}(a250_0x312d,0xe5b28));import{initEnv}from'../constant/env.js';function a250_0x312d(){const _0x338fef=['219gunmla','92346ypyiMz','2013713qbemoB','1898721GMmSxi','30VHRKUp','641340uEPlwa','470gxrAKc','60qChsug','11147504qTGUyj','7IYAEIY','20ezELcg','196cxirSm','70JcUeqZ','876115hXJHTZ','project','env'];a250_0x312d=function(){return _0x338fef;};return a250_0x312d();}import{readRawConfig,getConfigAppCode as a250_0x4e01dc,getMultiAppConfigs as a250_0x238363,getTemplateBaseUrl as a250_0x5becd6}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5bb0bb){const _0x25b1c4=a250_0x5d13,_0x4cdb3c=readRawConfig(_0x5bb0bb);return _0x4cdb3c[_0x25b1c4(0xe6)]&&typeof _0x4cdb3c[_0x25b1c4(0xe6)]==='string'&&initEnv(_0x4cdb3c[_0x25b1c4(0xe6)]),_0x4cdb3c;}export function getConfigAppCode(){return a250_0x4e01dc();}export function getMultiAppConfigs(_0x318b0a=a250_0x457f0d(0xf5)){return a250_0x238363(_0x318b0a);}export function getTemplateBaseUrl(){return a250_0x5becd6();}
1
+ (function(_0x2d100f,_0x2056a7){const _0x426fbc=a251_0xd88e,_0x21b3d4=_0x2d100f();while(!![]){try{const _0x504bb0=-parseInt(_0x426fbc(0x75))/0x1*(parseInt(_0x426fbc(0x76))/0x2)+parseInt(_0x426fbc(0x7b))/0x3*(-parseInt(_0x426fbc(0x77))/0x4)+parseInt(_0x426fbc(0x74))/0x5+-parseInt(_0x426fbc(0x7d))/0x6+-parseInt(_0x426fbc(0x7c))/0x7+parseInt(_0x426fbc(0x7a))/0x8+parseInt(_0x426fbc(0x73))/0x9*(parseInt(_0x426fbc(0x78))/0xa);if(_0x504bb0===_0x2056a7)break;else _0x21b3d4['push'](_0x21b3d4['shift']());}catch(_0xa5e88){_0x21b3d4['push'](_0x21b3d4['shift']());}}}(a251_0x3b0c,0xe0de7));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a251_0x57190d,getMultiAppConfigs as a251_0xc71078,getTemplateBaseUrl as a251_0x57f18f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1fa1db){const _0x380835=a251_0xd88e,_0x8c065d=readRawConfig(_0x1fa1db);return _0x8c065d[_0x380835(0x79)]&&typeof _0x8c065d[_0x380835(0x79)]==='string'&&initEnv(_0x8c065d[_0x380835(0x79)]),_0x8c065d;}function a251_0xd88e(_0x4a1369,_0x5b8a0a){_0x4a1369=_0x4a1369-0x73;const _0x3b0c50=a251_0x3b0c();let _0xd88e71=_0x3b0c50[_0x4a1369];return _0xd88e71;}export function getConfigAppCode(){return a251_0x57190d();}function a251_0x3b0c(){const _0x59f444=['9831647gLEuyq','6471528TtUQYM','2682495dUxgge','4860490ZKNPlP','445393dUorVO','4OluMDC','920152OSRcFu','100GhIZQu','env','4578784nWbHzf','3mZPAtf'];a251_0x3b0c=function(){return _0x59f444;};return a251_0x3b0c();}export function getMultiAppConfigs(_0x26cda6='project'){return a251_0xc71078(_0x26cda6);}export function getTemplateBaseUrl(){return a251_0x57f18f();}
@@ -1 +1 @@
1
- (function(_0x4d2fff,_0x116304){const _0x321acb=a251_0x9fb4,_0x671680=_0x4d2fff();while(!![]){try{const _0x543864=-parseInt(_0x321acb(0x1c5))/0x1+parseInt(_0x321acb(0x1c6))/0x2+parseInt(_0x321acb(0x1c7))/0x3*(-parseInt(_0x321acb(0x1b9))/0x4)+-parseInt(_0x321acb(0x1bb))/0x5*(-parseInt(_0x321acb(0x1ba))/0x6)+parseInt(_0x321acb(0x1c3))/0x7+parseInt(_0x321acb(0x1bf))/0x8+parseInt(_0x321acb(0x1be))/0x9*(-parseInt(_0x321acb(0x1c4))/0xa);if(_0x543864===_0x116304)break;else _0x671680['push'](_0x671680['shift']());}catch(_0x5735ee){_0x671680['push'](_0x671680['shift']());}}}(a251_0xc281,0x4f34d));function a251_0x9fb4(_0x9c17f1,_0x2478b9){_0x9c17f1=_0x9c17f1-0x1b6;const _0xc281b=a251_0xc281();let _0x9fb476=_0xc281b[_0x9c17f1];return _0x9fb476;}function a251_0xc281(){const _0x570046=['120jqKpRK','102010zVHAXp','name','复制目录时出错:','1998144UdFKHP','1959728ozOInJ','copyFileSync','readdirSync','isDirectory','3242295GGpyxz','20rVAQDi','463893aZlchk','340974qbFTNb','54324CrIsov','join','mkdirSync','error','12clsMft'];a251_0xc281=function(){return _0x570046;};return a251_0xc281();}import a251_0x19aed6 from'node:path';import a251_0x1f525b from'node:fs';export async function copyDirectory(_0x5eba28,_0x3f4d65){const _0xf5f06c=a251_0x9fb4;try{const _0x2559e0=a251_0x1f525b[_0xf5f06c(0x1c1)](_0x5eba28,{'withFileTypes':!![]});a251_0x1f525b[_0xf5f06c(0x1b7)](_0x3f4d65,{'recursive':!![]});for(const _0x3ca009 of _0x2559e0){const _0x311049=a251_0x19aed6['join'](_0x5eba28,_0x3ca009[_0xf5f06c(0x1bc)]),_0x3965b0=a251_0x19aed6[_0xf5f06c(0x1b6)](_0x3f4d65,_0x3ca009['name']);_0x3ca009[_0xf5f06c(0x1c2)]()?await copyDirectory(_0x311049,_0x3965b0):a251_0x1f525b[_0xf5f06c(0x1c0)](_0x311049,_0x3965b0);}}catch(_0x414ad3){console[_0xf5f06c(0x1b8)](_0xf5f06c(0x1bd),_0x414ad3);}}
1
+ (function(_0xa13c4f,_0x2b30c2){const _0x399454=a252_0x28b1,_0x4956b2=_0xa13c4f();while(!![]){try{const _0x445e40=parseInt(_0x399454(0x183))/0x1*(parseInt(_0x399454(0x186))/0x2)+-parseInt(_0x399454(0x181))/0x3*(-parseInt(_0x399454(0x179))/0x4)+-parseInt(_0x399454(0x182))/0x5*(-parseInt(_0x399454(0x185))/0x6)+-parseInt(_0x399454(0x184))/0x7+parseInt(_0x399454(0x178))/0x8+parseInt(_0x399454(0x17d))/0x9+parseInt(_0x399454(0x17b))/0xa*(-parseInt(_0x399454(0x17c))/0xb);if(_0x445e40===_0x2b30c2)break;else _0x4956b2['push'](_0x4956b2['shift']());}catch(_0x5ec779){_0x4956b2['push'](_0x4956b2['shift']());}}}(a252_0x5228,0x26e89));function a252_0x5228(){const _0x1a5363=['4WLrLNN','join','10QzqYnA','4341370VTwMEY','1543005JxoFWx','mkdirSync','readdirSync','name','231123ludGpB','306245zPnVtp','1074jzQPNU','1163400ofSXjg','18MaRctR','210nNdqTe','复制目录时出错:','1401888BHdxcI'];a252_0x5228=function(){return _0x1a5363;};return a252_0x5228();}import a252_0x657ed1 from'node:path';function a252_0x28b1(_0x639a7b,_0x5db73a){_0x639a7b=_0x639a7b-0x177;const _0x522840=a252_0x5228();let _0x28b1eb=_0x522840[_0x639a7b];return _0x28b1eb;}import a252_0x315c76 from'node:fs';export async function copyDirectory(_0x126e8a,_0x54a4db){const _0x3c4fd4=a252_0x28b1;try{const _0x5ed0e9=a252_0x315c76[_0x3c4fd4(0x17f)](_0x126e8a,{'withFileTypes':!![]});a252_0x315c76[_0x3c4fd4(0x17e)](_0x54a4db,{'recursive':!![]});for(const _0x369cd7 of _0x5ed0e9){const _0x5b9ace=a252_0x657ed1[_0x3c4fd4(0x17a)](_0x126e8a,_0x369cd7[_0x3c4fd4(0x180)]),_0xd37ee3=a252_0x657ed1[_0x3c4fd4(0x17a)](_0x54a4db,_0x369cd7['name']);_0x369cd7['isDirectory']()?await copyDirectory(_0x5b9ace,_0xd37ee3):a252_0x315c76['copyFileSync'](_0x5b9ace,_0xd37ee3);}}catch(_0x546d33){console['error'](_0x3c4fd4(0x177),_0x546d33);}}
@@ -1 +1 @@
1
- function a252_0x2d8e(){const _0x3784c6=['107262uILuTp','425OoDZgL','4739rROmTB','211563sWSprg','2rBAUMj','56528tcSqag','12828YNHser','243IauOdX','object','string','2256924qYyzGu','isFinite','trim','269103RMfPSA','402cjQmVT','20DILWKB'];a252_0x2d8e=function(){return _0x3784c6;};return a252_0x2d8e();}(function(_0x16fe43,_0x1452aa){const _0x113535=a252_0x35ea,_0x2e5b69=_0x16fe43();while(!![]){try{const _0x3d081f=parseInt(_0x113535(0x1b0))/0x1*(parseInt(_0x113535(0x1b4))/0x2)+parseInt(_0x113535(0x1ad))/0x3+-parseInt(_0x113535(0x1b6))/0x4*(-parseInt(_0x113535(0x1b1))/0x5)+parseInt(_0x113535(0x1ae))/0x6*(parseInt(_0x113535(0x1b2))/0x7)+parseInt(_0x113535(0x1b5))/0x8*(-parseInt(_0x113535(0x1a7))/0x9)+parseInt(_0x113535(0x1af))/0xa*(parseInt(_0x113535(0x1b3))/0xb)+-parseInt(_0x113535(0x1aa))/0xc;if(_0x3d081f===_0x1452aa)break;else _0x2e5b69['push'](_0x2e5b69['shift']());}catch(_0x2241be){_0x2e5b69['push'](_0x2e5b69['shift']());}}}(a252_0x2d8e,0x2a9bc));function a252_0x35ea(_0x2976a9,_0x264bae){_0x2976a9=_0x2976a9-0x1a7;const _0x2d8e9e=a252_0x2d8e();let _0x35ea9d=_0x2d8e9e[_0x2976a9];return _0x35ea9d;}function toFiniteNumber(_0x42e430){const _0x5c63b4=a252_0x35ea;if(typeof _0x42e430==='number'&&Number[_0x5c63b4(0x1ab)](_0x42e430))return _0x42e430;if(typeof _0x42e430===_0x5c63b4(0x1a9)){const _0x1e3033=_0x42e430[_0x5c63b4(0x1ac)]();if(!_0x1e3033)return undefined;const _0x75a6a9=Number(_0x1e3033);if(Number['isFinite'](_0x75a6a9))return _0x75a6a9;}return undefined;}export function normalizeEntityWithIdResponse(_0x1042e0){const _0x218c72=a252_0x35ea,_0x123f67=toFiniteNumber(_0x1042e0);if(_0x123f67!==undefined)return{'id':_0x123f67,'entity':{'id':_0x123f67}};if(!_0x1042e0||typeof _0x1042e0!==_0x218c72(0x1a8))return{'id':undefined,'entity':{}};const _0x109ef8={..._0x1042e0},_0x4fdb4e=toFiniteNumber(_0x109ef8['id']);return _0x4fdb4e!==undefined&&(_0x109ef8['id']=_0x4fdb4e),{'id':_0x4fdb4e,'entity':_0x109ef8};}
1
+ function a253_0x2720(_0x11000d,_0x1c2967){_0x11000d=_0x11000d-0xc2;const _0x3b3bc6=a253_0x3b3b();let _0x272042=_0x3b3bc6[_0x11000d];return _0x272042;}(function(_0x4ae12c,_0x222fe7){const _0x3bdf39=a253_0x2720,_0x392c5a=_0x4ae12c();while(!![]){try{const _0x586d3c=-parseInt(_0x3bdf39(0xcb))/0x1+parseInt(_0x3bdf39(0xcd))/0x2*(parseInt(_0x3bdf39(0xc4))/0x3)+-parseInt(_0x3bdf39(0xca))/0x4*(parseInt(_0x3bdf39(0xc9))/0x5)+parseInt(_0x3bdf39(0xc6))/0x6*(-parseInt(_0x3bdf39(0xc2))/0x7)+parseInt(_0x3bdf39(0xc8))/0x8+parseInt(_0x3bdf39(0xc3))/0x9+parseInt(_0x3bdf39(0xc5))/0xa;if(_0x586d3c===_0x222fe7)break;else _0x392c5a['push'](_0x392c5a['shift']());}catch(_0x298a16){_0x392c5a['push'](_0x392c5a['shift']());}}}(a253_0x3b3b,0xb2bf6));function toFiniteNumber(_0x15af31){const _0x137436=a253_0x2720;if(typeof _0x15af31==='number'&&Number[_0x137436(0xcc)](_0x15af31))return _0x15af31;if(typeof _0x15af31==='string'){const _0x26986c=_0x15af31['trim']();if(!_0x26986c)return undefined;const _0x7cf468=Number(_0x26986c);if(Number[_0x137436(0xcc)](_0x7cf468))return _0x7cf468;}return undefined;}export function normalizeEntityWithIdResponse(_0x896951){const _0x3e5902=a253_0x2720,_0xc132af=toFiniteNumber(_0x896951);if(_0xc132af!==undefined)return{'id':_0xc132af,'entity':{'id':_0xc132af}};if(!_0x896951||typeof _0x896951!==_0x3e5902(0xc7))return{'id':undefined,'entity':{}};const _0x322c29={..._0x896951},_0x46d4e3=toFiniteNumber(_0x322c29['id']);return _0x46d4e3!==undefined&&(_0x322c29['id']=_0x46d4e3),{'id':_0x46d4e3,'entity':_0x322c29};}function a253_0x3b3b(){const _0x49d588=['16229720cZLVDk','4292658HUWzuX','object','1275704ByRTeB','2763275AqCPYj','8rHssab','827580HiaZfw','isFinite','1728990oZsIXt','14eJKeDT','13040964ojcFBJ','3wHFUgF'];a253_0x3b3b=function(){return _0x49d588;};return a253_0x3b3b();}
@@ -1 +1 @@
1
- (function(_0x321d2f,_0x24d0e1){const _0x777893=a253_0x4fd0,_0x34a891=_0x321d2f();while(!![]){try{const _0x182299=-parseInt(_0x777893(0x76))/0x1*(-parseInt(_0x777893(0x77))/0x2)+-parseInt(_0x777893(0x75))/0x3+-parseInt(_0x777893(0x7b))/0x4*(parseInt(_0x777893(0x73))/0x5)+parseInt(_0x777893(0x74))/0x6+-parseInt(_0x777893(0x79))/0x7*(-parseInt(_0x777893(0x72))/0x8)+parseInt(_0x777893(0x7c))/0x9+-parseInt(_0x777893(0x78))/0xa;if(_0x182299===_0x24d0e1)break;else _0x34a891['push'](_0x34a891['shift']());}catch(_0x3fe2d4){_0x34a891['push'](_0x34a891['shift']());}}}(a253_0x4d91,0x6e592));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a253_0x4d91(){const _0x2bf553=['7wezdcG','isDirectory','652XxAWJQ','4620735YCFwxA','6365936WJKutf','23315HAIMkP','2422674frlaoM','232833RPxQMu','4Reguhc','389312ObydkX','12018940WAzWbt'];a253_0x4d91=function(){return _0x2bf553;};return a253_0x4d91();}import{join}from'node:path';export async function copyDir(_0x307381,_0x449051){const _0x3f8e89=a253_0x4fd0,_0xe01710=statSync(_0x307381);if(_0xe01710[_0x3f8e89(0x7a)]()){!existsSync(_0x449051)&&mkdirSync(_0x449051,{'recursive':!![]});const _0x4714b4=readdirSync(_0x307381);for(const _0x3d278d of _0x4714b4){await copyDir(join(_0x307381,_0x3d278d),join(_0x449051,_0x3d278d));}}else copyFileSync(_0x307381,_0x449051);}export function ensureDir(_0x38257f){!existsSync(_0x38257f)&&mkdirSync(_0x38257f,{'recursive':!![]});}function a253_0x4fd0(_0x41e341,_0xae9ae7){_0x41e341=_0x41e341-0x72;const _0x4d9197=a253_0x4d91();let _0x4fd002=_0x4d9197[_0x41e341];return _0x4fd002;}export function pathExists(_0x473a19){return existsSync(_0x473a19);}
1
+ (function(_0x37ff9a,_0x3cf99f){const _0x4365e1=a254_0x2c0e,_0xfc11=_0x37ff9a();while(!![]){try{const _0x2bd5ee=parseInt(_0x4365e1(0x70))/0x1+-parseInt(_0x4365e1(0x74))/0x2+-parseInt(_0x4365e1(0x73))/0x3*(parseInt(_0x4365e1(0x75))/0x4)+-parseInt(_0x4365e1(0x72))/0x5*(-parseInt(_0x4365e1(0x76))/0x6)+parseInt(_0x4365e1(0x71))/0x7+parseInt(_0x4365e1(0x77))/0x8*(parseInt(_0x4365e1(0x6f))/0x9)+parseInt(_0x4365e1(0x6d))/0xa;if(_0x2bd5ee===_0x3cf99f)break;else _0xfc11['push'](_0xfc11['shift']());}catch(_0x3cf42e){_0xfc11['push'](_0xfc11['shift']());}}}(a254_0x5e68,0x8d101));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a254_0x5e68(){const _0x2880be=['288296hCEpuj','2774030XVMLFV','isDirectory','261kDaATE','115924iglHGP','1655619qQTyTo','5WCnzxr','9noGyOT','1935860iTFzcG','1540724gEOlfb','6158094wbZhAZ'];a254_0x5e68=function(){return _0x2880be;};return a254_0x5e68();}export async function copyDir(_0x4a6be9,_0x30a9b8){const _0x3ab300=a254_0x2c0e,_0x45dddd=statSync(_0x4a6be9);if(_0x45dddd[_0x3ab300(0x6e)]()){!existsSync(_0x30a9b8)&&mkdirSync(_0x30a9b8,{'recursive':!![]});const _0x1ca780=readdirSync(_0x4a6be9);for(const _0x2c36b3 of _0x1ca780){await copyDir(join(_0x4a6be9,_0x2c36b3),join(_0x30a9b8,_0x2c36b3));}}else copyFileSync(_0x4a6be9,_0x30a9b8);}export function ensureDir(_0x304b64){!existsSync(_0x304b64)&&mkdirSync(_0x304b64,{'recursive':!![]});}function a254_0x2c0e(_0x4992c0,_0x34fb70){_0x4992c0=_0x4992c0-0x6d;const _0x5e6809=a254_0x5e68();let _0x2c0ea2=_0x5e6809[_0x4992c0];return _0x2c0ea2;}export function pathExists(_0xaf0a30){return existsSync(_0xaf0a30);}
@@ -1 +1 @@
1
- const a254_0x23ee7f=a254_0x46cf;(function(_0x186ec4,_0x4c1d2a){const _0x2fd297=a254_0x46cf,_0x2cd8cc=_0x186ec4();while(!![]){try{const _0x409729=parseInt(_0x2fd297(0x157))/0x1+parseInt(_0x2fd297(0x15b))/0x2*(-parseInt(_0x2fd297(0x145))/0x3)+-parseInt(_0x2fd297(0x159))/0x4+-parseInt(_0x2fd297(0x146))/0x5+parseInt(_0x2fd297(0x144))/0x6+parseInt(_0x2fd297(0x15c))/0x7*(parseInt(_0x2fd297(0x13f))/0x8)+-parseInt(_0x2fd297(0x141))/0x9*(parseInt(_0x2fd297(0x149))/0xa);if(_0x409729===_0x4c1d2a)break;else _0x2cd8cc['push'](_0x2cd8cc['shift']());}catch(_0x32807c){_0x2cd8cc['push'](_0x2cd8cc['shift']());}}}(a254_0x5562,0xd7c33));function a254_0x46cf(_0x5a7f88,_0x5e54a7){_0x5a7f88=_0x5a7f88-0x13d;const _0x556245=a254_0x5562();let _0x46cf04=_0x556245[_0x5a7f88];return _0x46cf04;}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 _0x3c649b=getTemplateBaseUrl();return _0x3c649b+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a254_0x23ee7f(0x13e),a254_0x23ee7f(0x147));export async function fetchGuidesFromCDN(){const _0x407c96=a254_0x23ee7f,_0x1ac9e5=getGuidesCdnUrl(),_0x596074=await fetch(_0x1ac9e5,{'headers':{'Accept':_0x407c96(0x14b)}});if(!_0x596074['ok'])throw new Error(_0x407c96(0x154)+_0x596074[_0x407c96(0x152)]+'\x20'+_0x596074['statusText']);const _0x375e76=await _0x596074[_0x407c96(0x14e)]();if(!_0x375e76[_0x407c96(0x156)]||typeof _0x375e76[_0x407c96(0x156)]!=='object')throw new Error(_0x407c96(0x15a));return _0x375e76;}export function writeGuidesToProject(_0x25ee84,_0x1ac99b,_0x3dbaae=a254_0x23ee7f(0x155),_0x3873f6){const _0x1a9200=a254_0x23ee7f,_0xefc354=join(_0x1ac99b,_0x3dbaae);mkdirSync(_0xefc354,{'recursive':!![]});for(const [_0x1becae,_0x358071]of Object[_0x1a9200(0x158)](_0x25ee84[_0x1a9200(0x156)])){let _0x10560c=_0x358071[_0x1a9200(0x14a)];_0x358071[_0x1a9200(0x14f)]&&(_0x10560c=appendUpdateTime(_0x10560c,_0x358071['lastUpdated'])),writeFileSync(join(_0xefc354,_0x1becae+_0x1a9200(0x14c)),_0x10560c,_0x1a9200(0x15f));}}export function appendUpdateTime(_0x275dea,_0x16e8ae){const _0x34cb35=a254_0x23ee7f;return _0x275dea=_0x275dea[_0x34cb35(0x148)](/\n*>更新时间:.*$/m,''),_0x275dea[_0x34cb35(0x142)]()+(_0x34cb35(0x143)+_0x16e8ae);}export function getSkillTemplate(_0x85378){return _0x85378['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x198636,_0x1a893a,_0x58d1c9){const _0x55ec95=a254_0x23ee7f,_0x584f3b=[];for(const [,_0x45a32b]of Object['entries'](_0x1a893a['guides'])){_0x45a32b[_0x55ec95(0x13d)]&&_0x584f3b['push'](_0x45a32b['extendContent'][_0x55ec95(0x142)]());}if(_0x584f3b['length']===0x0)return _0x198636;return _0x198636['trimEnd']()+'\x0a\x0a'+_0x584f3b[_0x55ec95(0x15d)]('\x0a\x0a')+'\x0a';}function a254_0x5562(){const _0x35ba83=['15560aLwxDp','content','application/json','.md','map','json','lastUpdated','skillTemplate','keys','status','path','CDN\x20请求失败:\x20','.lovrabet/skill/guides','guides','1274274LRjsEJ','entries','2462416xayFzj','CDN\x20返回数据格式错误','176BBidxp','175auTtUP','join','CDN\x20数据中缺少\x20skillTemplate','utf-8','extendContent','.lovrabet','27992Ytyksk','length','1395bARkYm','trimEnd','\x0a\x0a>更新时间:','8543550WjFOHe','29253CpPbWz','935195WsrZFG','cache','replace'];a254_0x5562=function(){return _0x35ba83;};return a254_0x5562();}export function writeSkillFile(_0x4784ca,_0x41d3dc,_0x454582){const _0x5aa81d=a254_0x23ee7f,_0xaa4d83=getSkillTemplate(_0x4784ca);if(!_0xaa4d83)throw new Error(_0x5aa81d(0x15e));const _0x577e50=dirname(_0x41d3dc);mkdirSync(_0x577e50,{'recursive':!![]});let _0x2787f8=_0xaa4d83['replace'](/\{\{IDE_NAME\}\}/g,_0x454582);_0x2787f8=appendExtendContents(_0x2787f8,_0x4784ca),_0x4784ca[_0x5aa81d(0x150)][_0x5aa81d(0x14f)]&&(_0x2787f8=appendUpdateTime(_0x2787f8,_0x4784ca[_0x5aa81d(0x150)][_0x5aa81d(0x14f)])),writeFileSync(_0x41d3dc,_0x2787f8,_0x5aa81d(0x15f));}export async function installGuides(_0x187509){const _0x4c378d=a254_0x23ee7f,_0xc73f7b=await fetchGuidesFromCDN();return writeGuidesToProject(_0xc73f7b,_0x187509),Object[_0x4c378d(0x151)](_0xc73f7b[_0x4c378d(0x156)])[_0x4c378d(0x140)];}export function getGuidesSummary(_0x8d27b5){const _0x385d69=a254_0x23ee7f;return Object[_0x385d69(0x158)](_0x8d27b5[_0x385d69(0x156)])[_0x385d69(0x14d)](([_0x4d09a0,_0x384ad9])=>({'key':_0x4d09a0,'title':_0x384ad9['title'],'path':_0x384ad9[_0x385d69(0x153)]}));}
1
+ const a255_0x31c2a5=a255_0x421c;(function(_0x4174d3,_0x203200){const _0x505e6c=a255_0x421c,_0x3a651a=_0x4174d3();while(!![]){try{const _0x73b1f6=parseInt(_0x505e6c(0x10a))/0x1*(-parseInt(_0x505e6c(0xf0))/0x2)+-parseInt(_0x505e6c(0xff))/0x3+parseInt(_0x505e6c(0xf9))/0x4*(parseInt(_0x505e6c(0xf3))/0x5)+parseInt(_0x505e6c(0xfa))/0x6+parseInt(_0x505e6c(0x106))/0x7*(parseInt(_0x505e6c(0xfd))/0x8)+parseInt(_0x505e6c(0x103))/0x9+-parseInt(_0x505e6c(0xf5))/0xa;if(_0x73b1f6===_0x203200)break;else _0x3a651a['push'](_0x3a651a['shift']());}catch(_0x31c6f8){_0x3a651a['push'](_0x3a651a['shift']());}}}(a255_0x2779,0xa6346));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 _0x4ccbb1=getTemplateBaseUrl();return _0x4ccbb1+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a255_0x31c2a5(0x102));export async function fetchGuidesFromCDN(){const _0x43c94e=a255_0x31c2a5,_0x54de71=getGuidesCdnUrl(),_0x10090c=await fetch(_0x54de71,{'headers':{'Accept':'application/json'}});if(!_0x10090c['ok'])throw new Error(_0x43c94e(0xfe)+_0x10090c[_0x43c94e(0xf4)]+'\x20'+_0x10090c[_0x43c94e(0x100)]);const _0x3e5eb4=await _0x10090c['json']();if(!_0x3e5eb4['guides']||typeof _0x3e5eb4[_0x43c94e(0x108)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x3e5eb4;}export function writeGuidesToProject(_0x2268af,_0xe734b,_0x495c36='.lovrabet/skill/guides',_0x61f484){const _0x196368=a255_0x31c2a5,_0x3b3a74=join(_0xe734b,_0x495c36);mkdirSync(_0x3b3a74,{'recursive':!![]});for(const [_0x5d3f63,_0x2a4ea0]of Object[_0x196368(0xfb)](_0x2268af['guides'])){let _0x433f89=_0x2a4ea0[_0x196368(0x107)];_0x2a4ea0[_0x196368(0xf2)]&&(_0x433f89=appendUpdateTime(_0x433f89,_0x2a4ea0[_0x196368(0xf2)])),writeFileSync(join(_0x3b3a74,_0x5d3f63+'.md'),_0x433f89,_0x196368(0xf8));}}export function appendUpdateTime(_0x4d92ef,_0xad3051){const _0x289657=a255_0x31c2a5;return _0x4d92ef=_0x4d92ef[_0x289657(0x10b)](/\n*>更新时间:.*$/m,''),_0x4d92ef['trimEnd']()+(_0x289657(0x101)+_0xad3051);}function a255_0x421c(_0x1bcc00,_0x414141){_0x1bcc00=_0x1bcc00-0xef;const _0x2779ad=a255_0x2779();let _0x421ca5=_0x2779ad[_0x1bcc00];return _0x421ca5;}export function getSkillTemplate(_0x5a1c60){return _0x5a1c60['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x13450d,_0xfd4ca0,_0x266dbf){const _0x257890=a255_0x31c2a5,_0x18a3a8=[];for(const [,_0x54c8df]of Object[_0x257890(0xfb)](_0xfd4ca0[_0x257890(0x108)])){_0x54c8df[_0x257890(0xfc)]&&_0x18a3a8['push'](_0x54c8df[_0x257890(0xfc)][_0x257890(0xf1)]());}if(_0x18a3a8[_0x257890(0x105)]===0x0)return _0x13450d;return _0x13450d[_0x257890(0xf1)]()+'\x0a\x0a'+_0x18a3a8[_0x257890(0x109)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x49d980,_0x169f78,_0x2ba564){const _0x5869e0=a255_0x31c2a5,_0x5b22e7=getSkillTemplate(_0x49d980);if(!_0x5b22e7)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x91547d=dirname(_0x169f78);mkdirSync(_0x91547d,{'recursive':!![]});let _0x5a001d=_0x5b22e7[_0x5869e0(0x10b)](/\{\{IDE_NAME\}\}/g,_0x2ba564);_0x5a001d=appendExtendContents(_0x5a001d,_0x49d980),_0x49d980[_0x5869e0(0x104)][_0x5869e0(0xf2)]&&(_0x5a001d=appendUpdateTime(_0x5a001d,_0x49d980[_0x5869e0(0x104)][_0x5869e0(0xf2)])),writeFileSync(_0x169f78,_0x5a001d,_0x5869e0(0xf8));}export async function installGuides(_0x10e3cb){const _0x37a3a5=a255_0x31c2a5,_0x13b493=await fetchGuidesFromCDN();return writeGuidesToProject(_0x13b493,_0x10e3cb),Object['keys'](_0x13b493['guides'])[_0x37a3a5(0x105)];}function a255_0x2779(){const _0x38d991=['replace','title','2eVVYuM','trimEnd','lastUpdated','5gXBZLm','status','11379140oTgKyB','path','map','utf-8','4633532COMDtk','601236OVlYYn','entries','extendContent','8BzCWfa','CDN\x20请求失败:\x20','1361838UpKmPJ','statusText','\x0a\x0a>更新时间:','cache','10754523rmWrVI','skillTemplate','length','3120971AgVqDL','content','guides','join','626755TbqTbL'];a255_0x2779=function(){return _0x38d991;};return a255_0x2779();}export function getGuidesSummary(_0x401f4d){const _0x206469=a255_0x31c2a5;return Object['entries'](_0x401f4d[_0x206469(0x108)])[_0x206469(0xf7)](([_0x5de762,_0x424a19])=>({'key':_0x5de762,'title':_0x424a19[_0x206469(0xef)],'path':_0x424a19[_0x206469(0xf6)]}));}