@lovrabet/rabetbase-cli 2.3.9-beta.1 → 2.3.9-beta.3

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 (258) 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 -0
  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 -0
  103. package/lib/commands/menu/group-create.js +1 -0
  104. package/lib/commands/menu/group-update.js +1 -0
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -0
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -0
  110. package/lib/commands/menu/shared/facts.js +1 -0
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -0
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -0
  177. package/lib/commands/task/status.js +1 -0
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -0
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -0
  215. package/lib/framework/explicit-yes.js +1 -0
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1d4540,_0x54cd30){const _0x1f3f62=a217_0xb0e8,_0x167801=_0x1d4540();while(!![]){try{const _0x4e833c=-parseInt(_0x1f3f62(0x102))/0x1+-parseInt(_0x1f3f62(0x121))/0x2*(-parseInt(_0x1f3f62(0x10c))/0x3)+parseInt(_0x1f3f62(0x117))/0x4*(parseInt(_0x1f3f62(0x11c))/0x5)+parseInt(_0x1f3f62(0x120))/0x6*(-parseInt(_0x1f3f62(0x113))/0x7)+parseInt(_0x1f3f62(0xfc))/0x8*(-parseInt(_0x1f3f62(0x11f))/0x9)+parseInt(_0x1f3f62(0x11a))/0xa+-parseInt(_0x1f3f62(0x109))/0xb*(parseInt(_0x1f3f62(0x112))/0xc);if(_0x4e833c===_0x54cd30)break;else _0x167801['push'](_0x167801['shift']());}catch(_0x262984){_0x167801['push'](_0x167801['shift']());}}}(a217_0x531e,0xbd0b4));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a217_0xb0e8(_0x532c69,_0x53d191){_0x532c69=_0x532c69-0xf9;const _0x531e2f=a217_0x531e();let _0xb0e8d1=_0x531e2f[_0x532c69];return _0xb0e8d1;}export function camelCaseFlagsToKebab(_0x409039){const _0x5f319e=a217_0xb0e8,_0x3a14c6=[];for(const [_0x1625f2,_0x6ad198]of Object[_0x5f319e(0x114)](_0x409039)){if(_0x6ad198===!![]){const _0x4eca04=_0x1625f2[_0x5f319e(0xfb)](/([A-Z])/g,_0x5f319e(0x11d))[_0x5f319e(0x104)]();_0x3a14c6[_0x5f319e(0x10d)](_0x4eca04);}}return _0x3a14c6;}export function parseDynamicFlags(){const _0x35621a=a217_0xb0e8,_0x2b7c90=[];for(let _0x3a187e=0x3;_0x3a187e<process[_0x35621a(0x10e)]['length'];_0x3a187e++){const _0xc361b4=process[_0x35621a(0x10e)][_0x3a187e];if(_0xc361b4&&_0xc361b4[_0x35621a(0x110)]('--')){const _0xa94abb=_0xc361b4[_0x35621a(0xff)](0x2);_0xa94abb&&!_0xa94abb['includes']('=')&&_0x2b7c90[_0x35621a(0x10d)](_0xa94abb);}}return _0x2b7c90;}export function getAllProvidedFlags(_0x2df8a0){const _0x2acd1e=camelCaseFlagsToKebab(_0x2df8a0),_0x59cfdd=parseDynamicFlags(),_0x5529cd=new Set([..._0x2acd1e,..._0x59cfdd]);return Array['from'](_0x5529cd);}function a217_0x531e(){const _0x52353f=['startsWith','dangerously-bff-save','1188QgDnHy','33285zMRbOo','entries','add','\x0aAvailable\x20commands:','8JesXtU','has','Equivalent\x20command:\x20','6807140mXQcwm','setLogPath','653885zWYEFH','-$1','cwd','23643CPjvwn','252oRqups','2vqgZcK','skill','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','replace','904bBRQld','from','不支持的命令:\x20','slice','--help','(empty)','253837hFkUZA','error','toLowerCase','exit','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','enable-bff-save','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','67573qqjXaN','log','help','3571833BuiYYs','push','argv','Error:\x20Unsupported\x20command:\x20'];a217_0x531e=function(){return _0x52353f;};return a217_0x531e();}export function normalizeLegacyBffSaveFlags(_0x1e8483){const _0x3baa71=a217_0xb0e8,_0x399d36=new Set(_0x1e8483);return _0x399d36[_0x3baa71(0x118)](_0x3baa71(0x111))&&_0x399d36[_0x3baa71(0x115)](_0x3baa71(0x107)),Array[_0x3baa71(0xfd)](_0x399d36);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2d293b,_0xe0da00,_0x372c93){const _0x520b0d=a217_0xb0e8;logger[_0x520b0d(0x11b)](process[_0x520b0d(0x11e)]());if(_0x372c93?.[_0x520b0d(0x10b)]||_0x2d293b===_0x520b0d(0x100)){showHelp();return;}console[_0x520b0d(0x103)](_0x520b0d(0x10f)+(_0x2d293b||_0x520b0d(0x101))),console[_0x520b0d(0x10a)](_0x520b0d(0x116)),console[_0x520b0d(0x10a)]('\x20\x20'+CLI_BIN_NAME+_0x520b0d(0x106)),console[_0x520b0d(0x10a)](''),console[_0x520b0d(0x10a)](_0x520b0d(0x119)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x520b0d(0x103)](_0x520b0d(0xf9),_0x520b0d(0xfe)+_0x2d293b),process[_0x520b0d(0x105)](0x1);}function showHelp(){const _0x1ab60f=a217_0xb0e8;console[_0x1ab60f(0x10a)](_0x1ab60f(0xfa)+CLI_BIN_NAME+_0x1ab60f(0x108)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x37e4df,_0x497600){const _0x1175cd=a230_0x4ace,_0x5053c6=_0x37e4df();while(!![]){try{const _0x5258c2=-parseInt(_0x1175cd(0x11b))/0x1+parseInt(_0x1175cd(0x121))/0x2+parseInt(_0x1175cd(0x128))/0x3*(parseInt(_0x1175cd(0x125))/0x4)+parseInt(_0x1175cd(0x129))/0x5*(parseInt(_0x1175cd(0x127))/0x6)+parseInt(_0x1175cd(0x11c))/0x7+-parseInt(_0x1175cd(0x12a))/0x8+parseInt(_0x1175cd(0x122))/0x9*(parseInt(_0x1175cd(0x130))/0xa);if(_0x5258c2===_0x497600)break;else _0x5053c6['push'](_0x5053c6['shift']());}catch(_0x24e893){_0x5053c6['push'](_0x5053c6['shift']());}}}(a230_0x3efc,0x1ae2c));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a230_0x3efc(){const _0x3bb9ae=['push','197254CVAQgP','974743IzBKTx','includes','replace','Error:\x20Unsupported\x20command:\x20','argv','341362VyhUUd','9AvoVkQ','--help','has','52KCAaUd','from','270dSRYJr','13971llfplx','4015WUrQOo','1116920UUpytr','log','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','(empty)','error','403870nnDIjI','Equivalent\x20command:\x20','不支持的命令:\x20','startsWith','skill','enable-bff-save','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'];a230_0x3efc=function(){return _0x3bb9ae;};return a230_0x3efc();}export function camelCaseFlagsToKebab(_0x27bec6){const _0x2ed17d=a230_0x4ace,_0x4736d0=[];for(const [_0x2a8a61,_0x5a88d2]of Object['entries'](_0x27bec6)){if(_0x5a88d2===!![]){const _0x119f21=_0x2a8a61[_0x2ed17d(0x11e)](/([A-Z])/g,_0x2ed17d(0x12d))['toLowerCase']();_0x4736d0[_0x2ed17d(0x11a)](_0x119f21);}}return _0x4736d0;}function a230_0x4ace(_0x44cf71,_0x477936){_0x44cf71=_0x44cf71-0x114;const _0x3efcfa=a230_0x3efc();let _0x4ace0a=_0x3efcfa[_0x44cf71];return _0x4ace0a;}export function parseDynamicFlags(){const _0x45d4b3=a230_0x4ace,_0x24af5d=[];for(let _0x2dc032=0x3;_0x2dc032<process['argv']['length'];_0x2dc032++){const _0x13f4b6=process[_0x45d4b3(0x120)][_0x2dc032];if(_0x13f4b6&&_0x13f4b6[_0x45d4b3(0x116)]('--')){const _0x3d2a92=_0x13f4b6['slice'](0x2);_0x3d2a92&&!_0x3d2a92[_0x45d4b3(0x11d)]('=')&&_0x24af5d['push'](_0x3d2a92);}}return _0x24af5d;}export function getAllProvidedFlags(_0x498820){const _0x3dce2c=a230_0x4ace,_0x4cc8c9=camelCaseFlagsToKebab(_0x498820),_0x257102=parseDynamicFlags(),_0x4bec26=new Set([..._0x4cc8c9,..._0x257102]);return Array[_0x3dce2c(0x126)](_0x4bec26);}export function normalizeLegacyBffSaveFlags(_0x12aef6){const _0x4d4860=a230_0x4ace,_0x20539d=new Set(_0x12aef6);return _0x20539d[_0x4d4860(0x124)]('dangerously-bff-save')&&_0x20539d['add'](_0x4d4860(0x118)),Array[_0x4d4860(0x126)](_0x20539d);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x14f420,_0x277fe5,_0x4bbe11){const _0x278ae7=a230_0x4ace;logger['setLogPath'](process['cwd']());if(_0x4bbe11?.['help']||_0x14f420===_0x278ae7(0x123)){showHelp();return;}console[_0x278ae7(0x12f)](_0x278ae7(0x11f)+(_0x14f420||_0x278ae7(0x12e))),console['log']('\x0aAvailable\x20commands:'),console[_0x278ae7(0x12b)]('\x20\x20'+CLI_BIN_NAME+_0x278ae7(0x119)),console[_0x278ae7(0x12b)](''),console[_0x278ae7(0x12b)](_0x278ae7(0x114)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x278ae7(0x12f)](_0x278ae7(0x117),_0x278ae7(0x115)+_0x14f420),process['exit'](0x1);}function showHelp(){const _0x340ffa=a230_0x4ace;console[_0x340ffa(0x12b)](_0x340ffa(0x12c)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+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 a218_0x4207a4=a218_0x3cb5;(function(_0x4d0a3a,_0xe3cca6){const _0x472af4=a218_0x3cb5,_0x506576=_0x4d0a3a();while(!![]){try{const _0x20ad1c=-parseInt(_0x472af4(0x18c))/0x1*(-parseInt(_0x472af4(0x18d))/0x2)+-parseInt(_0x472af4(0x17b))/0x3+-parseInt(_0x472af4(0x184))/0x4+parseInt(_0x472af4(0x18e))/0x5+parseInt(_0x472af4(0x179))/0x6*(-parseInt(_0x472af4(0x190))/0x7)+-parseInt(_0x472af4(0x17a))/0x8*(-parseInt(_0x472af4(0x189))/0x9)+parseInt(_0x472af4(0x185))/0xa*(parseInt(_0x472af4(0x17d))/0xb);if(_0x20ad1c===_0xe3cca6)break;else _0x506576['push'](_0x506576['shift']());}catch(_0x1fd37d){_0x506576['push'](_0x506576['shift']());}}}(a218_0xb2b3,0xf281c));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=a218_0x4207a4(0x191);function a218_0x3cb5(_0x2e7801,_0x11a7d3){_0x2e7801=_0x2e7801-0x176;const _0xb2b3e6=a218_0xb2b3();let _0x3cb5c7=_0xb2b3e6[_0x2e7801];return _0x3cb5c7;}export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a218_0x4207a4(0x18f);function a218_0xb2b3(){const _0x1938ce=['exit\x20','log','12Mofgdf','5320dLrtpc','926100yjSEDB','Lovrabet','22PMfuyu','pipe','stdio','npx','stdout','remove','inherit','5689996sHMtxA','6743490ikPXJO','skill','unknown','stderr','3123GHyyLo','join','toString','573771NgmzCr','2Tsybdh','2893505TwnhtH','lovrabet/lovrabet-skill','25963gaDxVu','add','trim'];a218_0xb2b3=function(){return _0x1938ce;};return a218_0xb2b3();}export const DEFAULT_RABETBASE_SKILL_NAME=a218_0x4207a4(0x17c);export function buildNpxSkillsAddArgv(_0x3c9ece){const _0x3762fd=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3c9ece&&_0x3762fd['push'](NPX_SKILLS_FLAG_SKILL,_0x3c9ece),_0x3762fd;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a218_0x4207a4(0x180),...buildNpxSkillsAddArgv()][a218_0x4207a4(0x18a)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a218_0x4207a4(0x180),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a218_0x4207a4(0x18a)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x915172,_0x5de1ab){const _0x3e8f3e=a218_0x4207a4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2291ef=_0x5de1ab?.['stdio']??_0x3e8f3e(0x183),_0x5a1318=resolveNpmBin(_0x3e8f3e(0x180)),_0x1b0774=buildNpxSkillsAddArgv(_0x5de1ab?.[_0x3e8f3e(0x186)]),_0x787f44=[_0x3e8f3e(0x180),..._0x1b0774]['join']('\x20');console[_0x3e8f3e(0x178)]('*\x20'+_0x787f44);const _0xef89ce=spawnSync(_0x5a1318,_0x1b0774,{'cwd':_0x915172,'stdio':_0x2291ef,'env':process.env,'shell':![]}),_0x1e27f3=_0xef89ce['status'];if(_0x1e27f3===0x0)return{'ok':!![],'status':0x0};let _0x5e29b2='exit\x20'+(_0x1e27f3??_0x3e8f3e(0x187));if(_0x2291ef==='pipe'){const _0x460665=_0xef89ce[_0x3e8f3e(0x188)]?_0xef89ce[_0x3e8f3e(0x188)][_0x3e8f3e(0x18b)]()['trim']():'',_0x300ecb=_0xef89ce['stdout']?_0xef89ce['stdout'][_0x3e8f3e(0x18b)]()[_0x3e8f3e(0x176)]():'';if(_0x460665)_0x5e29b2=_0x460665;else{if(_0x300ecb)_0x5e29b2=_0x300ecb;}}return{'ok':![],'status':_0x1e27f3??null,'error':_0x5e29b2};}export function runNpxSkillsRemove(_0x563cdc,_0x487356,_0x4102af=LEGACY_RABETBASE_SKILL_SOURCE){const _0x186538=a218_0x4207a4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57422c=_0x487356?.[_0x186538(0x17f)]??_0x186538(0x183),_0x3a1ff8=resolveNpmBin(_0x186538(0x180)),_0x3a4439=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x186538(0x182),_0x4102af,NPX_SKILLS_FLAG_SKILL,_0x487356?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x487356?.['yes']?['-y']:[]],_0x197d42=[_0x3a1ff8,..._0x3a4439][_0x186538(0x18a)]('\x20');console['log']('*\x20'+_0x197d42);const _0x286b50=spawnSync(_0x3a1ff8,_0x3a4439,{'cwd':_0x563cdc,'stdio':_0x57422c,'env':process.env,'shell':![]}),_0x459106=_0x286b50['status'];if(_0x459106===0x0)return{'ok':!![],'status':0x0};let _0x18771b='exit\x20'+(_0x459106??_0x186538(0x187));if(_0x57422c===_0x186538(0x17e)){const _0x4f74c8=_0x286b50[_0x186538(0x188)]?_0x286b50[_0x186538(0x188)][_0x186538(0x18b)]()[_0x186538(0x176)]():'',_0xa86cb6=_0x286b50[_0x186538(0x181)]?_0x286b50[_0x186538(0x181)]['toString']()['trim']():'';if(_0x4f74c8)_0x18771b=_0x4f74c8;else{if(_0xa86cb6)_0x18771b=_0xa86cb6;}}return{'ok':![],'status':_0x459106??null,'error':_0x18771b};}export function runNpxSkillsAddGlobal(_0x19cb81,_0x4a7746,_0x139dff){const _0xb43d3b=a218_0x4207a4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x584918=_0x139dff?.['stdio']??'inherit',_0x2b3738=resolveNpmBin('npx'),_0x531353=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4a7746,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x58a9e7=[_0xb43d3b(0x180),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4a7746,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xb43d3b(0x18a)]('\x20');console[_0xb43d3b(0x178)]('*\x20'+_0x58a9e7);const _0x3f8962=spawnSync(_0x2b3738,_0x531353,{'cwd':_0x19cb81,'stdio':_0x584918,'env':process.env,'shell':![]}),_0x4ce406=_0x3f8962['status'];if(_0x4ce406===0x0)return{'ok':!![],'status':0x0};let _0x44ccec=_0xb43d3b(0x177)+(_0x4ce406??_0xb43d3b(0x187));if(_0x584918==='pipe'){const _0x393ab9=_0x3f8962[_0xb43d3b(0x188)]?_0x3f8962[_0xb43d3b(0x188)]['toString']()[_0xb43d3b(0x176)]():'',_0x1f1426=_0x3f8962['stdout']?_0x3f8962['stdout'][_0xb43d3b(0x18b)]()[_0xb43d3b(0x176)]():'';if(_0x393ab9)_0x44ccec=_0x393ab9;else{if(_0x1f1426)_0x44ccec=_0x1f1426;}}return{'ok':![],'status':_0x4ce406??null,'error':_0x44ccec};}
1
+ const a231_0x4774bf=a231_0x3b90;(function(_0x420e70,_0x1f6697){const _0x3490b1=a231_0x3b90,_0x578ae0=_0x420e70();while(!![]){try{const _0x2c846a=-parseInt(_0x3490b1(0x97))/0x1+parseInt(_0x3490b1(0xa5))/0x2+-parseInt(_0x3490b1(0x95))/0x3*(parseInt(_0x3490b1(0xaa))/0x4)+parseInt(_0x3490b1(0x91))/0x5+-parseInt(_0x3490b1(0x9c))/0x6+-parseInt(_0x3490b1(0xa2))/0x7*(parseInt(_0x3490b1(0x9b))/0x8)+-parseInt(_0x3490b1(0x92))/0x9*(-parseInt(_0x3490b1(0x94))/0xa);if(_0x2c846a===_0x1f6697)break;else _0x578ae0['push'](_0x578ae0['shift']());}catch(_0x386b74){_0x578ae0['push'](_0x578ae0['shift']());}}}(a231_0x25a0,0x40399));function a231_0x25a0(){const _0x6f8e88=['status','79540jPGccU','lovrabet/lovrabet-skill','pipe','npx','join','508225nOUGOA','2890917SUzCtp','push','40iFMBMe','39hhDqNe','skill','257107IYgeLa','skills','stderr','exit\x20','2434712ZJjUsX','2822736FFnUiZ','log','--skill','inherit','trim','stdio','7ossSQH','remove','add','333950BnMOVH','toString','unknown','stdout'];a231_0x25a0=function(){return _0x6f8e88;};return a231_0x25a0();}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a231_0x3b90(_0x357d06,_0x2fdbc3){_0x357d06=_0x357d06-0x8f;const _0x25a049=a231_0x25a0();let _0x3b9012=_0x25a049[_0x357d06];return _0x3b9012;}export const NPX_SKILLS_CLI=a231_0x4774bf(0x98);export const NPX_SKILLS_SUBCOMMAND_ADD=a231_0x4774bf(0xa4);export const NPX_SKILLS_FLAG_SKILL=a231_0x4774bf(0x9e);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a231_0x4774bf(0xab);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x46d745){const _0x58dab7=a231_0x4774bf,_0xdbd1c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x46d745&&_0xdbd1c[_0x58dab7(0x93)](NPX_SKILLS_FLAG_SKILL,_0x46d745),_0xdbd1c;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a231_0x4774bf(0x90)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a231_0x4774bf(0x8f),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a231_0x4774bf(0x90)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3e8a66,_0x48ab62){const _0x5c1a07=a231_0x4774bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44e97e=_0x48ab62?.[_0x5c1a07(0xa1)]??'inherit',_0x17d89c=resolveNpmBin(_0x5c1a07(0x8f)),_0x827ada=buildNpxSkillsAddArgv(_0x48ab62?.[_0x5c1a07(0x96)]),_0x2d5f7e=[_0x5c1a07(0x8f),..._0x827ada][_0x5c1a07(0x90)]('\x20');console[_0x5c1a07(0x9d)]('*\x20'+_0x2d5f7e);const _0x40426f=spawnSync(_0x17d89c,_0x827ada,{'cwd':_0x3e8a66,'stdio':_0x44e97e,'env':process.env,'shell':![]}),_0x48d66a=_0x40426f[_0x5c1a07(0xa9)];if(_0x48d66a===0x0)return{'ok':!![],'status':0x0};let _0x259ed8=_0x5c1a07(0x9a)+(_0x48d66a??_0x5c1a07(0xa7));if(_0x44e97e===_0x5c1a07(0xac)){const _0x424f45=_0x40426f[_0x5c1a07(0x99)]?_0x40426f['stderr'][_0x5c1a07(0xa6)]()[_0x5c1a07(0xa0)]():'',_0x2ebe63=_0x40426f['stdout']?_0x40426f[_0x5c1a07(0xa8)][_0x5c1a07(0xa6)]()['trim']():'';if(_0x424f45)_0x259ed8=_0x424f45;else{if(_0x2ebe63)_0x259ed8=_0x2ebe63;}}return{'ok':![],'status':_0x48d66a??null,'error':_0x259ed8};}export function runNpxSkillsRemove(_0x241c7e,_0xbd7665,_0x42aa7a=LEGACY_RABETBASE_SKILL_SOURCE){const _0x37ef7e=a231_0x4774bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x305b07=_0xbd7665?.[_0x37ef7e(0xa1)]??_0x37ef7e(0x9f),_0x1367b8=resolveNpmBin(_0x37ef7e(0x8f)),_0x1993f3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x37ef7e(0xa3),_0x42aa7a,NPX_SKILLS_FLAG_SKILL,_0xbd7665?.[_0x37ef7e(0x96)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xbd7665?.['yes']?['-y']:[]],_0x460976=[_0x1367b8,..._0x1993f3][_0x37ef7e(0x90)]('\x20');console[_0x37ef7e(0x9d)]('*\x20'+_0x460976);const _0x11d9ae=spawnSync(_0x1367b8,_0x1993f3,{'cwd':_0x241c7e,'stdio':_0x305b07,'env':process.env,'shell':![]}),_0x27f4fa=_0x11d9ae['status'];if(_0x27f4fa===0x0)return{'ok':!![],'status':0x0};let _0x2b5278=_0x37ef7e(0x9a)+(_0x27f4fa??_0x37ef7e(0xa7));if(_0x305b07===_0x37ef7e(0xac)){const _0x38fd81=_0x11d9ae[_0x37ef7e(0x99)]?_0x11d9ae[_0x37ef7e(0x99)][_0x37ef7e(0xa6)]()[_0x37ef7e(0xa0)]():'',_0x569bb3=_0x11d9ae[_0x37ef7e(0xa8)]?_0x11d9ae[_0x37ef7e(0xa8)]['toString']()[_0x37ef7e(0xa0)]():'';if(_0x38fd81)_0x2b5278=_0x38fd81;else{if(_0x569bb3)_0x2b5278=_0x569bb3;}}return{'ok':![],'status':_0x27f4fa??null,'error':_0x2b5278};}export function runNpxSkillsAddGlobal(_0x1bc429,_0x35aaea,_0x336c3e){const _0x506cff=a231_0x4774bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5ab9d3=_0x336c3e?.[_0x506cff(0xa1)]??_0x506cff(0x9f),_0x2cbe1b=resolveNpmBin(_0x506cff(0x8f)),_0x5409d8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x35aaea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x379b4b=[_0x506cff(0x8f),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x35aaea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x506cff(0x90)]('\x20');console[_0x506cff(0x9d)]('*\x20'+_0x379b4b);const _0x527e9c=spawnSync(_0x2cbe1b,_0x5409d8,{'cwd':_0x1bc429,'stdio':_0x5ab9d3,'env':process.env,'shell':![]}),_0x3e3e27=_0x527e9c[_0x506cff(0xa9)];if(_0x3e3e27===0x0)return{'ok':!![],'status':0x0};let _0x189b5e='exit\x20'+(_0x3e3e27??_0x506cff(0xa7));if(_0x5ab9d3===_0x506cff(0xac)){const _0x3425b6=_0x527e9c[_0x506cff(0x99)]?_0x527e9c[_0x506cff(0x99)][_0x506cff(0xa6)]()[_0x506cff(0xa0)]():'',_0xe8e7b8=_0x527e9c['stdout']?_0x527e9c[_0x506cff(0xa8)][_0x506cff(0xa6)]()[_0x506cff(0xa0)]():'';if(_0x3425b6)_0x189b5e=_0x3425b6;else{if(_0xe8e7b8)_0x189b5e=_0xe8e7b8;}}return{'ok':![],'status':_0x3e3e27??null,'error':_0x189b5e};}
@@ -1 +1 @@
1
- (function(_0x2905a8,_0x39be9a){const _0x5bb9c9=a219_0x423b,_0x90e38c=_0x2905a8();while(!![]){try{const _0x19264a=-parseInt(_0x5bb9c9(0x110))/0x1*(-parseInt(_0x5bb9c9(0x11b))/0x2)+parseInt(_0x5bb9c9(0x11c))/0x3+parseInt(_0x5bb9c9(0x10f))/0x4+parseInt(_0x5bb9c9(0x10e))/0x5+parseInt(_0x5bb9c9(0x120))/0x6+-parseInt(_0x5bb9c9(0x114))/0x7*(parseInt(_0x5bb9c9(0x11a))/0x8)+-parseInt(_0x5bb9c9(0x11d))/0x9;if(_0x19264a===_0x39be9a)break;else _0x90e38c['push'](_0x90e38c['shift']());}catch(_0x4ab7cd){_0x90e38c['push'](_0x90e38c['shift']());}}}(a219_0x1add,0x356d5));function a219_0x423b(_0x40a2c2,_0x45edb1){_0x40a2c2=_0x40a2c2-0x10d;const _0x1addc7=a219_0x1add();let _0x423b1c=_0x1addc7[_0x40a2c2];return _0x423b1c;}function a219_0x1add(){const _0x58ab0a=['[REDACTED]','service','stringify','error','53008JJjSrJ','2hDceUL','208482xOLBkR','2766924sFhOqc','message','some','275652rdSHgX','flags','durationMs','2171135UtmItu','845512Gdapzo','3768IBZAzh','entries','rabetbase.command','command','252gmHLjn','test'];a219_0x1add=function(){return _0x58ab0a;};return a219_0x1add();}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(_0x44f915){const _0x34a1fc=a219_0x423b;return SENSITIVE_PATTERNS[_0x34a1fc(0x11f)](_0x1acd05=>_0x1acd05[_0x34a1fc(0x115)](_0x44f915));}function sanitizeFlags(_0xb714e0){const _0x5d7273=a219_0x423b,_0xd35b87={};for(const [_0x1ab723,_0x3e588f]of Object[_0x5d7273(0x111)](_0xb714e0)){isSensitiveKey(_0x1ab723)?_0xd35b87[_0x1ab723]=_0x3e588f!=null&&_0x3e588f!==''?_0x5d7273(0x116):_0x3e588f:_0xd35b87[_0x1ab723]=_0x3e588f;}return _0xd35b87;}export async function reportCommandTrace(_0x2ab2d1){const _0x2e3dcd=a219_0x423b;try{const _0x177886=sanitizeFlags(_0x2ab2d1[_0x2e3dcd(0x121)]);await sendCliTraceLog({'spanName':_0x2e3dcd(0x112),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2ab2d1[_0x2e3dcd(0x117)],'command.name':_0x2ab2d1[_0x2e3dcd(0x113)],'command.flags':JSON[_0x2e3dcd(0x118)](_0x177886),..._0x2ab2d1[_0x2e3dcd(0x10d)]!=null?{'command.duration_ms':_0x2ab2d1[_0x2e3dcd(0x10d)]}:{},..._0x2ab2d1['error']?{'command.error':_0x2ab2d1[_0x2e3dcd(0x119)]instanceof Error?_0x2ab2d1[_0x2e3dcd(0x119)][_0x2e3dcd(0x11e)]:String(_0x2ab2d1[_0x2e3dcd(0x119)])}:{}}});}catch{}}
1
+ (function(_0x1f57a3,_0x3aedfe){const _0x256d54=a232_0x6b6d,_0x42c601=_0x1f57a3();while(!![]){try{const _0x155c6e=-parseInt(_0x256d54(0x164))/0x1*(parseInt(_0x256d54(0x163))/0x2)+-parseInt(_0x256d54(0x166))/0x3+-parseInt(_0x256d54(0x168))/0x4+-parseInt(_0x256d54(0x175))/0x5*(parseInt(_0x256d54(0x16e))/0x6)+parseInt(_0x256d54(0x16f))/0x7*(parseInt(_0x256d54(0x169))/0x8)+parseInt(_0x256d54(0x162))/0x9+parseInt(_0x256d54(0x165))/0xa;if(_0x155c6e===_0x3aedfe)break;else _0x42c601['push'](_0x42c601['shift']());}catch(_0x464cc8){_0x42c601['push'](_0x42c601['shift']());}}}(a232_0x40f0,0x871fc));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(_0x36edc2){const _0x130da8=a232_0x6b6d;return SENSITIVE_PATTERNS[_0x130da8(0x172)](_0x286b4e=>_0x286b4e[_0x130da8(0x173)](_0x36edc2));}function a232_0x40f0(){const _0x1a6de0=['stringify','[REDACTED]','message','durationMs','34458gBwpJE','21413uvmOMS','error','flags','some','test','command','465RxpVhe','3408615SLWAZq','50786CXVfIg','25gPaVmV','18061340dKPJeD','1692609OSAWvo','entries','3777808RQxbuz','2736KwnxRs'];a232_0x40f0=function(){return _0x1a6de0;};return a232_0x40f0();}function sanitizeFlags(_0x4142e4){const _0x33ed2e=a232_0x6b6d,_0x3f39e4={};for(const [_0x556204,_0x1a493e]of Object[_0x33ed2e(0x167)](_0x4142e4)){isSensitiveKey(_0x556204)?_0x3f39e4[_0x556204]=_0x1a493e!=null&&_0x1a493e!==''?_0x33ed2e(0x16b):_0x1a493e:_0x3f39e4[_0x556204]=_0x1a493e;}return _0x3f39e4;}function a232_0x6b6d(_0x323c6a,_0x4fe6f5){_0x323c6a=_0x323c6a-0x162;const _0x40f0d1=a232_0x40f0();let _0x6b6de6=_0x40f0d1[_0x323c6a];return _0x6b6de6;}export async function reportCommandTrace(_0xc2c78){const _0x568ffe=a232_0x6b6d;try{const _0x598d86=sanitizeFlags(_0xc2c78[_0x568ffe(0x171)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0xc2c78['service'],'command.name':_0xc2c78[_0x568ffe(0x174)],'command.flags':JSON[_0x568ffe(0x16a)](_0x598d86),..._0xc2c78['durationMs']!=null?{'command.duration_ms':_0xc2c78[_0x568ffe(0x16d)]}:{},..._0xc2c78[_0x568ffe(0x170)]?{'command.error':_0xc2c78[_0x568ffe(0x170)]instanceof Error?_0xc2c78[_0x568ffe(0x170)][_0x568ffe(0x16c)]:String(_0xc2c78[_0x568ffe(0x170)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x41bb26,_0x530017){var _0x19d418=a220_0x48c6,_0x3a8050=_0x41bb26();while(!![]){try{var _0x5c5fd3=-parseInt(_0x19d418(0xeb))/0x1*(parseInt(_0x19d418(0xea))/0x2)+parseInt(_0x19d418(0xe8))/0x3+parseInt(_0x19d418(0xe2))/0x4+-parseInt(_0x19d418(0xe6))/0x5+-parseInt(_0x19d418(0xe7))/0x6+parseInt(_0x19d418(0xe4))/0x7+parseInt(_0x19d418(0xe9))/0x8*(parseInt(_0x19d418(0xe3))/0x9);if(_0x5c5fd3===_0x530017)break;else _0x3a8050['push'](_0x3a8050['shift']());}catch(_0x40419f){_0x3a8050['push'](_0x3a8050['shift']());}}}(a220_0x3cb8,0x37d76));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a220_0x48c6(_0x27614f,_0x4e0ef0){_0x27614f=_0x27614f-0xe1;var _0x3cb8b8=a220_0x3cb8();var _0x48c6b2=_0x3cb8b8[_0x27614f];return _0x48c6b2;}function a220_0x3cb8(){var _0x15f0b8=['1573164ziEQvZ','793506coIShc','8uUaFmk','2YJjASB','385401SyZGlO','cli.help','945340gnwUFx','1491417kkLwHo','1847741lTxrEB','service','270960pWIlva'];a220_0x3cb8=function(){return _0x15f0b8;};return a220_0x3cb8();}export async function reportCliHelpTrace(_0x1bf9a7,_0x76c072){var _0x202d88=a220_0x48c6;try{await sendCliTraceLog({'spanName':_0x202d88(0xe1),'logData':{'rabetbase.help.kind':_0x1bf9a7,..._0x76c072?.[_0x202d88(0xe5)]&&{'rabetbase.help.service':_0x76c072['service']}}});}catch(_0xc002d7){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0xc002d7);}}
1
+ (function(_0x39be00,_0x4b3cb4){var _0x12868d=a233_0x14d5,_0x46211e=_0x39be00();while(!![]){try{var _0x50151a=parseInt(_0x12868d(0x1a4))/0x1*(-parseInt(_0x12868d(0x19f))/0x2)+-parseInt(_0x12868d(0x19e))/0x3+-parseInt(_0x12868d(0x1a9))/0x4*(-parseInt(_0x12868d(0x1a8))/0x5)+-parseInt(_0x12868d(0x1a1))/0x6*(-parseInt(_0x12868d(0x1a0))/0x7)+-parseInt(_0x12868d(0x1aa))/0x8+-parseInt(_0x12868d(0x1ab))/0x9*(-parseInt(_0x12868d(0x1a6))/0xa)+parseInt(_0x12868d(0x1a2))/0xb;if(_0x50151a===_0x4b3cb4)break;else _0x46211e['push'](_0x46211e['shift']());}catch(_0x168059){_0x46211e['push'](_0x46211e['shift']());}}}(a233_0x4196,0x7dcab));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x11b074,_0x2bb55b){var _0x3af709=a233_0x14d5;try{await sendCliTraceLog({'spanName':_0x3af709(0x1a3),'logData':{'rabetbase.help.kind':_0x11b074,..._0x2bb55b?.[_0x3af709(0x1a5)]&&{'rabetbase.help.service':_0x2bb55b[_0x3af709(0x1a5)]}}});}catch(_0x3b4235){console[_0x3af709(0x1a7)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3b4235);}}function a233_0x14d5(_0x58ea72,_0x2a5626){_0x58ea72=_0x58ea72-0x19e;var _0x4196af=a233_0x4196();var _0x14d51b=_0x4196af[_0x58ea72];return _0x14d51b;}function a233_0x4196(){var _0xe12468=['180BUfhQp','1553034XuKlha','230yfvJLH','5831pYbnVJ','6942cmocwe','3948593gHkAaX','cli.help','6802ozXeJP','service','1570ueBrcq','error','5YmanmJ','3670764Tqjcwy','3427392mtaHlk'];a233_0x4196=function(){return _0xe12468;};return a233_0x4196();}
@@ -1 +1 @@
1
- (function(_0x32cca0,_0x5b9423){const _0x2899bb=a221_0x8b9d,_0x3ec867=_0x32cca0();while(!![]){try{const _0x3217da=-parseInt(_0x2899bb(0x189))/0x1+-parseInt(_0x2899bb(0x18d))/0x2+-parseInt(_0x2899bb(0x184))/0x3*(-parseInt(_0x2899bb(0x18b))/0x4)+-parseInt(_0x2899bb(0x187))/0x5+-parseInt(_0x2899bb(0x185))/0x6+-parseInt(_0x2899bb(0x186))/0x7+parseInt(_0x2899bb(0x183))/0x8;if(_0x3217da===_0x5b9423)break;else _0x3ec867['push'](_0x3ec867['shift']());}catch(_0x112d01){_0x3ec867['push'](_0x3ec867['shift']());}}}(a221_0x5b11,0x2d3f4));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a221_0x8b9d(_0x2e0ec6,_0x292ba8){_0x2e0ec6=_0x2e0ec6-0x182;const _0x5b112d=a221_0x5b11();let _0x8b9d7f=_0x5b112d[_0x2e0ec6];return _0x8b9d7f;}function a221_0x5b11(){const _0x4c9d9d=['daily','579490coogwx','user','6431800lbVaTT','129EzIYLe','1256454DWZtAb','61047bfisGf','1282675zmKuQR','unknown','209843fjzEdL','username','33080McRoia'];a221_0x5b11=function(){return _0x4c9d9d;};return a221_0x5b11();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x35b45c=a221_0x8b9d,_0x4fa2bf=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x25200c=_0x4fa2bf?.[_0x35b45c(0x182)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x35b45c(0x188)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x35b45c(0x18c):'production')}),setUserContext({'id':_0x25200c?.['id'],'username':_0x25200c?.[_0x35b45c(0x18a)],'nickname':_0x25200c?.['nickname'],'email':_0x25200c?.['email'],'tenantCode':_0x25200c?.['tenant']['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4fa2bf;}
1
+ (function(_0x1b6cef,_0x1f6a8c){const _0x52927d=a234_0x316e,_0x13e0af=_0x1b6cef();while(!![]){try{const _0x2a97ff=-parseInt(_0x52927d(0xe3))/0x1+parseInt(_0x52927d(0xeb))/0x2*(-parseInt(_0x52927d(0xe5))/0x3)+parseInt(_0x52927d(0xe4))/0x4*(-parseInt(_0x52927d(0xe2))/0x5)+parseInt(_0x52927d(0xe7))/0x6*(-parseInt(_0x52927d(0xf0))/0x7)+-parseInt(_0x52927d(0xe1))/0x8*(-parseInt(_0x52927d(0xf1))/0x9)+-parseInt(_0x52927d(0xe8))/0xa+parseInt(_0x52927d(0xef))/0xb;if(_0x2a97ff===_0x1f6a8c)break;else _0x13e0af['push'](_0x13e0af['shift']());}catch(_0xb24650){_0x13e0af['push'](_0x13e0af['shift']());}}}(a234_0x4cec,0x430c4));function a234_0x4cec(){const _0x5c3c4c=['tenant_code','2qQxbBo','tenant','daily','email','8231641IaKInT','676501bhCWsk','688599NTQyJA','nickname','56cSFCjs','5hvXDuh','12030XfGDXW','1802744HmYjcS','442626WAOYFF','unknown','24sQjnCs','124500BEoOBa','user'];a234_0x4cec=function(){return _0x5c3c4c;};return a234_0x4cec();}function a234_0x316e(_0x3f1421,_0x5c4718){_0x3f1421=_0x3f1421-0xe1;const _0x4cecc1=a234_0x4cec();let _0x316e4e=_0x4cecc1[_0x3f1421];return _0x316e4e;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x4172de=a234_0x316e,_0xf0ed01=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3b5342=_0xf0ed01?.[_0x4172de(0xe9)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x4172de(0xe6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4172de(0xed):'production')}),setUserContext({'id':_0x3b5342?.['id'],'username':_0x3b5342?.['username'],'nickname':_0x3b5342?.[_0x4172de(0xf2)],'email':_0x3b5342?.[_0x4172de(0xee)],'tenantCode':_0x3b5342?.[_0x4172de(0xec)][_0x4172de(0xea)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xf0ed01;}
@@ -1 +1 @@
1
- (function(_0x2ee0b5,_0x3fbf06){const _0x3c8448=a222_0xbb7e,_0x51c3b4=_0x2ee0b5();while(!![]){try{const _0x31bb2f=-parseInt(_0x3c8448(0x115))/0x1+-parseInt(_0x3c8448(0x117))/0x2+-parseInt(_0x3c8448(0x114))/0x3*(parseInt(_0x3c8448(0x11b))/0x4)+-parseInt(_0x3c8448(0x11c))/0x5*(-parseInt(_0x3c8448(0x120))/0x6)+parseInt(_0x3c8448(0x11f))/0x7*(-parseInt(_0x3c8448(0x121))/0x8)+parseInt(_0x3c8448(0x11e))/0x9+parseInt(_0x3c8448(0x119))/0xa*(parseInt(_0x3c8448(0x113))/0xb);if(_0x31bb2f===_0x3fbf06)break;else _0x51c3b4['push'](_0x51c3b4['shift']());}catch(_0xab3c65){_0x51c3b4['push'](_0x51c3b4['shift']());}}}(a222_0x59b9,0x390c1));function a222_0xbb7e(_0x34f6fb,_0x2835bf){_0x34f6fb=_0x34f6fb-0x113;const _0x59b9a5=a222_0x59b9();let _0xbb7e67=_0x59b9a5[_0x34f6fb];return _0xbb7e67;}function a222_0x59b9(){const _0x35fc0b=['4460090AnDDKY','SIGINT','16RMoawW','35vSskBn','once','2845710gEHpeF','28aJqrpF','324654eisugB','500936QRpPhp','11nhzgOf','169083fOqLZi','36169ZfJEzM','then','790432bXKMQf','exit'];a222_0x59b9=function(){return _0x35fc0b;};return a222_0x59b9();}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 _0x11c2f4=a222_0xbb7e;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x5c2720=()=>{const _0xd238be=a222_0xbb7e;void flushOtelNodeIfUsed()[_0xd238be(0x116)](()=>process[_0xd238be(0x118)](0x0));};process['once'](_0x11c2f4(0x11a),_0x5c2720),process[_0x11c2f4(0x11d)]('SIGTERM',_0x5c2720);}export async function exitWithOtelShutdown(_0x41562b){const _0x53a53f=a222_0xbb7e;await flushOtelNodeIfUsed(),process[_0x53a53f(0x118)](_0x41562b);}
1
+ (function(_0x13d3a2,_0x135edd){const _0x4054ad=a235_0x251a,_0x54bb5f=_0x13d3a2();while(!![]){try{const _0x2027b2=parseInt(_0x4054ad(0x1ea))/0x1*(parseInt(_0x4054ad(0x1ee))/0x2)+-parseInt(_0x4054ad(0x1ef))/0x3+parseInt(_0x4054ad(0x1e9))/0x4*(parseInt(_0x4054ad(0x1eb))/0x5)+parseInt(_0x4054ad(0x1ed))/0x6*(parseInt(_0x4054ad(0x1e4))/0x7)+parseInt(_0x4054ad(0x1e0))/0x8*(-parseInt(_0x4054ad(0x1e1))/0x9)+parseInt(_0x4054ad(0x1ec))/0xa*(parseInt(_0x4054ad(0x1e7))/0xb)+-parseInt(_0x4054ad(0x1f1))/0xc*(parseInt(_0x4054ad(0x1e5))/0xd);if(_0x2027b2===_0x135edd)break;else _0x54bb5f['push'](_0x54bb5f['shift']());}catch(_0x14cb6e){_0x54bb5f['push'](_0x54bb5f['shift']());}}}(a235_0xba3e,0x5bc29));import{shutdownTraces}from'@lovrabet/otel-logger';function a235_0x251a(_0x3b6057,_0x39abef){_0x3b6057=_0x3b6057-0x1e0;const _0xba3e74=a235_0xba3e();let _0x251a62=_0xba3e74[_0x3b6057];return _0x251a62;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1af884=a235_0x251a;process[_0x1af884(0x1e3)](_0x1af884(0x1e6),()=>{void flushOtelNodeIfUsed();});const _0x11bce5=()=>{const _0x443847=_0x1af884;void flushOtelNodeIfUsed()[_0x443847(0x1e2)](()=>process['exit'](0x0));};process[_0x1af884(0x1e3)](_0x1af884(0x1e8),_0x11bce5),process[_0x1af884(0x1e3)]('SIGTERM',_0x11bce5);}function a235_0xba3e(){const _0xb01847=['26iPPFIW','beforeExit','1481898tuBLoJ','SIGINT','4OYUJcj','280726BZRVEa','2224560KXuFXb','50WafjSi','227082tjlpDU','4tQspIP','1802715yviZpG','exit','5103012txRhOc','335464PiGLSa','9GVxWSj','then','once','35EMgDWg'];a235_0xba3e=function(){return _0xb01847;};return a235_0xba3e();}export async function exitWithOtelShutdown(_0x1562df){const _0x1e8e02=a235_0x251a;await flushOtelNodeIfUsed(),process[_0x1e8e02(0x1f0)](_0x1562df);}
@@ -1 +1 @@
1
- const a223_0x211f09=a223_0x520a;function a223_0x3373(){const _0x9912c4=['14225ZVdgCU','298669cTsyTI','582078XSJICb','spanName','378822vYmcBi','traceparent','traceName','36IHGXLG','version','5584995uEmbLt','1373673FIKxnf','8lCoacf','rabetbase-cli','24948IXLQjZ'];a223_0x3373=function(){return _0x9912c4;};return a223_0x3373();}function a223_0x520a(_0x3cd413,_0x175192){_0x3cd413=_0x3cd413-0x103;const _0x3373bc=a223_0x3373();let _0x520aa6=_0x3373bc[_0x3cd413];return _0x520aa6;}(function(_0x59fd90,_0x133e94){const _0x2728c8=a223_0x520a,_0x239f12=_0x59fd90();while(!![]){try{const _0x414dd9=-parseInt(_0x2728c8(0x105))/0x1+-parseInt(_0x2728c8(0x103))/0x2+parseInt(_0x2728c8(0x106))/0x3+parseInt(_0x2728c8(0x10b))/0x4*(-parseInt(_0x2728c8(0x104))/0x5)+-parseInt(_0x2728c8(0x108))/0x6+-parseInt(_0x2728c8(0x10e))/0x7*(parseInt(_0x2728c8(0x10f))/0x8)+parseInt(_0x2728c8(0x10d))/0x9;if(_0x414dd9===_0x133e94)break;else _0x239f12['push'](_0x239f12['shift']());}catch(_0x25598a){_0x239f12['push'](_0x239f12['shift']());}}}(a223_0x3373,0x35559));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a223_0x211f09(0x110);export async function sendCliTraceLog(_0x1b7e38){const _0x27dace=a223_0x211f09;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1b7e38[_0x27dace(0x10a)]??DEFAULT_TRACE_NAME,'version':_0x1b7e38[_0x27dace(0x10c)]??getCliVersion(),'spanName':_0x1b7e38[_0x27dace(0x107)],'eventType':'manual','logData':_0x1b7e38['logData'],..._0x1b7e38[_0x27dace(0x109)]&&{'traceparent':_0x1b7e38[_0x27dace(0x109)]}});}
1
+ function a236_0x1d39(){const _0x5aaeaa=['10110555bmnnfb','traceparent','3922701XIhNKn','5501696LJRfWx','version','24279670zqWbcL','297588RwgMpy','15272mZWVci','110vrcXzT','11JLgkBv','traceName','manual','909758jmDHQR','spanName','5481SQDmIg','1OhRCOm'];a236_0x1d39=function(){return _0x5aaeaa;};return a236_0x1d39();}(function(_0x5046cb,_0x114f1b){const _0x622ebf=a236_0x210b,_0x27de5a=_0x5046cb();while(!![]){try{const _0x312c4a=-parseInt(_0x622ebf(0xf2))/0x1*(parseInt(_0x622ebf(0xef))/0x2)+-parseInt(_0x622ebf(0xe5))/0x3+parseInt(_0x622ebf(0xe6))/0x4+parseInt(_0x622ebf(0xeb))/0x5*(parseInt(_0x622ebf(0xe9))/0x6)+parseInt(_0x622ebf(0xf1))/0x7*(parseInt(_0x622ebf(0xea))/0x8)+parseInt(_0x622ebf(0xf3))/0x9+-parseInt(_0x622ebf(0xe8))/0xa*(parseInt(_0x622ebf(0xec))/0xb);if(_0x312c4a===_0x114f1b)break;else _0x27de5a['push'](_0x27de5a['shift']());}catch(_0x7b321a){_0x27de5a['push'](_0x27de5a['shift']());}}}(a236_0x1d39,0xda565));function a236_0x210b(_0x723278,_0x1c542b){_0x723278=_0x723278-0xe5;const _0x1d3943=a236_0x1d39();let _0x210b7a=_0x1d3943[_0x723278];return _0x210b7a;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x391653){const _0xcc9724=a236_0x210b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x391653[_0xcc9724(0xed)]??DEFAULT_TRACE_NAME,'version':_0x391653[_0xcc9724(0xe7)]??getCliVersion(),'spanName':_0x391653[_0xcc9724(0xf0)],'eventType':_0xcc9724(0xee),'logData':_0x391653['logData'],..._0x391653[_0xcc9724(0xf4)]&&{'traceparent':_0x391653[_0xcc9724(0xf4)]}});}
@@ -1 +1 @@
1
- const a224_0x91d24f=a224_0x4128;(function(_0x23b31b,_0x5624e4){const _0x1a7825=a224_0x4128,_0x3fc1fb=_0x23b31b();while(!![]){try{const _0x476db4=-parseInt(_0x1a7825(0x1ab))/0x1+parseInt(_0x1a7825(0x1a3))/0x2*(parseInt(_0x1a7825(0x1a1))/0x3)+parseInt(_0x1a7825(0x19d))/0x4+parseInt(_0x1a7825(0x19e))/0x5*(parseInt(_0x1a7825(0x1aa))/0x6)+parseInt(_0x1a7825(0x1a7))/0x7+parseInt(_0x1a7825(0x19c))/0x8+parseInt(_0x1a7825(0x1a4))/0x9*(-parseInt(_0x1a7825(0x1a6))/0xa);if(_0x476db4===_0x5624e4)break;else _0x3fc1fb['push'](_0x3fc1fb['shift']());}catch(_0x1110d5){_0x3fc1fb['push'](_0x3fc1fb['shift']());}}}(a224_0x5ec9,0xb24cb));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a224_0x91d24f(0x1ac);export const PLATFORM_ISSUE_SPAN_NAME=a224_0x91d24f(0x1a8);function a224_0x4128(_0x3a3f75,_0x20f8e9){_0x3a3f75=_0x3a3f75-0x19c;const _0x5ec9a3=a224_0x5ec9();let _0x41280a=_0x5ec9a3[_0x3a3f75];return _0x41280a;}export async function sendPlatformIssueCollectLog(_0x5bec75){const _0x384c6b=a224_0x91d24f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5bec75['title'],'issue.description':_0x5bec75['description'],..._0x5bec75[_0x384c6b(0x1a5)]?{'issue.description_original_bytes':_0x5bec75[_0x384c6b(0x1a5)][_0x384c6b(0x19f)],'issue.description_truncated':_0x5bec75[_0x384c6b(0x1a5)][_0x384c6b(0x1a0)],'issue.description_redactions':_0x5bec75['sanitize'][_0x384c6b(0x1a2)],'issue.description_redaction_kinds':_0x5bec75[_0x384c6b(0x1a5)][_0x384c6b(0x1ad)][_0x384c6b(0x1a9)](',')}:{}}});}function a224_0x5ec9(){const _0x12e41c=['28790030QrcrTn','9351265DAFouP','issue.log.collect','join','402UOommW','822943gtOwDh','platform-issue-log-collect','redactionKinds','8794600pxEOHn','1658820cmAOhI','105295FhmiIP','originalBytes','truncated','514149ajTWdO','redactionCount','2fUFzdj','9WdKGUE','sanitize'];a224_0x5ec9=function(){return _0x12e41c;};return a224_0x5ec9();}
1
+ const a237_0x3f9690=a237_0x34ca;(function(_0x187a96,_0x42b90a){const _0x367591=a237_0x34ca,_0x1eb295=_0x187a96();while(!![]){try{const _0xa43102=parseInt(_0x367591(0x166))/0x1+parseInt(_0x367591(0x16c))/0x2*(-parseInt(_0x367591(0x16e))/0x3)+parseInt(_0x367591(0x15b))/0x4*(parseInt(_0x367591(0x16b))/0x5)+parseInt(_0x367591(0x16a))/0x6*(-parseInt(_0x367591(0x164))/0x7)+-parseInt(_0x367591(0x162))/0x8+parseInt(_0x367591(0x165))/0x9*(parseInt(_0x367591(0x161))/0xa)+-parseInt(_0x367591(0x169))/0xb*(-parseInt(_0x367591(0x168))/0xc);if(_0xa43102===_0x42b90a)break;else _0x1eb295['push'](_0x1eb295['shift']());}catch(_0x1c1326){_0x1eb295['push'](_0x1eb295['shift']());}}}(a237_0x5a9d,0xd0c18));function a237_0x5a9d(){const _0x268b18=['description','36KICjSy','issue.log.collect','platform-issue-log-collect','redactionCount','originalBytes','title','49030lwAqhm','12442776PMLtuS','sanitize','77DYOCRn','1899bLwSkK','1149730DMdeex','join','10545900ntkOXO','11uGoKgx','273042VEohIN','99215YLdKLk','6UyjbqP','redactionKinds','330687yjosfN'];a237_0x5a9d=function(){return _0x268b18;};return a237_0x5a9d();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a237_0x34ca(_0x347231,_0x1f694b){_0x347231=_0x347231-0x15b;const _0x5a9dda=a237_0x5a9d();let _0x34ca83=_0x5a9dda[_0x347231];return _0x34ca83;}export const PLATFORM_ISSUE_TRACE_NAME=a237_0x3f9690(0x15d);export const PLATFORM_ISSUE_SPAN_NAME=a237_0x3f9690(0x15c);export async function sendPlatformIssueCollectLog(_0x2f2fc5){const _0x46e5ae=a237_0x3f9690;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2f2fc5[_0x46e5ae(0x160)],'issue.description':_0x2f2fc5[_0x46e5ae(0x16f)],..._0x2f2fc5[_0x46e5ae(0x163)]?{'issue.description_original_bytes':_0x2f2fc5[_0x46e5ae(0x163)][_0x46e5ae(0x15f)],'issue.description_truncated':_0x2f2fc5[_0x46e5ae(0x163)]['truncated'],'issue.description_redactions':_0x2f2fc5[_0x46e5ae(0x163)][_0x46e5ae(0x15e)],'issue.description_redaction_kinds':_0x2f2fc5['sanitize'][_0x46e5ae(0x16d)][_0x46e5ae(0x167)](',')}:{}}});}
@@ -1 +1 @@
1
- const a226_0x3be0e2=a226_0x1991;(function(_0x31e64f,_0x1b5c33){const _0x3e02ff=a226_0x1991,_0x18546c=_0x31e64f();while(!![]){try{const _0x3e8cc5=-parseInt(_0x3e02ff(0xed))/0x1+-parseInt(_0x3e02ff(0xf1))/0x2+-parseInt(_0x3e02ff(0xe8))/0x3+parseInt(_0x3e02ff(0xf7))/0x4*(-parseInt(_0x3e02ff(0x10f))/0x5)+-parseInt(_0x3e02ff(0x104))/0x6+-parseInt(_0x3e02ff(0xe9))/0x7+parseInt(_0x3e02ff(0x115))/0x8;if(_0x3e8cc5===_0x1b5c33)break;else _0x18546c['push'](_0x18546c['shift']());}catch(_0x380ad8){_0x18546c['push'](_0x18546c['shift']());}}}(a226_0x1c89,0x55d13));export const CORE_IDE_CONFIGS={'cursor':{'name':a226_0x3be0e2(0xf6),'description':'Cursor\x20IDE','folders':[a226_0x3be0e2(0xfa),'.cursor'],'files':[{'type':a226_0x3be0e2(0x10b),'path':a226_0x3be0e2(0xec),'template':a226_0x3be0e2(0x10a)}]},'windsurf':{'name':a226_0x3be0e2(0xfb),'description':a226_0x3be0e2(0xf3),'folders':['.windsurf'],'files':[{'type':a226_0x3be0e2(0x10b),'path':a226_0x3be0e2(0x113),'template':a226_0x3be0e2(0x10a)}]},'claude':{'name':a226_0x3be0e2(0x109),'description':a226_0x3be0e2(0x109),'folders':['.claude'],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a226_0x3be0e2(0x10a)}]},'cline':{'name':a226_0x3be0e2(0x118),'description':a226_0x3be0e2(0xfd),'folders':[a226_0x3be0e2(0x11a)],'files':[{'type':a226_0x3be0e2(0x10b),'path':a226_0x3be0e2(0xf2),'template':'SKILL.md.tpl'}]},'codex':{'name':'Codex','description':a226_0x3be0e2(0x102),'folders':['.codex'],'files':[{'type':'file','path':a226_0x3be0e2(0x11b),'template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':a226_0x3be0e2(0x119),'folders':[a226_0x3be0e2(0xee)],'files':[{'type':'file','path':a226_0x3be0e2(0xfe),'template':'SKILL.md.tpl'}]},'qoder':{'name':'Qoder','description':a226_0x3be0e2(0x101),'folders':[a226_0x3be0e2(0xff)],'files':[{'type':a226_0x3be0e2(0x10b),'path':a226_0x3be0e2(0x10e),'template':a226_0x3be0e2(0x10a)},{'type':'file','path':a226_0x3be0e2(0xea),'template':a226_0x3be0e2(0x10a)}]},'codebuddy':{'name':a226_0x3be0e2(0x108),'description':a226_0x3be0e2(0x111),'folders':[a226_0x3be0e2(0x10d)],'files':[{'type':'file','path':a226_0x3be0e2(0xf4),'template':a226_0x3be0e2(0x10a)}]},'trae':{'name':a226_0x3be0e2(0x112),'description':a226_0x3be0e2(0xf9),'folders':[a226_0x3be0e2(0x11d)],'files':[{'type':a226_0x3be0e2(0x10b),'path':a226_0x3be0e2(0x10c),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a226_0x3be0e2(0x114),'description':a226_0x3be0e2(0x116),'folders':[a226_0x3be0e2(0x11c)],'files':[{'type':'file','path':a226_0x3be0e2(0x100),'template':a226_0x3be0e2(0x10a)}]},'antigravity':{'name':'Antigravity','description':a226_0x3be0e2(0x106),'folders':[a226_0x3be0e2(0x11c)],'files':[{'type':a226_0x3be0e2(0x10b),'path':a226_0x3be0e2(0x100),'template':'SKILL.md.tpl'}]}};function a226_0x1c89(){const _0x5a1ec3=['Claude\x20Code','SKILL.md.tpl','file','.trae/skills/lovrabet/SKILL.md','.codebuddy','.qoder/rules/rabetbase.md','5SrhEOJ','codex','CodeBuddy\x20IDE','Trae','.windsurf/workflows/rabetbase.md','其他\x20(通用模板)','13972376VFSrur','通用模板\x20-\x20兜底方案','claude','Cline','OpenCode\x20IDE','.cline','.codex/skills/lovrabet/SKILL.md','.agent','.trae','1547595fRozqK','435603HlNZhI','.qoder/skills/lovrabet/SKILL.md','antigravity','.cursor/skills/rabetbase.md','231460aGaTfW','.opencode','windsurf','opencode','553274hfhMtx','.cline/skills/lovrabet/SKILL.md','Windsurf\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','codebuddy','Cursor','1103572vjHUIj','cursor','Trae\x20IDE','.cursorrules','Windsurf','qoder','Cline\x20IDE','.opencode/skills/lovrabet/SKILL.md','.qoder','.agent/skills/lovrabet/SKILL.md','Qoder\x20IDE','Codex\x20IDE','trae','197736lsooza','agent','Antigravity\x20IDE','cline','CodeBuddy'];a226_0x1c89=function(){return _0x5a1ec3;};return a226_0x1c89();}export const CORE_IDE_LIST=[a226_0x3be0e2(0x117),a226_0x3be0e2(0x107),'codebuddy','codex',a226_0x3be0e2(0xf8),'opencode',a226_0x3be0e2(0xfc),a226_0x3be0e2(0x103),a226_0x3be0e2(0xef)];function a226_0x1991(_0x461d5a,_0x1b7b9b){_0x461d5a=_0x461d5a-0xe8;const _0x1c8943=a226_0x1c89();let _0x19916b=_0x1c8943[_0x461d5a];return _0x19916b;}export const IDE_LIST=[a226_0x3be0e2(0xeb),a226_0x3be0e2(0x117),a226_0x3be0e2(0x107),a226_0x3be0e2(0xf5),a226_0x3be0e2(0x110),'cursor',a226_0x3be0e2(0xf0),'qoder',a226_0x3be0e2(0x103),a226_0x3be0e2(0xef),a226_0x3be0e2(0x105)];export const ALL_CORE_IDES=[a226_0x3be0e2(0xf8),'windsurf',a226_0x3be0e2(0x117),a226_0x3be0e2(0x107),'codex','opencode',a226_0x3be0e2(0xfc),a226_0x3be0e2(0xf5),'trae'];
1
+ function a239_0x53fe(){const _0x3cfa13=['CodeBuddy','qoder','.claude/skills/lovrabet/SKILL.md','Claude\x20Code','Cline','.cline/skills/lovrabet/SKILL.md','SKILL.md.tpl','opencode','.agent','108lZhKKm','5ybZROU','Windsurf\x20IDE','.codex/skills/lovrabet/SKILL.md','cursor','2026ohdvct','通用模板\x20-\x20兜底方案','.windsurf','Windsurf','1350042QDaNDQ','.qoder/skills/lovrabet/SKILL.md','.cursor','1682289ziGHtI','Antigravity','windsurf','.windsurf/workflows/rabetbase.md','.trae/skills/lovrabet/SKILL.md','cline','.agent/skills/lovrabet/SKILL.md','trae','Cursor','.opencode','Trae\x20IDE','.opencode/skills/lovrabet/SKILL.md','.trae','其他\x20(通用模板)','.qoder','file','2742492jHsKwN','.codebuddy/skills/lovrabet/SKILL.md','codex','.codex','11HwZPUD','claude','.codebuddy','4248VnGfkE','Cursor\x20IDE','OpenCode\x20IDE','antigravity','Codex\x20IDE','codebuddy','388947aoESKI','1215320ByxTGX','Cline\x20IDE','.qoder/rules/rabetbase.md','.claude','10377auTjJW'];a239_0x53fe=function(){return _0x3cfa13;};return a239_0x53fe();}const a239_0xb7805f=a239_0x2ab7;(function(_0xda1b6f,_0x137ca4){const _0x1be50a=a239_0x2ab7,_0x3db029=_0xda1b6f();while(!![]){try{const _0x4ee354=parseInt(_0x1be50a(0xee))/0x1*(parseInt(_0x1be50a(0xf3))/0x2)+-parseInt(_0x1be50a(0xdf))/0x3+parseInt(_0x1be50a(0xd2))/0x4+-parseInt(_0x1be50a(0xef))/0x5*(-parseInt(_0x1be50a(0xf7))/0x6)+parseInt(_0x1be50a(0xfa))/0x7+-parseInt(_0x1be50a(0xd9))/0x8*(parseInt(_0x1be50a(0xe4))/0x9)+-parseInt(_0x1be50a(0xe0))/0xa*(parseInt(_0x1be50a(0xd6))/0xb);if(_0x4ee354===_0x137ca4)break;else _0x3db029['push'](_0x3db029['shift']());}catch(_0x2e7045){_0x3db029['push'](_0x3db029['shift']());}}}(a239_0x53fe,0x60e89));export const CORE_IDE_CONFIGS={'cursor':{'name':a239_0xb7805f(0x102),'description':a239_0xb7805f(0xda),'folders':['.cursorrules',a239_0xb7805f(0xf9)],'files':[{'type':a239_0xb7805f(0xd1),'path':'.cursor/skills/rabetbase.md','template':a239_0xb7805f(0xeb)}]},'windsurf':{'name':a239_0xb7805f(0xf6),'description':a239_0xb7805f(0xf0),'folders':[a239_0xb7805f(0xf5)],'files':[{'type':a239_0xb7805f(0xd1),'path':a239_0xb7805f(0xfd),'template':a239_0xb7805f(0xeb)}]},'claude':{'name':a239_0xb7805f(0xe8),'description':a239_0xb7805f(0xe8),'folders':[a239_0xb7805f(0xe3)],'files':[{'type':'file','path':a239_0xb7805f(0xe7),'template':a239_0xb7805f(0xeb)}]},'cline':{'name':a239_0xb7805f(0xe9),'description':a239_0xb7805f(0xe1),'folders':['.cline'],'files':[{'type':a239_0xb7805f(0xd1),'path':a239_0xb7805f(0xea),'template':a239_0xb7805f(0xeb)}]},'codex':{'name':'Codex','description':a239_0xb7805f(0xdd),'folders':[a239_0xb7805f(0xd5)],'files':[{'type':'file','path':a239_0xb7805f(0xf1),'template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':a239_0xb7805f(0xdb),'folders':[a239_0xb7805f(0x103)],'files':[{'type':'file','path':a239_0xb7805f(0xcd),'template':a239_0xb7805f(0xeb)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a239_0xb7805f(0xd0)],'files':[{'type':a239_0xb7805f(0xd1),'path':a239_0xb7805f(0xe2),'template':a239_0xb7805f(0xeb)},{'type':a239_0xb7805f(0xd1),'path':a239_0xb7805f(0xf8),'template':a239_0xb7805f(0xeb)}]},'codebuddy':{'name':a239_0xb7805f(0xe5),'description':'CodeBuddy\x20IDE','folders':[a239_0xb7805f(0xd8)],'files':[{'type':a239_0xb7805f(0xd1),'path':a239_0xb7805f(0xd3),'template':a239_0xb7805f(0xeb)}]},'trae':{'name':'Trae','description':a239_0xb7805f(0xcc),'folders':[a239_0xb7805f(0xce)],'files':[{'type':a239_0xb7805f(0xd1),'path':a239_0xb7805f(0xfe),'template':a239_0xb7805f(0xeb)}]}};function a239_0x2ab7(_0x476d77,_0x404b71){_0x476d77=_0x476d77-0xcc;const _0x53fe99=a239_0x53fe();let _0x2ab7df=_0x53fe99[_0x476d77];return _0x2ab7df;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a239_0xb7805f(0xcf),'description':a239_0xb7805f(0xf4),'folders':[a239_0xb7805f(0xed)],'files':[{'type':'file','path':a239_0xb7805f(0x100),'template':a239_0xb7805f(0xeb)}]},'antigravity':{'name':a239_0xb7805f(0xfb),'description':'Antigravity\x20IDE','folders':[a239_0xb7805f(0xed)],'files':[{'type':a239_0xb7805f(0xd1),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a239_0xb7805f(0xd7),a239_0xb7805f(0xff),a239_0xb7805f(0xde),a239_0xb7805f(0xd4),a239_0xb7805f(0xf2),a239_0xb7805f(0xec),a239_0xb7805f(0xe6),a239_0xb7805f(0x101),'windsurf'];export const IDE_LIST=[a239_0xb7805f(0xdc),'claude',a239_0xb7805f(0xff),'codebuddy',a239_0xb7805f(0xd4),a239_0xb7805f(0xf2),a239_0xb7805f(0xec),'qoder','trae',a239_0xb7805f(0xfc),'agent'];export const ALL_CORE_IDES=[a239_0xb7805f(0xf2),a239_0xb7805f(0xfc),'claude',a239_0xb7805f(0xff),a239_0xb7805f(0xd4),a239_0xb7805f(0xec),a239_0xb7805f(0xe6),'codebuddy',a239_0xb7805f(0x101)];
@@ -1 +1 @@
1
- (function(_0x11ba6b,_0x111ba8){const _0x4b3899=a227_0x2ba2,_0x37ac24=_0x11ba6b();while(!![]){try{const _0x4f3337=parseInt(_0x4b3899(0x11e))/0x1+-parseInt(_0x4b3899(0x127))/0x2*(-parseInt(_0x4b3899(0x126))/0x3)+parseInt(_0x4b3899(0x125))/0x4*(-parseInt(_0x4b3899(0x124))/0x5)+-parseInt(_0x4b3899(0x123))/0x6*(parseInt(_0x4b3899(0x129))/0x7)+-parseInt(_0x4b3899(0x121))/0x8+parseInt(_0x4b3899(0x120))/0x9*(-parseInt(_0x4b3899(0x122))/0xa)+-parseInt(_0x4b3899(0x11f))/0xb*(-parseInt(_0x4b3899(0x128))/0xc);if(_0x4f3337===_0x111ba8)break;else _0x37ac24['push'](_0x37ac24['shift']());}catch(_0x1f1def){_0x37ac24['push'](_0x37ac24['shift']());}}}(a227_0x4631,0x6dd92));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a227_0x2ba2(_0x5af562,_0x5cdd4b){_0x5af562=_0x5af562-0x11e;const _0x4631e8=a227_0x4631();let _0x2ba281=_0x4631e8[_0x5af562];return _0x2ba281;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a227_0x4631(){const _0x479168=['105VgdnDy','197603YUxYQi','33InMoHE','27603OreYFI','1919952vuxqvV','820hWjfxZ','30006tCjmeV','156865KdEiaU','52xDCthX','1679892tuehVZ','2jugMGg','2666892cOucMt'];a227_0x4631=function(){return _0x479168;};return a227_0x4631();}
1
+ function a240_0x3bd0(){const _0x36da89=['44214630VOvIWp','11058joJPZB','8pxAeVD','12722346agNwPn','6UApCUo','1203697jPcYKC','1579632KEhEUj','8008515LZwTkT','5836649AtJBIV','327PNAtSJ'];a240_0x3bd0=function(){return _0x36da89;};return a240_0x3bd0();}(function(_0x1014ba,_0x1bf0e7){const _0x2b52d9=a240_0x3f28,_0x231e7f=_0x1014ba();while(!![]){try{const _0x530bb9=-parseInt(_0x2b52d9(0x6c))/0x1+-parseInt(_0x2b52d9(0x68))/0x2*(parseInt(_0x2b52d9(0x70))/0x3)+parseInt(_0x2b52d9(0x6d))/0x4+-parseInt(_0x2b52d9(0x6e))/0x5*(parseInt(_0x2b52d9(0x6b))/0x6)+parseInt(_0x2b52d9(0x6f))/0x7*(parseInt(_0x2b52d9(0x69))/0x8)+-parseInt(_0x2b52d9(0x6a))/0x9+parseInt(_0x2b52d9(0x71))/0xa;if(_0x530bb9===_0x1bf0e7)break;else _0x231e7f['push'](_0x231e7f['shift']());}catch(_0x42c219){_0x231e7f['push'](_0x231e7f['shift']());}}}(a240_0x3bd0,0xca46b));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a240_0x3f28(_0x3f3b8b,_0x5676e0){_0x3f3b8b=_0x3f3b8b-0x68;const _0x3bd09e=a240_0x3bd0();let _0x3f28e5=_0x3bd09e[_0x3f3b8b];return _0x3f28e5;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x201330,_0x1b7e0c){const _0x58fc37=a228_0x1a4f,_0x5b9228=_0x201330();while(!![]){try{const _0x45d676=parseInt(_0x58fc37(0x75))/0x1*(parseInt(_0x58fc37(0x6f))/0x2)+parseInt(_0x58fc37(0x72))/0x3+parseInt(_0x58fc37(0x74))/0x4+parseInt(_0x58fc37(0x70))/0x5*(-parseInt(_0x58fc37(0x78))/0x6)+-parseInt(_0x58fc37(0x79))/0x7+-parseInt(_0x58fc37(0x6b))/0x8*(-parseInt(_0x58fc37(0x6c))/0x9)+-parseInt(_0x58fc37(0x7a))/0xa;if(_0x45d676===_0x1b7e0c)break;else _0x5b9228['push'](_0x5b9228['shift']());}catch(_0x4e850f){_0x5b9228['push'](_0x5b9228['shift']());}}}(a228_0x3ab0,0xc1071));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5e9b98=a228_0x1a4f,_0x535184=getTemplateBaseUrl(),_0x20391a=[_0x535184+_0x5e9b98(0x76),_0x535184+_0x5e9b98(0x7b)];for(const _0x1eb875 of _0x20391a){try{const _0x480023=await fetch(_0x1eb875,{'headers':{'Accept':'application/json'}});if(!_0x480023['ok'])continue;const _0xf544e7=await _0x480023[_0x5e9b98(0x6d)]();if(!_0xf544e7['cli']?.['stableVersion']||!_0xf544e7[_0x5e9b98(0x71)]?.[_0x5e9b98(0x77)]?.[_0x5e9b98(0x73)])continue;return _0xf544e7;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a228_0x1a4f(_0x483eeb,_0x1b0e33){_0x483eeb=_0x483eeb-0x6b;const _0x3ab057=a228_0x3ab0();let _0x1a4f7d=_0x3ab057[_0x483eeb];return _0x1a4f7d;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x4548bb=a228_0x1a4f,_0x148ebb=Date[_0x4548bb(0x6e)]();if(hasCachedConfig){const _0x518b94=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x148ebb-cacheTime<_0x518b94)return cachedConfig;}const _0x2fbd06=await fetchCdnConfig();return cachedConfig=_0x2fbd06,cacheTime=_0x148ebb,hasCachedConfig=!![],_0x2fbd06;}function a228_0x3ab0(){const _0xaf8f74=['1639589tEroQk','28639630LWVXpe','/config/index.json','56DDwhxr','937179zNfSkK','json','now','8aQkpVd','5OlTJOK','sdk','3076389wWfogC','stableVersion','3787008JTQqwr','313437YtKELF','/config.json','node','396294fNUVAV'];a228_0x3ab0=function(){return _0xaf8f74;};return a228_0x3ab0();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1f1667,_0x55f724){const _0x45650f=a241_0x3695,_0x3dd0f0=_0x1f1667();while(!![]){try{const _0xc9e0cf=-parseInt(_0x45650f(0x1ea))/0x1*(-parseInt(_0x45650f(0x1df))/0x2)+-parseInt(_0x45650f(0x1e3))/0x3+-parseInt(_0x45650f(0x1e5))/0x4+parseInt(_0x45650f(0x1e8))/0x5*(-parseInt(_0x45650f(0x1e9))/0x6)+parseInt(_0x45650f(0x1ed))/0x7*(parseInt(_0x45650f(0x1ee))/0x8)+-parseInt(_0x45650f(0x1e2))/0x9+parseInt(_0x45650f(0x1e0))/0xa*(parseInt(_0x45650f(0x1e4))/0xb);if(_0xc9e0cf===_0x55f724)break;else _0x3dd0f0['push'](_0x3dd0f0['shift']());}catch(_0x4f5295){_0x3dd0f0['push'](_0x3dd0f0['shift']());}}}(a241_0x4cb1,0xac184));import{getTemplateBaseUrl}from'../utils/config.js';function a241_0x4cb1(){const _0x72e54=['3861860jJElLs','/config.json','sdk','97625OZRZst','240ObKbTK','47UCsQlx','stableVersion','/config/index.json','28nTZmnp','267912TjhSen','json','cli','46798pANsOU','10fnXFoG','now','9589914XdrgSy','2638305CIuvwZ','34789007QWEDDc'];a241_0x4cb1=function(){return _0x72e54;};return a241_0x4cb1();}export async function fetchCdnConfig(){const _0x4a7867=a241_0x3695,_0x51bf5a=getTemplateBaseUrl(),_0x273b4d=[_0x51bf5a+_0x4a7867(0x1e6),_0x51bf5a+_0x4a7867(0x1ec)];for(const _0x4bebcc of _0x273b4d){try{const _0x3c84e8=await fetch(_0x4bebcc,{'headers':{'Accept':'application/json'}});if(!_0x3c84e8['ok'])continue;const _0x111f02=await _0x3c84e8[_0x4a7867(0x1dd)]();if(!_0x111f02[_0x4a7867(0x1de)]?.['stableVersion']||!_0x111f02[_0x4a7867(0x1e7)]?.['node']?.[_0x4a7867(0x1eb)])continue;return _0x111f02;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a241_0x3695(_0x1222a6,_0x18599e){_0x1222a6=_0x1222a6-0x1dd;const _0x4cb18c=a241_0x4cb1();let _0x369502=_0x4cb18c[_0x1222a6];return _0x369502;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x16df57=a241_0x3695,_0x393e25=Date[_0x16df57(0x1e1)]();if(hasCachedConfig){const _0x4f7139=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x393e25-cacheTime<_0x4f7139)return cachedConfig;}const _0x717e70=await fetchCdnConfig();return cachedConfig=_0x717e70,cacheTime=_0x393e25,hasCachedConfig=!![],_0x717e70;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a229_0x2d310b=a229_0xa59e;(function(_0x45728a,_0x3c953e){const _0x2d7d34=a229_0xa59e,_0x454adf=_0x45728a();while(!![]){try{const _0x4773ef=parseInt(_0x2d7d34(0x142))/0x1*(parseInt(_0x2d7d34(0x125))/0x2)+parseInt(_0x2d7d34(0x14b))/0x3*(parseInt(_0x2d7d34(0x14a))/0x4)+-parseInt(_0x2d7d34(0x12f))/0x5*(-parseInt(_0x2d7d34(0x131))/0x6)+parseInt(_0x2d7d34(0x12e))/0x7*(-parseInt(_0x2d7d34(0x12c))/0x8)+-parseInt(_0x2d7d34(0x129))/0x9*(parseInt(_0x2d7d34(0x13d))/0xa)+parseInt(_0x2d7d34(0x140))/0xb+parseInt(_0x2d7d34(0x133))/0xc;if(_0x4773ef===_0x3c953e)break;else _0x454adf['push'](_0x454adf['shift']());}catch(_0x541ffb){_0x454adf['push'](_0x454adf['shift']());}}}(a229_0xfc5a,0xca531));import a229_0x251230 from'node:fs';import a229_0xc86296 from'node:path';import a229_0x376a7a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a229_0xfc5a(){const _0x22a3e5=['133305SOwZkF','devDependencies','156YdCAOx','all','179676vcpfAw','join','packageName','\x1b[0m','coerce','existsSync','test','stableVersion','1.2.0','node_modules','100CmYMAG','needsUpgrade','parse','4063290MYmVKM','minVersion','114367iufSwY','\x20\x20\x20Stable\x20version:\x20','dependencies','package.json','npm\x20install\x20','readFileSync','version','latest','20jNaSfI','202701WBxhrI','utf-8','\x1b[1m','sdk','log','some','22vCorFk','\x20\x20\x20Upgrade\x20command:\x20','↪\x20SDK\x20update\x20available','utf8','543042qfUtfa','\x1b[33m','node','1241320VRumIK','@lovrabet/sdk','56vKGBCJ'];a229_0xfc5a=function(){return _0x22a3e5;};return a229_0xfc5a();}const FALLBACK_MIN_SDK_VERSION=a229_0x2d310b(0x13b);function isNonNumericVersion(_0x5486ca){const _0x566cc2=a229_0x2d310b,_0x30431d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x30431d[_0x566cc2(0x150)](_0x1a9cf9=>_0x1a9cf9[_0x566cc2(0x139)](_0x5486ca));}function getInstalledVersion(_0x547348,_0x1cd5ab){const _0x5ad7bd=a229_0x2d310b;try{const _0x23a3c6=a229_0xc86296['join'](_0x547348,_0x5ad7bd(0x13c),_0x1cd5ab,_0x5ad7bd(0x145));if(a229_0x251230['existsSync'](_0x23a3c6)){const _0x3dea80=JSON[_0x5ad7bd(0x13f)](a229_0x251230['readFileSync'](_0x23a3c6,_0x5ad7bd(0x14c)));return _0x3dea80['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x217abd=a229_0x2d310b;try{const _0xa2dcac=await getCdnConfig();return _0xa2dcac?.[_0x217abd(0x14e)]?.[_0x217abd(0x12b)]?.[_0x217abd(0x13a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5b0510=a229_0x2d310b;try{const _0x5be6a3=await getCdnConfig();return _0x5be6a3?.[_0x5b0510(0x14e)]?.[_0x5b0510(0x12b)]?.[_0x5b0510(0x135)]||_0x5b0510(0x12d);}catch{return'@lovrabet/sdk';}}function a229_0xa59e(_0x3e8fa6,_0x1186ed){_0x3e8fa6=_0x3e8fa6-0x125;const _0xfc5a38=a229_0xfc5a();let _0xa59eb0=_0xfc5a38[_0x3e8fa6];return _0xa59eb0;}export async function checkSdkVersion(_0xf7e9d5){const _0x31b15e=a229_0x2d310b,_0x149e3b=a229_0xc86296[_0x31b15e(0x134)](_0xf7e9d5,_0x31b15e(0x145)),[_0x5b4ebf,_0x327982]=await Promise[_0x31b15e(0x132)]([getSdkStableVersion(),getSdkPackageName()]),_0x3fde4f=_0x5b4ebf||FALLBACK_MIN_SDK_VERSION;if(!a229_0x251230[_0x31b15e(0x138)](_0x149e3b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};try{const _0x5262d2=JSON[_0x31b15e(0x13f)](a229_0x251230['readFileSync'](_0x149e3b,_0x31b15e(0x128))),_0x5349f0=_0x5262d2[_0x31b15e(0x144)]||{},_0x38cac7=_0x5262d2['devDependencies']||{},_0x1508dd=_0x5349f0[_0x327982]||_0x38cac7[_0x327982];if(!_0x1508dd)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};let _0x20bc9b=getInstalledVersion(_0xf7e9d5,_0x327982);!_0x20bc9b&&(_0x20bc9b=_0x1508dd);if(isNonNumericVersion(_0x1508dd))return{'installed':!![],'version':_0x20bc9b,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};const _0x4724cb=a229_0x376a7a['coerce'](_0x20bc9b),_0x41d800=a229_0x376a7a['coerce'](_0x3fde4f),_0x54a2c2=_0x4724cb&&_0x41d800?a229_0x376a7a['lt'](_0x4724cb,_0x41d800):![];return{'installed':!![],'version':_0x20bc9b,'needsUpgrade':_0x54a2c2,'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};}}export function checkSdkVersionSync(_0x8cddc2){const _0x31a2b8=a229_0x2d310b,_0x2adbc2=a229_0xc86296[_0x31a2b8(0x134)](_0x8cddc2,_0x31a2b8(0x145)),_0x907e9d=_0x31a2b8(0x12d);if(!a229_0x251230['existsSync'](_0x2adbc2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};try{const _0xe21061=JSON[_0x31a2b8(0x13f)](a229_0x251230[_0x31a2b8(0x147)](_0x2adbc2,_0x31a2b8(0x128))),_0xe36a86=_0xe21061[_0x31a2b8(0x144)]||{},_0x4edc2c=_0xe21061[_0x31a2b8(0x130)]||{},_0x5f2b25=_0xe36a86[_0x907e9d]||_0x4edc2c[_0x907e9d];if(!_0x5f2b25)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};let _0xfe14b5=getInstalledVersion(_0x8cddc2,_0x907e9d);!_0xfe14b5&&(_0xfe14b5=_0x5f2b25);if(isNonNumericVersion(_0x5f2b25))return{'installed':!![],'version':_0xfe14b5,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};const _0x3550b0=a229_0x376a7a[_0x31a2b8(0x137)](_0xfe14b5),_0x57b922=_0x3550b0?a229_0x376a7a['lt'](_0x3550b0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xfe14b5,'needsUpgrade':_0x57b922,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x59ac5d){const _0x44c27c=a229_0x2d310b;if(!_0x59ac5d[_0x44c27c(0x13e)])return;const _0x506c1a=_0x44c27c(0x12a),_0x54ace7=_0x44c27c(0x136),_0x268cb5=_0x44c27c(0x14d),_0x488bb8=_0x59ac5d[_0x44c27c(0x135)]||_0x44c27c(0x12d),_0x50db8f=_0x59ac5d[_0x44c27c(0x13a)]||_0x59ac5d[_0x44c27c(0x141)],_0x30b2b2=_0x44c27c(0x146)+_0x488bb8+'@'+(_0x50db8f||_0x44c27c(0x149));console[_0x44c27c(0x14f)](),console[_0x44c27c(0x14f)](''+_0x506c1a+_0x268cb5+_0x44c27c(0x127)+_0x54ace7),console['log'](_0x506c1a+'\x20\x20\x20Current\x20version:\x20'+_0x488bb8+'@'+_0x59ac5d[_0x44c27c(0x148)]+_0x54ace7),console[_0x44c27c(0x14f)](_0x506c1a+_0x44c27c(0x143)+_0x50db8f+_0x54ace7),console['log'](_0x506c1a+_0x44c27c(0x126)+_0x30b2b2+_0x54ace7),console[_0x44c27c(0x14f)]();}
1
+ const a242_0x1b6bf5=a242_0x129e;(function(_0x2256d9,_0x126052){const _0x4a58fc=a242_0x129e,_0x2bdc0a=_0x2256d9();while(!![]){try{const _0x5975f9=parseInt(_0x4a58fc(0x158))/0x1+parseInt(_0x4a58fc(0x144))/0x2+-parseInt(_0x4a58fc(0x143))/0x3*(-parseInt(_0x4a58fc(0x138))/0x4)+parseInt(_0x4a58fc(0x147))/0x5*(parseInt(_0x4a58fc(0x157))/0x6)+parseInt(_0x4a58fc(0x148))/0x7*(parseInt(_0x4a58fc(0x154))/0x8)+-parseInt(_0x4a58fc(0x137))/0x9+parseInt(_0x4a58fc(0x155))/0xa*(-parseInt(_0x4a58fc(0x13e))/0xb);if(_0x5975f9===_0x126052)break;else _0x2bdc0a['push'](_0x2bdc0a['shift']());}catch(_0x10a885){_0x2bdc0a['push'](_0x2bdc0a['shift']());}}}(a242_0x2194,0xae6f2));import a242_0x20d412 from'node:fs';import a242_0x1fb6fe from'node:path';import a242_0x250db0 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a242_0x1b6bf5(0x15a);function isNonNumericVersion(_0xd93fa6){const _0x3f4648=a242_0x1b6bf5,_0x20a90d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x20a90d[_0x3f4648(0x14e)](_0x44e0a8=>_0x44e0a8[_0x3f4648(0x151)](_0xd93fa6));}function getInstalledVersion(_0x5df116,_0xb1640e){const _0x55aaa8=a242_0x1b6bf5;try{const _0x2e7d85=a242_0x1fb6fe[_0x55aaa8(0x141)](_0x5df116,_0x55aaa8(0x14a),_0xb1640e,'package.json');if(a242_0x20d412[_0x55aaa8(0x13c)](_0x2e7d85)){const _0x21def5=JSON['parse'](a242_0x20d412['readFileSync'](_0x2e7d85,'utf-8'));return _0x21def5[_0x55aaa8(0x139)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1d1157=a242_0x1b6bf5;try{const _0x4a7dd6=await getCdnConfig();return _0x4a7dd6?.[_0x1d1157(0x142)]?.[_0x1d1157(0x149)]?.[_0x1d1157(0x13b)]||null;}catch{return null;}}async function getSdkPackageName(){const _0xa23c43=a242_0x1b6bf5;try{const _0x5f0bd8=await getCdnConfig();return _0x5f0bd8?.[_0xa23c43(0x142)]?.[_0xa23c43(0x149)]?.['packageName']||_0xa23c43(0x140);}catch{return _0xa23c43(0x140);}}export async function checkSdkVersion(_0x327702){const _0x3852de=a242_0x1b6bf5,_0x19e099=a242_0x1fb6fe[_0x3852de(0x141)](_0x327702,_0x3852de(0x145)),[_0x41ccae,_0x3d8589]=await Promise[_0x3852de(0x14b)]([getSdkStableVersion(),getSdkPackageName()]),_0x44bf7f=_0x41ccae||FALLBACK_MIN_SDK_VERSION;if(!a242_0x20d412[_0x3852de(0x13c)](_0x19e099))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x44bf7f,'packageName':_0x3d8589,'stableVersion':_0x41ccae};try{const _0x22c354=JSON[_0x3852de(0x15c)](a242_0x20d412[_0x3852de(0x13a)](_0x19e099,'utf8')),_0x102aa1=_0x22c354[_0x3852de(0x150)]||{},_0x121f17=_0x22c354[_0x3852de(0x15b)]||{},_0x4db068=_0x102aa1[_0x3d8589]||_0x121f17[_0x3d8589];if(!_0x4db068)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x44bf7f,'packageName':_0x3d8589,'stableVersion':_0x41ccae};let _0x4c0180=getInstalledVersion(_0x327702,_0x3d8589);!_0x4c0180&&(_0x4c0180=_0x4db068);if(isNonNumericVersion(_0x4db068))return{'installed':!![],'version':_0x4c0180,'needsUpgrade':![],'minVersion':_0x44bf7f,'packageName':_0x3d8589,'stableVersion':_0x41ccae};const _0x260546=a242_0x250db0[_0x3852de(0x136)](_0x4c0180),_0x1b9a77=a242_0x250db0[_0x3852de(0x136)](_0x44bf7f),_0x55ec21=_0x260546&&_0x1b9a77?a242_0x250db0['lt'](_0x260546,_0x1b9a77):![];return{'installed':!![],'version':_0x4c0180,'needsUpgrade':_0x55ec21,'minVersion':_0x44bf7f,'packageName':_0x3d8589,'stableVersion':_0x41ccae};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x44bf7f,'packageName':_0x3d8589,'stableVersion':_0x41ccae};}}function a242_0x129e(_0x553b31,_0x19d33f){_0x553b31=_0x553b31-0x136;const _0x21941c=a242_0x2194();let _0x129e67=_0x21941c[_0x553b31];return _0x129e67;}export function checkSdkVersionSync(_0x221f76){const _0x4b7c09=a242_0x1b6bf5,_0x2599d3=a242_0x1fb6fe[_0x4b7c09(0x141)](_0x221f76,_0x4b7c09(0x145)),_0x4d3b63=_0x4b7c09(0x140);if(!a242_0x20d412['existsSync'](_0x2599d3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4d3b63,'stableVersion':null};try{const _0x9ddcb4=JSON[_0x4b7c09(0x15c)](a242_0x20d412[_0x4b7c09(0x13a)](_0x2599d3,'utf8')),_0x257837=_0x9ddcb4[_0x4b7c09(0x150)]||{},_0x37c48f=_0x9ddcb4[_0x4b7c09(0x15b)]||{},_0x4a91e8=_0x257837[_0x4d3b63]||_0x37c48f[_0x4d3b63];if(!_0x4a91e8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4d3b63,'stableVersion':null};let _0x38d89e=getInstalledVersion(_0x221f76,_0x4d3b63);!_0x38d89e&&(_0x38d89e=_0x4a91e8);if(isNonNumericVersion(_0x4a91e8))return{'installed':!![],'version':_0x38d89e,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4d3b63,'stableVersion':null};const _0x279028=a242_0x250db0[_0x4b7c09(0x136)](_0x38d89e),_0x253adc=_0x279028?a242_0x250db0['lt'](_0x279028,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x38d89e,'needsUpgrade':_0x253adc,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4d3b63,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4d3b63,'stableVersion':null};}}function a242_0x2194(){const _0x4be6cd=['\x20\x20\x20Upgrade\x20command:\x20','minVersion','8Ejvjig','10hQqyPh','\x1b[33m','6798978HRMBhr','883671AqdVWN','latest','1.2.0','devDependencies','parse','coerce','2756412ODZzXo','4fhWFwD','version','readFileSync','stableVersion','existsSync','needsUpgrade','27281045fVhXzV','\x20\x20\x20Current\x20version:\x20','@lovrabet/sdk','join','sdk','1303752rnfUGQ','1246612pJpfuq','package.json','↪\x20SDK\x20update\x20available','5SaXAEf','2982847YuYiZH','node','node_modules','all','log','\x1b[1m','some','\x20\x20\x20Stable\x20version:\x20','dependencies','test'];a242_0x2194=function(){return _0x4be6cd;};return a242_0x2194();}export function printSdkUpgradeWarning(_0x28f897){const _0x100ad7=a242_0x1b6bf5;if(!_0x28f897[_0x100ad7(0x13d)])return;const _0x53ca37=_0x100ad7(0x156),_0x493253='\x1b[0m',_0x59c566=_0x100ad7(0x14d),_0x3b3191=_0x28f897['packageName']||'@lovrabet/sdk',_0x1b12ec=_0x28f897[_0x100ad7(0x13b)]||_0x28f897[_0x100ad7(0x153)],_0x394e70='npm\x20install\x20'+_0x3b3191+'@'+(_0x1b12ec||_0x100ad7(0x159));console[_0x100ad7(0x14c)](),console[_0x100ad7(0x14c)](''+_0x53ca37+_0x59c566+_0x100ad7(0x146)+_0x493253),console[_0x100ad7(0x14c)](_0x53ca37+_0x100ad7(0x13f)+_0x3b3191+'@'+_0x28f897['version']+_0x493253),console[_0x100ad7(0x14c)](_0x53ca37+_0x100ad7(0x14f)+_0x1b12ec+_0x493253),console[_0x100ad7(0x14c)](_0x53ca37+_0x100ad7(0x152)+_0x394e70+_0x493253),console[_0x100ad7(0x14c)]();}
@@ -1 +1 @@
1
- (function(_0x49e599,_0x4330e4){const _0x128721=a230_0x4412,_0x30ddf0=_0x49e599();while(!![]){try{const _0x36d91d=parseInt(_0x128721(0xa2))/0x1*(-parseInt(_0x128721(0xa8))/0x2)+-parseInt(_0x128721(0x9b))/0x3*(-parseInt(_0x128721(0xb3))/0x4)+-parseInt(_0x128721(0x8f))/0x5*(-parseInt(_0x128721(0x92))/0x6)+parseInt(_0x128721(0xae))/0x7+-parseInt(_0x128721(0xad))/0x8+-parseInt(_0x128721(0xa9))/0x9+parseInt(_0x128721(0x9a))/0xa*(-parseInt(_0x128721(0x96))/0xb);if(_0x36d91d===_0x4330e4)break;else _0x30ddf0['push'](_0x30ddf0['shift']());}catch(_0x2559f8){_0x30ddf0['push'](_0x30ddf0['shift']());}}}(a230_0x580c,0x860fa));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a230_0x4412(_0x4bc576,_0x5d86ae){_0x4bc576=_0x4bc576-0x8b;const _0x580c6d=a230_0x580c();let _0x441257=_0x580c6d[_0x4bc576];return _0x441257;}import a230_0x4bc6ff from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x329bda){const _0x34fcba=a230_0x4412,_0x272d26=_0x329bda[_0x34fcba(0xac)]||_0x34fcba(0xa5);return _0x34fcba(0xa3)+NPM_PACKAGE_NAME+'@'+_0x272d26;}function getCurrentCliVersion(){const _0x3b2215=a230_0x4412;try{const _0x56f64b=fileURLToPath(import.meta.url),_0x22bb47=resolve(dirname(_0x56f64b),_0x3b2215(0x95)),_0x8ddf72=resolve(_0x22bb47,_0x3b2215(0xaa)),_0x167398=JSON[_0x3b2215(0xb1)](readFileSync(_0x8ddf72,_0x3b2215(0xa4)));return _0x167398[_0x3b2215(0xa7)]||_0x3b2215(0xb5);}catch{return'1.0.0';}}function a230_0x580c(){const _0x3a2af1=['\x1b[0m','minimumVersion','currentVersion','9BvtLRL','npm\x20install\x20-g\x20','utf-8','latest','belowMinimum','version','234168CcBSXk','609174GsuPQy','package.json','\x20\x20\x20Current\x20CLI\x20version:\x20','stableVersion','3700936fBdsQj','7456372VzJOpr','join','\x20\x20\x20Upgrade\x20command:\x20','parse','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','20FEDTyp','upgradeMessage','1.0.0','\x20\x20\x20Stable\x20version:\x20','Current\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','Upgrade\x20command:\x20','20dSgVNY','minimumVersionMessage','filter','1292202cRdaoi','validation','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','22VlTwRU','needsUpgrade','\x20\x20\x20','\x1b[1m','1134930zyJvCn','260097JrwubI','\x1b[31m','coerce','log'];a230_0x580c=function(){return _0x3a2af1;};return a230_0x580c();}export async function checkCliVersion(){const _0xdd2db2=a230_0x4412,_0x5ddc8e=getCurrentCliVersion(),_0x55a2b8=await getCliVersionPolicy(),_0xd5ce5=_0x55a2b8?.[_0xdd2db2(0xac)]||null,_0x1a7ba8=_0x55a2b8?.[_0xdd2db2(0xa0)]||null;let _0x43a1ff=![],_0x1fd348=![];const _0x3b4bf6=a230_0x4bc6ff['coerce'](_0x5ddc8e);if(_0x3b4bf6&&_0xd5ce5)try{const _0x11f985=a230_0x4bc6ff[_0xdd2db2(0x9d)](_0xd5ce5);if(_0x11f985)_0x43a1ff=a230_0x4bc6ff['lt'](_0x3b4bf6,_0x11f985);}catch{}if(_0x3b4bf6&&_0x1a7ba8)try{const _0x4e89db=a230_0x4bc6ff[_0xdd2db2(0x9d)](_0x1a7ba8);if(_0x4e89db)_0x1fd348=a230_0x4bc6ff['lt'](_0x3b4bf6,_0x4e89db);}catch{}return _0x1fd348&&(_0x43a1ff=!![]),{'currentVersion':_0x5ddc8e,'stableVersion':_0xd5ce5,'minimumVersion':_0x1a7ba8,'needsUpgrade':_0x43a1ff,'belowMinimum':_0x1fd348,'isPreRelease':![],'upgradeMessage':_0x55a2b8?.['upgradeMessage'],'minimumVersionMessage':_0x55a2b8?.[_0xdd2db2(0x90)]};}export function printCliUpgradeWarning(_0x1e0a24){const _0x1a1c9e=a230_0x4412;if(!_0x1e0a24[_0x1a1c9e(0x97)]&&!_0x1e0a24[_0x1a1c9e(0xa6)])return;const _0x400371=_0x1a1c9e(0x9c),_0x485663='\x1b[33m',_0x8aa2f7=_0x1a1c9e(0x9f),_0x11be33=_0x1a1c9e(0x99),_0x3801ae=getCliUpgradeCommand(_0x1e0a24);console[_0x1a1c9e(0x9e)](),_0x1e0a24[_0x1a1c9e(0xa6)]?(console['log'](''+_0x400371+_0x11be33+_0x1a1c9e(0x94)+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x400371+_0x1a1c9e(0xab)+_0x1e0a24['currentVersion']+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0xa0)]&&console[_0x1a1c9e(0x9e)](_0x400371+_0x1a1c9e(0x8d)+_0x1e0a24[_0x1a1c9e(0xa0)]+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0xac)]&&_0x1e0a24[_0x1a1c9e(0xac)]!==_0x1e0a24[_0x1a1c9e(0xa0)]&&console[_0x1a1c9e(0x9e)](_0x400371+'\x20\x20\x20Recommended\x20stable:\x20'+_0x1e0a24[_0x1a1c9e(0xac)]+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0x90)]&&console['log'](_0x400371+_0x1a1c9e(0x98)+_0x1e0a24['minimumVersionMessage']+_0x8aa2f7),console['log'](_0x400371+_0x1a1c9e(0xb0)+_0x3801ae+_0x8aa2f7)):(console['log'](''+_0x485663+_0x11be33+'↪\x20New\x20version\x20available'+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0xab)+_0x1e0a24[_0x1a1c9e(0xa1)]+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0x8b)+_0x1e0a24[_0x1a1c9e(0xac)]+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0xb4)]&&console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0x98)+_0x1e0a24[_0x1a1c9e(0xb4)]+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0xb0)+_0x3801ae+_0x8aa2f7)),console[_0x1a1c9e(0x9e)]();}export function assertCliVersionSupported(_0x1ebb13){const _0x198cd7=a230_0x4412;if(!_0x1ebb13[_0x198cd7(0xa6)])return;const _0x593155=[_0x1ebb13[_0x198cd7(0x90)],_0x198cd7(0x8c)+_0x1ebb13[_0x198cd7(0xa1)],_0x1ebb13[_0x198cd7(0xa0)]?'Minimum\x20supported:\x20'+_0x1ebb13[_0x198cd7(0xa0)]:null,_0x198cd7(0x8e)+getCliUpgradeCommand(_0x1ebb13)][_0x198cd7(0x91)](Boolean)[_0x198cd7(0xaf)]('\x0a');throw CliErrors[_0x198cd7(0x93)](_0x198cd7(0xb2),_0x593155);}
1
+ (function(_0x451da4,_0x4f241b){const _0x330446=a243_0x2ae1,_0x131e3e=_0x451da4();while(!![]){try{const _0x273816=parseInt(_0x330446(0xd2))/0x1+parseInt(_0x330446(0xcd))/0x2*(-parseInt(_0x330446(0xd0))/0x3)+-parseInt(_0x330446(0xc5))/0x4+parseInt(_0x330446(0xd6))/0x5*(-parseInt(_0x330446(0xba))/0x6)+-parseInt(_0x330446(0xb6))/0x7+parseInt(_0x330446(0xca))/0x8*(-parseInt(_0x330446(0xd3))/0x9)+parseInt(_0x330446(0xb4))/0xa*(parseInt(_0x330446(0xc8))/0xb);if(_0x273816===_0x4f241b)break;else _0x131e3e['push'](_0x131e3e['shift']());}catch(_0x21e867){_0x131e3e['push'](_0x131e3e['shift']());}}}(a243_0x7690,0xc7152));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a243_0x36cf3d from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xacfa1b){const _0x4f8c7d=a243_0x2ae1,_0x4bb6b8=_0xacfa1b[_0x4f8c7d(0xc2)]||'latest';return _0x4f8c7d(0xc3)+NPM_PACKAGE_NAME+'@'+_0x4bb6b8;}function a243_0x2ae1(_0x11a216,_0x4be6d0){_0x11a216=_0x11a216-0xb0;const _0x76907b=a243_0x7690();let _0x2ae1e2=_0x76907b[_0x11a216];return _0x2ae1e2;}function a243_0x7690(){const _0x3fe210=['minimumVersionMessage','50GOZJTJ','Minimum\x20supported:\x20','1756804rCXQrC','\x20\x20\x20Minimum\x20supported:\x20','log','↪\x20New\x20version\x20available','6wvSBBp','filter','utf-8','join','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','\x20\x20\x20','\x1b[31m','stableVersion','npm\x20install\x20-g\x20','currentVersion','6394056UrJTxp','needsUpgrade','\x20\x20\x20Recommended\x20stable:\x20','10444731RBeENP','\x1b[1m','8BkCVEM','parse','belowMinimum','138UlWWaR','coerce','\x20\x20\x20Upgrade\x20command:\x20','5433SjxIrM','../..','526048QLRxQD','12080853bBVvYJ','upgradeMessage','minimumVersion','5707245pDVuKk','validation','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','\x1b[0m','1.0.0'];a243_0x7690=function(){return _0x3fe210;};return a243_0x7690();}function getCurrentCliVersion(){const _0xfa8a1b=a243_0x2ae1;try{const _0x2f167b=fileURLToPath(import.meta.url),_0x4688c6=resolve(dirname(_0x2f167b),_0xfa8a1b(0xd1)),_0x5cf5cd=resolve(_0x4688c6,'package.json'),_0x15e36a=JSON[_0xfa8a1b(0xcb)](readFileSync(_0x5cf5cd,_0xfa8a1b(0xbc)));return _0x15e36a['version']||'1.0.0';}catch{return _0xfa8a1b(0xb2);}}export async function checkCliVersion(){const _0x2cc122=a243_0x2ae1,_0x4c2c3b=getCurrentCliVersion(),_0x436339=await getCliVersionPolicy(),_0x40d7ff=_0x436339?.['stableVersion']||null,_0x596297=_0x436339?.[_0x2cc122(0xd5)]||null;let _0x16c55c=![],_0x495045=![];const _0xd7a9d2=a243_0x36cf3d['coerce'](_0x4c2c3b);if(_0xd7a9d2&&_0x40d7ff)try{const _0x3a8b12=a243_0x36cf3d[_0x2cc122(0xce)](_0x40d7ff);if(_0x3a8b12)_0x16c55c=a243_0x36cf3d['lt'](_0xd7a9d2,_0x3a8b12);}catch{}if(_0xd7a9d2&&_0x596297)try{const _0xbbc8e4=a243_0x36cf3d[_0x2cc122(0xce)](_0x596297);if(_0xbbc8e4)_0x495045=a243_0x36cf3d['lt'](_0xd7a9d2,_0xbbc8e4);}catch{}return _0x495045&&(_0x16c55c=!![]),{'currentVersion':_0x4c2c3b,'stableVersion':_0x40d7ff,'minimumVersion':_0x596297,'needsUpgrade':_0x16c55c,'belowMinimum':_0x495045,'isPreRelease':![],'upgradeMessage':_0x436339?.['upgradeMessage'],'minimumVersionMessage':_0x436339?.[_0x2cc122(0xb3)]};}export function printCliUpgradeWarning(_0x5b1f2c){const _0x3c96bc=a243_0x2ae1;if(!_0x5b1f2c[_0x3c96bc(0xc6)]&&!_0x5b1f2c[_0x3c96bc(0xcc)])return;const _0xd8333e=_0x3c96bc(0xc1),_0x2ea585=_0x3c96bc(0xbf),_0x5ea1ac=_0x3c96bc(0xb1),_0x36b31e=_0x3c96bc(0xc9),_0x29c247=getCliUpgradeCommand(_0x5b1f2c);console[_0x3c96bc(0xb8)](),_0x5b1f2c['belowMinimum']?(console[_0x3c96bc(0xb8)](''+_0xd8333e+_0x36b31e+_0x3c96bc(0xbe)+_0x5ea1ac),console[_0x3c96bc(0xb8)](_0xd8333e+_0x3c96bc(0xd8)+_0x5b1f2c['currentVersion']+_0x5ea1ac),_0x5b1f2c['minimumVersion']&&console[_0x3c96bc(0xb8)](_0xd8333e+_0x3c96bc(0xb7)+_0x5b1f2c[_0x3c96bc(0xd5)]+_0x5ea1ac),_0x5b1f2c[_0x3c96bc(0xc2)]&&_0x5b1f2c['stableVersion']!==_0x5b1f2c['minimumVersion']&&console['log'](_0xd8333e+_0x3c96bc(0xc7)+_0x5b1f2c[_0x3c96bc(0xc2)]+_0x5ea1ac),_0x5b1f2c[_0x3c96bc(0xb3)]&&console[_0x3c96bc(0xb8)](_0xd8333e+_0x3c96bc(0xc0)+_0x5b1f2c['minimumVersionMessage']+_0x5ea1ac),console['log'](_0xd8333e+_0x3c96bc(0xcf)+_0x29c247+_0x5ea1ac)):(console[_0x3c96bc(0xb8)](''+_0x2ea585+_0x36b31e+_0x3c96bc(0xb9)+_0x5ea1ac),console[_0x3c96bc(0xb8)](_0x2ea585+_0x3c96bc(0xd8)+_0x5b1f2c['currentVersion']+_0x5ea1ac),console['log'](_0x2ea585+_0x3c96bc(0xb0)+_0x5b1f2c[_0x3c96bc(0xc2)]+_0x5ea1ac),_0x5b1f2c['upgradeMessage']&&console['log'](_0x2ea585+_0x3c96bc(0xc0)+_0x5b1f2c[_0x3c96bc(0xd4)]+_0x5ea1ac),console[_0x3c96bc(0xb8)](_0x2ea585+_0x3c96bc(0xcf)+_0x29c247+_0x5ea1ac)),console['log']();}export function assertCliVersionSupported(_0x5758e9){const _0x34de80=a243_0x2ae1;if(!_0x5758e9[_0x34de80(0xcc)])return;const _0x45c3c3=[_0x5758e9[_0x34de80(0xb3)],'Current\x20version:\x20'+_0x5758e9[_0x34de80(0xc4)],_0x5758e9['minimumVersion']?_0x34de80(0xb5)+_0x5758e9[_0x34de80(0xd5)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x5758e9)][_0x34de80(0xbb)](Boolean)[_0x34de80(0xbd)]('\x0a');throw CliErrors[_0x34de80(0xd7)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x45c3c3);}
@@ -1 +1 @@
1
- (function(_0x1ccfed,_0x52ac41){const _0x3372e2=a231_0x511a,_0x13de45=_0x1ccfed();while(!![]){try{const _0x3c5327=parseInt(_0x3372e2(0x114))/0x1*(-parseInt(_0x3372e2(0x116))/0x2)+-parseInt(_0x3372e2(0x113))/0x3*(-parseInt(_0x3372e2(0x10f))/0x4)+parseInt(_0x3372e2(0x100))/0x5*(parseInt(_0x3372e2(0x102))/0x6)+-parseInt(_0x3372e2(0x10a))/0x7*(-parseInt(_0x3372e2(0x108))/0x8)+-parseInt(_0x3372e2(0xff))/0x9+parseInt(_0x3372e2(0x112))/0xa*(-parseInt(_0x3372e2(0x111))/0xb)+parseInt(_0x3372e2(0x104))/0xc;if(_0x3c5327===_0x52ac41)break;else _0x13de45['push'](_0x13de45['shift']());}catch(_0x3ae116){_0x13de45['push'](_0x13de45['shift']());}}}(a231_0x1115,0x6d361));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 a231_0x511a(_0x4987d7,_0x4da602){_0x4987d7=_0x4987d7-0xff;const _0x1115da=a231_0x1115();let _0x511a83=_0x1115da[_0x4987d7];return _0x511a83;}function pickString(_0x4db8f0){const _0x30a3ed=a231_0x511a;return typeof _0x4db8f0===_0x30a3ed(0x107)&&_0x4db8f0[_0x30a3ed(0x101)]()[_0x30a3ed(0x105)]>0x0?_0x4db8f0[_0x30a3ed(0x101)]():null;}function normalizeCliVersionPolicy(_0x2054d9){const _0x5a0c3b=a231_0x511a;if(!_0x2054d9||typeof _0x2054d9!=='object')return null;const _0x572a0f=_0x2054d9,_0x3c5d2b=_0x572a0f[_0x5a0c3b(0x10e)]&&typeof _0x572a0f['cli']===_0x5a0c3b(0x10b)?_0x572a0f['cli']:_0x572a0f,_0x34b242=pickString(_0x3c5d2b[_0x5a0c3b(0x10c)])||pickString(_0x3c5d2b[_0x5a0c3b(0x106)])||pickString(_0x3c5d2b[_0x5a0c3b(0x110)]),_0x3a7126=pickString(_0x3c5d2b['minimumVersion'])||pickString(_0x3c5d2b['minVersion']);if(!_0x34b242&&!_0x3a7126)return null;return{'stableVersion':_0x34b242,'minimumVersion':_0x3a7126,'upgradeMessage':pickString(_0x3c5d2b['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x3c5d2b[_0x5a0c3b(0x117)])||undefined};}export async function fetchCliVersionPolicy(){const _0x4d2ef1=a231_0x511a,_0x4cc974=new AbortController(),_0x5cadbe=setTimeout(()=>_0x4cc974['abort'](),FETCH_TIMEOUT_MS);try{const _0x486d62=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4d2ef1(0x10d)},'signal':_0x4cc974[_0x4d2ef1(0x115)]});if(!_0x486d62['ok'])return null;const _0x2115b5=await _0x486d62[_0x4d2ef1(0x109)]();return normalizeCliVersionPolicy(_0x2115b5);}catch{return null;}finally{clearTimeout(_0x5cadbe);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x16c07d=a231_0x511a,_0x405b6c=Date[_0x16c07d(0x103)]();if(hasCachedPolicy){const _0x357bbe=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x405b6c-cacheTime<_0x357bbe)return cachedPolicy;}const _0x5d6e8f=await fetchCliVersionPolicy();return cachedPolicy=_0x5d6e8f,cacheTime=_0x405b6c,hasCachedPolicy=!![],_0x5d6e8f;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a231_0x1115(){const _0x374b9a=['6068532sTQpYa','length','latestVersion','string','55800KxMuOV','json','273MDpezz','object','stableVersion','application/json','cli','4CrAAZm','recommendedVersion','11sZWlxJ','7152490AGWruH','909159TwmLdo','207BOUoCO','signal','230BeIMlR','minimumVersionMessage','726696lSAMBC','5xZdDwJ','trim','1118028OcIGoS','now'];a231_0x1115=function(){return _0x374b9a;};return a231_0x1115();}
1
+ (function(_0x340150,_0x164f3b){const _0x5c64f4=a244_0x1062,_0x15cc17=_0x340150();while(!![]){try{const _0x2527c6=-parseInt(_0x5c64f4(0x157))/0x1*(-parseInt(_0x5c64f4(0x14e))/0x2)+-parseInt(_0x5c64f4(0x14f))/0x3+parseInt(_0x5c64f4(0x14b))/0x4*(-parseInt(_0x5c64f4(0x15a))/0x5)+parseInt(_0x5c64f4(0x15b))/0x6+-parseInt(_0x5c64f4(0x146))/0x7+parseInt(_0x5c64f4(0x14c))/0x8+-parseInt(_0x5c64f4(0x155))/0x9*(parseInt(_0x5c64f4(0x159))/0xa);if(_0x2527c6===_0x164f3b)break;else _0x15cc17['push'](_0x15cc17['shift']());}catch(_0x3f1bf4){_0x15cc17['push'](_0x15cc17['shift']());}}}(a244_0x2889,0x8475c));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(_0xc9a250){const _0x24af26=a244_0x1062;return typeof _0xc9a250===_0x24af26(0x148)&&_0xc9a250[_0x24af26(0x154)]()['length']>0x0?_0xc9a250[_0x24af26(0x154)]():null;}function a244_0x2889(){const _0x3b7590=['9HyfYMz','recommendedVersion','836054qqkpIh','signal','532410EfZevW','5vAyvbK','2061420jEgDMm','953743xmIXdp','application/json','string','object','upgradeMessage','2388576Oxfnce','6590064gucHYq','minimumVersion','2NDSius','2022576kHaOkB','cli','latestVersion','stableVersion','json','trim'];a244_0x2889=function(){return _0x3b7590;};return a244_0x2889();}function normalizeCliVersionPolicy(_0x4df0a3){const _0x50f801=a244_0x1062;if(!_0x4df0a3||typeof _0x4df0a3!==_0x50f801(0x149))return null;const _0x12655e=_0x4df0a3,_0xd1ecf5=_0x12655e['cli']&&typeof _0x12655e[_0x50f801(0x150)]===_0x50f801(0x149)?_0x12655e['cli']:_0x12655e,_0x5a2014=pickString(_0xd1ecf5[_0x50f801(0x152)])||pickString(_0xd1ecf5[_0x50f801(0x151)])||pickString(_0xd1ecf5[_0x50f801(0x156)]),_0x5d0e3c=pickString(_0xd1ecf5[_0x50f801(0x14d)])||pickString(_0xd1ecf5['minVersion']);if(!_0x5a2014&&!_0x5d0e3c)return null;return{'stableVersion':_0x5a2014,'minimumVersion':_0x5d0e3c,'upgradeMessage':pickString(_0xd1ecf5[_0x50f801(0x14a)])||undefined,'minimumVersionMessage':pickString(_0xd1ecf5['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x216b3b=a244_0x1062,_0x10ce40=new AbortController(),_0x4693f1=setTimeout(()=>_0x10ce40['abort'](),FETCH_TIMEOUT_MS);try{const _0x3996ba=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x216b3b(0x147)},'signal':_0x10ce40[_0x216b3b(0x158)]});if(!_0x3996ba['ok'])return null;const _0x30faf1=await _0x3996ba[_0x216b3b(0x153)]();return normalizeCliVersionPolicy(_0x30faf1);}catch{return null;}finally{clearTimeout(_0x4693f1);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a244_0x1062(_0x530753,_0x18e307){_0x530753=_0x530753-0x146;const _0x28895=a244_0x2889();let _0x106280=_0x28895[_0x530753];return _0x106280;}export async function getCliVersionPolicy(){const _0x5e0fec=Date['now']();if(hasCachedPolicy){const _0x4930a5=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5e0fec-cacheTime<_0x4930a5)return cachedPolicy;}const _0x52d0e1=await fetchCliVersionPolicy();return cachedPolicy=_0x52d0e1,cacheTime=_0x5e0fec,hasCachedPolicy=!![],_0x52d0e1;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a232_0x59af(){const _0x5041ed=['435141YjsqNH','235084SOWMFI','4XVnURa','env','606953tUXScC','3112764xmMVuE','9GgNFmi','1000065ELqZyx','1703600PQFuiE','string','4351788DNSPdM'];a232_0x59af=function(){return _0x5041ed;};return a232_0x59af();}function a232_0x36d7(_0x38b37b,_0x44b770){_0x38b37b=_0x38b37b-0x1ca;const _0x59aff2=a232_0x59af();let _0x36d784=_0x59aff2[_0x38b37b];return _0x36d784;}(function(_0x45ac0a,_0x42ef30){const _0x5af1b3=a232_0x36d7,_0x5be321=_0x45ac0a();while(!![]){try{const _0xfec83d=-parseInt(_0x5af1b3(0x1cc))/0x1+-parseInt(_0x5af1b3(0x1ca))/0x2*(-parseInt(_0x5af1b3(0x1d3))/0x3)+-parseInt(_0x5af1b3(0x1d4))/0x4+-parseInt(_0x5af1b3(0x1cf))/0x5+parseInt(_0x5af1b3(0x1cd))/0x6+parseInt(_0x5af1b3(0x1d2))/0x7+parseInt(_0x5af1b3(0x1d0))/0x8*(-parseInt(_0x5af1b3(0x1ce))/0x9);if(_0xfec83d===_0x42ef30)break;else _0x5be321['push'](_0x5be321['shift']());}catch(_0x2020c6){_0x5be321['push'](_0x5be321['shift']());}}}(a232_0x59af,0x55e8d));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x6129de,getMultiAppConfigs as a232_0x31b534,getTemplateBaseUrl as a232_0x525e2a}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x513786){const _0x528cdd=a232_0x36d7,_0x544dac=readRawConfig(_0x513786);return _0x544dac[_0x528cdd(0x1cb)]&&typeof _0x544dac[_0x528cdd(0x1cb)]===_0x528cdd(0x1d1)&&initEnv(_0x544dac[_0x528cdd(0x1cb)]),_0x544dac;}export function getConfigAppCode(){return a232_0x6129de();}export function getMultiAppConfigs(_0x1d379e='project'){return a232_0x31b534(_0x1d379e);}export function getTemplateBaseUrl(){return a232_0x525e2a();}
1
+ const a245_0x111a65=a245_0x319f;(function(_0x1e1351,_0x2fb374){const _0xf2aeff=a245_0x319f,_0xee4f28=_0x1e1351();while(!![]){try{const _0x4f8ec6=-parseInt(_0xf2aeff(0xd1))/0x1*(parseInt(_0xf2aeff(0xd2))/0x2)+-parseInt(_0xf2aeff(0xd5))/0x3*(parseInt(_0xf2aeff(0xcd))/0x4)+-parseInt(_0xf2aeff(0xd3))/0x5+parseInt(_0xf2aeff(0xcf))/0x6+parseInt(_0xf2aeff(0xd6))/0x7+-parseInt(_0xf2aeff(0xd4))/0x8+parseInt(_0xf2aeff(0xd8))/0x9;if(_0x4f8ec6===_0x2fb374)break;else _0xee4f28['push'](_0xee4f28['shift']());}catch(_0x113c3c){_0xee4f28['push'](_0xee4f28['shift']());}}}(a245_0x6139,0xbd75e));function a245_0x319f(_0x3f2461,_0x3ff4fb){_0x3f2461=_0x3f2461-0xcd;const _0x613936=a245_0x6139();let _0x319f89=_0x613936[_0x3f2461];return _0x319f89;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a245_0xb68015,getMultiAppConfigs as a245_0xb983c8,getTemplateBaseUrl as a245_0x572768}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x547188){const _0x1d1d27=a245_0x319f,_0x507be7=readRawConfig(_0x547188);return _0x507be7[_0x1d1d27(0xd7)]&&typeof _0x507be7[_0x1d1d27(0xd7)]===_0x1d1d27(0xd0)&&initEnv(_0x507be7[_0x1d1d27(0xd7)]),_0x507be7;}export function getConfigAppCode(){return a245_0xb68015();}export function getMultiAppConfigs(_0x383723=a245_0x111a65(0xce)){return a245_0xb983c8(_0x383723);}export function getTemplateBaseUrl(){return a245_0x572768();}function a245_0x6139(){const _0x29e6b9=['project','7672806JXrwEU','string','1hSMObr','779392CnrhgW','4578500UjTWlo','4456edUxWk','3GRPafl','6722212ayPRuC','env','8077383WSYYHw','4218484RbaiGQ'];a245_0x6139=function(){return _0x29e6b9;};return a245_0x6139();}
@@ -1 +1 @@
1
- (function(_0x36c049,_0x5ce308){const _0x18eb4e=a233_0x5423,_0x1a40fa=_0x36c049();while(!![]){try{const _0x1aa5e3=-parseInt(_0x18eb4e(0x81))/0x1+parseInt(_0x18eb4e(0x85))/0x2*(parseInt(_0x18eb4e(0x7e))/0x3)+-parseInt(_0x18eb4e(0x80))/0x4*(-parseInt(_0x18eb4e(0x86))/0x5)+-parseInt(_0x18eb4e(0x88))/0x6+-parseInt(_0x18eb4e(0x7c))/0x7*(-parseInt(_0x18eb4e(0x8b))/0x8)+parseInt(_0x18eb4e(0x89))/0x9+-parseInt(_0x18eb4e(0x8a))/0xa;if(_0x1aa5e3===_0x5ce308)break;else _0x1a40fa['push'](_0x1a40fa['shift']());}catch(_0x518378){_0x1a40fa['push'](_0x1a40fa['shift']());}}}(a233_0x669a,0x55db7));function a233_0x5423(_0x1d948d,_0x12510a){_0x1d948d=_0x1d948d-0x7c;const _0x669a85=a233_0x669a();let _0x542315=_0x669a85[_0x1d948d];return _0x542315;}import a233_0x4a21d2 from'node:path';import a233_0x2678f7 from'node:fs';export async function copyDirectory(_0x1fd609,_0x3ce8af){const _0x5416ca=a233_0x5423;try{const _0x4bf5f3=a233_0x2678f7[_0x5416ca(0x8d)](_0x1fd609,{'withFileTypes':!![]});a233_0x2678f7[_0x5416ca(0x83)](_0x3ce8af,{'recursive':!![]});for(const _0xf8a9b8 of _0x4bf5f3){const _0xe5abf0=a233_0x4a21d2[_0x5416ca(0x7f)](_0x1fd609,_0xf8a9b8[_0x5416ca(0x7d)]),_0x3f8798=a233_0x4a21d2[_0x5416ca(0x7f)](_0x3ce8af,_0xf8a9b8[_0x5416ca(0x7d)]);_0xf8a9b8[_0x5416ca(0x82)]()?await copyDirectory(_0xe5abf0,_0x3f8798):a233_0x2678f7[_0x5416ca(0x87)](_0xe5abf0,_0x3f8798);}}catch(_0x5a8e24){console[_0x5416ca(0x8c)](_0x5416ca(0x84),_0x5a8e24);}}function a233_0x669a(){const _0x443ebe=['error','readdirSync','425635UduExX','name','3HlxwyI','join','28SvZnlc','147234OSZzdF','isDirectory','mkdirSync','复制目录时出错:','911110ltCTLW','388735alrNmj','copyFileSync','866502dtisFu','4050666SHcqbS','14753910dBjhvb','88wHjBWo'];a233_0x669a=function(){return _0x443ebe;};return a233_0x669a();}
1
+ (function(_0x358059,_0x130ff5){const _0x3cd121=a246_0x580c,_0x132f6c=_0x358059();while(!![]){try{const _0x3ec7d7=parseInt(_0x3cd121(0x162))/0x1+parseInt(_0x3cd121(0x169))/0x2*(parseInt(_0x3cd121(0x167))/0x3)+parseInt(_0x3cd121(0x164))/0x4*(-parseInt(_0x3cd121(0x16f))/0x5)+parseInt(_0x3cd121(0x168))/0x6*(parseInt(_0x3cd121(0x16b))/0x7)+parseInt(_0x3cd121(0x170))/0x8*(parseInt(_0x3cd121(0x16d))/0x9)+-parseInt(_0x3cd121(0x171))/0xa*(-parseInt(_0x3cd121(0x166))/0xb)+-parseInt(_0x3cd121(0x16a))/0xc*(-parseInt(_0x3cd121(0x161))/0xd);if(_0x3ec7d7===_0x130ff5)break;else _0x132f6c['push'](_0x132f6c['shift']());}catch(_0x342d98){_0x132f6c['push'](_0x132f6c['shift']());}}}(a246_0x3bad,0xab465));import a246_0x33d70b from'node:path';import a246_0x2f0945 from'node:fs';function a246_0x580c(_0x331aa8,_0x2a2e19){_0x331aa8=_0x331aa8-0x15f;const _0x3bad8e=a246_0x3bad();let _0x580c63=_0x3bad8e[_0x331aa8];return _0x580c63;}function a246_0x3bad(){const _0x3c777c=['readdirSync','5493676kJBEbu','isDirectory','1048190VVHvxS','105981ArpXHk','3892410zDArVm','34oXnNDY','2007204lxSOlr','7SYnSDx','error','9387LUGDvk','name','5xDnMgX','56PAKJKQ','50NtQGJv','join','copyFileSync','13RKPXzW','174648oXseFq'];a246_0x3bad=function(){return _0x3c777c;};return a246_0x3bad();}export async function copyDirectory(_0x4c4655,_0x529961){const _0x4f14b3=a246_0x580c;try{const _0x3868f7=a246_0x2f0945[_0x4f14b3(0x163)](_0x4c4655,{'withFileTypes':!![]});a246_0x2f0945['mkdirSync'](_0x529961,{'recursive':!![]});for(const _0x37df58 of _0x3868f7){const _0x23417d=a246_0x33d70b[_0x4f14b3(0x15f)](_0x4c4655,_0x37df58['name']),_0x3cbb05=a246_0x33d70b[_0x4f14b3(0x15f)](_0x529961,_0x37df58[_0x4f14b3(0x16e)]);_0x37df58[_0x4f14b3(0x165)]()?await copyDirectory(_0x23417d,_0x3cbb05):a246_0x2f0945[_0x4f14b3(0x160)](_0x23417d,_0x3cbb05);}}catch(_0x2a9f49){console[_0x4f14b3(0x16c)]('复制目录时出错:',_0x2a9f49);}}
@@ -1 +1 @@
1
- (function(_0x21916e,_0x325203){const _0x1c9ea4=a234_0x56ce,_0x3f0ec5=_0x21916e();while(!![]){try{const _0x2f1095=parseInt(_0x1c9ea4(0xac))/0x1+-parseInt(_0x1c9ea4(0xa8))/0x2*(-parseInt(_0x1c9ea4(0xae))/0x3)+-parseInt(_0x1c9ea4(0xaf))/0x4*(-parseInt(_0x1c9ea4(0xb2))/0x5)+-parseInt(_0x1c9ea4(0xad))/0x6*(-parseInt(_0x1c9ea4(0xab))/0x7)+parseInt(_0x1c9ea4(0xa9))/0x8*(-parseInt(_0x1c9ea4(0xb3))/0x9)+-parseInt(_0x1c9ea4(0xaa))/0xa+-parseInt(_0x1c9ea4(0xb0))/0xb;if(_0x2f1095===_0x325203)break;else _0x3f0ec5['push'](_0x3f0ec5['shift']());}catch(_0x5a704d){_0x3f0ec5['push'](_0x3f0ec5['shift']());}}}(a234_0x2c4e,0x8399c));function toFiniteNumber(_0x51a7e7){const _0x39051a=a234_0x56ce;if(typeof _0x51a7e7==='number'&&Number[_0x39051a(0xb4)](_0x51a7e7))return _0x51a7e7;if(typeof _0x51a7e7===_0x39051a(0xb1)){const _0x240b00=_0x51a7e7['trim']();if(!_0x240b00)return undefined;const _0x2cf4e9=Number(_0x240b00);if(Number[_0x39051a(0xb4)](_0x2cf4e9))return _0x2cf4e9;}return undefined;}function a234_0x56ce(_0x47def4,_0x2d0294){_0x47def4=_0x47def4-0xa7;const _0x2c4e29=a234_0x2c4e();let _0x56ce22=_0x2c4e29[_0x47def4];return _0x56ce22;}export function normalizeEntityWithIdResponse(_0x36f67d){const _0x2618c6=a234_0x56ce,_0xe37a6f=toFiniteNumber(_0x36f67d);if(_0xe37a6f!==undefined)return{'id':_0xe37a6f,'entity':{'id':_0xe37a6f}};if(!_0x36f67d||typeof _0x36f67d!==_0x2618c6(0xa7))return{'id':undefined,'entity':{}};const _0x3c2b2b={..._0x36f67d},_0x576cae=toFiniteNumber(_0x3c2b2b['id']);return _0x576cae!==undefined&&(_0x3c2b2b['id']=_0x576cae),{'id':_0x576cae,'entity':_0x3c2b2b};}function a234_0x2c4e(){const _0x3efee2=['114500SmsnlL','4329YGLHkR','isFinite','object','1380GkgjNH','7368qwdQcT','5120640lptKjS','7NdamGT','990277NmihXP','3569058Snnuss','2082kYKYVi','40kmxhLl','8787669NETqKG','string'];a234_0x2c4e=function(){return _0x3efee2;};return a234_0x2c4e();}
1
+ function a247_0x487e(){const _0x207fe0=['312qWfxhs','4ggOApK','object','9608610bQxDSC','274902DuMWPP','isFinite','1697562Cqyqlo','72LAYXfP','6YJriJf','1948683azEmRK','trim','4692295LZrFGG','string','115136urUNsG','number','1nmijBh','4095309npKgEF'];a247_0x487e=function(){return _0x207fe0;};return a247_0x487e();}(function(_0x7b7df8,_0x5ac601){const _0x4f6d8b=a247_0x3a91,_0x137f07=_0x7b7df8();while(!![]){try{const _0x4e378c=parseInt(_0x4f6d8b(0x1a9))/0x1*(parseInt(_0x4f6d8b(0x1af))/0x2)+parseInt(_0x4f6d8b(0x1aa))/0x3*(-parseInt(_0x4f6d8b(0x1ac))/0x4)+parseInt(_0x4f6d8b(0x1a5))/0x5*(-parseInt(_0x4f6d8b(0x1b3))/0x6)+-parseInt(_0x4f6d8b(0x1a7))/0x7*(-parseInt(_0x4f6d8b(0x1ab))/0x8)+parseInt(_0x4f6d8b(0x1b1))/0x9+parseInt(_0x4f6d8b(0x1ae))/0xa+-parseInt(_0x4f6d8b(0x1b4))/0xb*(-parseInt(_0x4f6d8b(0x1b2))/0xc);if(_0x4e378c===_0x5ac601)break;else _0x137f07['push'](_0x137f07['shift']());}catch(_0x12c577){_0x137f07['push'](_0x137f07['shift']());}}}(a247_0x487e,0xa7e8e));function toFiniteNumber(_0xcdeff6){const _0x16fd3c=a247_0x3a91;if(typeof _0xcdeff6===_0x16fd3c(0x1a8)&&Number[_0x16fd3c(0x1b0)](_0xcdeff6))return _0xcdeff6;if(typeof _0xcdeff6===_0x16fd3c(0x1a6)){const _0x4cf6ef=_0xcdeff6[_0x16fd3c(0x1a4)]();if(!_0x4cf6ef)return undefined;const _0x3d20a3=Number(_0x4cf6ef);if(Number[_0x16fd3c(0x1b0)](_0x3d20a3))return _0x3d20a3;}return undefined;}function a247_0x3a91(_0x5870ed,_0x1d0e2b){_0x5870ed=_0x5870ed-0x1a4;const _0x487e7b=a247_0x487e();let _0x3a9199=_0x487e7b[_0x5870ed];return _0x3a9199;}export function normalizeEntityWithIdResponse(_0x34aaa1){const _0x24fdad=a247_0x3a91,_0x321abf=toFiniteNumber(_0x34aaa1);if(_0x321abf!==undefined)return{'id':_0x321abf,'entity':{'id':_0x321abf}};if(!_0x34aaa1||typeof _0x34aaa1!==_0x24fdad(0x1ad))return{'id':undefined,'entity':{}};const _0xa407aa={..._0x34aaa1},_0x57e150=toFiniteNumber(_0xa407aa['id']);return _0x57e150!==undefined&&(_0xa407aa['id']=_0x57e150),{'id':_0x57e150,'entity':_0xa407aa};}
@@ -1 +1 @@
1
- function a235_0x2955(_0x428cbf,_0x15cd6d){_0x428cbf=_0x428cbf-0x8d;const _0x416692=a235_0x4166();let _0x2955d5=_0x416692[_0x428cbf];return _0x2955d5;}(function(_0x3f41be,_0x472124){const _0x4f8ecd=a235_0x2955,_0x3d24c8=_0x3f41be();while(!![]){try{const _0x10848a=parseInt(_0x4f8ecd(0x8d))/0x1+-parseInt(_0x4f8ecd(0x90))/0x2+-parseInt(_0x4f8ecd(0x8e))/0x3*(-parseInt(_0x4f8ecd(0x94))/0x4)+parseInt(_0x4f8ecd(0x91))/0x5+-parseInt(_0x4f8ecd(0x95))/0x6*(parseInt(_0x4f8ecd(0x92))/0x7)+-parseInt(_0x4f8ecd(0x96))/0x8*(parseInt(_0x4f8ecd(0x8f))/0x9)+-parseInt(_0x4f8ecd(0x93))/0xa;if(_0x10848a===_0x472124)break;else _0x3d24c8['push'](_0x3d24c8['shift']());}catch(_0x242e3a){_0x3d24c8['push'](_0x3d24c8['shift']());}}}(a235_0x4166,0x2fdf2));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3ba04b,_0x17b762){const _0x468b16=statSync(_0x3ba04b);if(_0x468b16['isDirectory']()){!existsSync(_0x17b762)&&mkdirSync(_0x17b762,{'recursive':!![]});const _0xa1fd99=readdirSync(_0x3ba04b);for(const _0x5d6983 of _0xa1fd99){await copyDir(join(_0x3ba04b,_0x5d6983),join(_0x17b762,_0x5d6983));}}else copyFileSync(_0x3ba04b,_0x17b762);}export function ensureDir(_0x4d41e6){!existsSync(_0x4d41e6)&&mkdirSync(_0x4d41e6,{'recursive':!![]});}function a235_0x4166(){const _0x1f19d0=['2995200Uhfdoe','1011916mhnqHZ','48RGZMSV','1455856CxJtBG','374856jMotmq','3ZKKlMS','9xQoWpu','128234UIzUAj','808810sLvtjm','41909TtNAdG'];a235_0x4166=function(){return _0x1f19d0;};return a235_0x4166();}export function pathExists(_0x39d9a3){return existsSync(_0x39d9a3);}
1
+ (function(_0x460e1f,_0x3a9e0b){const _0x5359d0=a248_0x2bb7,_0x61011d=_0x460e1f();while(!![]){try{const _0x39a8b8=parseInt(_0x5359d0(0x18c))/0x1*(-parseInt(_0x5359d0(0x18d))/0x2)+parseInt(_0x5359d0(0x191))/0x3*(parseInt(_0x5359d0(0x18f))/0x4)+-parseInt(_0x5359d0(0x195))/0x5+parseInt(_0x5359d0(0x18e))/0x6+-parseInt(_0x5359d0(0x190))/0x7*(parseInt(_0x5359d0(0x193))/0x8)+-parseInt(_0x5359d0(0x196))/0x9+parseInt(_0x5359d0(0x192))/0xa;if(_0x39a8b8===_0x3a9e0b)break;else _0x61011d['push'](_0x61011d['shift']());}catch(_0x2ae87e){_0x61011d['push'](_0x61011d['shift']());}}}(a248_0x1fcf,0xd8a11));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a248_0x1fcf(){const _0x3a2cd3=['isDirectory','8042200IaqwxJ','9792009CcDhbU','2RhcUmu','957230NFfRTa','9815220dAjbmL','472lAyzRg','11557UJeKvc','27054BsxncY','32740580flSLOH','6944nGyrWZ'];a248_0x1fcf=function(){return _0x3a2cd3;};return a248_0x1fcf();}import{join}from'node:path';function a248_0x2bb7(_0x3dc581,_0x36ce74){_0x3dc581=_0x3dc581-0x18c;const _0x1fcf88=a248_0x1fcf();let _0x2bb7d9=_0x1fcf88[_0x3dc581];return _0x2bb7d9;}export async function copyDir(_0x3bd723,_0x537f35){const _0x22a230=a248_0x2bb7,_0x1d0677=statSync(_0x3bd723);if(_0x1d0677[_0x22a230(0x194)]()){!existsSync(_0x537f35)&&mkdirSync(_0x537f35,{'recursive':!![]});const _0x435a4d=readdirSync(_0x3bd723);for(const _0x5b6105 of _0x435a4d){await copyDir(join(_0x3bd723,_0x5b6105),join(_0x537f35,_0x5b6105));}}else copyFileSync(_0x3bd723,_0x537f35);}export function ensureDir(_0x4079f9){!existsSync(_0x4079f9)&&mkdirSync(_0x4079f9,{'recursive':!![]});}export function pathExists(_0x13cbae){return existsSync(_0x13cbae);}
@@ -1 +1 @@
1
- function a236_0x17f8(_0x2dbfd5,_0x50cbe9){_0x2dbfd5=_0x2dbfd5-0xfc;const _0x376f3c=a236_0x376f();let _0x17f841=_0x376f3c[_0x2dbfd5];return _0x17f841;}const a236_0x162022=a236_0x17f8;(function(_0x15dc9f,_0x235bac){const _0x3d64b8=a236_0x17f8,_0x270975=_0x15dc9f();while(!![]){try{const _0x5872f7=parseInt(_0x3d64b8(0x100))/0x1*(parseInt(_0x3d64b8(0x10a))/0x2)+parseInt(_0x3d64b8(0xfd))/0x3*(-parseInt(_0x3d64b8(0x10e))/0x4)+parseInt(_0x3d64b8(0x108))/0x5+parseInt(_0x3d64b8(0x109))/0x6+-parseInt(_0x3d64b8(0x113))/0x7*(parseInt(_0x3d64b8(0x117))/0x8)+parseInt(_0x3d64b8(0xff))/0x9*(parseInt(_0x3d64b8(0x101))/0xa)+-parseInt(_0x3d64b8(0x115))/0xb;if(_0x5872f7===_0x235bac)break;else _0x270975['push'](_0x270975['shift']());}catch(_0x460ca8){_0x270975['push'](_0x270975['shift']());}}}(a236_0x376f,0x2fac2));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 _0xb7baea=a236_0x17f8,_0x2b7c1e=getTemplateBaseUrl();return _0x2b7c1e+_0xb7baea(0x107);}const CACHE_DIR=join(homedir(),'.lovrabet',a236_0x162022(0x111));export async function fetchGuidesFromCDN(){const _0x2a0aa7=a236_0x162022,_0x4eb79c=getGuidesCdnUrl(),_0x593876=await fetch(_0x4eb79c,{'headers':{'Accept':_0x2a0aa7(0x106)}});if(!_0x593876['ok'])throw new Error(_0x2a0aa7(0x102)+_0x593876[_0x2a0aa7(0x10c)]+'\x20'+_0x593876['statusText']);const _0x512b43=await _0x593876['json']();if(!_0x512b43[_0x2a0aa7(0x104)]||typeof _0x512b43[_0x2a0aa7(0x104)]!==_0x2a0aa7(0x105))throw new Error(_0x2a0aa7(0x10d));return _0x512b43;}export function writeGuidesToProject(_0x44d2f5,_0x1e9737,_0x12aff4=a236_0x162022(0x10b),_0x43cc1c){const _0x31f31a=a236_0x162022,_0x28d06d=join(_0x1e9737,_0x12aff4);mkdirSync(_0x28d06d,{'recursive':!![]});for(const [_0x991722,_0x33ebb5]of Object['entries'](_0x44d2f5[_0x31f31a(0x104)])){let _0x403e93=_0x33ebb5[_0x31f31a(0x103)];_0x33ebb5[_0x31f31a(0x116)]&&(_0x403e93=appendUpdateTime(_0x403e93,_0x33ebb5[_0x31f31a(0x116)])),writeFileSync(join(_0x28d06d,_0x991722+'.md'),_0x403e93,_0x31f31a(0x112));}}export function appendUpdateTime(_0x13de90,_0x414225){const _0x462470=a236_0x162022;return _0x13de90=_0x13de90[_0x462470(0x110)](/\n*>更新时间:.*$/m,''),_0x13de90['trimEnd']()+('\x0a\x0a>更新时间:'+_0x414225);}export function getSkillTemplate(_0xafda46){const _0x41b42e=a236_0x162022;return _0xafda46[_0x41b42e(0x119)]?.[_0x41b42e(0x103)]||'';}function a236_0x376f(){const _0x1540f7=['join','path','3TMhamy','entries','9IKCSSD','33754uRYicF','1511710BEBJoW','CDN\x20请求失败:\x20','content','guides','object','application/json','/skills/guides.json','867270fJiVVy','319464nLtSXy','22BYkvZu','.lovrabet/skill/guides','status','CDN\x20返回数据格式错误','1304228tMncII','extendContent','replace','cache','utf-8','14dJksNB','trimEnd','2301332gErKPb','lastUpdated','74512RiXXfv','length','skillTemplate','title'];a236_0x376f=function(){return _0x1540f7;};return a236_0x376f();}export function appendExtendContents(_0x4d1c69,_0x20e8b6,_0x2ec0f1){const _0x2fc921=a236_0x162022,_0x2f1577=[];for(const [,_0x56c2a1]of Object['entries'](_0x20e8b6[_0x2fc921(0x104)])){_0x56c2a1[_0x2fc921(0x10f)]&&_0x2f1577['push'](_0x56c2a1['extendContent'][_0x2fc921(0x114)]());}if(_0x2f1577[_0x2fc921(0x118)]===0x0)return _0x4d1c69;return _0x4d1c69['trimEnd']()+'\x0a\x0a'+_0x2f1577[_0x2fc921(0x11b)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5f49dc,_0x30b4e0,_0x72d0dd){const _0x51b2e4=a236_0x162022,_0x4148fb=getSkillTemplate(_0x5f49dc);if(!_0x4148fb)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x1128c5=dirname(_0x30b4e0);mkdirSync(_0x1128c5,{'recursive':!![]});let _0x6380f7=_0x4148fb[_0x51b2e4(0x110)](/\{\{IDE_NAME\}\}/g,_0x72d0dd);_0x6380f7=appendExtendContents(_0x6380f7,_0x5f49dc),_0x5f49dc[_0x51b2e4(0x119)][_0x51b2e4(0x116)]&&(_0x6380f7=appendUpdateTime(_0x6380f7,_0x5f49dc[_0x51b2e4(0x119)][_0x51b2e4(0x116)])),writeFileSync(_0x30b4e0,_0x6380f7,_0x51b2e4(0x112));}export async function installGuides(_0xd409a9){const _0x109b39=a236_0x162022,_0x221ce8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x221ce8,_0xd409a9),Object['keys'](_0x221ce8[_0x109b39(0x104)])['length'];}export function getGuidesSummary(_0x2bb60a){const _0x3a573e=a236_0x162022;return Object[_0x3a573e(0xfe)](_0x2bb60a[_0x3a573e(0x104)])['map'](([_0x5374e5,_0x5c5c90])=>({'key':_0x5374e5,'title':_0x5c5c90[_0x3a573e(0x11a)],'path':_0x5c5c90[_0x3a573e(0xfc)]}));}
1
+ function a249_0x373e(){const _0xaa6d7e=['guides','extendContent','.lovrabet','title','utf-8','push','cache','CDN\x20数据中缺少\x20skillTemplate','entries','application/json','462VWQJcg','keys','1249140AZdgri','CDN\x20请求失败:\x20','/skills/guides.json','60iWmjhf','30suPIVx','content','57701CnkfWu','\x0a\x0a>更新时间:','889371wByZLJ','lastUpdated','.md','2794gtTJWt','skillTemplate','1496408UZvolF','json','101290LdebIy','join','statusText','replace','490832QfVSjN','9VyWMKR','length','map','path','object','trimEnd'];a249_0x373e=function(){return _0xaa6d7e;};return a249_0x373e();}const a249_0x3c42f7=a249_0x3e86;(function(_0x381553,_0x1b9a89){const _0x575cdf=a249_0x3e86,_0x177c8a=_0x381553();while(!![]){try{const _0x5a2ef1=parseInt(_0x575cdf(0x10b))/0x1*(-parseInt(_0x575cdf(0xed))/0x2)+-parseInt(_0x575cdf(0x110))/0x3+parseInt(_0x575cdf(0xef))/0x4+-parseInt(_0x575cdf(0x108))/0x5+parseInt(_0x575cdf(0x10c))/0x6*(-parseInt(_0x575cdf(0x10e))/0x7)+-parseInt(_0x575cdf(0xf5))/0x8*(-parseInt(_0x575cdf(0xf6))/0x9)+parseInt(_0x575cdf(0xf1))/0xa*(parseInt(_0x575cdf(0x106))/0xb);if(_0x5a2ef1===_0x1b9a89)break;else _0x177c8a['push'](_0x177c8a['shift']());}catch(_0x1e7207){_0x177c8a['push'](_0x177c8a['shift']());}}}(a249_0x373e,0x2e472));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 _0x42d878=a249_0x3e86,_0x20ad46=getTemplateBaseUrl();return _0x20ad46+_0x42d878(0x10a);}const CACHE_DIR=join(homedir(),a249_0x3c42f7(0xfe),a249_0x3c42f7(0x102));function a249_0x3e86(_0x128362,_0x5b2953){_0x128362=_0x128362-0xec;const _0x373e7d=a249_0x373e();let _0x3e862e=_0x373e7d[_0x128362];return _0x3e862e;}export async function fetchGuidesFromCDN(){const _0x33f4bd=a249_0x3c42f7,_0x1d0921=getGuidesCdnUrl(),_0x53f90a=await fetch(_0x1d0921,{'headers':{'Accept':_0x33f4bd(0x105)}});if(!_0x53f90a['ok'])throw new Error(_0x33f4bd(0x109)+_0x53f90a['status']+'\x20'+_0x53f90a[_0x33f4bd(0xf3)]);const _0x2d1d5b=await _0x53f90a[_0x33f4bd(0xf0)]();if(!_0x2d1d5b[_0x33f4bd(0xfc)]||typeof _0x2d1d5b[_0x33f4bd(0xfc)]!==_0x33f4bd(0xfa))throw new Error('CDN\x20返回数据格式错误');return _0x2d1d5b;}export function writeGuidesToProject(_0x33cf2e,_0x5ae1e2,_0x335500='.lovrabet/skill/guides',_0xff1442){const _0x4ad8d7=a249_0x3c42f7,_0x17efc4=join(_0x5ae1e2,_0x335500);mkdirSync(_0x17efc4,{'recursive':!![]});for(const [_0x5c31fd,_0x17b87a]of Object[_0x4ad8d7(0x104)](_0x33cf2e[_0x4ad8d7(0xfc)])){let _0x3007e2=_0x17b87a[_0x4ad8d7(0x10d)];_0x17b87a['lastUpdated']&&(_0x3007e2=appendUpdateTime(_0x3007e2,_0x17b87a['lastUpdated'])),writeFileSync(join(_0x17efc4,_0x5c31fd+_0x4ad8d7(0xec)),_0x3007e2,'utf-8');}}export function appendUpdateTime(_0x3e5ec4,_0x91b15c){const _0x144beb=a249_0x3c42f7;return _0x3e5ec4=_0x3e5ec4[_0x144beb(0xf4)](/\n*>更新时间:.*$/m,''),_0x3e5ec4[_0x144beb(0xfb)]()+(_0x144beb(0x10f)+_0x91b15c);}export function getSkillTemplate(_0x3b0229){const _0x73d136=a249_0x3c42f7;return _0x3b0229[_0x73d136(0xee)]?.[_0x73d136(0x10d)]||'';}export function appendExtendContents(_0x5efc7d,_0x538628,_0x151d87){const _0x2d899b=a249_0x3c42f7,_0x3c12aa=[];for(const [,_0x29e810]of Object[_0x2d899b(0x104)](_0x538628[_0x2d899b(0xfc)])){_0x29e810[_0x2d899b(0xfd)]&&_0x3c12aa[_0x2d899b(0x101)](_0x29e810['extendContent'][_0x2d899b(0xfb)]());}if(_0x3c12aa['length']===0x0)return _0x5efc7d;return _0x5efc7d[_0x2d899b(0xfb)]()+'\x0a\x0a'+_0x3c12aa[_0x2d899b(0xf2)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x243da1,_0x199335,_0x2227cc){const _0x508fc8=a249_0x3c42f7,_0x2f6ae8=getSkillTemplate(_0x243da1);if(!_0x2f6ae8)throw new Error(_0x508fc8(0x103));const _0x254a4a=dirname(_0x199335);mkdirSync(_0x254a4a,{'recursive':!![]});let _0x41c80d=_0x2f6ae8[_0x508fc8(0xf4)](/\{\{IDE_NAME\}\}/g,_0x2227cc);_0x41c80d=appendExtendContents(_0x41c80d,_0x243da1),_0x243da1['skillTemplate'][_0x508fc8(0x111)]&&(_0x41c80d=appendUpdateTime(_0x41c80d,_0x243da1[_0x508fc8(0xee)]['lastUpdated'])),writeFileSync(_0x199335,_0x41c80d,_0x508fc8(0x100));}export async function installGuides(_0xae6ac2){const _0x359f94=a249_0x3c42f7,_0x15d945=await fetchGuidesFromCDN();return writeGuidesToProject(_0x15d945,_0xae6ac2),Object[_0x359f94(0x107)](_0x15d945[_0x359f94(0xfc)])[_0x359f94(0xf7)];}export function getGuidesSummary(_0x5d4f61){const _0x7c7ab4=a249_0x3c42f7;return Object[_0x7c7ab4(0x104)](_0x5d4f61[_0x7c7ab4(0xfc)])[_0x7c7ab4(0xf8)](([_0x52aa5d,_0x31d9f0])=>({'key':_0x52aa5d,'title':_0x31d9f0[_0x7c7ab4(0xff)],'path':_0x31d9f0[_0x7c7ab4(0xf9)]}));}
@@ -1 +1 @@
1
- (function(_0x122962,_0x3bb8a6){const _0x299909=a237_0x1cad,_0x3c2291=_0x122962();while(!![]){try{const _0x3d878a=-parseInt(_0x299909(0x72))/0x1+-parseInt(_0x299909(0x83))/0x2*(-parseInt(_0x299909(0x7c))/0x3)+-parseInt(_0x299909(0x65))/0x4+parseInt(_0x299909(0x69))/0x5*(parseInt(_0x299909(0x7f))/0x6)+-parseInt(_0x299909(0x79))/0x7+-parseInt(_0x299909(0x67))/0x8*(-parseInt(_0x299909(0x7b))/0x9)+parseInt(_0x299909(0x70))/0xa*(parseInt(_0x299909(0x74))/0xb);if(_0x3d878a===_0x3bb8a6)break;else _0x3c2291['push'](_0x3c2291['shift']());}catch(_0x2d3285){_0x3c2291['push'](_0x3c2291['shift']());}}}(a237_0xdc00,0xc21e8));export async function httpRequest(_0x50a077,_0x5bef24={}){const _0x4b7689=a237_0x1cad,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5bef24;let _0x582ed9=null;for(let _0x1c1f35=0x0;_0x1c1f35<=retries;_0x1c1f35++){try{const _0x39105a=new AbortController(),_0x3689a0=setTimeout(()=>_0x39105a[_0x4b7689(0x82)](),timeout),_0x13b540=await fetch(_0x50a077,{'headers':headers,'signal':_0x39105a[_0x4b7689(0x71)]});clearTimeout(_0x3689a0);let _0x163265;const _0x5126eb=_0x13b540[_0x4b7689(0x6b)]['get'](_0x4b7689(0x6a));return _0x5126eb?.[_0x4b7689(0x80)](_0x4b7689(0x78))?_0x163265=await _0x13b540[_0x4b7689(0x6c)]():_0x163265=await _0x13b540[_0x4b7689(0x77)](),{'ok':_0x13b540['ok'],'status':_0x13b540[_0x4b7689(0x75)],'statusText':_0x13b540[_0x4b7689(0x81)],'data':_0x163265,'headers':_0x13b540[_0x4b7689(0x6b)],'url':_0x13b540['url'],'text':()=>_0x13b540[_0x4b7689(0x77)]()};}catch(_0x2f28d7){_0x582ed9=_0x2f28d7 instanceof Error?_0x2f28d7:new Error(String(_0x2f28d7));if(_0x1c1f35===retries)break;if(shouldRetry(_0x2f28d7)){console['log'](_0x4b7689(0x7e)+retryDelay+_0x4b7689(0x6e)+(_0x1c1f35+0x1)+_0x4b7689(0x68)),await sleep(retryDelay);continue;}else break;}}throw _0x582ed9||new Error(_0x4b7689(0x84));}function a237_0x1cad(_0x2ccf1c,_0x3965d1){_0x2ccf1c=_0x2ccf1c-0x65;const _0xdc0004=a237_0xdc00();let _0x1cad81=_0xdc0004[_0x2ccf1c];return _0x1cad81;}function a237_0xdc00(){const _0x4701cf=['includes','statusText','abort','4vYpWFp','Request\x20failed','3347788VCTKfW','ENOTFOUND','17720edxFwu','\x20次重试...','331410lBOlgz','content-type','headers','json','AbortError','ms\x20后进行第\x20','name','9679510ihkfCy','signal','1553972QRxzUf','TypeError','22byLCIQ','status','ECONNRESET','text','application/json','10668546uhVvDW','fetch','6219KIIffE','1766040tAOsAO','message','*\x20请求失败,','6agnyuD'];a237_0xdc00=function(){return _0x4701cf;};return a237_0xdc00();}function shouldRetry(_0x546b56){const _0x3f4f69=a237_0x1cad;if(_0x546b56 instanceof Error){if(_0x546b56[_0x3f4f69(0x6f)]===_0x3f4f69(0x6d))return![];if(_0x546b56[_0x3f4f69(0x6f)]===_0x3f4f69(0x73)&&_0x546b56[_0x3f4f69(0x7d)][_0x3f4f69(0x80)](_0x3f4f69(0x7a)))return!![];if(_0x546b56[_0x3f4f69(0x7d)][_0x3f4f69(0x80)](_0x3f4f69(0x76)))return!![];if(_0x546b56['message'][_0x3f4f69(0x80)](_0x3f4f69(0x66)))return![];}return![];}function sleep(_0x4a40dc){return new Promise(_0x2447e5=>setTimeout(_0x2447e5,_0x4a40dc));}export function validateUrl(_0x573045){try{return new URL(_0x573045),!![];}catch{return![];}}
1
+ function a250_0x43f4(){const _0x3476b9=['message','1060190gjUxGu','content-type','9107XElDhB','ms\x20后进行第\x20','10308uHMFPs','statusText','json','66QDOEAS','AbortError','signal','name','73308TkAVzv','705NdWKEM','url','abort','Request\x20failed','\x20次重试...','2929088ISWRJN','5913EGjFCg','186mDRnXD','ECONNRESET','*\x20请求失败,','ENOTFOUND','77yXSOHz','status','9eQxKbU','2977tchAHJ','headers','includes','344611jnZFHo','text'];a250_0x43f4=function(){return _0x3476b9;};return a250_0x43f4();}(function(_0x2400c8,_0x24419a){const _0x1c093c=a250_0x566b,_0xbed920=_0x2400c8();while(!![]){try{const _0x24a2ff=-parseInt(_0x1c093c(0x77))/0x1+parseInt(_0x1c093c(0x81))/0x2*(parseInt(_0x1c093c(0x8c))/0x3)+-parseInt(_0x1c093c(0x7e))/0x4*(-parseInt(_0x1c093c(0x86))/0x5)+parseInt(_0x1c093c(0x6d))/0x6*(parseInt(_0x1c093c(0x7c))/0x7)+-parseInt(_0x1c093c(0x8b))/0x8*(parseInt(_0x1c093c(0x73))/0x9)+-parseInt(_0x1c093c(0x7a))/0xa*(parseInt(_0x1c093c(0x71))/0xb)+parseInt(_0x1c093c(0x85))/0xc*(parseInt(_0x1c093c(0x74))/0xd);if(_0x24a2ff===_0x24419a)break;else _0xbed920['push'](_0xbed920['shift']());}catch(_0x43777c){_0xbed920['push'](_0xbed920['shift']());}}}(a250_0x43f4,0x6545c));export async function httpRequest(_0x4324ab,_0x2daa85={}){const _0x22c06b=a250_0x566b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2daa85;let _0x4968f1=null;for(let _0x59f42b=0x0;_0x59f42b<=retries;_0x59f42b++){try{const _0xc87c86=new AbortController(),_0x3cc749=setTimeout(()=>_0xc87c86[_0x22c06b(0x88)](),timeout),_0x3d1b71=await fetch(_0x4324ab,{'headers':headers,'signal':_0xc87c86[_0x22c06b(0x83)]});clearTimeout(_0x3cc749);let _0x1b7511;const _0xf8600c=_0x3d1b71[_0x22c06b(0x75)]['get'](_0x22c06b(0x7b));return _0xf8600c?.['includes']('application/json')?_0x1b7511=await _0x3d1b71[_0x22c06b(0x80)]():_0x1b7511=await _0x3d1b71[_0x22c06b(0x78)](),{'ok':_0x3d1b71['ok'],'status':_0x3d1b71[_0x22c06b(0x72)],'statusText':_0x3d1b71[_0x22c06b(0x7f)],'data':_0x1b7511,'headers':_0x3d1b71[_0x22c06b(0x75)],'url':_0x3d1b71[_0x22c06b(0x87)],'text':()=>_0x3d1b71['text']()};}catch(_0x389d66){_0x4968f1=_0x389d66 instanceof Error?_0x389d66:new Error(String(_0x389d66));if(_0x59f42b===retries)break;if(shouldRetry(_0x389d66)){console['log'](_0x22c06b(0x6f)+retryDelay+_0x22c06b(0x7d)+(_0x59f42b+0x1)+_0x22c06b(0x8a)),await sleep(retryDelay);continue;}else break;}}throw _0x4968f1||new Error(_0x22c06b(0x89));}function shouldRetry(_0x4223b5){const _0x18058d=a250_0x566b;if(_0x4223b5 instanceof Error){if(_0x4223b5[_0x18058d(0x84)]===_0x18058d(0x82))return![];if(_0x4223b5['name']==='TypeError'&&_0x4223b5[_0x18058d(0x79)][_0x18058d(0x76)]('fetch'))return!![];if(_0x4223b5[_0x18058d(0x79)][_0x18058d(0x76)](_0x18058d(0x6e)))return!![];if(_0x4223b5[_0x18058d(0x79)][_0x18058d(0x76)](_0x18058d(0x70)))return![];}return![];}function sleep(_0x1f78c8){return new Promise(_0x3245eb=>setTimeout(_0x3245eb,_0x1f78c8));}function a250_0x566b(_0x2e1794,_0x3876cb){_0x2e1794=_0x2e1794-0x6d;const _0x43f49d=a250_0x43f4();let _0x566b6f=_0x43f49d[_0x2e1794];return _0x566b6f;}export function validateUrl(_0x524be7){try{return new URL(_0x524be7),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a238_0x5d84(){const _0x39066a=['1026945dCEjKh','nonInteractive','8879823WRiHKS','1246598TbPAcU','true','3422503VPYXTU','6549mKBMYk','isTTY','1148trzfOJ','stdin','isRaw','setRawMode','stdout','5716290QkSTQf','5268784tmfDnb','8RlmdfW'];a238_0x5d84=function(){return _0x39066a;};return a238_0x5d84();}(function(_0x3e8d6d,_0x21fcc0){const _0x5ab5cb=a238_0x3078,_0xfd2a8c=_0x3e8d6d();while(!![]){try{const _0x5a7073=-parseInt(_0x5ab5cb(0x19b))/0x1+-parseInt(_0x5ab5cb(0x1a0))/0x2*(-parseInt(_0x5ab5cb(0x19e))/0x3)+parseInt(_0x5ab5cb(0x1a6))/0x4+-parseInt(_0x5ab5cb(0x1a8))/0x5+-parseInt(_0x5ab5cb(0x1a5))/0x6+-parseInt(_0x5ab5cb(0x19d))/0x7*(parseInt(_0x5ab5cb(0x1a7))/0x8)+parseInt(_0x5ab5cb(0x1aa))/0x9;if(_0x5a7073===_0x21fcc0)break;else _0xfd2a8c['push'](_0xfd2a8c['shift']());}catch(_0x4e748f){_0xfd2a8c['push'](_0xfd2a8c['shift']());}}}(a238_0x5d84,0xa1ed6));function a238_0x3078(_0x4ea257,_0x4e0059){_0x4ea257=_0x4ea257-0x19b;const _0x5d8459=a238_0x5d84();let _0x30788a=_0x5d8459[_0x4ea257];return _0x30788a;}function env(_0x55cb37){return process.env[`RABETBASE_${_0x55cb37}`]||process.env[`LOVRABET_${_0x55cb37}`]||undefined;}export function isNonInteractive(_0x45776d){const _0x2c69cf=a238_0x3078;return!!(_0x45776d[_0x2c69cf(0x1a9)]||_0x45776d['ci']||env('CI')===_0x2c69cf(0x19c)||process.env.CI===_0x2c69cf(0x19c)||!process[_0x2c69cf(0x1a4)][_0x2c69cf(0x19f)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x349478=a238_0x3078;if(!process[_0x349478(0x1a1)][_0x349478(0x19f)])return![];try{const _0x153552=process[_0x349478(0x1a1)][_0x349478(0x1a2)];return process[_0x349478(0x1a1)][_0x349478(0x1a3)](!![]),process['stdin'][_0x349478(0x1a3)](_0x153552??![]),!![];}catch{return![];}}
1
+ function a251_0x4a36(_0x308052,_0x38f140){_0x308052=_0x308052-0x1d9;const _0x5ee687=a251_0x5ee6();let _0x4a36f2=_0x5ee687[_0x308052];return _0x4a36f2;}(function(_0x4f069f,_0x3aa0d8){const _0x3a31c1=a251_0x4a36,_0x38737b=_0x4f069f();while(!![]){try{const _0x3308a8=-parseInt(_0x3a31c1(0x1e9))/0x1*(-parseInt(_0x3a31c1(0x1df))/0x2)+-parseInt(_0x3a31c1(0x1da))/0x3*(parseInt(_0x3a31c1(0x1e1))/0x4)+parseInt(_0x3a31c1(0x1ea))/0x5+-parseInt(_0x3a31c1(0x1db))/0x6*(parseInt(_0x3a31c1(0x1eb))/0x7)+parseInt(_0x3a31c1(0x1e8))/0x8*(parseInt(_0x3a31c1(0x1dd))/0x9)+parseInt(_0x3a31c1(0x1e0))/0xa*(parseInt(_0x3a31c1(0x1e5))/0xb)+parseInt(_0x3a31c1(0x1e2))/0xc;if(_0x3308a8===_0x3aa0d8)break;else _0x38737b['push'](_0x38737b['shift']());}catch(_0x2ac405){_0x38737b['push'](_0x38737b['shift']());}}}(a251_0x5ee6,0x8155e));function a251_0x5ee6(){const _0x388237=['109506SuGLpS','isRaw','1971wUmOKV','setRawMode','3092JCFpwD','204270UuLQIq','21940rRZZld','6474492GAKmzz','isTTY','true','22mHtpcL','nonInteractive','stdin','29656cmKhAG','251GkEFvH','165120QyqEZa','385FYbhXD','stdout','153QgHmlT'];a251_0x5ee6=function(){return _0x388237;};return a251_0x5ee6();}function env(_0x3c80f2){return process.env[`RABETBASE_${_0x3c80f2}`]||process.env[`LOVRABET_${_0x3c80f2}`]||undefined;}export function isNonInteractive(_0x107db5){const _0x59bca8=a251_0x4a36;return!!(_0x107db5[_0x59bca8(0x1e6)]||_0x107db5['ci']||env('CI')===_0x59bca8(0x1e4)||process.env.CI===_0x59bca8(0x1e4)||!process[_0x59bca8(0x1d9)][_0x59bca8(0x1e3)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x47761e=a251_0x4a36;if(!process[_0x47761e(0x1e7)][_0x47761e(0x1e3)])return![];try{const _0x8b99f4=process[_0x47761e(0x1e7)][_0x47761e(0x1dc)];return process[_0x47761e(0x1e7)][_0x47761e(0x1de)](!![]),process[_0x47761e(0x1e7)]['setRawMode'](_0x8b99f4??![]),!![];}catch{return![];}}