@lovrabet/rabetbase-cli 2.5.0-beta.2 → 2.5.0-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 (295) 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/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.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/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/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/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/search.js +1 -1
  107. package/lib/commands/kb/shared.js +1 -1
  108. package/lib/commands/kb/update.js +1 -1
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/menu/visibility-update.js +1 -1
  135. package/lib/commands/notification/config-create.js +1 -1
  136. package/lib/commands/notification/config-delete.js +1 -1
  137. package/lib/commands/notification/config-list.js +1 -1
  138. package/lib/commands/notification/config-update.js +1 -1
  139. package/lib/commands/notification/index.js +1 -1
  140. package/lib/commands/notification/shared.js +1 -1
  141. package/lib/commands/ocr/index.js +1 -1
  142. package/lib/commands/page/create.js +1 -1
  143. package/lib/commands/page/custom/detail.js +1 -1
  144. package/lib/commands/page/custom/list.js +1 -1
  145. package/lib/commands/page/custom/publish.js +1 -1
  146. package/lib/commands/page/custom/shared.js +1 -1
  147. package/lib/commands/page/custom/syntax.js +1 -1
  148. package/lib/commands/page/custom/template.js +1 -1
  149. package/lib/commands/page/custom/update.js +1 -1
  150. package/lib/commands/page/data-list-status.js +1 -1
  151. package/lib/commands/page/generate-start.js +1 -1
  152. package/lib/commands/page/generate-status.js +1 -1
  153. package/lib/commands/page/index.js +1 -1
  154. package/lib/commands/page/pull.js +1 -1
  155. package/lib/commands/page/push.js +1 -1
  156. package/lib/commands/page/relation-audit.js +1 -1
  157. package/lib/commands/page/restore.js +1 -1
  158. package/lib/commands/page/shared.js +1 -1
  159. package/lib/commands/page/sync.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/materialize-project-template.js +1 -1
  164. package/lib/commands/project/create/project-name.js +1 -1
  165. package/lib/commands/project/create/project-template-archive.js +1 -1
  166. package/lib/commands/project/create/project-template-path.js +1 -1
  167. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  168. package/lib/commands/project/create/use-format-code.js +1 -1
  169. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  170. package/lib/commands/project/index.js +1 -1
  171. package/lib/commands/project/upgrade.js +1 -1
  172. package/lib/commands/registry.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -1
  198. package/lib/commands/tenant/members-list.js +1 -1
  199. package/lib/commands/tenant/shared.js +1 -1
  200. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  201. package/lib/commands/user-account/index.js +1 -1
  202. package/lib/commands/workspace/add.js +1 -1
  203. package/lib/commands/workspace/index.js +1 -1
  204. package/lib/commands/workspace/remove.js +1 -1
  205. package/lib/config/domain-config.js +1 -1
  206. package/lib/config/schema.js +1 -1
  207. package/lib/constant/cdn.js +1 -1
  208. package/lib/constant/cli.js +1 -1
  209. package/lib/constant/defaults.js +1 -1
  210. package/lib/constant/domain.js +1 -1
  211. package/lib/constant/env.js +1 -1
  212. package/lib/constant/output.js +1 -1
  213. package/lib/constant/paths.js +1 -1
  214. package/lib/constant/region.js +1 -1
  215. package/lib/constant/risk.js +1 -1
  216. package/lib/context/app-resolver.js +1 -1
  217. package/lib/context/auth-resolver.js +1 -1
  218. package/lib/context/config-loader.js +1 -1
  219. package/lib/context.js +1 -1
  220. package/lib/core/alias-resolver.js +1 -1
  221. package/lib/core/api-client.js +1 -1
  222. package/lib/core/bff/config.js +1 -1
  223. package/lib/core/bff/file-system.js +1 -1
  224. package/lib/core/bff/hash.js +1 -1
  225. package/lib/core/bff/lock.js +1 -1
  226. package/lib/core/bff/utils.js +1 -1
  227. package/lib/core/db-resolver.js +1 -1
  228. package/lib/core/page/file-system.js +1 -1
  229. package/lib/core/page/hash.js +1 -1
  230. package/lib/core/page/lock.js +1 -1
  231. package/lib/core/sql-index-auditor.js +1 -1
  232. package/lib/core/sql-sync/config.js +1 -1
  233. package/lib/core/sql-sync/file-system.js +1 -1
  234. package/lib/core/sql-sync/hash.js +1 -1
  235. package/lib/core/sql-sync/lock.js +1 -1
  236. package/lib/core/sql-sync/utils.js +1 -1
  237. package/lib/core/sql-validator.js +1 -1
  238. package/lib/errors.js +1 -1
  239. package/lib/framework/build-all-flags.js +1 -1
  240. package/lib/framework/error-output.js +1 -1
  241. package/lib/framework/explicit-yes.js +1 -1
  242. package/lib/framework/flags.js +1 -1
  243. package/lib/framework/help.js +1 -1
  244. package/lib/framework/index.js +1 -1
  245. package/lib/framework/output.js +1 -1
  246. package/lib/framework/response.js +1 -1
  247. package/lib/framework/runner-alias.js +1 -1
  248. package/lib/framework/runner.js +1 -1
  249. package/lib/framework/schema-export.js +1 -1
  250. package/lib/framework/types.js +1 -1
  251. package/lib/generated/build-info.d.ts +4 -4
  252. package/lib/generated/build-info.js +1 -1
  253. package/lib/help.js +1 -1
  254. package/lib/postinstall.js +1 -1
  255. package/lib/runtime/confirmation.js +1 -1
  256. package/lib/runtime/event.js +1 -1
  257. package/lib/runtime/index.js +1 -1
  258. package/lib/runtime/queue.js +1 -1
  259. package/lib/runtime/resolve.js +1 -1
  260. package/lib/skills/builtin-skill.js +1 -1
  261. package/lib/skills/main.js +1 -1
  262. package/lib/skills/npx-skills-add.js +1 -1
  263. package/lib/skills/skill-presence.js +1 -1
  264. package/lib/telemetry/cli-command-trace.js +1 -1
  265. package/lib/telemetry/cli-help-trace.js +1 -1
  266. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  267. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  268. package/lib/telemetry/send-cli-trace-log.js +1 -1
  269. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  270. package/lib/utils/ai_config.js +1 -1
  271. package/lib/utils/apply-jq-filter.js +1 -1
  272. package/lib/utils/cdn-config.js +1 -1
  273. package/lib/utils/check-sdk-version.js +1 -1
  274. package/lib/utils/cli-version-check.js +1 -1
  275. package/lib/utils/cli-version-policy.js +1 -1
  276. package/lib/utils/config.js +1 -1
  277. package/lib/utils/entity-with-id.js +1 -1
  278. package/lib/utils/file-utils.js +1 -1
  279. package/lib/utils/guides-cdn.js +1 -1
  280. package/lib/utils/http-client.js +1 -1
  281. package/lib/utils/is-non-interactive.js +1 -1
  282. package/lib/utils/logger.js +1 -1
  283. package/lib/utils/params.js +1 -1
  284. package/lib/utils/platform.js +1 -1
  285. package/lib/utils/sleep.js +1 -1
  286. package/lib/utils/template-replacer.js +1 -1
  287. package/lib/utils/update-notice.js +1 -1
  288. package/lib/utils/version.js +1 -1
  289. package/lib/utils/with-active-cookie.js +1 -1
  290. package/lib/utils/write-cli-side-channel.js +1 -1
  291. package/package.json +1 -1
  292. package/skills/rabetbase/SKILL.md +1 -1
  293. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  294. package/skills/rabetbase/references/rabetbase-page-custom-list.md +5 -2
  295. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a267_0x38a3(){const _0x24b775=['6586881xOYyqG','1818585XLFFPp','message','durationMs','6843685oMNMXW','stringify','rabetbase.command','88162jMQLYF','8035764UdAMub','10MXiHbc','1708868SkUDAV','20275389YWvvEn','test','some','command','[REDACTED]','error','8WDyzPs','service'];a267_0x38a3=function(){return _0x24b775;};return a267_0x38a3();}(function(_0x334cf0,_0x339cd0){const _0x148e6f=a267_0x41c0,_0x40805e=_0x334cf0();while(!![]){try{const _0x6c6e2f=-parseInt(_0x148e6f(0x178))/0x1*(-parseInt(_0x148e6f(0x176))/0x2)+-parseInt(_0x148e6f(0x170))/0x3+-parseInt(_0x148e6f(0x179))/0x4+parseInt(_0x148e6f(0x173))/0x5+parseInt(_0x148e6f(0x177))/0x6+-parseInt(_0x148e6f(0x16f))/0x7*(-parseInt(_0x148e6f(0x180))/0x8)+-parseInt(_0x148e6f(0x17a))/0x9;if(_0x6c6e2f===_0x339cd0)break;else _0x40805e['push'](_0x40805e['shift']());}catch(_0x2200be){_0x40805e['push'](_0x40805e['shift']());}}}(a267_0x38a3,0xc4307));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a267_0x41c0(_0x488725,_0x55a6f6){_0x488725=_0x488725-0x16f;const _0x38a3b5=a267_0x38a3();let _0x41c05e=_0x38a3b5[_0x488725];return _0x41c05e;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4303f2){const _0xd93027=a267_0x41c0;return SENSITIVE_PATTERNS[_0xd93027(0x17c)](_0x1eb0bd=>_0x1eb0bd[_0xd93027(0x17b)](_0x4303f2));}function sanitizeFlags(_0x1468b7){const _0x3e22a0=a267_0x41c0,_0x7cfed4={};for(const [_0x10c5e8,_0x361527]of Object['entries'](_0x1468b7)){isSensitiveKey(_0x10c5e8)?_0x7cfed4[_0x10c5e8]=_0x361527!=null&&_0x361527!==''?_0x3e22a0(0x17e):_0x361527:_0x7cfed4[_0x10c5e8]=_0x361527;}return _0x7cfed4;}export async function reportCommandTrace(_0x436474){const _0xf0f94c=a267_0x41c0;try{const _0xf7b671=sanitizeFlags(_0x436474['flags']);await sendCliTraceLog({'spanName':_0xf0f94c(0x175),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x436474[_0xf0f94c(0x181)],'command.name':_0x436474[_0xf0f94c(0x17d)],'command.flags':JSON[_0xf0f94c(0x174)](_0xf7b671),..._0x436474[_0xf0f94c(0x172)]!=null?{'command.duration_ms':_0x436474[_0xf0f94c(0x172)]}:{},..._0x436474[_0xf0f94c(0x17f)]?{'command.error':_0x436474['error']instanceof Error?_0x436474[_0xf0f94c(0x17f)][_0xf0f94c(0x171)]:String(_0x436474['error'])}:{}}});}catch{}}
1
+ (function(_0x2b4ff0,_0x16cfa3){const _0x4def00=a267_0x3169,_0x346b67=_0x2b4ff0();while(!![]){try{const _0x3f44af=parseInt(_0x4def00(0xa5))/0x1*(parseInt(_0x4def00(0xa6))/0x2)+parseInt(_0x4def00(0x94))/0x3+-parseInt(_0x4def00(0xa8))/0x4*(parseInt(_0x4def00(0x9d))/0x5)+-parseInt(_0x4def00(0x99))/0x6*(-parseInt(_0x4def00(0x95))/0x7)+parseInt(_0x4def00(0x97))/0x8+-parseInt(_0x4def00(0xa7))/0x9*(-parseInt(_0x4def00(0x98))/0xa)+-parseInt(_0x4def00(0x96))/0xb;if(_0x3f44af===_0x16cfa3)break;else _0x346b67['push'](_0x346b67['shift']());}catch(_0x18eb41){_0x346b67['push'](_0x346b67['shift']());}}}(a267_0x42ac,0x7d2e9));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a267_0x42ac(){const _0x65efb=['570312DGcSGB','1211PntYBK','13395976TZCNsk','1566872BlxRdG','572720VqKgwM','6246OIfzkj','entries','durationMs','command','4085FfapVx','service','some','error','stringify','flags','rabetbase.command','test','1GoAsqx','1517392bNbhgD','153HJaACU','2780jwYDvY','[REDACTED]'];a267_0x42ac=function(){return _0x65efb;};return a267_0x42ac();}import{getCliVersion}from'../utils/version.js';function a267_0x3169(_0x31ae38,_0x33ae35){_0x31ae38=_0x31ae38-0x94;const _0x42ac07=a267_0x42ac();let _0x316900=_0x42ac07[_0x31ae38];return _0x316900;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x738ca7){const _0x4625d3=a267_0x3169;return SENSITIVE_PATTERNS[_0x4625d3(0x9f)](_0x3525fa=>_0x3525fa[_0x4625d3(0xa4)](_0x738ca7));}function sanitizeFlags(_0x32ccda){const _0x20164a=a267_0x3169,_0x1e48aa={};for(const [_0x542457,_0x21d591]of Object[_0x20164a(0x9a)](_0x32ccda)){isSensitiveKey(_0x542457)?_0x1e48aa[_0x542457]=_0x21d591!=null&&_0x21d591!==''?_0x20164a(0xa9):_0x21d591:_0x1e48aa[_0x542457]=_0x21d591;}return _0x1e48aa;}export async function reportCommandTrace(_0x4d0552){const _0x9e5ea6=a267_0x3169;try{const _0x4500a9=sanitizeFlags(_0x4d0552[_0x9e5ea6(0xa2)]);await sendCliTraceLog({'spanName':_0x9e5ea6(0xa3),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4d0552[_0x9e5ea6(0x9e)],'command.name':_0x4d0552[_0x9e5ea6(0x9c)],'command.flags':JSON[_0x9e5ea6(0xa1)](_0x4500a9),..._0x4d0552[_0x9e5ea6(0x9b)]!=null?{'command.duration_ms':_0x4d0552[_0x9e5ea6(0x9b)]}:{},..._0x4d0552[_0x9e5ea6(0xa0)]?{'command.error':_0x4d0552[_0x9e5ea6(0xa0)]instanceof Error?_0x4d0552[_0x9e5ea6(0xa0)]['message']:String(_0x4d0552[_0x9e5ea6(0xa0)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x7ee333,_0x249cc8){var _0x18e0e9=a268_0x3cda,_0x211b97=_0x7ee333();while(!![]){try{var _0x20a29c=-parseInt(_0x18e0e9(0x137))/0x1*(-parseInt(_0x18e0e9(0x134))/0x2)+-parseInt(_0x18e0e9(0x131))/0x3*(-parseInt(_0x18e0e9(0x130))/0x4)+-parseInt(_0x18e0e9(0x13a))/0x5*(parseInt(_0x18e0e9(0x135))/0x6)+-parseInt(_0x18e0e9(0x132))/0x7*(-parseInt(_0x18e0e9(0x13c))/0x8)+parseInt(_0x18e0e9(0x136))/0x9*(-parseInt(_0x18e0e9(0x133))/0xa)+-parseInt(_0x18e0e9(0x12d))/0xb+-parseInt(_0x18e0e9(0x12e))/0xc*(parseInt(_0x18e0e9(0x138))/0xd);if(_0x20a29c===_0x249cc8)break;else _0x211b97['push'](_0x211b97['shift']());}catch(_0x1f1db0){_0x211b97['push'](_0x211b97['shift']());}}}(a268_0x5757,0x29dd0));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x53cbe5,_0x736daa){var _0x551b6e=a268_0x3cda;try{await sendCliTraceLog({'spanName':_0x551b6e(0x13b),'logData':{'rabetbase.help.kind':_0x53cbe5,..._0x736daa?.[_0x551b6e(0x13d)]&&{'rabetbase.help.service':_0x736daa['service']}}});}catch(_0xabafb){console[_0x551b6e(0x12f)](_0x551b6e(0x139),_0xabafb);}}function a268_0x3cda(_0x26dfcd,_0x1a3786){_0x26dfcd=_0x26dfcd-0x12d;var _0x5757ed=a268_0x5757();var _0x3cda74=_0x5757ed[_0x26dfcd];return _0x3cda74;}function a268_0x5757(){var _0x276b2d=['3936mjECxy','666gZhUYl','338119gjCips','1469usKWiG','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1605mumdjw','cli.help','8FUcfSH','service','47663kSfLxJ','8892rjKdyI','error','652572rorTUH','3wToqxo','1387246LxYcWJ','30990xLrbkx','2KcOKqi'];a268_0x5757=function(){return _0x276b2d;};return a268_0x5757();}
1
+ function a268_0x4ea0(_0x17d2b7,_0x51f96d){_0x17d2b7=_0x17d2b7-0x11d;var _0x3458db=a268_0x3458();var _0x4ea077=_0x3458db[_0x17d2b7];return _0x4ea077;}(function(_0x3eaaf7,_0x1b36eb){var _0x1de162=a268_0x4ea0,_0x8bebb6=_0x3eaaf7();while(!![]){try{var _0x3dac8c=parseInt(_0x1de162(0x120))/0x1+-parseInt(_0x1de162(0x125))/0x2+-parseInt(_0x1de162(0x128))/0x3+parseInt(_0x1de162(0x11e))/0x4*(parseInt(_0x1de162(0x123))/0x5)+-parseInt(_0x1de162(0x127))/0x6*(-parseInt(_0x1de162(0x121))/0x7)+-parseInt(_0x1de162(0x11d))/0x8*(parseInt(_0x1de162(0x126))/0x9)+parseInt(_0x1de162(0x129))/0xa;if(_0x3dac8c===_0x1b36eb)break;else _0x8bebb6['push'](_0x8bebb6['shift']());}catch(_0x4be50b){_0x8bebb6['push'](_0x8bebb6['shift']());}}}(a268_0x3458,0x966f5));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a268_0x3458(){var _0x522945=['error','781138YLzdgG','2286NZNITp','12EmUlOp','2915130yGwGHn','5898590gVwsYC','20112GysDFC','409388eIzMaz','service','336796egvTgR','2692333FgYawy','Failed\x20to\x20report\x20CLI\x20help\x20trace:','45BVBKfB'];a268_0x3458=function(){return _0x522945;};return a268_0x3458();}export async function reportCliHelpTrace(_0x14acfd,_0x56641d){var _0xd64d1d=a268_0x4ea0;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x14acfd,..._0x56641d?.[_0xd64d1d(0x11f)]&&{'rabetbase.help.service':_0x56641d[_0xd64d1d(0x11f)]}}});}catch(_0x31b35e){console[_0xd64d1d(0x124)](_0xd64d1d(0x122),_0x31b35e);}}
@@ -1 +1 @@
1
- (function(_0x14a6a9,_0x5a3995){const _0x31b295=a269_0x1175,_0x427686=_0x14a6a9();while(!![]){try{const _0x851596=-parseInt(_0x31b295(0xab))/0x1+-parseInt(_0x31b295(0xb5))/0x2+parseInt(_0x31b295(0xb4))/0x3+parseInt(_0x31b295(0xb3))/0x4+parseInt(_0x31b295(0xaf))/0x5*(parseInt(_0x31b295(0xaa))/0x6)+parseInt(_0x31b295(0xb0))/0x7+parseInt(_0x31b295(0xb7))/0x8*(parseInt(_0x31b295(0xa8))/0x9);if(_0x851596===_0x5a3995)break;else _0x427686['push'](_0x427686['shift']());}catch(_0x7a2744){_0x427686['push'](_0x427686['shift']());}}}(a269_0x4e0e,0xa5559));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a269_0x1175(_0x1f95c1,_0x5559ed){_0x1f95c1=_0x1f95c1-0xa8;const _0x4e0e19=a269_0x4e0e();let _0x117553=_0x4e0e19[_0x1f95c1];return _0x117553;}import{getConfigAppCode}from'../utils/config.js';function a269_0x4e0e(){const _0x48e50c=['production','unknown','user','4270325taxeaA','3511991eSrgVJ','email','username','1663944cvYiGl','109392oLPTxk','2524170uTqdah','daily','80wAtKWc','276327FsaEmd','tenant_code','6hwyIax','175964jAuhtK'];a269_0x4e0e=function(){return _0x48e50c;};return a269_0x4e0e();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1735d9=a269_0x1175,_0x27faea=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1fd41f=_0x27faea?.[_0x1735d9(0xae)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1735d9(0xad)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1735d9(0xb6):_0x1735d9(0xac))}),setUserContext({'id':_0x1fd41f?.['id'],'username':_0x1fd41f?.[_0x1735d9(0xb2)],'nickname':_0x1fd41f?.['nickname'],'email':_0x1fd41f?.[_0x1735d9(0xb1)],'tenantCode':_0x1fd41f?.['tenant']?.[_0x1735d9(0xa9)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x27faea;}
1
+ (function(_0x4d25e4,_0x3d5f93){const _0x5137c7=a269_0x3654,_0x1f998f=_0x4d25e4();while(!![]){try{const _0x5ac1dc=parseInt(_0x5137c7(0xa5))/0x1*(parseInt(_0x5137c7(0xa2))/0x2)+parseInt(_0x5137c7(0xaf))/0x3+-parseInt(_0x5137c7(0xa7))/0x4*(-parseInt(_0x5137c7(0xb2))/0x5)+parseInt(_0x5137c7(0xab))/0x6+-parseInt(_0x5137c7(0xa9))/0x7+parseInt(_0x5137c7(0xb1))/0x8+parseInt(_0x5137c7(0xae))/0x9*(-parseInt(_0x5137c7(0xac))/0xa);if(_0x5ac1dc===_0x3d5f93)break;else _0x1f998f['push'](_0x1f998f['shift']());}catch(_0x50c258){_0x1f998f['push'](_0x1f998f['shift']());}}}(a269_0x2a7f,0x6379e));function a269_0x3654(_0x4065f9,_0x2af8fb){_0x4065f9=_0x4065f9-0xa1;const _0x2a7fdc=a269_0x2a7f();let _0x36542d=_0x2a7fdc[_0x4065f9];return _0x36542d;}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';function a269_0x2a7f(){const _0x575af9=['1650300zXNZfI','50020bdFsru','unknown','1548GrsypV','300726CKtOkY','nickname','519864vOmjWz','3363305AGMrWK','email','4fXZrNI','tenant','username','403435CuKixV','tenant_code','4jcSOcw','user','4564056fadfuH','production'];a269_0x2a7f=function(){return _0x575af9;};return a269_0x2a7f();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x498702=a269_0x3654,_0x535e8d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5ac48e=_0x535e8d?.[_0x498702(0xa8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x498702(0xad)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x498702(0xaa))}),setUserContext({'id':_0x5ac48e?.['id'],'username':_0x5ac48e?.[_0x498702(0xa4)],'nickname':_0x5ac48e?.[_0x498702(0xb0)],'email':_0x5ac48e?.[_0x498702(0xa1)],'tenantCode':_0x5ac48e?.[_0x498702(0xa3)]?.[_0x498702(0xa6)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x535e8d;}
@@ -1 +1 @@
1
- (function(_0x39d56a,_0x26caf9){const _0x4ffea3=a270_0x9b29,_0x48de43=_0x39d56a();while(!![]){try{const _0x143d0d=-parseInt(_0x4ffea3(0xdc))/0x1*(parseInt(_0x4ffea3(0xdf))/0x2)+-parseInt(_0x4ffea3(0xda))/0x3*(parseInt(_0x4ffea3(0xdb))/0x4)+parseInt(_0x4ffea3(0xde))/0x5+-parseInt(_0x4ffea3(0xd3))/0x6*(-parseInt(_0x4ffea3(0xd9))/0x7)+-parseInt(_0x4ffea3(0xe1))/0x8+parseInt(_0x4ffea3(0xd5))/0x9*(parseInt(_0x4ffea3(0xd2))/0xa)+parseInt(_0x4ffea3(0xd6))/0xb*(-parseInt(_0x4ffea3(0xd0))/0xc);if(_0x143d0d===_0x26caf9)break;else _0x48de43['push'](_0x48de43['shift']());}catch(_0x5e17ee){_0x48de43['push'](_0x48de43['shift']());}}}(a270_0x9dcf,0x997cb));import{shutdownTraces}from'@lovrabet/otel-logger';function a270_0x9b29(_0x16913c,_0x6e5ebc){_0x16913c=_0x16913c-0xd0;const _0x9dcfc9=a270_0x9dcf();let _0x9b29b5=_0x9dcfc9[_0x16913c];return _0x9b29b5;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x563aed=a270_0x9b29;process[_0x563aed(0xd8)](_0x563aed(0xd1),()=>{void flushOtelNodeIfUsed();});const _0xae3cbe=()=>{const _0x4382b0=_0x563aed;void flushOtelNodeIfUsed()[_0x4382b0(0xd7)](()=>process[_0x4382b0(0xe0)](0x0));};process['once'](_0x563aed(0xd4),_0xae3cbe),process[_0x563aed(0xd8)](_0x563aed(0xdd),_0xae3cbe);}export async function exitWithOtelShutdown(_0x46adb2){await flushOtelNodeIfUsed(),process['exit'](_0x46adb2);}function a270_0x9dcf(){const _0x1e5b15=['18mTcUZy','exit','2285000CakDCt','84wUYxpy','beforeExit','20IHegaM','6xumHqq','SIGINT','769644yicgWe','314809WULExs','then','once','8727677IJPrEy','5166UeYEFF','444iNVNMP','46327tEFAHV','SIGTERM','1524415jGKMco'];a270_0x9dcf=function(){return _0x1e5b15;};return a270_0x9dcf();}
1
+ (function(_0x1a494e,_0x87db5e){const _0x5d81c4=a270_0x347f,_0x20332c=_0x1a494e();while(!![]){try{const _0x39cfa0=-parseInt(_0x5d81c4(0x11f))/0x1+parseInt(_0x5d81c4(0x119))/0x2+parseInt(_0x5d81c4(0x11b))/0x3*(parseInt(_0x5d81c4(0x11a))/0x4)+-parseInt(_0x5d81c4(0x122))/0x5*(-parseInt(_0x5d81c4(0x120))/0x6)+parseInt(_0x5d81c4(0x126))/0x7+parseInt(_0x5d81c4(0x123))/0x8+-parseInt(_0x5d81c4(0x118))/0x9;if(_0x39cfa0===_0x87db5e)break;else _0x20332c['push'](_0x20332c['shift']());}catch(_0x3e7476){_0x20332c['push'](_0x20332c['shift']());}}}(a270_0x2485,0x2caa9));import{shutdownTraces}from'@lovrabet/otel-logger';function a270_0x347f(_0x3cd408,_0x53ce9e){_0x3cd408=_0x3cd408-0x118;const _0x248582=a270_0x2485();let _0x347f82=_0x248582[_0x3cd408];return _0x347f82;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x370be3=a270_0x347f;process[_0x370be3(0x124)](_0x370be3(0x11d),()=>{void flushOtelNodeIfUsed();});const _0x536d09=()=>{const _0x2dd518=_0x370be3;void flushOtelNodeIfUsed()[_0x2dd518(0x11c)](()=>process[_0x2dd518(0x121)](0x0));};process[_0x370be3(0x124)](_0x370be3(0x125),_0x536d09),process[_0x370be3(0x124)](_0x370be3(0x11e),_0x536d09);}export async function exitWithOtelShutdown(_0x2e1b7a){const _0x3acc56=a270_0x347f;await flushOtelNodeIfUsed(),process[_0x3acc56(0x121)](_0x2e1b7a);}function a270_0x2485(){const _0x22dddd=['173455sQmvtr','2186056ltOeCt','once','SIGINT','600425NnqloL','5703687NMqScZ','511000XcRBhb','5540RHxjpg','195KTtoEo','then','beforeExit','SIGTERM','96007NystCC','36CBeZTe','exit'];a270_0x2485=function(){return _0x22dddd;};return a270_0x2485();}
@@ -1 +1 @@
1
- const a271_0xc9af94=a271_0x2f18;(function(_0x1b49c2,_0x25a0ba){const _0x22ad23=a271_0x2f18,_0x1d8a18=_0x1b49c2();while(!![]){try{const _0x1f1df0=-parseInt(_0x22ad23(0xa8))/0x1*(parseInt(_0x22ad23(0xb8))/0x2)+-parseInt(_0x22ad23(0xb7))/0x3+-parseInt(_0x22ad23(0xb6))/0x4*(-parseInt(_0x22ad23(0xb0))/0x5)+parseInt(_0x22ad23(0xa9))/0x6*(-parseInt(_0x22ad23(0xb5))/0x7)+-parseInt(_0x22ad23(0xaf))/0x8*(-parseInt(_0x22ad23(0xae))/0x9)+-parseInt(_0x22ad23(0xad))/0xa*(-parseInt(_0x22ad23(0xb4))/0xb)+parseInt(_0x22ad23(0xb3))/0xc*(parseInt(_0x22ad23(0xb2))/0xd);if(_0x1f1df0===_0x25a0ba)break;else _0x1d8a18['push'](_0x1d8a18['shift']());}catch(_0x3b1f00){_0x1d8a18['push'](_0x1d8a18['shift']());}}}(a271_0x1f0c,0x23cf9));function a271_0x1f0c(){const _0xf8c682=['manual','2810VWKeJt','42237rSDafI','8XhcfIb','5vlLeKf','logData','1313Crzoem','38988dTMHrT','8107shHHNP','136178rcgPHL','40472cRURBK','312456IudjNL','5540vQtnSd','101tpIxBs','6yHSDzL','rabetbase-cli','traceparent'];a271_0x1f0c=function(){return _0xf8c682;};return a271_0x1f0c();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a271_0x2f18(_0x161cde,_0x57e04b){_0x161cde=_0x161cde-0xa8;const _0x1f0c67=a271_0x1f0c();let _0x2f1889=_0x1f0c67[_0x161cde];return _0x2f1889;}const DEFAULT_TRACE_NAME=a271_0xc9af94(0xaa);export async function sendCliTraceLog(_0x127cc0){const _0x7a342c=a271_0xc9af94;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x127cc0['traceName']??DEFAULT_TRACE_NAME,'version':_0x127cc0['version']??getCliVersion(),'spanName':_0x127cc0['spanName'],'eventType':_0x7a342c(0xac),'logData':_0x127cc0[_0x7a342c(0xb1)],..._0x127cc0[_0x7a342c(0xab)]&&{'traceparent':_0x127cc0[_0x7a342c(0xab)]}});}
1
+ const a271_0x313bd8=a271_0x171b;(function(_0x42f3ca,_0x35b445){const _0x56eca7=a271_0x171b,_0x32c7dd=_0x42f3ca();while(!![]){try{const _0x3baf3e=-parseInt(_0x56eca7(0x1a6))/0x1*(parseInt(_0x56eca7(0x1a7))/0x2)+-parseInt(_0x56eca7(0x1a8))/0x3*(-parseInt(_0x56eca7(0x1a9))/0x4)+-parseInt(_0x56eca7(0x19e))/0x5+parseInt(_0x56eca7(0x1ac))/0x6+parseInt(_0x56eca7(0x19f))/0x7+parseInt(_0x56eca7(0x1a1))/0x8*(parseInt(_0x56eca7(0x1a5))/0x9)+-parseInt(_0x56eca7(0x1a0))/0xa;if(_0x3baf3e===_0x35b445)break;else _0x32c7dd['push'](_0x32c7dd['shift']());}catch(_0x3580db){_0x32c7dd['push'](_0x32c7dd['shift']());}}}(a271_0x4548,0xf1375));import{sendTraceLog}from'@lovrabet/otel-logger';function a271_0x4548(){const _0x248db8=['manual','9VuBlGv','14DodwcJ','96518whVuEV','3LYesTU','2954284hspPQj','spanName','traceparent','3499284OnTgYU','5738005lqldmT','7693490ROrtRi','9824410SIKNQq','10982672iYkHdL','version','rabetbase-cli'];a271_0x4548=function(){return _0x248db8;};return a271_0x4548();}function a271_0x171b(_0x216fa4,_0x3bf2ea){_0x216fa4=_0x216fa4-0x19e;const _0x454805=a271_0x4548();let _0x171baa=_0x454805[_0x216fa4];return _0x171baa;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a271_0x313bd8(0x1a3);export async function sendCliTraceLog(_0x45919a){const _0x14a17e=a271_0x313bd8;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x45919a['traceName']??DEFAULT_TRACE_NAME,'version':_0x45919a[_0x14a17e(0x1a2)]??getCliVersion(),'spanName':_0x45919a[_0x14a17e(0x1aa)],'eventType':_0x14a17e(0x1a4),'logData':_0x45919a['logData'],..._0x45919a[_0x14a17e(0x1ab)]&&{'traceparent':_0x45919a['traceparent']}});}
@@ -1 +1 @@
1
- function a272_0x266f(_0x53fbd1,_0x5e8787){_0x53fbd1=_0x53fbd1-0xa7;const _0x4db619=a272_0x4db6();let _0x266faa=_0x4db619[_0x53fbd1];return _0x266faa;}const a272_0x4e8e86=a272_0x266f;(function(_0x3ecd11,_0xc58551){const _0x677e45=a272_0x266f,_0x4ae2fe=_0x3ecd11();while(!![]){try{const _0x44b732=-parseInt(_0x677e45(0xb3))/0x1+parseInt(_0x677e45(0xb6))/0x2*(parseInt(_0x677e45(0xab))/0x3)+parseInt(_0x677e45(0xb5))/0x4+parseInt(_0x677e45(0xa8))/0x5+parseInt(_0x677e45(0xae))/0x6*(-parseInt(_0x677e45(0xad))/0x7)+-parseInt(_0x677e45(0xb2))/0x8*(parseInt(_0x677e45(0xac))/0x9)+parseInt(_0x677e45(0xa7))/0xa*(parseInt(_0x677e45(0xb1))/0xb);if(_0x44b732===_0xc58551)break;else _0x4ae2fe['push'](_0x4ae2fe['shift']());}catch(_0x30e75f){_0x4ae2fe['push'](_0x4ae2fe['shift']());}}}(a272_0x4db6,0xa8e2f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a272_0x4e8e86(0xaa);function a272_0x4db6(){const _0x1d4f83=['issue.log.collect','3vMNGWK','6225192ubFMns','11676xCsPvn','12JMYiCR','sanitize','redactionKinds','379709lbZlAm','8USCxMF','202811lasUXu','title','818788xNfbsT','1282574tFDdzX','originalBytes','110aMeCAI','1819505ANMuvU','join'];a272_0x4db6=function(){return _0x1d4f83;};return a272_0x4db6();}export async function sendPlatformIssueCollectLog(_0x2255c1){const _0x3f228f=a272_0x4e8e86;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2255c1[_0x3f228f(0xb4)],'issue.description':_0x2255c1['description'],..._0x2255c1[_0x3f228f(0xaf)]?{'issue.description_original_bytes':_0x2255c1[_0x3f228f(0xaf)][_0x3f228f(0xb7)],'issue.description_truncated':_0x2255c1[_0x3f228f(0xaf)]['truncated'],'issue.description_redactions':_0x2255c1[_0x3f228f(0xaf)]['redactionCount'],'issue.description_redaction_kinds':_0x2255c1[_0x3f228f(0xaf)][_0x3f228f(0xb0)][_0x3f228f(0xa9)](',')}:{}}});}
1
+ function a272_0x1768(){const _0x3784b4=['99hvCdfM','519194llNmxb','description','734722lsbzlt','132360fRfvcu','redactionKinds','12404mwrNhb','5QQlQcN','458300ugYXdG','redactionCount','486SwAJsz','1780639bklwWK','join','issue.log.collect','sanitize','originalBytes','9VCQtNa','133398FDOSEc'];a272_0x1768=function(){return _0x3784b4;};return a272_0x1768();}const a272_0x1dcfd5=a272_0x1895;(function(_0x23590d,_0x309d2d){const _0x22e62c=a272_0x1895,_0x5076fa=_0x23590d();while(!![]){try{const _0x4a0cf6=parseInt(_0x22e62c(0x140))/0x1+-parseInt(_0x22e62c(0x142))/0x2+-parseInt(_0x22e62c(0x137))/0x3*(parseInt(_0x22e62c(0x145))/0x4)+-parseInt(_0x22e62c(0x146))/0x5*(parseInt(_0x22e62c(0x13e))/0x6)+parseInt(_0x22e62c(0x138))/0x7+-parseInt(_0x22e62c(0x143))/0x8*(parseInt(_0x22e62c(0x13d))/0x9)+parseInt(_0x22e62c(0x147))/0xa*(parseInt(_0x22e62c(0x13f))/0xb);if(_0x4a0cf6===_0x309d2d)break;else _0x5076fa['push'](_0x5076fa['shift']());}catch(_0x3ca17d){_0x5076fa['push'](_0x5076fa['shift']());}}}(a272_0x1768,0x43c24));function a272_0x1895(_0x1b34f7,_0xac89fe){_0x1b34f7=_0x1b34f7-0x136;const _0x17689c=a272_0x1768();let _0x1895db=_0x17689c[_0x1b34f7];return _0x1895db;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a272_0x1dcfd5(0x13a);export async function sendPlatformIssueCollectLog(_0x55bf72){const _0x344eeb=a272_0x1dcfd5;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x55bf72['title'],'issue.description':_0x55bf72[_0x344eeb(0x141)],..._0x55bf72[_0x344eeb(0x13b)]?{'issue.description_original_bytes':_0x55bf72[_0x344eeb(0x13b)][_0x344eeb(0x13c)],'issue.description_truncated':_0x55bf72['sanitize']['truncated'],'issue.description_redactions':_0x55bf72['sanitize'][_0x344eeb(0x136)],'issue.description_redaction_kinds':_0x55bf72['sanitize'][_0x344eeb(0x144)][_0x344eeb(0x139)](',')}:{}}});}
@@ -1 +1 @@
1
- const a274_0x2502bd=a274_0x5ae2;(function(_0x5b894b,_0x2a1f1d){const _0x37e0de=a274_0x5ae2,_0x3411c4=_0x5b894b();while(!![]){try{const _0x4d836b=parseInt(_0x37e0de(0xc9))/0x1+-parseInt(_0x37e0de(0xcd))/0x2+parseInt(_0x37e0de(0xd5))/0x3*(-parseInt(_0x37e0de(0xd7))/0x4)+parseInt(_0x37e0de(0xc0))/0x5+parseInt(_0x37e0de(0xb3))/0x6+-parseInt(_0x37e0de(0xce))/0x7+parseInt(_0x37e0de(0xcc))/0x8;if(_0x4d836b===_0x2a1f1d)break;else _0x3411c4['push'](_0x3411c4['shift']());}catch(_0x2b48b8){_0x3411c4['push'](_0x3411c4['shift']());}}}(a274_0x2cdf,0x748a4));function a274_0x2cdf(){const _0x15dcb5=['Qoder\x20IDE','Claude\x20Code','claude','antigravity','trae','Cursor\x20IDE','Cline','opencode','.windsurf/workflows/rabetbase.md','cline','.opencode','cursor','Codex','1234320JNbxEQ','.codebuddy/skills/lovrabet/SKILL.md','Codex\x20IDE','codex','.qoder/rules/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','.trae','codebuddy','.cursor/skills/rabetbase.md','qoder','windsurf','Qoder','Antigravity','3661245SUfobe','Trae','Trae\x20IDE','Windsurf','CodeBuddy\x20IDE','Cline\x20IDE','.qoder','.agent/skills/lovrabet/SKILL.md','.cursorrules','154436cjwJyM','.cursor','Antigravity\x20IDE','3896976gYLgUH','691198jVWaPq','3819795abIHIF','.qoder/skills/lovrabet/SKILL.md','Cursor','OpenCode\x20IDE','agent','Generic\x20template\x20fallback','.agent','3Kmmrwz','file','843580VQNcAP','.codebuddy','.claude'];a274_0x2cdf=function(){return _0x15dcb5;};return a274_0x2cdf();}export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x2502bd(0xd0),'description':a274_0x2502bd(0xdf),'folders':[a274_0x2502bd(0xc8),a274_0x2502bd(0xca)],'files':[{'type':'file','path':a274_0x2502bd(0xbb)}]},'windsurf':{'name':a274_0x2502bd(0xc3),'description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':'file','path':a274_0x2502bd(0xe2)}]},'claude':{'name':a274_0x2502bd(0xdb),'description':a274_0x2502bd(0xdb),'folders':[a274_0x2502bd(0xd9)],'files':[{'type':a274_0x2502bd(0xd6),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a274_0x2502bd(0xe0),'description':a274_0x2502bd(0xc5),'folders':['.cline'],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a274_0x2502bd(0xb2),'description':a274_0x2502bd(0xb5),'folders':['.codex'],'files':[{'type':a274_0x2502bd(0xd6),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':'OpenCode','description':a274_0x2502bd(0xd1),'folders':[a274_0x2502bd(0xb0)],'files':[{'type':'file','path':a274_0x2502bd(0xb8)}]},'qoder':{'name':a274_0x2502bd(0xbe),'description':a274_0x2502bd(0xda),'folders':[a274_0x2502bd(0xc6)],'files':[{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xb7)},{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xcf)}]},'codebuddy':{'name':'CodeBuddy','description':a274_0x2502bd(0xc4),'folders':[a274_0x2502bd(0xd8)],'files':[{'type':'file','path':a274_0x2502bd(0xb4)}]},'trae':{'name':a274_0x2502bd(0xc1),'description':a274_0x2502bd(0xc2),'folders':[a274_0x2502bd(0xb9)],'files':[{'type':a274_0x2502bd(0xd6),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a274_0x2502bd(0xd3),'folders':[a274_0x2502bd(0xd4)],'files':[{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xc7)}]},'antigravity':{'name':a274_0x2502bd(0xbf),'description':a274_0x2502bd(0xcb),'folders':['.agent'],'files':[{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xc7)}]}};function a274_0x5ae2(_0x1fa03c,_0x323716){_0x1fa03c=_0x1fa03c-0xaf;const _0x2cdf6f=a274_0x2cdf();let _0x5ae2d8=_0x2cdf6f[_0x1fa03c];return _0x5ae2d8;}export const CORE_IDE_LIST=[a274_0x2502bd(0xdc),a274_0x2502bd(0xaf),'codebuddy',a274_0x2502bd(0xb6),'cursor',a274_0x2502bd(0xe1),'qoder',a274_0x2502bd(0xde),a274_0x2502bd(0xbd)];export const IDE_LIST=[a274_0x2502bd(0xdd),'claude',a274_0x2502bd(0xaf),'codebuddy',a274_0x2502bd(0xb6),a274_0x2502bd(0xb1),a274_0x2502bd(0xe1),'qoder',a274_0x2502bd(0xde),'windsurf',a274_0x2502bd(0xd2)];export const ALL_CORE_IDES=['cursor','windsurf','claude',a274_0x2502bd(0xaf),a274_0x2502bd(0xb6),a274_0x2502bd(0xe1),a274_0x2502bd(0xbc),a274_0x2502bd(0xba),a274_0x2502bd(0xde)];
1
+ const a274_0x53e25c=a274_0x4c78;(function(_0x5988b6,_0x3225b1){const _0x30cd4a=a274_0x4c78,_0x13dd77=_0x5988b6();while(!![]){try{const _0x55e725=parseInt(_0x30cd4a(0x16f))/0x1+-parseInt(_0x30cd4a(0x168))/0x2+parseInt(_0x30cd4a(0x15d))/0x3+-parseInt(_0x30cd4a(0x164))/0x4*(parseInt(_0x30cd4a(0x173))/0x5)+parseInt(_0x30cd4a(0x18c))/0x6+-parseInt(_0x30cd4a(0x16b))/0x7*(-parseInt(_0x30cd4a(0x18e))/0x8)+-parseInt(_0x30cd4a(0x172))/0x9*(-parseInt(_0x30cd4a(0x165))/0xa);if(_0x55e725===_0x3225b1)break;else _0x13dd77['push'](_0x13dd77['shift']());}catch(_0x515cf6){_0x13dd77['push'](_0x13dd77['shift']());}}}(a274_0x2a08,0xcb840));export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x53e25c(0x166),'description':a274_0x53e25c(0x183),'folders':[a274_0x53e25c(0x177),a274_0x53e25c(0x182)],'files':[{'type':'file','path':a274_0x53e25c(0x15e)}]},'windsurf':{'name':'Windsurf','description':a274_0x53e25c(0x17f),'folders':[a274_0x53e25c(0x15c)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a274_0x53e25c(0x162),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':'file','path':a274_0x53e25c(0x170)}]},'cline':{'name':a274_0x53e25c(0x17e),'description':'Cline\x20IDE','folders':[a274_0x53e25c(0x169)],'files':[{'type':a274_0x53e25c(0x16a),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a274_0x53e25c(0x17b),'description':a274_0x53e25c(0x17a),'folders':['.codex'],'files':[{'type':'file','path':a274_0x53e25c(0x16c)}]},'opencode':{'name':a274_0x53e25c(0x180),'description':a274_0x53e25c(0x179),'folders':[a274_0x53e25c(0x160)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x191)}]},'qoder':{'name':a274_0x53e25c(0x176),'description':a274_0x53e25c(0x178),'folders':[a274_0x53e25c(0x15b)],'files':[{'type':'file','path':a274_0x53e25c(0x186)},{'type':a274_0x53e25c(0x16a),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a274_0x53e25c(0x161),'description':a274_0x53e25c(0x163),'folders':[a274_0x53e25c(0x171)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x17c)}]},'trae':{'name':a274_0x53e25c(0x18b),'description':'Trae\x20IDE','folders':[a274_0x53e25c(0x18a)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x187)}]}};function a274_0x4c78(_0x5230c2,_0xf3be72){_0x5230c2=_0x5230c2-0x15b;const _0x2a0809=a274_0x2a08();let _0x4c78fd=_0x2a0809[_0x5230c2];return _0x4c78fd;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a274_0x53e25c(0x184),'description':a274_0x53e25c(0x18d),'folders':[a274_0x53e25c(0x18f)],'files':[{'type':'file','path':a274_0x53e25c(0x181)}]},'antigravity':{'name':a274_0x53e25c(0x174),'description':'Antigravity\x20IDE','folders':[a274_0x53e25c(0x18f)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x181)}]}};export const CORE_IDE_LIST=[a274_0x53e25c(0x17d),a274_0x53e25c(0x16e),a274_0x53e25c(0x192),a274_0x53e25c(0x167),a274_0x53e25c(0x189),a274_0x53e25c(0x188),'qoder',a274_0x53e25c(0x185),a274_0x53e25c(0x175)];function a274_0x2a08(){const _0x4517e1=['OpenCode\x20IDE','Codex\x20IDE','Codex','.codebuddy/skills/lovrabet/SKILL.md','claude','Cline','Windsurf\x20IDE','OpenCode','.agent/skills/lovrabet/SKILL.md','.cursor','Cursor\x20IDE','Other\x20(generic\x20template)','trae','.qoder/rules/rabetbase.md','.trae/skills/lovrabet/SKILL.md','opencode','cursor','.trae','Trae','9276216AhVxtn','Generic\x20template\x20fallback','16eiCInO','.agent','agent','.opencode/skills/lovrabet/SKILL.md','codebuddy','.qoder','.windsurf','1786803emdzve','.cursor/skills/rabetbase.md','antigravity','.opencode','CodeBuddy','Claude\x20Code','CodeBuddy\x20IDE','136GjEqTo','1210210qHHKVL','Cursor','codex','3147526dEDiID','.cline','file','2479022QPsFGp','.codex/skills/lovrabet/SKILL.md','qoder','cline','641985npibtm','.claude/skills/lovrabet/SKILL.md','.codebuddy','9yclCyZ','177290KkaRyZ','Antigravity','windsurf','Qoder','.cursorrules','Qoder\x20IDE'];a274_0x2a08=function(){return _0x4517e1;};return a274_0x2a08();}export const IDE_LIST=[a274_0x53e25c(0x15f),a274_0x53e25c(0x17d),a274_0x53e25c(0x16e),'codebuddy',a274_0x53e25c(0x167),a274_0x53e25c(0x189),a274_0x53e25c(0x188),a274_0x53e25c(0x16d),'trae',a274_0x53e25c(0x175),a274_0x53e25c(0x190)];export const ALL_CORE_IDES=['cursor',a274_0x53e25c(0x175),a274_0x53e25c(0x17d),a274_0x53e25c(0x16e),a274_0x53e25c(0x167),a274_0x53e25c(0x188),a274_0x53e25c(0x16d),a274_0x53e25c(0x192),'trae'];
@@ -1 +1 @@
1
- function a275_0x5619(_0x47290f,_0x49dfd9){_0x47290f=_0x47290f-0x181;const _0x1e2e8b=a275_0x1e2e();let _0x5619f5=_0x1e2e8b[_0x47290f];return _0x5619f5;}(function(_0x4cc46e,_0x5689eb){const _0x59142b=a275_0x5619,_0x486f07=_0x4cc46e();while(!![]){try{const _0x15be3b=-parseInt(_0x59142b(0x184))/0x1*(-parseInt(_0x59142b(0x186))/0x2)+parseInt(_0x59142b(0x189))/0x3+-parseInt(_0x59142b(0x181))/0x4*(-parseInt(_0x59142b(0x18a))/0x5)+parseInt(_0x59142b(0x188))/0x6*(-parseInt(_0x59142b(0x185))/0x7)+-parseInt(_0x59142b(0x187))/0x8+-parseInt(_0x59142b(0x18b))/0x9+parseInt(_0x59142b(0x183))/0xa*(parseInt(_0x59142b(0x182))/0xb);if(_0x15be3b===_0x5689eb)break;else _0x486f07['push'](_0x486f07['shift']());}catch(_0x13c27e){_0x486f07['push'](_0x486f07['shift']());}}}(a275_0x1e2e,0x6b1ff));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a275_0x1e2e(){const _0x428e93=['276610aeMkXf','6638gveoCR','2653ynQCqS','184rKALaT','437624lGYCHo','2286aVoDYU','262212jFjaRQ','89705ACKrSo','1598229OgeRfg','20iEwpKX','11iRqqvt'];a275_0x1e2e=function(){return _0x428e93;};return a275_0x1e2e();}
1
+ (function(_0x544178,_0x1ad049){const _0x577ee4=a275_0x18cc,_0x2c0188=_0x544178();while(!![]){try{const _0x12f2b3=-parseInt(_0x577ee4(0x17b))/0x1+-parseInt(_0x577ee4(0x179))/0x2*(parseInt(_0x577ee4(0x178))/0x3)+-parseInt(_0x577ee4(0x17e))/0x4*(-parseInt(_0x577ee4(0x180))/0x5)+parseInt(_0x577ee4(0x17f))/0x6*(parseInt(_0x577ee4(0x17d))/0x7)+-parseInt(_0x577ee4(0x17c))/0x8*(-parseInt(_0x577ee4(0x17a))/0x9)+-parseInt(_0x577ee4(0x177))/0xa+parseInt(_0x577ee4(0x181))/0xb;if(_0x12f2b3===_0x1ad049)break;else _0x2c0188['push'](_0x2c0188['shift']());}catch(_0x5f40ef){_0x2c0188['push'](_0x2c0188['shift']());}}}(a275_0x3448,0xb16ba));function a275_0x18cc(_0x1ae596,_0x5c730b){_0x1ae596=_0x1ae596-0x177;const _0x344813=a275_0x3448();let _0x18cc59=_0x344813[_0x1ae596];return _0x18cc59;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a275_0x3448(){const _0x54b49f=['654715WeiTZh','751784neuXlf','1723290PCCEGz','15rLEUcg','253632EvVRrd','4959vHooFv','561524fjhYgt','11824SMntth','540491AHYRNE','4YClVYd','84HFRvnC'];a275_0x3448=function(){return _0x54b49f;};return a275_0x3448();}
@@ -1 +1 @@
1
- (function(_0x312c74,_0xba55c4){const _0x95f6b1=a276_0x1e54,_0x54b59e=_0x312c74();while(!![]){try{const _0x48920f=-parseInt(_0x95f6b1(0xdd))/0x1+parseInt(_0x95f6b1(0xd3))/0x2+parseInt(_0x95f6b1(0xda))/0x3*(parseInt(_0x95f6b1(0xd5))/0x4)+parseInt(_0x95f6b1(0xd9))/0x5+parseInt(_0x95f6b1(0xd8))/0x6+-parseInt(_0x95f6b1(0xd6))/0x7+parseInt(_0x95f6b1(0xd4))/0x8*(-parseInt(_0x95f6b1(0xd1))/0x9);if(_0x48920f===_0xba55c4)break;else _0x54b59e['push'](_0x54b59e['shift']());}catch(_0x3dd953){_0x54b59e['push'](_0x54b59e['shift']());}}}(a276_0x3688,0x93705));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x458c32=a276_0x1e54,_0x257198=getTemplateBaseUrl(),_0x1aadda=[_0x257198+'/config.json',_0x257198+_0x458c32(0xdb)];for(const _0x382597 of _0x1aadda){try{const _0x1486a2=await fetch(_0x382597,{'headers':{'Accept':_0x458c32(0xd0)}});if(!_0x1486a2['ok'])continue;const _0x1c6395=await _0x1486a2[_0x458c32(0xcf)]();if(!_0x1c6395['cli']?.['stableVersion']||!_0x1c6395[_0x458c32(0xce)]?.[_0x458c32(0xd7)]?.[_0x458c32(0xd2)])continue;return _0x1c6395;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a276_0x1e54(_0x55861c,_0x494eed){_0x55861c=_0x55861c-0xce;const _0x3688e1=a276_0x3688();let _0x1e54fc=_0x3688e1[_0x55861c];return _0x1e54fc;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x3f059f=a276_0x1e54,_0x4d90e7=Date[_0x3f059f(0xdc)]();if(hasCachedConfig){const _0x1e6591=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4d90e7-cacheTime<_0x1e6591)return cachedConfig;}const _0x547ead=await fetchCdnConfig();return cachedConfig=_0x547ead,cacheTime=_0x4d90e7,hasCachedConfig=!![],_0x547ead;}function a276_0x3688(){const _0x5aa1b2=['3580380YknOrO','/config/index.json','now','223888WrRDZM','sdk','json','application/json','812259fKGxIb','stableVersion','1613826oOIJKP','288xHGfWP','4sjZcvV','760004QrRTTm','node','6197436OzymOo','5760630esPwsw'];a276_0x3688=function(){return _0x5aa1b2;};return a276_0x3688();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a276_0xad22(_0x4f753d,_0x419405){_0x4f753d=_0x4f753d-0x81;const _0x46489b=a276_0x4648();let _0xad22eb=_0x46489b[_0x4f753d];return _0xad22eb;}(function(_0x4661c3,_0x167dcf){const _0xda19a0=a276_0xad22,_0x2206bf=_0x4661c3();while(!![]){try{const _0x22a8ba=-parseInt(_0xda19a0(0x89))/0x1+parseInt(_0xda19a0(0x85))/0x2+-parseInt(_0xda19a0(0x90))/0x3+-parseInt(_0xda19a0(0x81))/0x4*(-parseInt(_0xda19a0(0x91))/0x5)+-parseInt(_0xda19a0(0x8c))/0x6*(parseInt(_0xda19a0(0x82))/0x7)+-parseInt(_0xda19a0(0x8e))/0x8*(-parseInt(_0xda19a0(0x84))/0x9)+parseInt(_0xda19a0(0x8d))/0xa*(parseInt(_0xda19a0(0x83))/0xb);if(_0x22a8ba===_0x167dcf)break;else _0x2206bf['push'](_0x2206bf['shift']());}catch(_0x9dfd2c){_0x2206bf['push'](_0x2206bf['shift']());}}}(a276_0x4648,0x9aec7));import{getTemplateBaseUrl}from'../utils/config.js';function a276_0x4648(){const _0x457253=['3592674jobIjJ','5RdiSwe','3339796aEmgWf','7OclpSs','2651nhWZSc','224946vudHGL','1356798wBvHSV','/config.json','node','stableVersion','507947iBHtEl','sdk','now','4566738oNHFWl','35810PuIeBs','232MmtBcd','json'];a276_0x4648=function(){return _0x457253;};return a276_0x4648();}export async function fetchCdnConfig(){const _0x54e8b0=a276_0xad22,_0x4372f2=getTemplateBaseUrl(),_0x39062e=[_0x4372f2+_0x54e8b0(0x86),_0x4372f2+'/config/index.json'];for(const _0x3ac05a of _0x39062e){try{const _0x3d6882=await fetch(_0x3ac05a,{'headers':{'Accept':'application/json'}});if(!_0x3d6882['ok'])continue;const _0x2ba07b=await _0x3d6882[_0x54e8b0(0x8f)]();if(!_0x2ba07b['cli']?.[_0x54e8b0(0x88)]||!_0x2ba07b[_0x54e8b0(0x8a)]?.[_0x54e8b0(0x87)]?.['stableVersion'])continue;return _0x2ba07b;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x336746=a276_0xad22,_0x1800fe=Date[_0x336746(0x8b)]();if(hasCachedConfig){const _0x2df14a=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1800fe-cacheTime<_0x2df14a)return cachedConfig;}const _0x5214d1=await fetchCdnConfig();return cachedConfig=_0x5214d1,cacheTime=_0x1800fe,hasCachedConfig=!![],_0x5214d1;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a277_0xffb1c8=a277_0x25e8;(function(_0x2df985,_0x28c6e3){const _0x6654b2=a277_0x25e8,_0xc90c2a=_0x2df985();while(!![]){try{const _0x25697a=parseInt(_0x6654b2(0xdf))/0x1*(parseInt(_0x6654b2(0xde))/0x2)+parseInt(_0x6654b2(0xca))/0x3*(parseInt(_0x6654b2(0xe1))/0x4)+-parseInt(_0x6654b2(0xc4))/0x5+parseInt(_0x6654b2(0xcc))/0x6+-parseInt(_0x6654b2(0xd2))/0x7+-parseInt(_0x6654b2(0xc2))/0x8*(parseInt(_0x6654b2(0xc1))/0x9)+parseInt(_0x6654b2(0xdd))/0xa*(parseInt(_0x6654b2(0xd8))/0xb);if(_0x25697a===_0x28c6e3)break;else _0xc90c2a['push'](_0xc90c2a['shift']());}catch(_0x15e26a){_0xc90c2a['push'](_0xc90c2a['shift']());}}}(a277_0x1d93,0x4ff77));import a277_0x3e761f from'node:fs';import a277_0x2381d4 from'node:path';import a277_0x5388e6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a277_0x1d93(){const _0x3f0863=['\x20\x20\x20Current\x20version:\x20','utf-8','needsUpgrade','1.2.0','node_modules','326973kZMLgm','node','1800576RVIPwC','coerce','readFileSync','\x20\x20\x20Stable\x20version:\x20','dependencies','minVersion','2795149vHalmv','join','utf8','log','\x20\x20\x20Upgrade\x20command:\x20','devDependencies','33TzVwZr','parse','existsSync','some','all','2160030zRHcjW','548tafLaX','1355TPvcVB','npm\x20install\x20','4ojJoMG','\x1b[33m','package.json','stableVersion','packageName','version','@lovrabet/sdk','test','18lPiGih','1109432GyDisQ','sdk','2120790KZjBDa'];a277_0x1d93=function(){return _0x3f0863;};return a277_0x1d93();}const FALLBACK_MIN_SDK_VERSION=a277_0xffb1c8(0xc8);function isNonNumericVersion(_0x38398b){const _0x755934=a277_0xffb1c8,_0x2a4bea=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2a4bea[_0x755934(0xdb)](_0x548d01=>_0x548d01[_0x755934(0xc0)](_0x38398b));}function getInstalledVersion(_0x4d024e,_0x3badf3){const _0x338438=a277_0xffb1c8;try{const _0x57f077=a277_0x2381d4[_0x338438(0xd3)](_0x4d024e,_0x338438(0xc9),_0x3badf3,_0x338438(0xe3));if(a277_0x3e761f[_0x338438(0xda)](_0x57f077)){const _0x538205=JSON[_0x338438(0xd9)](a277_0x3e761f[_0x338438(0xce)](_0x57f077,_0x338438(0xc6)));return _0x538205[_0x338438(0xe6)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4501b6=a277_0xffb1c8;try{const _0x47a78b=await getCdnConfig();return _0x47a78b?.['sdk']?.[_0x4501b6(0xcb)]?.[_0x4501b6(0xe4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x324e5f=a277_0xffb1c8;try{const _0x3b095d=await getCdnConfig();return _0x3b095d?.[_0x324e5f(0xc3)]?.['node']?.[_0x324e5f(0xe5)]||_0x324e5f(0xbf);}catch{return'@lovrabet/sdk';}}function a277_0x25e8(_0x512b55,_0x34dcb9){_0x512b55=_0x512b55-0xbf;const _0x1d93c7=a277_0x1d93();let _0x25e8f9=_0x1d93c7[_0x512b55];return _0x25e8f9;}export async function checkSdkVersion(_0x246a0){const _0x58bdca=a277_0xffb1c8,_0x1a8835=a277_0x2381d4[_0x58bdca(0xd3)](_0x246a0,_0x58bdca(0xe3)),[_0x414880,_0x5bf227]=await Promise[_0x58bdca(0xdc)]([getSdkStableVersion(),getSdkPackageName()]),_0x1ed1a9=_0x414880||FALLBACK_MIN_SDK_VERSION;if(!a277_0x3e761f[_0x58bdca(0xda)](_0x1a8835))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};try{const _0x3a14e5=JSON['parse'](a277_0x3e761f[_0x58bdca(0xce)](_0x1a8835,_0x58bdca(0xd4))),_0x3f2a37=_0x3a14e5[_0x58bdca(0xd0)]||{},_0x5ca399=_0x3a14e5['devDependencies']||{},_0x597a39=_0x3f2a37[_0x5bf227]||_0x5ca399[_0x5bf227];if(!_0x597a39)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};let _0x47f9c6=getInstalledVersion(_0x246a0,_0x5bf227);!_0x47f9c6&&(_0x47f9c6=_0x597a39);if(isNonNumericVersion(_0x597a39))return{'installed':!![],'version':_0x47f9c6,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};const _0x399089=a277_0x5388e6[_0x58bdca(0xcd)](_0x47f9c6),_0x4d5b88=a277_0x5388e6['coerce'](_0x1ed1a9),_0x51b9d5=_0x399089&&_0x4d5b88?a277_0x5388e6['lt'](_0x399089,_0x4d5b88):![];return{'installed':!![],'version':_0x47f9c6,'needsUpgrade':_0x51b9d5,'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};}}export function checkSdkVersionSync(_0x8a0bf5){const _0x4847cf=a277_0xffb1c8,_0x16c900=a277_0x2381d4[_0x4847cf(0xd3)](_0x8a0bf5,_0x4847cf(0xe3)),_0x2740b5=_0x4847cf(0xbf);if(!a277_0x3e761f[_0x4847cf(0xda)](_0x16c900))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};try{const _0x48b37c=JSON[_0x4847cf(0xd9)](a277_0x3e761f[_0x4847cf(0xce)](_0x16c900,_0x4847cf(0xd4))),_0xbc783f=_0x48b37c['dependencies']||{},_0x693bb1=_0x48b37c[_0x4847cf(0xd7)]||{},_0x2defab=_0xbc783f[_0x2740b5]||_0x693bb1[_0x2740b5];if(!_0x2defab)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};let _0x25dfd6=getInstalledVersion(_0x8a0bf5,_0x2740b5);!_0x25dfd6&&(_0x25dfd6=_0x2defab);if(isNonNumericVersion(_0x2defab))return{'installed':!![],'version':_0x25dfd6,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};const _0x34e982=a277_0x5388e6[_0x4847cf(0xcd)](_0x25dfd6),_0x4bcb71=_0x34e982?a277_0x5388e6['lt'](_0x34e982,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x25dfd6,'needsUpgrade':_0x4bcb71,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3dfd2b){const _0x32deeb=a277_0xffb1c8;if(!_0x3dfd2b[_0x32deeb(0xc7)])return;const _0x4abdde=_0x32deeb(0xe2),_0x56dc65='\x1b[0m',_0x51c060='\x1b[1m',_0x39cf49=_0x3dfd2b['packageName']||'@lovrabet/sdk',_0x533f39=_0x3dfd2b[_0x32deeb(0xe4)]||_0x3dfd2b[_0x32deeb(0xd1)],_0x6f4f12=_0x32deeb(0xe0)+_0x39cf49+'@'+(_0x533f39||'latest');console[_0x32deeb(0xd5)](),console['log'](''+_0x4abdde+_0x51c060+'↪\x20SDK\x20update\x20available'+_0x56dc65),console[_0x32deeb(0xd5)](_0x4abdde+_0x32deeb(0xc5)+_0x39cf49+'@'+_0x3dfd2b[_0x32deeb(0xe6)]+_0x56dc65),console[_0x32deeb(0xd5)](_0x4abdde+_0x32deeb(0xcf)+_0x533f39+_0x56dc65),console[_0x32deeb(0xd5)](_0x4abdde+_0x32deeb(0xd6)+_0x6f4f12+_0x56dc65),console['log']();}
1
+ (function(_0x2d5932,_0x2b6912){const _0x52a89d=a277_0xcaf9,_0x88de08=_0x2d5932();while(!![]){try{const _0x34c73a=-parseInt(_0x52a89d(0xbc))/0x1+-parseInt(_0x52a89d(0xc6))/0x2+parseInt(_0x52a89d(0xb7))/0x3+-parseInt(_0x52a89d(0xba))/0x4+parseInt(_0x52a89d(0xad))/0x5+parseInt(_0x52a89d(0xae))/0x6+parseInt(_0x52a89d(0xbf))/0x7;if(_0x34c73a===_0x2b6912)break;else _0x88de08['push'](_0x88de08['shift']());}catch(_0x49370c){_0x88de08['push'](_0x88de08['shift']());}}}(a277_0x317f,0x3c4dd));function a277_0xcaf9(_0x3b956b,_0x389d24){_0x3b956b=_0x3b956b-0xab;const _0x317f4a=a277_0x317f();let _0xcaf954=_0x317f4a[_0x3b956b];return _0xcaf954;}import a277_0x4704cc from'node:fs';import a277_0x132f5c from'node:path';import a277_0x267213 from'semver';function a277_0x317f(){const _0x3206ec=['package.json','log','node_modules','1228629Ujemhj','@lovrabet/sdk','devDependencies','332892pSzRWD','minVersion','472703JBPhTd','coerce','readFileSync','2720557XNpBrW','test','utf-8','\x1b[0m','stableVersion','dependencies','latest','199304gqzSmG','node','some','parse','npm\x20install\x20','version','\x20\x20\x20Upgrade\x20command:\x20','existsSync','\x1b[1m','462280AulGgj','71598kfrgWr','sdk','\x20\x20\x20Stable\x20version:\x20','all','utf8','join'];a277_0x317f=function(){return _0x3206ec;};return a277_0x317f();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x3cb1da){const _0xf5e7c5=a277_0xcaf9,_0x2ea3f2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2ea3f2[_0xf5e7c5(0xc8)](_0x19a2d9=>_0x19a2d9[_0xf5e7c5(0xc0)](_0x3cb1da));}function getInstalledVersion(_0x34f636,_0x31315a){const _0x56835c=a277_0xcaf9;try{const _0x164cbf=a277_0x132f5c[_0x56835c(0xb3)](_0x34f636,_0x56835c(0xb6),_0x31315a,_0x56835c(0xb4));if(a277_0x4704cc[_0x56835c(0xab)](_0x164cbf)){const _0x5df8cd=JSON[_0x56835c(0xc9)](a277_0x4704cc[_0x56835c(0xbe)](_0x164cbf,_0x56835c(0xc1)));return _0x5df8cd[_0x56835c(0xcb)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x262101=a277_0xcaf9;try{const _0xb5f593=await getCdnConfig();return _0xb5f593?.[_0x262101(0xaf)]?.[_0x262101(0xc7)]?.[_0x262101(0xc3)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4ea017=a277_0xcaf9;try{const _0x5f264e=await getCdnConfig();return _0x5f264e?.[_0x4ea017(0xaf)]?.[_0x4ea017(0xc7)]?.['packageName']||_0x4ea017(0xb8);}catch{return _0x4ea017(0xb8);}}export async function checkSdkVersion(_0xb0f062){const _0x59b9a1=a277_0xcaf9,_0x1607a3=a277_0x132f5c['join'](_0xb0f062,'package.json'),[_0x4081ae,_0x4a0224]=await Promise[_0x59b9a1(0xb1)]([getSdkStableVersion(),getSdkPackageName()]),_0x282ad8=_0x4081ae||FALLBACK_MIN_SDK_VERSION;if(!a277_0x4704cc['existsSync'](_0x1607a3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};try{const _0x3f2c99=JSON[_0x59b9a1(0xc9)](a277_0x4704cc[_0x59b9a1(0xbe)](_0x1607a3,_0x59b9a1(0xb2))),_0x357339=_0x3f2c99[_0x59b9a1(0xc4)]||{},_0x44894d=_0x3f2c99[_0x59b9a1(0xb9)]||{},_0x4fbbf4=_0x357339[_0x4a0224]||_0x44894d[_0x4a0224];if(!_0x4fbbf4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};let _0x4bcacf=getInstalledVersion(_0xb0f062,_0x4a0224);!_0x4bcacf&&(_0x4bcacf=_0x4fbbf4);if(isNonNumericVersion(_0x4fbbf4))return{'installed':!![],'version':_0x4bcacf,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};const _0x2cda43=a277_0x267213[_0x59b9a1(0xbd)](_0x4bcacf),_0x2c0f38=a277_0x267213[_0x59b9a1(0xbd)](_0x282ad8),_0x47ba8e=_0x2cda43&&_0x2c0f38?a277_0x267213['lt'](_0x2cda43,_0x2c0f38):![];return{'installed':!![],'version':_0x4bcacf,'needsUpgrade':_0x47ba8e,'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};}}export function checkSdkVersionSync(_0x386214){const _0x56c7b0=a277_0xcaf9,_0x129507=a277_0x132f5c['join'](_0x386214,'package.json'),_0x3ea91e=_0x56c7b0(0xb8);if(!a277_0x4704cc[_0x56c7b0(0xab)](_0x129507))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};try{const _0x7f44ad=JSON[_0x56c7b0(0xc9)](a277_0x4704cc[_0x56c7b0(0xbe)](_0x129507,_0x56c7b0(0xb2))),_0x2c8934=_0x7f44ad[_0x56c7b0(0xc4)]||{},_0xfbf05b=_0x7f44ad[_0x56c7b0(0xb9)]||{},_0x2828c1=_0x2c8934[_0x3ea91e]||_0xfbf05b[_0x3ea91e];if(!_0x2828c1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};let _0x200ff2=getInstalledVersion(_0x386214,_0x3ea91e);!_0x200ff2&&(_0x200ff2=_0x2828c1);if(isNonNumericVersion(_0x2828c1))return{'installed':!![],'version':_0x200ff2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};const _0x2c627d=a277_0x267213[_0x56c7b0(0xbd)](_0x200ff2),_0x3cb067=_0x2c627d?a277_0x267213['lt'](_0x2c627d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x200ff2,'needsUpgrade':_0x3cb067,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3b4a02){const _0x2811b3=a277_0xcaf9;if(!_0x3b4a02['needsUpgrade'])return;const _0x5ad0ba='\x1b[33m',_0x3aae3a=_0x2811b3(0xc2),_0x4df387=_0x2811b3(0xac),_0x27fe25=_0x3b4a02['packageName']||_0x2811b3(0xb8),_0x50e3cf=_0x3b4a02[_0x2811b3(0xc3)]||_0x3b4a02[_0x2811b3(0xbb)],_0x547eb6=_0x2811b3(0xca)+_0x27fe25+'@'+(_0x50e3cf||_0x2811b3(0xc5));console[_0x2811b3(0xb5)](),console[_0x2811b3(0xb5)](''+_0x5ad0ba+_0x4df387+'↪\x20SDK\x20update\x20available'+_0x3aae3a),console[_0x2811b3(0xb5)](_0x5ad0ba+'\x20\x20\x20Current\x20version:\x20'+_0x27fe25+'@'+_0x3b4a02['version']+_0x3aae3a),console[_0x2811b3(0xb5)](_0x5ad0ba+_0x2811b3(0xb0)+_0x50e3cf+_0x3aae3a),console[_0x2811b3(0xb5)](_0x5ad0ba+_0x2811b3(0xcc)+_0x547eb6+_0x3aae3a),console[_0x2811b3(0xb5)]();}
@@ -1 +1 @@
1
- (function(_0x2774b9,_0x17a0f1){const _0x49cc96=a278_0x980c,_0x53b9df=_0x2774b9();while(!![]){try{const _0x26c1b2=-parseInt(_0x49cc96(0x1f9))/0x1+parseInt(_0x49cc96(0x1e3))/0x2+parseInt(_0x49cc96(0x1f8))/0x3*(parseInt(_0x49cc96(0x1e1))/0x4)+-parseInt(_0x49cc96(0x1e4))/0x5*(parseInt(_0x49cc96(0x1f0))/0x6)+parseInt(_0x49cc96(0x1e0))/0x7+parseInt(_0x49cc96(0x1e7))/0x8*(parseInt(_0x49cc96(0x1f3))/0x9)+-parseInt(_0x49cc96(0x1f2))/0xa*(-parseInt(_0x49cc96(0x1e5))/0xb);if(_0x26c1b2===_0x17a0f1)break;else _0x53b9df['push'](_0x53b9df['shift']());}catch(_0x25b0e6){_0x53b9df['push'](_0x53b9df['shift']());}}}(a278_0x4a5a,0xe57be));import{readFileSync}from'node:fs';function a278_0x980c(_0x40a111,_0x35addf){_0x40a111=_0x40a111-0x1d5;const _0x4a5a02=a278_0x4a5a();let _0x980c35=_0x4a5a02[_0x40a111];return _0x980c35;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x1e664a 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(_0x17b295){const _0x1eec61=a278_0x980c,_0x293b69=_0x17b295['stableVersion']||_0x1eec61(0x1d8);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x293b69;}function getCurrentCliVersion(){const _0x2e7a81=a278_0x980c;try{const _0x333f7f=fileURLToPath(import.meta.url),_0x2be559=resolve(dirname(_0x333f7f),_0x2e7a81(0x1fb)),_0x3742dc=resolve(_0x2be559,'package.json'),_0x225c1a=JSON['parse'](readFileSync(_0x3742dc,'utf-8'));return _0x225c1a[_0x2e7a81(0x1f7)]||_0x2e7a81(0x1ef);}catch{return _0x2e7a81(0x1ef);}}export async function checkCliVersion(){const _0x1bf47b=a278_0x980c,_0x33034c=getCurrentCliVersion(),_0x3e78c2=await getCliVersionPolicy(),_0x1bae41=_0x3e78c2?.[_0x1bf47b(0x1ee)]||null,_0xb07823=_0x3e78c2?.[_0x1bf47b(0x1de)]||null;let _0x355d33=![],_0x440b3c=![];const _0xbc7897=a278_0x1e664a[_0x1bf47b(0x1df)](_0x33034c);if(_0xbc7897&&_0x1bae41)try{const _0x500936=a278_0x1e664a[_0x1bf47b(0x1df)](_0x1bae41);if(_0x500936)_0x355d33=a278_0x1e664a['lt'](_0xbc7897,_0x500936);}catch{}if(_0xbc7897&&_0xb07823)try{const _0x353c87=a278_0x1e664a[_0x1bf47b(0x1df)](_0xb07823);if(_0x353c87)_0x440b3c=a278_0x1e664a['lt'](_0xbc7897,_0x353c87);}catch{}return _0x440b3c&&(_0x355d33=!![]),{'currentVersion':_0x33034c,'stableVersion':_0x1bae41,'minimumVersion':_0xb07823,'needsUpgrade':_0x355d33,'belowMinimum':_0x440b3c,'isPreRelease':![],'upgradeMessage':_0x3e78c2?.[_0x1bf47b(0x1f1)],'minimumVersionMessage':_0x3e78c2?.[_0x1bf47b(0x1e6)]};}function a278_0x4a5a(){const _0x4d38af=['Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[33m','stableVersion','1.0.0','6mRdOeK','upgradeMessage','12290JYyOTf','1293039rwkAWd','Current\x20version:\x20','validation','filter','version','12aQmeoH','1534210xhIAzD','\x20\x20\x20Recommended\x20stable:\x20','../..','needsUpgrade','join','log','latest','currentVersion','\x20\x20\x20Stable\x20version:\x20','\x1b[31m','\x20\x20\x20Upgrade\x20command:\x20','Minimum\x20supported:\x20','minimumVersion','coerce','797930WYKGIL','1811948fMBvGe','\x1b[0m','623580KjtZjx','2841515jpoICI','4631otTLub','minimumVersionMessage','16mcHkrc','\x20\x20\x20','\x1b[1m','belowMinimum'];a278_0x4a5a=function(){return _0x4d38af;};return a278_0x4a5a();}export function printCliUpgradeWarning(_0x31b5a5){const _0x5a8120=a278_0x980c;if(!_0x31b5a5[_0x5a8120(0x1d5)]&&!_0x31b5a5[_0x5a8120(0x1ea)])return;const _0x35cdb3=_0x5a8120(0x1db),_0x2e010c=_0x5a8120(0x1ed),_0x36e548=_0x5a8120(0x1e2),_0x3263b4=_0x5a8120(0x1e9),_0x4e5971=getCliUpgradeCommand(_0x31b5a5);console[_0x5a8120(0x1d7)](),_0x31b5a5[_0x5a8120(0x1ea)]?(console['log'](''+_0x35cdb3+_0x3263b4+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x36e548),console[_0x5a8120(0x1d7)](_0x35cdb3+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x31b5a5['currentVersion']+_0x36e548),_0x31b5a5[_0x5a8120(0x1de)]&&console[_0x5a8120(0x1d7)](_0x35cdb3+'\x20\x20\x20Minimum\x20supported:\x20'+_0x31b5a5['minimumVersion']+_0x36e548),_0x31b5a5[_0x5a8120(0x1ee)]&&_0x31b5a5[_0x5a8120(0x1ee)]!==_0x31b5a5[_0x5a8120(0x1de)]&&console[_0x5a8120(0x1d7)](_0x35cdb3+_0x5a8120(0x1fa)+_0x31b5a5[_0x5a8120(0x1ee)]+_0x36e548),_0x31b5a5[_0x5a8120(0x1e6)]&&console[_0x5a8120(0x1d7)](_0x35cdb3+_0x5a8120(0x1e8)+_0x31b5a5[_0x5a8120(0x1e6)]+_0x36e548),console[_0x5a8120(0x1d7)](_0x35cdb3+_0x5a8120(0x1dc)+_0x4e5971+_0x36e548)):(console[_0x5a8120(0x1d7)](''+_0x2e010c+_0x3263b4+'↪\x20New\x20version\x20available'+_0x36e548),console[_0x5a8120(0x1d7)](_0x2e010c+_0x5a8120(0x1ec)+_0x31b5a5[_0x5a8120(0x1d9)]+_0x36e548),console['log'](_0x2e010c+_0x5a8120(0x1da)+_0x31b5a5[_0x5a8120(0x1ee)]+_0x36e548),_0x31b5a5['upgradeMessage']&&console['log'](_0x2e010c+_0x5a8120(0x1e8)+_0x31b5a5[_0x5a8120(0x1f1)]+_0x36e548),console['log'](_0x2e010c+_0x5a8120(0x1dc)+_0x4e5971+_0x36e548)),console[_0x5a8120(0x1d7)]();}export function assertCliVersionSupported(_0x1628e0){const _0x3ed7d6=a278_0x980c;if(!_0x1628e0[_0x3ed7d6(0x1ea)])return;const _0x3aac07=[_0x1628e0[_0x3ed7d6(0x1e6)],_0x3ed7d6(0x1f4)+_0x1628e0[_0x3ed7d6(0x1d9)],_0x1628e0['minimumVersion']?_0x3ed7d6(0x1dd)+_0x1628e0[_0x3ed7d6(0x1de)]:null,_0x3ed7d6(0x1eb)+getCliUpgradeCommand(_0x1628e0)][_0x3ed7d6(0x1f6)](Boolean)[_0x3ed7d6(0x1d6)]('\x0a');throw CliErrors[_0x3ed7d6(0x1f5)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x3aac07);}
1
+ (function(_0x41e2e9,_0x20fcff){const _0x4235ce=a278_0x4918,_0x34ee85=_0x41e2e9();while(!![]){try{const _0x51f223=-parseInt(_0x4235ce(0xd1))/0x1+parseInt(_0x4235ce(0xbf))/0x2+parseInt(_0x4235ce(0xd8))/0x3+-parseInt(_0x4235ce(0xc6))/0x4+-parseInt(_0x4235ce(0xd4))/0x5+parseInt(_0x4235ce(0xcc))/0x6*(parseInt(_0x4235ce(0xd9))/0x7)+parseInt(_0x4235ce(0xe1))/0x8;if(_0x51f223===_0x20fcff)break;else _0x34ee85['push'](_0x34ee85['shift']());}catch(_0x1a45a9){_0x34ee85['push'](_0x34ee85['shift']());}}}(a278_0x6e13,0xcbaa0));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a278_0x4918(_0x43bfd0,_0x16ced6){_0x43bfd0=_0x43bfd0-0xbb;const _0x6e13eb=a278_0x6e13();let _0x4918df=_0x6e13eb[_0x43bfd0];return _0x4918df;}import a278_0x1c27dd 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(_0x2af9ab){const _0x44e8bd=a278_0x4918,_0x46b0fd=_0x2af9ab['stableVersion']||_0x44e8bd(0xda);return _0x44e8bd(0xc4)+NPM_PACKAGE_NAME+'@'+_0x46b0fd;}function getCurrentCliVersion(){const _0x2d628d=a278_0x4918;try{const _0x11e6e7=fileURLToPath(import.meta.url),_0x43509b=resolve(dirname(_0x11e6e7),'../..'),_0x5a6a60=resolve(_0x43509b,_0x2d628d(0xce)),_0x1f262e=JSON[_0x2d628d(0xdc)](readFileSync(_0x5a6a60,'utf-8'));return _0x1f262e['version']||_0x2d628d(0xcb);}catch{return _0x2d628d(0xcb);}}export async function checkCliVersion(){const _0x1de2cb=a278_0x4918,_0x21bed1=getCurrentCliVersion(),_0x46da17=await getCliVersionPolicy(),_0x3e64c2=_0x46da17?.[_0x1de2cb(0xcd)]||null,_0x17adb5=_0x46da17?.[_0x1de2cb(0xc5)]||null;let _0x175267=![],_0x237c84=![];const _0x14baee=a278_0x1c27dd['coerce'](_0x21bed1);if(_0x14baee&&_0x3e64c2)try{const _0x3d28ea=a278_0x1c27dd[_0x1de2cb(0xd2)](_0x3e64c2);if(_0x3d28ea)_0x175267=a278_0x1c27dd['lt'](_0x14baee,_0x3d28ea);}catch{}if(_0x14baee&&_0x17adb5)try{const _0x3339e4=a278_0x1c27dd[_0x1de2cb(0xd2)](_0x17adb5);if(_0x3339e4)_0x237c84=a278_0x1c27dd['lt'](_0x14baee,_0x3339e4);}catch{}return _0x237c84&&(_0x175267=!![]),{'currentVersion':_0x21bed1,'stableVersion':_0x3e64c2,'minimumVersion':_0x17adb5,'needsUpgrade':_0x175267,'belowMinimum':_0x237c84,'isPreRelease':![],'upgradeMessage':_0x46da17?.[_0x1de2cb(0xdf)],'minimumVersionMessage':_0x46da17?.[_0x1de2cb(0xbd)]};}function a278_0x6e13(){const _0x49fc9c=['143444wXuiZo','coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','4141440uWwaZr','↪\x20New\x20version\x20available','\x1b[33m','\x1b[1m','1319739STHrjy','14eifuFe','latest','Upgrade\x20command:\x20','parse','\x1b[0m','filter','upgradeMessage','\x20\x20\x20','2194592gXhBoZ','↪\x20Critical\x20CLI\x20upgrade\x20required','currentVersion','minimumVersionMessage','belowMinimum','2006440gojHSo','join','log','Current\x20version:\x20','\x1b[31m','npm\x20install\x20-g\x20','minimumVersion','5471124bopiYI','\x20\x20\x20Stable\x20version:\x20','Minimum\x20supported:\x20','\x20\x20\x20Minimum\x20supported:\x20','needsUpgrade','1.0.0','4368792kQceSl','stableVersion','package.json','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','validation'];a278_0x6e13=function(){return _0x49fc9c;};return a278_0x6e13();}export function printCliUpgradeWarning(_0x4e4c55){const _0x5ef7a5=a278_0x4918;if(!_0x4e4c55[_0x5ef7a5(0xca)]&&!_0x4e4c55[_0x5ef7a5(0xbe)])return;const _0x196cdf=_0x5ef7a5(0xc3),_0x122ac3=_0x5ef7a5(0xd6),_0x486e3e=_0x5ef7a5(0xdd),_0x52221e=_0x5ef7a5(0xd7),_0x1614ad=getCliUpgradeCommand(_0x4e4c55);console['log'](),_0x4e4c55[_0x5ef7a5(0xbe)]?(console[_0x5ef7a5(0xc1)](''+_0x196cdf+_0x52221e+_0x5ef7a5(0xbb)+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x196cdf+_0x5ef7a5(0xd3)+_0x4e4c55[_0x5ef7a5(0xbc)]+_0x486e3e),_0x4e4c55[_0x5ef7a5(0xc5)]&&console[_0x5ef7a5(0xc1)](_0x196cdf+_0x5ef7a5(0xc9)+_0x4e4c55[_0x5ef7a5(0xc5)]+_0x486e3e),_0x4e4c55[_0x5ef7a5(0xcd)]&&_0x4e4c55[_0x5ef7a5(0xcd)]!==_0x4e4c55[_0x5ef7a5(0xc5)]&&console[_0x5ef7a5(0xc1)](_0x196cdf+'\x20\x20\x20Recommended\x20stable:\x20'+_0x4e4c55[_0x5ef7a5(0xcd)]+_0x486e3e),_0x4e4c55['minimumVersionMessage']&&console['log'](_0x196cdf+_0x5ef7a5(0xe0)+_0x4e4c55[_0x5ef7a5(0xbd)]+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x196cdf+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1614ad+_0x486e3e)):(console[_0x5ef7a5(0xc1)](''+_0x122ac3+_0x52221e+_0x5ef7a5(0xd5)+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x122ac3+_0x5ef7a5(0xd3)+_0x4e4c55[_0x5ef7a5(0xbc)]+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x122ac3+_0x5ef7a5(0xc7)+_0x4e4c55[_0x5ef7a5(0xcd)]+_0x486e3e),_0x4e4c55[_0x5ef7a5(0xdf)]&&console[_0x5ef7a5(0xc1)](_0x122ac3+_0x5ef7a5(0xe0)+_0x4e4c55[_0x5ef7a5(0xdf)]+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x122ac3+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1614ad+_0x486e3e)),console['log']();}export function assertCliVersionSupported(_0x27e615){const _0xbb4017=a278_0x4918;if(!_0x27e615['belowMinimum'])return;const _0x21fa44=[_0x27e615['minimumVersionMessage'],_0xbb4017(0xc2)+_0x27e615['currentVersion'],_0x27e615[_0xbb4017(0xc5)]?_0xbb4017(0xc8)+_0x27e615[_0xbb4017(0xc5)]:null,_0xbb4017(0xdb)+getCliUpgradeCommand(_0x27e615)][_0xbb4017(0xde)](Boolean)[_0xbb4017(0xc0)]('\x0a');throw CliErrors[_0xbb4017(0xd0)](_0xbb4017(0xcf),_0x21fa44);}
@@ -1 +1 @@
1
- (function(_0x349e8e,_0x34fd9f){const _0x28a6cd=a279_0xf934,_0x53085f=_0x349e8e();while(!![]){try{const _0x51abe7=-parseInt(_0x28a6cd(0x1f2))/0x1+-parseInt(_0x28a6cd(0x1e7))/0x2*(-parseInt(_0x28a6cd(0x1f4))/0x3)+-parseInt(_0x28a6cd(0x1ec))/0x4*(-parseInt(_0x28a6cd(0x1e6))/0x5)+parseInt(_0x28a6cd(0x1eb))/0x6+parseInt(_0x28a6cd(0x1e2))/0x7*(-parseInt(_0x28a6cd(0x1f5))/0x8)+-parseInt(_0x28a6cd(0x1f0))/0x9+-parseInt(_0x28a6cd(0x1f3))/0xa;if(_0x51abe7===_0x34fd9f)break;else _0x53085f['push'](_0x53085f['shift']());}catch(_0x5e247e){_0x53085f['push'](_0x53085f['shift']());}}}(a279_0x45aa,0xd775a));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(_0x5a208d){const _0x2afc08=a279_0xf934;return typeof _0x5a208d===_0x2afc08(0x1e4)&&_0x5a208d['trim']()['length']>0x0?_0x5a208d[_0x2afc08(0x1ee)]():null;}function normalizeCliVersionPolicy(_0x2c8d90){const _0x11f3c2=a279_0xf934;if(!_0x2c8d90||typeof _0x2c8d90!==_0x11f3c2(0x1f6))return null;const _0x22dc0a=_0x2c8d90,_0x5bb09a=_0x22dc0a['cli']&&typeof _0x22dc0a['cli']===_0x11f3c2(0x1f6)?_0x22dc0a[_0x11f3c2(0x1e9)]:_0x22dc0a,_0x21892a=pickString(_0x5bb09a['stableVersion'])||pickString(_0x5bb09a[_0x11f3c2(0x1f1)])||pickString(_0x5bb09a[_0x11f3c2(0x1e8)]),_0x31b19b=pickString(_0x5bb09a[_0x11f3c2(0x1f8)])||pickString(_0x5bb09a['minVersion']);if(!_0x21892a&&!_0x31b19b)return null;return{'stableVersion':_0x21892a,'minimumVersion':_0x31b19b,'upgradeMessage':pickString(_0x5bb09a[_0x11f3c2(0x1ea)])||undefined,'minimumVersionMessage':pickString(_0x5bb09a['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x2f99f1=a279_0xf934,_0x22c8da=new AbortController(),_0x31926d=setTimeout(()=>_0x22c8da[_0x2f99f1(0x1e3)](),FETCH_TIMEOUT_MS);try{const _0x577241=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2f99f1(0x1ef)},'signal':_0x22c8da[_0x2f99f1(0x1ed)]});if(!_0x577241['ok'])return null;const _0x5bbfb9=await _0x577241[_0x2f99f1(0x1f7)]();return _0x5bbfb9&&typeof _0x5bbfb9===_0x2f99f1(0x1f6)?_0x5bbfb9:null;}catch{return null;}finally{clearTimeout(_0x31926d);}}function a279_0xf934(_0x1b48de,_0x130fb4){_0x1b48de=_0x1b48de-0x1e2;const _0x45aa91=a279_0x45aa();let _0xf934e7=_0x45aa91[_0x1b48de];return _0xf934e7;}function a279_0x45aa(){const _0x19f63=['1444653vFXmAG','latestVersion','1522229sqnLxJ','11750440PBJCvs','3fvIzwA','80eHRpXB','object','json','minimumVersion','127281XIUFhy','abort','string','now','3783100vtSSdD','2349188jURTRe','recommendedVersion','cli','upgradeMessage','7405848jRWYKv','8IVTTry','signal','trim','application/json'];a279_0x45aa=function(){return _0x19f63;};return a279_0x45aa();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5d5ae9=a279_0xf934,_0x271f97=Date[_0x5d5ae9(0x1e5)]();if(hasCachedConfig){const _0x2ebe81=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x271f97-cacheTime<_0x2ebe81)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x271f97,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2bb477,_0xa43609){const _0x1245c0=a279_0xe203,_0x291e42=_0x2bb477();while(!![]){try{const _0x379cc7=-parseInt(_0x1245c0(0xf4))/0x1+parseInt(_0x1245c0(0x101))/0x2+-parseInt(_0x1245c0(0xf8))/0x3+parseInt(_0x1245c0(0x104))/0x4*(-parseInt(_0x1245c0(0xfa))/0x5)+parseInt(_0x1245c0(0xff))/0x6+parseInt(_0x1245c0(0xf5))/0x7*(parseInt(_0x1245c0(0x109))/0x8)+-parseInt(_0x1245c0(0x102))/0x9*(-parseInt(_0x1245c0(0xf3))/0xa);if(_0x379cc7===_0xa43609)break;else _0x291e42['push'](_0x291e42['shift']());}catch(_0x4d6372){_0x291e42['push'](_0x291e42['shift']());}}}(a279_0x96cb,0xe4850));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(_0x3859e5){const _0xf0c216=a279_0xe203;return typeof _0x3859e5===_0xf0c216(0x100)&&_0x3859e5[_0xf0c216(0x105)]()[_0xf0c216(0x106)]>0x0?_0x3859e5[_0xf0c216(0x105)]():null;}function normalizeCliVersionPolicy(_0x356a33){const _0x4e330d=a279_0xe203;if(!_0x356a33||typeof _0x356a33!=='object')return null;const _0x118e8d=_0x356a33,_0x526698=_0x118e8d['cli']&&typeof _0x118e8d[_0x4e330d(0x108)]==='object'?_0x118e8d[_0x4e330d(0x108)]:_0x118e8d,_0x360cd7=pickString(_0x526698[_0x4e330d(0xf6)])||pickString(_0x526698[_0x4e330d(0xf7)])||pickString(_0x526698[_0x4e330d(0xf1)]),_0x3005bd=pickString(_0x526698[_0x4e330d(0xfe)])||pickString(_0x526698['minVersion']);if(!_0x360cd7&&!_0x3005bd)return null;return{'stableVersion':_0x360cd7,'minimumVersion':_0x3005bd,'upgradeMessage':pickString(_0x526698[_0x4e330d(0xfc)])||undefined,'minimumVersionMessage':pickString(_0x526698[_0x4e330d(0xfd)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x56cd88=a279_0xe203,_0x4019e3=new AbortController(),_0x216c82=setTimeout(()=>_0x4019e3[_0x56cd88(0x103)](),FETCH_TIMEOUT_MS);try{const _0x5f1504=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x56cd88(0xf2)},'signal':_0x4019e3[_0x56cd88(0xf9)]});if(!_0x5f1504['ok'])return null;const _0xe2be62=await _0x5f1504[_0x56cd88(0x107)]();return _0xe2be62&&typeof _0xe2be62==='object'?_0xe2be62:null;}catch{return null;}finally{clearTimeout(_0x216c82);}}function a279_0xe203(_0x412fb2,_0x2e0e81){_0x412fb2=_0x412fb2-0xf1;const _0x96cb36=a279_0x96cb();let _0xe20399=_0x96cb36[_0x412fb2];return _0xe20399;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x52ee93=a279_0xe203,_0x1cfe9d=Date[_0x52ee93(0xfb)]();if(hasCachedConfig){const _0x5633ee=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1cfe9d-cacheTime<_0x5633ee)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x1cfe9d,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a279_0x96cb(){const _0x378262=['2088321BrHunV','signal','7765SefZig','now','upgradeMessage','minimumVersionMessage','minimumVersion','1844976zAuYKO','string','2066022iCeImi','9nqqSTD','abort','780VphCDz','trim','length','json','cli','304wXpAmV','recommendedVersion','application/json','7590020gYrwkS','982805mjZAFl','150731jdRQXU','stableVersion','latestVersion'];a279_0x96cb=function(){return _0x378262;};return a279_0x96cb();}
@@ -1 +1 @@
1
- (function(_0x364c92,_0x559c3c){const _0x19e3c4=a280_0x3b42,_0x3abd46=_0x364c92();while(!![]){try{const _0x39a798=-parseInt(_0x19e3c4(0x107))/0x1*(-parseInt(_0x19e3c4(0x102))/0x2)+parseInt(_0x19e3c4(0x108))/0x3+-parseInt(_0x19e3c4(0xfd))/0x4+parseInt(_0x19e3c4(0x109))/0x5*(-parseInt(_0x19e3c4(0x103))/0x6)+-parseInt(_0x19e3c4(0xff))/0x7*(-parseInt(_0x19e3c4(0x106))/0x8)+parseInt(_0x19e3c4(0x105))/0x9*(-parseInt(_0x19e3c4(0x101))/0xa)+parseInt(_0x19e3c4(0x100))/0xb;if(_0x39a798===_0x559c3c)break;else _0x3abd46['push'](_0x3abd46['shift']());}catch(_0xa3ff0b){_0x3abd46['push'](_0x3abd46['shift']());}}}(a280_0x4e02,0x42a74));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0x591874,getMultiAppConfigs as a280_0x450854,getTemplateBaseUrl as a280_0xafca8f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a280_0x3b42(_0x43cb81,_0x287898){_0x43cb81=_0x43cb81-0xfd;const _0x4e0204=a280_0x4e02();let _0x3b4239=_0x4e0204[_0x43cb81];return _0x3b4239;}function a280_0x4e02(){const _0x5b43a0=['371463UwZRMj','2425GUZSrv','2104036wcpoSc','env','142107bjstVD','8188004nzetnP','1370YwhBGz','2tCeIVq','3810vzwjre','string','7425qhOZXC','48AYqDqK','230030FCDjTT'];a280_0x4e02=function(){return _0x5b43a0;};return a280_0x4e02();}export function readConfig(_0x290e50){const _0x18d00f=a280_0x3b42,_0x549c00=readRawConfig(_0x290e50);return _0x549c00[_0x18d00f(0xfe)]&&typeof _0x549c00[_0x18d00f(0xfe)]===_0x18d00f(0x104)&&initEnv(_0x549c00['env']),_0x549c00;}export function getConfigAppCode(){return a280_0x591874();}export function getMultiAppConfigs(_0x3fe421='project'){return a280_0x450854(_0x3fe421);}export function getTemplateBaseUrl(){return a280_0xafca8f();}
1
+ const a280_0x447558=a280_0x1681;(function(_0x18aac0,_0x50e684){const _0x4d23c7=a280_0x1681,_0x5c3a44=_0x18aac0();while(!![]){try{const _0x543f3a=-parseInt(_0x4d23c7(0x1c0))/0x1*(-parseInt(_0x4d23c7(0x1c3))/0x2)+parseInt(_0x4d23c7(0x1bf))/0x3+parseInt(_0x4d23c7(0x1bd))/0x4*(-parseInt(_0x4d23c7(0x1be))/0x5)+parseInt(_0x4d23c7(0x1ba))/0x6+-parseInt(_0x4d23c7(0x1c2))/0x7*(parseInt(_0x4d23c7(0x1bc))/0x8)+-parseInt(_0x4d23c7(0x1c6))/0x9+parseInt(_0x4d23c7(0x1c5))/0xa;if(_0x543f3a===_0x50e684)break;else _0x5c3a44['push'](_0x5c3a44['shift']());}catch(_0x325c7e){_0x5c3a44['push'](_0x5c3a44['shift']());}}}(a280_0x26ff,0xc6211));import{initEnv}from'../constant/env.js';function a280_0x1681(_0x2a4268,_0x76db51){_0x2a4268=_0x2a4268-0x1ba;const _0x26fff6=a280_0x26ff();let _0x1681e7=_0x26fff6[_0x2a4268];return _0x1681e7;}import{readRawConfig,getConfigAppCode as a280_0x2777f6,getMultiAppConfigs as a280_0x441cc2,getTemplateBaseUrl as a280_0x1e154f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4a14dc){const _0x555787=a280_0x1681,_0x4d0181=readRawConfig(_0x4a14dc);return _0x4d0181[_0x555787(0x1bb)]&&typeof _0x4d0181[_0x555787(0x1bb)]===_0x555787(0x1c1)&&initEnv(_0x4d0181[_0x555787(0x1bb)]),_0x4d0181;}function a280_0x26ff(){const _0xee47fd=['3631610WWQnhA','1054566PIDzab','4831866CtxDhG','env','1760dduStZ','1348UxTzUz','19955SaQyHp','3923241zuwiFo','7cszrch','string','10591SMtHwK','37234PpdNmT','project'];a280_0x26ff=function(){return _0xee47fd;};return a280_0x26ff();}export function getConfigAppCode(){return a280_0x2777f6();}export function getMultiAppConfigs(_0x757c50=a280_0x447558(0x1c4)){return a280_0x441cc2(_0x757c50);}export function getTemplateBaseUrl(){return a280_0x1e154f();}
@@ -1 +1 @@
1
- (function(_0x499402,_0x3c4555){const _0x31c20e=a281_0x5bdf,_0x4482d6=_0x499402();while(!![]){try{const _0x314bda=-parseInt(_0x31c20e(0x19a))/0x1+-parseInt(_0x31c20e(0x19e))/0x2*(-parseInt(_0x31c20e(0x1a2))/0x3)+parseInt(_0x31c20e(0x199))/0x4+-parseInt(_0x31c20e(0x19f))/0x5+-parseInt(_0x31c20e(0x19b))/0x6+-parseInt(_0x31c20e(0x19d))/0x7*(parseInt(_0x31c20e(0x198))/0x8)+-parseInt(_0x31c20e(0x197))/0x9*(-parseInt(_0x31c20e(0x1a0))/0xa);if(_0x314bda===_0x3c4555)break;else _0x4482d6['push'](_0x4482d6['shift']());}catch(_0x285c9b){_0x4482d6['push'](_0x4482d6['shift']());}}}(a281_0x453f,0x81e5e));function a281_0x453f(){const _0x7ce656=['10MBZjTp','string','3ahthdB','number','18153657UoCVSk','16CCysMt','1905144tnhSDb','577147sIXzuG','2789862lFhRjW','object','1614291ZbpabJ','324838DYLbou','3101830XMZZNy'];a281_0x453f=function(){return _0x7ce656;};return a281_0x453f();}function toFiniteNumber(_0x5cd865){const _0x184b92=a281_0x5bdf;if(typeof _0x5cd865===_0x184b92(0x196)&&Number['isFinite'](_0x5cd865))return _0x5cd865;if(typeof _0x5cd865===_0x184b92(0x1a1)){const _0x3e1570=_0x5cd865['trim']();if(!_0x3e1570)return undefined;const _0x25904e=Number(_0x3e1570);if(Number['isFinite'](_0x25904e))return _0x25904e;}return undefined;}function a281_0x5bdf(_0x494970,_0x5a21c0){_0x494970=_0x494970-0x196;const _0x453ff1=a281_0x453f();let _0x5bdf36=_0x453ff1[_0x494970];return _0x5bdf36;}export function normalizeEntityWithIdResponse(_0x17f929){const _0x36a509=a281_0x5bdf,_0x2bc684=toFiniteNumber(_0x17f929);if(_0x2bc684!==undefined)return{'id':_0x2bc684,'entity':{'id':_0x2bc684}};if(!_0x17f929||typeof _0x17f929!==_0x36a509(0x19c))return{'id':undefined,'entity':{}};const _0x3f5043={..._0x17f929},_0x15a4fd=toFiniteNumber(_0x3f5043['id']);return _0x15a4fd!==undefined&&(_0x3f5043['id']=_0x15a4fd),{'id':_0x15a4fd,'entity':_0x3f5043};}
1
+ (function(_0x5c8dba,_0x2c7806){const _0x354bae=a281_0x3206,_0x223d0d=_0x5c8dba();while(!![]){try{const _0x40b99f=parseInt(_0x354bae(0x1e5))/0x1*(-parseInt(_0x354bae(0x1f1))/0x2)+parseInt(_0x354bae(0x1ec))/0x3+-parseInt(_0x354bae(0x1e7))/0x4+-parseInt(_0x354bae(0x1ef))/0x5*(-parseInt(_0x354bae(0x1eb))/0x6)+-parseInt(_0x354bae(0x1ee))/0x7*(-parseInt(_0x354bae(0x1e6))/0x8)+-parseInt(_0x354bae(0x1ed))/0x9+parseInt(_0x354bae(0x1f0))/0xa*(parseInt(_0x354bae(0x1e8))/0xb);if(_0x40b99f===_0x2c7806)break;else _0x223d0d['push'](_0x223d0d['shift']());}catch(_0x32a7d8){_0x223d0d['push'](_0x223d0d['shift']());}}}(a281_0x311e,0x2d583));function a281_0x311e(){const _0x158712=['isFinite','string','12NDluKm','5280ZdctKw','1025874pVBNKl','1494661WQAboM','321085wEToCl','1098730MbPgrR','878iXEUpA','trim','257rPQJHz','8aWKzWy','164200JrJCwd','11UmIqRz'];a281_0x311e=function(){return _0x158712;};return a281_0x311e();}function a281_0x3206(_0x17d69e,_0x5bb147){_0x17d69e=_0x17d69e-0x1e4;const _0x311e64=a281_0x311e();let _0x32068e=_0x311e64[_0x17d69e];return _0x32068e;}function toFiniteNumber(_0x1a8a88){const _0x551e5b=a281_0x3206;if(typeof _0x1a8a88==='number'&&Number['isFinite'](_0x1a8a88))return _0x1a8a88;if(typeof _0x1a8a88===_0x551e5b(0x1ea)){const _0x1de48f=_0x1a8a88[_0x551e5b(0x1e4)]();if(!_0x1de48f)return undefined;const _0x345a1e=Number(_0x1de48f);if(Number[_0x551e5b(0x1e9)](_0x345a1e))return _0x345a1e;}return undefined;}export function normalizeEntityWithIdResponse(_0x241246){const _0x2f935d=toFiniteNumber(_0x241246);if(_0x2f935d!==undefined)return{'id':_0x2f935d,'entity':{'id':_0x2f935d}};if(!_0x241246||typeof _0x241246!=='object')return{'id':undefined,'entity':{}};const _0x175c64={..._0x241246},_0x326711=toFiniteNumber(_0x175c64['id']);return _0x326711!==undefined&&(_0x175c64['id']=_0x326711),{'id':_0x326711,'entity':_0x175c64};}
@@ -1 +1 @@
1
- (function(_0x2c90ac,_0x3dd2cd){const _0x300674=a282_0x4003,_0x2ca874=_0x2c90ac();while(!![]){try{const _0x105711=-parseInt(_0x300674(0xb5))/0x1+parseInt(_0x300674(0xb1))/0x2+-parseInt(_0x300674(0xb8))/0x3+parseInt(_0x300674(0xb7))/0x4*(-parseInt(_0x300674(0xb6))/0x5)+-parseInt(_0x300674(0xb2))/0x6*(-parseInt(_0x300674(0xb3))/0x7)+-parseInt(_0x300674(0xbb))/0x8*(parseInt(_0x300674(0xb9))/0x9)+parseInt(_0x300674(0xb4))/0xa;if(_0x105711===_0x3dd2cd)break;else _0x2ca874['push'](_0x2ca874['shift']());}catch(_0x1c710e){_0x2ca874['push'](_0x2ca874['shift']());}}}(a282_0x4651,0xd7894));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a282_0x4003(_0x2d24aa,_0x4da305){_0x2d24aa=_0x2d24aa-0xb1;const _0x465186=a282_0x4651();let _0x400334=_0x465186[_0x2d24aa];return _0x400334;}export async function copyDir(_0x123327,_0xcadbc){const _0x28c1d0=a282_0x4003,_0x33090b=statSync(_0x123327);if(_0x33090b[_0x28c1d0(0xba)]()){!existsSync(_0xcadbc)&&mkdirSync(_0xcadbc,{'recursive':!![]});const _0x50b070=readdirSync(_0x123327);for(const _0x5d5f06 of _0x50b070){await copyDir(join(_0x123327,_0x5d5f06),join(_0xcadbc,_0x5d5f06));}}else copyFileSync(_0x123327,_0xcadbc);}export function ensureDir(_0x606513){!existsSync(_0x606513)&&mkdirSync(_0x606513,{'recursive':!![]});}export function pathExists(_0xff57da){return existsSync(_0xff57da);}function a282_0x4651(){const _0x39b931=['304576TkPkTA','2560940vUiRTL','18yLGcti','3143371BeBKGC','21076740NDWzON','1543288tQPiAP','25dcBIfI','346844HoiPBk','4827360bYkueG','63VVOnJz','isDirectory'];a282_0x4651=function(){return _0x39b931;};return a282_0x4651();}
1
+ (function(_0x5bc19c,_0x3e79a3){const _0x7baea1=a282_0x2e28,_0x57a930=_0x5bc19c();while(!![]){try{const _0x39fed2=-parseInt(_0x7baea1(0x11b))/0x1+parseInt(_0x7baea1(0x11c))/0x2+parseInt(_0x7baea1(0x11f))/0x3+-parseInt(_0x7baea1(0x121))/0x4+parseInt(_0x7baea1(0x11d))/0x5+parseInt(_0x7baea1(0x122))/0x6+parseInt(_0x7baea1(0x120))/0x7;if(_0x39fed2===_0x3e79a3)break;else _0x57a930['push'](_0x57a930['shift']());}catch(_0x4677b8){_0x57a930['push'](_0x57a930['shift']());}}}(a282_0x46bc,0xea723));function a282_0x2e28(_0x54b41c,_0x24eab1){_0x54b41c=_0x54b41c-0x11b;const _0x46bc2f=a282_0x46bc();let _0x2e280c=_0x46bc2f[_0x54b41c];return _0x2e280c;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3fe047,_0x51ac33){const _0x272351=a282_0x2e28,_0x5be501=statSync(_0x3fe047);if(_0x5be501[_0x272351(0x11e)]()){!existsSync(_0x51ac33)&&mkdirSync(_0x51ac33,{'recursive':!![]});const _0x82db5d=readdirSync(_0x3fe047);for(const _0x3b3f7a of _0x82db5d){await copyDir(join(_0x3fe047,_0x3b3f7a),join(_0x51ac33,_0x3b3f7a));}}else copyFileSync(_0x3fe047,_0x51ac33);}export function ensureDir(_0x557346){!existsSync(_0x557346)&&mkdirSync(_0x557346,{'recursive':!![]});}export function pathExists(_0x3b67f9){return existsSync(_0x3b67f9);}function a282_0x46bc(){const _0x3c6d75=['369174OLDIEw','1032419ysZazx','334348GXbeNu','2831870tXFgoS','isDirectory','4062975zBWAVD','3790003YmqUuB','2792484DXrotJ'];a282_0x46bc=function(){return _0x3c6d75;};return a282_0x46bc();}
@@ -1 +1 @@
1
- const a283_0x25a7a8=a283_0x27d3;function a283_0x27d3(_0x3ccfcd,_0x75aff5){_0x3ccfcd=_0x3ccfcd-0x13a;const _0xf1fd46=a283_0xf1fd();let _0x27d3ef=_0xf1fd46[_0x3ccfcd];return _0x27d3ef;}(function(_0x571f28,_0x10bc96){const _0x84ae1b=a283_0x27d3,_0x26dcc7=_0x571f28();while(!![]){try{const _0x6c72fc=-parseInt(_0x84ae1b(0x14a))/0x1+parseInt(_0x84ae1b(0x14d))/0x2+parseInt(_0x84ae1b(0x13f))/0x3*(parseInt(_0x84ae1b(0x140))/0x4)+parseInt(_0x84ae1b(0x155))/0x5+-parseInt(_0x84ae1b(0x159))/0x6+parseInt(_0x84ae1b(0x158))/0x7+-parseInt(_0x84ae1b(0x149))/0x8*(parseInt(_0x84ae1b(0x157))/0x9);if(_0x6c72fc===_0x10bc96)break;else _0x26dcc7['push'](_0x26dcc7['shift']());}catch(_0x5dc155){_0x26dcc7['push'](_0x26dcc7['shift']());}}}(a283_0xf1fd,0x98406));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 _0x1460b4=a283_0x27d3,_0x589e53=getTemplateBaseUrl();return _0x589e53+_0x1460b4(0x14c);}const CACHE_DIR=join(homedir(),a283_0x25a7a8(0x14f),'cache');export async function fetchGuidesFromCDN(){const _0x590f13=a283_0x25a7a8,_0x2a24bd=getGuidesCdnUrl(),_0x3728ff=await fetch(_0x2a24bd,{'headers':{'Accept':_0x590f13(0x13d)}});if(!_0x3728ff['ok'])throw new Error(_0x590f13(0x151)+_0x3728ff[_0x590f13(0x14e)]+'\x20'+_0x3728ff[_0x590f13(0x142)]);const _0x30f0aa=await _0x3728ff[_0x590f13(0x145)]();if(!_0x30f0aa[_0x590f13(0x143)]||typeof _0x30f0aa[_0x590f13(0x143)]!==_0x590f13(0x152))throw new Error(_0x590f13(0x146));return _0x30f0aa;}export function writeGuidesToProject(_0x1938cf,_0x296a04,_0x2d61e2=a283_0x25a7a8(0x15a),_0x1fa8b3){const _0x22e08e=a283_0x25a7a8,_0x247979=join(_0x296a04,_0x2d61e2);mkdirSync(_0x247979,{'recursive':!![]});for(const [_0x1137b4,_0x5cd598]of Object[_0x22e08e(0x156)](_0x1938cf[_0x22e08e(0x143)])){let _0x26229f=_0x5cd598[_0x22e08e(0x154)];_0x5cd598[_0x22e08e(0x153)]&&(_0x26229f=appendUpdateTime(_0x26229f,_0x5cd598['lastUpdated'])),writeFileSync(join(_0x247979,_0x1137b4+_0x22e08e(0x13c)),_0x26229f,_0x22e08e(0x13b));}}export function appendUpdateTime(_0x3576eb,_0x9ccfae){const _0x50fc70=a283_0x25a7a8;return _0x3576eb=_0x3576eb[_0x50fc70(0x150)](/\n*>更新时间:.*$/m,''),_0x3576eb['trimEnd']()+('\x0a\x0a>更新时间:'+_0x9ccfae);}export function getSkillTemplate(_0x2a04dc){const _0xd95ae1=a283_0x25a7a8;return _0x2a04dc[_0xd95ae1(0x13a)]?.[_0xd95ae1(0x154)]||'';}export function appendExtendContents(_0x36c9bd,_0x86fb01,_0x392de2){const _0x311d0d=a283_0x25a7a8,_0x1eb4b4=[];for(const [,_0x555d8d]of Object[_0x311d0d(0x156)](_0x86fb01[_0x311d0d(0x143)])){_0x555d8d[_0x311d0d(0x144)]&&_0x1eb4b4['push'](_0x555d8d[_0x311d0d(0x144)]['trimEnd']());}if(_0x1eb4b4['length']===0x0)return _0x36c9bd;return _0x36c9bd['trimEnd']()+'\x0a\x0a'+_0x1eb4b4[_0x311d0d(0x13e)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x22584a,_0x37d236,_0x57f358){const _0x2e3f7e=a283_0x25a7a8,_0x28be47=getSkillTemplate(_0x22584a);if(!_0x28be47)throw new Error(_0x2e3f7e(0x141));const _0x449941=dirname(_0x37d236);mkdirSync(_0x449941,{'recursive':!![]});let _0x3b6e98=_0x28be47[_0x2e3f7e(0x150)](/\{\{IDE_NAME\}\}/g,_0x57f358);_0x3b6e98=appendExtendContents(_0x3b6e98,_0x22584a),_0x22584a['skillTemplate'][_0x2e3f7e(0x153)]&&(_0x3b6e98=appendUpdateTime(_0x3b6e98,_0x22584a[_0x2e3f7e(0x13a)][_0x2e3f7e(0x153)])),writeFileSync(_0x37d236,_0x3b6e98,_0x2e3f7e(0x13b));}export async function installGuides(_0x2e675c){const _0x2a10c5=a283_0x25a7a8,_0x46885d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x46885d,_0x2e675c),Object['keys'](_0x46885d['guides'])[_0x2a10c5(0x148)];}export function getGuidesSummary(_0x200254){const _0x13dae9=a283_0x25a7a8;return Object[_0x13dae9(0x156)](_0x200254[_0x13dae9(0x143)])[_0x13dae9(0x14b)](([_0x3db7a8,_0x308052])=>({'key':_0x3db7a8,'title':_0x308052['title'],'path':_0x308052[_0x13dae9(0x147)]}));}function a283_0xf1fd(){const _0x5e55c9=['utf-8','.md','application/json','join','3PLBpKa','4792228GAHjVw','CDN\x20data\x20is\x20missing\x20skillTemplate','statusText','guides','extendContent','json','CDN\x20returned\x20invalid\x20data','path','length','11427488XcfFPv','243403HbHrVP','map','/skills/guides.json','1559970tmwEYH','status','.lovrabet','replace','CDN\x20request\x20failed:\x20','object','lastUpdated','content','205095TkJSIg','entries','9NNDfet','4369498cazYZO','2086884PfjLgT','.lovrabet/skill/guides','skillTemplate'];a283_0xf1fd=function(){return _0x5e55c9;};return a283_0xf1fd();}
1
+ const a283_0x5b0dcb=a283_0x4b8d;(function(_0x477bd0,_0xaed065){const _0x5a53e3=a283_0x4b8d,_0x4f0e63=_0x477bd0();while(!![]){try{const _0x13bf01=parseInt(_0x5a53e3(0x10a))/0x1*(parseInt(_0x5a53e3(0x116))/0x2)+parseInt(_0x5a53e3(0x11a))/0x3*(parseInt(_0x5a53e3(0x102))/0x4)+-parseInt(_0x5a53e3(0x110))/0x5*(parseInt(_0x5a53e3(0x108))/0x6)+parseInt(_0x5a53e3(0x103))/0x7*(parseInt(_0x5a53e3(0x120))/0x8)+-parseInt(_0x5a53e3(0x112))/0x9+parseInt(_0x5a53e3(0x115))/0xa*(-parseInt(_0x5a53e3(0x104))/0xb)+-parseInt(_0x5a53e3(0x11b))/0xc*(-parseInt(_0x5a53e3(0x122))/0xd);if(_0x13bf01===_0xaed065)break;else _0x4f0e63['push'](_0x4f0e63['shift']());}catch(_0x24c64b){_0x4f0e63['push'](_0x4f0e63['shift']());}}}(a283_0x2282,0xdfcd2));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 _0x55015e=a283_0x4b8d,_0x227ffa=getTemplateBaseUrl();return _0x227ffa+_0x55015e(0x105);}const CACHE_DIR=join(homedir(),a283_0x5b0dcb(0x11f),a283_0x5b0dcb(0x113));function a283_0x2282(){const _0x49b762=['length','statusText','CDN\x20request\x20failed:\x20','lastUpdated','5AMTHWp','entries','5061087DTxkPN','cache','.md','30ewYjJr','2kXOLiP','utf-8','title','.lovrabet/skill/guides','6gsxBEH','28629996ynMqDh','path','CDN\x20data\x20is\x20missing\x20skillTemplate','keys','.lovrabet','64632rmFCYd','guides','13JTKAip','join','content','replace','725776LdefqH','497bZATen','1097547uvesWT','/skills/guides.json','\x0a\x0a>更新时间:','trimEnd','9631494TJTAxl','skillTemplate','61283WXoQAA','json'];a283_0x2282=function(){return _0x49b762;};return a283_0x2282();}function a283_0x4b8d(_0x3fcb7a,_0x387701){_0x3fcb7a=_0x3fcb7a-0x102;const _0x22823b=a283_0x2282();let _0x4b8dc6=_0x22823b[_0x3fcb7a];return _0x4b8dc6;}export async function fetchGuidesFromCDN(){const _0x1f59ad=a283_0x5b0dcb,_0x45d8ff=getGuidesCdnUrl(),_0x2c3e31=await fetch(_0x45d8ff,{'headers':{'Accept':'application/json'}});if(!_0x2c3e31['ok'])throw new Error(_0x1f59ad(0x10e)+_0x2c3e31['status']+'\x20'+_0x2c3e31[_0x1f59ad(0x10d)]);const _0x1224e5=await _0x2c3e31[_0x1f59ad(0x10b)]();if(!_0x1224e5[_0x1f59ad(0x121)]||typeof _0x1224e5[_0x1f59ad(0x121)]!=='object')throw new Error('CDN\x20returned\x20invalid\x20data');return _0x1224e5;}export function writeGuidesToProject(_0x299d2b,_0xfe28f6,_0xd7d681=a283_0x5b0dcb(0x119),_0x1e408f){const _0x2e376b=a283_0x5b0dcb,_0xc90f8c=join(_0xfe28f6,_0xd7d681);mkdirSync(_0xc90f8c,{'recursive':!![]});for(const [_0x4344a2,_0x479ebd]of Object[_0x2e376b(0x111)](_0x299d2b[_0x2e376b(0x121)])){let _0xe43986=_0x479ebd[_0x2e376b(0x124)];_0x479ebd[_0x2e376b(0x10f)]&&(_0xe43986=appendUpdateTime(_0xe43986,_0x479ebd[_0x2e376b(0x10f)])),writeFileSync(join(_0xc90f8c,_0x4344a2+_0x2e376b(0x114)),_0xe43986,_0x2e376b(0x117));}}export function appendUpdateTime(_0x1f4342,_0x5d5350){const _0x976488=a283_0x5b0dcb;return _0x1f4342=_0x1f4342['replace'](/\n*>更新时间:.*$/m,''),_0x1f4342[_0x976488(0x107)]()+(_0x976488(0x106)+_0x5d5350);}export function getSkillTemplate(_0x31d875){const _0x5f274d=a283_0x5b0dcb;return _0x31d875[_0x5f274d(0x109)]?.[_0x5f274d(0x124)]||'';}export function appendExtendContents(_0x4ea615,_0x1ad94b,_0x163dce){const _0x3c45fd=a283_0x5b0dcb,_0x1a9382=[];for(const [,_0x195ab5]of Object[_0x3c45fd(0x111)](_0x1ad94b['guides'])){_0x195ab5['extendContent']&&_0x1a9382['push'](_0x195ab5['extendContent'][_0x3c45fd(0x107)]());}if(_0x1a9382[_0x3c45fd(0x10c)]===0x0)return _0x4ea615;return _0x4ea615[_0x3c45fd(0x107)]()+'\x0a\x0a'+_0x1a9382[_0x3c45fd(0x123)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x45ef23,_0xbc049a,_0x2772b4){const _0x5ddce6=a283_0x5b0dcb,_0x5a755f=getSkillTemplate(_0x45ef23);if(!_0x5a755f)throw new Error(_0x5ddce6(0x11d));const _0x3de2fb=dirname(_0xbc049a);mkdirSync(_0x3de2fb,{'recursive':!![]});let _0x169ce0=_0x5a755f[_0x5ddce6(0x125)](/\{\{IDE_NAME\}\}/g,_0x2772b4);_0x169ce0=appendExtendContents(_0x169ce0,_0x45ef23),_0x45ef23[_0x5ddce6(0x109)][_0x5ddce6(0x10f)]&&(_0x169ce0=appendUpdateTime(_0x169ce0,_0x45ef23[_0x5ddce6(0x109)][_0x5ddce6(0x10f)])),writeFileSync(_0xbc049a,_0x169ce0,_0x5ddce6(0x117));}export async function installGuides(_0x44420d){const _0x3b47f2=a283_0x5b0dcb,_0x56f159=await fetchGuidesFromCDN();return writeGuidesToProject(_0x56f159,_0x44420d),Object[_0x3b47f2(0x11e)](_0x56f159[_0x3b47f2(0x121)])[_0x3b47f2(0x10c)];}export function getGuidesSummary(_0xaa1a9f){const _0x5e177f=a283_0x5b0dcb;return Object[_0x5e177f(0x111)](_0xaa1a9f[_0x5e177f(0x121)])['map'](([_0x589451,_0x566269])=>({'key':_0x589451,'title':_0x566269[_0x5e177f(0x118)],'path':_0x566269[_0x5e177f(0x11c)]}));}
@@ -1 +1 @@
1
- (function(_0x4c465b,_0x37d5b5){const _0x4eab3e=a284_0x5b3f,_0x1ba329=_0x4c465b();while(!![]){try{const _0xcca5db=parseInt(_0x4eab3e(0x11c))/0x1*(parseInt(_0x4eab3e(0x10b))/0x2)+-parseInt(_0x4eab3e(0x11f))/0x3+-parseInt(_0x4eab3e(0x114))/0x4+parseInt(_0x4eab3e(0x121))/0x5+-parseInt(_0x4eab3e(0x110))/0x6*(parseInt(_0x4eab3e(0x10c))/0x7)+parseInt(_0x4eab3e(0x113))/0x8*(parseInt(_0x4eab3e(0x11a))/0x9)+parseInt(_0x4eab3e(0x122))/0xa;if(_0xcca5db===_0x37d5b5)break;else _0x1ba329['push'](_0x1ba329['shift']());}catch(_0x2e4c75){_0x1ba329['push'](_0x1ba329['shift']());}}}(a284_0x3691,0xd2ab1));export async function httpRequest(_0x8b3209,_0x4d83e2={}){const _0xa3ead4=a284_0x5b3f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4d83e2;let _0x419012=null;for(let _0x2f4365=0x0;_0x2f4365<=retries;_0x2f4365++){try{const _0x1999cd=new AbortController(),_0x49fc1e=setTimeout(()=>_0x1999cd[_0xa3ead4(0x112)](),timeout),_0x1e9984=await fetch(_0x8b3209,{'headers':headers,'signal':_0x1999cd['signal']});clearTimeout(_0x49fc1e);let _0x50318c;const _0x8da133=_0x1e9984['headers']['get']('content-type');return _0x8da133?.[_0xa3ead4(0x11e)](_0xa3ead4(0x10d))?_0x50318c=await _0x1e9984[_0xa3ead4(0x126)]():_0x50318c=await _0x1e9984['text'](),{'ok':_0x1e9984['ok'],'status':_0x1e9984[_0xa3ead4(0x111)],'statusText':_0x1e9984['statusText'],'data':_0x50318c,'headers':_0x1e9984[_0xa3ead4(0x124)],'url':_0x1e9984[_0xa3ead4(0x10e)],'text':()=>_0x1e9984[_0xa3ead4(0x120)]()};}catch(_0x2b1643){_0x419012=_0x2b1643 instanceof Error?_0x2b1643:new Error(String(_0x2b1643));if(_0x2f4365===retries)break;if(shouldRetry(_0x2b1643)){console[_0xa3ead4(0x123)](_0xa3ead4(0x116)+(_0x2f4365+0x1)+_0xa3ead4(0x118)+retryDelay+_0xa3ead4(0x119)),await sleep(retryDelay);continue;}else break;}}throw _0x419012||new Error(_0xa3ead4(0x10f));}function a284_0x3691(){const _0x16d281=['status','abort','208sHeCOt','3094680IXYQkW','message','*\x20Request\x20failed;\x20retry\x20','TypeError','\x20in\x20','ms...','73386veUaas','name','535842QNgfiN','ECONNRESET','includes','2418570qgpBwm','text','2235525OztEsz','3207910VlewDe','log','headers','fetch','json','6buIPDe','4067qGkmse','application/json','url','Request\x20failed','1494hUPgFi'];a284_0x3691=function(){return _0x16d281;};return a284_0x3691();}function shouldRetry(_0x57b6d9){const _0x4c458f=a284_0x5b3f;if(_0x57b6d9 instanceof Error){if(_0x57b6d9[_0x4c458f(0x11b)]==='AbortError')return![];if(_0x57b6d9[_0x4c458f(0x11b)]===_0x4c458f(0x117)&&_0x57b6d9[_0x4c458f(0x115)]['includes'](_0x4c458f(0x125)))return!![];if(_0x57b6d9[_0x4c458f(0x115)][_0x4c458f(0x11e)](_0x4c458f(0x11d)))return!![];if(_0x57b6d9[_0x4c458f(0x115)]['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x1ea386){return new Promise(_0x20e790=>setTimeout(_0x20e790,_0x1ea386));}function a284_0x5b3f(_0x4067b8,_0x1b24f4){_0x4067b8=_0x4067b8-0x10b;const _0x369128=a284_0x3691();let _0x5b3f50=_0x369128[_0x4067b8];return _0x5b3f50;}export function validateUrl(_0x37f475){try{return new URL(_0x37f475),!![];}catch{return![];}}
1
+ function a284_0xf211(){const _0x2af53c=['5754024chSzdB','includes','get','log','TypeError','ECONNRESET','statusText','23994256CDnBPk','fetch','ENOTFOUND','text','signal','3324296APwnnB','name','2297916bRDgBm','*\x20Request\x20failed;\x20retry\x20','\x20in\x20','ms...','json','message','1301742jzQode','1LTNgXQ','status','441565XyEMII','application/json','AbortError','content-type','Request\x20failed','6700995cULCAW'];a284_0xf211=function(){return _0x2af53c;};return a284_0xf211();}(function(_0x29244f,_0x2247b2){const _0x1cb2a1=a284_0x1d85,_0x56afe0=_0x29244f();while(!![]){try{const _0x35391a=parseInt(_0x1cb2a1(0x128))/0x1*(-parseInt(_0x1cb2a1(0x121))/0x2)+-parseInt(_0x1cb2a1(0x127))/0x3+-parseInt(_0x1cb2a1(0x11f))/0x4+parseInt(_0x1cb2a1(0x12a))/0x5+-parseInt(_0x1cb2a1(0x113))/0x6+parseInt(_0x1cb2a1(0x112))/0x7+parseInt(_0x1cb2a1(0x11a))/0x8;if(_0x35391a===_0x2247b2)break;else _0x56afe0['push'](_0x56afe0['shift']());}catch(_0x3440c9){_0x56afe0['push'](_0x56afe0['shift']());}}}(a284_0xf211,0xa40ba));export async function httpRequest(_0x422961,_0x486fa5={}){const _0x4245bb=a284_0x1d85,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x486fa5;let _0x4c9343=null;for(let _0x241596=0x0;_0x241596<=retries;_0x241596++){try{const _0x934b3d=new AbortController(),_0x5a0801=setTimeout(()=>_0x934b3d['abort'](),timeout),_0x25536c=await fetch(_0x422961,{'headers':headers,'signal':_0x934b3d[_0x4245bb(0x11e)]});clearTimeout(_0x5a0801);let _0x285f04;const _0x52b811=_0x25536c['headers'][_0x4245bb(0x115)](_0x4245bb(0x110));return _0x52b811?.[_0x4245bb(0x114)](_0x4245bb(0x12b))?_0x285f04=await _0x25536c[_0x4245bb(0x125)]():_0x285f04=await _0x25536c[_0x4245bb(0x11d)](),{'ok':_0x25536c['ok'],'status':_0x25536c[_0x4245bb(0x129)],'statusText':_0x25536c[_0x4245bb(0x119)],'data':_0x285f04,'headers':_0x25536c['headers'],'url':_0x25536c['url'],'text':()=>_0x25536c[_0x4245bb(0x11d)]()};}catch(_0x29ca2d){_0x4c9343=_0x29ca2d instanceof Error?_0x29ca2d:new Error(String(_0x29ca2d));if(_0x241596===retries)break;if(shouldRetry(_0x29ca2d)){console[_0x4245bb(0x116)](_0x4245bb(0x122)+(_0x241596+0x1)+_0x4245bb(0x123)+retryDelay+_0x4245bb(0x124)),await sleep(retryDelay);continue;}else break;}}throw _0x4c9343||new Error(_0x4245bb(0x111));}function shouldRetry(_0x48981d){const _0x1e32e6=a284_0x1d85;if(_0x48981d instanceof Error){if(_0x48981d[_0x1e32e6(0x120)]===_0x1e32e6(0x12c))return![];if(_0x48981d[_0x1e32e6(0x120)]===_0x1e32e6(0x117)&&_0x48981d[_0x1e32e6(0x126)][_0x1e32e6(0x114)](_0x1e32e6(0x11b)))return!![];if(_0x48981d[_0x1e32e6(0x126)][_0x1e32e6(0x114)](_0x1e32e6(0x118)))return!![];if(_0x48981d['message']['includes'](_0x1e32e6(0x11c)))return![];}return![];}function a284_0x1d85(_0x2a38e4,_0x185b78){_0x2a38e4=_0x2a38e4-0x110;const _0xf21134=a284_0xf211();let _0x1d853b=_0xf21134[_0x2a38e4];return _0x1d853b;}function sleep(_0x189ec4){return new Promise(_0x35ed87=>setTimeout(_0x35ed87,_0x189ec4));}export function validateUrl(_0x39d379){try{return new URL(_0x39d379),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x1613ef,_0x54fcf1){const _0x598245=a285_0x4fef,_0x315d66=_0x1613ef();while(!![]){try{const _0x26d8df=parseInt(_0x598245(0x127))/0x1+-parseInt(_0x598245(0x132))/0x2+-parseInt(_0x598245(0x133))/0x3+parseInt(_0x598245(0x130))/0x4*(-parseInt(_0x598245(0x126))/0x5)+-parseInt(_0x598245(0x12d))/0x6*(-parseInt(_0x598245(0x129))/0x7)+-parseInt(_0x598245(0x12e))/0x8*(parseInt(_0x598245(0x131))/0x9)+parseInt(_0x598245(0x12b))/0xa;if(_0x26d8df===_0x54fcf1)break;else _0x315d66['push'](_0x315d66['shift']());}catch(_0x54ed45){_0x315d66['push'](_0x315d66['shift']());}}}(a285_0x4f86,0xea333));function env(_0xe00fc0){return process.env[`RABETBASE_${_0xe00fc0}`]||process.env[`LOVRABET_${_0xe00fc0}`]||undefined;}export function isNonInteractive(_0xa63a7a){const _0x118877=a285_0x4fef;return!!(_0xa63a7a['nonInteractive']||_0xa63a7a['ci']||env('CI')===_0x118877(0x12a)||process.env.CI==='true'||!process['stdout'][_0x118877(0x12c)]||!isStdinRawModeSupported());}function a285_0x4f86(){const _0x173c5c=['417893drBmxU','setRawMode','9494233LIZNwk','true','37187700MVifvD','isTTY','6LIvmQo','555952QMgKmN','stdin','12geBCXK','108TfiDcc','3479352ZBnXKj','5238972qEFhVC','356285CcipXV'];a285_0x4f86=function(){return _0x173c5c;};return a285_0x4f86();}function a285_0x4fef(_0x5a703c,_0x1db433){_0x5a703c=_0x5a703c-0x126;const _0x4f86e7=a285_0x4f86();let _0x4fef25=_0x4f86e7[_0x5a703c];return _0x4fef25;}function isStdinRawModeSupported(){const _0x1bd37e=a285_0x4fef;if(!process[_0x1bd37e(0x12f)][_0x1bd37e(0x12c)])return![];try{const _0x316769=process[_0x1bd37e(0x12f)]['isRaw'];return process['stdin'][_0x1bd37e(0x128)](!![]),process['stdin'][_0x1bd37e(0x128)](_0x316769??![]),!![];}catch{return![];}}
1
+ (function(_0x510eda,_0x2692c2){const _0x25590d=a285_0x188a,_0x809cfe=_0x510eda();while(!![]){try{const _0x52c419=parseInt(_0x25590d(0x130))/0x1+-parseInt(_0x25590d(0x12a))/0x2*(parseInt(_0x25590d(0x12b))/0x3)+parseInt(_0x25590d(0x131))/0x4+parseInt(_0x25590d(0x12c))/0x5+-parseInt(_0x25590d(0x12d))/0x6*(parseInt(_0x25590d(0x133))/0x7)+-parseInt(_0x25590d(0x138))/0x8*(parseInt(_0x25590d(0x134))/0x9)+parseInt(_0x25590d(0x136))/0xa;if(_0x52c419===_0x2692c2)break;else _0x809cfe['push'](_0x809cfe['shift']());}catch(_0xa77812){_0x809cfe['push'](_0x809cfe['shift']());}}}(a285_0x5617,0x67ef1));function env(_0x2b9413){return process.env[`RABETBASE_${_0x2b9413}`]||process.env[`LOVRABET_${_0x2b9413}`]||undefined;}export function isNonInteractive(_0x332226){const _0x2b36a7=a285_0x188a;return!!(_0x332226[_0x2b36a7(0x135)]||_0x332226['ci']||env('CI')===_0x2b36a7(0x132)||process.env.CI===_0x2b36a7(0x132)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function a285_0x5617(){const _0xac9515=['494680cvevrx','6KcNGwl','1477230QNeiqP','2451996sPeOMJ','stdin','setRawMode','742309DKRtGW','2510892uIHrUN','true','14KPiMXy','6943995xbgiCq','nonInteractive','8438020hQNSjK','isTTY','8eBnTxJ','isRaw'];a285_0x5617=function(){return _0xac9515;};return a285_0x5617();}function a285_0x188a(_0x989fc7,_0x215b56){_0x989fc7=_0x989fc7-0x129;const _0x561795=a285_0x5617();let _0x188af6=_0x561795[_0x989fc7];return _0x188af6;}function isStdinRawModeSupported(){const _0x5a39b5=a285_0x188a;if(!process['stdin'][_0x5a39b5(0x137)])return![];try{const _0x3bbb95=process[_0x5a39b5(0x12e)][_0x5a39b5(0x129)];return process[_0x5a39b5(0x12e)][_0x5a39b5(0x12f)](!![]),process[_0x5a39b5(0x12e)][_0x5a39b5(0x12f)](_0x3bbb95??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a286_0x57232c=a286_0x14ee;(function(_0x20c081,_0x5863cc){const _0x5f5696=a286_0x14ee,_0x2de5f1=_0x20c081();while(!![]){try{const _0x279b32=-parseInt(_0x5f5696(0x1a0))/0x1*(-parseInt(_0x5f5696(0x189))/0x2)+parseInt(_0x5f5696(0x194))/0x3+parseInt(_0x5f5696(0x19d))/0x4*(parseInt(_0x5f5696(0x1ae))/0x5)+parseInt(_0x5f5696(0x1a6))/0x6*(parseInt(_0x5f5696(0x19b))/0x7)+parseInt(_0x5f5696(0x199))/0x8+-parseInt(_0x5f5696(0x1a2))/0x9+-parseInt(_0x5f5696(0x1a1))/0xa*(parseInt(_0x5f5696(0x1b4))/0xb);if(_0x279b32===_0x5863cc)break;else _0x2de5f1['push'](_0x2de5f1['shift']());}catch(_0x18c84d){_0x2de5f1['push'](_0x2de5f1['shift']());}}}(a286_0xfc7d,0x59d47));function a286_0x14ee(_0x460991,_0x3c984e){_0x460991=_0x460991-0x17a;const _0xfc7d95=a286_0xfc7d();let _0x14eed7=_0xfc7d95[_0x460991];return _0x14eed7;}import a286_0x517123 from'winston';import a286_0x14dfb0 from'node:fs';import a286_0x507c07 from'node:path';function a286_0xfc7d(){const _0x1ae772=['dirname','trim','stringify','red','createLogger','success','Starting:\x20','error','readLogs','writeFileSync','command','501484gCHsOF','map','currentRawCommand','errors','Failed\x20to\x20read\x20logs:','utf8','message','clear','printf','logTask','log','1332243zcddMJ','existsSync','setLogPath','readFileSync','yellow','5553672VHcSoZ','format','7qXhYAm','winstonLogger','21832ScarjJ','rawCommand','setRawCommand','1MXDlBa','4402120bnmewZ','4446054AaJFuV','clearLogs','filter','.lovrabet.log','3615138ZCzRbx','level','warn','toISOString','transports','logFilePath','split','combine','175jVJjDF','File','Completed:\x20','initWinstonLogger','details','timestamp','33OrtxuH','getWinstonInstance','now','Failed:\x20','mkdirSync','info'];a286_0xfc7d=function(){return _0x1ae772;};return a286_0xfc7d();}class Logger{[a286_0x57232c(0x19c)];[a286_0x57232c(0x1ab)];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a286_0x57232c(0x19f)](_0x43f1c6){const _0x32e3dd=a286_0x57232c;this[_0x32e3dd(0x18b)]=_0x43f1c6;}[a286_0x57232c(0x1b1)](){const _0x31bc4c=a286_0x57232c,_0xa23092=a286_0x507c07[_0x31bc4c(0x17e)](this[_0x31bc4c(0x1ab)]);!a286_0x14dfb0[_0x31bc4c(0x195)](_0xa23092)&&a286_0x14dfb0[_0x31bc4c(0x17c)](_0xa23092,{'recursive':!![]});const _0x4c2d50=a286_0x517123[_0x31bc4c(0x19a)][_0x31bc4c(0x1ad)](a286_0x517123[_0x31bc4c(0x19a)][_0x31bc4c(0x1b3)](),a286_0x517123[_0x31bc4c(0x19a)][_0x31bc4c(0x18c)]({'stack':!![]}),a286_0x517123['format'][_0x31bc4c(0x191)](_0x174a24=>{const _0x2138bf=_0x31bc4c,_0x129461={'timestamp':_0x174a24[_0x2138bf(0x1b3)]||new Date()[_0x2138bf(0x1a9)](),'level':_0x174a24[_0x2138bf(0x1a7)]||'info','command':_0x174a24[_0x2138bf(0x188)]||'unknown','rawCommand':_0x174a24[_0x2138bf(0x19e)]||this[_0x2138bf(0x18b)]||undefined,'message':_0x174a24[_0x2138bf(0x18f)]||'','duration':_0x174a24['duration']||undefined,'details':_0x174a24[_0x2138bf(0x1b2)]||undefined};return JSON[_0x2138bf(0x180)](_0x129461);}));this[_0x31bc4c(0x19c)]=a286_0x517123[_0x31bc4c(0x182)]({'level':'info','format':_0x4c2d50,'transports':[new a286_0x517123[(_0x31bc4c(0x1aa))][(_0x31bc4c(0x1af))]({'filename':this[_0x31bc4c(0x1ab)],'level':_0x31bc4c(0x17d)})],'silent':![]}),a286_0x517123['addColors']({'success':'green','error':_0x31bc4c(0x181),'warn':_0x31bc4c(0x198),'info':'blue'});}[a286_0x57232c(0x196)](_0x146b9b){const _0x186f00=a286_0x57232c;this[_0x186f00(0x1ab)]=a286_0x507c07['join'](_0x146b9b,_0x186f00(0x1a5)),this[_0x186f00(0x19c)]&&this[_0x186f00(0x19c)][_0x186f00(0x190)](),this['initWinstonLogger']();}[a286_0x57232c(0x17d)](_0x2ed5e8,_0x13b0fb,_0x459ed9){const _0x36b700=a286_0x57232c;if(!this[_0x36b700(0x1ab)]||!this[_0x36b700(0x19c)])return;this[_0x36b700(0x19c)][_0x36b700(0x17d)](_0x13b0fb,{'command':_0x2ed5e8,'details':_0x459ed9});}[a286_0x57232c(0x183)](_0xd54de2,_0x66e50a,_0x539560,_0x45621f){const _0x4e6470=a286_0x57232c;if(!this[_0x4e6470(0x1ab)]||!this[_0x4e6470(0x19c)])return;this[_0x4e6470(0x19c)][_0x4e6470(0x193)](_0x4e6470(0x17d),_0x66e50a,{'level':_0x4e6470(0x183),'command':_0xd54de2,'duration':_0x539560,'details':_0x45621f});}[a286_0x57232c(0x185)](_0x5c5df3,_0x17482c,_0x25cf02){const _0x1ca1bb=a286_0x57232c;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x1ca1bb(0x19c)][_0x1ca1bb(0x185)](_0x17482c,{'command':_0x5c5df3,'details':_0x25cf02});}[a286_0x57232c(0x1a8)](_0x21eb73,_0x4f1977,_0x322274){const _0x42dc92=a286_0x57232c;if(!this[_0x42dc92(0x1ab)]||!this[_0x42dc92(0x19c)])return;this[_0x42dc92(0x19c)]['warn'](_0x4f1977,{'command':_0x21eb73,'details':_0x322274});}async[a286_0x57232c(0x192)](_0x4bd042,_0x251f9a,_0x411308){const _0x32dca6=a286_0x57232c,_0x13ee6e=Date[_0x32dca6(0x17a)]();this[_0x32dca6(0x17d)](_0x4bd042,_0x32dca6(0x184)+_0x251f9a);try{const _0x5749fd=await _0x411308(),_0x401fc8=Date[_0x32dca6(0x17a)]()-_0x13ee6e;return this[_0x32dca6(0x183)](_0x4bd042,_0x32dca6(0x1b0)+_0x251f9a,_0x401fc8),_0x5749fd;}catch(_0x1dde29){const _0x36e50e=Date['now']()-_0x13ee6e;this[_0x32dca6(0x185)](_0x4bd042,_0x32dca6(0x17b)+_0x251f9a,{'error':_0x1dde29 instanceof Error?_0x1dde29['message']:String(_0x1dde29),'duration':_0x36e50e});throw _0x1dde29;}}[a286_0x57232c(0x186)](){const _0x39dd1a=a286_0x57232c;try{if(!a286_0x14dfb0[_0x39dd1a(0x195)](this['logFilePath']))return[];const _0x828818=a286_0x14dfb0[_0x39dd1a(0x197)](this['logFilePath'],'utf8');return _0x828818[_0x39dd1a(0x1ac)]('\x0a')[_0x39dd1a(0x1a4)](_0x553e75=>_0x553e75[_0x39dd1a(0x17f)]())[_0x39dd1a(0x18a)](_0x77d3dc=>JSON['parse'](_0x77d3dc));}catch(_0x562f95){return console['warn'](_0x39dd1a(0x18d),_0x562f95),[];}}[a286_0x57232c(0x1a3)](){const _0xeac2d=a286_0x57232c;try{a286_0x14dfb0[_0xeac2d(0x195)](this['logFilePath'])&&a286_0x14dfb0[_0xeac2d(0x187)](this[_0xeac2d(0x1ab)],'',_0xeac2d(0x18e));}catch(_0x525cbe){console['warn']('Failed\x20to\x20clear\x20logs:',_0x525cbe);}}[a286_0x57232c(0x1b5)](){const _0x44408d=a286_0x57232c;return this[_0x44408d(0x19c)];}}export const logger=new Logger();
1
+ const a286_0x47556e=a286_0x3e83;function a286_0x2e85(){const _0x1a5909=['red','existsSync','474CbpKuO','logFilePath','duration','error','958022ECKKWy','winstonLogger','mkdirSync','now','toISOString','success','printf','warn','9325OZSmMy','utf8','transports','2188569UalnbA','errors','green','map','format','.lovrabet.log','53896977hiPPgm','combine','readLogs','File','message','clear','blue','2143652aFiUjr','rawCommand','initWinstonLogger','stringify','dirname','getWinstonInstance','info','currentRawCommand','7lESHuu','Failed\x20to\x20read\x20logs:','addColors','12678304knrOlc','Failed\x20to\x20clear\x20logs:','filter','2563564MqdYEp','writeFileSync','yellow','details','Completed:\x20','timestamp','trim'];a286_0x2e85=function(){return _0x1a5909;};return a286_0x2e85();}(function(_0x1ceed5,_0x1f6b17){const _0x545dda=a286_0x3e83,_0x2e10d4=_0x1ceed5();while(!![]){try{const _0x8d2d6d=-parseInt(_0x545dda(0x1a2))/0x1+-parseInt(_0x545dda(0x187))/0x2+-parseInt(_0x545dda(0x17a))/0x3+-parseInt(_0x545dda(0x195))/0x4+-parseInt(_0x545dda(0x177))/0x5*(parseInt(_0x545dda(0x19e))/0x6)+parseInt(_0x545dda(0x18f))/0x7*(-parseInt(_0x545dda(0x192))/0x8)+parseInt(_0x545dda(0x180))/0x9;if(_0x8d2d6d===_0x1f6b17)break;else _0x2e10d4['push'](_0x2e10d4['shift']());}catch(_0x50160){_0x2e10d4['push'](_0x2e10d4['shift']());}}}(a286_0x2e85,0xd1068));import a286_0x2a09ba from'winston';import a286_0xb5dc9c from'node:fs';import a286_0x47bd46 from'node:path';function a286_0x3e83(_0x109311,_0x291334){_0x109311=_0x109311-0x177;const _0x2e85c7=a286_0x2e85();let _0x3e83aa=_0x2e85c7[_0x109311];return _0x3e83aa;}class Logger{['winstonLogger'];[a286_0x47556e(0x19f)];[a286_0x47556e(0x18e)]='';constructor(){const _0x252d6e=a286_0x47556e;this[_0x252d6e(0x19f)]='';}['setRawCommand'](_0x2f1cab){this['currentRawCommand']=_0x2f1cab;}[a286_0x47556e(0x189)](){const _0x513819=a286_0x47556e,_0x3f40b4=a286_0x47bd46[_0x513819(0x18b)](this['logFilePath']);!a286_0xb5dc9c[_0x513819(0x19d)](_0x3f40b4)&&a286_0xb5dc9c[_0x513819(0x1a4)](_0x3f40b4,{'recursive':!![]});const _0x48d3db=a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x181)](a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x19a)](),a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x17b)]({'stack':!![]}),a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x1a8)](_0x1b538c=>{const _0xf929b0=_0x513819,_0xb5b4f3={'timestamp':_0x1b538c[_0xf929b0(0x19a)]||new Date()[_0xf929b0(0x1a6)](),'level':_0x1b538c['level']||_0xf929b0(0x18d),'command':_0x1b538c['command']||'unknown','rawCommand':_0x1b538c[_0xf929b0(0x188)]||this[_0xf929b0(0x18e)]||undefined,'message':_0x1b538c[_0xf929b0(0x184)]||'','duration':_0x1b538c[_0xf929b0(0x1a0)]||undefined,'details':_0x1b538c[_0xf929b0(0x198)]||undefined};return JSON[_0xf929b0(0x18a)](_0xb5b4f3);}));this['winstonLogger']=a286_0x2a09ba['createLogger']({'level':_0x513819(0x18d),'format':_0x48d3db,'transports':[new a286_0x2a09ba[(_0x513819(0x179))][(_0x513819(0x183))]({'filename':this['logFilePath'],'level':_0x513819(0x18d)})],'silent':![]}),a286_0x2a09ba[_0x513819(0x191)]({'success':_0x513819(0x17c),'error':_0x513819(0x19c),'warn':_0x513819(0x197),'info':_0x513819(0x186)});}['setLogPath'](_0xa2a13a){const _0x3ab1c4=a286_0x47556e;this[_0x3ab1c4(0x19f)]=a286_0x47bd46['join'](_0xa2a13a,_0x3ab1c4(0x17f)),this[_0x3ab1c4(0x1a3)]&&this[_0x3ab1c4(0x1a3)][_0x3ab1c4(0x185)](),this[_0x3ab1c4(0x189)]();}[a286_0x47556e(0x18d)](_0x366456,_0x6eccf2,_0x42c81d){const _0x9d61b7=a286_0x47556e;if(!this[_0x9d61b7(0x19f)]||!this[_0x9d61b7(0x1a3)])return;this[_0x9d61b7(0x1a3)][_0x9d61b7(0x18d)](_0x6eccf2,{'command':_0x366456,'details':_0x42c81d});}[a286_0x47556e(0x1a7)](_0x58e091,_0x59e71f,_0x2a8623,_0x18699d){const _0x3598d0=a286_0x47556e;if(!this['logFilePath']||!this[_0x3598d0(0x1a3)])return;this[_0x3598d0(0x1a3)]['log'](_0x3598d0(0x18d),_0x59e71f,{'level':'success','command':_0x58e091,'duration':_0x2a8623,'details':_0x18699d});}[a286_0x47556e(0x1a1)](_0x21cf4e,_0x48ad0a,_0x2c7986){const _0x24417c=a286_0x47556e;if(!this['logFilePath']||!this[_0x24417c(0x1a3)])return;this[_0x24417c(0x1a3)][_0x24417c(0x1a1)](_0x48ad0a,{'command':_0x21cf4e,'details':_0x2c7986});}[a286_0x47556e(0x1a9)](_0x3a588c,_0x1f30b2,_0x2a783d){const _0x4115ed=a286_0x47556e;if(!this[_0x4115ed(0x19f)]||!this[_0x4115ed(0x1a3)])return;this['winstonLogger'][_0x4115ed(0x1a9)](_0x1f30b2,{'command':_0x3a588c,'details':_0x2a783d});}async['logTask'](_0x216e70,_0x2c4204,_0x1d302){const _0x3fcb4f=a286_0x47556e,_0x15cb9d=Date['now']();this[_0x3fcb4f(0x18d)](_0x216e70,'Starting:\x20'+_0x2c4204);try{const _0x1c59f6=await _0x1d302(),_0xc32e76=Date[_0x3fcb4f(0x1a5)]()-_0x15cb9d;return this[_0x3fcb4f(0x1a7)](_0x216e70,_0x3fcb4f(0x199)+_0x2c4204,_0xc32e76),_0x1c59f6;}catch(_0xd362c6){const _0x513c4a=Date['now']()-_0x15cb9d;this['error'](_0x216e70,'Failed:\x20'+_0x2c4204,{'error':_0xd362c6 instanceof Error?_0xd362c6[_0x3fcb4f(0x184)]:String(_0xd362c6),'duration':_0x513c4a});throw _0xd362c6;}}[a286_0x47556e(0x182)](){const _0x20aab3=a286_0x47556e;try{if(!a286_0xb5dc9c['existsSync'](this[_0x20aab3(0x19f)]))return[];const _0x5d467f=a286_0xb5dc9c['readFileSync'](this[_0x20aab3(0x19f)],_0x20aab3(0x178));return _0x5d467f['split']('\x0a')[_0x20aab3(0x194)](_0x483963=>_0x483963[_0x20aab3(0x19b)]())[_0x20aab3(0x17d)](_0x523374=>JSON['parse'](_0x523374));}catch(_0x49bdb4){return console['warn'](_0x20aab3(0x190),_0x49bdb4),[];}}['clearLogs'](){const _0x3ddcf8=a286_0x47556e;try{a286_0xb5dc9c[_0x3ddcf8(0x19d)](this[_0x3ddcf8(0x19f)])&&a286_0xb5dc9c[_0x3ddcf8(0x196)](this[_0x3ddcf8(0x19f)],'','utf8');}catch(_0x17bc96){console[_0x3ddcf8(0x1a9)](_0x3ddcf8(0x193),_0x17bc96);}}[a286_0x47556e(0x18c)](){const _0x178f83=a286_0x47556e;return this[_0x178f83(0x1a3)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a287_0xc397(_0x5c2d85,_0x1cc0eb){_0x5c2d85=_0x5c2d85-0x17c;const _0x3ba8e6=a287_0x3ba8();let _0xc3978=_0x3ba8e6[_0x5c2d85];return _0xc3978;}(function(_0x1f2297,_0x1fbb35){const _0x4a42dc=a287_0xc397,_0x38623a=_0x1f2297();while(!![]){try{const _0x5463a9=parseInt(_0x4a42dc(0x182))/0x1+parseInt(_0x4a42dc(0x18c))/0x2+parseInt(_0x4a42dc(0x18d))/0x3*(parseInt(_0x4a42dc(0x188))/0x4)+-parseInt(_0x4a42dc(0x187))/0x5*(parseInt(_0x4a42dc(0x189))/0x6)+-parseInt(_0x4a42dc(0x186))/0x7*(-parseInt(_0x4a42dc(0x184))/0x8)+parseInt(_0x4a42dc(0x181))/0x9+parseInt(_0x4a42dc(0x180))/0xa*(-parseInt(_0x4a42dc(0x17d))/0xb);if(_0x5463a9===_0x1fbb35)break;else _0x38623a['push'](_0x38623a['shift']());}catch(_0x3ddfd3){_0x38623a['push'](_0x38623a['shift']());}}}(a287_0x3ba8,0x8c166));function a287_0x3ba8(){const _0x5e6c5e=['validation','7dXnRYp','15UeBzYg','36ySQdgz','1744212YFKsVw','--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','889210yOZltj','200154IaVNrE','Invalid\x20JSON\x20for\x20--params:\x20','10868671iozvDK','object','parse','10uiZKkG','3058173wQUIYx','27127SZBjYO','isArray','8175792YefmVF'];a287_0x3ba8=function(){return _0x5e6c5e;};return a287_0x3ba8();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1fdbbc){const _0x139e99=a287_0xc397;if(!_0x1fdbbc)return undefined;let _0x624022;try{_0x624022=JSON[_0x139e99(0x17f)](_0x1fdbbc);}catch{throw CliErrors[_0x139e99(0x185)](_0x139e99(0x17c)+_0x1fdbbc);}if(!_0x624022||typeof _0x624022!==_0x139e99(0x17e)||Array[_0x139e99(0x183)](_0x624022))throw CliErrors[_0x139e99(0x185)](_0x139e99(0x18a),_0x139e99(0x18b));return _0x624022;}
1
+ function a287_0x9bd8(_0x134a23,_0x4d219){_0x134a23=_0x134a23-0x1cd;const _0x15735c=a287_0x1573();let _0x9bd894=_0x15735c[_0x134a23];return _0x9bd894;}(function(_0x3e698b,_0x14b6fc){const _0x271faf=a287_0x9bd8,_0x564d4=_0x3e698b();while(!![]){try{const _0x578756=-parseInt(_0x271faf(0x1cd))/0x1*(-parseInt(_0x271faf(0x1cf))/0x2)+-parseInt(_0x271faf(0x1ce))/0x3+-parseInt(_0x271faf(0x1d3))/0x4+parseInt(_0x271faf(0x1d7))/0x5+-parseInt(_0x271faf(0x1d4))/0x6+parseInt(_0x271faf(0x1d0))/0x7+parseInt(_0x271faf(0x1d6))/0x8;if(_0x578756===_0x14b6fc)break;else _0x564d4['push'](_0x564d4['shift']());}catch(_0x265dc4){_0x564d4['push'](_0x564d4['shift']());}}}(a287_0x1573,0x33450));function a287_0x1573(){const _0x3178f8=['4UAGffb','847231OfeUcj','validation','isArray','1348872GhRtiS','1104642UVBlST','object','1776976jTsoGl','889630ZvNziV','--params\x20must\x20be\x20a\x20JSON\x20object','120431tWsBgj','91854NVVYnf'];a287_0x1573=function(){return _0x3178f8;};return a287_0x1573();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1b1eab){const _0x227412=a287_0x9bd8;if(!_0x1b1eab)return undefined;let _0x57a55d;try{_0x57a55d=JSON['parse'](_0x1b1eab);}catch{throw CliErrors[_0x227412(0x1d1)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x1b1eab);}if(!_0x57a55d||typeof _0x57a55d!==_0x227412(0x1d5)||Array[_0x227412(0x1d2)](_0x57a55d))throw CliErrors[_0x227412(0x1d1)](_0x227412(0x1d8),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x57a55d;}
@@ -1 +1 @@
1
- function a288_0x1e11(){const _0x164a76=['229360GMpuyQ','21907EcnURC','3411576OJPqLo','20373DjkaGz','50uuPXhO','1646538HVqitS','284YSgVOI','660920muFzSx','3523491Kcqbax','8kjxaEK'];a288_0x1e11=function(){return _0x164a76;};return a288_0x1e11();}(function(_0x2402c9,_0x191470){const _0x1f9eb5=a288_0x13ac,_0x1d2434=_0x2402c9();while(!![]){try{const _0x313c4d=parseInt(_0x1f9eb5(0xdb))/0x1*(-parseInt(_0x1f9eb5(0xde))/0x2)+parseInt(_0x1f9eb5(0xdd))/0x3*(parseInt(_0x1f9eb5(0xe0))/0x4)+-parseInt(_0x1f9eb5(0xda))/0x5+parseInt(_0x1f9eb5(0xdf))/0x6+parseInt(_0x1f9eb5(0xdc))/0x7+-parseInt(_0x1f9eb5(0xe3))/0x8*(parseInt(_0x1f9eb5(0xe2))/0x9)+parseInt(_0x1f9eb5(0xe1))/0xa;if(_0x313c4d===_0x191470)break;else _0x1d2434['push'](_0x1d2434['shift']());}catch(_0x3b519c){_0x1d2434['push'](_0x1d2434['shift']());}}}(a288_0x1e11,0x4f586));function a288_0x13ac(_0x2c0d06,_0x4f7765){_0x2c0d06=_0x2c0d06-0xda;const _0x1e1144=a288_0x1e11();let _0x13ac76=_0x1e1144[_0x2c0d06];return _0x13ac76;}export const isWindows=process['platform']==='win32';export function resolveNpmBin(_0xd63ecf){return isWindows?_0xd63ecf+'.cmd':_0xd63ecf;}
1
+ const a288_0x18210d=a288_0xa00f;function a288_0xa00f(_0x175b42,_0x3208bb){_0x175b42=_0x175b42-0x110;const _0x17101f=a288_0x1710();let _0xa00f72=_0x17101f[_0x175b42];return _0xa00f72;}(function(_0x3c3d9d,_0x101def){const _0x101364=a288_0xa00f,_0x2fbd20=_0x3c3d9d();while(!![]){try{const _0x4a97cb=-parseInt(_0x101364(0x11a))/0x1+parseInt(_0x101364(0x117))/0x2+-parseInt(_0x101364(0x115))/0x3*(parseInt(_0x101364(0x113))/0x4)+-parseInt(_0x101364(0x118))/0x5+parseInt(_0x101364(0x110))/0x6+parseInt(_0x101364(0x112))/0x7*(-parseInt(_0x101364(0x11b))/0x8)+parseInt(_0x101364(0x119))/0x9;if(_0x4a97cb===_0x101def)break;else _0x2fbd20['push'](_0x2fbd20['shift']());}catch(_0x411cdd){_0x2fbd20['push'](_0x2fbd20['shift']());}}}(a288_0x1710,0x4fa0f));export const isWindows=process[a288_0x18210d(0x111)]===a288_0x18210d(0x114);export function resolveNpmBin(_0x1fd2b1){const _0x56666c=a288_0x18210d;return isWindows?_0x1fd2b1+_0x56666c(0x116):_0x1fd2b1;}function a288_0x1710(){const _0x4a362c=['platform','511kIaMcy','15924wyjJPV','win32','189ZkaMvw','.cmd','469550cUSWey','2566175RAnshF','14390559kmTeGN','565604IRXnkA','63632xPSMGI','2416302MUQtgz'];a288_0x1710=function(){return _0x4a362c;};return a288_0x1710();}
@@ -1 +1 @@
1
- export function sleep(_0x154081){return new Promise(_0x3ae0dc=>setTimeout(_0x3ae0dc,_0x154081));}
1
+ export function sleep(_0x8bf30a){return new Promise(_0x5b445d=>setTimeout(_0x5b445d,_0x8bf30a));}