@lovrabet/rabetbase-cli 2.3.10-beta.2 → 2.3.11-beta.1

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 (260) 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/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -0
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- function a227_0x3e05(_0x287f76,_0x48dbfe){_0x287f76=_0x287f76-0x1b7;const _0x4d0eb5=a227_0x4d0e();let _0x3e05b4=_0x4d0eb5[_0x287f76];return _0x3e05b4;}(function(_0x38fe27,_0x5bfbb1){const _0x52ee87=a227_0x3e05,_0x25094e=_0x38fe27();while(!![]){try{const _0x1310b0=-parseInt(_0x52ee87(0x1bc))/0x1*(-parseInt(_0x52ee87(0x1c2))/0x2)+parseInt(_0x52ee87(0x1c3))/0x3*(parseInt(_0x52ee87(0x1c0))/0x4)+-parseInt(_0x52ee87(0x1c1))/0x5+-parseInt(_0x52ee87(0x1b8))/0x6*(-parseInt(_0x52ee87(0x1bb))/0x7)+parseInt(_0x52ee87(0x1bf))/0x8+-parseInt(_0x52ee87(0x1b9))/0x9*(parseInt(_0x52ee87(0x1bd))/0xa)+parseInt(_0x52ee87(0x1be))/0xb*(-parseInt(_0x52ee87(0x1b7))/0xc);if(_0x1310b0===_0x5bfbb1)break;else _0x25094e['push'](_0x25094e['shift']());}catch(_0x5239ab){_0x25094e['push'](_0x25094e['shift']());}}}(a227_0x4d0e,0x2d30f));import{buildSchemaPayload as a227_0x2bfd11}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x43e63f=a227_0x3e05,{serviceRegistry:_0x5e446f,findDefinition:_0xda2141}=await import(_0x43e63f(0x1ba));return a227_0x2bfd11({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5e446f,'buildAllFlags':buildAllFlags,'findDefinition':_0xda2141});}function a227_0x4d0e(){const _0x18eff5=['2EBByRW','75wziGiD','36ciMkug','2334wjUqGF','180ZFiRek','../commands/registry.js','3465InFIYv','305286Gcofvk','11650reifJb','1729849hAMrna','1573376FjjjzY','46496GuqCkT','1524665hnXgtX'];a227_0x4d0e=function(){return _0x18eff5;};return a227_0x4d0e();}
1
+ (function(_0x5a2b37,_0x54c50c){const _0x4b8e80=a228_0x5ca2,_0x16b2ac=_0x5a2b37();while(!![]){try{const _0x4b0e34=parseInt(_0x4b8e80(0xc7))/0x1+-parseInt(_0x4b8e80(0xcc))/0x2+parseInt(_0x4b8e80(0xca))/0x3+-parseInt(_0x4b8e80(0xc9))/0x4*(-parseInt(_0x4b8e80(0xcb))/0x5)+parseInt(_0x4b8e80(0xce))/0x6*(parseInt(_0x4b8e80(0xc8))/0x7)+-parseInt(_0x4b8e80(0xd0))/0x8+-parseInt(_0x4b8e80(0xcd))/0x9*(parseInt(_0x4b8e80(0xd1))/0xa);if(_0x4b0e34===_0x54c50c)break;else _0x16b2ac['push'](_0x16b2ac['shift']());}catch(_0x3287fb){_0x16b2ac['push'](_0x16b2ac['shift']());}}}(a228_0x1592,0x7b755));import{buildSchemaPayload as a228_0x5684f2}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a228_0x5ca2(_0x5f16b4,_0x340bd2){_0x5f16b4=_0x5f16b4-0xc7;const _0x15925a=a228_0x1592();let _0x5ca2d4=_0x15925a[_0x5f16b4];return _0x5ca2d4;}export async function buildSchemaPayload(){const _0xe4fa93=a228_0x5ca2,{serviceRegistry:_0x17de31,findDefinition:_0x59f0e6}=await import(_0xe4fa93(0xcf));return a228_0x5684f2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x17de31,'buildAllFlags':buildAllFlags,'findDefinition':_0x59f0e6});}function a228_0x1592(){const _0x22dd5c=['../commands/registry.js','4843272zssTTp','70kXwswc','568053ByLcjW','210AWjPBB','76YPpVEf','825063oVymHj','148605VoLxyP','991544TQrUVW','859779YxySlb','173562wTnwHr'];a228_0x1592=function(){return _0x22dd5c;};return a228_0x1592();}
@@ -1 +1 @@
1
- function a228_0xe9bf(_0x5c9581,_0x518282){_0x5c9581=_0x5c9581-0x88;var _0x57cf5f=a228_0x57cf();var _0xe9bf1f=_0x57cf5f[_0x5c9581];return _0xe9bf1f;}function a228_0x57cf(){var _0x2ebdde=['2766784BnWAKH','27oSACfp','2121021xrDGZX','287192wRFsyY','344208uWIMix','39DUeGJm','1764735ITuZrl','125140SzAkMR','60068ooXsMr','2PAvivp'];a228_0x57cf=function(){return _0x2ebdde;};return a228_0x57cf();}(function(_0x46af21,_0x57790a){var _0x46cbff=a228_0xe9bf,_0x291321=_0x46af21();while(!![]){try{var _0x7a64f9=-parseInt(_0x46cbff(0x8a))/0x1*(parseInt(_0x46cbff(0x8e))/0x2)+-parseInt(_0x46cbff(0x90))/0x3*(-parseInt(_0x46cbff(0x89))/0x4)+parseInt(_0x46cbff(0x91))/0x5+-parseInt(_0x46cbff(0x8f))/0x6+parseInt(_0x46cbff(0x8d))/0x7+-parseInt(_0x46cbff(0x8b))/0x8+-parseInt(_0x46cbff(0x8c))/0x9*(-parseInt(_0x46cbff(0x88))/0xa);if(_0x7a64f9===_0x57790a)break;else _0x291321['push'](_0x291321['shift']());}catch(_0x5ec246){_0x291321['push'](_0x291321['shift']());}}}(a228_0x57cf,0x306a1));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a229_0x1d3c(_0x10de2a,_0x33ebfc){_0x10de2a=_0x10de2a-0xd7;var _0x110a6f=a229_0x110a();var _0x1d3c48=_0x110a6f[_0x10de2a];return _0x1d3c48;}function a229_0x110a(){var _0x4c32b2=['1619625yPfETb','8718786gQTlyz','133EMHpHf','795qjbJng','4433VSlsQR','3778PuzKCK','11609664pRZauS','32200vbeRiv','1891825lQdELe','69234bwrsVC','12nNflhM'];a229_0x110a=function(){return _0x4c32b2;};return a229_0x110a();}(function(_0x45bf56,_0x34c0e6){var _0x242d6e=a229_0x1d3c,_0x43ac4c=_0x45bf56();while(!![]){try{var _0x1da1fb=-parseInt(_0x242d6e(0xd7))/0x1+parseInt(_0x242d6e(0xdc))/0x2*(parseInt(_0x242d6e(0xda))/0x3)+parseInt(_0x242d6e(0xe1))/0x4*(parseInt(_0x242d6e(0xdf))/0x5)+-parseInt(_0x242d6e(0xe0))/0x6*(parseInt(_0x242d6e(0xd9))/0x7)+parseInt(_0x242d6e(0xdd))/0x8+parseInt(_0x242d6e(0xd8))/0x9+-parseInt(_0x242d6e(0xde))/0xa*(parseInt(_0x242d6e(0xdb))/0xb);if(_0x1da1fb===_0x34c0e6)break;else _0x43ac4c['push'](_0x43ac4c['shift']());}catch(_0x4806e7){_0x43ac4c['push'](_0x43ac4c['shift']());}}}(a229_0x110a,0xe064c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a229_0x158744=a229_0x5899;(function(_0x595a69,_0x536244){const _0x216ce5=a229_0x5899,_0x464692=_0x595a69();while(!![]){try{const _0xd185ca=parseInt(_0x216ce5(0x18a))/0x1*(parseInt(_0x216ce5(0x187))/0x2)+-parseInt(_0x216ce5(0x18b))/0x3+parseInt(_0x216ce5(0x186))/0x4+-parseInt(_0x216ce5(0x191))/0x5+-parseInt(_0x216ce5(0x18d))/0x6*(-parseInt(_0x216ce5(0x18f))/0x7)+parseInt(_0x216ce5(0x190))/0x8+parseInt(_0x216ce5(0x188))/0x9;if(_0xd185ca===_0x536244)break;else _0x464692['push'](_0x464692['shift']());}catch(_0x4dd57a){_0x464692['push'](_0x464692['shift']());}}}(a229_0x527f,0x66b6b));function a229_0x527f(){const _0x4f2a42=['67559ab','498BcSUXs','2026-08-01T08:13:02.979Z','1603jldMuq','5099680iQrbGN','2577070kXqKqU','v2.3.10-beta.2','980628lQftnU','8566byyJcN','4386969tmKQtp','2.3.10-beta.2','73DDkHDB','2296785psoUiP'];a229_0x527f=function(){return _0x4f2a42;};return a229_0x527f();}function a229_0x5899(_0x237341,_0x116e41){_0x237341=_0x237341-0x186;const _0x527fd0=a229_0x527f();let _0x58992a=_0x527fd0[_0x237341];return _0x58992a;}export const VERSION=a229_0x158744(0x189);export const GIT_TAG=a229_0x158744(0x192);export const GIT_COMMIT=a229_0x158744(0x18c);export const BUILD_TIME=a229_0x158744(0x18e);
1
+ function a230_0x14ed(_0x1a550d,_0x2ecc60){_0x1a550d=_0x1a550d-0x1bd;const _0x3a7948=a230_0x3a79();let _0x14ed3a=_0x3a7948[_0x1a550d];return _0x14ed3a;}function a230_0x3a79(){const _0x3abc75=['2511870zsunNj','1074600tOGpIY','v2.3.11-beta.1','13891380ATFLUH','2.3.11-beta.1','808BXbvZS','40941nliETl','4984581ocBFxE','ebe71c9','269uBHJOY','5MLjsnJ','2026-08-03T03:55:10.098Z','4605018jTYJok','4346xULFBx'];a230_0x3a79=function(){return _0x3abc75;};return a230_0x3a79();}const a230_0xa99da2=a230_0x14ed;(function(_0x37b11a,_0x3966a4){const _0x18bc94=a230_0x14ed,_0x55ea93=_0x37b11a();while(!![]){try{const _0x21f248=-parseInt(_0x18bc94(0x1c5))/0x1*(-parseInt(_0x18bc94(0x1c9))/0x2)+-parseInt(_0x18bc94(0x1ca))/0x3+-parseInt(_0x18bc94(0x1bd))/0x4+parseInt(_0x18bc94(0x1c6))/0x5*(parseInt(_0x18bc94(0x1c8))/0x6)+-parseInt(_0x18bc94(0x1c3))/0x7+parseInt(_0x18bc94(0x1c1))/0x8*(-parseInt(_0x18bc94(0x1c2))/0x9)+parseInt(_0x18bc94(0x1bf))/0xa;if(_0x21f248===_0x3966a4)break;else _0x55ea93['push'](_0x55ea93['shift']());}catch(_0x3bfded){_0x55ea93['push'](_0x55ea93['shift']());}}}(a230_0x3a79,0x7135a));export const VERSION=a230_0xa99da2(0x1c0);export const GIT_TAG=a230_0xa99da2(0x1be);export const GIT_COMMIT=a230_0xa99da2(0x1c4);export const BUILD_TIME=a230_0xa99da2(0x1c7);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3f0f8d,_0x3943be){var _0x4a9547=a230_0x3810,_0x4f8ab4=_0x3f0f8d();while(!![]){try{var _0x1a9d43=-parseInt(_0x4a9547(0x11c))/0x1+parseInt(_0x4a9547(0x113))/0x2+parseInt(_0x4a9547(0x112))/0x3+parseInt(_0x4a9547(0x11b))/0x4*(parseInt(_0x4a9547(0x11d))/0x5)+-parseInt(_0x4a9547(0x116))/0x6*(parseInt(_0x4a9547(0x115))/0x7)+-parseInt(_0x4a9547(0x11e))/0x8+parseInt(_0x4a9547(0x120))/0x9*(parseInt(_0x4a9547(0x11a))/0xa);if(_0x1a9d43===_0x3943be)break;else _0x4f8ab4['push'](_0x4f8ab4['shift']());}catch(_0x5480cf){_0x4f8ab4['push'](_0x4f8ab4['shift']());}}}(a230_0x24d0,0xb68f6));import a230_0x4a8ca1 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a230_0x3810(_0x277341,_0x161e27){_0x277341=_0x277341-0x111;var _0x24d0db=a230_0x24d0();var _0x3810db=_0x24d0db[_0x277341];return _0x3810db;}function a230_0x24d0(){var _0x5a9ecf=['388744qMkZsv','\x20to\x20view\x20available\x20commands.','772646lYLcdo','66LTFgFN','green','bold','log','1630GgOvhB','323812harFFh','538736ijJDfU','80yVmsgk','9209248xXXaty','\x20--help','113733iZtByc','\x20\x20Use\x20','307095jUfqrP'];a230_0x24d0=function(){return _0x5a9ecf;};return a230_0x24d0();}export function showHelp(){var _0x1e482e=a230_0x3810;console[_0x1e482e(0x119)](),console['log'](a230_0x4a8ca1[_0x1e482e(0x117)][_0x1e482e(0x118)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x1e482e(0x119)](_0x1e482e(0x111)+a230_0x4a8ca1['green']['bold'](CLI_BIN_NAME+_0x1e482e(0x11f))+_0x1e482e(0x114)),console['log']();}
1
+ function a231_0x3e0e(_0x1a079c,_0x3cf09f){_0x1a079c=_0x1a079c-0xd2;var _0x5e9970=a231_0x5e99();var _0x3e0e35=_0x5e9970[_0x1a079c];return _0x3e0e35;}(function(_0x2b3fe0,_0x1730b1){var _0x43bf3b=a231_0x3e0e,_0x39e898=_0x2b3fe0();while(!![]){try{var _0x150b3c=-parseInt(_0x43bf3b(0xdd))/0x1*(parseInt(_0x43bf3b(0xd7))/0x2)+-parseInt(_0x43bf3b(0xd5))/0x3+-parseInt(_0x43bf3b(0xdb))/0x4+-parseInt(_0x43bf3b(0xd6))/0x5+-parseInt(_0x43bf3b(0xde))/0x6+-parseInt(_0x43bf3b(0xda))/0x7+-parseInt(_0x43bf3b(0xdc))/0x8*(-parseInt(_0x43bf3b(0xd3))/0x9);if(_0x150b3c===_0x1730b1)break;else _0x39e898['push'](_0x39e898['shift']());}catch(_0x8671db){_0x39e898['push'](_0x39e898['shift']());}}}(a231_0x5e99,0x9ded3));function a231_0x5e99(){var _0x51da73=['bold','\x20\x20Use\x20','1920667NDPaZe','4365788ZDOjyd','8iRCpnp','1LVfeFy','4817694HYjrgx','\x20to\x20view\x20available\x20commands.','green','\x20--help','51159321NflJCF','log','1642305AVjlzl','5746665VeWTOQ','2343914PDDPiS'];a231_0x5e99=function(){return _0x51da73;};return a231_0x5e99();}import a231_0x4028c2 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x52c661=a231_0x3e0e;console[_0x52c661(0xd4)](),console[_0x52c661(0xd4)](a231_0x4028c2[_0x52c661(0xe0)][_0x52c661(0xd8)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x52c661(0xd4)](),console['log'](_0x52c661(0xd9)+a231_0x4028c2['green'][_0x52c661(0xd8)](CLI_BIN_NAME+_0x52c661(0xd2))+_0x52c661(0xdf)),console[_0x52c661(0xd4)]();}
@@ -1 +1 @@
1
- function a231_0x5721(_0x40e946,_0x1241da){_0x40e946=_0x40e946-0x1ab;const _0x37963c=a231_0x3796();let _0x5721e=_0x37963c[_0x40e946];return _0x5721e;}(function(_0x3f85a2,_0xa7ad48){const _0x14952d=a231_0x5721,_0x5ac03f=_0x3f85a2();while(!![]){try{const _0x5fbaa8=-parseInt(_0x14952d(0x1c4))/0x1*(-parseInt(_0x14952d(0x1bb))/0x2)+-parseInt(_0x14952d(0x1c6))/0x3+parseInt(_0x14952d(0x1b4))/0x4+parseInt(_0x14952d(0x1ba))/0x5+-parseInt(_0x14952d(0x1be))/0x6*(parseInt(_0x14952d(0x1cc))/0x7)+-parseInt(_0x14952d(0x1c0))/0x8*(parseInt(_0x14952d(0x1bf))/0x9)+-parseInt(_0x14952d(0x1af))/0xa*(parseInt(_0x14952d(0x1ab))/0xb);if(_0x5fbaa8===_0xa7ad48)break;else _0x5ac03f['push'](_0x5ac03f['shift']());}catch(_0x1e6026){_0x5ac03f['push'](_0x5ac03f['shift']());}}}(a231_0x3796,0x99e70));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x21ec77){const _0x5b3e6e=a231_0x5721,_0x43aaad=[];for(const [_0x10791f,_0x395871]of Object[_0x5b3e6e(0x1c7)](_0x21ec77)){if(_0x395871===!![]){const _0xa8b29c=_0x10791f['replace'](/([A-Z])/g,'-$1')['toLowerCase']();_0x43aaad[_0x5b3e6e(0x1ac)](_0xa8b29c);}}return _0x43aaad;}export function parseDynamicFlags(){const _0x3823a2=a231_0x5721,_0x1c78d5=[];for(let _0x510a21=0x3;_0x510a21<process[_0x3823a2(0x1b9)][_0x3823a2(0x1b8)];_0x510a21++){const _0x49db01=process[_0x3823a2(0x1b9)][_0x510a21];if(_0x49db01&&_0x49db01['startsWith']('--')){const _0x2e8e44=_0x49db01['slice'](0x2);_0x2e8e44&&!_0x2e8e44['includes']('=')&&_0x1c78d5[_0x3823a2(0x1ac)](_0x2e8e44);}}return _0x1c78d5;}function a231_0x3796(){const _0x57fca3=['add','skill','不支持的命令:\x20','120626rojlcs','\x0aAvailable\x20commands:','983724uzBhaX','entries','log','Equivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','cwd','3962rzhjPj','2112FnVPUO','push','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','from','36190oGsjKa','dangerously-bff-save','enable-bff-save','error','help','4611612UAoDaw','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','setLogPath','length','argv','5221195YXaqjX','18OJsWos','has','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','4686TWFqVh','1068831baAwIe','80fuUacK'];a231_0x3796=function(){return _0x57fca3;};return a231_0x3796();}export function getAllProvidedFlags(_0x22b934){const _0x48d31f=a231_0x5721,_0xe59337=camelCaseFlagsToKebab(_0x22b934),_0xeb6d0a=parseDynamicFlags(),_0xb64cb=new Set([..._0xe59337,..._0xeb6d0a]);return Array[_0x48d31f(0x1ae)](_0xb64cb);}export function normalizeLegacyBffSaveFlags(_0x366172){const _0x3107d9=a231_0x5721,_0x13eeae=new Set(_0x366172);return _0x13eeae[_0x3107d9(0x1bc)](_0x3107d9(0x1b0))&&_0x13eeae[_0x3107d9(0x1c1)](_0x3107d9(0x1b1)),Array[_0x3107d9(0x1ae)](_0x13eeae);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x533f91,_0x29b67c,_0x550497){const _0x1c9e01=a231_0x5721;logger[_0x1c9e01(0x1b7)](process[_0x1c9e01(0x1cb)]());if(_0x550497?.[_0x1c9e01(0x1b3)]||_0x533f91==='--help'){showHelp();return;}console['error'](_0x1c9e01(0x1ca)+(_0x533f91||_0x1c9e01(0x1b6))),console['log'](_0x1c9e01(0x1c5)),console[_0x1c9e01(0x1c8)]('\x20\x20'+CLI_BIN_NAME+_0x1c9e01(0x1bd)),console['log'](''),console[_0x1c9e01(0x1c8)](_0x1c9e01(0x1c9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1c9e01(0x1b2)](_0x1c9e01(0x1c2),_0x1c9e01(0x1c3)+_0x533f91),process['exit'](0x1);}function showHelp(){const _0x164302=a231_0x5721;console[_0x164302(0x1c8)](_0x164302(0x1ad)+CLI_BIN_NAME+_0x164302(0x1b5)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x34b8ae,_0x26136b){const _0x50ca36=a232_0x4880,_0x3a6725=_0x34b8ae();while(!![]){try{const _0x1750d5=-parseInt(_0x50ca36(0x11a))/0x1+parseInt(_0x50ca36(0x136))/0x2+-parseInt(_0x50ca36(0x116))/0x3*(-parseInt(_0x50ca36(0x11e))/0x4)+-parseInt(_0x50ca36(0x124))/0x5+parseInt(_0x50ca36(0x125))/0x6*(parseInt(_0x50ca36(0x134))/0x7)+parseInt(_0x50ca36(0x119))/0x8*(-parseInt(_0x50ca36(0x12d))/0x9)+parseInt(_0x50ca36(0x135))/0xa*(-parseInt(_0x50ca36(0x121))/0xb);if(_0x1750d5===_0x26136b)break;else _0x3a6725['push'](_0x3a6725['shift']());}catch(_0x37ad1f){_0x3a6725['push'](_0x3a6725['shift']());}}}(a232_0x2e90,0x688b4));function a232_0x4880(_0x3c9d6d,_0x2eb580){_0x3c9d6d=_0x3c9d6d-0x114;const _0x2e901c=a232_0x2e90();let _0x4880d0=_0x2e901c[_0x3c9d6d];return _0x4880d0;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x337958){const _0xfdadf6=a232_0x4880,_0x3d0d41=[];for(const [_0x44ac6d,_0x59518b]of Object[_0xfdadf6(0x115)](_0x337958)){if(_0x59518b===!![]){const _0x416414=_0x44ac6d[_0xfdadf6(0x11c)](/([A-Z])/g,_0xfdadf6(0x120))[_0xfdadf6(0x129)]();_0x3d0d41[_0xfdadf6(0x118)](_0x416414);}}return _0x3d0d41;}export function parseDynamicFlags(){const _0x16d915=a232_0x4880,_0x1f5e70=[];for(let _0x579c65=0x3;_0x579c65<process['argv']['length'];_0x579c65++){const _0x4482dd=process[_0x16d915(0x114)][_0x579c65];if(_0x4482dd&&_0x4482dd[_0x16d915(0x126)]('--')){const _0x212edf=_0x4482dd['slice'](0x2);_0x212edf&&!_0x212edf[_0x16d915(0x12a)]('=')&&_0x1f5e70['push'](_0x212edf);}}return _0x1f5e70;}export function getAllProvidedFlags(_0x3a40cb){const _0xe24b9e=a232_0x4880,_0x3a6cdc=camelCaseFlagsToKebab(_0x3a40cb),_0x4def18=parseDynamicFlags(),_0x23fb32=new Set([..._0x3a6cdc,..._0x4def18]);return Array[_0xe24b9e(0x132)](_0x23fb32);}export function normalizeLegacyBffSaveFlags(_0x4c81e6){const _0x20e7e1=a232_0x4880,_0x31d86d=new Set(_0x4c81e6);return _0x31d86d[_0x20e7e1(0x12b)](_0x20e7e1(0x127))&&_0x31d86d[_0x20e7e1(0x131)](_0x20e7e1(0x11d)),Array[_0x20e7e1(0x132)](_0x31d86d);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a232_0x2e90(){const _0x4e936c=['66wrTMsB','--help','help','2428045upIdBH','6MNbcBU','startsWith','dangerously-bff-save','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','toLowerCase','includes','has','log','7371YUclCQ','Error:\x20Unsupported\x20command:\x20','error','(empty)','add','from','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','5661229COaSjg','1234780xWyRFl','1692270tMoInL','skill','argv','entries','2232501txCrWY','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','push','4528bwPkeD','280806vUmWIX','setLogPath','replace','enable-bff-save','4tPnLQm','不支持的命令:\x20','-$1'];a232_0x2e90=function(){return _0x4e936c;};return a232_0x2e90();}export async function skillsCommand(_0x115d45,_0x58f3a0,_0x386fe8){const _0x76cc40=a232_0x4880;logger[_0x76cc40(0x11b)](process['cwd']());if(_0x386fe8?.[_0x76cc40(0x123)]||_0x115d45===_0x76cc40(0x122)){showHelp();return;}console[_0x76cc40(0x12f)](_0x76cc40(0x12e)+(_0x115d45||_0x76cc40(0x130))),console['log']('\x0aAvailable\x20commands:'),console[_0x76cc40(0x12c)]('\x20\x20'+CLI_BIN_NAME+_0x76cc40(0x117)),console[_0x76cc40(0x12c)](''),console['log']('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x76cc40(0x137),_0x76cc40(0x11f)+_0x115d45),process['exit'](0x1);}function showHelp(){const _0x488ae3=a232_0x4880;console[_0x488ae3(0x12c)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x488ae3(0x133)+SKILLS_INSTALL_COMMAND_LINE+_0x488ae3(0x128));}
@@ -1 +1 @@
1
- function a232_0x2804(){const _0x3f1af5=['push','trim','skill','1086uBgmBH','536267bCtJnI','15MkYnvM','status','stdout','--skill','pipe','48tTcLmV','stdio','4777290JLTzuG','lovrabet/rabetbase','exit\x20','add','154hSzSAb','18377350JudTHy','1301780mqTQyk','join','npx','remove','33362DdFlqS','6612192itZfKo','unknown','stderr','log','skills','inherit','toString'];a232_0x2804=function(){return _0x3f1af5;};return a232_0x2804();}const a232_0x320289=a232_0x1013;(function(_0x14a65b,_0x9463dc){const _0x438324=a232_0x1013,_0x285b01=_0x14a65b();while(!![]){try{const _0x5a6b91=-parseInt(_0x438324(0x99))/0x1+-parseInt(_0x438324(0xa5))/0x2*(parseInt(_0x438324(0x98))/0x3)+-parseInt(_0x438324(0xa7))/0x4*(-parseInt(_0x438324(0x9a))/0x5)+-parseInt(_0x438324(0xa1))/0x6+parseInt(_0x438324(0xab))/0x7*(-parseInt(_0x438324(0x9f))/0x8)+-parseInt(_0x438324(0xac))/0x9+parseInt(_0x438324(0xa6))/0xa;if(_0x5a6b91===_0x9463dc)break;else _0x285b01['push'](_0x285b01['shift']());}catch(_0x2f70fb){_0x285b01['push'](_0x285b01['shift']());}}}(a232_0x2804,0xa88fe));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';function a232_0x1013(_0x117159,_0x4d2525){_0x117159=_0x117159-0x8f;const _0x280491=a232_0x2804();let _0x101351=_0x280491[_0x117159];return _0x101351;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a232_0x320289(0x92);export const NPX_SKILLS_SUBCOMMAND_ADD=a232_0x320289(0xa4);export const NPX_SKILLS_FLAG_SKILL=a232_0x320289(0x9d);export const RABETBASE_SKILL_SOURCE=a232_0x320289(0xa2);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0xd772d3){const _0x553a7f=a232_0x320289,_0x76c124=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xd772d3&&_0x76c124[_0x553a7f(0x95)](NPX_SKILLS_FLAG_SKILL,_0xd772d3),_0x76c124;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a232_0x320289(0xa9),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x363ba7,_0x3d83a0){const _0x19662e=a232_0x320289;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x46b4b8=_0x3d83a0?.[_0x19662e(0xa0)]??'inherit',_0x4ac33a=resolveNpmBin(_0x19662e(0xa9)),_0x53ce74=buildNpxSkillsAddArgv(_0x3d83a0?.[_0x19662e(0x97)]),_0x67b7a1=[_0x19662e(0xa9),..._0x53ce74]['join']('\x20');console[_0x19662e(0x91)]('*\x20'+_0x67b7a1);const _0x5ccfdd=spawnSync(_0x4ac33a,_0x53ce74,{'cwd':_0x363ba7,'stdio':_0x46b4b8,'env':process.env,'shell':![]}),_0x132b8a=_0x5ccfdd['status'];if(_0x132b8a===0x0)return{'ok':!![],'status':0x0};let _0x442677=_0x19662e(0xa3)+(_0x132b8a??_0x19662e(0x8f));if(_0x46b4b8===_0x19662e(0x9e)){const _0x115ae6=_0x5ccfdd[_0x19662e(0x90)]?_0x5ccfdd[_0x19662e(0x90)][_0x19662e(0x94)]()[_0x19662e(0x96)]():'',_0x1859cc=_0x5ccfdd[_0x19662e(0x9c)]?_0x5ccfdd[_0x19662e(0x9c)][_0x19662e(0x94)]()[_0x19662e(0x96)]():'';if(_0x115ae6)_0x442677=_0x115ae6;else{if(_0x1859cc)_0x442677=_0x1859cc;}}return{'ok':![],'status':_0x132b8a??null,'error':_0x442677};}export function runNpxSkillsRemove(_0x349fee,_0x31dd08,_0x359675=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4ba1da=a232_0x320289;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x24e247=_0x31dd08?.['stdio']??_0x4ba1da(0x93),_0x4582b8=resolveNpmBin(_0x4ba1da(0xa9)),_0xbcc947=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4ba1da(0xaa),_0x359675,NPX_SKILLS_FLAG_SKILL,_0x31dd08?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x31dd08?.['yes']?['-y']:[]],_0x20b9f7=[_0x4582b8,..._0xbcc947][_0x4ba1da(0xa8)]('\x20');console[_0x4ba1da(0x91)]('*\x20'+_0x20b9f7);const _0x4d43d1=spawnSync(_0x4582b8,_0xbcc947,{'cwd':_0x349fee,'stdio':_0x24e247,'env':process.env,'shell':![]}),_0x1f7dd4=_0x4d43d1[_0x4ba1da(0x9b)];if(_0x1f7dd4===0x0)return{'ok':!![],'status':0x0};let _0x3267f9=_0x4ba1da(0xa3)+(_0x1f7dd4??_0x4ba1da(0x8f));if(_0x24e247==='pipe'){const _0x192e7b=_0x4d43d1[_0x4ba1da(0x90)]?_0x4d43d1['stderr'][_0x4ba1da(0x94)]()['trim']():'',_0x3110db=_0x4d43d1['stdout']?_0x4d43d1[_0x4ba1da(0x9c)][_0x4ba1da(0x94)]()[_0x4ba1da(0x96)]():'';if(_0x192e7b)_0x3267f9=_0x192e7b;else{if(_0x3110db)_0x3267f9=_0x3110db;}}return{'ok':![],'status':_0x1f7dd4??null,'error':_0x3267f9};}export function runNpxSkillsAddGlobal(_0x4002b7,_0x1bd062,_0x164e7a){const _0x1c6931=a232_0x320289;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x266ef0=_0x164e7a?.[_0x1c6931(0xa0)]??'inherit',_0x5c9fd5=resolveNpmBin(_0x1c6931(0xa9)),_0x4eae6f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1bd062,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x82751=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1bd062,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x1c6931(0x91)]('*\x20'+_0x82751);const _0x4961d6=spawnSync(_0x5c9fd5,_0x4eae6f,{'cwd':_0x4002b7,'stdio':_0x266ef0,'env':process.env,'shell':![]}),_0x1db5ef=_0x4961d6[_0x1c6931(0x9b)];if(_0x1db5ef===0x0)return{'ok':!![],'status':0x0};let _0x278eec=_0x1c6931(0xa3)+(_0x1db5ef??_0x1c6931(0x8f));if(_0x266ef0===_0x1c6931(0x9e)){const _0x5c0385=_0x4961d6[_0x1c6931(0x90)]?_0x4961d6[_0x1c6931(0x90)][_0x1c6931(0x94)]()[_0x1c6931(0x96)]():'',_0x3b1851=_0x4961d6[_0x1c6931(0x9c)]?_0x4961d6[_0x1c6931(0x9c)]['toString']()['trim']():'';if(_0x5c0385)_0x278eec=_0x5c0385;else{if(_0x3b1851)_0x278eec=_0x3b1851;}}return{'ok':![],'status':_0x1db5ef??null,'error':_0x278eec};}
1
+ const a233_0x2bd0f7=a233_0x257a;function a233_0x257a(_0x2f35ee,_0x1e9edb){_0x2f35ee=_0x2f35ee-0x6d;const _0x4f48bf=a233_0x4f48();let _0x257a3a=_0x4f48bf[_0x2f35ee];return _0x257a3a;}(function(_0x332168,_0x515bdf){const _0x313baf=a233_0x257a,_0x682085=_0x332168();while(!![]){try{const _0x7c4d36=-parseInt(_0x313baf(0x6f))/0x1+parseInt(_0x313baf(0x72))/0x2*(-parseInt(_0x313baf(0x7f))/0x3)+parseInt(_0x313baf(0x7d))/0x4+-parseInt(_0x313baf(0x70))/0x5+parseInt(_0x313baf(0x76))/0x6+parseInt(_0x313baf(0x78))/0x7*(parseInt(_0x313baf(0x71))/0x8)+-parseInt(_0x313baf(0x88))/0x9*(-parseInt(_0x313baf(0x79))/0xa);if(_0x7c4d36===_0x515bdf)break;else _0x682085['push'](_0x682085['shift']());}catch(_0x41fc4c){_0x682085['push'](_0x682085['shift']());}}}(a233_0x4f48,0x84624));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='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a233_0x2bd0f7(0x86);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a233_0x2bd0f7(0x7c);export const LEGACY_RABETBASE_SKILL_SOURCE=a233_0x2bd0f7(0x74);export const DEFAULT_RABETBASE_SKILL_NAME=a233_0x2bd0f7(0x77);export function buildNpxSkillsAddArgv(_0x410f8d){const _0x191ab3=a233_0x2bd0f7,_0x36a4a6=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x410f8d&&_0x36a4a6[_0x191ab3(0x8b)](NPX_SKILLS_FLAG_SKILL,_0x410f8d),_0x36a4a6;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a233_0x2bd0f7(0x81)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a233_0x2bd0f7(0x73),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a233_0x2bd0f7(0x81)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2caa3d,_0x15499f){const _0xb27dc4=a233_0x2bd0f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x53ca75=_0x15499f?.[_0xb27dc4(0x82)]??_0xb27dc4(0x84),_0x4de524=resolveNpmBin('npx'),_0x4aef45=buildNpxSkillsAddArgv(_0x15499f?.[_0xb27dc4(0x6d)]),_0x14629a=[_0xb27dc4(0x73),..._0x4aef45]['join']('\x20');console[_0xb27dc4(0x7e)]('*\x20'+_0x14629a);const _0x14c9d9=spawnSync(_0x4de524,_0x4aef45,{'cwd':_0x2caa3d,'stdio':_0x53ca75,'env':process.env,'shell':![]}),_0x2a1823=_0x14c9d9[_0xb27dc4(0x83)];if(_0x2a1823===0x0)return{'ok':!![],'status':0x0};let _0xea234a=_0xb27dc4(0x87)+(_0x2a1823??_0xb27dc4(0x89));if(_0x53ca75===_0xb27dc4(0x7a)){const _0x1395c6=_0x14c9d9[_0xb27dc4(0x6e)]?_0x14c9d9[_0xb27dc4(0x6e)][_0xb27dc4(0x8a)]()[_0xb27dc4(0x7b)]():'',_0x4bb846=_0x14c9d9[_0xb27dc4(0x75)]?_0x14c9d9[_0xb27dc4(0x75)][_0xb27dc4(0x8a)]()['trim']():'';if(_0x1395c6)_0xea234a=_0x1395c6;else{if(_0x4bb846)_0xea234a=_0x4bb846;}}return{'ok':![],'status':_0x2a1823??null,'error':_0xea234a};}export function runNpxSkillsRemove(_0xd65978,_0x4f1dde,_0x10657a=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1331ec=a233_0x2bd0f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1ee955=_0x4f1dde?.['stdio']??'inherit',_0x28a790=resolveNpmBin(_0x1331ec(0x73)),_0x3bee4d=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x1331ec(0x80),_0x10657a,NPX_SKILLS_FLAG_SKILL,_0x4f1dde?.[_0x1331ec(0x6d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4f1dde?.[_0x1331ec(0x85)]?['-y']:[]],_0x522958=[_0x28a790,..._0x3bee4d][_0x1331ec(0x81)]('\x20');console[_0x1331ec(0x7e)]('*\x20'+_0x522958);const _0x4597a5=spawnSync(_0x28a790,_0x3bee4d,{'cwd':_0xd65978,'stdio':_0x1ee955,'env':process.env,'shell':![]}),_0x32ae75=_0x4597a5[_0x1331ec(0x83)];if(_0x32ae75===0x0)return{'ok':!![],'status':0x0};let _0x20ddb0=_0x1331ec(0x87)+(_0x32ae75??_0x1331ec(0x89));if(_0x1ee955===_0x1331ec(0x7a)){const _0x4bec27=_0x4597a5[_0x1331ec(0x6e)]?_0x4597a5[_0x1331ec(0x6e)][_0x1331ec(0x8a)]()[_0x1331ec(0x7b)]():'',_0x1bafd4=_0x4597a5[_0x1331ec(0x75)]?_0x4597a5[_0x1331ec(0x75)][_0x1331ec(0x8a)]()[_0x1331ec(0x7b)]():'';if(_0x4bec27)_0x20ddb0=_0x4bec27;else{if(_0x1bafd4)_0x20ddb0=_0x1bafd4;}}return{'ok':![],'status':_0x32ae75??null,'error':_0x20ddb0};}export function runNpxSkillsAddGlobal(_0x9fec40,_0x36f359,_0x13076d){const _0x27d0df=a233_0x2bd0f7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x8a7c8a=_0x13076d?.[_0x27d0df(0x82)]??_0x27d0df(0x84),_0x2feed0=resolveNpmBin('npx'),_0x5865a4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36f359,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x22ea89=[_0x27d0df(0x73),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36f359,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x27d0df(0x81)]('\x20');console[_0x27d0df(0x7e)]('*\x20'+_0x22ea89);const _0x1c35e9=spawnSync(_0x2feed0,_0x5865a4,{'cwd':_0x9fec40,'stdio':_0x8a7c8a,'env':process.env,'shell':![]}),_0x3d8708=_0x1c35e9['status'];if(_0x3d8708===0x0)return{'ok':!![],'status':0x0};let _0x1cbead=_0x27d0df(0x87)+(_0x3d8708??_0x27d0df(0x89));if(_0x8a7c8a==='pipe'){const _0x13b591=_0x1c35e9['stderr']?_0x1c35e9[_0x27d0df(0x6e)][_0x27d0df(0x8a)]()[_0x27d0df(0x7b)]():'',_0x47f5cf=_0x1c35e9[_0x27d0df(0x75)]?_0x1c35e9[_0x27d0df(0x75)][_0x27d0df(0x8a)]()[_0x27d0df(0x7b)]():'';if(_0x13b591)_0x1cbead=_0x13b591;else{if(_0x47f5cf)_0x1cbead=_0x47f5cf;}}return{'ok':![],'status':_0x3d8708??null,'error':_0x1cbead};}function a233_0x4f48(){const _0x66d27f=['toString','push','skill','stderr','108654cKKVAv','5391495Tdgbls','3216JtnVDx','2Chvqhh','npx','lovrabet/lovrabet-skill','stdout','4263324yTLnVu','Lovrabet','623MepJoN','20XHJHtL','pipe','trim','lovrabet/rabetbase','2585952oyrwzW','log','1332015paTOpM','remove','join','stdio','status','inherit','yes','add','exit\x20','3511719KEUpAb','unknown'];a233_0x4f48=function(){return _0x66d27f;};return a233_0x4f48();}
@@ -1 +1 @@
1
- (function(_0x2cf6f2,_0x112f41){const _0x11a37c=a233_0x3844,_0x17b23e=_0x2cf6f2();while(!![]){try{const _0x27ecce=parseInt(_0x11a37c(0x6b))/0x1+-parseInt(_0x11a37c(0x68))/0x2*(parseInt(_0x11a37c(0x71))/0x3)+parseInt(_0x11a37c(0x74))/0x4*(-parseInt(_0x11a37c(0x72))/0x5)+parseInt(_0x11a37c(0x76))/0x6+-parseInt(_0x11a37c(0x77))/0x7*(-parseInt(_0x11a37c(0x7c))/0x8)+-parseInt(_0x11a37c(0x73))/0x9+parseInt(_0x11a37c(0x75))/0xa;if(_0x27ecce===_0x112f41)break;else _0x17b23e['push'](_0x17b23e['shift']());}catch(_0x33152c){_0x17b23e['push'](_0x17b23e['shift']());}}}(a233_0x125a,0x7bfa6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a233_0x3844(_0xf6270e,_0x35d70a){_0xf6270e=_0xf6270e-0x67;const _0x125a8b=a233_0x125a();let _0x38442e=_0x125a8b[_0xf6270e];return _0x38442e;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a233_0x125a(){const _0x17f3f4=['2924586VPkHNQ','514284KxDdzS','5945820trqgbu','298038GYnaGs','28ywKiJN','[REDACTED]','rabetbase.command','command','test','1805256wZwTko','flags','21108PpteTV','entries','error','534164EthtAz','message','stringify','service','some','durationMs','99WyxPHO','35gvLwbZ'];a233_0x125a=function(){return _0x17f3f4;};return a233_0x125a();}function isSensitiveKey(_0x221809){const _0x45a0a8=a233_0x3844;return SENSITIVE_PATTERNS[_0x45a0a8(0x6f)](_0x4e00b8=>_0x4e00b8[_0x45a0a8(0x7b)](_0x221809));}function sanitizeFlags(_0x134dc7){const _0x33cad5=a233_0x3844,_0x270b35={};for(const [_0x4f2037,_0x1e5eef]of Object[_0x33cad5(0x69)](_0x134dc7)){isSensitiveKey(_0x4f2037)?_0x270b35[_0x4f2037]=_0x1e5eef!=null&&_0x1e5eef!==''?_0x33cad5(0x78):_0x1e5eef:_0x270b35[_0x4f2037]=_0x1e5eef;}return _0x270b35;}export async function reportCommandTrace(_0x2ef95c){const _0x3e4931=a233_0x3844;try{const _0x5888a5=sanitizeFlags(_0x2ef95c[_0x3e4931(0x67)]);await sendCliTraceLog({'spanName':_0x3e4931(0x79),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2ef95c[_0x3e4931(0x6e)],'command.name':_0x2ef95c[_0x3e4931(0x7a)],'command.flags':JSON[_0x3e4931(0x6d)](_0x5888a5),..._0x2ef95c[_0x3e4931(0x70)]!=null?{'command.duration_ms':_0x2ef95c[_0x3e4931(0x70)]}:{},..._0x2ef95c[_0x3e4931(0x6a)]?{'command.error':_0x2ef95c[_0x3e4931(0x6a)]instanceof Error?_0x2ef95c['error'][_0x3e4931(0x6c)]:String(_0x2ef95c[_0x3e4931(0x6a)])}:{}}});}catch{}}
1
+ (function(_0x11760f,_0x145d67){const _0x3c8210=a234_0x30b5,_0x3dc78b=_0x11760f();while(!![]){try{const _0x1f1fcf=parseInt(_0x3c8210(0x1be))/0x1+parseInt(_0x3c8210(0x1bb))/0x2*(parseInt(_0x3c8210(0x1c3))/0x3)+parseInt(_0x3c8210(0x1b7))/0x4*(-parseInt(_0x3c8210(0x1bf))/0x5)+parseInt(_0x3c8210(0x1b4))/0x6+-parseInt(_0x3c8210(0x1c1))/0x7+parseInt(_0x3c8210(0x1b5))/0x8+-parseInt(_0x3c8210(0x1bd))/0x9;if(_0x1f1fcf===_0x145d67)break;else _0x3dc78b['push'](_0x3dc78b['shift']());}catch(_0x1aa051){_0x3dc78b['push'](_0x3dc78b['shift']());}}}(a234_0x45a1,0xa2fc0));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(_0x1b3938){const _0x38b787=a234_0x30b5;return SENSITIVE_PATTERNS[_0x38b787(0x1c5)](_0x105e90=>_0x105e90['test'](_0x1b3938));}function a234_0x30b5(_0x3e0632,_0x27a3ff){_0x3e0632=_0x3e0632-0x1b2;const _0x45a148=a234_0x45a1();let _0x30b59b=_0x45a148[_0x3e0632];return _0x30b59b;}function sanitizeFlags(_0x48274c){const _0x5c76c5=a234_0x30b5,_0x241e44={};for(const [_0x2cf704,_0x5d35d1]of Object[_0x5c76c5(0x1b2)](_0x48274c)){isSensitiveKey(_0x2cf704)?_0x241e44[_0x2cf704]=_0x5d35d1!=null&&_0x5d35d1!==''?_0x5c76c5(0x1c4):_0x5d35d1:_0x241e44[_0x2cf704]=_0x5d35d1;}return _0x241e44;}function a234_0x45a1(){const _0x5f0f5f=['error','durationMs','671914qyntPT','service','11787660RJAXaP','159586PqdeLJ','104675eBNUjw','rabetbase.command','3505404YNszNW','stringify','3HqZJhf','[REDACTED]','some','entries','flags','7581462iwPmnN','6086768QGFPiU','message','8INWuQb','command'];a234_0x45a1=function(){return _0x5f0f5f;};return a234_0x45a1();}export async function reportCommandTrace(_0x54d0b8){const _0x159807=a234_0x30b5;try{const _0x1e9fed=sanitizeFlags(_0x54d0b8[_0x159807(0x1b3)]);await sendCliTraceLog({'spanName':_0x159807(0x1c0),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x54d0b8[_0x159807(0x1bc)],'command.name':_0x54d0b8[_0x159807(0x1b8)],'command.flags':JSON[_0x159807(0x1c2)](_0x1e9fed),..._0x54d0b8[_0x159807(0x1ba)]!=null?{'command.duration_ms':_0x54d0b8['durationMs']}:{},..._0x54d0b8[_0x159807(0x1b9)]?{'command.error':_0x54d0b8[_0x159807(0x1b9)]instanceof Error?_0x54d0b8['error'][_0x159807(0x1b6)]:String(_0x54d0b8['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x4a12f0,_0xb7b25e){var _0x3f914a=a234_0x5957,_0x2ef381=_0x4a12f0();while(!![]){try{var _0x4051fb=parseInt(_0x3f914a(0x75))/0x1+parseInt(_0x3f914a(0x71))/0x2*(parseInt(_0x3f914a(0x70))/0x3)+-parseInt(_0x3f914a(0x77))/0x4+parseInt(_0x3f914a(0x76))/0x5+parseInt(_0x3f914a(0x72))/0x6*(parseInt(_0x3f914a(0x6e))/0x7)+parseInt(_0x3f914a(0x6f))/0x8+-parseInt(_0x3f914a(0x78))/0x9;if(_0x4051fb===_0xb7b25e)break;else _0x2ef381['push'](_0x2ef381['shift']());}catch(_0xa0c4d6){_0x2ef381['push'](_0x2ef381['shift']());}}}(a234_0x5abb,0xdf892));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a234_0x5abb(){var _0x5e1920=['10262152hcDXtU','4708707lhxNyr','2QktiqS','10002iYlbmo','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','1341785tBAsTw','4498940PlpAoK','6217536cwbCrV','31926987hutBZf','error','3878OpCaGl'];a234_0x5abb=function(){return _0x5e1920;};return a234_0x5abb();}function a234_0x5957(_0x160b47,_0x184b15){_0x160b47=_0x160b47-0x6e;var _0x5abbf5=a234_0x5abb();var _0x595708=_0x5abbf5[_0x160b47];return _0x595708;}export async function reportCliHelpTrace(_0x52eeaf,_0x448f2d){var _0x175264=a234_0x5957;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x52eeaf,..._0x448f2d?.[_0x175264(0x74)]&&{'rabetbase.help.service':_0x448f2d[_0x175264(0x74)]}}});}catch(_0x5b31b2){console[_0x175264(0x79)](_0x175264(0x73),_0x5b31b2);}}
1
+ function a235_0x2df4(){var _0x239c0f=['413sxkPdf','1DOqaCV','42mEGjVp','31256bpdDTV','14976dCIeDk','1721556XEuJdU','21VhOssR','8945PXeMJq','343370xlENJb','638128csfJdY','service','2119xOcyIw','33wdRlvl','133828dwupnX','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a235_0x2df4=function(){return _0x239c0f;};return a235_0x2df4();}(function(_0x49c801,_0x45fbe6){var _0x10d28e=a235_0x4c53,_0x3217c3=_0x49c801();while(!![]){try{var _0x193908=-parseInt(_0x10d28e(0x78))/0x1*(parseInt(_0x10d28e(0x80))/0x2)+parseInt(_0x10d28e(0x7d))/0x3*(-parseInt(_0x10d28e(0x84))/0x4)+parseInt(_0x10d28e(0x7e))/0x5*(-parseInt(_0x10d28e(0x79))/0x6)+-parseInt(_0x10d28e(0x77))/0x7*(-parseInt(_0x10d28e(0x7a))/0x8)+parseInt(_0x10d28e(0x7c))/0x9+-parseInt(_0x10d28e(0x7f))/0xa*(-parseInt(_0x10d28e(0x83))/0xb)+-parseInt(_0x10d28e(0x7b))/0xc*(-parseInt(_0x10d28e(0x82))/0xd);if(_0x193908===_0x45fbe6)break;else _0x3217c3['push'](_0x3217c3['shift']());}catch(_0x15c263){_0x3217c3['push'](_0x3217c3['shift']());}}}(a235_0x2df4,0x27a8e));function a235_0x4c53(_0x387c69,_0x54ad9f){_0x387c69=_0x387c69-0x76;var _0x2df483=a235_0x2df4();var _0x4c5340=_0x2df483[_0x387c69];return _0x4c5340;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4efb95,_0x3a3824){var _0x400fbe=a235_0x4c53;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x4efb95,..._0x3a3824?.[_0x400fbe(0x81)]&&{'rabetbase.help.service':_0x3a3824[_0x400fbe(0x81)]}}});}catch(_0x307d21){console['error'](_0x400fbe(0x76),_0x307d21);}}
@@ -1 +1 @@
1
- (function(_0x323444,_0x28047f){const _0x1647fe=a235_0x2a3e,_0xb5c4d6=_0x323444();while(!![]){try{const _0x2fc63e=-parseInt(_0x1647fe(0xfb))/0x1*(parseInt(_0x1647fe(0x108))/0x2)+parseInt(_0x1647fe(0xfd))/0x3+parseInt(_0x1647fe(0xfc))/0x4+parseInt(_0x1647fe(0x105))/0x5*(parseInt(_0x1647fe(0x107))/0x6)+parseInt(_0x1647fe(0x104))/0x7*(parseInt(_0x1647fe(0x106))/0x8)+parseInt(_0x1647fe(0x103))/0x9+-parseInt(_0x1647fe(0x102))/0xa;if(_0x2fc63e===_0x28047f)break;else _0xb5c4d6['push'](_0xb5c4d6['shift']());}catch(_0x2a4c2a){_0xb5c4d6['push'](_0xb5c4d6['shift']());}}}(a235_0x5205,0x91f89));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a235_0x5205(){const _0x493890=['7zZHeYJ','335FGAQMc','5467928ZCLhBN','82686aqcdcb','2EJPiJi','user','730712sNJabh','1070800LycZNm','2696052QRzZhU','username','email','production','tenant','24941290eueegO','9445824WmLZFe'];a235_0x5205=function(){return _0x493890;};return a235_0x5205();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a235_0x2a3e(_0x2f0477,_0xef991c){_0x2f0477=_0x2f0477-0xfa;const _0x520535=a235_0x5205();let _0x2a3e8a=_0x520535[_0x2f0477];return _0x2a3e8a;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3d753d=a235_0x2a3e,_0xb84e7c=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4ffd5f=_0xb84e7c?.[_0x3d753d(0xfa)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x3d753d(0x100))}),setUserContext({'id':_0x4ffd5f?.['id'],'username':_0x4ffd5f?.[_0x3d753d(0xfe)],'nickname':_0x4ffd5f?.['nickname'],'email':_0x4ffd5f?.[_0x3d753d(0xff)],'tenantCode':_0x4ffd5f?.[_0x3d753d(0x101)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xb84e7c;}
1
+ (function(_0x3804c8,_0x7c0207){const _0x1f7136=a236_0x4927,_0x18f6ed=_0x3804c8();while(!![]){try{const _0x3c8575=-parseInt(_0x1f7136(0x6f))/0x1*(parseInt(_0x1f7136(0x6b))/0x2)+parseInt(_0x1f7136(0x6c))/0x3*(parseInt(_0x1f7136(0x70))/0x4)+-parseInt(_0x1f7136(0x66))/0x5*(-parseInt(_0x1f7136(0x65))/0x6)+-parseInt(_0x1f7136(0x71))/0x7+parseInt(_0x1f7136(0x6a))/0x8*(parseInt(_0x1f7136(0x75))/0x9)+-parseInt(_0x1f7136(0x6e))/0xa+parseInt(_0x1f7136(0x69))/0xb;if(_0x3c8575===_0x7c0207)break;else _0x18f6ed['push'](_0x18f6ed['shift']());}catch(_0x55bfb4){_0x18f6ed['push'](_0x18f6ed['shift']());}}}(a236_0x4aec,0xb375f));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a236_0x4927(_0x637fae,_0x2dc16c){_0x637fae=_0x637fae-0x65;const _0x4aecca=a236_0x4aec();let _0x4927c7=_0x4aecca[_0x637fae];return _0x4927c7;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a236_0x4aec(){const _0x21fe10=['8929445kFDKPl','production','tenant','daily','7167663TAMgov','14958HfMupT','205jMzvfr','user','email','22014003YKOhrf','8YzddhS','388684UsLsQf','95289msRlth','tenant_code','11675260fFmnIc','2lVqEHy','84TJHlqH'];a236_0x4aec=function(){return _0x21fe10;};return a236_0x4aec();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x162ba5=a236_0x4927,_0x51ada6=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2d9c27=_0x51ada6?.[_0x162ba5(0x67)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x162ba5(0x74):_0x162ba5(0x72))}),setUserContext({'id':_0x2d9c27?.['id'],'username':_0x2d9c27?.['username'],'nickname':_0x2d9c27?.['nickname'],'email':_0x2d9c27?.[_0x162ba5(0x68)],'tenantCode':_0x2d9c27?.[_0x162ba5(0x73)][_0x162ba5(0x6d)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x51ada6;}
@@ -1 +1 @@
1
- (function(_0x2422f1,_0x1c1b42){const _0x3db780=a236_0x1e79,_0x3d210a=_0x2422f1();while(!![]){try{const _0x5abd16=-parseInt(_0x3db780(0x15c))/0x1+parseInt(_0x3db780(0x155))/0x2*(-parseInt(_0x3db780(0x15a))/0x3)+parseInt(_0x3db780(0x156))/0x4+-parseInt(_0x3db780(0x154))/0x5+parseInt(_0x3db780(0x157))/0x6+parseInt(_0x3db780(0x158))/0x7+parseInt(_0x3db780(0x159))/0x8;if(_0x5abd16===_0x1c1b42)break;else _0x3d210a['push'](_0x3d210a['shift']());}catch(_0x4cd3e5){_0x3d210a['push'](_0x3d210a['shift']());}}}(a236_0x291b,0xf1591));function a236_0x1e79(_0x3ae68f,_0x2f0683){_0x3ae68f=_0x3ae68f-0x151;const _0x291ba3=a236_0x291b();let _0x1e79fc=_0x291ba3[_0x3ae68f];return _0x1e79fc;}function a236_0x291b(){const _0x9f05bb=['SIGINT','5675675GgkLGs','2WgOvNl','4759524bOlycT','765606dfaRMb','1821659gwikKn','18316672NlYZjr','5137254kdDHkH','exit','31189xjFpVP','then','beforeExit','once'];a236_0x291b=function(){return _0x9f05bb;};return a236_0x291b();}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 _0x3de1b4=a236_0x1e79;process[_0x3de1b4(0x152)](_0x3de1b4(0x151),()=>{void flushOtelNodeIfUsed();});const _0x3bb743=()=>{const _0x1b63f4=_0x3de1b4;void flushOtelNodeIfUsed()[_0x1b63f4(0x15d)](()=>process[_0x1b63f4(0x15b)](0x0));};process[_0x3de1b4(0x152)](_0x3de1b4(0x153),_0x3bb743),process['once']('SIGTERM',_0x3bb743);}export async function exitWithOtelShutdown(_0x24659d){const _0x9dfd78=a236_0x1e79;await flushOtelNodeIfUsed(),process[_0x9dfd78(0x15b)](_0x24659d);}
1
+ (function(_0x3151b4,_0x4b593c){const _0xef9564=a237_0x2d7c,_0x41d922=_0x3151b4();while(!![]){try{const _0x546130=-parseInt(_0xef9564(0xe9))/0x1+parseInt(_0xef9564(0xe4))/0x2*(parseInt(_0xef9564(0xe5))/0x3)+parseInt(_0xef9564(0xec))/0x4+parseInt(_0xef9564(0xe2))/0x5+parseInt(_0xef9564(0xe6))/0x6+parseInt(_0xef9564(0xea))/0x7+-parseInt(_0xef9564(0xe8))/0x8;if(_0x546130===_0x4b593c)break;else _0x41d922['push'](_0x41d922['shift']());}catch(_0x412ea4){_0x41d922['push'](_0x41d922['shift']());}}}(a237_0x2dbf,0xc8559));import{shutdownTraces}from'@lovrabet/otel-logger';function a237_0x2d7c(_0x5e279c,_0x665096){_0x5e279c=_0x5e279c-0xe2;const _0x2dbf9a=a237_0x2dbf();let _0x2d7c31=_0x2dbf9a[_0x5e279c];return _0x2d7c31;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a237_0x2dbf(){const _0x57c8cd=['6704250Xmketm','beforeExit','243132YjycLk','33rvZwii','3703176cyxIJF','SIGINT','33975856hwphQN','168030mLAhXH','3293367unXYrC','once','5879312uavDtB','exit'];a237_0x2dbf=function(){return _0x57c8cd;};return a237_0x2dbf();}export function registerOtelShutdownOnExit(){const _0x5b1742=a237_0x2d7c;process[_0x5b1742(0xeb)](_0x5b1742(0xe3),()=>{void flushOtelNodeIfUsed();});const _0x35da9d=()=>{const _0x431476=_0x5b1742;void flushOtelNodeIfUsed()['then'](()=>process[_0x431476(0xed)](0x0));};process['once'](_0x5b1742(0xe7),_0x35da9d),process[_0x5b1742(0xeb)]('SIGTERM',_0x35da9d);}export async function exitWithOtelShutdown(_0x19364e){const _0x25eadf=a237_0x2d7c;await flushOtelNodeIfUsed(),process[_0x25eadf(0xed)](_0x19364e);}
@@ -1 +1 @@
1
- function a237_0x1faf(_0x4bb957,_0x3aa31f){_0x4bb957=_0x4bb957-0xd3;const _0x476942=a237_0x4769();let _0x1fafb3=_0x476942[_0x4bb957];return _0x1fafb3;}const a237_0x2a400d=a237_0x1faf;(function(_0x62a104,_0x3b7489){const _0x518bf6=a237_0x1faf,_0xe84f42=_0x62a104();while(!![]){try{const _0x37f027=-parseInt(_0x518bf6(0xe0))/0x1+-parseInt(_0x518bf6(0xdd))/0x2+-parseInt(_0x518bf6(0xda))/0x3*(-parseInt(_0x518bf6(0xdf))/0x4)+parseInt(_0x518bf6(0xe2))/0x5*(-parseInt(_0x518bf6(0xd5))/0x6)+-parseInt(_0x518bf6(0xd7))/0x7*(parseInt(_0x518bf6(0xd8))/0x8)+-parseInt(_0x518bf6(0xde))/0x9*(parseInt(_0x518bf6(0xd9))/0xa)+parseInt(_0x518bf6(0xd4))/0xb*(parseInt(_0x518bf6(0xe1))/0xc);if(_0x37f027===_0x3b7489)break;else _0xe84f42['push'](_0xe84f42['shift']());}catch(_0x5a19fb){_0xe84f42['push'](_0xe84f42['shift']());}}}(a237_0x4769,0x785b0));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a237_0x2a400d(0xd3);export async function sendCliTraceLog(_0x2ab227){const _0x3868bd=a237_0x2a400d;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2ab227[_0x3868bd(0xd6)]??DEFAULT_TRACE_NAME,'version':_0x2ab227['version']??getCliVersion(),'spanName':_0x2ab227['spanName'],'eventType':'manual','logData':_0x2ab227[_0x3868bd(0xdc)],..._0x2ab227['traceparent']&&{'traceparent':_0x2ab227[_0x3868bd(0xdb)]}});}function a237_0x4769(){const _0x43c6f7=['traceparent','logData','711890xZhEqY','35928GMEJCM','74600QJYMpk','24666MnEgxO','72QtVyDz','2066270NCPWrY','rabetbase-cli','1793726EeLApQ','12jKPSRx','traceName','21obQpvu','33528IGoeXd','590YyUzdu','156NGzJgx'];a237_0x4769=function(){return _0x43c6f7;};return a237_0x4769();}
1
+ const a238_0x1ea99b=a238_0x5ae7;(function(_0x188713,_0x2a4a05){const _0x1944f9=a238_0x5ae7,_0x3f9b94=_0x188713();while(!![]){try{const _0x3a704a=parseInt(_0x1944f9(0x7b))/0x1*(parseInt(_0x1944f9(0x7d))/0x2)+parseInt(_0x1944f9(0x79))/0x3+-parseInt(_0x1944f9(0x74))/0x4+-parseInt(_0x1944f9(0x70))/0x5*(-parseInt(_0x1944f9(0x6d))/0x6)+-parseInt(_0x1944f9(0x7a))/0x7*(parseInt(_0x1944f9(0x76))/0x8)+parseInt(_0x1944f9(0x78))/0x9+parseInt(_0x1944f9(0x6f))/0xa*(-parseInt(_0x1944f9(0x7e))/0xb);if(_0x3a704a===_0x2a4a05)break;else _0x3f9b94['push'](_0x3f9b94['shift']());}catch(_0x2a974b){_0x3f9b94['push'](_0x3f9b94['shift']());}}}(a238_0x4b0e,0x460f9));function a238_0x5ae7(_0x4dedc3,_0x20e84c){_0x4dedc3=_0x4dedc3-0x6d;const _0x4b0eb5=a238_0x4b0e();let _0x5ae75d=_0x4b0eb5[_0x4dedc3];return _0x5ae75d;}import{sendTraceLog}from'@lovrabet/otel-logger';function a238_0x4b0e(){const _0x1652e6=['2570407bKxHIP','247227HCrScC','traceName','2eDjifw','11KlPIPh','25512BrBaum','version','2558140ZozOzI','405uKUUZz','logData','manual','rabetbase-cli','673180QhjFFO','spanName','8OjHbva','traceparent','74178HHTBHZ','1435194SyHNXa'];a238_0x4b0e=function(){return _0x1652e6;};return a238_0x4b0e();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a238_0x1ea99b(0x73);export async function sendCliTraceLog(_0x39fc7e){const _0x39fcb4=a238_0x1ea99b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x39fc7e[_0x39fcb4(0x7c)]??DEFAULT_TRACE_NAME,'version':_0x39fc7e[_0x39fcb4(0x6e)]??getCliVersion(),'spanName':_0x39fc7e[_0x39fcb4(0x75)],'eventType':_0x39fcb4(0x72),'logData':_0x39fc7e[_0x39fcb4(0x71)],..._0x39fc7e[_0x39fcb4(0x77)]&&{'traceparent':_0x39fc7e[_0x39fcb4(0x77)]}});}
@@ -1 +1 @@
1
- const a238_0x2ea74b=a238_0x3dec;function a238_0x3dec(_0x17adbe,_0x3e2077){_0x17adbe=_0x17adbe-0x1e7;const _0x19468f=a238_0x1946();let _0x3dec4d=_0x19468f[_0x17adbe];return _0x3dec4d;}function a238_0x1946(){const _0x585ef4=['346690jvfozT','10108210PfHrgf','57cEcKda','originalBytes','title','description','sanitize','platform-issue-log-collect','redactionKinds','44592IUGZPd','117vFATMg','redactionCount','1131049Xaxelm','223866ppRWst','join','1185RMZOzO','340932TQNjSn','8797168KBXeBV'];a238_0x1946=function(){return _0x585ef4;};return a238_0x1946();}(function(_0x155bad,_0x2a4b2c){const _0x11e4f2=a238_0x3dec,_0x1b9c50=_0x155bad();while(!![]){try{const _0x562624=parseInt(_0x11e4f2(0x1eb))/0x1+parseInt(_0x11e4f2(0x1ec))/0x2+parseInt(_0x11e4f2(0x1f3))/0x3*(parseInt(_0x11e4f2(0x1ef))/0x4)+-parseInt(_0x11e4f2(0x1ee))/0x5*(parseInt(_0x11e4f2(0x1e8))/0x6)+parseInt(_0x11e4f2(0x1f2))/0x7+-parseInt(_0x11e4f2(0x1f0))/0x8+parseInt(_0x11e4f2(0x1e9))/0x9*(-parseInt(_0x11e4f2(0x1f1))/0xa);if(_0x562624===_0x2a4b2c)break;else _0x1b9c50['push'](_0x1b9c50['shift']());}catch(_0x2ca155){_0x1b9c50['push'](_0x1b9c50['shift']());}}}(a238_0x1946,0xf2d98));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a238_0x2ea74b(0x1f8);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x3bf092){const _0x422b71=a238_0x2ea74b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3bf092[_0x422b71(0x1f5)],'issue.description':_0x3bf092[_0x422b71(0x1f6)],..._0x3bf092[_0x422b71(0x1f7)]?{'issue.description_original_bytes':_0x3bf092[_0x422b71(0x1f7)][_0x422b71(0x1f4)],'issue.description_truncated':_0x3bf092[_0x422b71(0x1f7)]['truncated'],'issue.description_redactions':_0x3bf092['sanitize'][_0x422b71(0x1ea)],'issue.description_redaction_kinds':_0x3bf092[_0x422b71(0x1f7)][_0x422b71(0x1e7)][_0x422b71(0x1ed)](',')}:{}}});}
1
+ const a239_0x5ab45f=a239_0x3129;(function(_0x58cea7,_0x5898de){const _0x5b3ec0=a239_0x3129,_0x21970b=_0x58cea7();while(!![]){try{const _0x36552b=-parseInt(_0x5b3ec0(0x16b))/0x1*(-parseInt(_0x5b3ec0(0x166))/0x2)+-parseInt(_0x5b3ec0(0x162))/0x3+parseInt(_0x5b3ec0(0x167))/0x4*(parseInt(_0x5b3ec0(0x164))/0x5)+parseInt(_0x5b3ec0(0x165))/0x6+-parseInt(_0x5b3ec0(0x168))/0x7*(-parseInt(_0x5b3ec0(0x160))/0x8)+parseInt(_0x5b3ec0(0x16e))/0x9+-parseInt(_0x5b3ec0(0x15f))/0xa;if(_0x36552b===_0x5898de)break;else _0x21970b['push'](_0x21970b['shift']());}catch(_0x41cdde){_0x21970b['push'](_0x21970b['shift']());}}}(a239_0xded5,0x669d1));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a239_0x5ab45f(0x15e);function a239_0x3129(_0x1bbc38,_0x3064bf){_0x1bbc38=_0x1bbc38-0x15e;const _0xded510=a239_0xded5();let _0x312976=_0xded510[_0x1bbc38];return _0x312976;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a239_0xded5(){const _0xf217a5=['originalBytes','truncated','3066858bBDzxu','redactionCount','platform-issue-log-collect','7484640vejekZ','5387288vFABdH','title','1606575QRWLts','join','30065xdHpNP','502950SNENnu','2KObFwr','92luEFaf','7tikWnf','redactionKinds','sanitize','467997JLkXFd'];a239_0xded5=function(){return _0xf217a5;};return a239_0xded5();}export async function sendPlatformIssueCollectLog(_0x58c5d5){const _0x5281a6=a239_0x5ab45f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x58c5d5[_0x5281a6(0x161)],'issue.description':_0x58c5d5['description'],..._0x58c5d5['sanitize']?{'issue.description_original_bytes':_0x58c5d5[_0x5281a6(0x16a)][_0x5281a6(0x16c)],'issue.description_truncated':_0x58c5d5[_0x5281a6(0x16a)][_0x5281a6(0x16d)],'issue.description_redactions':_0x58c5d5[_0x5281a6(0x16a)][_0x5281a6(0x16f)],'issue.description_redaction_kinds':_0x58c5d5[_0x5281a6(0x16a)][_0x5281a6(0x169)][_0x5281a6(0x163)](',')}:{}}});}
@@ -1 +1 @@
1
- function a240_0x4bb8(_0x250c43,_0x4c7324){_0x250c43=_0x250c43-0x6d;const _0x49a5ad=a240_0x49a5();let _0x4bb8bb=_0x49a5ad[_0x250c43];return _0x4bb8bb;}const a240_0x4a6bd3=a240_0x4bb8;(function(_0x515c96,_0x5893a0){const _0x2314af=a240_0x4bb8,_0xdf3916=_0x515c96();while(!![]){try{const _0x8c2140=parseInt(_0x2314af(0x99))/0x1*(-parseInt(_0x2314af(0xa0))/0x2)+parseInt(_0x2314af(0x81))/0x3+parseInt(_0x2314af(0x94))/0x4*(-parseInt(_0x2314af(0x6f))/0x5)+parseInt(_0x2314af(0x8c))/0x6+parseInt(_0x2314af(0x8a))/0x7*(parseInt(_0x2314af(0x89))/0x8)+-parseInt(_0x2314af(0x84))/0x9+-parseInt(_0x2314af(0x9a))/0xa*(parseInt(_0x2314af(0x80))/0xb);if(_0x8c2140===_0x5893a0)break;else _0xdf3916['push'](_0xdf3916['shift']());}catch(_0x1b3a0f){_0xdf3916['push'](_0xdf3916['shift']());}}}(a240_0x49a5,0x8b558));export const CORE_IDE_CONFIGS={'cursor':{'name':a240_0x4a6bd3(0x72),'description':a240_0x4a6bd3(0x7f),'folders':[a240_0x4a6bd3(0x98),a240_0x4a6bd3(0x7e)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a240_0x4a6bd3(0x93)}]},'windsurf':{'name':a240_0x4a6bd3(0x7a),'description':'Windsurf\x20IDE','folders':[a240_0x4a6bd3(0x88)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x96),'template':'SKILL.md.tpl'}]},'claude':{'name':a240_0x4a6bd3(0x9b),'description':a240_0x4a6bd3(0x9b),'folders':[a240_0x4a6bd3(0x83)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x6e),'template':a240_0x4a6bd3(0x93)}]},'cline':{'name':a240_0x4a6bd3(0x90),'description':a240_0x4a6bd3(0x95),'folders':[a240_0x4a6bd3(0xa2)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x7c),'template':'SKILL.md.tpl'}]},'codex':{'name':'Codex','description':a240_0x4a6bd3(0x8f),'folders':['.codex'],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x8b),'template':'SKILL.md.tpl'}]},'opencode':{'name':a240_0x4a6bd3(0x9f),'description':a240_0x4a6bd3(0x75),'folders':[a240_0x4a6bd3(0x9c)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x76),'template':'SKILL.md.tpl'}]},'qoder':{'name':a240_0x4a6bd3(0x77),'description':a240_0x4a6bd3(0x78),'folders':[a240_0x4a6bd3(0x74)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x9d),'template':a240_0x4a6bd3(0x93)},{'type':a240_0x4a6bd3(0xa3),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a240_0x4a6bd3(0x8e),'description':a240_0x4a6bd3(0xa1),'folders':['.codebuddy'],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x92),'template':a240_0x4a6bd3(0x93)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x8d),'template':a240_0x4a6bd3(0x93)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a240_0x4a6bd3(0x7d),'folders':[a240_0x4a6bd3(0x82)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x85),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a240_0x4a6bd3(0x73),'description':a240_0x4a6bd3(0x97),'folders':[a240_0x4a6bd3(0x82)],'files':[{'type':a240_0x4a6bd3(0xa3),'path':a240_0x4a6bd3(0x85),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=['claude',a240_0x4a6bd3(0x70),'codebuddy',a240_0x4a6bd3(0x6d),'cursor',a240_0x4a6bd3(0x7b),a240_0x4a6bd3(0x71),a240_0x4a6bd3(0x91),a240_0x4a6bd3(0x86)];function a240_0x49a5(){const _0x18f29c=['.opencode/skills/lovrabet/SKILL.md','Qoder','Qoder\x20IDE','codebuddy','Windsurf','opencode','.cline/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.cursor','Cursor\x20IDE','12606jVfypy','1213287SQfcIP','.agent','.claude','2959902pcBCFn','.agent/skills/lovrabet/SKILL.md','windsurf','cursor','.windsurf','7284296qicsLn','7JpKMPD','.codex/skills/lovrabet/SKILL.md','5336646yQwIuF','.trae/skills/lovrabet/SKILL.md','CodeBuddy','Codex\x20IDE','Cline','trae','.codebuddy/skills/lovrabet/SKILL.md','SKILL.md.tpl','244nwzEgk','Cline\x20IDE','.windsurf/workflows/rabetbase.md','Antigravity\x20IDE','.cursorrules','4PnmsHa','1230ugOCqE','Claude\x20Code','.opencode','.qoder/rules/rabetbase.md','claude','OpenCode','175822dIFAQB','CodeBuddy\x20IDE','.cline','file','codex','.claude/skills/lovrabet/SKILL.md','66575DXppQz','cline','qoder','Cursor','Antigravity','.qoder','OpenCode\x20IDE'];a240_0x49a5=function(){return _0x18f29c;};return a240_0x49a5();}export const IDE_LIST=['antigravity','claude',a240_0x4a6bd3(0x70),a240_0x4a6bd3(0x79),a240_0x4a6bd3(0x6d),'cursor',a240_0x4a6bd3(0x7b),'qoder',a240_0x4a6bd3(0x91),a240_0x4a6bd3(0x86),'agent'];export const ALL_CORE_IDES=[a240_0x4a6bd3(0x87),a240_0x4a6bd3(0x86),a240_0x4a6bd3(0x9e),a240_0x4a6bd3(0x70),a240_0x4a6bd3(0x6d),'opencode','qoder',a240_0x4a6bd3(0x79),'trae'];
1
+ const a241_0x6028eb=a241_0x4858;function a241_0x14a1(){const _0x4d39f7=['.windsurf/workflows/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','2TJsBuK','其他\x20(通用模板)','Claude\x20Code','.agent','qoder','.windsurf','codebuddy','.agent/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','12oTmuBR','windsurf','.cursor','.opencode','442035McISiJ','cline','Codex','8145ortxXc','840476pDPXFx','Cursor\x20IDE','Trae','Cline\x20IDE','CodeBuddy\x20IDE','598635yPfKAv','.codebuddy','antigravity','SKILL.md.tpl','.cline/skills/lovrabet/SKILL.md','311850rlfCxi','.codebuddy/skills/lovrabet/SKILL.md','.cline','Qoder\x20IDE','cursor','OpenCode\x20IDE','567762XPSuGx','Antigravity\x20IDE','.cursor/skills/rabetbase.md','Windsurf\x20IDE','Codex\x20IDE','Windsurf','agent','Cursor','.qoder/skills/lovrabet/SKILL.md','.qoder','file','.codex','620xHmOls','Antigravity','通用模板\x20-\x20兜底方案','codex','2872inyoiU','CodeBuddy','opencode','claude','224829rMRshX','trae'];a241_0x14a1=function(){return _0x4d39f7;};return a241_0x14a1();}(function(_0xcbc8cb,_0x33c71d){const _0x1e021f=a241_0x4858,_0x45f0c9=_0xcbc8cb();while(!![]){try{const _0x4ef19b=parseInt(_0x1e021f(0x8f))/0x1*(-parseInt(_0x1e021f(0x81))/0x2)+parseInt(_0x1e021f(0x69))/0x3+parseInt(_0x1e021f(0x8b))/0x4*(-parseInt(_0x1e021f(0x98))/0x5)+parseInt(_0x1e021f(0x9d))/0x6+-parseInt(_0x1e021f(0x93))/0x7+parseInt(_0x1e021f(0x79))/0x8*(-parseInt(_0x1e021f(0x92))/0x9)+parseInt(_0x1e021f(0x75))/0xa*(parseInt(_0x1e021f(0x7d))/0xb);if(_0x4ef19b===_0x33c71d)break;else _0x45f0c9['push'](_0x45f0c9['shift']());}catch(_0x3941f1){_0x45f0c9['push'](_0x45f0c9['shift']());}}}(a241_0x14a1,0x4007c));export const CORE_IDE_CONFIGS={'cursor':{'name':a241_0x6028eb(0x70),'description':a241_0x6028eb(0x94),'folders':['.cursorrules',a241_0x6028eb(0x8d)],'files':[{'type':'file','path':a241_0x6028eb(0x6b),'template':a241_0x6028eb(0x9b)}]},'windsurf':{'name':a241_0x6028eb(0x6e),'description':a241_0x6028eb(0x6c),'folders':[a241_0x6028eb(0x86)],'files':[{'type':a241_0x6028eb(0x73),'path':a241_0x6028eb(0x7f),'template':a241_0x6028eb(0x9b)}]},'claude':{'name':a241_0x6028eb(0x83),'description':a241_0x6028eb(0x83),'folders':['.claude'],'files':[{'type':a241_0x6028eb(0x73),'path':a241_0x6028eb(0x8a),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a241_0x6028eb(0x96),'folders':[a241_0x6028eb(0x65)],'files':[{'type':'file','path':a241_0x6028eb(0x9c),'template':a241_0x6028eb(0x9b)}]},'codex':{'name':a241_0x6028eb(0x91),'description':a241_0x6028eb(0x6d),'folders':[a241_0x6028eb(0x74)],'files':[{'type':a241_0x6028eb(0x73),'path':'.codex/skills/lovrabet/SKILL.md','template':a241_0x6028eb(0x9b)}]},'opencode':{'name':'OpenCode','description':a241_0x6028eb(0x68),'folders':[a241_0x6028eb(0x8e)],'files':[{'type':a241_0x6028eb(0x73),'path':a241_0x6028eb(0x80),'template':a241_0x6028eb(0x9b)}]},'qoder':{'name':'Qoder','description':a241_0x6028eb(0x66),'folders':[a241_0x6028eb(0x72)],'files':[{'type':a241_0x6028eb(0x73),'path':'.qoder/rules/rabetbase.md','template':'SKILL.md.tpl'},{'type':a241_0x6028eb(0x73),'path':a241_0x6028eb(0x71),'template':a241_0x6028eb(0x9b)}]},'codebuddy':{'name':a241_0x6028eb(0x7a),'description':a241_0x6028eb(0x97),'folders':[a241_0x6028eb(0x99)],'files':[{'type':a241_0x6028eb(0x73),'path':a241_0x6028eb(0x64),'template':a241_0x6028eb(0x9b)}]},'trae':{'name':a241_0x6028eb(0x95),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a241_0x6028eb(0x73),'path':a241_0x6028eb(0x89),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a241_0x6028eb(0x82),'description':a241_0x6028eb(0x77),'folders':[a241_0x6028eb(0x84)],'files':[{'type':a241_0x6028eb(0x73),'path':'.agent/skills/lovrabet/SKILL.md','template':a241_0x6028eb(0x9b)}]},'antigravity':{'name':a241_0x6028eb(0x76),'description':a241_0x6028eb(0x6a),'folders':[a241_0x6028eb(0x84)],'files':[{'type':a241_0x6028eb(0x73),'path':a241_0x6028eb(0x88),'template':a241_0x6028eb(0x9b)}]}};function a241_0x4858(_0x394556,_0x1c28d8){_0x394556=_0x394556-0x64;const _0x14a1f0=a241_0x14a1();let _0x48587e=_0x14a1f0[_0x394556];return _0x48587e;}export const CORE_IDE_LIST=['claude',a241_0x6028eb(0x90),a241_0x6028eb(0x87),a241_0x6028eb(0x78),'cursor','opencode',a241_0x6028eb(0x85),a241_0x6028eb(0x7e),a241_0x6028eb(0x8c)];export const IDE_LIST=[a241_0x6028eb(0x9a),a241_0x6028eb(0x7c),a241_0x6028eb(0x90),a241_0x6028eb(0x87),a241_0x6028eb(0x78),'cursor',a241_0x6028eb(0x7b),a241_0x6028eb(0x85),'trae',a241_0x6028eb(0x8c),a241_0x6028eb(0x6f)];export const ALL_CORE_IDES=[a241_0x6028eb(0x67),a241_0x6028eb(0x8c),'claude',a241_0x6028eb(0x90),'codex',a241_0x6028eb(0x7b),a241_0x6028eb(0x85),a241_0x6028eb(0x87),a241_0x6028eb(0x7e)];
@@ -1 +1 @@
1
- function a241_0x38ba(){const _0x5241c7=['19thcNDH','11290430AJLZaY','1441500XvwWXZ','54306846zsBZgo','9QVhNJF','5566864DWBoDl','37764WiUYzY','2025107ximmbQ','5226FqECwM','24UhUEDW','3970oxeQZH'];a241_0x38ba=function(){return _0x5241c7;};return a241_0x38ba();}(function(_0x4c2574,_0x1114fe){const _0x1a72b7=a241_0x2b03,_0x34601c=_0x4c2574();while(!![]){try{const _0x3e2144=parseInt(_0x1a72b7(0x156))/0x1*(parseInt(_0x1a72b7(0x15c))/0x2)+-parseInt(_0x1a72b7(0x158))/0x3+-parseInt(_0x1a72b7(0x15b))/0x4+parseInt(_0x1a72b7(0x155))/0x5*(-parseInt(_0x1a72b7(0x153))/0x6)+parseInt(_0x1a72b7(0x15d))/0x7*(-parseInt(_0x1a72b7(0x154))/0x8)+parseInt(_0x1a72b7(0x15a))/0x9*(-parseInt(_0x1a72b7(0x157))/0xa)+parseInt(_0x1a72b7(0x159))/0xb;if(_0x3e2144===_0x1114fe)break;else _0x34601c['push'](_0x34601c['shift']());}catch(_0x8f9090){_0x34601c['push'](_0x34601c['shift']());}}}(a241_0x38ba,0xb3720));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a241_0x2b03(_0x3ce7d0,_0x174d81){_0x3ce7d0=_0x3ce7d0-0x153;const _0x38ba23=a241_0x38ba();let _0x2b0337=_0x38ba23[_0x3ce7d0];return _0x2b0337;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x88b23f,_0x41eb8b){const _0x5a50e5=a242_0x5768,_0x3423f9=_0x88b23f();while(!![]){try{const _0xb03d8f=-parseInt(_0x5a50e5(0x1e7))/0x1*(parseInt(_0x5a50e5(0x1ea))/0x2)+parseInt(_0x5a50e5(0x1e5))/0x3*(-parseInt(_0x5a50e5(0x1e3))/0x4)+parseInt(_0x5a50e5(0x1e2))/0x5*(-parseInt(_0x5a50e5(0x1e1))/0x6)+-parseInt(_0x5a50e5(0x1e0))/0x7*(parseInt(_0x5a50e5(0x1df))/0x8)+parseInt(_0x5a50e5(0x1e4))/0x9+parseInt(_0x5a50e5(0x1e6))/0xa*(parseInt(_0x5a50e5(0x1e9))/0xb)+parseInt(_0x5a50e5(0x1e8))/0xc;if(_0xb03d8f===_0x41eb8b)break;else _0x3423f9['push'](_0x3423f9['shift']());}catch(_0xef41d9){_0x3423f9['push'](_0x3423f9['shift']());}}}(a242_0x2119,0x6a5a7));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a242_0x2119(){const _0xe4b9cc=['413NKDvYf','243780VKSMGs','85XZQASd','12qfKPGh','1854873OFxlqH','554475yBDJVj','10SZIwvN','1FODmmV','27266208QYREwA','2845447aJsWkB','1053604THNYLa','71776wlarvC'];a242_0x2119=function(){return _0xe4b9cc;};return a242_0x2119();}function a242_0x5768(_0x32e814,_0x2e61a2){_0x32e814=_0x32e814-0x1df;const _0x211957=a242_0x2119();let _0x57685f=_0x211957[_0x32e814];return _0x57685f;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a242_0x2723(_0x3aafc8,_0x5de4c2){_0x3aafc8=_0x3aafc8-0x12f;const _0x47875b=a242_0x4787();let _0x272367=_0x47875b[_0x3aafc8];return _0x272367;}(function(_0x1338c8,_0x34c3b6){const _0xb66892=a242_0x2723,_0x444d4d=_0x1338c8();while(!![]){try{const _0x2fccc2=-parseInt(_0xb66892(0x140))/0x1+parseInt(_0xb66892(0x13b))/0x2*(-parseInt(_0xb66892(0x136))/0x3)+parseInt(_0xb66892(0x132))/0x4*(parseInt(_0xb66892(0x137))/0x5)+-parseInt(_0xb66892(0x13e))/0x6+-parseInt(_0xb66892(0x138))/0x7*(-parseInt(_0xb66892(0x12f))/0x8)+-parseInt(_0xb66892(0x13c))/0x9+parseInt(_0xb66892(0x13f))/0xa;if(_0x2fccc2===_0x34c3b6)break;else _0x444d4d['push'](_0x444d4d['shift']());}catch(_0x53c95d){_0x444d4d['push'](_0x444d4d['shift']());}}}(a242_0x4787,0xd9b2a));import{getTemplateBaseUrl}from'../utils/config.js';function a242_0x4787(){const _0x418f88=['120AkVwvh','json','/config/index.json','28Lmrpvi','stableVersion','/config.json','node','21ddzRNz','1044755psTnTp','415884RduuFm','application/json','now','430558aDgvTJ','4168449GORAdy','cli','8349738IlDBAs','28137360EAEsvD','914146zWefCi'];a242_0x4787=function(){return _0x418f88;};return a242_0x4787();}export async function fetchCdnConfig(){const _0x188995=a242_0x2723,_0x3cd608=getTemplateBaseUrl(),_0x2a62ce=[_0x3cd608+_0x188995(0x134),_0x3cd608+_0x188995(0x131)];for(const _0x49def1 of _0x2a62ce){try{const _0x18eaf2=await fetch(_0x49def1,{'headers':{'Accept':_0x188995(0x139)}});if(!_0x18eaf2['ok'])continue;const _0x589ecb=await _0x18eaf2[_0x188995(0x130)]();if(!_0x589ecb[_0x188995(0x13d)]?.[_0x188995(0x133)]||!_0x589ecb['sdk']?.[_0x188995(0x135)]?.[_0x188995(0x133)])continue;return _0x589ecb;}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 _0x579dd4=a242_0x2723,_0x3dac6f=Date[_0x579dd4(0x13a)]();if(hasCachedConfig){const _0x149820=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3dac6f-cacheTime<_0x149820)return cachedConfig;}const _0x555d6d=await fetchCdnConfig();return cachedConfig=_0x555d6d,cacheTime=_0x3dac6f,hasCachedConfig=!![],_0x555d6d;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x4caf63,_0x140ee8){const _0x2e3dd6=a243_0x3f95,_0x6525ea=_0x4caf63();while(!![]){try{const _0x3f2428=-parseInt(_0x2e3dd6(0x1c6))/0x1+parseInt(_0x2e3dd6(0x1bc))/0x2*(-parseInt(_0x2e3dd6(0x1b8))/0x3)+parseInt(_0x2e3dd6(0x1c7))/0x4*(-parseInt(_0x2e3dd6(0x1ba))/0x5)+parseInt(_0x2e3dd6(0x1bb))/0x6+-parseInt(_0x2e3dd6(0x1c5))/0x7*(-parseInt(_0x2e3dd6(0x1c4))/0x8)+-parseInt(_0x2e3dd6(0x1c1))/0x9*(-parseInt(_0x2e3dd6(0x1bd))/0xa)+parseInt(_0x2e3dd6(0x1bf))/0xb;if(_0x3f2428===_0x140ee8)break;else _0x6525ea['push'](_0x6525ea['shift']());}catch(_0x31e01d){_0x6525ea['push'](_0x6525ea['shift']());}}}(a243_0x142c,0x417ca));function a243_0x142c(){const _0x129dfe=['/config/index.json','1162155QUdMUB','2882904FDoKoV','8806rAqXfu','1258750xxTdqk','application/json','2248081kvLAWa','json','27rNyrCS','stableVersion','cli','1603752UzZWEW','7cDfjeY','405641AWMBqf','4uGbCKZ','/config.json','243lhCiOl'];a243_0x142c=function(){return _0x129dfe;};return a243_0x142c();}import{getTemplateBaseUrl}from'../utils/config.js';function a243_0x3f95(_0x17ebd2,_0x3e085e){_0x17ebd2=_0x17ebd2-0x1b7;const _0x142ca7=a243_0x142c();let _0x3f9569=_0x142ca7[_0x17ebd2];return _0x3f9569;}export async function fetchCdnConfig(){const _0x5b531a=a243_0x3f95,_0x106b60=getTemplateBaseUrl(),_0x22e604=[_0x106b60+_0x5b531a(0x1b7),_0x106b60+_0x5b531a(0x1b9)];for(const _0x5885aa of _0x22e604){try{const _0x59d5a8=await fetch(_0x5885aa,{'headers':{'Accept':_0x5b531a(0x1be)}});if(!_0x59d5a8['ok'])continue;const _0x2c19f7=await _0x59d5a8[_0x5b531a(0x1c0)]();if(!_0x2c19f7[_0x5b531a(0x1c3)]?.[_0x5b531a(0x1c2)]||!_0x2c19f7['sdk']?.['node']?.[_0x5b531a(0x1c2)])continue;return _0x2c19f7;}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 _0x42f8b3=Date['now']();if(hasCachedConfig){const _0x29dbde=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x42f8b3-cacheTime<_0x29dbde)return cachedConfig;}const _0x4d6f92=await fetchCdnConfig();return cachedConfig=_0x4d6f92,cacheTime=_0x42f8b3,hasCachedConfig=!![],_0x4d6f92;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a243_0x428409=a243_0x30d7;function a243_0x30d7(_0x5db21f,_0x2264b1){_0x5db21f=_0x5db21f-0x6e;const _0x1a68d6=a243_0x1a68();let _0x30d799=_0x1a68d6[_0x5db21f];return _0x30d799;}(function(_0x771f5,_0x5f1c34){const _0x27e1ca=a243_0x30d7,_0x323fc6=_0x771f5();while(!![]){try{const _0x53827e=-parseInt(_0x27e1ca(0x7f))/0x1+parseInt(_0x27e1ca(0x85))/0x2+-parseInt(_0x27e1ca(0x78))/0x3+-parseInt(_0x27e1ca(0x8e))/0x4*(parseInt(_0x27e1ca(0x7b))/0x5)+parseInt(_0x27e1ca(0x8a))/0x6*(-parseInt(_0x27e1ca(0x70))/0x7)+parseInt(_0x27e1ca(0x74))/0x8*(parseInt(_0x27e1ca(0x79))/0x9)+parseInt(_0x27e1ca(0x8c))/0xa;if(_0x53827e===_0x5f1c34)break;else _0x323fc6['push'](_0x323fc6['shift']());}catch(_0x520a0d){_0x323fc6['push'](_0x323fc6['shift']());}}}(a243_0x1a68,0x8b61a));import a243_0x24fa18 from'node:fs';import a243_0x46901b from'node:path';import a243_0x1a21ab from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a243_0x1a68(){const _0x3e3266=['all','some','package.json','readFileSync','join','minVersion','\x20\x20\x20Current\x20version:\x20','version','665vOBvkW','coerce','\x1b[1m','latest','8DJaIhN','utf8','existsSync','sdk','2734734WjxhKe','6258807xFDIdE','@lovrabet/sdk','4805vcaODR','utf-8','parse','\x20\x20\x20Stable\x20version:\x20','997728evngJD','\x1b[0m','test','node_modules','packageName','npm\x20install\x20','331894okVeQs','stableVersion','log','devDependencies','node','50334OcwFfD','dependencies','30519790xVzOjX','1.2.0','2648IjfFKw'];a243_0x1a68=function(){return _0x3e3266;};return a243_0x1a68();}const FALLBACK_MIN_SDK_VERSION=a243_0x428409(0x8d);function isNonNumericVersion(_0x92a31d){const _0xcea70a=a243_0x428409,_0x1f4812=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1f4812[_0xcea70a(0x90)](_0x1ab1a9=>_0x1ab1a9[_0xcea70a(0x81)](_0x92a31d));}function getInstalledVersion(_0x19b92a,_0x4c60a8){const _0x4b1113=a243_0x428409;try{const _0x40ecab=a243_0x46901b['join'](_0x19b92a,_0x4b1113(0x82),_0x4c60a8,'package.json');if(a243_0x24fa18['existsSync'](_0x40ecab)){const _0x5a8c13=JSON[_0x4b1113(0x7d)](a243_0x24fa18[_0x4b1113(0x92)](_0x40ecab,_0x4b1113(0x7c)));return _0x5a8c13[_0x4b1113(0x6f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x49488c=a243_0x428409;try{const _0x53fcb3=await getCdnConfig();return _0x53fcb3?.[_0x49488c(0x77)]?.[_0x49488c(0x89)]?.[_0x49488c(0x86)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4c40b1=a243_0x428409;try{const _0x125659=await getCdnConfig();return _0x125659?.['sdk']?.['node']?.[_0x4c40b1(0x83)]||_0x4c40b1(0x7a);}catch{return _0x4c40b1(0x7a);}}export async function checkSdkVersion(_0x11233d){const _0x485aca=a243_0x428409,_0x47fa8d=a243_0x46901b['join'](_0x11233d,_0x485aca(0x91)),[_0x476b02,_0x27e018]=await Promise[_0x485aca(0x8f)]([getSdkStableVersion(),getSdkPackageName()]),_0x2101a7=_0x476b02||FALLBACK_MIN_SDK_VERSION;if(!a243_0x24fa18[_0x485aca(0x76)](_0x47fa8d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};try{const _0x26a02e=JSON[_0x485aca(0x7d)](a243_0x24fa18[_0x485aca(0x92)](_0x47fa8d,_0x485aca(0x75))),_0x487170=_0x26a02e['dependencies']||{},_0x4711b7=_0x26a02e[_0x485aca(0x88)]||{},_0x247d55=_0x487170[_0x27e018]||_0x4711b7[_0x27e018];if(!_0x247d55)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};let _0x47aa7b=getInstalledVersion(_0x11233d,_0x27e018);!_0x47aa7b&&(_0x47aa7b=_0x247d55);if(isNonNumericVersion(_0x247d55))return{'installed':!![],'version':_0x47aa7b,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};const _0x173ed3=a243_0x1a21ab[_0x485aca(0x71)](_0x47aa7b),_0x30a703=a243_0x1a21ab['coerce'](_0x2101a7),_0x4cc880=_0x173ed3&&_0x30a703?a243_0x1a21ab['lt'](_0x173ed3,_0x30a703):![];return{'installed':!![],'version':_0x47aa7b,'needsUpgrade':_0x4cc880,'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2101a7,'packageName':_0x27e018,'stableVersion':_0x476b02};}}export function checkSdkVersionSync(_0x4b8e0e){const _0xe0aa6d=a243_0x428409,_0x1739fc=a243_0x46901b[_0xe0aa6d(0x93)](_0x4b8e0e,'package.json'),_0x2dadd8=_0xe0aa6d(0x7a);if(!a243_0x24fa18[_0xe0aa6d(0x76)](_0x1739fc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};try{const _0x1b6712=JSON['parse'](a243_0x24fa18[_0xe0aa6d(0x92)](_0x1739fc,_0xe0aa6d(0x75))),_0x2fb304=_0x1b6712[_0xe0aa6d(0x8b)]||{},_0x52e5f8=_0x1b6712[_0xe0aa6d(0x88)]||{},_0x5624c6=_0x2fb304[_0x2dadd8]||_0x52e5f8[_0x2dadd8];if(!_0x5624c6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};let _0x5719ae=getInstalledVersion(_0x4b8e0e,_0x2dadd8);!_0x5719ae&&(_0x5719ae=_0x5624c6);if(isNonNumericVersion(_0x5624c6))return{'installed':!![],'version':_0x5719ae,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};const _0x2bde8e=a243_0x1a21ab['coerce'](_0x5719ae),_0x4d7946=_0x2bde8e?a243_0x1a21ab['lt'](_0x2bde8e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5719ae,'needsUpgrade':_0x4d7946,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2dadd8,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3bf9e5){const _0x18a835=a243_0x428409;if(!_0x3bf9e5['needsUpgrade'])return;const _0x1bafab='\x1b[33m',_0x21cdb0=_0x18a835(0x80),_0x46d1ba=_0x18a835(0x72),_0x114af1=_0x3bf9e5[_0x18a835(0x83)]||_0x18a835(0x7a),_0x3c6bad=_0x3bf9e5['stableVersion']||_0x3bf9e5[_0x18a835(0x94)],_0x358e2c=_0x18a835(0x84)+_0x114af1+'@'+(_0x3c6bad||_0x18a835(0x73));console[_0x18a835(0x87)](),console[_0x18a835(0x87)](''+_0x1bafab+_0x46d1ba+'↪\x20SDK\x20update\x20available'+_0x21cdb0),console[_0x18a835(0x87)](_0x1bafab+_0x18a835(0x6e)+_0x114af1+'@'+_0x3bf9e5['version']+_0x21cdb0),console[_0x18a835(0x87)](_0x1bafab+_0x18a835(0x7e)+_0x3c6bad+_0x21cdb0),console[_0x18a835(0x87)](_0x1bafab+'\x20\x20\x20Upgrade\x20command:\x20'+_0x358e2c+_0x21cdb0),console['log']();}
1
+ const a244_0x4ffac0=a244_0x51d0;(function(_0x1a8567,_0x4c51fc){const _0x4afc56=a244_0x51d0,_0x3957b5=_0x1a8567();while(!![]){try{const _0x5f2bd9=parseInt(_0x4afc56(0x167))/0x1+parseInt(_0x4afc56(0x150))/0x2*(-parseInt(_0x4afc56(0x145))/0x3)+parseInt(_0x4afc56(0x160))/0x4*(parseInt(_0x4afc56(0x146))/0x5)+-parseInt(_0x4afc56(0x158))/0x6*(-parseInt(_0x4afc56(0x166))/0x7)+parseInt(_0x4afc56(0x152))/0x8+parseInt(_0x4afc56(0x15e))/0x9*(-parseInt(_0x4afc56(0x15b))/0xa)+-parseInt(_0x4afc56(0x143))/0xb;if(_0x5f2bd9===_0x4c51fc)break;else _0x3957b5['push'](_0x3957b5['shift']());}catch(_0x37f562){_0x3957b5['push'](_0x3957b5['shift']());}}}(a244_0x1e44,0x4e7dc));import a244_0x4b7305 from'node:fs';import a244_0x15dfeb from'node:path';import a244_0x5494ed from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a244_0x4ffac0(0x14b);function isNonNumericVersion(_0x2be12b){const _0x305ec9=a244_0x4ffac0,_0x74b8ec=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x74b8ec[_0x305ec9(0x163)](_0x141027=>_0x141027[_0x305ec9(0x14d)](_0x2be12b));}function getInstalledVersion(_0x502adf,_0xd86a95){const _0xe81d5e=a244_0x4ffac0;try{const _0x1a9446=a244_0x15dfeb[_0xe81d5e(0x156)](_0x502adf,_0xe81d5e(0x164),_0xd86a95,_0xe81d5e(0x154));if(a244_0x4b7305[_0xe81d5e(0x14a)](_0x1a9446)){const _0x1a7ed1=JSON[_0xe81d5e(0x14f)](a244_0x4b7305[_0xe81d5e(0x14c)](_0x1a9446,_0xe81d5e(0x155)));return _0x1a7ed1[_0xe81d5e(0x15a)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3a4b5f=a244_0x4ffac0;try{const _0x1c40f4=await getCdnConfig();return _0x1c40f4?.[_0x3a4b5f(0x153)]?.[_0x3a4b5f(0x161)]?.['stableVersion']||null;}catch{return null;}}function a244_0x1e44(){const _0x520f90=['1556428TizLQM','node','\x20\x20\x20Current\x20version:\x20','some','node_modules','@lovrabet/sdk','623tlYQTI','275201pCnXXm','↪\x20SDK\x20update\x20available','4113989xnpjMe','packageName','3EyWqCr','5AaXakc','coerce','devDependencies','\x20\x20\x20Stable\x20version:\x20','existsSync','1.2.0','readFileSync','test','log','parse','1076828cEBixb','utf8','2133200lOYllY','sdk','package.json','utf-8','join','dependencies','35706DoyUKX','npm\x20install\x20','version','1133420MBruhV','latest','stableVersion','18ugPxMt','minVersion'];a244_0x1e44=function(){return _0x520f90;};return a244_0x1e44();}async function getSdkPackageName(){const _0x4a9e31=a244_0x4ffac0;try{const _0x28aa68=await getCdnConfig();return _0x28aa68?.['sdk']?.[_0x4a9e31(0x161)]?.[_0x4a9e31(0x144)]||_0x4a9e31(0x165);}catch{return _0x4a9e31(0x165);}}export async function checkSdkVersion(_0xada547){const _0x36c720=a244_0x4ffac0,_0x3ed796=a244_0x15dfeb[_0x36c720(0x156)](_0xada547,_0x36c720(0x154)),[_0xe9ed64,_0x84c592]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x45eaa8=_0xe9ed64||FALLBACK_MIN_SDK_VERSION;if(!a244_0x4b7305[_0x36c720(0x14a)](_0x3ed796))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x45eaa8,'packageName':_0x84c592,'stableVersion':_0xe9ed64};try{const _0x132af4=JSON[_0x36c720(0x14f)](a244_0x4b7305['readFileSync'](_0x3ed796,'utf8')),_0x265af1=_0x132af4[_0x36c720(0x157)]||{},_0x15ae5b=_0x132af4[_0x36c720(0x148)]||{},_0x1ecf3f=_0x265af1[_0x84c592]||_0x15ae5b[_0x84c592];if(!_0x1ecf3f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x45eaa8,'packageName':_0x84c592,'stableVersion':_0xe9ed64};let _0x2729a7=getInstalledVersion(_0xada547,_0x84c592);!_0x2729a7&&(_0x2729a7=_0x1ecf3f);if(isNonNumericVersion(_0x1ecf3f))return{'installed':!![],'version':_0x2729a7,'needsUpgrade':![],'minVersion':_0x45eaa8,'packageName':_0x84c592,'stableVersion':_0xe9ed64};const _0x35342d=a244_0x5494ed[_0x36c720(0x147)](_0x2729a7),_0x3a4ddf=a244_0x5494ed['coerce'](_0x45eaa8),_0x2066fb=_0x35342d&&_0x3a4ddf?a244_0x5494ed['lt'](_0x35342d,_0x3a4ddf):![];return{'installed':!![],'version':_0x2729a7,'needsUpgrade':_0x2066fb,'minVersion':_0x45eaa8,'packageName':_0x84c592,'stableVersion':_0xe9ed64};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x45eaa8,'packageName':_0x84c592,'stableVersion':_0xe9ed64};}}export function checkSdkVersionSync(_0x5bd854){const _0x46404e=a244_0x4ffac0,_0x56528d=a244_0x15dfeb['join'](_0x5bd854,_0x46404e(0x154)),_0x234c8f=_0x46404e(0x165);if(!a244_0x4b7305[_0x46404e(0x14a)](_0x56528d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x234c8f,'stableVersion':null};try{const _0x218cca=JSON[_0x46404e(0x14f)](a244_0x4b7305[_0x46404e(0x14c)](_0x56528d,_0x46404e(0x151))),_0x1dc785=_0x218cca[_0x46404e(0x157)]||{},_0x50a3bf=_0x218cca[_0x46404e(0x148)]||{},_0x4aaad5=_0x1dc785[_0x234c8f]||_0x50a3bf[_0x234c8f];if(!_0x4aaad5)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x234c8f,'stableVersion':null};let _0x5219a6=getInstalledVersion(_0x5bd854,_0x234c8f);!_0x5219a6&&(_0x5219a6=_0x4aaad5);if(isNonNumericVersion(_0x4aaad5))return{'installed':!![],'version':_0x5219a6,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x234c8f,'stableVersion':null};const _0x880939=a244_0x5494ed[_0x46404e(0x147)](_0x5219a6),_0x4661b2=_0x880939?a244_0x5494ed['lt'](_0x880939,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5219a6,'needsUpgrade':_0x4661b2,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x234c8f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x234c8f,'stableVersion':null};}}function a244_0x51d0(_0x2b3e08,_0x527071){_0x2b3e08=_0x2b3e08-0x142;const _0x1e44f2=a244_0x1e44();let _0x51d004=_0x1e44f2[_0x2b3e08];return _0x51d004;}export function printSdkUpgradeWarning(_0x4a0678){const _0x54493f=a244_0x4ffac0;if(!_0x4a0678['needsUpgrade'])return;const _0x1e27f2='\x1b[33m',_0x568891='\x1b[0m',_0x16a678='\x1b[1m',_0x1c6c77=_0x4a0678[_0x54493f(0x144)]||'@lovrabet/sdk',_0x1dfbb3=_0x4a0678[_0x54493f(0x15d)]||_0x4a0678[_0x54493f(0x15f)],_0x383343=_0x54493f(0x159)+_0x1c6c77+'@'+(_0x1dfbb3||_0x54493f(0x15c));console['log'](),console[_0x54493f(0x14e)](''+_0x1e27f2+_0x16a678+_0x54493f(0x142)+_0x568891),console[_0x54493f(0x14e)](_0x1e27f2+_0x54493f(0x162)+_0x1c6c77+'@'+_0x4a0678[_0x54493f(0x15a)]+_0x568891),console[_0x54493f(0x14e)](_0x1e27f2+_0x54493f(0x149)+_0x1dfbb3+_0x568891),console[_0x54493f(0x14e)](_0x1e27f2+'\x20\x20\x20Upgrade\x20command:\x20'+_0x383343+_0x568891),console[_0x54493f(0x14e)]();}
@@ -1 +1 @@
1
- (function(_0x414f94,_0xe3d8b2){const _0xd49bb0=a244_0x4d1b,_0x559313=_0x414f94();while(!![]){try{const _0x5a82b8=-parseInt(_0xd49bb0(0x190))/0x1+parseInt(_0xd49bb0(0x192))/0x2+-parseInt(_0xd49bb0(0x1a1))/0x3+-parseInt(_0xd49bb0(0x193))/0x4*(parseInt(_0xd49bb0(0x195))/0x5)+-parseInt(_0xd49bb0(0x1a9))/0x6*(-parseInt(_0xd49bb0(0x1a0))/0x7)+-parseInt(_0xd49bb0(0x19e))/0x8+parseInt(_0xd49bb0(0x198))/0x9;if(_0x5a82b8===_0xe3d8b2)break;else _0x559313['push'](_0x559313['shift']());}catch(_0x17d0cb){_0x559313['push'](_0x559313['shift']());}}}(a244_0x1d18,0x1d9bf));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a244_0x1d18(){const _0x12272d=['1.0.0','package.json','version','73312Jiyxsg','join','183940VZpZEL','5036dlYNZx','belowMinimum','545iFyYhz','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20','1961262yOzeao','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersionMessage','↪\x20New\x20version\x20available','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','894288uQzolY','minimumVersion','553Ftikel','3873ykLGkU','currentVersion','filter','\x20\x20\x20Recommended\x20stable:\x20','validation','upgradeMessage','utf-8','Upgrade\x20command:\x20','10254vGHSbS','coerce','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','log','../..','↪\x20Critical\x20CLI\x20upgrade\x20required','needsUpgrade','npm\x20install\x20-g\x20'];a244_0x1d18=function(){return _0x12272d;};return a244_0x1d18();}import{fileURLToPath}from'node:url';function a244_0x4d1b(_0x5e656c,_0x5c9550){_0x5e656c=_0x5e656c-0x18f;const _0x1d187d=a244_0x1d18();let _0x4d1b07=_0x1d187d[_0x5e656c];return _0x4d1b07;}import a244_0x483d83 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(_0x773852){const _0x1688ed=a244_0x4d1b,_0x20f391=_0x773852[_0x1688ed(0x1ab)]||'latest';return _0x1688ed(0x1b1)+NPM_PACKAGE_NAME+'@'+_0x20f391;}function getCurrentCliVersion(){const _0x711bc7=a244_0x4d1b;try{const _0x1f77c6=fileURLToPath(import.meta.url),_0x4647c4=resolve(dirname(_0x1f77c6),_0x711bc7(0x1ae)),_0x3d255a=resolve(_0x4647c4,_0x711bc7(0x1b3)),_0x1f9de1=JSON['parse'](readFileSync(_0x3d255a,_0x711bc7(0x1a7)));return _0x1f9de1[_0x711bc7(0x18f)]||_0x711bc7(0x1b2);}catch{return _0x711bc7(0x1b2);}}export async function checkCliVersion(){const _0x1a8255=a244_0x4d1b,_0x4a0c38=getCurrentCliVersion(),_0x4dc7c4=await getCliVersionPolicy(),_0x54f89f=_0x4dc7c4?.[_0x1a8255(0x1ab)]||null,_0x369186=_0x4dc7c4?.[_0x1a8255(0x19f)]||null;let _0x4e6567=![],_0x210855=![];const _0x319e0b=a244_0x483d83[_0x1a8255(0x1aa)](_0x4a0c38);if(_0x319e0b&&_0x54f89f)try{const _0x2f594e=a244_0x483d83[_0x1a8255(0x1aa)](_0x54f89f);if(_0x2f594e)_0x4e6567=a244_0x483d83['lt'](_0x319e0b,_0x2f594e);}catch{}if(_0x319e0b&&_0x369186)try{const _0x521b01=a244_0x483d83['coerce'](_0x369186);if(_0x521b01)_0x210855=a244_0x483d83['lt'](_0x319e0b,_0x521b01);}catch{}return _0x210855&&(_0x4e6567=!![]),{'currentVersion':_0x4a0c38,'stableVersion':_0x54f89f,'minimumVersion':_0x369186,'needsUpgrade':_0x4e6567,'belowMinimum':_0x210855,'isPreRelease':![],'upgradeMessage':_0x4dc7c4?.[_0x1a8255(0x1a6)],'minimumVersionMessage':_0x4dc7c4?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x4d733f){const _0x347c1a=a244_0x4d1b;if(!_0x4d733f[_0x347c1a(0x1b0)]&&!_0x4d733f[_0x347c1a(0x194)])return;const _0x167463='\x1b[31m',_0x2a434d='\x1b[33m',_0x4f72bd='\x1b[0m',_0x35b28a='\x1b[1m',_0x442a12=getCliUpgradeCommand(_0x4d733f);console[_0x347c1a(0x1ad)](),_0x4d733f[_0x347c1a(0x194)]?(console[_0x347c1a(0x1ad)](''+_0x167463+_0x35b28a+_0x347c1a(0x1af)+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x19c)+_0x4d733f['currentVersion']+_0x4f72bd),_0x4d733f['minimumVersion']&&console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x19d)+_0x4d733f['minimumVersion']+_0x4f72bd),_0x4d733f[_0x347c1a(0x1ab)]&&_0x4d733f['stableVersion']!==_0x4d733f[_0x347c1a(0x19f)]&&console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x1a4)+_0x4d733f[_0x347c1a(0x1ab)]+_0x4f72bd),_0x4d733f[_0x347c1a(0x19a)]&&console['log'](_0x167463+'\x20\x20\x20'+_0x4d733f[_0x347c1a(0x19a)]+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x167463+_0x347c1a(0x1ac)+_0x442a12+_0x4f72bd)):(console[_0x347c1a(0x1ad)](''+_0x2a434d+_0x35b28a+_0x347c1a(0x19b)+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x2a434d+_0x347c1a(0x19c)+_0x4d733f[_0x347c1a(0x1a2)]+_0x4f72bd),console[_0x347c1a(0x1ad)](_0x2a434d+_0x347c1a(0x196)+_0x4d733f['stableVersion']+_0x4f72bd),_0x4d733f[_0x347c1a(0x1a6)]&&console[_0x347c1a(0x1ad)](_0x2a434d+_0x347c1a(0x197)+_0x4d733f[_0x347c1a(0x1a6)]+_0x4f72bd),console['log'](_0x2a434d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x442a12+_0x4f72bd)),console[_0x347c1a(0x1ad)]();}export function assertCliVersionSupported(_0x5c668c){const _0x4d35eb=a244_0x4d1b;if(!_0x5c668c[_0x4d35eb(0x194)])return;const _0x42799e=[_0x5c668c[_0x4d35eb(0x19a)],'Current\x20version:\x20'+_0x5c668c[_0x4d35eb(0x1a2)],_0x5c668c['minimumVersion']?'Minimum\x20supported:\x20'+_0x5c668c[_0x4d35eb(0x19f)]:null,_0x4d35eb(0x1a8)+getCliUpgradeCommand(_0x5c668c)][_0x4d35eb(0x1a3)](Boolean)[_0x4d35eb(0x191)]('\x0a');throw CliErrors[_0x4d35eb(0x1a5)](_0x4d35eb(0x199),_0x42799e);}
1
+ (function(_0x40dc0b,_0x497beb){const _0xd50684=a245_0x508c,_0x50deaf=_0x40dc0b();while(!![]){try{const _0xf4199f=-parseInt(_0xd50684(0x13a))/0x1+-parseInt(_0xd50684(0x153))/0x2+parseInt(_0xd50684(0x147))/0x3+parseInt(_0xd50684(0x155))/0x4*(-parseInt(_0xd50684(0x13e))/0x5)+-parseInt(_0xd50684(0x144))/0x6+parseInt(_0xd50684(0x14d))/0x7+parseInt(_0xd50684(0x136))/0x8;if(_0xf4199f===_0x497beb)break;else _0x50deaf['push'](_0x50deaf['shift']());}catch(_0x381e6e){_0x50deaf['push'](_0x50deaf['shift']());}}}(a245_0x3a48,0x52126));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a245_0x2a6a16 from'semver';function a245_0x508c(_0x5c5af1,_0x196674){_0x5c5af1=_0x5c5af1-0x132;const _0x3a4825=a245_0x3a48();let _0x508c59=_0x3a4825[_0x5c5af1];return _0x508c59;}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a245_0x3a48(){const _0x349a39=['\x1b[33m','minimumVersion','coerce','log','10273640LtvECd','upgradeMessage','Current\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','430801cPjVEP','utf-8','currentVersion','Minimum\x20supported:\x20','1251435Oajvnx','\x20\x20\x20','version','package.json','\x20\x20\x20Stable\x20version:\x20','minimumVersionMessage','2215962vWpsqJ','join','latest','782400WuFiZH','needsUpgrade','↪\x20Critical\x20CLI\x20upgrade\x20required','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x1b[1m','1409191vMhjys','validation','\x20\x20\x20Minimum\x20supported:\x20','↪\x20New\x20version\x20available','../..','belowMinimum','719474QUTins','1.0.0','4ZDHlVD','npm\x20install\x20-g\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','parse','\x1b[31m'];a245_0x3a48=function(){return _0x349a39;};return a245_0x3a48();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x382196){const _0x927906=a245_0x508c,_0x4502ef=_0x382196[_0x927906(0x14a)]||_0x927906(0x146);return _0x927906(0x156)+NPM_PACKAGE_NAME+'@'+_0x4502ef;}function getCurrentCliVersion(){const _0x37cc6e=a245_0x508c;try{const _0x36cf7d=fileURLToPath(import.meta.url),_0x2fc7f1=resolve(dirname(_0x36cf7d),_0x37cc6e(0x151)),_0x20bd4d=resolve(_0x2fc7f1,_0x37cc6e(0x141)),_0x401bb9=JSON[_0x37cc6e(0x158)](readFileSync(_0x20bd4d,_0x37cc6e(0x13b)));return _0x401bb9[_0x37cc6e(0x140)]||_0x37cc6e(0x154);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x26a05b=a245_0x508c,_0x2b02b1=getCurrentCliVersion(),_0x4c40d9=await getCliVersionPolicy(),_0x206574=_0x4c40d9?.[_0x26a05b(0x14a)]||null,_0x58436f=_0x4c40d9?.['minimumVersion']||null;let _0x27f5c9=![],_0x49efa4=![];const _0x57fea8=a245_0x2a6a16[_0x26a05b(0x134)](_0x2b02b1);if(_0x57fea8&&_0x206574)try{const _0x1d96cf=a245_0x2a6a16[_0x26a05b(0x134)](_0x206574);if(_0x1d96cf)_0x27f5c9=a245_0x2a6a16['lt'](_0x57fea8,_0x1d96cf);}catch{}if(_0x57fea8&&_0x58436f)try{const _0x132505=a245_0x2a6a16['coerce'](_0x58436f);if(_0x132505)_0x49efa4=a245_0x2a6a16['lt'](_0x57fea8,_0x132505);}catch{}return _0x49efa4&&(_0x27f5c9=!![]),{'currentVersion':_0x2b02b1,'stableVersion':_0x206574,'minimumVersion':_0x58436f,'needsUpgrade':_0x27f5c9,'belowMinimum':_0x49efa4,'isPreRelease':![],'upgradeMessage':_0x4c40d9?.['upgradeMessage'],'minimumVersionMessage':_0x4c40d9?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0xf6d787){const _0x1d6e05=a245_0x508c;if(!_0xf6d787[_0x1d6e05(0x148)]&&!_0xf6d787['belowMinimum'])return;const _0x14b620=_0x1d6e05(0x159),_0x1bd151=_0x1d6e05(0x132),_0x539dbf='\x1b[0m',_0x2837eb=_0x1d6e05(0x14c),_0x9ea291=getCliUpgradeCommand(_0xf6d787);console[_0x1d6e05(0x135)](),_0xf6d787['belowMinimum']?(console['log'](''+_0x14b620+_0x2837eb+_0x1d6e05(0x149)+_0x539dbf),console['log'](_0x14b620+_0x1d6e05(0x157)+_0xf6d787[_0x1d6e05(0x13c)]+_0x539dbf),_0xf6d787[_0x1d6e05(0x133)]&&console[_0x1d6e05(0x135)](_0x14b620+_0x1d6e05(0x14f)+_0xf6d787['minimumVersion']+_0x539dbf),_0xf6d787[_0x1d6e05(0x14a)]&&_0xf6d787['stableVersion']!==_0xf6d787['minimumVersion']&&console['log'](_0x14b620+'\x20\x20\x20Recommended\x20stable:\x20'+_0xf6d787[_0x1d6e05(0x14a)]+_0x539dbf),_0xf6d787[_0x1d6e05(0x143)]&&console['log'](_0x14b620+_0x1d6e05(0x13f)+_0xf6d787[_0x1d6e05(0x143)]+_0x539dbf),console[_0x1d6e05(0x135)](_0x14b620+_0x1d6e05(0x139)+_0x9ea291+_0x539dbf)):(console[_0x1d6e05(0x135)](''+_0x1bd151+_0x2837eb+_0x1d6e05(0x150)+_0x539dbf),console[_0x1d6e05(0x135)](_0x1bd151+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xf6d787[_0x1d6e05(0x13c)]+_0x539dbf),console[_0x1d6e05(0x135)](_0x1bd151+_0x1d6e05(0x142)+_0xf6d787[_0x1d6e05(0x14a)]+_0x539dbf),_0xf6d787[_0x1d6e05(0x137)]&&console[_0x1d6e05(0x135)](_0x1bd151+_0x1d6e05(0x13f)+_0xf6d787[_0x1d6e05(0x137)]+_0x539dbf),console['log'](_0x1bd151+_0x1d6e05(0x139)+_0x9ea291+_0x539dbf)),console[_0x1d6e05(0x135)]();}export function assertCliVersionSupported(_0x263aab){const _0xe3cb84=a245_0x508c;if(!_0x263aab[_0xe3cb84(0x152)])return;const _0xc28c34=[_0x263aab[_0xe3cb84(0x143)],_0xe3cb84(0x138)+_0x263aab[_0xe3cb84(0x13c)],_0x263aab[_0xe3cb84(0x133)]?_0xe3cb84(0x13d)+_0x263aab['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x263aab)]['filter'](Boolean)[_0xe3cb84(0x145)]('\x0a');throw CliErrors[_0xe3cb84(0x14e)](_0xe3cb84(0x14b),_0xc28c34);}
@@ -1 +1 @@
1
- (function(_0x1ffbc1,_0x172105){const _0x58afcf=a245_0x3476,_0x408624=_0x1ffbc1();while(!![]){try{const _0x1baafd=-parseInt(_0x58afcf(0x153))/0x1*(parseInt(_0x58afcf(0x149))/0x2)+parseInt(_0x58afcf(0x157))/0x3*(parseInt(_0x58afcf(0x158))/0x4)+-parseInt(_0x58afcf(0x152))/0x5+parseInt(_0x58afcf(0x15a))/0x6*(parseInt(_0x58afcf(0x14b))/0x7)+-parseInt(_0x58afcf(0x156))/0x8*(parseInt(_0x58afcf(0x155))/0x9)+-parseInt(_0x58afcf(0x14f))/0xa+-parseInt(_0x58afcf(0x15b))/0xb*(-parseInt(_0x58afcf(0x15c))/0xc);if(_0x1baafd===_0x172105)break;else _0x408624['push'](_0x408624['shift']());}catch(_0x4a6a9c){_0x408624['push'](_0x408624['shift']());}}}(a245_0x531a,0x95b88));function a245_0x531a(){const _0x5ef8d9=['cli','signal','2693095ZNYUmM','50ualprd','upgradeMessage','9ZREYBX','1411128tHxiIR','21rhkwdV','563764tAbZTP','abort','6XMyJSY','11Alligl','24856620jkzPoB','application/json','minimumVersionMessage','object','trim','string','47800vdPHhS','length','4465279fBQwhN','latestVersion','json','minimumVersion','11726030UInQDC'];a245_0x531a=function(){return _0x5ef8d9;};return a245_0x531a();}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(_0x262c8f){const _0x513a5c=a245_0x3476;return typeof _0x262c8f===_0x513a5c(0x148)&&_0x262c8f['trim']()[_0x513a5c(0x14a)]>0x0?_0x262c8f[_0x513a5c(0x147)]():null;}function a245_0x3476(_0x2fe0a5,_0x2425f3){_0x2fe0a5=_0x2fe0a5-0x146;const _0x531a30=a245_0x531a();let _0x347681=_0x531a30[_0x2fe0a5];return _0x347681;}function normalizeCliVersionPolicy(_0xcbc02a){const _0x3e6d39=a245_0x3476;if(!_0xcbc02a||typeof _0xcbc02a!==_0x3e6d39(0x146))return null;const _0x5d9320=_0xcbc02a,_0x1f23d9=_0x5d9320['cli']&&typeof _0x5d9320[_0x3e6d39(0x150)]==='object'?_0x5d9320[_0x3e6d39(0x150)]:_0x5d9320,_0x31798d=pickString(_0x1f23d9['stableVersion'])||pickString(_0x1f23d9[_0x3e6d39(0x14c)])||pickString(_0x1f23d9['recommendedVersion']),_0x2d4552=pickString(_0x1f23d9[_0x3e6d39(0x14e)])||pickString(_0x1f23d9['minVersion']);if(!_0x31798d&&!_0x2d4552)return null;return{'stableVersion':_0x31798d,'minimumVersion':_0x2d4552,'upgradeMessage':pickString(_0x1f23d9[_0x3e6d39(0x154)])||undefined,'minimumVersionMessage':pickString(_0x1f23d9[_0x3e6d39(0x15e)])||undefined};}export async function fetchCliVersionPolicy(){const _0x997283=a245_0x3476,_0x24a27c=new AbortController(),_0x2a5d99=setTimeout(()=>_0x24a27c[_0x997283(0x159)](),FETCH_TIMEOUT_MS);try{const _0x466da3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x997283(0x15d)},'signal':_0x24a27c[_0x997283(0x151)]});if(!_0x466da3['ok'])return null;const _0x392dac=await _0x466da3[_0x997283(0x14d)]();return normalizeCliVersionPolicy(_0x392dac);}catch{return null;}finally{clearTimeout(_0x2a5d99);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x54944a=Date['now']();if(hasCachedPolicy){const _0x3834bf=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x54944a-cacheTime<_0x3834bf)return cachedPolicy;}const _0x47eb17=await fetchCliVersionPolicy();return cachedPolicy=_0x47eb17,cacheTime=_0x54944a,hasCachedPolicy=!![],_0x47eb17;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x29c699,_0x4672a1){const _0x32e2d9=a246_0x4af8,_0x37cecd=_0x29c699();while(!![]){try{const _0xf3b8c7=parseInt(_0x32e2d9(0xa7))/0x1*(parseInt(_0x32e2d9(0x98))/0x2)+-parseInt(_0x32e2d9(0xaa))/0x3*(-parseInt(_0x32e2d9(0x96))/0x4)+-parseInt(_0x32e2d9(0xa9))/0x5+-parseInt(_0x32e2d9(0xa2))/0x6+-parseInt(_0x32e2d9(0x9f))/0x7+-parseInt(_0x32e2d9(0xa5))/0x8*(parseInt(_0x32e2d9(0xa4))/0x9)+-parseInt(_0x32e2d9(0x93))/0xa*(-parseInt(_0x32e2d9(0x95))/0xb);if(_0xf3b8c7===_0x4672a1)break;else _0x37cecd['push'](_0x37cecd['shift']());}catch(_0x351342){_0x37cecd['push'](_0x37cecd['shift']());}}}(a246_0x5a76,0x95246));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(_0x2abf13){const _0x3343c1=a246_0x4af8;return typeof _0x2abf13===_0x3343c1(0x99)&&_0x2abf13[_0x3343c1(0x94)]()[_0x3343c1(0x9c)]>0x0?_0x2abf13['trim']():null;}function a246_0x4af8(_0x1dd4a3,_0x47d3e8){_0x1dd4a3=_0x1dd4a3-0x93;const _0x5a7679=a246_0x5a76();let _0x4af817=_0x5a7679[_0x1dd4a3];return _0x4af817;}function a246_0x5a76(){const _0x2f7591=['minimumVersionMessage','length','object','abort','6460405EyUxDV','recommendedVersion','cli','4575426bIMRPz','minVersion','547920RGzzyO','112PyPKwt','minimumVersion','1gUcmio','upgradeMessage','365025TlgGjS','3esfMco','1458130rNjJGE','trim','209KySEXJ','159316Oamzbl','json','822842Ofpigy','string','now'];a246_0x5a76=function(){return _0x2f7591;};return a246_0x5a76();}function normalizeCliVersionPolicy(_0x404197){const _0x1a7f85=a246_0x4af8;if(!_0x404197||typeof _0x404197!==_0x1a7f85(0x9d))return null;const _0x2ca9ae=_0x404197,_0x38105d=_0x2ca9ae['cli']&&typeof _0x2ca9ae[_0x1a7f85(0xa1)]===_0x1a7f85(0x9d)?_0x2ca9ae['cli']:_0x2ca9ae,_0x4e02d4=pickString(_0x38105d['stableVersion'])||pickString(_0x38105d['latestVersion'])||pickString(_0x38105d[_0x1a7f85(0xa0)]),_0x3f6e2b=pickString(_0x38105d[_0x1a7f85(0xa6)])||pickString(_0x38105d[_0x1a7f85(0xa3)]);if(!_0x4e02d4&&!_0x3f6e2b)return null;return{'stableVersion':_0x4e02d4,'minimumVersion':_0x3f6e2b,'upgradeMessage':pickString(_0x38105d[_0x1a7f85(0xa8)])||undefined,'minimumVersionMessage':pickString(_0x38105d[_0x1a7f85(0x9b)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3b7f4a=a246_0x4af8,_0x8958e4=new AbortController(),_0x1ee4de=setTimeout(()=>_0x8958e4[_0x3b7f4a(0x9e)](),FETCH_TIMEOUT_MS);try{const _0x148f4d=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x8958e4['signal']});if(!_0x148f4d['ok'])return null;const _0x120617=await _0x148f4d[_0x3b7f4a(0x97)]();return normalizeCliVersionPolicy(_0x120617);}catch{return null;}finally{clearTimeout(_0x1ee4de);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2b07ad=a246_0x4af8,_0x2720cf=Date[_0x2b07ad(0x9a)]();if(hasCachedPolicy){const _0x432038=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2720cf-cacheTime<_0x432038)return cachedPolicy;}const _0x2b3c81=await fetchCliVersionPolicy();return cachedPolicy=_0x2b3c81,cacheTime=_0x2720cf,hasCachedPolicy=!![],_0x2b3c81;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a246_0x2683(){const _0x1fe2cf=['3OQKyUh','project','18jmOUjm','1295692ZRyYUJ','8780784dTalTi','786395aKXhui','env','17742vywTJh','62SYSdan','1778ebXVuP','667170AHXWZR','25590686dMNsQi','5174AiXhjo','12fNvHZT','string'];a246_0x2683=function(){return _0x1fe2cf;};return a246_0x2683();}const a246_0x401d3b=a246_0x5df2;(function(_0x2b13c3,_0x4cc534){const _0xc0778a=a246_0x5df2,_0x21c341=_0x2b13c3();while(!![]){try{const _0x3921af=-parseInt(_0xc0778a(0x1a2))/0x1*(parseInt(_0xc0778a(0x19e))/0x2)+-parseInt(_0xc0778a(0x196))/0x3*(-parseInt(_0xc0778a(0x199))/0x4)+-parseInt(_0xc0778a(0x19b))/0x5+parseInt(_0xc0778a(0x19d))/0x6*(-parseInt(_0xc0778a(0x19f))/0x7)+-parseInt(_0xc0778a(0x19a))/0x8+parseInt(_0xc0778a(0x198))/0x9*(parseInt(_0xc0778a(0x1a0))/0xa)+parseInt(_0xc0778a(0x1a1))/0xb*(parseInt(_0xc0778a(0x1a3))/0xc);if(_0x3921af===_0x4cc534)break;else _0x21c341['push'](_0x21c341['shift']());}catch(_0x658c1d){_0x21c341['push'](_0x21c341['shift']());}}}(a246_0x2683,0x96bda));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a246_0xffe92a,getMultiAppConfigs as a246_0x3e3e32,getTemplateBaseUrl as a246_0x9bb2a1}from'../context.js';function a246_0x5df2(_0xc3aa0f,_0x518352){_0xc3aa0f=_0xc3aa0f-0x196;const _0x268347=a246_0x2683();let _0x5df2e9=_0x268347[_0xc3aa0f];return _0x5df2e9;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x256460){const _0x479a1d=a246_0x5df2,_0x16212a=readRawConfig(_0x256460);return _0x16212a[_0x479a1d(0x19c)]&&typeof _0x16212a['env']===_0x479a1d(0x1a4)&&initEnv(_0x16212a[_0x479a1d(0x19c)]),_0x16212a;}export function getConfigAppCode(){return a246_0xffe92a();}export function getMultiAppConfigs(_0x32065e=a246_0x401d3b(0x197)){return a246_0x3e3e32(_0x32065e);}export function getTemplateBaseUrl(){return a246_0x9bb2a1();}
1
+ function a247_0x2765(){const _0x1f7118=['4GAbapj','env','73716eqOOyH','1740537fUmznF','44mmuPeP','8904985AXfQks','2093896WoxNxb','8383296tZuYLR','321546OYihAc','6245970HPuPkj','string','48rukcRP'];a247_0x2765=function(){return _0x1f7118;};return a247_0x2765();}(function(_0x1e48d3,_0x4a5673){const _0x98670f=a247_0x949f,_0x3b7ff7=_0x1e48d3();while(!![]){try{const _0x1b2c7c=-parseInt(_0x98670f(0xe1))/0x1+parseInt(_0x98670f(0xdd))/0x2*(-parseInt(_0x98670f(0xe7))/0x3)+-parseInt(_0x98670f(0xe5))/0x4*(parseInt(_0x98670f(0xde))/0x5)+parseInt(_0x98670f(0xe0))/0x6+-parseInt(_0x98670f(0xdf))/0x7*(-parseInt(_0x98670f(0xe4))/0x8)+-parseInt(_0x98670f(0xe8))/0x9+parseInt(_0x98670f(0xe2))/0xa;if(_0x1b2c7c===_0x4a5673)break;else _0x3b7ff7['push'](_0x3b7ff7['shift']());}catch(_0x364fbf){_0x3b7ff7['push'](_0x3b7ff7['shift']());}}}(a247_0x2765,0xef45d));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a247_0x44e47f,getMultiAppConfigs as a247_0x47efce,getTemplateBaseUrl as a247_0x11d0cd}from'../context.js';function a247_0x949f(_0x337e2e,_0xe26db2){_0x337e2e=_0x337e2e-0xdd;const _0x276505=a247_0x2765();let _0x949f9b=_0x276505[_0x337e2e];return _0x949f9b;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x318630){const _0x1d0c98=a247_0x949f,_0x195c03=readRawConfig(_0x318630);return _0x195c03[_0x1d0c98(0xe6)]&&typeof _0x195c03['env']===_0x1d0c98(0xe3)&&initEnv(_0x195c03[_0x1d0c98(0xe6)]),_0x195c03;}export function getConfigAppCode(){return a247_0x44e47f();}export function getMultiAppConfigs(_0x31eddb='project'){return a247_0x47efce(_0x31eddb);}export function getTemplateBaseUrl(){return a247_0x11d0cd();}
@@ -1 +1 @@
1
- function a247_0x49c3(){const _0x90cd27=['error','907109NYkyqK','copyFileSync','14731083UvHuPc','8TQYyqC','join','35572680gVHVaY','1QggdyE','name','readdirSync','5695212dpxqXs','8940775FqSsSP','170398ViPNlK','24UuKDoL','2199195cJDMqy'];a247_0x49c3=function(){return _0x90cd27;};return a247_0x49c3();}function a247_0x1020(_0x706e1b,_0x5e4573){_0x706e1b=_0x706e1b-0x1bf;const _0x49c32a=a247_0x49c3();let _0x102056=_0x49c32a[_0x706e1b];return _0x102056;}(function(_0x481ada,_0x4d044){const _0x3e10ba=a247_0x1020,_0x5b3da8=_0x481ada();while(!![]){try{const _0x14bd50=parseInt(_0x3e10ba(0x1c2))/0x1*(-parseInt(_0x3e10ba(0x1c7))/0x2)+-parseInt(_0x3e10ba(0x1c9))/0x3+parseInt(_0x3e10ba(0x1c5))/0x4+parseInt(_0x3e10ba(0x1c6))/0x5+-parseInt(_0x3e10ba(0x1c8))/0x6*(-parseInt(_0x3e10ba(0x1cb))/0x7)+parseInt(_0x3e10ba(0x1bf))/0x8*(parseInt(_0x3e10ba(0x1cd))/0x9)+-parseInt(_0x3e10ba(0x1c1))/0xa;if(_0x14bd50===_0x4d044)break;else _0x5b3da8['push'](_0x5b3da8['shift']());}catch(_0x5a4d09){_0x5b3da8['push'](_0x5b3da8['shift']());}}}(a247_0x49c3,0xf2149));import a247_0xa8ce2 from'node:path';import a247_0x4cc4f3 from'node:fs';export async function copyDirectory(_0x39b887,_0x3218d4){const _0x1465e2=a247_0x1020;try{const _0x1c58b9=a247_0x4cc4f3[_0x1465e2(0x1c4)](_0x39b887,{'withFileTypes':!![]});a247_0x4cc4f3['mkdirSync'](_0x3218d4,{'recursive':!![]});for(const _0x5eea49 of _0x1c58b9){const _0x1a6464=a247_0xa8ce2[_0x1465e2(0x1c0)](_0x39b887,_0x5eea49[_0x1465e2(0x1c3)]),_0x507744=a247_0xa8ce2['join'](_0x3218d4,_0x5eea49[_0x1465e2(0x1c3)]);_0x5eea49['isDirectory']()?await copyDirectory(_0x1a6464,_0x507744):a247_0x4cc4f3[_0x1465e2(0x1cc)](_0x1a6464,_0x507744);}}catch(_0x2b3aba){console[_0x1465e2(0x1ca)]('复制目录时出错:',_0x2b3aba);}}
1
+ function a248_0x39f7(_0x46ffab,_0x9c7993){_0x46ffab=_0x46ffab-0x11b;const _0x205a46=a248_0x205a();let _0x39f7b2=_0x205a46[_0x46ffab];return _0x39f7b2;}(function(_0x3365d5,_0x3dad15){const _0xf9a85a=a248_0x39f7,_0x25c30e=_0x3365d5();while(!![]){try{const _0xa3d64c=-parseInt(_0xf9a85a(0x127))/0x1+-parseInt(_0xf9a85a(0x125))/0x2+parseInt(_0xf9a85a(0x123))/0x3+parseInt(_0xf9a85a(0x126))/0x4+parseInt(_0xf9a85a(0x11e))/0x5*(parseInt(_0xf9a85a(0x122))/0x6)+-parseInt(_0xf9a85a(0x11d))/0x7+-parseInt(_0xf9a85a(0x11f))/0x8;if(_0xa3d64c===_0x3dad15)break;else _0x25c30e['push'](_0x25c30e['shift']());}catch(_0xc106f9){_0x25c30e['push'](_0x25c30e['shift']());}}}(a248_0x205a,0xee440));function a248_0x205a(){const _0x1d7ae5=['2862304JfHCoz','readdirSync','name','54gNwDrp','4444977rvMoGq','copyFileSync','1902684WXRQjs','7206428poVEDs','459480ioWxQK','复制目录时出错:','join','error','isDirectory','5743255YmjNwR','156525PRsfaG'];a248_0x205a=function(){return _0x1d7ae5;};return a248_0x205a();}import a248_0x7e3963 from'node:path';import a248_0x5e9738 from'node:fs';export async function copyDirectory(_0x3b8b3e,_0x51b054){const _0x32928a=a248_0x39f7;try{const _0x4eaafc=a248_0x5e9738[_0x32928a(0x120)](_0x3b8b3e,{'withFileTypes':!![]});a248_0x5e9738['mkdirSync'](_0x51b054,{'recursive':!![]});for(const _0x51de32 of _0x4eaafc){const _0x327259=a248_0x7e3963[_0x32928a(0x129)](_0x3b8b3e,_0x51de32[_0x32928a(0x121)]),_0x1d7915=a248_0x7e3963[_0x32928a(0x129)](_0x51b054,_0x51de32['name']);_0x51de32[_0x32928a(0x11c)]()?await copyDirectory(_0x327259,_0x1d7915):a248_0x5e9738[_0x32928a(0x124)](_0x327259,_0x1d7915);}}catch(_0x266ce9){console[_0x32928a(0x11b)](_0x32928a(0x128),_0x266ce9);}}
@@ -1 +1 @@
1
- (function(_0x1a3c2c,_0x12e2f8){const _0x2b08bf=a248_0x4572,_0x1ff306=_0x1a3c2c();while(!![]){try{const _0x4892aa=-parseInt(_0x2b08bf(0x6b))/0x1*(-parseInt(_0x2b08bf(0x6e))/0x2)+-parseInt(_0x2b08bf(0x71))/0x3*(parseInt(_0x2b08bf(0x6d))/0x4)+-parseInt(_0x2b08bf(0x6c))/0x5*(-parseInt(_0x2b08bf(0x70))/0x6)+-parseInt(_0x2b08bf(0x68))/0x7+-parseInt(_0x2b08bf(0x75))/0x8*(-parseInt(_0x2b08bf(0x6f))/0x9)+parseInt(_0x2b08bf(0x74))/0xa+parseInt(_0x2b08bf(0x73))/0xb;if(_0x4892aa===_0x12e2f8)break;else _0x1ff306['push'](_0x1ff306['shift']());}catch(_0x251799){_0x1ff306['push'](_0x1ff306['shift']());}}}(a248_0x4d2a,0x7ea1e));function a248_0x4d2a(){const _0x2a593d=['334868CbQIkz','7404579saKgdW','18msTSzN','3nyKPDz','trim','1621884Eaatiz','3909450YutEHR','8dQZUla','4610928ltplNE','isFinite','object','3OBTEKf','53595olTlWI','2872756xIldFv'];a248_0x4d2a=function(){return _0x2a593d;};return a248_0x4d2a();}function a248_0x4572(_0x1f0df4,_0xedf3ae){_0x1f0df4=_0x1f0df4-0x68;const _0x4d2a62=a248_0x4d2a();let _0x457229=_0x4d2a62[_0x1f0df4];return _0x457229;}function toFiniteNumber(_0x4773e7){const _0x111336=a248_0x4572;if(typeof _0x4773e7==='number'&&Number[_0x111336(0x69)](_0x4773e7))return _0x4773e7;if(typeof _0x4773e7==='string'){const _0xd9c640=_0x4773e7[_0x111336(0x72)]();if(!_0xd9c640)return undefined;const _0x52c4bf=Number(_0xd9c640);if(Number[_0x111336(0x69)](_0x52c4bf))return _0x52c4bf;}return undefined;}export function normalizeEntityWithIdResponse(_0x76c7ba){const _0xb54c6=a248_0x4572,_0x3fc854=toFiniteNumber(_0x76c7ba);if(_0x3fc854!==undefined)return{'id':_0x3fc854,'entity':{'id':_0x3fc854}};if(!_0x76c7ba||typeof _0x76c7ba!==_0xb54c6(0x6a))return{'id':undefined,'entity':{}};const _0x3b8836={..._0x76c7ba},_0x522128=toFiniteNumber(_0x3b8836['id']);return _0x522128!==undefined&&(_0x3b8836['id']=_0x522128),{'id':_0x522128,'entity':_0x3b8836};}
1
+ function a249_0xcbf2(_0x259238,_0x239931){_0x259238=_0x259238-0x1e1;const _0x282794=a249_0x2827();let _0xcbf288=_0x282794[_0x259238];return _0xcbf288;}function a249_0x2827(){const _0x5222bb=['number','1345509yAvrAy','isFinite','699116YrQlEz','trim','string','151984ZVLpPU','76213LOwBIY','48kyNgPo','523970cYYTSh','1757620wVYDLT','126588IXktZl'];a249_0x2827=function(){return _0x5222bb;};return a249_0x2827();}(function(_0x523e6a,_0x5cb8d1){const _0x20b4a3=a249_0xcbf2,_0x2dae84=_0x523e6a();while(!![]){try{const _0x403955=-parseInt(_0x20b4a3(0x1e8))/0x1+parseInt(_0x20b4a3(0x1ea))/0x2+parseInt(_0x20b4a3(0x1e2))/0x3+parseInt(_0x20b4a3(0x1e4))/0x4+-parseInt(_0x20b4a3(0x1eb))/0x5+-parseInt(_0x20b4a3(0x1ec))/0x6+parseInt(_0x20b4a3(0x1e7))/0x7*(-parseInt(_0x20b4a3(0x1e9))/0x8);if(_0x403955===_0x5cb8d1)break;else _0x2dae84['push'](_0x2dae84['shift']());}catch(_0x5b0a19){_0x2dae84['push'](_0x2dae84['shift']());}}}(a249_0x2827,0x4abf0));function toFiniteNumber(_0x497fb5){const _0x2f1f66=a249_0xcbf2;if(typeof _0x497fb5===_0x2f1f66(0x1e1)&&Number['isFinite'](_0x497fb5))return _0x497fb5;if(typeof _0x497fb5===_0x2f1f66(0x1e6)){const _0x2ea0ac=_0x497fb5[_0x2f1f66(0x1e5)]();if(!_0x2ea0ac)return undefined;const _0x598c06=Number(_0x2ea0ac);if(Number[_0x2f1f66(0x1e3)](_0x598c06))return _0x598c06;}return undefined;}export function normalizeEntityWithIdResponse(_0x10dd82){const _0x588850=toFiniteNumber(_0x10dd82);if(_0x588850!==undefined)return{'id':_0x588850,'entity':{'id':_0x588850}};if(!_0x10dd82||typeof _0x10dd82!=='object')return{'id':undefined,'entity':{}};const _0x456575={..._0x10dd82},_0x520803=toFiniteNumber(_0x456575['id']);return _0x520803!==undefined&&(_0x456575['id']=_0x520803),{'id':_0x520803,'entity':_0x456575};}
@@ -1 +1 @@
1
- (function(_0x31c358,_0x5ae25d){const _0x12886c=a249_0x3ade,_0x1314e2=_0x31c358();while(!![]){try{const _0x5c052a=parseInt(_0x12886c(0x11e))/0x1*(-parseInt(_0x12886c(0x126))/0x2)+-parseInt(_0x12886c(0x120))/0x3*(-parseInt(_0x12886c(0x124))/0x4)+-parseInt(_0x12886c(0x11d))/0x5+parseInt(_0x12886c(0x11f))/0x6+-parseInt(_0x12886c(0x121))/0x7*(-parseInt(_0x12886c(0x123))/0x8)+parseInt(_0x12886c(0x122))/0x9*(-parseInt(_0x12886c(0x11b))/0xa)+-parseInt(_0x12886c(0x125))/0xb*(-parseInt(_0x12886c(0x11c))/0xc);if(_0x5c052a===_0x5ae25d)break;else _0x1314e2['push'](_0x1314e2['shift']());}catch(_0x5acc1c){_0x1314e2['push'](_0x1314e2['shift']());}}}(a249_0x1e9f,0x50ae9));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a249_0x1e9f(){const _0x4651cc=['14xuIpVb','10467YPpZpw','468544yiColM','220WdGyoT','229009xrWzhq','40314OoVbxw','4060wRwBia','588mJrrAs','3088660UMXVjt','23fJFima','2614872egHlog','16959bEagMw'];a249_0x1e9f=function(){return _0x4651cc;};return a249_0x1e9f();}import{join}from'node:path';function a249_0x3ade(_0x5eca75,_0x27ac4f){_0x5eca75=_0x5eca75-0x11b;const _0x1e9fd1=a249_0x1e9f();let _0x3adeec=_0x1e9fd1[_0x5eca75];return _0x3adeec;}export async function copyDir(_0x3a4406,_0x529383){const _0x1018ce=statSync(_0x3a4406);if(_0x1018ce['isDirectory']()){!existsSync(_0x529383)&&mkdirSync(_0x529383,{'recursive':!![]});const _0x5cfc67=readdirSync(_0x3a4406);for(const _0x120135 of _0x5cfc67){await copyDir(join(_0x3a4406,_0x120135),join(_0x529383,_0x120135));}}else copyFileSync(_0x3a4406,_0x529383);}export function ensureDir(_0x486719){!existsSync(_0x486719)&&mkdirSync(_0x486719,{'recursive':!![]});}export function pathExists(_0x4f4b72){return existsSync(_0x4f4b72);}
1
+ (function(_0x59cd1b,_0x1f73bb){const _0x6f3e=a250_0x4735,_0x253c21=_0x59cd1b();while(!![]){try{const _0x300374=parseInt(_0x6f3e(0xa8))/0x1+parseInt(_0x6f3e(0xab))/0x2+parseInt(_0x6f3e(0xaa))/0x3+parseInt(_0x6f3e(0xa4))/0x4*(parseInt(_0x6f3e(0xa6))/0x5)+parseInt(_0x6f3e(0xad))/0x6+-parseInt(_0x6f3e(0xac))/0x7+-parseInt(_0x6f3e(0xa7))/0x8*(parseInt(_0x6f3e(0xa5))/0x9);if(_0x300374===_0x1f73bb)break;else _0x253c21['push'](_0x253c21['shift']());}catch(_0x30f1a8){_0x253c21['push'](_0x253c21['shift']());}}}(a250_0x3507,0xf0c12));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3770ae,_0x1582b6){const _0x3b270a=a250_0x4735,_0x67a9ea=statSync(_0x3770ae);if(_0x67a9ea[_0x3b270a(0xa9)]()){!existsSync(_0x1582b6)&&mkdirSync(_0x1582b6,{'recursive':!![]});const _0x663e05=readdirSync(_0x3770ae);for(const _0x2cd5dc of _0x663e05){await copyDir(join(_0x3770ae,_0x2cd5dc),join(_0x1582b6,_0x2cd5dc));}}else copyFileSync(_0x3770ae,_0x1582b6);}export function ensureDir(_0x2845ac){!existsSync(_0x2845ac)&&mkdirSync(_0x2845ac,{'recursive':!![]});}function a250_0x4735(_0x4b55cf,_0x55fac4){_0x4b55cf=_0x4b55cf-0xa4;const _0x3507e3=a250_0x3507();let _0x4735e7=_0x3507e3[_0x4b55cf];return _0x4735e7;}function a250_0x3507(){const _0x4dac5c=['193685dGIJgS','isDirectory','3900813yFgLWA','3196148ZGUmcT','7670299SSgrnc','3454068rYNxRc','468RwzNdh','31091958QiuxKs','79865ZHwmMM','8yDtPzj'];a250_0x3507=function(){return _0x4dac5c;};return a250_0x3507();}export function pathExists(_0x224ef3){return existsSync(_0x224ef3);}
@@ -1 +1 @@
1
- const a250_0x186d1b=a250_0x295f;(function(_0x4ce68d,_0x2ad1b8){const _0x2d717a=a250_0x295f,_0xe9ad1d=_0x4ce68d();while(!![]){try{const _0x2bc1e3=parseInt(_0x2d717a(0x1dc))/0x1+-parseInt(_0x2d717a(0x1da))/0x2*(parseInt(_0x2d717a(0x1d0))/0x3)+-parseInt(_0x2d717a(0x1e6))/0x4*(parseInt(_0x2d717a(0x1eb))/0x5)+parseInt(_0x2d717a(0x1e0))/0x6*(parseInt(_0x2d717a(0x1de))/0x7)+parseInt(_0x2d717a(0x1cb))/0x8+-parseInt(_0x2d717a(0x1d2))/0x9+parseInt(_0x2d717a(0x1d9))/0xa;if(_0x2bc1e3===_0x2ad1b8)break;else _0xe9ad1d['push'](_0xe9ad1d['shift']());}catch(_0x44b70e){_0xe9ad1d['push'](_0xe9ad1d['shift']());}}}(a250_0x3088,0xb05a7));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 _0x3a51ea=getTemplateBaseUrl();return _0x3a51ea+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a250_0x186d1b(0x1cc),a250_0x186d1b(0x1e1));export async function fetchGuidesFromCDN(){const _0x2eaedb=a250_0x186d1b,_0x583b40=getGuidesCdnUrl(),_0x1dfb82=await fetch(_0x583b40,{'headers':{'Accept':_0x2eaedb(0x1e5)}});if(!_0x1dfb82['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1dfb82[_0x2eaedb(0x1cd)]+'\x20'+_0x1dfb82[_0x2eaedb(0x1e7)]);const _0x2f46ee=await _0x1dfb82[_0x2eaedb(0x1d7)]();if(!_0x2f46ee[_0x2eaedb(0x1d4)]||typeof _0x2f46ee[_0x2eaedb(0x1d4)]!=='object')throw new Error(_0x2eaedb(0x1e8));return _0x2f46ee;}function a250_0x295f(_0x5e8991,_0x4227c6){_0x5e8991=_0x5e8991-0x1ca;const _0x30880a=a250_0x3088();let _0x295ff7=_0x30880a[_0x5e8991];return _0x295ff7;}export function writeGuidesToProject(_0x77dcac,_0x49db8e,_0x1bd5eb=a250_0x186d1b(0x1e2),_0x3a599b){const _0x212b9b=a250_0x186d1b,_0x261195=join(_0x49db8e,_0x1bd5eb);mkdirSync(_0x261195,{'recursive':!![]});for(const [_0x352dc8,_0xe0c49f]of Object[_0x212b9b(0x1ce)](_0x77dcac[_0x212b9b(0x1d4)])){let _0x4cbfed=_0xe0c49f['content'];_0xe0c49f[_0x212b9b(0x1d8)]&&(_0x4cbfed=appendUpdateTime(_0x4cbfed,_0xe0c49f[_0x212b9b(0x1d8)])),writeFileSync(join(_0x261195,_0x352dc8+'.md'),_0x4cbfed,_0x212b9b(0x1e9));}}export function appendUpdateTime(_0x6a964a,_0xc2cca5){const _0x48f0b5=a250_0x186d1b;return _0x6a964a=_0x6a964a['replace'](/\n*>更新时间:.*$/m,''),_0x6a964a['trimEnd']()+(_0x48f0b5(0x1ea)+_0xc2cca5);}export function getSkillTemplate(_0x45d8f9){const _0x3f97c=a250_0x186d1b;return _0x45d8f9[_0x3f97c(0x1e4)]?.[_0x3f97c(0x1d5)]||'';}function a250_0x3088(){const _0x100d62=['14EsXLrh','title','2065254kgdRnM','cache','.lovrabet/skill/guides','length','skillTemplate','application/json','105796rzFBTr','statusText','CDN\x20返回数据格式错误','utf-8','\x0a\x0a>更新时间:','15cDNDvh','CDN\x20数据中缺少\x20skillTemplate','9684168iCbjYu','.lovrabet','status','entries','keys','104451mQdHLC','push','9238266CrdycB','trimEnd','guides','content','map','json','lastUpdated','9169860qWIGCP','78AwcWwP','path','370102CQiFTe','extendContent'];a250_0x3088=function(){return _0x100d62;};return a250_0x3088();}export function appendExtendContents(_0x17c2fe,_0x2b5fc1,_0x16aa55){const _0x16ea5e=a250_0x186d1b,_0xc7caf5=[];for(const [,_0x11f50a]of Object[_0x16ea5e(0x1ce)](_0x2b5fc1[_0x16ea5e(0x1d4)])){_0x11f50a[_0x16ea5e(0x1dd)]&&_0xc7caf5[_0x16ea5e(0x1d1)](_0x11f50a['extendContent'][_0x16ea5e(0x1d3)]());}if(_0xc7caf5[_0x16ea5e(0x1e3)]===0x0)return _0x17c2fe;return _0x17c2fe[_0x16ea5e(0x1d3)]()+'\x0a\x0a'+_0xc7caf5['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2aae9f,_0x44a9f3,_0x104f09){const _0x59dc61=a250_0x186d1b,_0x199509=getSkillTemplate(_0x2aae9f);if(!_0x199509)throw new Error(_0x59dc61(0x1ca));const _0x2150d5=dirname(_0x44a9f3);mkdirSync(_0x2150d5,{'recursive':!![]});let _0x2c9224=_0x199509['replace'](/\{\{IDE_NAME\}\}/g,_0x104f09);_0x2c9224=appendExtendContents(_0x2c9224,_0x2aae9f),_0x2aae9f[_0x59dc61(0x1e4)]['lastUpdated']&&(_0x2c9224=appendUpdateTime(_0x2c9224,_0x2aae9f[_0x59dc61(0x1e4)]['lastUpdated'])),writeFileSync(_0x44a9f3,_0x2c9224,_0x59dc61(0x1e9));}export async function installGuides(_0x56dba5){const _0x4aa501=a250_0x186d1b,_0x5b2480=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5b2480,_0x56dba5),Object[_0x4aa501(0x1cf)](_0x5b2480['guides'])[_0x4aa501(0x1e3)];}export function getGuidesSummary(_0x277a82){const _0x55c51b=a250_0x186d1b;return Object['entries'](_0x277a82['guides'])[_0x55c51b(0x1d6)](([_0x582e54,_0x1afc09])=>({'key':_0x582e54,'title':_0x1afc09[_0x55c51b(0x1df)],'path':_0x1afc09[_0x55c51b(0x1db)]}));}
1
+ const a251_0x1106aa=a251_0x5d32;(function(_0x36abdb,_0x5f27c5){const _0x2c889a=a251_0x5d32,_0x4c2477=_0x36abdb();while(!![]){try{const _0x28d856=-parseInt(_0x2c889a(0x1d3))/0x1*(parseInt(_0x2c889a(0x1bc))/0x2)+-parseInt(_0x2c889a(0x1d8))/0x3*(-parseInt(_0x2c889a(0x1b9))/0x4)+parseInt(_0x2c889a(0x1d7))/0x5+-parseInt(_0x2c889a(0x1c1))/0x6*(-parseInt(_0x2c889a(0x1c7))/0x7)+parseInt(_0x2c889a(0x1c6))/0x8*(-parseInt(_0x2c889a(0x1b6))/0x9)+parseInt(_0x2c889a(0x1ba))/0xa+parseInt(_0x2c889a(0x1cd))/0xb;if(_0x28d856===_0x5f27c5)break;else _0x4c2477['push'](_0x4c2477['shift']());}catch(_0x36c598){_0x4c2477['push'](_0x4c2477['shift']());}}}(a251_0x14bc,0xd6787));function a251_0x14bc(){const _0x16814a=['entries','object','replace','.lovrabet/skill/guides','8TIZAaB','51310uKdXIm','CDN\x20数据中缺少\x20skillTemplate','statusText','content','skillTemplate','cache','438097zRKwog','join','CDN\x20请求失败:\x20','status','map','\x0a\x0a>更新时间:','247465VyJWJm','json','keys','.lovrabet','299085dsqIBY','24dcwzmZ','guides','push','15184647PrDnwQ','extendContent','application/json','127936qppdcE','10484880CLpXjY','length','4OTcDdx','title','utf-8','lastUpdated','trimEnd','1356Yaodxg'];a251_0x14bc=function(){return _0x16814a;};return a251_0x14bc();}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a251_0x5d32(_0x16cd7e,_0x1c2fa3){_0x16cd7e=_0x16cd7e-0x1b5;const _0x14bc09=a251_0x14bc();let _0x5d3284=_0x14bc09[_0x16cd7e];return _0x5d3284;}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2aac15=getTemplateBaseUrl();return _0x2aac15+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a251_0x1106aa(0x1d6),a251_0x1106aa(0x1cc));export async function fetchGuidesFromCDN(){const _0x4b403b=a251_0x1106aa,_0x59b9cf=getGuidesCdnUrl(),_0x3f3e04=await fetch(_0x59b9cf,{'headers':{'Accept':_0x4b403b(0x1b8)}});if(!_0x3f3e04['ok'])throw new Error(_0x4b403b(0x1cf)+_0x3f3e04[_0x4b403b(0x1d0)]+'\x20'+_0x3f3e04[_0x4b403b(0x1c9)]);const _0x460383=await _0x3f3e04[_0x4b403b(0x1d4)]();if(!_0x460383[_0x4b403b(0x1d9)]||typeof _0x460383[_0x4b403b(0x1d9)]!==_0x4b403b(0x1c3))throw new Error('CDN\x20返回数据格式错误');return _0x460383;}export function writeGuidesToProject(_0x49cc3f,_0x369008,_0x4d5a90=a251_0x1106aa(0x1c5),_0x2efc82){const _0x47bf3d=a251_0x1106aa,_0x2e2ff2=join(_0x369008,_0x4d5a90);mkdirSync(_0x2e2ff2,{'recursive':!![]});for(const [_0x191be7,_0x1876db]of Object[_0x47bf3d(0x1c2)](_0x49cc3f[_0x47bf3d(0x1d9)])){let _0x3b1286=_0x1876db[_0x47bf3d(0x1ca)];_0x1876db['lastUpdated']&&(_0x3b1286=appendUpdateTime(_0x3b1286,_0x1876db[_0x47bf3d(0x1bf)])),writeFileSync(join(_0x2e2ff2,_0x191be7+'.md'),_0x3b1286,_0x47bf3d(0x1be));}}export function appendUpdateTime(_0x393a12,_0x5cbad3){const _0x241178=a251_0x1106aa;return _0x393a12=_0x393a12[_0x241178(0x1c4)](/\n*>更新时间:.*$/m,''),_0x393a12['trimEnd']()+(_0x241178(0x1d2)+_0x5cbad3);}export function getSkillTemplate(_0xc5d85){const _0xd85b5c=a251_0x1106aa;return _0xc5d85[_0xd85b5c(0x1cb)]?.[_0xd85b5c(0x1ca)]||'';}export function appendExtendContents(_0x5c9af9,_0x1d15da,_0x1b319f){const _0x19fda7=a251_0x1106aa,_0x14f500=[];for(const [,_0x496260]of Object['entries'](_0x1d15da[_0x19fda7(0x1d9)])){_0x496260[_0x19fda7(0x1b7)]&&_0x14f500[_0x19fda7(0x1b5)](_0x496260[_0x19fda7(0x1b7)][_0x19fda7(0x1c0)]());}if(_0x14f500[_0x19fda7(0x1bb)]===0x0)return _0x5c9af9;return _0x5c9af9[_0x19fda7(0x1c0)]()+'\x0a\x0a'+_0x14f500[_0x19fda7(0x1ce)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5ba89b,_0x55b88f,_0x57eda1){const _0x3a39df=a251_0x1106aa,_0x3f106e=getSkillTemplate(_0x5ba89b);if(!_0x3f106e)throw new Error(_0x3a39df(0x1c8));const _0x35d2bd=dirname(_0x55b88f);mkdirSync(_0x35d2bd,{'recursive':!![]});let _0x4536b2=_0x3f106e['replace'](/\{\{IDE_NAME\}\}/g,_0x57eda1);_0x4536b2=appendExtendContents(_0x4536b2,_0x5ba89b),_0x5ba89b[_0x3a39df(0x1cb)]['lastUpdated']&&(_0x4536b2=appendUpdateTime(_0x4536b2,_0x5ba89b[_0x3a39df(0x1cb)][_0x3a39df(0x1bf)])),writeFileSync(_0x55b88f,_0x4536b2,'utf-8');}export async function installGuides(_0x333f46){const _0xaaa915=a251_0x1106aa,_0x4c0479=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4c0479,_0x333f46),Object[_0xaaa915(0x1d5)](_0x4c0479[_0xaaa915(0x1d9)])[_0xaaa915(0x1bb)];}export function getGuidesSummary(_0xa11da){const _0x32815b=a251_0x1106aa;return Object[_0x32815b(0x1c2)](_0xa11da[_0x32815b(0x1d9)])[_0x32815b(0x1d1)](([_0x5c6782,_0x2f6568])=>({'key':_0x5c6782,'title':_0x2f6568[_0x32815b(0x1bd)],'path':_0x2f6568['path']}));}