@lovrabet/rabetbase-cli 2.3.11 → 2.3.12-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 -1
  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(_0x3db4eb,_0x50f9fc){const _0x38f311=a232_0x420f,_0x1ef758=_0x3db4eb();while(!![]){try{const _0x297cb4=parseInt(_0x38f311(0xed))/0x1+parseInt(_0x38f311(0xe9))/0x2+-parseInt(_0x38f311(0xe6))/0x3*(parseInt(_0x38f311(0xee))/0x4)+parseInt(_0x38f311(0xe3))/0x5+-parseInt(_0x38f311(0xfd))/0x6+-parseInt(_0x38f311(0xe7))/0x7*(-parseInt(_0x38f311(0xf8))/0x8)+parseInt(_0x38f311(0x100))/0x9*(-parseInt(_0x38f311(0xe4))/0xa);if(_0x297cb4===_0x50f9fc)break;else _0x1ef758['push'](_0x1ef758['shift']());}catch(_0x4b90e3){_0x1ef758['push'](_0x1ef758['shift']());}}}(a232_0x582a,0xe9ee0));import{logger}from'../utils/logger.js';function a232_0x420f(_0x3228c5,_0x4b91b3){_0x3228c5=_0x3228c5-0xe3;const _0x582aba=a232_0x582a();let _0x420ffb=_0x582aba[_0x3228c5];return _0x420ffb;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x75db03){const _0x29786e=a232_0x420f,_0x43dca7=[];for(const [_0x1d8802,_0xc4a37f]of Object[_0x29786e(0xe8)](_0x75db03)){if(_0xc4a37f===!![]){const _0x439899=_0x1d8802['replace'](/([A-Z])/g,_0x29786e(0xea))['toLowerCase']();_0x43dca7[_0x29786e(0xff)](_0x439899);}}return _0x43dca7;}export function parseDynamicFlags(){const _0x3668d9=a232_0x420f,_0x35daaf=[];for(let _0xd1c1c5=0x3;_0xd1c1c5<process[_0x3668d9(0xf4)][_0x3668d9(0xf3)];_0xd1c1c5++){const _0x5eba4a=process['argv'][_0xd1c1c5];if(_0x5eba4a&&_0x5eba4a[_0x3668d9(0xfc)]('--')){const _0x17aafd=_0x5eba4a[_0x3668d9(0xe5)](0x2);_0x17aafd&&!_0x17aafd['includes']('=')&&_0x35daaf[_0x3668d9(0xff)](_0x17aafd);}}return _0x35daaf;}export function getAllProvidedFlags(_0x205a84){const _0x404607=a232_0x420f,_0x2facbc=camelCaseFlagsToKebab(_0x205a84),_0x378395=parseDynamicFlags(),_0x598c40=new Set([..._0x2facbc,..._0x378395]);return Array[_0x404607(0xf7)](_0x598c40);}export function normalizeLegacyBffSaveFlags(_0x42f854){const _0x12e53a=a232_0x420f,_0x421ca4=new Set(_0x42f854);return _0x421ca4[_0x12e53a(0xf9)]('dangerously-bff-save')&&_0x421ca4[_0x12e53a(0xeb)]('enable-bff-save'),Array[_0x12e53a(0xf7)](_0x421ca4);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5913fc,_0x66ea71,_0x2bf42f){const _0x510ced=a232_0x420f;logger[_0x510ced(0xfe)](process['cwd']());if(_0x2bf42f?.[_0x510ced(0xef)]||_0x5913fc===_0x510ced(0xec)){showHelp();return;}console[_0x510ced(0xf0)](_0x510ced(0xf6)+(_0x5913fc||_0x510ced(0xf1))),console[_0x510ced(0xfa)](_0x510ced(0xf5)),console[_0x510ced(0xfa)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x510ced(0xfa)](''),console[_0x510ced(0xfa)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x510ced(0xf0)]('skill',_0x510ced(0xf2)+_0x5913fc),process['exit'](0x1);}function showHelp(){const _0x524261=a232_0x420f;console[_0x524261(0xfa)](_0x524261(0x101)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x524261(0xfb));}function a232_0x582a(){const _0xb598f4=['Error:\x20Unsupported\x20command:\x20','from','1492016rNOYLT','has','log','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','startsWith','8819706HoiNNu','setLogPath','push','9RyHXCS','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','7794775pBYDvD','13100570ciwsWn','slice','69VoYkyb','28ELDfOe','entries','3607432ySQFYg','-$1','add','--help','668553nvTMha','180704hZtsTn','help','error','(empty)','不支持的命令:\x20','length','argv','\x0aAvailable\x20commands:'];a232_0x582a=function(){return _0xb598f4;};return a232_0x582a();}
1
+ function a232_0x1113(){const _0x2454c5=['Equivalent\x20command:\x20','5231479mZdhuy','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','80BRWBbW','enable-bff-save','error','6020aEfyUU','help','35912sSAWxY','291SrumZi','has','push','includes','from','8043312nVXGvM','1692zxpQtn','dangerously-bff-save','exit','log','-$1','skill','5035387nshJYv','Error:\x20Unsupported\x20command:\x20','20ItkADb','\x0aAvailable\x20commands:','不支持的命令:\x20','3298210MInrsB','81798ZJxPmi','add'];a232_0x1113=function(){return _0x2454c5;};return a232_0x1113();}(function(_0x26dc1d,_0xf5ca89){const _0x116337=a232_0x29c4,_0x28332e=_0x26dc1d();while(!![]){try{const _0x406784=-parseInt(_0x116337(0x17e))/0x1*(-parseInt(_0x116337(0x19a))/0x2)+parseInt(_0x116337(0x190))/0x3*(-parseInt(_0x116337(0x197))/0x4)+-parseInt(_0x116337(0x18f))/0x5+-parseInt(_0x116337(0x183))/0x6+parseInt(_0x116337(0x18a))/0x7+parseInt(_0x116337(0x17d))/0x8*(parseInt(_0x116337(0x184))/0x9)+parseInt(_0x116337(0x18c))/0xa*(parseInt(_0x116337(0x193))/0xb);if(_0x406784===_0xf5ca89)break;else _0x28332e['push'](_0x28332e['shift']());}catch(_0x3325d8){_0x28332e['push'](_0x28332e['shift']());}}}(a232_0x1113,0xce42f));function a232_0x29c4(_0x3215bd,_0xe1e5c5){_0x3215bd=_0x3215bd-0x17d;const _0x11130a=a232_0x1113();let _0x29c41d=_0x11130a[_0x3215bd];return _0x29c41d;}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(_0x5bcb72){const _0x175937=a232_0x29c4,_0x1d4cab=[];for(const [_0x5773b6,_0x16d4da]of Object['entries'](_0x5bcb72)){if(_0x16d4da===!![]){const _0x41727f=_0x5773b6['replace'](/([A-Z])/g,_0x175937(0x188))['toLowerCase']();_0x1d4cab[_0x175937(0x180)](_0x41727f);}}return _0x1d4cab;}export function parseDynamicFlags(){const _0x2cd0c9=a232_0x29c4,_0x3e810e=[];for(let _0x37153c=0x3;_0x37153c<process['argv']['length'];_0x37153c++){const _0x13b811=process['argv'][_0x37153c];if(_0x13b811&&_0x13b811['startsWith']('--')){const _0x14ad6f=_0x13b811['slice'](0x2);_0x14ad6f&&!_0x14ad6f[_0x2cd0c9(0x181)]('=')&&_0x3e810e['push'](_0x14ad6f);}}return _0x3e810e;}export function getAllProvidedFlags(_0x209918){const _0x3f6d5f=a232_0x29c4,_0x2a61e8=camelCaseFlagsToKebab(_0x209918),_0x5cb43c=parseDynamicFlags(),_0x20cace=new Set([..._0x2a61e8,..._0x5cb43c]);return Array[_0x3f6d5f(0x182)](_0x20cace);}export function normalizeLegacyBffSaveFlags(_0x3b883f){const _0x227090=a232_0x29c4,_0xd78de5=new Set(_0x3b883f);return _0xd78de5[_0x227090(0x17f)](_0x227090(0x185))&&_0xd78de5[_0x227090(0x191)](_0x227090(0x198)),Array[_0x227090(0x182)](_0xd78de5);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x18052a,_0x36138f,_0x2e24aa){const _0x152bbf=a232_0x29c4;logger['setLogPath'](process['cwd']());if(_0x2e24aa?.[_0x152bbf(0x19b)]||_0x18052a==='--help'){showHelp();return;}console[_0x152bbf(0x199)](_0x152bbf(0x18b)+(_0x18052a||'(empty)')),console[_0x152bbf(0x187)](_0x152bbf(0x18d)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x152bbf(0x196)),console[_0x152bbf(0x187)](''),console[_0x152bbf(0x187)](_0x152bbf(0x192)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x152bbf(0x199)](_0x152bbf(0x189),_0x152bbf(0x18e)+_0x18052a),process[_0x152bbf(0x186)](0x1);}function showHelp(){const _0xc7d5f=a232_0x29c4;console[_0xc7d5f(0x187)](_0xc7d5f(0x195)+CLI_BIN_NAME+_0xc7d5f(0x194)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
@@ -1 +1 @@
1
- const a233_0x63dd19=a233_0x5422;(function(_0x390105,_0x157089){const _0x1b18d3=a233_0x5422,_0x10f874=_0x390105();while(!![]){try{const _0x2a4455=parseInt(_0x1b18d3(0xf3))/0x1*(-parseInt(_0x1b18d3(0xf5))/0x2)+parseInt(_0x1b18d3(0xeb))/0x3+-parseInt(_0x1b18d3(0xfc))/0x4+-parseInt(_0x1b18d3(0xee))/0x5+parseInt(_0x1b18d3(0xe9))/0x6+-parseInt(_0x1b18d3(0xed))/0x7+parseInt(_0x1b18d3(0xff))/0x8;if(_0x2a4455===_0x157089)break;else _0x10f874['push'](_0x10f874['shift']());}catch(_0x58fa0e){_0x10f874['push'](_0x10f874['shift']());}}}(a233_0x1000,0x4b224));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a233_0x1000(){const _0x5ee0e9=['3778201MxNwVC','1137655txwapE','push','inherit','pipe','unknown','3708JVWURG','lovrabet/lovrabet-skill','156mehZCi','skill','exit\x20','yes','toString','npx','join','1676296WkOeJe','add','stderr','12365192dEaCJq','Lovrabet','--skill','log','stdout','skills','status','trim','708402HfmZxt','remove','358812XMGJVd','stdio'];a233_0x1000=function(){return _0x5ee0e9;};return a233_0x1000();}export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a233_0x5422(_0x3dc682,_0x14522c){_0x3dc682=_0x3dc682-0xe2;const _0x100000=a233_0x1000();let _0x542229=_0x100000[_0x3dc682];return _0x542229;}export const NPX_SKILLS_CLI=a233_0x63dd19(0xe6);export const NPX_SKILLS_SUBCOMMAND_ADD=a233_0x63dd19(0xfd);export const NPX_SKILLS_FLAG_SKILL=a233_0x63dd19(0xe3);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a233_0x63dd19(0xf4);export const DEFAULT_RABETBASE_SKILL_NAME=a233_0x63dd19(0xe2);export function buildNpxSkillsAddArgv(_0xfa8bbc){const _0x19ec48=a233_0x63dd19,_0x2d4660=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xfa8bbc&&_0x2d4660[_0x19ec48(0xef)](NPX_SKILLS_FLAG_SKILL,_0xfa8bbc),_0x2d4660;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a233_0x63dd19(0xfa),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a233_0x63dd19(0xfb)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x9b4e46,_0x4b5e68){const _0x2aab18=a233_0x63dd19;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x39bbbb=_0x4b5e68?.[_0x2aab18(0xec)]??_0x2aab18(0xf0),_0xba080a=resolveNpmBin(_0x2aab18(0xfa)),_0x1ba2c5=buildNpxSkillsAddArgv(_0x4b5e68?.[_0x2aab18(0xf6)]),_0x120953=[_0x2aab18(0xfa),..._0x1ba2c5][_0x2aab18(0xfb)]('\x20');console[_0x2aab18(0xe4)]('*\x20'+_0x120953);const _0x2e4566=spawnSync(_0xba080a,_0x1ba2c5,{'cwd':_0x9b4e46,'stdio':_0x39bbbb,'env':process.env,'shell':![]}),_0x1e2f98=_0x2e4566[_0x2aab18(0xe7)];if(_0x1e2f98===0x0)return{'ok':!![],'status':0x0};let _0x4d71f9='exit\x20'+(_0x1e2f98??_0x2aab18(0xf2));if(_0x39bbbb===_0x2aab18(0xf1)){const _0x436ac8=_0x2e4566[_0x2aab18(0xfe)]?_0x2e4566[_0x2aab18(0xfe)][_0x2aab18(0xf9)]()['trim']():'',_0x1a55fe=_0x2e4566[_0x2aab18(0xe5)]?_0x2e4566[_0x2aab18(0xe5)]['toString']()[_0x2aab18(0xe8)]():'';if(_0x436ac8)_0x4d71f9=_0x436ac8;else{if(_0x1a55fe)_0x4d71f9=_0x1a55fe;}}return{'ok':![],'status':_0x1e2f98??null,'error':_0x4d71f9};}export function runNpxSkillsRemove(_0x276e29,_0xffd4e9,_0x5e4da7=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5a7ec6=a233_0x63dd19;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x53eb1b=_0xffd4e9?.[_0x5a7ec6(0xec)]??'inherit',_0x38c08f=resolveNpmBin(_0x5a7ec6(0xfa)),_0x14f463=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5a7ec6(0xea),_0x5e4da7,NPX_SKILLS_FLAG_SKILL,_0xffd4e9?.[_0x5a7ec6(0xf6)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xffd4e9?.[_0x5a7ec6(0xf8)]?['-y']:[]],_0x4a6551=[_0x38c08f,..._0x14f463][_0x5a7ec6(0xfb)]('\x20');console[_0x5a7ec6(0xe4)]('*\x20'+_0x4a6551);const _0x5cd315=spawnSync(_0x38c08f,_0x14f463,{'cwd':_0x276e29,'stdio':_0x53eb1b,'env':process.env,'shell':![]}),_0x44becb=_0x5cd315[_0x5a7ec6(0xe7)];if(_0x44becb===0x0)return{'ok':!![],'status':0x0};let _0x5a75f4=_0x5a7ec6(0xf7)+(_0x44becb??_0x5a7ec6(0xf2));if(_0x53eb1b===_0x5a7ec6(0xf1)){const _0x4dfbf6=_0x5cd315[_0x5a7ec6(0xfe)]?_0x5cd315['stderr'][_0x5a7ec6(0xf9)]()['trim']():'',_0x56f5c4=_0x5cd315[_0x5a7ec6(0xe5)]?_0x5cd315[_0x5a7ec6(0xe5)][_0x5a7ec6(0xf9)]()[_0x5a7ec6(0xe8)]():'';if(_0x4dfbf6)_0x5a75f4=_0x4dfbf6;else{if(_0x56f5c4)_0x5a75f4=_0x56f5c4;}}return{'ok':![],'status':_0x44becb??null,'error':_0x5a75f4};}export function runNpxSkillsAddGlobal(_0x559029,_0x3631b3,_0xd83f4){const _0x214493=a233_0x63dd19;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4a08c4=_0xd83f4?.[_0x214493(0xec)]??_0x214493(0xf0),_0x383832=resolveNpmBin('npx'),_0x1f4b0e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3631b3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x34b860=[_0x214493(0xfa),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3631b3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x214493(0xfb)]('\x20');console[_0x214493(0xe4)]('*\x20'+_0x34b860);const _0x533c0d=spawnSync(_0x383832,_0x1f4b0e,{'cwd':_0x559029,'stdio':_0x4a08c4,'env':process.env,'shell':![]}),_0x151f01=_0x533c0d['status'];if(_0x151f01===0x0)return{'ok':!![],'status':0x0};let _0x4e51b9=_0x214493(0xf7)+(_0x151f01??_0x214493(0xf2));if(_0x4a08c4==='pipe'){const _0x1cc04d=_0x533c0d[_0x214493(0xfe)]?_0x533c0d['stderr'][_0x214493(0xf9)]()[_0x214493(0xe8)]():'',_0x4c2d12=_0x533c0d[_0x214493(0xe5)]?_0x533c0d['stdout'][_0x214493(0xf9)]()[_0x214493(0xe8)]():'';if(_0x1cc04d)_0x4e51b9=_0x1cc04d;else{if(_0x4c2d12)_0x4e51b9=_0x4c2d12;}}return{'ok':![],'status':_0x151f01??null,'error':_0x4e51b9};}
1
+ const a233_0x5bf842=a233_0xd755;function a233_0x3098(){const _0x262b9c=['npx','3prGkYn','6taUyxE','remove','lovrabet/rabetbase','stderr','7129IYxSGr','--skill','2850862NqThek','add','status','pipe','Lovrabet','toString','push','trim','lovrabet/lovrabet-skill','stdout','log','stdio','1320888WOxtTO','2070085IwKjvU','816056QQBoCG','17330XsTnSJ','yes','inherit','exit\x20','unknown','join','632290AuLbhb','549gZcVdv'];a233_0x3098=function(){return _0x262b9c;};return a233_0x3098();}(function(_0x462568,_0x2a6550){const _0x3eaa1d=a233_0xd755,_0x12875e=_0x462568();while(!![]){try{const _0x32eaf7=-parseInt(_0x3eaa1d(0x100))/0x1+-parseInt(_0x3eaa1d(0xf8))/0x2*(parseInt(_0x3eaa1d(0xfb))/0x3)+-parseInt(_0x3eaa1d(0xf1))/0x4+parseInt(_0x3eaa1d(0xf0))/0x5*(parseInt(_0x3eaa1d(0xfc))/0x6)+parseInt(_0x3eaa1d(0xe3))/0x7+-parseInt(_0x3eaa1d(0xef))/0x8+-parseInt(_0x3eaa1d(0xf9))/0x9*(-parseInt(_0x3eaa1d(0xf2))/0xa);if(_0x32eaf7===_0x2a6550)break;else _0x12875e['push'](_0x12875e['shift']());}catch(_0x427cef){_0x12875e['push'](_0x12875e['shift']());}}}(a233_0x3098,0x39465));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_0x5bf842(0xe4);export const NPX_SKILLS_FLAG_SKILL=a233_0x5bf842(0xe2);export const RABETBASE_SKILL_SOURCE=a233_0x5bf842(0xfe);export const LEGACY_RABETBASE_SKILL_SOURCE=a233_0x5bf842(0xeb);export const DEFAULT_RABETBASE_SKILL_NAME=a233_0x5bf842(0xe7);export function buildNpxSkillsAddArgv(_0x2b9399){const _0x28e90c=a233_0x5bf842,_0x38a52f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2b9399&&_0x38a52f[_0x28e90c(0xe9)](NPX_SKILLS_FLAG_SKILL,_0x2b9399),_0x38a52f;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a233_0x5bf842(0xfa),...buildNpxSkillsAddArgv()][a233_0x5bf842(0xf7)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a233_0x5bf842(0xfa),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');function a233_0xd755(_0x450b40,_0x9b54eb){_0x450b40=_0x450b40-0xe2;const _0x3098b3=a233_0x3098();let _0xd7550a=_0x3098b3[_0x450b40];return _0xd7550a;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x150096,_0xb33f67){const _0x3b6ad1=a233_0x5bf842;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2a28aa=_0xb33f67?.['stdio']??'inherit',_0x35d651=resolveNpmBin('npx'),_0x52ce22=buildNpxSkillsAddArgv(_0xb33f67?.['skill']),_0xeb3bb8=[_0x3b6ad1(0xfa),..._0x52ce22]['join']('\x20');console[_0x3b6ad1(0xed)]('*\x20'+_0xeb3bb8);const _0x3cf0c1=spawnSync(_0x35d651,_0x52ce22,{'cwd':_0x150096,'stdio':_0x2a28aa,'env':process.env,'shell':![]}),_0x4b1d6f=_0x3cf0c1['status'];if(_0x4b1d6f===0x0)return{'ok':!![],'status':0x0};let _0x466f3a=_0x3b6ad1(0xf5)+(_0x4b1d6f??_0x3b6ad1(0xf6));if(_0x2a28aa===_0x3b6ad1(0xe6)){const _0x3fa4af=_0x3cf0c1[_0x3b6ad1(0xff)]?_0x3cf0c1[_0x3b6ad1(0xff)][_0x3b6ad1(0xe8)]()['trim']():'',_0x250bee=_0x3cf0c1[_0x3b6ad1(0xec)]?_0x3cf0c1[_0x3b6ad1(0xec)]['toString']()[_0x3b6ad1(0xea)]():'';if(_0x3fa4af)_0x466f3a=_0x3fa4af;else{if(_0x250bee)_0x466f3a=_0x250bee;}}return{'ok':![],'status':_0x4b1d6f??null,'error':_0x466f3a};}export function runNpxSkillsRemove(_0x124171,_0x3b84d9,_0x2614cf=LEGACY_RABETBASE_SKILL_SOURCE){const _0x30656c=a233_0x5bf842;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x41e7b6=_0x3b84d9?.['stdio']??_0x30656c(0xf4),_0x1cefec=resolveNpmBin(_0x30656c(0xfa)),_0x158869=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x30656c(0xfd),_0x2614cf,NPX_SKILLS_FLAG_SKILL,_0x3b84d9?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x3b84d9?.[_0x30656c(0xf3)]?['-y']:[]],_0x2702da=[_0x1cefec,..._0x158869][_0x30656c(0xf7)]('\x20');console[_0x30656c(0xed)]('*\x20'+_0x2702da);const _0x3c84b5=spawnSync(_0x1cefec,_0x158869,{'cwd':_0x124171,'stdio':_0x41e7b6,'env':process.env,'shell':![]}),_0x141f16=_0x3c84b5[_0x30656c(0xe5)];if(_0x141f16===0x0)return{'ok':!![],'status':0x0};let _0x5a86a9='exit\x20'+(_0x141f16??'unknown');if(_0x41e7b6==='pipe'){const _0x30e13c=_0x3c84b5[_0x30656c(0xff)]?_0x3c84b5['stderr'][_0x30656c(0xe8)]()[_0x30656c(0xea)]():'',_0x452a46=_0x3c84b5['stdout']?_0x3c84b5[_0x30656c(0xec)]['toString']()[_0x30656c(0xea)]():'';if(_0x30e13c)_0x5a86a9=_0x30e13c;else{if(_0x452a46)_0x5a86a9=_0x452a46;}}return{'ok':![],'status':_0x141f16??null,'error':_0x5a86a9};}export function runNpxSkillsAddGlobal(_0x3fe61a,_0x547bab,_0x49eb10){const _0x33d5df=a233_0x5bf842;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4abef3=_0x49eb10?.[_0x33d5df(0xee)]??_0x33d5df(0xf4),_0xbc6f4a=resolveNpmBin('npx'),_0x4e23c5=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x547bab,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1b2059=[_0x33d5df(0xfa),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x547bab,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x33d5df(0xf7)]('\x20');console[_0x33d5df(0xed)]('*\x20'+_0x1b2059);const _0x100d1d=spawnSync(_0xbc6f4a,_0x4e23c5,{'cwd':_0x3fe61a,'stdio':_0x4abef3,'env':process.env,'shell':![]}),_0x58f4b9=_0x100d1d[_0x33d5df(0xe5)];if(_0x58f4b9===0x0)return{'ok':!![],'status':0x0};let _0x2da23f=_0x33d5df(0xf5)+(_0x58f4b9??'unknown');if(_0x4abef3===_0x33d5df(0xe6)){const _0x2ece17=_0x100d1d[_0x33d5df(0xff)]?_0x100d1d[_0x33d5df(0xff)][_0x33d5df(0xe8)]()[_0x33d5df(0xea)]():'',_0x4626e3=_0x100d1d[_0x33d5df(0xec)]?_0x100d1d[_0x33d5df(0xec)]['toString']()[_0x33d5df(0xea)]():'';if(_0x2ece17)_0x2da23f=_0x2ece17;else{if(_0x4626e3)_0x2da23f=_0x4626e3;}}return{'ok':![],'status':_0x58f4b9??null,'error':_0x2da23f};}
@@ -1 +1 @@
1
- function a234_0x5034(_0x3d3c71,_0x571457){_0x3d3c71=_0x3d3c71-0xcc;const _0x261317=a234_0x2613();let _0x5034a1=_0x261317[_0x3d3c71];return _0x5034a1;}(function(_0x30d180,_0x11855c){const _0x414a32=a234_0x5034,_0x124b1a=_0x30d180();while(!![]){try{const _0x560db7=parseInt(_0x414a32(0xd1))/0x1+parseInt(_0x414a32(0xd6))/0x2*(-parseInt(_0x414a32(0xd4))/0x3)+parseInt(_0x414a32(0xdb))/0x4+-parseInt(_0x414a32(0xda))/0x5*(parseInt(_0x414a32(0xd2))/0x6)+parseInt(_0x414a32(0xd0))/0x7*(parseInt(_0x414a32(0xd8))/0x8)+-parseInt(_0x414a32(0xcc))/0x9+parseInt(_0x414a32(0xdc))/0xa;if(_0x560db7===_0x11855c)break;else _0x124b1a['push'](_0x124b1a['shift']());}catch(_0x5193ee){_0x124b1a['push'](_0x124b1a['shift']());}}}(a234_0x2613,0xc87d4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a234_0x2613(){const _0x16d5da=['171505LBqVWp','6139100NJgNPc','6946700gPFjQa','rabetbase.command','error','some','4464810ZnrMgj','command','service','durationMs','172095QNpTCz','826853CIzSjQ','234RdBfqI','[REDACTED]','3yUMEPw','stringify','1097550DGTICr','flags','48nedSFQ','entries'];a234_0x2613=function(){return _0x16d5da;};return a234_0x2613();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x3d5099){const _0x12e4ac=a234_0x5034;return SENSITIVE_PATTERNS[_0x12e4ac(0xdf)](_0x5c4e4c=>_0x5c4e4c['test'](_0x3d5099));}function sanitizeFlags(_0x1b6157){const _0x49b653=a234_0x5034,_0x242ca0={};for(const [_0x129486,_0x51b5b9]of Object[_0x49b653(0xd9)](_0x1b6157)){isSensitiveKey(_0x129486)?_0x242ca0[_0x129486]=_0x51b5b9!=null&&_0x51b5b9!==''?_0x49b653(0xd3):_0x51b5b9:_0x242ca0[_0x129486]=_0x51b5b9;}return _0x242ca0;}export async function reportCommandTrace(_0x4ef406){const _0x1e0be1=a234_0x5034;try{const _0x489521=sanitizeFlags(_0x4ef406[_0x1e0be1(0xd7)]);await sendCliTraceLog({'spanName':_0x1e0be1(0xdd),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4ef406[_0x1e0be1(0xce)],'command.name':_0x4ef406[_0x1e0be1(0xcd)],'command.flags':JSON[_0x1e0be1(0xd5)](_0x489521),..._0x4ef406[_0x1e0be1(0xcf)]!=null?{'command.duration_ms':_0x4ef406[_0x1e0be1(0xcf)]}:{},..._0x4ef406[_0x1e0be1(0xde)]?{'command.error':_0x4ef406[_0x1e0be1(0xde)]instanceof Error?_0x4ef406[_0x1e0be1(0xde)]['message']:String(_0x4ef406[_0x1e0be1(0xde)])}:{}}});}catch{}}
1
+ function a234_0x4c2a(_0x27e601,_0x17a260){_0x27e601=_0x27e601-0x153;const _0x252755=a234_0x2527();let _0x4c2a76=_0x252755[_0x27e601];return _0x4c2a76;}function a234_0x2527(){const _0x1fbcd4=['error','stringify','35HOIKmV','275YZuVsr','4xsCMgQ','586332AFAaWY','5451512kViALp','610320yBFFrM','66984miVUFR','102YEHJIg','some','test','408294XvyQAF','9EaTViM','rabetbase.command','flags','message','641725HpDaKy','durationMs','[REDACTED]','251268EDiIAr'];a234_0x2527=function(){return _0x1fbcd4;};return a234_0x2527();}(function(_0x1bcd18,_0x1c1d0b){const _0x5a6b37=a234_0x4c2a,_0x382305=_0x1bcd18();while(!![]){try{const _0x3205d9=parseInt(_0x5a6b37(0x156))/0x1+-parseInt(_0x5a6b37(0x163))/0x2*(parseInt(_0x5a6b37(0x167))/0x3)+parseInt(_0x5a6b37(0x164))/0x4*(-parseInt(_0x5a6b37(0x161))/0x5)+-parseInt(_0x5a6b37(0x153))/0x6*(-parseInt(_0x5a6b37(0x15b))/0x7)+parseInt(_0x5a6b37(0x165))/0x8*(parseInt(_0x5a6b37(0x157))/0x9)+-parseInt(_0x5a6b37(0x166))/0xa+-parseInt(_0x5a6b37(0x162))/0xb*(parseInt(_0x5a6b37(0x15e))/0xc);if(_0x3205d9===_0x1c1d0b)break;else _0x382305['push'](_0x382305['shift']());}catch(_0x3d6594){_0x382305['push'](_0x382305['shift']());}}}(a234_0x2527,0xf26c4));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(_0x4bcff3){const _0x1873e1=a234_0x4c2a;return SENSITIVE_PATTERNS[_0x1873e1(0x154)](_0x89361f=>_0x89361f[_0x1873e1(0x155)](_0x4bcff3));}function sanitizeFlags(_0x3eccde){const _0x37a262=a234_0x4c2a,_0x2c5f4b={};for(const [_0x1b9f7a,_0x153b96]of Object['entries'](_0x3eccde)){isSensitiveKey(_0x1b9f7a)?_0x2c5f4b[_0x1b9f7a]=_0x153b96!=null&&_0x153b96!==''?_0x37a262(0x15d):_0x153b96:_0x2c5f4b[_0x1b9f7a]=_0x153b96;}return _0x2c5f4b;}export async function reportCommandTrace(_0x3073b6){const _0x3b1a23=a234_0x4c2a;try{const _0x27c9dc=sanitizeFlags(_0x3073b6[_0x3b1a23(0x159)]);await sendCliTraceLog({'spanName':_0x3b1a23(0x158),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3073b6['service'],'command.name':_0x3073b6['command'],'command.flags':JSON[_0x3b1a23(0x160)](_0x27c9dc),..._0x3073b6[_0x3b1a23(0x15c)]!=null?{'command.duration_ms':_0x3073b6[_0x3b1a23(0x15c)]}:{},..._0x3073b6[_0x3b1a23(0x15f)]?{'command.error':_0x3073b6[_0x3b1a23(0x15f)]instanceof Error?_0x3073b6[_0x3b1a23(0x15f)][_0x3b1a23(0x15a)]:String(_0x3073b6[_0x3b1a23(0x15f)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2ae6c2,_0x440ae5){var _0x4b9381=a235_0x582b,_0x3aedcc=_0x2ae6c2();while(!![]){try{var _0x3a307e=parseInt(_0x4b9381(0x19f))/0x1*(-parseInt(_0x4b9381(0x1a9))/0x2)+parseInt(_0x4b9381(0x1ac))/0x3*(parseInt(_0x4b9381(0x1a1))/0x4)+parseInt(_0x4b9381(0x1a2))/0x5+-parseInt(_0x4b9381(0x1a3))/0x6*(parseInt(_0x4b9381(0x1a0))/0x7)+-parseInt(_0x4b9381(0x1a8))/0x8*(parseInt(_0x4b9381(0x1aa))/0x9)+-parseInt(_0x4b9381(0x1a6))/0xa*(parseInt(_0x4b9381(0x19e))/0xb)+parseInt(_0x4b9381(0x1a4))/0xc;if(_0x3a307e===_0x440ae5)break;else _0x3aedcc['push'](_0x3aedcc['shift']());}catch(_0x5cb83d){_0x3aedcc['push'](_0x3aedcc['shift']());}}}(a235_0x1615,0x50b9e));function a235_0x582b(_0x18ac1d,_0x48b3f1){_0x18ac1d=_0x18ac1d-0x19d;var _0x1615f3=a235_0x1615();var _0x582b75=_0x1615f3[_0x18ac1d];return _0x582b75;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x576910,_0x5e9017){var _0x3f7db9=a235_0x582b;try{await sendCliTraceLog({'spanName':_0x3f7db9(0x1a5),'logData':{'rabetbase.help.kind':_0x576910,..._0x5e9017?.[_0x3f7db9(0x1ab)]&&{'rabetbase.help.service':_0x5e9017[_0x3f7db9(0x1ab)]}}});}catch(_0x10ba1f){console[_0x3f7db9(0x19d)](_0x3f7db9(0x1a7),_0x10ba1f);}}function a235_0x1615(){var _0x43be9f=['40phsVRT','Failed\x20to\x20report\x20CLI\x20help\x20trace:','138872IBzHYo','2bhQloc','72sxkhbq','service','223341BSCJBr','error','1556533XpyXAF','41023FQwkhd','4188191RnVuVF','4rbAZXQ','483545BWeZos','6BynLkU','18044616RGRrFI','cli.help'];a235_0x1615=function(){return _0x43be9f;};return a235_0x1615();}
1
+ (function(_0x1441ad,_0x34a16c){var _0x59a8d9=a235_0x4128,_0x244f61=_0x1441ad();while(!![]){try{var _0x3e3009=parseInt(_0x59a8d9(0x1e4))/0x1+-parseInt(_0x59a8d9(0x1e3))/0x2+-parseInt(_0x59a8d9(0x1dd))/0x3*(-parseInt(_0x59a8d9(0x1e6))/0x4)+parseInt(_0x59a8d9(0x1da))/0x5+parseInt(_0x59a8d9(0x1e2))/0x6+parseInt(_0x59a8d9(0x1db))/0x7*(parseInt(_0x59a8d9(0x1e5))/0x8)+-parseInt(_0x59a8d9(0x1e0))/0x9*(parseInt(_0x59a8d9(0x1dc))/0xa);if(_0x3e3009===_0x34a16c)break;else _0x244f61['push'](_0x244f61['shift']());}catch(_0x522f46){_0x244f61['push'](_0x244f61['shift']());}}}(a235_0x5b44,0x98da5));function a235_0x4128(_0x58a1c4,_0x26ff27){_0x58a1c4=_0x58a1c4-0x1da;var _0x5b4496=a235_0x5b44();var _0x4128ca=_0x5b4496[_0x58a1c4];return _0x4128ca;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a235_0x5b44(){var _0x4bf52c=['771656mMoGUQ','24OKEbmg','3078535uWyVos','42CXDoFk','80whhYvM','95718Ujuncj','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','2670111CaKRnd','service','4387272fNcUEI','537154CUBtLS','1150997qJizfM'];a235_0x5b44=function(){return _0x4bf52c;};return a235_0x5b44();}export async function reportCliHelpTrace(_0x3e18b9,_0x430fb7){var _0x4f68e3=a235_0x4128;try{await sendCliTraceLog({'spanName':_0x4f68e3(0x1df),'logData':{'rabetbase.help.kind':_0x3e18b9,..._0x430fb7?.[_0x4f68e3(0x1e1)]&&{'rabetbase.help.service':_0x430fb7[_0x4f68e3(0x1e1)]}}});}catch(_0x56f229){console['error'](_0x4f68e3(0x1de),_0x56f229);}}
@@ -1 +1 @@
1
- (function(_0x4609e3,_0x469f6b){const _0x45db32=a236_0x493b,_0x1c6bb7=_0x4609e3();while(!![]){try{const _0x4c96c3=-parseInt(_0x45db32(0xce))/0x1+-parseInt(_0x45db32(0xd7))/0x2*(-parseInt(_0x45db32(0xd4))/0x3)+-parseInt(_0x45db32(0xd1))/0x4+-parseInt(_0x45db32(0xcb))/0x5+-parseInt(_0x45db32(0xd8))/0x6*(parseInt(_0x45db32(0xcf))/0x7)+-parseInt(_0x45db32(0xcd))/0x8+parseInt(_0x45db32(0xd3))/0x9;if(_0x4c96c3===_0x469f6b)break;else _0x1c6bb7['push'](_0x1c6bb7['shift']());}catch(_0x2140d8){_0x1c6bb7['push'](_0x1c6bb7['shift']());}}}(a236_0x55cd,0xd3bff));function a236_0x493b(_0xcdb7b9,_0x34dc87){_0xcdb7b9=_0xcdb7b9-0xc9;const _0x55cd8d=a236_0x55cd();let _0x493b43=_0x55cd8d[_0xcdb7b9];return _0x493b43;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a236_0x55cd(){const _0x4a8e83=['unknown','nickname','276rqofQZ','6kaFmGT','tenant_code','daily','6666335IBcDjK','production','7981616wblJLc','1611057aZZpvi','9567215JZRCsj','email','2479524PBZMnR','tenant','45652473WwXwAy','37467iYqhcz'];a236_0x55cd=function(){return _0x4a8e83;};return a236_0x55cd();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x33c113=a236_0x493b,_0xfddeb8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x54030b=_0xfddeb8?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x33c113(0xd5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x33c113(0xca):_0x33c113(0xcc))}),setUserContext({'id':_0x54030b?.['id'],'username':_0x54030b?.['username'],'nickname':_0x54030b?.[_0x33c113(0xd6)],'email':_0x54030b?.[_0x33c113(0xd0)],'tenantCode':_0x54030b?.[_0x33c113(0xd2)][_0x33c113(0xc9)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xfddeb8;}
1
+ function a236_0x53de(){const _0x5c4c20=['3192rhQmDz','daily','440894xXbxUe','319smxvxc','email','tenant','3282855dXOORH','production','12834OjEiRM','1458666NGNuUM','unknown','79925IeAiWa','4unRiIr','user','490RNUeeQ','username','16938zNKsZa','397340sjrZqx'];a236_0x53de=function(){return _0x5c4c20;};return a236_0x53de();}(function(_0x532295,_0x4162f4){const _0x1580db=a236_0x29fc,_0x4115ba=_0x532295();while(!![]){try{const _0xfec8a1=parseInt(_0x1580db(0x1cd))/0x1+-parseInt(_0x1580db(0x1d4))/0x2+parseInt(_0x1580db(0x1d1))/0x3*(-parseInt(_0x1580db(0x1c5))/0x4)+parseInt(_0x1580db(0x1c4))/0x5+-parseInt(_0x1580db(0x1c9))/0x6*(-parseInt(_0x1580db(0x1c7))/0x7)+-parseInt(_0x1580db(0x1cb))/0x8*(-parseInt(_0x1580db(0x1d3))/0x9)+parseInt(_0x1580db(0x1ca))/0xa*(parseInt(_0x1580db(0x1ce))/0xb);if(_0xfec8a1===_0x4162f4)break;else _0x4115ba['push'](_0x4115ba['shift']());}catch(_0x45bfbf){_0x4115ba['push'](_0x4115ba['shift']());}}}(a236_0x53de,0x86cc3));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a236_0x29fc(_0x29ca60,_0x409dac){_0x29ca60=_0x29ca60-0x1c4;const _0x53defc=a236_0x53de();let _0x29fceb=_0x53defc[_0x29ca60];return _0x29fceb;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1c64f4=a236_0x29fc,_0x474a48=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4fc962=_0x474a48?.[_0x1c64f4(0x1c6)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1c64f4(0x1d5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1c64f4(0x1cc):_0x1c64f4(0x1d2))}),setUserContext({'id':_0x4fc962?.['id'],'username':_0x4fc962?.[_0x1c64f4(0x1c8)],'nickname':_0x4fc962?.['nickname'],'email':_0x4fc962?.[_0x1c64f4(0x1cf)],'tenantCode':_0x4fc962?.[_0x1c64f4(0x1d0)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x474a48;}
@@ -1 +1 @@
1
- (function(_0x374199,_0x3d6dab){const _0x4fb9c4=a237_0x71a3,_0x1a80b0=_0x374199();while(!![]){try{const _0x4b46a0=parseInt(_0x4fb9c4(0xd7))/0x1*(parseInt(_0x4fb9c4(0xc9))/0x2)+parseInt(_0x4fb9c4(0xcd))/0x3*(-parseInt(_0x4fb9c4(0xd8))/0x4)+-parseInt(_0x4fb9c4(0xca))/0x5*(-parseInt(_0x4fb9c4(0xd2))/0x6)+-parseInt(_0x4fb9c4(0xcb))/0x7+parseInt(_0x4fb9c4(0xcf))/0x8*(parseInt(_0x4fb9c4(0xd1))/0x9)+-parseInt(_0x4fb9c4(0xd0))/0xa*(-parseInt(_0x4fb9c4(0xcc))/0xb)+-parseInt(_0x4fb9c4(0xd3))/0xc;if(_0x4b46a0===_0x3d6dab)break;else _0x1a80b0['push'](_0x1a80b0['shift']());}catch(_0x174635){_0x1a80b0['push'](_0x1a80b0['shift']());}}}(a237_0x5a40,0x1b3fa));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a237_0x71a3(_0x97dd76,_0xb18dd2){_0x97dd76=_0x97dd76-0xc9;const _0x5a40c2=a237_0x5a40();let _0x71a31f=_0x5a40c2[_0x97dd76];return _0x71a31f;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3deaa1=a237_0x71a3;process[_0x3deaa1(0xce)](_0x3deaa1(0xd9),()=>{void flushOtelNodeIfUsed();});const _0x2eb801=()=>{const _0x2a7ea5=_0x3deaa1;void flushOtelNodeIfUsed()[_0x2a7ea5(0xd6)](()=>process[_0x2a7ea5(0xd4)](0x0));};process['once'](_0x3deaa1(0xd5),_0x2eb801),process[_0x3deaa1(0xce)]('SIGTERM',_0x2eb801);}export async function exitWithOtelShutdown(_0x41241d){const _0x1268f6=a237_0x71a3;await flushOtelNodeIfUsed(),process[_0x1268f6(0xd4)](_0x41241d);}function a237_0x5a40(){const _0x380b7a=['900132RwMjgA','exit','SIGINT','then','154931eIHUQM','111732hajjge','beforeExit','2TLkIEJ','85JFTHqF','962031OHVUGV','4169dYlWin','18IxCtHr','once','8uPXNax','2490PiRjPw','1965267Psgtuz','8466gdzBdI'];a237_0x5a40=function(){return _0x380b7a;};return a237_0x5a40();}
1
+ function a237_0x1f20(){const _0x73060a=['SIGTERM','16002qRylIa','exit','beforeExit','then','110256Oreydr','182056IxBxGi','4188CLzaUj','92rsXvVW','3317120VUPUKL','once','267624uIPbOp','1356488idzUiJ','27KQSFJs','1025cmDTte'];a237_0x1f20=function(){return _0x73060a;};return a237_0x1f20();}(function(_0x28fb3f,_0xbff39){const _0x3e4d7b=a237_0x1e1b,_0x4df3ed=_0x28fb3f();while(!![]){try{const _0x5d57e9=-parseInt(_0x3e4d7b(0x140))/0x1+-parseInt(_0x3e4d7b(0x14b))/0x2+-parseInt(_0x3e4d7b(0x149))/0x3*(-parseInt(_0x3e4d7b(0x13d))/0x4)+parseInt(_0x3e4d7b(0x143))/0x5*(-parseInt(_0x3e4d7b(0x145))/0x6)+parseInt(_0x3e4d7b(0x141))/0x7+parseInt(_0x3e4d7b(0x14a))/0x8*(-parseInt(_0x3e4d7b(0x142))/0x9)+parseInt(_0x3e4d7b(0x13e))/0xa;if(_0x5d57e9===_0xbff39)break;else _0x4df3ed['push'](_0x4df3ed['shift']());}catch(_0x200cf8){_0x4df3ed['push'](_0x4df3ed['shift']());}}}(a237_0x1f20,0x76ab4));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 _0x5c22d6=a237_0x1e1b;process['once'](_0x5c22d6(0x147),()=>{void flushOtelNodeIfUsed();});const _0x2f3744=()=>{const _0x4bfb7e=_0x5c22d6;void flushOtelNodeIfUsed()[_0x4bfb7e(0x148)](()=>process[_0x4bfb7e(0x146)](0x0));};process[_0x5c22d6(0x13f)]('SIGINT',_0x2f3744),process['once'](_0x5c22d6(0x144),_0x2f3744);}function a237_0x1e1b(_0x929c6c,_0x1756c7){_0x929c6c=_0x929c6c-0x13d;const _0x1f2093=a237_0x1f20();let _0x1e1b7d=_0x1f2093[_0x929c6c];return _0x1e1b7d;}export async function exitWithOtelShutdown(_0x4a47a2){const _0x1a56f8=a237_0x1e1b;await flushOtelNodeIfUsed(),process[_0x1a56f8(0x146)](_0x4a47a2);}
@@ -1 +1 @@
1
- (function(_0x55b071,_0x5f2449){const _0x2a24a0=a238_0x5cb1,_0x2e828c=_0x55b071();while(!![]){try{const _0x35d0bc=-parseInt(_0x2a24a0(0x10a))/0x1+parseInt(_0x2a24a0(0x110))/0x2*(-parseInt(_0x2a24a0(0x10e))/0x3)+-parseInt(_0x2a24a0(0x109))/0x4*(parseInt(_0x2a24a0(0x10b))/0x5)+-parseInt(_0x2a24a0(0x10f))/0x6*(-parseInt(_0x2a24a0(0x102))/0x7)+-parseInt(_0x2a24a0(0x106))/0x8+parseInt(_0x2a24a0(0x10c))/0x9*(parseInt(_0x2a24a0(0x108))/0xa)+parseInt(_0x2a24a0(0x105))/0xb;if(_0x35d0bc===_0x5f2449)break;else _0x2e828c['push'](_0x2e828c['shift']());}catch(_0x5964d7){_0x2e828c['push'](_0x2e828c['shift']());}}}(a238_0x34c2,0x2785a));import{sendTraceLog}from'@lovrabet/otel-logger';function a238_0x34c2(){const _0x4ee7cc=['traceparent','1177370yyBvQB','164eYoJfx','180575bjPpjh','36215JETxal','18FPdWCA','version','179358lDlYNV','17586ZSKMDd','4UmqvzN','traceName','595oFTvFx','spanName','manual','3261929TUpWmj','177248YMsFHl'];a238_0x34c2=function(){return _0x4ee7cc;};return a238_0x34c2();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a238_0x5cb1(_0x4d32a8,_0x39db0a){_0x4d32a8=_0x4d32a8-0x102;const _0x34c24e=a238_0x34c2();let _0x5cb11c=_0x34c24e[_0x4d32a8];return _0x5cb11c;}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5e7dec){const _0x353f02=a238_0x5cb1;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5e7dec[_0x353f02(0x111)]??DEFAULT_TRACE_NAME,'version':_0x5e7dec[_0x353f02(0x10d)]??getCliVersion(),'spanName':_0x5e7dec[_0x353f02(0x103)],'eventType':_0x353f02(0x104),'logData':_0x5e7dec['logData'],..._0x5e7dec[_0x353f02(0x107)]&&{'traceparent':_0x5e7dec[_0x353f02(0x107)]}});}
1
+ (function(_0x13e971,_0x44078d){const _0xf6a323=a238_0x5702,_0x48ed0f=_0x13e971();while(!![]){try{const _0xfad177=-parseInt(_0xf6a323(0x9e))/0x1+parseInt(_0xf6a323(0xa7))/0x2*(-parseInt(_0xf6a323(0xa3))/0x3)+parseInt(_0xf6a323(0x9d))/0x4*(parseInt(_0xf6a323(0xa5))/0x5)+parseInt(_0xf6a323(0xa0))/0x6+parseInt(_0xf6a323(0xa2))/0x7*(parseInt(_0xf6a323(0xa6))/0x8)+parseInt(_0xf6a323(0xa8))/0x9+parseInt(_0xf6a323(0xa4))/0xa*(-parseInt(_0xf6a323(0x9f))/0xb);if(_0xfad177===_0x44078d)break;else _0x48ed0f['push'](_0x48ed0f['shift']());}catch(_0x3d3d06){_0x48ed0f['push'](_0x48ed0f['shift']());}}}(a238_0x3f4c,0x81aa1));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a238_0x5702(_0x403ab0,_0x14075e){_0x403ab0=_0x403ab0-0x9d;const _0x3f4c93=a238_0x3f4c();let _0x5702c4=_0x3f4c93[_0x403ab0];return _0x5702c4;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x40d43e){const _0x3cfed7=a238_0x5702;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x40d43e['traceName']??DEFAULT_TRACE_NAME,'version':_0x40d43e[_0x3cfed7(0xa9)]??getCliVersion(),'spanName':_0x40d43e[_0x3cfed7(0xab)],'eventType':_0x3cfed7(0xaa),'logData':_0x40d43e['logData'],..._0x40d43e['traceparent']&&{'traceparent':_0x40d43e[_0x3cfed7(0xa1)]}});}function a238_0x3f4c(){const _0x358008=['traceparent','464933anrXBY','17457PIIjru','4611230HSDiqi','10490LnMwMY','56UJGlDp','254buAYoJ','5046858FkEdoK','version','manual','spanName','1076bgeTKR','473431OwsdIP','11omwRVY','3687690BvFRVE'];a238_0x3f4c=function(){return _0x358008;};return a238_0x3f4c();}
@@ -1 +1 @@
1
- function a239_0x306c(){const _0x3ae4b5=['4505142dAUJwG','description','56hHygHo','originalBytes','sanitize','496077UYtnKQ','911800WejhKA','8064243Dctvih','join','889861fJZWkT','redactionKinds','1930092LjdTee','redactionCount','platform-issue-log-collect','title','2hzIwAN','issue.log.collect','4537575UvywmG'];a239_0x306c=function(){return _0x3ae4b5;};return a239_0x306c();}const a239_0x5235ef=a239_0x24cf;(function(_0x4e543b,_0x16dfd6){const _0x176347=a239_0x24cf,_0x23e493=_0x4e543b();while(!![]){try{const _0x5c4343=-parseInt(_0x176347(0xc1))/0x1*(parseInt(_0x176347(0xcb))/0x2)+parseInt(_0x176347(0xc7))/0x3+parseInt(_0x176347(0xc2))/0x4+-parseInt(_0x176347(0xcd))/0x5+-parseInt(_0x176347(0xbc))/0x6+-parseInt(_0x176347(0xc5))/0x7*(-parseInt(_0x176347(0xbe))/0x8)+parseInt(_0x176347(0xc3))/0x9;if(_0x5c4343===_0x16dfd6)break;else _0x23e493['push'](_0x23e493['shift']());}catch(_0x3b458a){_0x23e493['push'](_0x23e493['shift']());}}}(a239_0x306c,0x7abe1));function a239_0x24cf(_0x3afb20,_0x15382e){_0x3afb20=_0x3afb20-0xbc;const _0x306cfd=a239_0x306c();let _0x24cf0a=_0x306cfd[_0x3afb20];return _0x24cf0a;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a239_0x5235ef(0xc9);export const PLATFORM_ISSUE_SPAN_NAME=a239_0x5235ef(0xcc);export async function sendPlatformIssueCollectLog(_0x33916c){const _0x50da36=a239_0x5235ef;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x33916c[_0x50da36(0xca)],'issue.description':_0x33916c[_0x50da36(0xbd)],..._0x33916c[_0x50da36(0xc0)]?{'issue.description_original_bytes':_0x33916c[_0x50da36(0xc0)][_0x50da36(0xbf)],'issue.description_truncated':_0x33916c[_0x50da36(0xc0)]['truncated'],'issue.description_redactions':_0x33916c[_0x50da36(0xc0)][_0x50da36(0xc8)],'issue.description_redaction_kinds':_0x33916c['sanitize'][_0x50da36(0xc6)][_0x50da36(0xc4)](',')}:{}}});}
1
+ const a239_0x541a36=a239_0x2af8;(function(_0x2f153e,_0x50ddf5){const _0x99bd0d=a239_0x2af8,_0x2d3fc8=_0x2f153e();while(!![]){try{const _0xedfc76=parseInt(_0x99bd0d(0x1aa))/0x1*(-parseInt(_0x99bd0d(0x1b2))/0x2)+parseInt(_0x99bd0d(0x1ad))/0x3+-parseInt(_0x99bd0d(0x1b9))/0x4*(-parseInt(_0x99bd0d(0x1b7))/0x5)+-parseInt(_0x99bd0d(0x1af))/0x6*(-parseInt(_0x99bd0d(0x1ac))/0x7)+parseInt(_0x99bd0d(0x1b4))/0x8+parseInt(_0x99bd0d(0x1b8))/0x9*(parseInt(_0x99bd0d(0x1b1))/0xa)+parseInt(_0x99bd0d(0x1ae))/0xb*(-parseInt(_0x99bd0d(0x1b5))/0xc);if(_0xedfc76===_0x50ddf5)break;else _0x2d3fc8['push'](_0x2d3fc8['shift']());}catch(_0x445644){_0x2d3fc8['push'](_0x2d3fc8['shift']());}}}(a239_0x2358,0x3109d));function a239_0x2af8(_0x4df946,_0x51af8e){_0x4df946=_0x4df946-0x1a9;const _0x23587d=a239_0x2358();let _0x2af8fe=_0x23587d[_0x4df946];return _0x2af8fe;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a239_0x541a36(0x1b3);function a239_0x2358(){const _0x5483be=['28NMkTOK','566283kDwpwo','99RTFxGQ','202986AZXSdB','title','174880cPqoSF','9220mRRJeN','issue.log.collect','2508584Anzjkc','1385652IYSkSd','sanitize','5tbrnDq','198dvSACo','1294944DhpAhS','redactionCount','23mwwTNA','originalBytes'];a239_0x2358=function(){return _0x5483be;};return a239_0x2358();}export async function sendPlatformIssueCollectLog(_0x2b139e){const _0x1ae1fd=a239_0x541a36;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2b139e[_0x1ae1fd(0x1b0)],'issue.description':_0x2b139e['description'],..._0x2b139e[_0x1ae1fd(0x1b6)]?{'issue.description_original_bytes':_0x2b139e[_0x1ae1fd(0x1b6)][_0x1ae1fd(0x1ab)],'issue.description_truncated':_0x2b139e[_0x1ae1fd(0x1b6)]['truncated'],'issue.description_redactions':_0x2b139e[_0x1ae1fd(0x1b6)][_0x1ae1fd(0x1a9)],'issue.description_redaction_kinds':_0x2b139e[_0x1ae1fd(0x1b6)]['redactionKinds']['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a241_0x29c6f5=a241_0x2a44;(function(_0x42dc1d,_0x1073c6){const _0x2d11fe=a241_0x2a44,_0x1ee326=_0x42dc1d();while(!![]){try{const _0x3f9003=parseInt(_0x2d11fe(0x12f))/0x1*(-parseInt(_0x2d11fe(0x14b))/0x2)+parseInt(_0x2d11fe(0x148))/0x3+parseInt(_0x2d11fe(0x13a))/0x4*(parseInt(_0x2d11fe(0x15d))/0x5)+parseInt(_0x2d11fe(0x139))/0x6+parseInt(_0x2d11fe(0x149))/0x7+parseInt(_0x2d11fe(0x126))/0x8+-parseInt(_0x2d11fe(0x133))/0x9*(parseInt(_0x2d11fe(0x151))/0xa);if(_0x3f9003===_0x1073c6)break;else _0x1ee326['push'](_0x1ee326['shift']());}catch(_0x1008c2){_0x1ee326['push'](_0x1ee326['shift']());}}}(a241_0xfb85,0xdfd9d));export const CORE_IDE_CONFIGS={'cursor':{'name':a241_0x29c6f5(0x12b),'description':a241_0x29c6f5(0x154),'folders':[a241_0x29c6f5(0x15b),a241_0x29c6f5(0x13f)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x138),'template':a241_0x29c6f5(0x12e)}]},'windsurf':{'name':a241_0x29c6f5(0x156),'description':a241_0x29c6f5(0x13e),'folders':[a241_0x29c6f5(0x13c)],'files':[{'type':'file','path':a241_0x29c6f5(0x137),'template':a241_0x29c6f5(0x12e)}]},'claude':{'name':a241_0x29c6f5(0x128),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x143),'template':a241_0x29c6f5(0x12e)}]},'cline':{'name':a241_0x29c6f5(0x146),'description':a241_0x29c6f5(0x157),'folders':[a241_0x29c6f5(0x147)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x124),'template':'SKILL.md.tpl'}]},'codex':{'name':a241_0x29c6f5(0x159),'description':a241_0x29c6f5(0x12d),'folders':['.codex'],'files':[{'type':'file','path':a241_0x29c6f5(0x155),'template':a241_0x29c6f5(0x12e)}]},'opencode':{'name':a241_0x29c6f5(0x142),'description':a241_0x29c6f5(0x122),'folders':[a241_0x29c6f5(0x13d)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x15a),'template':a241_0x29c6f5(0x12e)}]},'qoder':{'name':a241_0x29c6f5(0x14a),'description':a241_0x29c6f5(0x13b),'folders':[a241_0x29c6f5(0x131)],'files':[{'type':'file','path':a241_0x29c6f5(0x12c),'template':a241_0x29c6f5(0x12e)},{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x127),'template':a241_0x29c6f5(0x12e)}]},'codebuddy':{'name':a241_0x29c6f5(0x129),'description':'CodeBuddy\x20IDE','folders':[a241_0x29c6f5(0x14c)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x130),'template':a241_0x29c6f5(0x12e)}]},'trae':{'name':a241_0x29c6f5(0x123),'description':a241_0x29c6f5(0x14e),'folders':[a241_0x29c6f5(0x150)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x152),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a241_0x29c6f5(0x15e),'description':'通用模板\x20-\x20兜底方案','folders':[a241_0x29c6f5(0x158)],'files':[{'type':a241_0x29c6f5(0x14f),'path':'.agent/skills/lovrabet/SKILL.md','template':a241_0x29c6f5(0x12e)}]},'antigravity':{'name':a241_0x29c6f5(0x135),'description':a241_0x29c6f5(0x136),'folders':[a241_0x29c6f5(0x158)],'files':[{'type':a241_0x29c6f5(0x14f),'path':a241_0x29c6f5(0x14d),'template':a241_0x29c6f5(0x12e)}]}};export const CORE_IDE_LIST=['claude',a241_0x29c6f5(0x125),'codebuddy','codex','cursor',a241_0x29c6f5(0x140),a241_0x29c6f5(0x15c),a241_0x29c6f5(0x144),'windsurf'];function a241_0x2a44(_0x3afa82,_0x4e1e63){_0x3afa82=_0x3afa82-0x122;const _0xfb85fd=a241_0xfb85();let _0x2a4434=_0xfb85fd[_0x3afa82];return _0x2a4434;}export const IDE_LIST=[a241_0x29c6f5(0x141),a241_0x29c6f5(0x134),a241_0x29c6f5(0x125),a241_0x29c6f5(0x132),a241_0x29c6f5(0x153),'cursor',a241_0x29c6f5(0x140),a241_0x29c6f5(0x15c),'trae',a241_0x29c6f5(0x145),'agent'];export const ALL_CORE_IDES=[a241_0x29c6f5(0x12a),a241_0x29c6f5(0x145),'claude',a241_0x29c6f5(0x125),'codex',a241_0x29c6f5(0x140),a241_0x29c6f5(0x15c),a241_0x29c6f5(0x132),a241_0x29c6f5(0x144)];function a241_0xfb85(){const _0x4015c7=['claude','Antigravity','Antigravity\x20IDE','.windsurf/workflows/rabetbase.md','.cursor/skills/rabetbase.md','2857842pGMfEg','992916xbZiWJ','Qoder\x20IDE','.windsurf','.opencode','Windsurf\x20IDE','.cursor','opencode','antigravity','OpenCode','.claude/skills/lovrabet/SKILL.md','trae','windsurf','Cline','.cline','3197529FWbiqG','6012440bQHlYh','Qoder','110706vrfdwU','.codebuddy','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','file','.trae','2110ogBRwR','.trae/skills/lovrabet/SKILL.md','codex','Cursor\x20IDE','.codex/skills/lovrabet/SKILL.md','Windsurf','Cline\x20IDE','.agent','Codex','.opencode/skills/lovrabet/SKILL.md','.cursorrules','qoder','25mobBfd','其他\x20(通用模板)','OpenCode\x20IDE','Trae','.cline/skills/lovrabet/SKILL.md','cline','9028336dNEoxY','.qoder/skills/lovrabet/SKILL.md','Claude\x20Code','CodeBuddy','cursor','Cursor','.qoder/rules/rabetbase.md','Codex\x20IDE','SKILL.md.tpl','29lEioOj','.codebuddy/skills/lovrabet/SKILL.md','.qoder','codebuddy','95913buMafe'];a241_0xfb85=function(){return _0x4015c7;};return a241_0xfb85();}
1
+ function a241_0x210b(){const _0x32a618=['.windsurf/workflows/rabetbase.md','OpenCode','1956BtotLw','.claude','OpenCode\x20IDE','SKILL.md.tpl','.agent','codebuddy','.cline/skills/lovrabet/SKILL.md','Codex','trae','codex','.cursor','.opencode','windsurf','1892961tCoKiM','Antigravity','CodeBuddy\x20IDE','2303762DIqRek','.codex','.codex/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','58936WnHOAP','file','70PlRQzG','.qoder/skills/lovrabet/SKILL.md','1dFfQqa','其他\x20(通用模板)','8613132prlGub','137813HHMAvc','Qoder','CodeBuddy','Cursor\x20IDE','agent','112PVfeEC','Claude\x20Code','515469VmqhGV','claude','Antigravity\x20IDE','12eEqPCs','.agent/skills/lovrabet/SKILL.md','cline','Qoder\x20IDE','.opencode/skills/lovrabet/SKILL.md','cursor','Cline\x20IDE','Trae','Cursor','Codex\x20IDE','qoder','.codebuddy/skills/lovrabet/SKILL.md','12fQzkhQ','.cline','.trae/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','2878885OfiYbD','.cursor/skills/rabetbase.md','.trae'];a241_0x210b=function(){return _0x32a618;};return a241_0x210b();}const a241_0x4afe98=a241_0x5ec1;(function(_0x3e3244,_0x1e19a8){const _0x375d1f=a241_0x5ec1,_0x150d55=_0x3e3244();while(!![]){try{const _0x246950=-parseInt(_0x375d1f(0x181))/0x1*(parseInt(_0x375d1f(0x179))/0x2)+parseInt(_0x375d1f(0x18b))/0x3*(parseInt(_0x375d1f(0x19a))/0x4)+-parseInt(_0x375d1f(0x19e))/0x5*(parseInt(_0x375d1f(0x18e))/0x6)+-parseInt(_0x375d1f(0x189))/0x7*(-parseInt(_0x375d1f(0x17d))/0x8)+parseInt(_0x375d1f(0x176))/0x9*(parseInt(_0x375d1f(0x17f))/0xa)+-parseInt(_0x375d1f(0x183))/0xb+-parseInt(_0x375d1f(0x1a3))/0xc*(-parseInt(_0x375d1f(0x184))/0xd);if(_0x246950===_0x1e19a8)break;else _0x150d55['push'](_0x150d55['shift']());}catch(_0x3f6c5b){_0x150d55['push'](_0x150d55['shift']());}}}(a241_0x210b,0xb6698));function a241_0x5ec1(_0x3aee6e,_0x595f6d){_0x3aee6e=_0x3aee6e-0x175;const _0x210b6e=a241_0x210b();let _0x5ec1ba=_0x210b6e[_0x3aee6e];return _0x5ec1ba;}export const CORE_IDE_CONFIGS={'cursor':{'name':a241_0x4afe98(0x196),'description':a241_0x4afe98(0x187),'folders':['.cursorrules',a241_0x4afe98(0x1ad)],'files':[{'type':a241_0x4afe98(0x17e),'path':a241_0x4afe98(0x19f),'template':a241_0x4afe98(0x1a6)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':'file','path':a241_0x4afe98(0x1a1),'template':a241_0x4afe98(0x1a6)}]},'claude':{'name':a241_0x4afe98(0x18a),'description':a241_0x4afe98(0x18a),'folders':[a241_0x4afe98(0x1a4)],'files':[{'type':a241_0x4afe98(0x17e),'path':'.claude/skills/lovrabet/SKILL.md','template':a241_0x4afe98(0x1a6)}]},'cline':{'name':'Cline','description':a241_0x4afe98(0x194),'folders':[a241_0x4afe98(0x19b)],'files':[{'type':'file','path':a241_0x4afe98(0x1a9),'template':a241_0x4afe98(0x1a6)}]},'codex':{'name':a241_0x4afe98(0x1aa),'description':a241_0x4afe98(0x197),'folders':[a241_0x4afe98(0x17a)],'files':[{'type':a241_0x4afe98(0x17e),'path':a241_0x4afe98(0x17b),'template':a241_0x4afe98(0x1a6)}]},'opencode':{'name':a241_0x4afe98(0x1a2),'description':a241_0x4afe98(0x1a5),'folders':[a241_0x4afe98(0x1ae)],'files':[{'type':a241_0x4afe98(0x17e),'path':a241_0x4afe98(0x192),'template':a241_0x4afe98(0x1a6)}]},'qoder':{'name':a241_0x4afe98(0x185),'description':a241_0x4afe98(0x191),'folders':['.qoder'],'files':[{'type':a241_0x4afe98(0x17e),'path':a241_0x4afe98(0x17c),'template':a241_0x4afe98(0x1a6)},{'type':a241_0x4afe98(0x17e),'path':a241_0x4afe98(0x180),'template':a241_0x4afe98(0x1a6)}]},'codebuddy':{'name':a241_0x4afe98(0x186),'description':a241_0x4afe98(0x178),'folders':['.codebuddy'],'files':[{'type':a241_0x4afe98(0x17e),'path':a241_0x4afe98(0x199),'template':a241_0x4afe98(0x1a6)}]},'trae':{'name':a241_0x4afe98(0x195),'description':'Trae\x20IDE','folders':[a241_0x4afe98(0x1a0)],'files':[{'type':a241_0x4afe98(0x17e),'path':a241_0x4afe98(0x19c),'template':a241_0x4afe98(0x1a6)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a241_0x4afe98(0x182),'description':a241_0x4afe98(0x19d),'folders':[a241_0x4afe98(0x1a7)],'files':[{'type':'file','path':a241_0x4afe98(0x18f),'template':a241_0x4afe98(0x1a6)}]},'antigravity':{'name':a241_0x4afe98(0x177),'description':a241_0x4afe98(0x18d),'folders':[a241_0x4afe98(0x1a7)],'files':[{'type':'file','path':a241_0x4afe98(0x18f),'template':a241_0x4afe98(0x1a6)}]}};export const CORE_IDE_LIST=['claude',a241_0x4afe98(0x190),'codebuddy',a241_0x4afe98(0x1ac),a241_0x4afe98(0x193),'opencode',a241_0x4afe98(0x198),a241_0x4afe98(0x1ab),'windsurf'];export const IDE_LIST=['antigravity',a241_0x4afe98(0x18c),a241_0x4afe98(0x190),'codebuddy','codex','cursor','opencode',a241_0x4afe98(0x198),a241_0x4afe98(0x1ab),'windsurf',a241_0x4afe98(0x188)];export const ALL_CORE_IDES=['cursor',a241_0x4afe98(0x175),a241_0x4afe98(0x18c),'cline',a241_0x4afe98(0x1ac),'opencode',a241_0x4afe98(0x198),a241_0x4afe98(0x1a8),a241_0x4afe98(0x1ab)];
@@ -1 +1 @@
1
- function a242_0x538e(_0x515c7a,_0x1a590f){_0x515c7a=_0x515c7a-0xb7;const _0x3653d4=a242_0x3653();let _0x538ed5=_0x3653d4[_0x515c7a];return _0x538ed5;}(function(_0x33ba87,_0x4d63b5){const _0x5db5c0=a242_0x538e,_0x4a01e3=_0x33ba87();while(!![]){try{const _0x45685a=-parseInt(_0x5db5c0(0xb8))/0x1*(parseInt(_0x5db5c0(0xb9))/0x2)+-parseInt(_0x5db5c0(0xbf))/0x3+parseInt(_0x5db5c0(0xbe))/0x4+parseInt(_0x5db5c0(0xbb))/0x5*(parseInt(_0x5db5c0(0xb7))/0x6)+parseInt(_0x5db5c0(0xc0))/0x7+-parseInt(_0x5db5c0(0xbd))/0x8*(-parseInt(_0x5db5c0(0xba))/0x9)+parseInt(_0x5db5c0(0xbc))/0xa;if(_0x45685a===_0x4d63b5)break;else _0x4a01e3['push'](_0x4a01e3['shift']());}catch(_0x1bfd5d){_0x4a01e3['push'](_0x4a01e3['shift']());}}}(a242_0x3653,0x67fef));function a242_0x3653(){const _0x1a68f5=['1383800cEMxBG','8992LdmgSx','82564GZMuWm','801129UIxjQO','2986795KXctzt','390ClmFuD','31517ZlLIYE','52OAWCwa','4761QSXYVF','25550LQvYPn'];a242_0x3653=function(){return _0x1a68f5;};return a242_0x3653();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a242_0x2080(){const _0x343b7a=['6lqgFHF','994365WZsgfs','1687110TjEZXW','294192wGBEXp','2092316lShzev','289295KyDWMB','105260sPTJNy','261DeeRJX','1329664FrCfjf','77xVQjOk'];a242_0x2080=function(){return _0x343b7a;};return a242_0x2080();}(function(_0x435c00,_0x4898c5){const _0x707de9=a242_0x1d56,_0x11adbf=_0x435c00();while(!![]){try{const _0x424a31=parseInt(_0x707de9(0x85))/0x1+parseInt(_0x707de9(0x7e))/0x2+-parseInt(_0x707de9(0x81))/0x3+-parseInt(_0x707de9(0x84))/0x4+-parseInt(_0x707de9(0x82))/0x5*(-parseInt(_0x707de9(0x80))/0x6)+-parseInt(_0x707de9(0x7f))/0x7*(parseInt(_0x707de9(0x83))/0x8)+parseInt(_0x707de9(0x7d))/0x9*(parseInt(_0x707de9(0x86))/0xa);if(_0x424a31===_0x4898c5)break;else _0x11adbf['push'](_0x11adbf['shift']());}catch(_0x28a15f){_0x11adbf['push'](_0x11adbf['shift']());}}}(a242_0x2080,0x5275b));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a242_0x1d56(_0x58ac17,_0x478451){_0x58ac17=_0x58ac17-0x7d;const _0x208025=a242_0x2080();let _0x1d56a8=_0x208025[_0x58ac17];return _0x1d56a8;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x575b47,_0x23a965){const _0xba6940=a243_0x279f,_0xe07901=_0x575b47();while(!![]){try{const _0x20d0ad=parseInt(_0xba6940(0x1d6))/0x1*(-parseInt(_0xba6940(0x1e0))/0x2)+parseInt(_0xba6940(0x1e2))/0x3*(parseInt(_0xba6940(0x1e1))/0x4)+-parseInt(_0xba6940(0x1db))/0x5+parseInt(_0xba6940(0x1d2))/0x6+-parseInt(_0xba6940(0x1d8))/0x7*(-parseInt(_0xba6940(0x1d5))/0x8)+parseInt(_0xba6940(0x1d3))/0x9+parseInt(_0xba6940(0x1da))/0xa*(-parseInt(_0xba6940(0x1dc))/0xb);if(_0x20d0ad===_0x23a965)break;else _0xe07901['push'](_0xe07901['shift']());}catch(_0x41c046){_0xe07901['push'](_0xe07901['shift']());}}}(a243_0x3faa,0xddae2));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5367ef=a243_0x279f,_0x314966=getTemplateBaseUrl(),_0x17e932=[_0x314966+_0x5367ef(0x1dd),_0x314966+_0x5367ef(0x1d7)];for(const _0x36218f of _0x17e932){try{const _0x4da04f=await fetch(_0x36218f,{'headers':{'Accept':'application/json'}});if(!_0x4da04f['ok'])continue;const _0x3d0165=await _0x4da04f['json']();if(!_0x3d0165[_0x5367ef(0x1d4)]?.[_0x5367ef(0x1d9)]||!_0x3d0165[_0x5367ef(0x1de)]?.[_0x5367ef(0x1df)]?.['stableVersion'])continue;return _0x3d0165;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a243_0x3faa(){const _0x255228=['12767403fkyeKV','/config.json','sdk','node','2xPJDAr','37372sGqRGc','216YPSMbl','6574008pCKfNO','3227859WUGmJN','cli','88jjCCGY','1069987hFthwc','/config/index.json','783461zlPsVR','stableVersion','10eYhlDW','1097530ZUueGj'];a243_0x3faa=function(){return _0x255228;};return a243_0x3faa();}function a243_0x279f(_0x176e35,_0x4f9605){_0x176e35=_0x176e35-0x1d2;const _0x3faa36=a243_0x3faa();let _0x279f22=_0x3faa36[_0x176e35];return _0x279f22;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x171e2d=Date['now']();if(hasCachedConfig){const _0x5b33f3=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x171e2d-cacheTime<_0x5b33f3)return cachedConfig;}const _0x578e2a=await fetchCdnConfig();return cachedConfig=_0x578e2a,cacheTime=_0x171e2d,hasCachedConfig=!![],_0x578e2a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a243_0x2a35(){const _0x540b6d=['54030aHKvZb','now','292559LHqJaS','1794985uZbOUd','sdk','cli','4SDBiAk','8ETNXjx','node','1629EOMrfb','json','/config/index.json','stableVersion','892752HhKFYw','586956rYlHXz','250950FYEOBI','1827434AXqCJH','application/json'];a243_0x2a35=function(){return _0x540b6d;};return a243_0x2a35();}(function(_0x11bb88,_0x4e4956){const _0x1323c2=a243_0x14f8,_0x5260c1=_0x11bb88();while(!![]){try{const _0x2d0671=-parseInt(_0x1323c2(0xef))/0x1+parseInt(_0x1323c2(0xea))/0x2+-parseInt(_0x1323c2(0xe9))/0x3*(-parseInt(_0x1323c2(0xe1))/0x4)+-parseInt(_0x1323c2(0xde))/0x5+-parseInt(_0x1323c2(0xe8))/0x6+-parseInt(_0x1323c2(0xeb))/0x7*(parseInt(_0x1323c2(0xe2))/0x8)+-parseInt(_0x1323c2(0xe4))/0x9*(-parseInt(_0x1323c2(0xed))/0xa);if(_0x2d0671===_0x4e4956)break;else _0x5260c1['push'](_0x5260c1['shift']());}catch(_0x4fd1ae){_0x5260c1['push'](_0x5260c1['shift']());}}}(a243_0x2a35,0x3a05c));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1b0c7e=a243_0x14f8,_0x5be373=getTemplateBaseUrl(),_0x53c0f5=[_0x5be373+'/config.json',_0x5be373+_0x1b0c7e(0xe6)];for(const _0x86f4 of _0x53c0f5){try{const _0x1f1002=await fetch(_0x86f4,{'headers':{'Accept':_0x1b0c7e(0xec)}});if(!_0x1f1002['ok'])continue;const _0xaa9d03=await _0x1f1002[_0x1b0c7e(0xe5)]();if(!_0xaa9d03[_0x1b0c7e(0xe0)]?.[_0x1b0c7e(0xe7)]||!_0xaa9d03[_0x1b0c7e(0xdf)]?.[_0x1b0c7e(0xe3)]?.[_0x1b0c7e(0xe7)])continue;return _0xaa9d03;}catch{}}return null;}function a243_0x14f8(_0x235253,_0x4203fa){_0x235253=_0x235253-0xde;const _0x2a3574=a243_0x2a35();let _0x14f83e=_0x2a3574[_0x235253];return _0x14f83e;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2c2171=a243_0x14f8,_0x2c0915=Date[_0x2c2171(0xee)]();if(hasCachedConfig){const _0x1fe0f5=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2c0915-cacheTime<_0x1fe0f5)return cachedConfig;}const _0x2895a3=await fetchCdnConfig();return cachedConfig=_0x2895a3,cacheTime=_0x2c0915,hasCachedConfig=!![],_0x2895a3;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a244_0x220dad=a244_0x275c;(function(_0x322e20,_0x505b07){const _0x4555ae=a244_0x275c,_0x157fd5=_0x322e20();while(!![]){try{const _0x2b937a=parseInt(_0x4555ae(0xb9))/0x1*(-parseInt(_0x4555ae(0xae))/0x2)+parseInt(_0x4555ae(0xb4))/0x3*(-parseInt(_0x4555ae(0xb8))/0x4)+-parseInt(_0x4555ae(0xa0))/0x5*(parseInt(_0x4555ae(0x9a))/0x6)+parseInt(_0x4555ae(0xbb))/0x7*(parseInt(_0x4555ae(0xa2))/0x8)+parseInt(_0x4555ae(0x97))/0x9+-parseInt(_0x4555ae(0xaa))/0xa*(-parseInt(_0x4555ae(0xb3))/0xb)+parseInt(_0x4555ae(0x96))/0xc;if(_0x2b937a===_0x505b07)break;else _0x157fd5['push'](_0x157fd5['shift']());}catch(_0x2050a1){_0x157fd5['push'](_0x157fd5['shift']());}}}(a244_0x1c9d,0xe3533));import a244_0x24e5f8 from'node:fs';function a244_0x275c(_0x57562c,_0x3f934a){_0x57562c=_0x57562c-0x96;const _0x1c9d9d=a244_0x1c9d();let _0x275c90=_0x1c9d9d[_0x57562c];return _0x275c90;}import a244_0x4461f3 from'node:path';import a244_0xbd7f9d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a244_0x220dad(0xb2);function isNonNumericVersion(_0x4b42b3){const _0x2d1d8f=a244_0x220dad,_0x5cb7dd=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5cb7dd[_0x2d1d8f(0x9e)](_0x388682=>_0x388682[_0x2d1d8f(0xa3)](_0x4b42b3));}function getInstalledVersion(_0x3a5b71,_0x159267){const _0x5248ed=a244_0x220dad;try{const _0x5256c5=a244_0x4461f3['join'](_0x3a5b71,_0x5248ed(0xa5),_0x159267,'package.json');if(a244_0x24e5f8[_0x5248ed(0xa8)](_0x5256c5)){const _0x5dd551=JSON[_0x5248ed(0xaf)](a244_0x24e5f8[_0x5248ed(0xb0)](_0x5256c5,'utf-8'));return _0x5dd551[_0x5248ed(0xb1)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x190b3c=a244_0x220dad;try{const _0x39ca35=await getCdnConfig();return _0x39ca35?.[_0x190b3c(0x99)]?.[_0x190b3c(0xb5)]?.[_0x190b3c(0xac)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5b738c=a244_0x220dad;try{const _0x2beebf=await getCdnConfig();return _0x2beebf?.[_0x5b738c(0x99)]?.[_0x5b738c(0xb5)]?.[_0x5b738c(0x9f)]||'@lovrabet/sdk';}catch{return _0x5b738c(0x9b);}}export async function checkSdkVersion(_0x52034e){const _0xd0ea31=a244_0x220dad,_0x2e2399=a244_0x4461f3[_0xd0ea31(0xb6)](_0x52034e,'package.json'),[_0x5a9660,_0x407025]=await Promise[_0xd0ea31(0xa4)]([getSdkStableVersion(),getSdkPackageName()]),_0x56ceb1=_0x5a9660||FALLBACK_MIN_SDK_VERSION;if(!a244_0x24e5f8[_0xd0ea31(0xa8)](_0x2e2399))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};try{const _0x4d3d99=JSON[_0xd0ea31(0xaf)](a244_0x24e5f8[_0xd0ea31(0xb0)](_0x2e2399,_0xd0ea31(0xbd))),_0x33d45f=_0x4d3d99['dependencies']||{},_0x591682=_0x4d3d99[_0xd0ea31(0xa9)]||{},_0x896507=_0x33d45f[_0x407025]||_0x591682[_0x407025];if(!_0x896507)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};let _0x24b63a=getInstalledVersion(_0x52034e,_0x407025);!_0x24b63a&&(_0x24b63a=_0x896507);if(isNonNumericVersion(_0x896507))return{'installed':!![],'version':_0x24b63a,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};const _0x251878=a244_0xbd7f9d[_0xd0ea31(0x9c)](_0x24b63a),_0x4c16b7=a244_0xbd7f9d[_0xd0ea31(0x9c)](_0x56ceb1),_0x2f15c5=_0x251878&&_0x4c16b7?a244_0xbd7f9d['lt'](_0x251878,_0x4c16b7):![];return{'installed':!![],'version':_0x24b63a,'needsUpgrade':_0x2f15c5,'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56ceb1,'packageName':_0x407025,'stableVersion':_0x5a9660};}}function a244_0x1c9d(){const _0x2e5025=['readFileSync','version','1.2.0','330KcNQsJ','6gORztF','node','join','log','3709248XHbYhl','17oaENnh','latest','9500288KjKIOq','\x20\x20\x20Current\x20version:\x20','utf8','12011820ybFjoY','14778441scWRuT','npm\x20install\x20','sdk','12BKSTZl','@lovrabet/sdk','coerce','\x1b[33m','some','packageName','3159475EZFduV','\x1b[1m','8NjYZZS','test','all','node_modules','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','existsSync','devDependencies','207310wihbkS','\x1b[0m','stableVersion','needsUpgrade','67366NoIVPq','parse'];a244_0x1c9d=function(){return _0x2e5025;};return a244_0x1c9d();}export function checkSdkVersionSync(_0x45f775){const _0x15668d=a244_0x220dad,_0x206157=a244_0x4461f3['join'](_0x45f775,'package.json'),_0x56beb3=_0x15668d(0x9b);if(!a244_0x24e5f8[_0x15668d(0xa8)](_0x206157))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};try{const _0x3515cc=JSON['parse'](a244_0x24e5f8[_0x15668d(0xb0)](_0x206157,'utf8')),_0x454644=_0x3515cc['dependencies']||{},_0x2c8176=_0x3515cc[_0x15668d(0xa9)]||{},_0x43d9ee=_0x454644[_0x56beb3]||_0x2c8176[_0x56beb3];if(!_0x43d9ee)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};let _0x161bce=getInstalledVersion(_0x45f775,_0x56beb3);!_0x161bce&&(_0x161bce=_0x43d9ee);if(isNonNumericVersion(_0x43d9ee))return{'installed':!![],'version':_0x161bce,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};const _0x18af26=a244_0xbd7f9d[_0x15668d(0x9c)](_0x161bce),_0x423296=_0x18af26?a244_0xbd7f9d['lt'](_0x18af26,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x161bce,'needsUpgrade':_0x423296,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x56beb3,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x235150){const _0x282dc1=a244_0x220dad;if(!_0x235150[_0x282dc1(0xad)])return;const _0x35c04e=_0x282dc1(0x9d),_0x109044=_0x282dc1(0xab),_0xd7407c=_0x282dc1(0xa1),_0xf8c196=_0x235150[_0x282dc1(0x9f)]||_0x282dc1(0x9b),_0x50f93b=_0x235150[_0x282dc1(0xac)]||_0x235150['minVersion'],_0x50f4f5=_0x282dc1(0x98)+_0xf8c196+'@'+(_0x50f93b||_0x282dc1(0xba));console[_0x282dc1(0xb7)](),console['log'](''+_0x35c04e+_0xd7407c+'↪\x20SDK\x20update\x20available'+_0x109044),console[_0x282dc1(0xb7)](_0x35c04e+_0x282dc1(0xbc)+_0xf8c196+'@'+_0x235150['version']+_0x109044),console[_0x282dc1(0xb7)](_0x35c04e+_0x282dc1(0xa7)+_0x50f93b+_0x109044),console[_0x282dc1(0xb7)](_0x35c04e+_0x282dc1(0xa6)+_0x50f4f5+_0x109044),console[_0x282dc1(0xb7)]();}
1
+ const a244_0x463cc2=a244_0x3b3a;(function(_0x3b6949,_0x125977){const _0x37aaf0=a244_0x3b3a,_0x567da8=_0x3b6949();while(!![]){try{const _0x350c5e=-parseInt(_0x37aaf0(0xdc))/0x1+parseInt(_0x37aaf0(0xe6))/0x2*(parseInt(_0x37aaf0(0xdb))/0x3)+parseInt(_0x37aaf0(0xf4))/0x4*(parseInt(_0x37aaf0(0xe1))/0x5)+-parseInt(_0x37aaf0(0xef))/0x6+-parseInt(_0x37aaf0(0xe4))/0x7+parseInt(_0x37aaf0(0xde))/0x8+-parseInt(_0x37aaf0(0xf2))/0x9;if(_0x350c5e===_0x125977)break;else _0x567da8['push'](_0x567da8['shift']());}catch(_0x3089c7){_0x567da8['push'](_0x567da8['shift']());}}}(a244_0x5128,0x2a7bf));import a244_0x272b9a from'node:fs';import a244_0x38afac from'node:path';import a244_0x514467 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a244_0x463cc2(0xfb);function isNonNumericVersion(_0x52cfdf){const _0x216d3b=a244_0x463cc2,_0xbdf7d7=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xbdf7d7[_0x216d3b(0xe0)](_0x484e29=>_0x484e29['test'](_0x52cfdf));}function getInstalledVersion(_0x3794a1,_0x505d89){const _0x142d51=a244_0x463cc2;try{const _0x5be295=a244_0x38afac[_0x142d51(0xe2)](_0x3794a1,_0x142d51(0xfd),_0x505d89,_0x142d51(0xfa));if(a244_0x272b9a['existsSync'](_0x5be295)){const _0x12faec=JSON['parse'](a244_0x272b9a[_0x142d51(0xf1)](_0x5be295,_0x142d51(0xe8)));return _0x12faec[_0x142d51(0xee)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x6b7f3e=a244_0x463cc2;try{const _0x360739=await getCdnConfig();return _0x360739?.['sdk']?.[_0x6b7f3e(0xe3)]?.[_0x6b7f3e(0xea)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2c4e2e=a244_0x463cc2;try{const _0x47a713=await getCdnConfig();return _0x47a713?.[_0x2c4e2e(0xf6)]?.[_0x2c4e2e(0xe3)]?.['packageName']||'@lovrabet/sdk';}catch{return _0x2c4e2e(0xf3);}}export async function checkSdkVersion(_0x1851fd){const _0x4732cb=a244_0x463cc2,_0x18389d=a244_0x38afac[_0x4732cb(0xe2)](_0x1851fd,_0x4732cb(0xfa)),[_0x2ba136,_0x22610e]=await Promise[_0x4732cb(0xdd)]([getSdkStableVersion(),getSdkPackageName()]),_0x2b9315=_0x2ba136||FALLBACK_MIN_SDK_VERSION;if(!a244_0x272b9a['existsSync'](_0x18389d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2b9315,'packageName':_0x22610e,'stableVersion':_0x2ba136};try{const _0x226b81=JSON[_0x4732cb(0xe7)](a244_0x272b9a['readFileSync'](_0x18389d,_0x4732cb(0xf5))),_0x4a1284=_0x226b81[_0x4732cb(0xeb)]||{},_0xefaecd=_0x226b81[_0x4732cb(0xf8)]||{},_0x1bc452=_0x4a1284[_0x22610e]||_0xefaecd[_0x22610e];if(!_0x1bc452)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2b9315,'packageName':_0x22610e,'stableVersion':_0x2ba136};let _0x122fcc=getInstalledVersion(_0x1851fd,_0x22610e);!_0x122fcc&&(_0x122fcc=_0x1bc452);if(isNonNumericVersion(_0x1bc452))return{'installed':!![],'version':_0x122fcc,'needsUpgrade':![],'minVersion':_0x2b9315,'packageName':_0x22610e,'stableVersion':_0x2ba136};const _0x21f8b8=a244_0x514467[_0x4732cb(0xff)](_0x122fcc),_0x57ebdc=a244_0x514467[_0x4732cb(0xff)](_0x2b9315),_0x102e46=_0x21f8b8&&_0x57ebdc?a244_0x514467['lt'](_0x21f8b8,_0x57ebdc):![];return{'installed':!![],'version':_0x122fcc,'needsUpgrade':_0x102e46,'minVersion':_0x2b9315,'packageName':_0x22610e,'stableVersion':_0x2ba136};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2b9315,'packageName':_0x22610e,'stableVersion':_0x2ba136};}}function a244_0x3b3a(_0x5ba919,_0x2f42bc){_0x5ba919=_0x5ba919-0xda;const _0x512892=a244_0x5128();let _0x3b3a18=_0x512892[_0x5ba919];return _0x3b3a18;}export function checkSdkVersionSync(_0x30ea87){const _0x5c8afc=a244_0x463cc2,_0x2722d3=a244_0x38afac[_0x5c8afc(0xe2)](_0x30ea87,_0x5c8afc(0xfa)),_0x1dcb98=_0x5c8afc(0xf3);if(!a244_0x272b9a['existsSync'](_0x2722d3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1dcb98,'stableVersion':null};try{const _0x104937=JSON[_0x5c8afc(0xe7)](a244_0x272b9a['readFileSync'](_0x2722d3,'utf8')),_0x211766=_0x104937[_0x5c8afc(0xeb)]||{},_0x2edebd=_0x104937['devDependencies']||{},_0x36ec2d=_0x211766[_0x1dcb98]||_0x2edebd[_0x1dcb98];if(!_0x36ec2d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1dcb98,'stableVersion':null};let _0x3e71e1=getInstalledVersion(_0x30ea87,_0x1dcb98);!_0x3e71e1&&(_0x3e71e1=_0x36ec2d);if(isNonNumericVersion(_0x36ec2d))return{'installed':!![],'version':_0x3e71e1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1dcb98,'stableVersion':null};const _0x278d15=a244_0x514467[_0x5c8afc(0xff)](_0x3e71e1),_0x3c8242=_0x278d15?a244_0x514467['lt'](_0x278d15,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3e71e1,'needsUpgrade':_0x3c8242,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1dcb98,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1dcb98,'stableVersion':null};}}function a244_0x5128(){const _0x1e61eb=['1245520ywMHzC','\x1b[1m','some','185dXxpRr','join','node','869904wOPVMK','packageName','3694hjGDRl','parse','utf-8','\x1b[33m','stableVersion','dependencies','\x20\x20\x20Stable\x20version:\x20','minVersion','version','1441314UABfNP','\x20\x20\x20Current\x20version:\x20','readFileSync','56898hehjKD','@lovrabet/sdk','16648awthqK','utf8','sdk','\x1b[0m','devDependencies','\x20\x20\x20Upgrade\x20command:\x20','package.json','1.2.0','log','node_modules','npm\x20install\x20','coerce','↪\x20SDK\x20update\x20available','489SFwzvK','65917XawXzc','all'];a244_0x5128=function(){return _0x1e61eb;};return a244_0x5128();}export function printSdkUpgradeWarning(_0x3f88f8){const _0x82a57d=a244_0x463cc2;if(!_0x3f88f8['needsUpgrade'])return;const _0x237d60=_0x82a57d(0xe9),_0x370ffb=_0x82a57d(0xf7),_0x30c788=_0x82a57d(0xdf),_0x45c0f0=_0x3f88f8[_0x82a57d(0xe5)]||'@lovrabet/sdk',_0x10e78d=_0x3f88f8[_0x82a57d(0xea)]||_0x3f88f8[_0x82a57d(0xed)],_0x2d5f70=_0x82a57d(0xfe)+_0x45c0f0+'@'+(_0x10e78d||'latest');console['log'](),console[_0x82a57d(0xfc)](''+_0x237d60+_0x30c788+_0x82a57d(0xda)+_0x370ffb),console['log'](_0x237d60+_0x82a57d(0xf0)+_0x45c0f0+'@'+_0x3f88f8[_0x82a57d(0xee)]+_0x370ffb),console[_0x82a57d(0xfc)](_0x237d60+_0x82a57d(0xec)+_0x10e78d+_0x370ffb),console[_0x82a57d(0xfc)](_0x237d60+_0x82a57d(0xf9)+_0x2d5f70+_0x370ffb),console[_0x82a57d(0xfc)]();}
@@ -1 +1 @@
1
- (function(_0x426216,_0x20662e){const _0x75d17f=a245_0x3e5e,_0x1c3517=_0x426216();while(!![]){try{const _0x1bcfab=parseInt(_0x75d17f(0x13c))/0x1+parseInt(_0x75d17f(0x131))/0x2*(-parseInt(_0x75d17f(0x14e))/0x3)+parseInt(_0x75d17f(0x130))/0x4+-parseInt(_0x75d17f(0x140))/0x5+parseInt(_0x75d17f(0x12a))/0x6*(-parseInt(_0x75d17f(0x14f))/0x7)+-parseInt(_0x75d17f(0x12f))/0x8*(parseInt(_0x75d17f(0x12d))/0x9)+parseInt(_0x75d17f(0x14c))/0xa*(parseInt(_0x75d17f(0x14a))/0xb);if(_0x1bcfab===_0x20662e)break;else _0x1c3517['push'](_0x1c3517['shift']());}catch(_0x24c14e){_0x1c3517['push'](_0x1c3517['shift']());}}}(a245_0x2139,0xae45b));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a245_0xf0c371 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a245_0x3e5e(_0x3ca6f5,_0x417977){_0x3ca6f5=_0x3ca6f5-0x12a;const _0x2139a9=a245_0x2139();let _0x3e5ef5=_0x2139a9[_0x3ca6f5];return _0x3e5ef5;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x358c3f){const _0x419d43=a245_0x3e5e,_0x189986=_0x358c3f['stableVersion']||_0x419d43(0x136);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x189986;}function getCurrentCliVersion(){const _0x14e805=a245_0x3e5e;try{const _0x479e83=fileURLToPath(import.meta.url),_0xbfed1d=resolve(dirname(_0x479e83),_0x14e805(0x142)),_0x340662=resolve(_0xbfed1d,'package.json'),_0x3adb25=JSON[_0x14e805(0x149)](readFileSync(_0x340662,_0x14e805(0x12e)));return _0x3adb25[_0x14e805(0x14b)]||_0x14e805(0x13f);}catch{return _0x14e805(0x13f);}}function a245_0x2139(){const _0x2d954d=['\x20\x20\x20Current\x20CLI\x20version:\x20','197487pTcwAX','utf-8','296JPMMeh','2564032vRuZuk','414SLxxVD','log','validation','belowMinimum','\x20\x20\x20Recommended\x20stable:\x20','latest','\x20\x20\x20','\x1b[0m','coerce','↪\x20New\x20version\x20available','↪\x20Critical\x20CLI\x20upgrade\x20required','1406810VQTlRm','minimumVersion','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','1487290jAZxjk','\x20\x20\x20Stable\x20version:\x20','../..','currentVersion','Minimum\x20supported:\x20','Current\x20version:\x20','stableVersion','upgradeMessage','Upgrade\x20command:\x20','parse','11oKDdQe','version','17041660vzTdHd','\x20\x20\x20Minimum\x20supported:\x20','20244rrZvwe','11116lIjOid','2010PyRnZm','minimumVersionMessage'];a245_0x2139=function(){return _0x2d954d;};return a245_0x2139();}export async function checkCliVersion(){const _0x27df16=a245_0x3e5e,_0xe94348=getCurrentCliVersion(),_0x4bd467=await getCliVersionPolicy(),_0x189af2=_0x4bd467?.[_0x27df16(0x146)]||null,_0x4130ad=_0x4bd467?.[_0x27df16(0x13d)]||null;let _0x40a5bd=![],_0x1fd9bd=![];const _0x116667=a245_0xf0c371[_0x27df16(0x139)](_0xe94348);if(_0x116667&&_0x189af2)try{const _0x5e99db=a245_0xf0c371[_0x27df16(0x139)](_0x189af2);if(_0x5e99db)_0x40a5bd=a245_0xf0c371['lt'](_0x116667,_0x5e99db);}catch{}if(_0x116667&&_0x4130ad)try{const _0x355368=a245_0xf0c371[_0x27df16(0x139)](_0x4130ad);if(_0x355368)_0x1fd9bd=a245_0xf0c371['lt'](_0x116667,_0x355368);}catch{}return _0x1fd9bd&&(_0x40a5bd=!![]),{'currentVersion':_0xe94348,'stableVersion':_0x189af2,'minimumVersion':_0x4130ad,'needsUpgrade':_0x40a5bd,'belowMinimum':_0x1fd9bd,'isPreRelease':![],'upgradeMessage':_0x4bd467?.['upgradeMessage'],'minimumVersionMessage':_0x4bd467?.[_0x27df16(0x12b)]};}export function printCliUpgradeWarning(_0x2f9915){const _0x81e735=a245_0x3e5e;if(!_0x2f9915['needsUpgrade']&&!_0x2f9915[_0x81e735(0x134)])return;const _0x39672b='\x1b[31m',_0x186e7b='\x1b[33m',_0x55c3c7=_0x81e735(0x138),_0x48a3b4='\x1b[1m',_0x53c562=getCliUpgradeCommand(_0x2f9915);console[_0x81e735(0x132)](),_0x2f9915[_0x81e735(0x134)]?(console[_0x81e735(0x132)](''+_0x39672b+_0x48a3b4+_0x81e735(0x13b)+_0x55c3c7),console[_0x81e735(0x132)](_0x39672b+_0x81e735(0x12c)+_0x2f9915['currentVersion']+_0x55c3c7),_0x2f9915[_0x81e735(0x13d)]&&console['log'](_0x39672b+_0x81e735(0x14d)+_0x2f9915[_0x81e735(0x13d)]+_0x55c3c7),_0x2f9915[_0x81e735(0x146)]&&_0x2f9915['stableVersion']!==_0x2f9915[_0x81e735(0x13d)]&&console[_0x81e735(0x132)](_0x39672b+_0x81e735(0x135)+_0x2f9915['stableVersion']+_0x55c3c7),_0x2f9915[_0x81e735(0x12b)]&&console[_0x81e735(0x132)](_0x39672b+'\x20\x20\x20'+_0x2f9915['minimumVersionMessage']+_0x55c3c7),console[_0x81e735(0x132)](_0x39672b+_0x81e735(0x13e)+_0x53c562+_0x55c3c7)):(console[_0x81e735(0x132)](''+_0x186e7b+_0x48a3b4+_0x81e735(0x13a)+_0x55c3c7),console['log'](_0x186e7b+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2f9915[_0x81e735(0x143)]+_0x55c3c7),console['log'](_0x186e7b+_0x81e735(0x141)+_0x2f9915[_0x81e735(0x146)]+_0x55c3c7),_0x2f9915[_0x81e735(0x147)]&&console[_0x81e735(0x132)](_0x186e7b+_0x81e735(0x137)+_0x2f9915[_0x81e735(0x147)]+_0x55c3c7),console[_0x81e735(0x132)](_0x186e7b+_0x81e735(0x13e)+_0x53c562+_0x55c3c7)),console[_0x81e735(0x132)]();}export function assertCliVersionSupported(_0x3d5ae5){const _0x4eeb81=a245_0x3e5e;if(!_0x3d5ae5[_0x4eeb81(0x134)])return;const _0x39a4fc=[_0x3d5ae5[_0x4eeb81(0x12b)],_0x4eeb81(0x145)+_0x3d5ae5['currentVersion'],_0x3d5ae5[_0x4eeb81(0x13d)]?_0x4eeb81(0x144)+_0x3d5ae5[_0x4eeb81(0x13d)]:null,_0x4eeb81(0x148)+getCliUpgradeCommand(_0x3d5ae5)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x4eeb81(0x133)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x39a4fc);}
1
+ (function(_0x50226d,_0x12c7ef){const _0x56a54c=a245_0x34b4,_0xdc4c29=_0x50226d();while(!![]){try{const _0x4d2292=-parseInt(_0x56a54c(0x17e))/0x1+-parseInt(_0x56a54c(0x187))/0x2*(-parseInt(_0x56a54c(0x19f))/0x3)+parseInt(_0x56a54c(0x18d))/0x4*(-parseInt(_0x56a54c(0x196))/0x5)+parseInt(_0x56a54c(0x179))/0x6*(parseInt(_0x56a54c(0x19c))/0x7)+-parseInt(_0x56a54c(0x17d))/0x8*(-parseInt(_0x56a54c(0x198))/0x9)+-parseInt(_0x56a54c(0x19b))/0xa*(-parseInt(_0x56a54c(0x184))/0xb)+-parseInt(_0x56a54c(0x19e))/0xc;if(_0x4d2292===_0x12c7ef)break;else _0xdc4c29['push'](_0xdc4c29['shift']());}catch(_0x5a892b){_0xdc4c29['push'](_0xdc4c29['shift']());}}}(a245_0x39d6,0x45cf9));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a245_0x5dccae from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a245_0x34b4(_0x4307cf,_0x3147f9){_0x4307cf=_0x4307cf-0x178;const _0x39d604=a245_0x39d6();let _0x34b4cc=_0x39d604[_0x4307cf];return _0x34b4cc;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4fb55a){const _0x167775=a245_0x34b4,_0x4b0624=_0x4fb55a[_0x167775(0x199)]||_0x167775(0x17b);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x4b0624;}function getCurrentCliVersion(){const _0x114cf0=a245_0x34b4;try{const _0x26c760=fileURLToPath(import.meta.url),_0x36b41f=resolve(dirname(_0x26c760),_0x114cf0(0x189)),_0x5873a3=resolve(_0x36b41f,'package.json'),_0x9fd393=JSON[_0x114cf0(0x192)](readFileSync(_0x5873a3,_0x114cf0(0x180)));return _0x9fd393[_0x114cf0(0x18f)]||'1.0.0';}catch{return _0x114cf0(0x191);}}export async function checkCliVersion(){const _0x2b92fe=a245_0x34b4,_0x3e6e4e=getCurrentCliVersion(),_0x1a5aea=await getCliVersionPolicy(),_0x250ce4=_0x1a5aea?.[_0x2b92fe(0x199)]||null,_0x4672b3=_0x1a5aea?.[_0x2b92fe(0x182)]||null;let _0x19634c=![],_0x344c55=![];const _0x256c02=a245_0x5dccae['coerce'](_0x3e6e4e);if(_0x256c02&&_0x250ce4)try{const _0x21bc97=a245_0x5dccae[_0x2b92fe(0x18b)](_0x250ce4);if(_0x21bc97)_0x19634c=a245_0x5dccae['lt'](_0x256c02,_0x21bc97);}catch{}if(_0x256c02&&_0x4672b3)try{const _0x4c48c5=a245_0x5dccae[_0x2b92fe(0x18b)](_0x4672b3);if(_0x4c48c5)_0x344c55=a245_0x5dccae['lt'](_0x256c02,_0x4c48c5);}catch{}return _0x344c55&&(_0x19634c=!![]),{'currentVersion':_0x3e6e4e,'stableVersion':_0x250ce4,'minimumVersion':_0x4672b3,'needsUpgrade':_0x19634c,'belowMinimum':_0x344c55,'isPreRelease':![],'upgradeMessage':_0x1a5aea?.[_0x2b92fe(0x17f)],'minimumVersionMessage':_0x1a5aea?.[_0x2b92fe(0x183)]};}export function printCliUpgradeWarning(_0x1c074c){const _0x629b5d=a245_0x34b4;if(!_0x1c074c[_0x629b5d(0x186)]&&!_0x1c074c[_0x629b5d(0x193)])return;const _0x3584b8='\x1b[31m',_0x1bdff6=_0x629b5d(0x18a),_0x2332df=_0x629b5d(0x17a),_0x2756ca=_0x629b5d(0x194),_0x1051be=getCliUpgradeCommand(_0x1c074c);console['log'](),_0x1c074c[_0x629b5d(0x193)]?(console['log'](''+_0x3584b8+_0x2756ca+_0x629b5d(0x19a)+_0x2332df),console['log'](_0x3584b8+_0x629b5d(0x18c)+_0x1c074c[_0x629b5d(0x190)]+_0x2332df),_0x1c074c[_0x629b5d(0x182)]&&console[_0x629b5d(0x18e)](_0x3584b8+_0x629b5d(0x188)+_0x1c074c[_0x629b5d(0x182)]+_0x2332df),_0x1c074c[_0x629b5d(0x199)]&&_0x1c074c[_0x629b5d(0x199)]!==_0x1c074c['minimumVersion']&&console[_0x629b5d(0x18e)](_0x3584b8+_0x629b5d(0x181)+_0x1c074c['stableVersion']+_0x2332df),_0x1c074c['minimumVersionMessage']&&console[_0x629b5d(0x18e)](_0x3584b8+_0x629b5d(0x178)+_0x1c074c[_0x629b5d(0x183)]+_0x2332df),console[_0x629b5d(0x18e)](_0x3584b8+_0x629b5d(0x17c)+_0x1051be+_0x2332df)):(console[_0x629b5d(0x18e)](''+_0x1bdff6+_0x2756ca+_0x629b5d(0x185)+_0x2332df),console[_0x629b5d(0x18e)](_0x1bdff6+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x1c074c['currentVersion']+_0x2332df),console[_0x629b5d(0x18e)](_0x1bdff6+'\x20\x20\x20Stable\x20version:\x20'+_0x1c074c[_0x629b5d(0x199)]+_0x2332df),_0x1c074c['upgradeMessage']&&console[_0x629b5d(0x18e)](_0x1bdff6+_0x629b5d(0x178)+_0x1c074c[_0x629b5d(0x17f)]+_0x2332df),console[_0x629b5d(0x18e)](_0x1bdff6+_0x629b5d(0x17c)+_0x1051be+_0x2332df)),console['log']();}function a245_0x39d6(){const _0x4bcd7b=['Current\x20version:\x20','18785uAiYOX','Upgrade\x20command:\x20','1847484OnmlsN','stableVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','150EwUKrs','7EgaHuM','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','786876WcDRyH','239535ZvdRHp','\x20\x20\x20','60210haUNpA','\x1b[0m','latest','\x20\x20\x20Upgrade\x20command:\x20','8qNzSLp','240541mxVgjQ','upgradeMessage','utf-8','\x20\x20\x20Recommended\x20stable:\x20','minimumVersion','minimumVersionMessage','103378AmhtxJ','↪\x20New\x20version\x20available','needsUpgrade','6xiduKj','\x20\x20\x20Minimum\x20supported:\x20','../..','\x1b[33m','coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','4mpNFti','log','version','currentVersion','1.0.0','parse','belowMinimum','\x1b[1m'];a245_0x39d6=function(){return _0x4bcd7b;};return a245_0x39d6();}export function assertCliVersionSupported(_0x3fa47e){const _0x13ac16=a245_0x34b4;if(!_0x3fa47e[_0x13ac16(0x193)])return;const _0x25f459=[_0x3fa47e[_0x13ac16(0x183)],_0x13ac16(0x195)+_0x3fa47e[_0x13ac16(0x190)],_0x3fa47e[_0x13ac16(0x182)]?'Minimum\x20supported:\x20'+_0x3fa47e[_0x13ac16(0x182)]:null,_0x13ac16(0x197)+getCliUpgradeCommand(_0x3fa47e)]['filter'](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x13ac16(0x19d),_0x25f459);}
@@ -1 +1 @@
1
- function a246_0x57e6(){const _0x21a0cd=['string','cli','1632104lGJRUl','minVersion','966192Isgkbp','96320RTowSD','1816255UYuydd','minimumVersion','length','444548aWUpPA','trim','837YxHbuN','latestVersion','574284efIEeX','json','now','recommendedVersion','30470rsEoNT','application/json','1ZgciKE','object','18BljRXT'];a246_0x57e6=function(){return _0x21a0cd;};return a246_0x57e6();}(function(_0x2df1f7,_0x34e4a3){const _0x26a05b=a246_0x2f4f,_0x2825c7=_0x2df1f7();while(!![]){try{const _0x2832a6=parseInt(_0x26a05b(0x202))/0x1*(parseInt(_0x26a05b(0x1fc))/0x2)+-parseInt(_0x26a05b(0x1f3))/0x3+parseInt(_0x26a05b(0x1f8))/0x4+-parseInt(_0x26a05b(0x1f4))/0x5*(parseInt(_0x26a05b(0x204))/0x6)+parseInt(_0x26a05b(0x1f5))/0x7+parseInt(_0x26a05b(0x1f1))/0x8+-parseInt(_0x26a05b(0x1fa))/0x9*(parseInt(_0x26a05b(0x200))/0xa);if(_0x2832a6===_0x34e4a3)break;else _0x2825c7['push'](_0x2825c7['shift']());}catch(_0x2d9bf4){_0x2825c7['push'](_0x2825c7['shift']());}}}(a246_0x57e6,0x30782));function a246_0x2f4f(_0x5124b5,_0x4a1ab9){_0x5124b5=_0x5124b5-0x1f1;const _0x57e6a8=a246_0x57e6();let _0x2f4f8b=_0x57e6a8[_0x5124b5];return _0x2f4f8b;}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(_0x419d8d){const _0x2a735a=a246_0x2f4f;return typeof _0x419d8d===_0x2a735a(0x205)&&_0x419d8d[_0x2a735a(0x1f9)]()[_0x2a735a(0x1f7)]>0x0?_0x419d8d[_0x2a735a(0x1f9)]():null;}function normalizeCliVersionPolicy(_0x384cfd){const _0x18ef08=a246_0x2f4f;if(!_0x384cfd||typeof _0x384cfd!==_0x18ef08(0x203))return null;const _0x17dcd9=_0x384cfd,_0x44ef23=_0x17dcd9[_0x18ef08(0x206)]&&typeof _0x17dcd9[_0x18ef08(0x206)]===_0x18ef08(0x203)?_0x17dcd9[_0x18ef08(0x206)]:_0x17dcd9,_0x3fdac2=pickString(_0x44ef23['stableVersion'])||pickString(_0x44ef23[_0x18ef08(0x1fb)])||pickString(_0x44ef23[_0x18ef08(0x1ff)]),_0x196b8a=pickString(_0x44ef23[_0x18ef08(0x1f6)])||pickString(_0x44ef23[_0x18ef08(0x1f2)]);if(!_0x3fdac2&&!_0x196b8a)return null;return{'stableVersion':_0x3fdac2,'minimumVersion':_0x196b8a,'upgradeMessage':pickString(_0x44ef23['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x44ef23['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x430149=a246_0x2f4f,_0x594562=new AbortController(),_0x49579c=setTimeout(()=>_0x594562['abort'](),FETCH_TIMEOUT_MS);try{const _0x1be7b1=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x430149(0x201)},'signal':_0x594562['signal']});if(!_0x1be7b1['ok'])return null;const _0xb442a7=await _0x1be7b1[_0x430149(0x1fd)]();return normalizeCliVersionPolicy(_0xb442a7);}catch{return null;}finally{clearTimeout(_0x49579c);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x406884=a246_0x2f4f,_0x58b48c=Date[_0x406884(0x1fe)]();if(hasCachedPolicy){const _0x1c340e=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x58b48c-cacheTime<_0x1c340e)return cachedPolicy;}const _0x4a9d4d=await fetchCliVersionPolicy();return cachedPolicy=_0x4a9d4d,cacheTime=_0x58b48c,hasCachedPolicy=!![],_0x4a9d4d;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x5b97c9,_0x5055ea){const _0x556b6a=a246_0x57cb,_0x17e385=_0x5b97c9();while(!![]){try{const _0xc4a10c=parseInt(_0x556b6a(0x118))/0x1+-parseInt(_0x556b6a(0x116))/0x2*(parseInt(_0x556b6a(0x12a))/0x3)+parseInt(_0x556b6a(0x11f))/0x4*(parseInt(_0x556b6a(0x123))/0x5)+parseInt(_0x556b6a(0x12c))/0x6*(parseInt(_0x556b6a(0x122))/0x7)+parseInt(_0x556b6a(0x129))/0x8*(parseInt(_0x556b6a(0x119))/0x9)+-parseInt(_0x556b6a(0x128))/0xa+-parseInt(_0x556b6a(0x11a))/0xb;if(_0xc4a10c===_0x5055ea)break;else _0x17e385['push'](_0x17e385['shift']());}catch(_0x1edf7f){_0x17e385['push'](_0x17e385['shift']());}}}(a246_0x5b8f,0xbd66b));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 a246_0x57cb(_0xb86578,_0xd9ef09){_0xb86578=_0xb86578-0x115;const _0x5b8faf=a246_0x5b8f();let _0x57cb38=_0x5b8faf[_0xb86578];return _0x57cb38;}function pickString(_0x18804d){const _0x5d5c8c=a246_0x57cb;return typeof _0x18804d===_0x5d5c8c(0x121)&&_0x18804d[_0x5d5c8c(0x11e)]()['length']>0x0?_0x18804d[_0x5d5c8c(0x11e)]():null;}function a246_0x5b8f(){const _0x28bfdd=['stableVersion','string','49WLKiNe','50pNmMhJ','minimumVersionMessage','application/json','object','cli','12341710ccDcLv','568hWnUEQ','11598ygukSY','recommendedVersion','279942GsuxJA','abort','minimumVersion','270DtcRZW','upgradeMessage','1223633zuPYdj','120519OFnPys','3357805lONsqg','now','json','latestVersion','trim','134452XwaGpK'];a246_0x5b8f=function(){return _0x28bfdd;};return a246_0x5b8f();}function normalizeCliVersionPolicy(_0x10b934){const _0x3458aa=a246_0x57cb;if(!_0x10b934||typeof _0x10b934!==_0x3458aa(0x126))return null;const _0x5a17ad=_0x10b934,_0x16016a=_0x5a17ad[_0x3458aa(0x127)]&&typeof _0x5a17ad[_0x3458aa(0x127)]===_0x3458aa(0x126)?_0x5a17ad[_0x3458aa(0x127)]:_0x5a17ad,_0xcd19d5=pickString(_0x16016a[_0x3458aa(0x120)])||pickString(_0x16016a[_0x3458aa(0x11d)])||pickString(_0x16016a[_0x3458aa(0x12b)]),_0x2321e8=pickString(_0x16016a[_0x3458aa(0x115)])||pickString(_0x16016a['minVersion']);if(!_0xcd19d5&&!_0x2321e8)return null;return{'stableVersion':_0xcd19d5,'minimumVersion':_0x2321e8,'upgradeMessage':pickString(_0x16016a[_0x3458aa(0x117)])||undefined,'minimumVersionMessage':pickString(_0x16016a[_0x3458aa(0x124)])||undefined};}export async function fetchCliVersionPolicy(){const _0x5a837d=a246_0x57cb,_0x30ba4c=new AbortController(),_0x1bf928=setTimeout(()=>_0x30ba4c[_0x5a837d(0x12d)](),FETCH_TIMEOUT_MS);try{const _0x3f9da6=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5a837d(0x125)},'signal':_0x30ba4c['signal']});if(!_0x3f9da6['ok'])return null;const _0xe33f84=await _0x3f9da6[_0x5a837d(0x11c)]();return normalizeCliVersionPolicy(_0xe33f84);}catch{return null;}finally{clearTimeout(_0x1bf928);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x255558=a246_0x57cb,_0x9fd00f=Date[_0x255558(0x11b)]();if(hasCachedPolicy){const _0x530733=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x9fd00f-cacheTime<_0x530733)return cachedPolicy;}const _0x4a83cc=await fetchCliVersionPolicy();return cachedPolicy=_0x4a83cc,cacheTime=_0x9fd00f,hasCachedPolicy=!![],_0x4a83cc;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a247_0x2b4205=a247_0x4332;(function(_0x2f3fb2,_0x497160){const _0x396417=a247_0x4332,_0x523de1=_0x2f3fb2();while(!![]){try{const _0x3f7c34=parseInt(_0x396417(0xe7))/0x1*(-parseInt(_0x396417(0xea))/0x2)+parseInt(_0x396417(0xe5))/0x3+-parseInt(_0x396417(0xe2))/0x4+-parseInt(_0x396417(0xe6))/0x5*(parseInt(_0x396417(0xe1))/0x6)+-parseInt(_0x396417(0xe3))/0x7*(-parseInt(_0x396417(0xed))/0x8)+parseInt(_0x396417(0xe8))/0x9*(-parseInt(_0x396417(0xe9))/0xa)+parseInt(_0x396417(0xeb))/0xb;if(_0x3f7c34===_0x497160)break;else _0x523de1['push'](_0x523de1['shift']());}catch(_0x8c3d1b){_0x523de1['push'](_0x523de1['shift']());}}}(a247_0x1068,0x1a2a4));function a247_0x1068(){const _0x5d2507=['652356yTuAid','10HnSeJD','1966YFFIwl','1381028teLzic','project','792ddDOOn','string','18222ptDBfi','114696cBvWeU','2478hFvMgw','env','638286qCnUDc','105DKTbTu','103MLDbWU'];a247_0x1068=function(){return _0x5d2507;};return a247_0x1068();}function a247_0x4332(_0x2f81cb,_0xfc07e4){_0x2f81cb=_0x2f81cb-0xe0;const _0x10685f=a247_0x1068();let _0x433250=_0x10685f[_0x2f81cb];return _0x433250;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a247_0x2e8274,getMultiAppConfigs as a247_0xf1b7e3,getTemplateBaseUrl as a247_0x102638}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1f6ed3){const _0x1945a0=a247_0x4332,_0xe2f974=readRawConfig(_0x1f6ed3);return _0xe2f974[_0x1945a0(0xe4)]&&typeof _0xe2f974[_0x1945a0(0xe4)]===_0x1945a0(0xe0)&&initEnv(_0xe2f974[_0x1945a0(0xe4)]),_0xe2f974;}export function getConfigAppCode(){return a247_0x2e8274();}export function getMultiAppConfigs(_0x29bcbb=a247_0x2b4205(0xec)){return a247_0xf1b7e3(_0x29bcbb);}export function getTemplateBaseUrl(){return a247_0x102638();}
1
+ (function(_0x36897d,_0x5111fc){const _0x559588=a247_0x43d7,_0xbe8282=_0x36897d();while(!![]){try{const _0x416d11=-parseInt(_0x559588(0x183))/0x1*(-parseInt(_0x559588(0x18b))/0x2)+-parseInt(_0x559588(0x187))/0x3*(parseInt(_0x559588(0x184))/0x4)+-parseInt(_0x559588(0x182))/0x5+-parseInt(_0x559588(0x188))/0x6*(-parseInt(_0x559588(0x18e))/0x7)+parseInt(_0x559588(0x185))/0x8+parseInt(_0x559588(0x18a))/0x9+parseInt(_0x559588(0x186))/0xa*(-parseInt(_0x559588(0x18c))/0xb);if(_0x416d11===_0x5111fc)break;else _0xbe8282['push'](_0xbe8282['shift']());}catch(_0x5df2c9){_0xbe8282['push'](_0xbe8282['shift']());}}}(a247_0x3f21,0x38c25));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a247_0x2dcfa6,getMultiAppConfigs as a247_0x54eca8,getTemplateBaseUrl as a247_0x215c3a}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xc12a0e){const _0x4ba8bd=a247_0x43d7,_0x3d1713=readRawConfig(_0xc12a0e);return _0x3d1713[_0x4ba8bd(0x18d)]&&typeof _0x3d1713['env']===_0x4ba8bd(0x189)&&initEnv(_0x3d1713[_0x4ba8bd(0x18d)]),_0x3d1713;}function a247_0x43d7(_0x5561f3,_0x25fd1c){_0x5561f3=_0x5561f3-0x182;const _0x3f2189=a247_0x3f21();let _0x43d72a=_0x3f2189[_0x5561f3];return _0x43d72a;}export function getConfigAppCode(){return a247_0x2dcfa6();}export function getMultiAppConfigs(_0x33edab='project'){return a247_0x54eca8(_0x33edab);}function a247_0x3f21(){const _0x3a94b1=['5043iRWJbg','156858sEBRLg','string','405693IHclfQ','2egpyyL','994972WJfBFi','env','112DQHPdW','731485vTrrPL','47602WVAALX','692zASTjN','2716256HgncHl','20yHpIiK'];a247_0x3f21=function(){return _0x3a94b1;};return a247_0x3f21();}export function getTemplateBaseUrl(){return a247_0x215c3a();}
@@ -1 +1 @@
1
- function a248_0x4baa(){const _0x2a5fee=['5987150CRssgA','name','1198caXhsC','4gqiXtx','4968864aQKhNZ','error','238uzVWCa','join','23064DXVxmY','11nVRYkX','1207900JJgQIl','isDirectory','readdirSync','4327914yFDjPD','2812629HqWXQx','1624DlKZXz','copyFileSync','复制目录时出错:'];a248_0x4baa=function(){return _0x2a5fee;};return a248_0x4baa();}(function(_0x57dd21,_0x326bd9){const _0x5194e3=a248_0x3322,_0x567b63=_0x57dd21();while(!![]){try{const _0x5e61e3=-parseInt(_0x5194e3(0x121))/0x1*(parseInt(_0x5194e3(0x11c))/0x2)+parseInt(_0x5194e3(0x11b))/0x3*(parseInt(_0x5194e3(0x122))/0x4)+-parseInt(_0x5194e3(0x117))/0x5+parseInt(_0x5194e3(0x11a))/0x6+parseInt(_0x5194e3(0x113))/0x7*(parseInt(_0x5194e3(0x115))/0x8)+-parseInt(_0x5194e3(0x123))/0x9+parseInt(_0x5194e3(0x11f))/0xa*(parseInt(_0x5194e3(0x116))/0xb);if(_0x5e61e3===_0x326bd9)break;else _0x567b63['push'](_0x567b63['shift']());}catch(_0x100463){_0x567b63['push'](_0x567b63['shift']());}}}(a248_0x4baa,0x8fd5b));import a248_0x3003dc from'node:path';function a248_0x3322(_0x3f1ba3,_0x5cb405){_0x3f1ba3=_0x3f1ba3-0x113;const _0x4baaae=a248_0x4baa();let _0x3322cc=_0x4baaae[_0x3f1ba3];return _0x3322cc;}import a248_0x516428 from'node:fs';export async function copyDirectory(_0x390ff9,_0x56bbc6){const _0x39591b=a248_0x3322;try{const _0x2c8798=a248_0x516428[_0x39591b(0x119)](_0x390ff9,{'withFileTypes':!![]});a248_0x516428['mkdirSync'](_0x56bbc6,{'recursive':!![]});for(const _0x5851cb of _0x2c8798){const _0x454f29=a248_0x3003dc['join'](_0x390ff9,_0x5851cb[_0x39591b(0x120)]),_0x62cf7f=a248_0x3003dc[_0x39591b(0x114)](_0x56bbc6,_0x5851cb[_0x39591b(0x120)]);_0x5851cb[_0x39591b(0x118)]()?await copyDirectory(_0x454f29,_0x62cf7f):a248_0x516428[_0x39591b(0x11d)](_0x454f29,_0x62cf7f);}}catch(_0x1341f5){console[_0x39591b(0x124)](_0x39591b(0x11e),_0x1341f5);}}
1
+ function a248_0x3503(){const _0x19e879=['error','copyFileSync','2425600QveToN','3224296ritUwL','329868uSgGht','3008142YqdDtu','readdirSync','14WAioOr','1786778WTZezb','复制目录时出错:','808734ZdgQbn','name','3898028ssEPlc'];a248_0x3503=function(){return _0x19e879;};return a248_0x3503();}(function(_0x18970f,_0x429434){const _0x96285b=a248_0x3f78,_0x43ad19=_0x18970f();while(!![]){try{const _0x2039b9=parseInt(_0x96285b(0x1f4))/0x1+-parseInt(_0x96285b(0x1ff))/0x2+-parseInt(_0x96285b(0x1fb))/0x3+-parseInt(_0x96285b(0x1f6))/0x4+parseInt(_0x96285b(0x1f9))/0x5+parseInt(_0x96285b(0x1fc))/0x6+-parseInt(_0x96285b(0x1fe))/0x7*(-parseInt(_0x96285b(0x1fa))/0x8);if(_0x2039b9===_0x429434)break;else _0x43ad19['push'](_0x43ad19['shift']());}catch(_0x3c1bec){_0x43ad19['push'](_0x43ad19['shift']());}}}(a248_0x3503,0x98349));import a248_0x181b4f from'node:path';import a248_0x67316a from'node:fs';function a248_0x3f78(_0x5db47a,_0x354cf3){_0x5db47a=_0x5db47a-0x1f3;const _0x350324=a248_0x3503();let _0x3f78c1=_0x350324[_0x5db47a];return _0x3f78c1;}export async function copyDirectory(_0x3f4bcf,_0x12ffd9){const _0x1482b8=a248_0x3f78;try{const _0x37719d=a248_0x67316a[_0x1482b8(0x1fd)](_0x3f4bcf,{'withFileTypes':!![]});a248_0x67316a['mkdirSync'](_0x12ffd9,{'recursive':!![]});for(const _0x938b70 of _0x37719d){const _0x48e4af=a248_0x181b4f['join'](_0x3f4bcf,_0x938b70[_0x1482b8(0x1f5)]),_0x14b9db=a248_0x181b4f['join'](_0x12ffd9,_0x938b70[_0x1482b8(0x1f5)]);_0x938b70['isDirectory']()?await copyDirectory(_0x48e4af,_0x14b9db):a248_0x67316a[_0x1482b8(0x1f8)](_0x48e4af,_0x14b9db);}}catch(_0x5cfb7b){console[_0x1482b8(0x1f7)](_0x1482b8(0x1f3),_0x5cfb7b);}}
@@ -1 +1 @@
1
- function a249_0x4f95(_0xad5278,_0x63db7){_0xad5278=_0xad5278-0x105;const _0x13482b=a249_0x1348();let _0x4f959a=_0x13482b[_0xad5278];return _0x4f959a;}(function(_0x377831,_0x6f7ac7){const _0x4d83bc=a249_0x4f95,_0x342510=_0x377831();while(!![]){try{const _0x3a2214=parseInt(_0x4d83bc(0x10e))/0x1+parseInt(_0x4d83bc(0x10a))/0x2+-parseInt(_0x4d83bc(0x105))/0x3+parseInt(_0x4d83bc(0x107))/0x4+-parseInt(_0x4d83bc(0x10f))/0x5+-parseInt(_0x4d83bc(0x106))/0x6*(-parseInt(_0x4d83bc(0x108))/0x7)+parseInt(_0x4d83bc(0x10b))/0x8;if(_0x3a2214===_0x6f7ac7)break;else _0x342510['push'](_0x342510['shift']());}catch(_0x30236c){_0x342510['push'](_0x342510['shift']());}}}(a249_0x1348,0x7e1bf));function toFiniteNumber(_0x55a7d5){const _0x4f564e=a249_0x4f95;if(typeof _0x55a7d5==='number'&&Number[_0x4f564e(0x110)](_0x55a7d5))return _0x55a7d5;if(typeof _0x55a7d5===_0x4f564e(0x10d)){const _0xd9dc37=_0x55a7d5[_0x4f564e(0x10c)]();if(!_0xd9dc37)return undefined;const _0x240850=Number(_0xd9dc37);if(Number[_0x4f564e(0x110)](_0x240850))return _0x240850;}return undefined;}function a249_0x1348(){const _0x425437=['1486230PrCarg','6dAshSk','625360auDLPd','4455164gvWRsC','object','201364tXEana','3063568VmLgno','trim','string','379612zRZrGm','3220395lTEJdK','isFinite'];a249_0x1348=function(){return _0x425437;};return a249_0x1348();}export function normalizeEntityWithIdResponse(_0x384595){const _0x1e4193=a249_0x4f95,_0x325539=toFiniteNumber(_0x384595);if(_0x325539!==undefined)return{'id':_0x325539,'entity':{'id':_0x325539}};if(!_0x384595||typeof _0x384595!==_0x1e4193(0x109))return{'id':undefined,'entity':{}};const _0x3ed833={..._0x384595},_0x2875d4=toFiniteNumber(_0x3ed833['id']);return _0x2875d4!==undefined&&(_0x3ed833['id']=_0x2875d4),{'id':_0x2875d4,'entity':_0x3ed833};}
1
+ function a249_0x34b0(){const _0x2e5cf6=['isFinite','3014612qBcflf','3XlxxOV','1025642scHwJl','number','3460331tBMFhr','2478662ASaLGb','2216538RZjJri','3586615tCafoz','8fwOSWL','13434165hBvDDs'];a249_0x34b0=function(){return _0x2e5cf6;};return a249_0x34b0();}(function(_0x445b25,_0x154109){const _0x5764ea=a249_0x2396,_0x301b3a=_0x445b25();while(!![]){try{const _0xef0361=parseInt(_0x5764ea(0x1c7))/0x1+parseInt(_0x5764ea(0x1ca))/0x2*(-parseInt(_0x5764ea(0x1c6))/0x3)+parseInt(_0x5764ea(0x1c5))/0x4+parseInt(_0x5764ea(0x1cc))/0x5+parseInt(_0x5764ea(0x1cb))/0x6+parseInt(_0x5764ea(0x1c9))/0x7*(parseInt(_0x5764ea(0x1cd))/0x8)+-parseInt(_0x5764ea(0x1c3))/0x9;if(_0xef0361===_0x154109)break;else _0x301b3a['push'](_0x301b3a['shift']());}catch(_0x172e3c){_0x301b3a['push'](_0x301b3a['shift']());}}}(a249_0x34b0,0x99686));function a249_0x2396(_0x5c8953,_0x1c1cb6){_0x5c8953=_0x5c8953-0x1c3;const _0x34b064=a249_0x34b0();let _0x2396c7=_0x34b064[_0x5c8953];return _0x2396c7;}function toFiniteNumber(_0x1bfa05){const _0x1db400=a249_0x2396;if(typeof _0x1bfa05===_0x1db400(0x1c8)&&Number[_0x1db400(0x1c4)](_0x1bfa05))return _0x1bfa05;if(typeof _0x1bfa05==='string'){const _0x28c89d=_0x1bfa05['trim']();if(!_0x28c89d)return undefined;const _0x42a43c=Number(_0x28c89d);if(Number['isFinite'](_0x42a43c))return _0x42a43c;}return undefined;}export function normalizeEntityWithIdResponse(_0x456dc4){const _0x45ac63=toFiniteNumber(_0x456dc4);if(_0x45ac63!==undefined)return{'id':_0x45ac63,'entity':{'id':_0x45ac63}};if(!_0x456dc4||typeof _0x456dc4!=='object')return{'id':undefined,'entity':{}};const _0x17af87={..._0x456dc4},_0x8ebb75=toFiniteNumber(_0x17af87['id']);return _0x8ebb75!==undefined&&(_0x17af87['id']=_0x8ebb75),{'id':_0x8ebb75,'entity':_0x17af87};}
@@ -1 +1 @@
1
- (function(_0x2fc02a,_0x55ad7e){const _0xd8dad=a250_0x38c0,_0x3e4201=_0x2fc02a();while(!![]){try{const _0x2d9fb7=parseInt(_0xd8dad(0x140))/0x1*(parseInt(_0xd8dad(0x13f))/0x2)+-parseInt(_0xd8dad(0x13a))/0x3+parseInt(_0xd8dad(0x141))/0x4+parseInt(_0xd8dad(0x13b))/0x5*(-parseInt(_0xd8dad(0x13e))/0x6)+parseInt(_0xd8dad(0x139))/0x7+parseInt(_0xd8dad(0x142))/0x8*(parseInt(_0xd8dad(0x13d))/0x9)+parseInt(_0xd8dad(0x13c))/0xa;if(_0x2d9fb7===_0x55ad7e)break;else _0x3e4201['push'](_0x3e4201['shift']());}catch(_0x4ee589){_0x3e4201['push'](_0x3e4201['shift']());}}}(a250_0x4b2e,0x9203a));function a250_0x38c0(_0x564e84,_0x2535db){_0x564e84=_0x564e84-0x139;const _0x4b2e00=a250_0x4b2e();let _0x38c0b1=_0x4b2e00[_0x564e84];return _0x38c0b1;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x30e5f3,_0x10e560){const _0x1b81cf=statSync(_0x30e5f3);if(_0x1b81cf['isDirectory']()){!existsSync(_0x10e560)&&mkdirSync(_0x10e560,{'recursive':!![]});const _0x54ebab=readdirSync(_0x30e5f3);for(const _0x3ce8a6 of _0x54ebab){await copyDir(join(_0x30e5f3,_0x3ce8a6),join(_0x10e560,_0x3ce8a6));}}else copyFileSync(_0x30e5f3,_0x10e560);}export function ensureDir(_0x43cc6e){!existsSync(_0x43cc6e)&&mkdirSync(_0x43cc6e,{'recursive':!![]});}function a250_0x4b2e(){const _0x22a05a=['726432dtCSLo','2145036AZUFKC','320285oMMGTl','5569120NDZcRQ','9ytUFwr','36vdJUxg','534372MMDrvo','2FtLlGg','855164deqyMq','2308616mKjBWx'];a250_0x4b2e=function(){return _0x22a05a;};return a250_0x4b2e();}export function pathExists(_0xc441aa){return existsSync(_0xc441aa);}
1
+ (function(_0x399b1f,_0x4c3b19){const _0x52e61f=a250_0x3297,_0x58d1e5=_0x399b1f();while(!![]){try{const _0x2d2850=-parseInt(_0x52e61f(0xd2))/0x1+parseInt(_0x52e61f(0xd3))/0x2+-parseInt(_0x52e61f(0xd6))/0x3+-parseInt(_0x52e61f(0xd1))/0x4+-parseInt(_0x52e61f(0xd7))/0x5+-parseInt(_0x52e61f(0xcf))/0x6+parseInt(_0x52e61f(0xd4))/0x7*(parseInt(_0x52e61f(0xd5))/0x8);if(_0x2d2850===_0x4c3b19)break;else _0x58d1e5['push'](_0x58d1e5['shift']());}catch(_0x12c124){_0x58d1e5['push'](_0x58d1e5['shift']());}}}(a250_0x30a7,0x1baf0));function a250_0x3297(_0x435973,_0x58546b){_0x435973=_0x435973-0xcf;const _0x30a7a2=a250_0x30a7();let _0x329705=_0x30a7a2[_0x435973];return _0x329705;}function a250_0x30a7(){const _0x5df72d=['984011prJHjX','40ezOSlH','250398bJyENJ','1129480MRpuen','799278jRkglU','isDirectory','523588QsaQEj','167074QsjpGQ','302146RJYrAq'];a250_0x30a7=function(){return _0x5df72d;};return a250_0x30a7();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x5b1ed0,_0x2a8687){const _0x4eec6d=a250_0x3297,_0x13df82=statSync(_0x5b1ed0);if(_0x13df82[_0x4eec6d(0xd0)]()){!existsSync(_0x2a8687)&&mkdirSync(_0x2a8687,{'recursive':!![]});const _0x3d0ca3=readdirSync(_0x5b1ed0);for(const _0x4d1c28 of _0x3d0ca3){await copyDir(join(_0x5b1ed0,_0x4d1c28),join(_0x2a8687,_0x4d1c28));}}else copyFileSync(_0x5b1ed0,_0x2a8687);}export function ensureDir(_0x5ac880){!existsSync(_0x5ac880)&&mkdirSync(_0x5ac880,{'recursive':!![]});}export function pathExists(_0x512f1b){return existsSync(_0x512f1b);}
@@ -1 +1 @@
1
- const a251_0x402c09=a251_0x4115;function a251_0x4115(_0x40c6d8,_0x3102df){_0x40c6d8=_0x40c6d8-0x181;const _0x1eea93=a251_0x1eea();let _0x411557=_0x1eea93[_0x40c6d8];return _0x411557;}(function(_0x265ec5,_0x4365b4){const _0x4ba339=a251_0x4115,_0x7582a0=_0x265ec5();while(!![]){try{const _0x506592=-parseInt(_0x4ba339(0x19b))/0x1*(parseInt(_0x4ba339(0x1a5))/0x2)+parseInt(_0x4ba339(0x192))/0x3+-parseInt(_0x4ba339(0x193))/0x4+parseInt(_0x4ba339(0x1a0))/0x5*(-parseInt(_0x4ba339(0x195))/0x6)+-parseInt(_0x4ba339(0x18b))/0x7*(-parseInt(_0x4ba339(0x196))/0x8)+parseInt(_0x4ba339(0x1a4))/0x9+-parseInt(_0x4ba339(0x186))/0xa*(-parseInt(_0x4ba339(0x18d))/0xb);if(_0x506592===_0x4365b4)break;else _0x7582a0['push'](_0x7582a0['shift']());}catch(_0x3a7abd){_0x7582a0['push'](_0x7582a0['shift']());}}}(a251_0x1eea,0x8b50c));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a251_0x1eea(){const _0x4d3c1f=['skillTemplate','push','title','31qYTBcF','trimEnd','path','.lovrabet/skill/guides','.lovrabet','1017745OuoTEs','statusText','\x0a\x0a>更新时间:','map','7255053REAxdn','30486PCoYYk','utf-8','content','cache','CDN\x20数据中缺少\x20skillTemplate','join','984820sXVDUj','extendContent','object','CDN\x20返回数据格式错误','replace','1039556DzIeVw','json','11vOMzsv','entries','guides','length','lastUpdated','167040VRwCBX','1824404uQqcVE','application/json','6JiWyvL','40jGlSKh','keys'];a251_0x1eea=function(){return _0x4d3c1f;};return a251_0x1eea();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x38bca1=getTemplateBaseUrl();return _0x38bca1+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a251_0x402c09(0x19f),a251_0x402c09(0x183));export async function fetchGuidesFromCDN(){const _0x15baa5=a251_0x402c09,_0x429cdb=getGuidesCdnUrl(),_0x28b32f=await fetch(_0x429cdb,{'headers':{'Accept':_0x15baa5(0x194)}});if(!_0x28b32f['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x28b32f['status']+'\x20'+_0x28b32f[_0x15baa5(0x1a1)]);const _0x444b69=await _0x28b32f[_0x15baa5(0x18c)]();if(!_0x444b69[_0x15baa5(0x18f)]||typeof _0x444b69[_0x15baa5(0x18f)]!==_0x15baa5(0x188))throw new Error(_0x15baa5(0x189));return _0x444b69;}export function writeGuidesToProject(_0x4c90a6,_0x42cd2c,_0x5f343e=a251_0x402c09(0x19e),_0x37e464){const _0x300bd7=a251_0x402c09,_0x4e0e1d=join(_0x42cd2c,_0x5f343e);mkdirSync(_0x4e0e1d,{'recursive':!![]});for(const [_0x51406c,_0x1b3856]of Object['entries'](_0x4c90a6[_0x300bd7(0x18f)])){let _0x198b9a=_0x1b3856['content'];_0x1b3856['lastUpdated']&&(_0x198b9a=appendUpdateTime(_0x198b9a,_0x1b3856[_0x300bd7(0x191)])),writeFileSync(join(_0x4e0e1d,_0x51406c+'.md'),_0x198b9a,_0x300bd7(0x181));}}export function appendUpdateTime(_0x30dd6f,_0xe8e25b){const _0x6b3cea=a251_0x402c09;return _0x30dd6f=_0x30dd6f[_0x6b3cea(0x18a)](/\n*>更新时间:.*$/m,''),_0x30dd6f[_0x6b3cea(0x19c)]()+(_0x6b3cea(0x1a2)+_0xe8e25b);}export function getSkillTemplate(_0x56319c){const _0x422a84=a251_0x402c09;return _0x56319c['skillTemplate']?.[_0x422a84(0x182)]||'';}export function appendExtendContents(_0x1a0d93,_0x55c850,_0x3adde6){const _0x147a16=a251_0x402c09,_0x4cc7cb=[];for(const [,_0x4817af]of Object['entries'](_0x55c850['guides'])){_0x4817af[_0x147a16(0x187)]&&_0x4cc7cb[_0x147a16(0x199)](_0x4817af['extendContent']['trimEnd']());}if(_0x4cc7cb[_0x147a16(0x190)]===0x0)return _0x1a0d93;return _0x1a0d93[_0x147a16(0x19c)]()+'\x0a\x0a'+_0x4cc7cb[_0x147a16(0x185)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x27f9b3,_0x49ef31,_0x5c7533){const _0x2ae94d=a251_0x402c09,_0x2ca25c=getSkillTemplate(_0x27f9b3);if(!_0x2ca25c)throw new Error(_0x2ae94d(0x184));const _0x584e51=dirname(_0x49ef31);mkdirSync(_0x584e51,{'recursive':!![]});let _0x168c66=_0x2ca25c[_0x2ae94d(0x18a)](/\{\{IDE_NAME\}\}/g,_0x5c7533);_0x168c66=appendExtendContents(_0x168c66,_0x27f9b3),_0x27f9b3[_0x2ae94d(0x198)][_0x2ae94d(0x191)]&&(_0x168c66=appendUpdateTime(_0x168c66,_0x27f9b3['skillTemplate'][_0x2ae94d(0x191)])),writeFileSync(_0x49ef31,_0x168c66,_0x2ae94d(0x181));}export async function installGuides(_0x512900){const _0x5eb8ae=a251_0x402c09,_0x1b248d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1b248d,_0x512900),Object[_0x5eb8ae(0x197)](_0x1b248d['guides'])[_0x5eb8ae(0x190)];}export function getGuidesSummary(_0x5151d0){const _0x2aa1ca=a251_0x402c09;return Object[_0x2aa1ca(0x18e)](_0x5151d0[_0x2aa1ca(0x18f)])[_0x2aa1ca(0x1a3)](([_0x59faf0,_0x2ecf72])=>({'key':_0x59faf0,'title':_0x2ecf72[_0x2aa1ca(0x19a)],'path':_0x2ecf72[_0x2aa1ca(0x19d)]}));}
1
+ const a251_0x377cc9=a251_0x516c;(function(_0x55f3d1,_0x39ea9f){const _0x420660=a251_0x516c,_0x42f949=_0x55f3d1();while(!![]){try{const _0x37b030=-parseInt(_0x420660(0x1e4))/0x1+-parseInt(_0x420660(0x1e3))/0x2*(parseInt(_0x420660(0x1e6))/0x3)+-parseInt(_0x420660(0x1db))/0x4+-parseInt(_0x420660(0x1da))/0x5+-parseInt(_0x420660(0x1d9))/0x6+parseInt(_0x420660(0x1d6))/0x7*(-parseInt(_0x420660(0x1e9))/0x8)+parseInt(_0x420660(0x1ea))/0x9;if(_0x37b030===_0x39ea9f)break;else _0x42f949['push'](_0x42f949['shift']());}catch(_0x3f9901){_0x42f949['push'](_0x42f949['shift']());}}}(a251_0x114e,0xa2779));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 _0x3ba7bb=a251_0x516c,_0x3ccd7f=getTemplateBaseUrl();return _0x3ccd7f+_0x3ba7bb(0x1e2);}const CACHE_DIR=join(homedir(),a251_0x377cc9(0x1df),'cache');export async function fetchGuidesFromCDN(){const _0x320c72=a251_0x377cc9,_0x3d6bdb=getGuidesCdnUrl(),_0x4f6a34=await fetch(_0x3d6bdb,{'headers':{'Accept':_0x320c72(0x1e8)}});if(!_0x4f6a34['ok'])throw new Error(_0x320c72(0x1d0)+_0x4f6a34[_0x320c72(0x1d2)]+'\x20'+_0x4f6a34['statusText']);const _0x2eadd9=await _0x4f6a34[_0x320c72(0x1e0)]();if(!_0x2eadd9['guides']||typeof _0x2eadd9[_0x320c72(0x1dd)]!==_0x320c72(0x1d7))throw new Error(_0x320c72(0x1d5));return _0x2eadd9;}function a251_0x114e(){const _0xd620f1=['guides','keys','.lovrabet','json','\x0a\x0a>更新时间:','/skills/guides.json','1322346YuDJGC','1080401CbiKlL','extendContent','3KZUmBQ','.md','application/json','1159288kyADzB','56713806CWConP','trimEnd','path','skillTemplate','push','utf-8','length','CDN\x20请求失败:\x20','content','status','entries','title','CDN\x20返回数据格式错误','35DUROMZ','object','lastUpdated','3929526fODCcH','6297230lgjtFx','5022292OuiyoQ','replace'];a251_0x114e=function(){return _0xd620f1;};return a251_0x114e();}export function writeGuidesToProject(_0x2f6f49,_0x1eccdf,_0x49112e='.lovrabet/skill/guides',_0x5ef848){const _0x147a52=a251_0x377cc9,_0x239460=join(_0x1eccdf,_0x49112e);mkdirSync(_0x239460,{'recursive':!![]});for(const [_0x4d2cc2,_0x30c799]of Object[_0x147a52(0x1d3)](_0x2f6f49['guides'])){let _0x3b4392=_0x30c799[_0x147a52(0x1d1)];_0x30c799[_0x147a52(0x1d8)]&&(_0x3b4392=appendUpdateTime(_0x3b4392,_0x30c799[_0x147a52(0x1d8)])),writeFileSync(join(_0x239460,_0x4d2cc2+_0x147a52(0x1e7)),_0x3b4392,'utf-8');}}export function appendUpdateTime(_0xcee383,_0x48f73c){const _0x4c5c43=a251_0x377cc9;return _0xcee383=_0xcee383[_0x4c5c43(0x1dc)](/\n*>更新时间:.*$/m,''),_0xcee383[_0x4c5c43(0x1eb)]()+(_0x4c5c43(0x1e1)+_0x48f73c);}function a251_0x516c(_0x9293fc,_0x86f0d7){_0x9293fc=_0x9293fc-0x1cb;const _0x114e19=a251_0x114e();let _0x516c62=_0x114e19[_0x9293fc];return _0x516c62;}export function getSkillTemplate(_0x40fec7){const _0x1f4450=a251_0x377cc9;return _0x40fec7['skillTemplate']?.[_0x1f4450(0x1d1)]||'';}export function appendExtendContents(_0x5f0aff,_0x113174,_0x4d6acb){const _0x559697=a251_0x377cc9,_0x1d6b18=[];for(const [,_0x1f369f]of Object[_0x559697(0x1d3)](_0x113174['guides'])){_0x1f369f['extendContent']&&_0x1d6b18[_0x559697(0x1cd)](_0x1f369f[_0x559697(0x1e5)][_0x559697(0x1eb)]());}if(_0x1d6b18[_0x559697(0x1cf)]===0x0)return _0x5f0aff;return _0x5f0aff['trimEnd']()+'\x0a\x0a'+_0x1d6b18['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x54be7d,_0x37e3bb,_0x260591){const _0x45f3b7=a251_0x377cc9,_0xfab479=getSkillTemplate(_0x54be7d);if(!_0xfab479)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x58bd48=dirname(_0x37e3bb);mkdirSync(_0x58bd48,{'recursive':!![]});let _0x4a2534=_0xfab479[_0x45f3b7(0x1dc)](/\{\{IDE_NAME\}\}/g,_0x260591);_0x4a2534=appendExtendContents(_0x4a2534,_0x54be7d),_0x54be7d[_0x45f3b7(0x1cc)]['lastUpdated']&&(_0x4a2534=appendUpdateTime(_0x4a2534,_0x54be7d['skillTemplate'][_0x45f3b7(0x1d8)])),writeFileSync(_0x37e3bb,_0x4a2534,_0x45f3b7(0x1ce));}export async function installGuides(_0xcc6cb7){const _0x725dd8=a251_0x377cc9,_0x37d2a2=await fetchGuidesFromCDN();return writeGuidesToProject(_0x37d2a2,_0xcc6cb7),Object[_0x725dd8(0x1de)](_0x37d2a2[_0x725dd8(0x1dd)])[_0x725dd8(0x1cf)];}export function getGuidesSummary(_0x14bdef){const _0x255cd1=a251_0x377cc9;return Object[_0x255cd1(0x1d3)](_0x14bdef[_0x255cd1(0x1dd)])['map'](([_0x6425e9,_0x2c521f])=>({'key':_0x6425e9,'title':_0x2c521f[_0x255cd1(0x1d4)],'path':_0x2c521f[_0x255cd1(0x1cb)]}));}
@@ -1 +1 @@
1
- function a252_0x26f8(){const _0x317c16=['11cocNmq','headers','text','18VyRMDv','fetch','539373ohbkNf','41166mbhnPj','signal','12SFnPAR','url','ms\x20后进行第\x20','log','20iMWhMf','242NOhTxf','abort','40125DcrScr','ECONNRESET','Request\x20failed','status','2409323ziGWxe','statusText','includes','json','12056180LTYxBP','AbortError','TypeError','16ONhduk','8728291aPASbM','get','2422aFACAp','name','\x20次重试...','message','content-type'];a252_0x26f8=function(){return _0x317c16;};return a252_0x26f8();}(function(_0x3780d9,_0x265fba){const _0x320baf=a252_0x566c,_0x42e998=_0x3780d9();while(!![]){try{const _0x40b2e7=-parseInt(_0x320baf(0x14b))/0x1*(parseInt(_0x320baf(0x15d))/0x2)+parseInt(_0x320baf(0x155))/0x3+parseInt(_0x320baf(0x15c))/0x4*(-parseInt(_0x320baf(0x15f))/0x5)+-parseInt(_0x320baf(0x153))/0x6*(parseInt(_0x320baf(0x163))/0x7)+-parseInt(_0x320baf(0x148))/0x8*(parseInt(_0x320baf(0x156))/0x9)+-parseInt(_0x320baf(0x145))/0xa*(-parseInt(_0x320baf(0x150))/0xb)+parseInt(_0x320baf(0x158))/0xc*(parseInt(_0x320baf(0x149))/0xd);if(_0x40b2e7===_0x265fba)break;else _0x42e998['push'](_0x42e998['shift']());}catch(_0x1741b4){_0x42e998['push'](_0x42e998['shift']());}}}(a252_0x26f8,0xa67ba));export async function httpRequest(_0x2ff3ea,_0x1c4a52={}){const _0x5acd4b=a252_0x566c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1c4a52;let _0x177607=null;for(let _0x1e1015=0x0;_0x1e1015<=retries;_0x1e1015++){try{const _0x2ac204=new AbortController(),_0x2fcb61=setTimeout(()=>_0x2ac204[_0x5acd4b(0x15e)](),timeout),_0x5d176d=await fetch(_0x2ff3ea,{'headers':headers,'signal':_0x2ac204[_0x5acd4b(0x157)]});clearTimeout(_0x2fcb61);let _0x2442e8;const _0x5e438d=_0x5d176d[_0x5acd4b(0x151)][_0x5acd4b(0x14a)](_0x5acd4b(0x14f));return _0x5e438d?.[_0x5acd4b(0x165)]('application/json')?_0x2442e8=await _0x5d176d[_0x5acd4b(0x166)]():_0x2442e8=await _0x5d176d[_0x5acd4b(0x152)](),{'ok':_0x5d176d['ok'],'status':_0x5d176d[_0x5acd4b(0x162)],'statusText':_0x5d176d[_0x5acd4b(0x164)],'data':_0x2442e8,'headers':_0x5d176d[_0x5acd4b(0x151)],'url':_0x5d176d[_0x5acd4b(0x159)],'text':()=>_0x5d176d[_0x5acd4b(0x152)]()};}catch(_0x45ff2a){_0x177607=_0x45ff2a instanceof Error?_0x45ff2a:new Error(String(_0x45ff2a));if(_0x1e1015===retries)break;if(shouldRetry(_0x45ff2a)){console[_0x5acd4b(0x15b)]('*\x20请求失败,'+retryDelay+_0x5acd4b(0x15a)+(_0x1e1015+0x1)+_0x5acd4b(0x14d)),await sleep(retryDelay);continue;}else break;}}throw _0x177607||new Error(_0x5acd4b(0x161));}function shouldRetry(_0x1b58ae){const _0x104411=a252_0x566c;if(_0x1b58ae instanceof Error){if(_0x1b58ae[_0x104411(0x14c)]===_0x104411(0x146))return![];if(_0x1b58ae[_0x104411(0x14c)]===_0x104411(0x147)&&_0x1b58ae[_0x104411(0x14e)]['includes'](_0x104411(0x154)))return!![];if(_0x1b58ae[_0x104411(0x14e)][_0x104411(0x165)](_0x104411(0x160)))return!![];if(_0x1b58ae['message']['includes']('ENOTFOUND'))return![];}return![];}function a252_0x566c(_0x1e4d58,_0x3313cf){_0x1e4d58=_0x1e4d58-0x145;const _0x26f8d5=a252_0x26f8();let _0x566c7b=_0x26f8d5[_0x1e4d58];return _0x566c7b;}function sleep(_0x2dc813){return new Promise(_0x913dd4=>setTimeout(_0x913dd4,_0x2dc813));}export function validateUrl(_0x16614f){try{return new URL(_0x16614f),!![];}catch{return![];}}
1
+ (function(_0x2be67c,_0x13b79a){const _0x487efe=a252_0x398b,_0x3d8794=_0x2be67c();while(!![]){try{const _0x31f276=parseInt(_0x487efe(0x8f))/0x1+parseInt(_0x487efe(0x84))/0x2*(parseInt(_0x487efe(0x97))/0x3)+parseInt(_0x487efe(0x8a))/0x4+parseInt(_0x487efe(0x93))/0x5*(parseInt(_0x487efe(0x90))/0x6)+parseInt(_0x487efe(0x92))/0x7*(-parseInt(_0x487efe(0x9c))/0x8)+parseInt(_0x487efe(0x96))/0x9+-parseInt(_0x487efe(0x9d))/0xa*(parseInt(_0x487efe(0x87))/0xb);if(_0x31f276===_0x13b79a)break;else _0x3d8794['push'](_0x3d8794['shift']());}catch(_0x52e15d){_0x3d8794['push'](_0x3d8794['shift']());}}}(a252_0x77ad,0xbf6e8));export async function httpRequest(_0x38319a,_0x57a49e={}){const _0x33a386=a252_0x398b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x57a49e;let _0x398e4b=null;for(let _0x38f719=0x0;_0x38f719<=retries;_0x38f719++){try{const _0x5d0f58=new AbortController(),_0xf41f33=setTimeout(()=>_0x5d0f58[_0x33a386(0x9b)](),timeout),_0x3def73=await fetch(_0x38319a,{'headers':headers,'signal':_0x5d0f58[_0x33a386(0x82)]});clearTimeout(_0xf41f33);let _0x1ae8cb;const _0x2fb4f3=_0x3def73[_0x33a386(0x88)][_0x33a386(0x8e)]('content-type');return _0x2fb4f3?.[_0x33a386(0x80)]('application/json')?_0x1ae8cb=await _0x3def73[_0x33a386(0x89)]():_0x1ae8cb=await _0x3def73['text'](),{'ok':_0x3def73['ok'],'status':_0x3def73[_0x33a386(0x94)],'statusText':_0x3def73['statusText'],'data':_0x1ae8cb,'headers':_0x3def73[_0x33a386(0x88)],'url':_0x3def73['url'],'text':()=>_0x3def73[_0x33a386(0x8c)]()};}catch(_0x39fd3b){_0x398e4b=_0x39fd3b instanceof Error?_0x39fd3b:new Error(String(_0x39fd3b));if(_0x38f719===retries)break;if(shouldRetry(_0x39fd3b)){console[_0x33a386(0x91)](_0x33a386(0x81)+retryDelay+_0x33a386(0x9a)+(_0x38f719+0x1)+_0x33a386(0x8d)),await sleep(retryDelay);continue;}else break;}}throw _0x398e4b||new Error('Request\x20failed');}function shouldRetry(_0x4671a7){const _0x14dd44=a252_0x398b;if(_0x4671a7 instanceof Error){if(_0x4671a7['name']===_0x14dd44(0x83))return![];if(_0x4671a7[_0x14dd44(0x95)]===_0x14dd44(0x85)&&_0x4671a7[_0x14dd44(0x8b)][_0x14dd44(0x80)](_0x14dd44(0x99)))return!![];if(_0x4671a7[_0x14dd44(0x8b)][_0x14dd44(0x80)](_0x14dd44(0x86)))return!![];if(_0x4671a7[_0x14dd44(0x8b)][_0x14dd44(0x80)](_0x14dd44(0x98)))return![];}return![];}function a252_0x77ad(){const _0x4536e5=['fetch','ms\x20后进行第\x20','abort','120PiFqAu','10TCVxXZ','includes','*\x20请求失败,','signal','AbortError','118YzaFBV','TypeError','ECONNRESET','34955503WPwyzA','headers','json','4197600gYRgUm','message','text','\x20次重试...','get','785777ZIdsPH','44808VXiLSp','log','309953zEwkTE','305nqUHOv','status','name','8284122wypcia','71943kRPjRx','ENOTFOUND'];a252_0x77ad=function(){return _0x4536e5;};return a252_0x77ad();}function sleep(_0x3e2f16){return new Promise(_0x40e044=>setTimeout(_0x40e044,_0x3e2f16));}function a252_0x398b(_0x17815a,_0x143a88){_0x17815a=_0x17815a-0x80;const _0x77ada1=a252_0x77ad();let _0x398b3a=_0x77ada1[_0x17815a];return _0x398b3a;}export function validateUrl(_0x56c160){try{return new URL(_0x56c160),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4f207c,_0xd43563){const _0x2e861a=a253_0x40ac,_0x10385b=_0x4f207c();while(!![]){try{const _0x360a06=-parseInt(_0x2e861a(0x1f4))/0x1+-parseInt(_0x2e861a(0x1f5))/0x2+parseInt(_0x2e861a(0x1fe))/0x3*(parseInt(_0x2e861a(0x1fb))/0x4)+parseInt(_0x2e861a(0x1f3))/0x5+-parseInt(_0x2e861a(0x1f7))/0x6*(parseInt(_0x2e861a(0x1f2))/0x7)+-parseInt(_0x2e861a(0x1f8))/0x8+-parseInt(_0x2e861a(0x1fd))/0x9*(-parseInt(_0x2e861a(0x1f6))/0xa);if(_0x360a06===_0xd43563)break;else _0x10385b['push'](_0x10385b['shift']());}catch(_0x3c49fd){_0x10385b['push'](_0x10385b['shift']());}}}(a253_0x1a77,0x25457));function env(_0x563a8b){return process.env[`RABETBASE_${_0x563a8b}`]||process.env[`LOVRABET_${_0x563a8b}`]||undefined;}export function isNonInteractive(_0x384625){const _0x157392=a253_0x40ac;return!!(_0x384625['nonInteractive']||_0x384625['ci']||env('CI')===_0x157392(0x1f9)||process.env.CI===_0x157392(0x1f9)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xe41d27=a253_0x40ac;if(!process[_0xe41d27(0x1ff)]['isTTY'])return![];try{const _0x342be9=process[_0xe41d27(0x1ff)][_0xe41d27(0x1fc)];return process[_0xe41d27(0x1ff)][_0xe41d27(0x1fa)](!![]),process[_0xe41d27(0x1ff)][_0xe41d27(0x1fa)](_0x342be9??![]),!![];}catch{return![];}}function a253_0x40ac(_0xe5e4fe,_0x3352b1){_0xe5e4fe=_0xe5e4fe-0x1f2;const _0x1a77a9=a253_0x1a77();let _0x40acae=_0x1a77a9[_0xe5e4fe];return _0x40acae;}function a253_0x1a77(){const _0x447a1d=['158709lynmlK','stdin','29722VCjnfa','63950ntczWR','244656hHrpNB','162828OaXOGB','3715470oClAiH','174tBDDaR','375880jzzccN','true','setRawMode','20ayJokn','isRaw','9pJcSSl'];a253_0x1a77=function(){return _0x447a1d;};return a253_0x1a77();}
1
+ (function(_0x5692e0,_0x2fcf2a){const _0x389b14=a253_0x507b,_0x20170=_0x5692e0();while(!![]){try{const _0x25e41d=parseInt(_0x389b14(0x8e))/0x1*(parseInt(_0x389b14(0x86))/0x2)+parseInt(_0x389b14(0x8b))/0x3+parseInt(_0x389b14(0x8c))/0x4*(-parseInt(_0x389b14(0x8a))/0x5)+parseInt(_0x389b14(0x97))/0x6+-parseInt(_0x389b14(0x90))/0x7*(parseInt(_0x389b14(0x88))/0x8)+-parseInt(_0x389b14(0x8d))/0x9*(parseInt(_0x389b14(0x95))/0xa)+-parseInt(_0x389b14(0x91))/0xb*(-parseInt(_0x389b14(0x93))/0xc);if(_0x25e41d===_0x2fcf2a)break;else _0x20170['push'](_0x20170['shift']());}catch(_0x15ba0f){_0x20170['push'](_0x20170['shift']());}}}(a253_0x19fe,0x2176e));function a253_0x19fe(){const _0x49b5d7=['5iIOqxn','604992EiNmGU','608876PwYuUP','18CkSjDU','1361meEljP','stdout','1128442jMzDSB','792TaNOip','isTTY','25836FLtHKg','setRawMode','718790UbKkMR','true','976308NokgXM','110nVgsKd','nonInteractive','8axcRlg','stdin'];a253_0x19fe=function(){return _0x49b5d7;};return a253_0x19fe();}function env(_0x55b587){return process.env[`RABETBASE_${_0x55b587}`]||process.env[`LOVRABET_${_0x55b587}`]||undefined;}export function isNonInteractive(_0x4851dd){const _0x24a3f3=a253_0x507b;return!!(_0x4851dd[_0x24a3f3(0x87)]||_0x4851dd['ci']||env('CI')===_0x24a3f3(0x96)||process.env.CI===_0x24a3f3(0x96)||!process[_0x24a3f3(0x8f)][_0x24a3f3(0x92)]||!isStdinRawModeSupported());}function a253_0x507b(_0x70033f,_0x581d7d){_0x70033f=_0x70033f-0x86;const _0x19fe31=a253_0x19fe();let _0x507b7c=_0x19fe31[_0x70033f];return _0x507b7c;}function isStdinRawModeSupported(){const _0x51cc25=a253_0x507b;if(!process[_0x51cc25(0x89)]['isTTY'])return![];try{const _0x1868fa=process[_0x51cc25(0x89)]['isRaw'];return process[_0x51cc25(0x89)][_0x51cc25(0x94)](!![]),process['stdin'][_0x51cc25(0x94)](_0x1868fa??![]),!![];}catch{return![];}}