@lovrabet/rabetbase-cli 2.5.5-beta.1 → 2.5.5-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 (367) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +13 -9
  363. package/skills/rabetbase-page-generation/references/component-baseline.md +2 -2
  364. package/skills/rabetbase-page-generation/references/generation.md +64 -15
  365. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +39 -54
  366. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +6 -2
  367. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a331_0x2477(){const _0x514002=['utf8','recorded','find','\x20records\x20\x22','version','\x20uses\x20unsupported\x20version\x20','parse','map','message','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','504rCVMnS','join','\x20has\x20no\x20skills\x20map','989891zQcytv','kind','.skill-lock.json','1HZIscS','.claude','2573425mgTjGy','127240EiXEBA','.agents','SKILL.md','437049PeuXZl','934256psQnmi','globalSkillsDirs','8cNYsVT','reason','not-recorded','skills','881658vetFYm','\x20is\x20unreadable:\x20','2002156xgVgQP','unverifiable','absent','object','unusable','present'];a331_0x2477=function(){return _0x514002;};return a331_0x2477();}const a331_0x23cfe1=a331_0x5b7d;function a331_0x5b7d(_0x282bef,_0x9b8889){_0x282bef=_0x282bef-0x183;const _0x2477df=a331_0x2477();let _0x5b7d84=_0x2477df[_0x282bef];return _0x5b7d84;}(function(_0x3bd67b,_0x378934){const _0x39b02b=a331_0x5b7d,_0x12f64b=_0x3bd67b();while(!![]){try{const _0x32fb07=parseInt(_0x39b02b(0x185))/0x1*(-parseInt(_0x39b02b(0x18c))/0x2)+-parseInt(_0x39b02b(0x18b))/0x3+-parseInt(_0x39b02b(0x194))/0x4+parseInt(_0x39b02b(0x187))/0x5+parseInt(_0x39b02b(0x192))/0x6+parseInt(_0x39b02b(0x1a7))/0x7*(parseInt(_0x39b02b(0x18e))/0x8)+parseInt(_0x39b02b(0x1a4))/0x9*(parseInt(_0x39b02b(0x188))/0xa);if(_0x32fb07===_0x378934)break;else _0x12f64b['push'](_0x12f64b['shift']());}catch(_0x4a72c2){_0x12f64b['push'](_0x12f64b['shift']());}}}(a331_0x2477,0x6233b));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a331_0x23cfe1(0x189),a331_0x23cfe1(0x184));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a331_0x23cfe1(0x189),a331_0x23cfe1(0x191)),join(a331_0x23cfe1(0x186),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x28c800,_0x135d7b){const _0x47ac34=a331_0x23cfe1;if(!existsSync(_0x28c800))return{'kind':'not-recorded'};let _0x232eef;try{_0x232eef=JSON[_0x47ac34(0x1a0)](readFileSync(_0x28c800,_0x47ac34(0x19a)));}catch(_0x3690b2){return{'kind':'unusable','reason':_0x28c800+_0x47ac34(0x193)+_0x3690b2[_0x47ac34(0x1a2)]};}const _0x4c6110=_0x232eef;if(typeof _0x4c6110?.[_0x47ac34(0x19e)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x4c6110[_0x47ac34(0x19e)]))return{'kind':'unusable','reason':_0x28c800+_0x47ac34(0x19f)+String(_0x4c6110?.[_0x47ac34(0x19e)])};if(!_0x4c6110[_0x47ac34(0x191)]||typeof _0x4c6110[_0x47ac34(0x191)]!==_0x47ac34(0x197))return{'kind':'unusable','reason':_0x28c800+_0x47ac34(0x1a6)};return _0x4c6110[_0x47ac34(0x191)][_0x135d7b]?{'kind':_0x47ac34(0x19b)}:{'kind':_0x47ac34(0x190)};}export function resolveInstalledSkill(_0x408e49,_0x1f9c94){const _0x272033=a331_0x23cfe1,_0x9e22b1=_0x1f9c94?.['home']??homedir(),_0x26f56c=_0x1f9c94?.[_0x272033(0x18d)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x272033(0x1a1)](_0x294bbd=>join(_0x9e22b1,_0x294bbd)),_0x265706=_0x1f9c94?.['lockFile']??join(_0x9e22b1,SKILL_LOCK_RELATIVE_PATH),_0x42bfc6=_0x26f56c['map'](_0xa6c95e=>join(_0xa6c95e,_0x408e49,_0x272033(0x18a))),_0x305027=_0x42bfc6[_0x272033(0x19c)](_0x2c114c=>existsSync(_0x2c114c));if(_0x305027)return{'state':_0x272033(0x199),'path':_0x305027};const _0x5c8115=readLockLookup(_0x265706,_0x408e49);if(_0x5c8115['kind']===_0x272033(0x198))return{'state':_0x272033(0x195),'reason':_0x5c8115[_0x272033(0x18f)]};if(_0x5c8115[_0x272033(0x183)]===_0x272033(0x19b))return{'state':_0x272033(0x195),'reason':_0x265706+_0x272033(0x19d)+_0x408e49+_0x272033(0x1a3)+('('+_0x42bfc6[_0x272033(0x1a5)](',\x20')+')')};return{'state':_0x272033(0x196),'checked':_0x42bfc6};}
1
+ const a331_0x3f0c65=a331_0x43a5;(function(_0x4c4729,_0x19f87b){const _0x3e7320=a331_0x43a5,_0x5eae36=_0x4c4729();while(!![]){try{const _0xa424e6=parseInt(_0x3e7320(0xf9))/0x1*(-parseInt(_0x3e7320(0xfb))/0x2)+-parseInt(_0x3e7320(0xfa))/0x3+-parseInt(_0x3e7320(0x109))/0x4*(parseInt(_0x3e7320(0x112))/0x5)+-parseInt(_0x3e7320(0x104))/0x6+-parseInt(_0x3e7320(0x105))/0x7+parseInt(_0x3e7320(0xf2))/0x8*(-parseInt(_0x3e7320(0x106))/0x9)+parseInt(_0x3e7320(0xf3))/0xa;if(_0xa424e6===_0x19f87b)break;else _0x5eae36['push'](_0x5eae36['shift']());}catch(_0x48c034){_0x5eae36['push'](_0x5eae36['shift']());}}}(a331_0x2621,0xbe9ef));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a331_0x2621(){const _0x4b4342=['not-recorded','join','.skill-lock.json','number','kind','4541676diHLQS','1494311yoHjAH','9PayBKF','absent','message','4435828dmcDBq','SKILL.md','utf8','.agents','skills','version','.claude','lockFile','reason','5YdeFJE','map','\x20is\x20unreadable:\x20','6818696FJuiMF','43398690HsdrXl','includes','recorded','globalSkillsDirs','unverifiable','\x20has\x20no\x20skills\x20map','209501HaDkKI','1253616UnlHXN','2GXrVGO','unusable','present','home'];a331_0x2621=function(){return _0x4b4342;};return a331_0x2621();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a331_0x3f0c65(0x10c),a331_0x3f0c65(0x101));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a331_0x3f0c65(0x10c),'skills'),join(a331_0x3f0c65(0x10f),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a331_0x43a5(_0x2278f5,_0x5e20eb){_0x2278f5=_0x2278f5-0xf0;const _0x2621e0=a331_0x2621();let _0x43a59e=_0x2621e0[_0x2278f5];return _0x43a59e;}function readLockLookup(_0x4ece31,_0x1bef18){const _0x29d19b=a331_0x3f0c65;if(!existsSync(_0x4ece31))return{'kind':'not-recorded'};let _0x1dc1b6;try{_0x1dc1b6=JSON['parse'](readFileSync(_0x4ece31,_0x29d19b(0x10b)));}catch(_0x32b069){return{'kind':_0x29d19b(0xfc),'reason':_0x4ece31+_0x29d19b(0xf1)+_0x32b069[_0x29d19b(0x108)]};}const _0x34bda4=_0x1dc1b6;if(typeof _0x34bda4?.[_0x29d19b(0x10e)]!==_0x29d19b(0x102)||!SUPPORTED_LOCK_VERSIONS[_0x29d19b(0xf4)](_0x34bda4[_0x29d19b(0x10e)]))return{'kind':_0x29d19b(0xfc),'reason':_0x4ece31+'\x20uses\x20unsupported\x20version\x20'+String(_0x34bda4?.[_0x29d19b(0x10e)])};if(!_0x34bda4[_0x29d19b(0x10d)]||typeof _0x34bda4[_0x29d19b(0x10d)]!=='object')return{'kind':_0x29d19b(0xfc),'reason':_0x4ece31+_0x29d19b(0xf8)};return _0x34bda4[_0x29d19b(0x10d)][_0x1bef18]?{'kind':_0x29d19b(0xf5)}:{'kind':_0x29d19b(0xff)};}export function resolveInstalledSkill(_0x28576b,_0x3f7bcf){const _0x1dba9a=a331_0x3f0c65,_0x454095=_0x3f7bcf?.[_0x1dba9a(0xfe)]??homedir(),_0x1440a8=_0x3f7bcf?.[_0x1dba9a(0xf6)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x8ece1=>join(_0x454095,_0x8ece1)),_0x4ccdbf=_0x3f7bcf?.[_0x1dba9a(0x110)]??join(_0x454095,SKILL_LOCK_RELATIVE_PATH),_0x7cd47d=_0x1440a8[_0x1dba9a(0xf0)](_0x1054ff=>join(_0x1054ff,_0x28576b,_0x1dba9a(0x10a))),_0x19fe54=_0x7cd47d['find'](_0x1875ae=>existsSync(_0x1875ae));if(_0x19fe54)return{'state':_0x1dba9a(0xfd),'path':_0x19fe54};const _0x534db0=readLockLookup(_0x4ccdbf,_0x28576b);if(_0x534db0[_0x1dba9a(0x103)]===_0x1dba9a(0xfc))return{'state':_0x1dba9a(0xf7),'reason':_0x534db0[_0x1dba9a(0x111)]};if(_0x534db0[_0x1dba9a(0x103)]===_0x1dba9a(0xf5))return{'state':'unverifiable','reason':_0x4ccdbf+'\x20records\x20\x22'+_0x28576b+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x7cd47d[_0x1dba9a(0x100)](',\x20')+')')};return{'state':_0x1dba9a(0x107),'checked':_0x7cd47d};}
@@ -1 +1 @@
1
- (function(_0x5caf74,_0x103318){const _0x4c02fd=a332_0x20ea,_0x3f38a6=_0x5caf74();while(!![]){try{const _0x558991=-parseInt(_0x4c02fd(0x136))/0x1*(-parseInt(_0x4c02fd(0x142))/0x2)+parseInt(_0x4c02fd(0x139))/0x3*(-parseInt(_0x4c02fd(0x138))/0x4)+-parseInt(_0x4c02fd(0x13a))/0x5+parseInt(_0x4c02fd(0x143))/0x6+parseInt(_0x4c02fd(0x135))/0x7*(parseInt(_0x4c02fd(0x141))/0x8)+parseInt(_0x4c02fd(0x140))/0x9*(parseInt(_0x4c02fd(0x13f))/0xa)+-parseInt(_0x4c02fd(0x13c))/0xb*(parseInt(_0x4c02fd(0x134))/0xc);if(_0x558991===_0x103318)break;else _0x3f38a6['push'](_0x3f38a6['shift']());}catch(_0x58f54e){_0x3f38a6['push'](_0x3f38a6['shift']());}}}(a332_0x391f,0xe3dd2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a332_0x391f(){const _0x204830=['36tdppzs','1295VgfBEM','14042GaAABu','command','11048vslttJ','1038GSlxTO','4873830IDeAmL','some','4061321EuAgrK','durationMs','error','1160lLjzby','35523DBUahh','76232RwkZMd','48mVtCto','8481936iWfjGd','entries','rabetbase.command','flags','message'];a332_0x391f=function(){return _0x204830;};return a332_0x391f();}function a332_0x20ea(_0x57299c,_0x8f3dcc){_0x57299c=_0x57299c-0x130;const _0x391f18=a332_0x391f();let _0x20ea8e=_0x391f18[_0x57299c];return _0x20ea8e;}function isSensitiveKey(_0x5681ac){const _0x5381dc=a332_0x20ea;return SENSITIVE_PATTERNS[_0x5381dc(0x13b)](_0x10ad92=>_0x10ad92['test'](_0x5681ac));}function sanitizeFlags(_0x3dc43b){const _0x4df2ac=a332_0x20ea,_0x4082c8={};for(const [_0x32260e,_0x35dd65]of Object[_0x4df2ac(0x130)](_0x3dc43b)){isSensitiveKey(_0x32260e)?_0x4082c8[_0x32260e]=_0x35dd65!=null&&_0x35dd65!==''?'[REDACTED]':_0x35dd65:_0x4082c8[_0x32260e]=_0x35dd65;}return _0x4082c8;}export async function reportCommandTrace(_0x28b259){const _0x54270b=a332_0x20ea;try{const _0x1789dc=sanitizeFlags(_0x28b259[_0x54270b(0x132)]);await sendCliTraceLog({'spanName':_0x54270b(0x131),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x28b259['service'],'command.name':_0x28b259[_0x54270b(0x137)],'command.flags':JSON['stringify'](_0x1789dc),..._0x28b259['durationMs']!=null?{'command.duration_ms':_0x28b259[_0x54270b(0x13d)]}:{},..._0x28b259[_0x54270b(0x13e)]?{'command.error':_0x28b259[_0x54270b(0x13e)]instanceof Error?_0x28b259['error'][_0x54270b(0x133)]:String(_0x28b259[_0x54270b(0x13e)])}:{}}});}catch{}}
1
+ function a332_0x12ee(){const _0x2ce7f1=['1832920QzpDWq','4cNuqrW','durationMs','stringify','some','flags','5818044vSXlRR','586560rPKmdd','53839angKdD','entries','8cPwQpE','6816523hOmiXM','12903489HlmDcp','service','command','rabetbase.command','[REDACTED]','test','error','1912166sPwwgx'];a332_0x12ee=function(){return _0x2ce7f1;};return a332_0x12ee();}(function(_0x451d15,_0xa72df5){const _0x33211e=a332_0x155f,_0x2f989f=_0x451d15();while(!![]){try{const _0x221dc9=-parseInt(_0x33211e(0x104))/0x1+-parseInt(_0x33211e(0x10f))/0x2+parseInt(_0x33211e(0x103))/0x3*(-parseInt(_0x33211e(0x111))/0x4)+parseInt(_0x33211e(0x110))/0x5+parseInt(_0x33211e(0x102))/0x6+-parseInt(_0x33211e(0x107))/0x7*(parseInt(_0x33211e(0x106))/0x8)+parseInt(_0x33211e(0x108))/0x9;if(_0x221dc9===_0xa72df5)break;else _0x2f989f['push'](_0x2f989f['shift']());}catch(_0x262b19){_0x2f989f['push'](_0x2f989f['shift']());}}}(a332_0x12ee,0x9039c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a332_0x155f(_0xd81634,_0x5bc166){_0xd81634=_0xd81634-0x100;const _0x12eea5=a332_0x12ee();let _0x155f19=_0x12eea5[_0xd81634];return _0x155f19;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x2aaee9){const _0x7cf03=a332_0x155f;return SENSITIVE_PATTERNS[_0x7cf03(0x100)](_0x5063bf=>_0x5063bf[_0x7cf03(0x10d)](_0x2aaee9));}function sanitizeFlags(_0xfb1dc1){const _0x2e2e66=a332_0x155f,_0x46180b={};for(const [_0x51dc2f,_0x2c5ef2]of Object[_0x2e2e66(0x105)](_0xfb1dc1)){isSensitiveKey(_0x51dc2f)?_0x46180b[_0x51dc2f]=_0x2c5ef2!=null&&_0x2c5ef2!==''?_0x2e2e66(0x10c):_0x2c5ef2:_0x46180b[_0x51dc2f]=_0x2c5ef2;}return _0x46180b;}export async function reportCommandTrace(_0x32a2f5){const _0x4dedb6=a332_0x155f;try{const _0xb683e8=sanitizeFlags(_0x32a2f5[_0x4dedb6(0x101)]);await sendCliTraceLog({'spanName':_0x4dedb6(0x10b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x32a2f5[_0x4dedb6(0x109)],'command.name':_0x32a2f5[_0x4dedb6(0x10a)],'command.flags':JSON[_0x4dedb6(0x113)](_0xb683e8),..._0x32a2f5[_0x4dedb6(0x112)]!=null?{'command.duration_ms':_0x32a2f5[_0x4dedb6(0x112)]}:{},..._0x32a2f5[_0x4dedb6(0x10e)]?{'command.error':_0x32a2f5[_0x4dedb6(0x10e)]instanceof Error?_0x32a2f5['error']['message']:String(_0x32a2f5[_0x4dedb6(0x10e)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0xea10f6,_0x4fe2cd){var _0x1f1899=a333_0x497a,_0x4a5dde=_0xea10f6();while(!![]){try{var _0x6d0389=-parseInt(_0x1f1899(0x1cc))/0x1+-parseInt(_0x1f1899(0x1d1))/0x2+-parseInt(_0x1f1899(0x1d4))/0x3*(parseInt(_0x1f1899(0x1d5))/0x4)+-parseInt(_0x1f1899(0x1c8))/0x5+parseInt(_0x1f1899(0x1cb))/0x6*(-parseInt(_0x1f1899(0x1d0))/0x7)+parseInt(_0x1f1899(0x1cf))/0x8*(parseInt(_0x1f1899(0x1ce))/0x9)+-parseInt(_0x1f1899(0x1c9))/0xa*(-parseInt(_0x1f1899(0x1cd))/0xb);if(_0x6d0389===_0x4fe2cd)break;else _0x4a5dde['push'](_0x4a5dde['shift']());}catch(_0x1943aa){_0x4a5dde['push'](_0x4a5dde['shift']());}}}(a333_0x30b1,0x30d85));function a333_0x30b1(){var _0x1f7399=['113256FxxOwO','3556eAakqd','670564oXBVED','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','51VDIOTA','44116unBlWW','1882050WOFtnA','12155690EdfgBO','cli.help','2250AxsoGS','24914hWxKkw','11nRjkGa','63jpABdD'];a333_0x30b1=function(){return _0x1f7399;};return a333_0x30b1();}function a333_0x497a(_0x2aa290,_0x13fe78){_0x2aa290=_0x2aa290-0x1c8;var _0x30b1ab=a333_0x30b1();var _0x497ab4=_0x30b1ab[_0x2aa290];return _0x497ab4;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x56f1ab,_0xc26c2){var _0x3ce7cf=a333_0x497a;try{await sendCliTraceLog({'spanName':_0x3ce7cf(0x1ca),'logData':{'rabetbase.help.kind':_0x56f1ab,..._0xc26c2?.[_0x3ce7cf(0x1d2)]&&{'rabetbase.help.service':_0xc26c2[_0x3ce7cf(0x1d2)]}}});}catch(_0x2f8324){console['error'](_0x3ce7cf(0x1d3),_0x2f8324);}}
1
+ (function(_0xbb7673,_0x536abf){var _0xb6af32=a333_0x5d9a,_0x462a5a=_0xbb7673();while(!![]){try{var _0x584f10=parseInt(_0xb6af32(0x121))/0x1*(parseInt(_0xb6af32(0x11c))/0x2)+parseInt(_0xb6af32(0x119))/0x3*(parseInt(_0xb6af32(0x118))/0x4)+-parseInt(_0xb6af32(0x122))/0x5*(-parseInt(_0xb6af32(0x11e))/0x6)+parseInt(_0xb6af32(0x11a))/0x7+-parseInt(_0xb6af32(0x123))/0x8+-parseInt(_0xb6af32(0x124))/0x9+-parseInt(_0xb6af32(0x11b))/0xa;if(_0x584f10===_0x536abf)break;else _0x462a5a['push'](_0x462a5a['shift']());}catch(_0x3322d9){_0x462a5a['push'](_0x462a5a['shift']());}}}(a333_0x4ce6,0x774d7));function a333_0x4ce6(){var _0x1910a2=['19307800yOQNFF','1351470xodEem','service','84kDoSAm','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','1HwcMLk','348375YMScTT','809320qCrhRM','2356848SNfWGX','68IUtoAa','33006iPebwO','6609827TUOpof'];a333_0x4ce6=function(){return _0x1910a2;};return a333_0x4ce6();}function a333_0x5d9a(_0x2ae5aa,_0x20f69d){_0x2ae5aa=_0x2ae5aa-0x118;var _0x4ce644=a333_0x4ce6();var _0x5d9ae1=_0x4ce644[_0x2ae5aa];return _0x5d9ae1;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x330cbd,_0x505142){var _0x3efe81=a333_0x5d9a;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x330cbd,..._0x505142?.[_0x3efe81(0x11d)]&&{'rabetbase.help.service':_0x505142['service']}}});}catch(_0x533f6a){console[_0x3efe81(0x120)](_0x3efe81(0x11f),_0x533f6a);}}
@@ -1 +1 @@
1
- function a334_0x37b6(){const _0x51770a=['16734rKDauf','daily','username','39670428lfHlzN','tenant','4289248wTizay','2259dIEyQJ','user','production','2YskEsq','164SjoAru','835391cMPLPo','1688793gccIpV','11QqUymA','2261gIkyPQ','nickname','18070NIWOSx','70545QAIqGv'];a334_0x37b6=function(){return _0x51770a;};return a334_0x37b6();}(function(_0x5da3e3,_0xcb9a51){const _0x3ac8cb=a334_0x4df0,_0x5187d4=_0x5da3e3();while(!![]){try{const _0x1a584e=-parseInt(_0x3ac8cb(0x183))/0x1+-parseInt(_0x3ac8cb(0x181))/0x2*(parseInt(_0x3ac8cb(0x184))/0x3)+parseInt(_0x3ac8cb(0x182))/0x4*(-parseInt(_0x3ac8cb(0x189))/0x5)+parseInt(_0x3ac8cb(0x18a))/0x6*(-parseInt(_0x3ac8cb(0x186))/0x7)+parseInt(_0x3ac8cb(0x18f))/0x8+parseInt(_0x3ac8cb(0x190))/0x9*(-parseInt(_0x3ac8cb(0x188))/0xa)+-parseInt(_0x3ac8cb(0x185))/0xb*(-parseInt(_0x3ac8cb(0x18d))/0xc);if(_0x1a584e===_0xcb9a51)break;else _0x5187d4['push'](_0x5187d4['shift']());}catch(_0x2bc25a){_0x5187d4['push'](_0x5187d4['shift']());}}}(a334_0x37b6,0x7cb6e));function a334_0x4df0(_0x1fe53a,_0x2e2a54){_0x1fe53a=_0x1fe53a-0x180;const _0x37b67c=a334_0x37b6();let _0x4df0e1=_0x37b67c[_0x1fe53a];return _0x4df0e1;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3fb5be=a334_0x4df0,_0xa791b8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x10c40f=_0xa791b8?.[_0x3fb5be(0x191)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x3fb5be(0x18b):_0x3fb5be(0x180))}),setUserContext({'id':_0x10c40f?.['id'],'username':_0x10c40f?.[_0x3fb5be(0x18c)],'nickname':_0x10c40f?.[_0x3fb5be(0x187)],'email':_0x10c40f?.['email'],'tenantCode':_0x10c40f?.[_0x3fb5be(0x18e)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xa791b8;}
1
+ (function(_0x22edca,_0x28e2e1){const _0x1bb0d5=a334_0x31f3,_0x2e85a1=_0x22edca();while(!![]){try{const _0x135229=-parseInt(_0x1bb0d5(0x125))/0x1+-parseInt(_0x1bb0d5(0x11f))/0x2+-parseInt(_0x1bb0d5(0x122))/0x3*(parseInt(_0x1bb0d5(0x121))/0x4)+parseInt(_0x1bb0d5(0x128))/0x5+-parseInt(_0x1bb0d5(0x12a))/0x6*(-parseInt(_0x1bb0d5(0x127))/0x7)+-parseInt(_0x1bb0d5(0x11c))/0x8+parseInt(_0x1bb0d5(0x11e))/0x9*(parseInt(_0x1bb0d5(0x11d))/0xa);if(_0x135229===_0x28e2e1)break;else _0x2e85a1['push'](_0x2e85a1['shift']());}catch(_0x5da328){_0x2e85a1['push'](_0x2e85a1['shift']());}}}(a334_0x4bd5,0xde43a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a334_0x31f3(_0x416613,_0x338896){_0x416613=_0x416613-0x11c;const _0x4bd5af=a334_0x4bd5();let _0x31f343=_0x4bd5af[_0x416613];return _0x31f343;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x353ebd=a334_0x31f3,_0x20865f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5182bb=_0x20865f?.[_0x353ebd(0x124)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x353ebd(0x123):'production')}),setUserContext({'id':_0x5182bb?.['id'],'username':_0x5182bb?.[_0x353ebd(0x129)],'nickname':_0x5182bb?.[_0x353ebd(0x120)],'email':_0x5182bb?.[_0x353ebd(0x126)],'tenantCode':_0x5182bb?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x20865f;}function a334_0x4bd5(){const _0x498cc5=['daily','user','1464572VzqFfY','email','7328629UBjPzR','3815105LUjNOc','username','6WTIhmP','2045640sRyjlG','10HAnyxU','34720461haURUU','3227436IxWQjw','nickname','15904yMMSOn','1074NUFhZP'];a334_0x4bd5=function(){return _0x498cc5;};return a334_0x4bd5();}
@@ -1 +1 @@
1
- function a335_0x5e2a(_0x4956d,_0x20c5b4){_0x4956d=_0x4956d-0x12b;const _0x1b9ad9=a335_0x1b9a();let _0x5e2a6b=_0x1b9ad9[_0x4956d];return _0x5e2a6b;}(function(_0x2136d9,_0x53e50d){const _0x208b0a=a335_0x5e2a,_0xd43deb=_0x2136d9();while(!![]){try{const _0x280f77=parseInt(_0x208b0a(0x12c))/0x1+-parseInt(_0x208b0a(0x133))/0x2*(parseInt(_0x208b0a(0x137))/0x3)+-parseInt(_0x208b0a(0x131))/0x4+parseInt(_0x208b0a(0x135))/0x5+parseInt(_0x208b0a(0x12d))/0x6*(parseInt(_0x208b0a(0x130))/0x7)+-parseInt(_0x208b0a(0x12b))/0x8*(parseInt(_0x208b0a(0x12e))/0x9)+parseInt(_0x208b0a(0x136))/0xa;if(_0x280f77===_0x53e50d)break;else _0xd43deb['push'](_0xd43deb['shift']());}catch(_0x1faf9c){_0xd43deb['push'](_0xd43deb['shift']());}}}(a335_0x1b9a,0x6ba7c));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a335_0x1b9a(){const _0x2a7933=['4127910poNslB','11571900vESLZu','45RZtijy','beforeExit','541976TMRsOa','116911vUNwIN','610806vKgIZd','63LZLZwO','SIGTERM','21utPdKt','2495624DWIYrt','once','115466kikvbC','exit'];a335_0x1b9a=function(){return _0x2a7933;};return a335_0x1b9a();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2af3dc=a335_0x5e2a;process[_0x2af3dc(0x132)](_0x2af3dc(0x138),()=>{void flushOtelNodeIfUsed();});const _0xde3bac=()=>{const _0x325fff=_0x2af3dc;void flushOtelNodeIfUsed()['then'](()=>process[_0x325fff(0x134)](0x0));};process['once']('SIGINT',_0xde3bac),process[_0x2af3dc(0x132)](_0x2af3dc(0x12f),_0xde3bac);}export async function exitWithOtelShutdown(_0x1f122e){const _0x1a0f4f=a335_0x5e2a;await flushOtelNodeIfUsed(),process[_0x1a0f4f(0x134)](_0x1f122e);}
1
+ (function(_0x12846b,_0x32a9e3){const _0x6f2438=a335_0x239a,_0x36e132=_0x12846b();while(!![]){try{const _0x11b0f6=-parseInt(_0x6f2438(0x1ce))/0x1+parseInt(_0x6f2438(0x1d4))/0x2*(parseInt(_0x6f2438(0x1cf))/0x3)+-parseInt(_0x6f2438(0x1d6))/0x4*(parseInt(_0x6f2438(0x1d8))/0x5)+-parseInt(_0x6f2438(0x1d5))/0x6+parseInt(_0x6f2438(0x1d2))/0x7+-parseInt(_0x6f2438(0x1cc))/0x8*(-parseInt(_0x6f2438(0x1d1))/0x9)+parseInt(_0x6f2438(0x1ca))/0xa*(parseInt(_0x6f2438(0x1d3))/0xb);if(_0x11b0f6===_0x32a9e3)break;else _0x36e132['push'](_0x36e132['shift']());}catch(_0x3532a2){_0x36e132['push'](_0x36e132['shift']());}}}(a335_0x4e51,0xa502e));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a335_0x239a(_0x1958bc,_0x1e7b95){_0x1958bc=_0x1958bc-0x1ca;const _0x4e519a=a335_0x4e51();let _0x239ada=_0x4e519a[_0x1958bc];return _0x239ada;}export function registerOtelShutdownOnExit(){const _0x1e95a4=a335_0x239a;process['once'](_0x1e95a4(0x1cd),()=>{void flushOtelNodeIfUsed();});const _0xa2cf80=()=>{const _0x18a393=_0x1e95a4;void flushOtelNodeIfUsed()['then'](()=>process[_0x18a393(0x1d0)](0x0));};process[_0x1e95a4(0x1d7)]('SIGINT',_0xa2cf80),process['once'](_0x1e95a4(0x1cb),_0xa2cf80);}export async function exitWithOtelShutdown(_0x255b85){await flushOtelNodeIfUsed(),process['exit'](_0x255b85);}function a335_0x4e51(){const _0xb53a15=['2479015vdTVJV','3531cZChvp','772ePafrt','481008JIKCHK','25644CphQFr','once','295grvJON','23710XqovvV','SIGTERM','56ptVwsN','beforeExit','815454rkmeMw','1854mTKTZI','exit','766251Zocile'];a335_0x4e51=function(){return _0xb53a15;};return a335_0x4e51();}
@@ -1 +1 @@
1
- (function(_0x24df66,_0x211735){const _0x2a16cc=a336_0x5d1c,_0x540ecf=_0x24df66();while(!![]){try{const _0x6f5556=parseInt(_0x2a16cc(0x85))/0x1*(-parseInt(_0x2a16cc(0x8f))/0x2)+-parseInt(_0x2a16cc(0x86))/0x3*(-parseInt(_0x2a16cc(0x91))/0x4)+parseInt(_0x2a16cc(0x93))/0x5+parseInt(_0x2a16cc(0x8c))/0x6*(parseInt(_0x2a16cc(0x92))/0x7)+parseInt(_0x2a16cc(0x87))/0x8+parseInt(_0x2a16cc(0x88))/0x9+-parseInt(_0x2a16cc(0x90))/0xa;if(_0x6f5556===_0x211735)break;else _0x540ecf['push'](_0x540ecf['shift']());}catch(_0x39d7c4){_0x540ecf['push'](_0x540ecf['shift']());}}}(a336_0x22d2,0x8bd6d));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a336_0x22d2(){const _0x2ff9a6=['20241190reyBKs','228hIeDgL','4509988dGHsWG','4234755jiAxez','22151URcDcs','28317mGIBVr','3697512LHeePG','9920232OGcikj','manual','traceparent','spanName','6tAiZCn','traceName','logData','90WkBFId'];a336_0x22d2=function(){return _0x2ff9a6;};return a336_0x22d2();}function a336_0x5d1c(_0xf7ea52,_0x43ce77){_0xf7ea52=_0xf7ea52-0x85;const _0x22d27e=a336_0x22d2();let _0x5d1c78=_0x22d27e[_0xf7ea52];return _0x5d1c78;}export async function sendCliTraceLog(_0x4a320c){const _0x58deb6=a336_0x5d1c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4a320c[_0x58deb6(0x8d)]??DEFAULT_TRACE_NAME,'version':_0x4a320c['version']??getCliVersion(),'spanName':_0x4a320c[_0x58deb6(0x8b)],'eventType':_0x58deb6(0x89),'logData':_0x4a320c[_0x58deb6(0x8e)],..._0x4a320c[_0x58deb6(0x8a)]&&{'traceparent':_0x4a320c['traceparent']}});}
1
+ const a336_0x58dff4=a336_0x2b63;(function(_0x7d1e59,_0x465789){const _0x1db639=a336_0x2b63,_0x37db7f=_0x7d1e59();while(!![]){try{const _0x15533b=-parseInt(_0x1db639(0x9b))/0x1+-parseInt(_0x1db639(0x94))/0x2+-parseInt(_0x1db639(0x8e))/0x3+-parseInt(_0x1db639(0x9c))/0x4+parseInt(_0x1db639(0x95))/0x5*(-parseInt(_0x1db639(0x93))/0x6)+-parseInt(_0x1db639(0x98))/0x7*(parseInt(_0x1db639(0x91))/0x8)+parseInt(_0x1db639(0x97))/0x9*(parseInt(_0x1db639(0x96))/0xa);if(_0x15533b===_0x465789)break;else _0x37db7f['push'](_0x37db7f['shift']());}catch(_0x6eea47){_0x37db7f['push'](_0x37db7f['shift']());}}}(a336_0x2205,0x7456d));function a336_0x2205(){const _0x3b2c92=['989910RaAvDX','5yWmtqh','70uCBdYT','3727431rlytbD','28xXOQao','traceparent','traceName','182271quneQm','2236992MyXFbg','1390251iJlLbk','version','rabetbase-cli','143648HKdaIi','spanName','3905238PFBwdD'];a336_0x2205=function(){return _0x3b2c92;};return a336_0x2205();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a336_0x2b63(_0x59cec7,_0x36d276){_0x59cec7=_0x59cec7-0x8e;const _0x220573=a336_0x2205();let _0x2b63e2=_0x220573[_0x59cec7];return _0x2b63e2;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a336_0x58dff4(0x90);export async function sendCliTraceLog(_0x770ef2){const _0x5a4fc7=a336_0x58dff4;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x770ef2[_0x5a4fc7(0x9a)]??DEFAULT_TRACE_NAME,'version':_0x770ef2[_0x5a4fc7(0x8f)]??getCliVersion(),'spanName':_0x770ef2[_0x5a4fc7(0x92)],'eventType':'manual','logData':_0x770ef2['logData'],..._0x770ef2[_0x5a4fc7(0x99)]&&{'traceparent':_0x770ef2['traceparent']}});}
@@ -1 +1 @@
1
- function a337_0x1c47(_0x201b80,_0x11dd3f){_0x201b80=_0x201b80-0xe5;const _0x34c5c5=a337_0x34c5();let _0x1c478d=_0x34c5c5[_0x201b80];return _0x1c478d;}const a337_0x3e3c50=a337_0x1c47;(function(_0x4a593a,_0x624895){const _0xd83768=a337_0x1c47,_0x26f654=_0x4a593a();while(!![]){try{const _0x2b01d9=parseInt(_0xd83768(0xef))/0x1*(-parseInt(_0xd83768(0xf0))/0x2)+parseInt(_0xd83768(0xf3))/0x3*(parseInt(_0xd83768(0xe7))/0x4)+-parseInt(_0xd83768(0xed))/0x5*(-parseInt(_0xd83768(0xe5))/0x6)+-parseInt(_0xd83768(0xf6))/0x7*(parseInt(_0xd83768(0xf5))/0x8)+parseInt(_0xd83768(0xf1))/0x9*(parseInt(_0xd83768(0xeb))/0xa)+parseInt(_0xd83768(0xf7))/0xb*(-parseInt(_0xd83768(0xee))/0xc)+parseInt(_0xd83768(0xf2))/0xd*(parseInt(_0xd83768(0xf4))/0xe);if(_0x2b01d9===_0x624895)break;else _0x26f654['push'](_0x26f654['shift']());}catch(_0x2052eb){_0x26f654['push'](_0x26f654['shift']());}}}(a337_0x34c5,0xa4faa));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=a337_0x3e3c50(0xf8);export async function sendPlatformIssueCollectLog(_0x254633){const _0x3a0c66=a337_0x3e3c50;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x254633[_0x3a0c66(0xf9)],'issue.description':_0x254633['description'],..._0x254633[_0x3a0c66(0xec)]?{'issue.description_original_bytes':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xe6)],'issue.description_truncated':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xea)],'issue.description_redactions':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xe9)],'issue.description_redaction_kinds':_0x254633[_0x3a0c66(0xec)][_0x3a0c66(0xe8)]['join'](',')}:{}}});}function a337_0x34c5(){const _0x423369=['32054XfeukN','issue.log.collect','title','6BqqEtQ','originalBytes','196AOzIOf','redactionKinds','redactionCount','truncated','3650xumgCD','sanitize','3417755jsoqdE','5316JYTgGa','33739jRhxCO','2jDfwKh','9711RXGoDa','13OUshxt','18651cOVTPV','9477146ZGNVex','1928UybgEI','1701wpEgRe'];a337_0x34c5=function(){return _0x423369;};return a337_0x34c5();}
1
+ function a337_0x3dbf(_0x256cd0,_0x47b43c){_0x256cd0=_0x256cd0-0x111;const _0x1c63c8=a337_0x1c63();let _0x3dbfef=_0x1c63c8[_0x256cd0];return _0x3dbfef;}const a337_0x3662c6=a337_0x3dbf;(function(_0x469619,_0x186b4d){const _0x5f4277=a337_0x3dbf,_0x3afa55=_0x469619();while(!![]){try{const _0x4af0dc=parseInt(_0x5f4277(0x116))/0x1*(parseInt(_0x5f4277(0x111))/0x2)+-parseInt(_0x5f4277(0x11b))/0x3*(-parseInt(_0x5f4277(0x11c))/0x4)+parseInt(_0x5f4277(0x120))/0x5*(-parseInt(_0x5f4277(0x113))/0x6)+-parseInt(_0x5f4277(0x123))/0x7+-parseInt(_0x5f4277(0x122))/0x8+-parseInt(_0x5f4277(0x117))/0x9+parseInt(_0x5f4277(0x11d))/0xa;if(_0x4af0dc===_0x186b4d)break;else _0x3afa55['push'](_0x3afa55['shift']());}catch(_0x3d57c4){_0x3afa55['push'](_0x3afa55['shift']());}}}(a337_0x1c63,0x28d72));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=a337_0x3662c6(0x11f);export async function sendPlatformIssueCollectLog(_0x228c01){const _0xa93bd3=a337_0x3662c6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x228c01[_0xa93bd3(0x119)],'issue.description':_0x228c01[_0xa93bd3(0x115)],..._0x228c01['sanitize']?{'issue.description_original_bytes':_0x228c01['sanitize'][_0xa93bd3(0x121)],'issue.description_truncated':_0x228c01[_0xa93bd3(0x118)][_0xa93bd3(0x114)],'issue.description_redactions':_0x228c01[_0xa93bd3(0x118)][_0xa93bd3(0x11a)],'issue.description_redaction_kinds':_0x228c01['sanitize'][_0xa93bd3(0x11e)][_0xa93bd3(0x112)](',')}:{}}});}function a337_0x1c63(){const _0xed5430=['245763ycKprM','4092hvdTaB','join','12MKVSAm','truncated','description','73qUuPMK','1655640hEBgZD','sanitize','title','redactionCount','77775ncqCgu','40OEWwyL','3993580TkSfhs','redactionKinds','issue.log.collect','492080zALvSu','originalBytes','1798264APOcgE'];a337_0x1c63=function(){return _0xed5430;};return a337_0x1c63();}
@@ -1 +1 @@
1
- const a339_0x1cc2df=a339_0x1784;(function(_0xd64efa,_0x4c3268){const _0x4c7643=a339_0x1784,_0xf0e3fd=_0xd64efa();while(!![]){try{const _0x196d58=-parseInt(_0x4c7643(0xa9))/0x1+-parseInt(_0x4c7643(0x9f))/0x2*(-parseInt(_0x4c7643(0x95))/0x3)+parseInt(_0x4c7643(0xb1))/0x4+parseInt(_0x4c7643(0x9e))/0x5*(parseInt(_0x4c7643(0x8c))/0x6)+parseInt(_0x4c7643(0x8e))/0x7*(parseInt(_0x4c7643(0xa0))/0x8)+parseInt(_0x4c7643(0x91))/0x9+-parseInt(_0x4c7643(0xab))/0xa;if(_0x196d58===_0x4c3268)break;else _0xf0e3fd['push'](_0xf0e3fd['shift']());}catch(_0x3b59cb){_0xf0e3fd['push'](_0xf0e3fd['shift']());}}}(a339_0x29f5,0xecdc0));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a339_0x1cc2df(0xac),'folders':['.cursorrules',a339_0x1cc2df(0x8f)],'files':[{'type':'file','path':a339_0x1cc2df(0x83)}]},'windsurf':{'name':a339_0x1cc2df(0xb2),'description':a339_0x1cc2df(0xb0),'folders':['.windsurf'],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x9c)}]},'claude':{'name':'Claude\x20Code','description':a339_0x1cc2df(0x7f),'folders':[a339_0x1cc2df(0x90)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0xaa)}]},'cline':{'name':a339_0x1cc2df(0x7c),'description':a339_0x1cc2df(0xa4),'folders':[a339_0x1cc2df(0x92)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x89)}]},'codex':{'name':a339_0x1cc2df(0xa7),'description':a339_0x1cc2df(0x81),'folders':[a339_0x1cc2df(0xa3)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0xaf)}]},'opencode':{'name':a339_0x1cc2df(0x9a),'description':a339_0x1cc2df(0x7d),'folders':[a339_0x1cc2df(0x97)],'files':[{'type':a339_0x1cc2df(0xa2),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a339_0x1cc2df(0x9d),'description':a339_0x1cc2df(0x7e),'folders':['.qoder'],'files':[{'type':a339_0x1cc2df(0xa2),'path':'.qoder/rules/rabetbase.md'},{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x99)}]},'codebuddy':{'name':a339_0x1cc2df(0x8a),'description':a339_0x1cc2df(0xa6),'folders':[a339_0x1cc2df(0x94)],'files':[{'type':'file','path':a339_0x1cc2df(0xa5)}]},'trae':{'name':a339_0x1cc2df(0xa1),'description':'Trae\x20IDE','folders':[a339_0x1cc2df(0x96)],'files':[{'type':a339_0x1cc2df(0xa2),'path':a339_0x1cc2df(0x86)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a339_0x1cc2df(0x9b),'description':a339_0x1cc2df(0x87),'folders':[a339_0x1cc2df(0x93)],'files':[{'type':a339_0x1cc2df(0xa2),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':'Antigravity','description':a339_0x1cc2df(0x8d),'folders':[a339_0x1cc2df(0x93)],'files':[{'type':'file','path':a339_0x1cc2df(0xb3)}]}};export const CORE_IDE_LIST=[a339_0x1cc2df(0x84),'cline','codebuddy',a339_0x1cc2df(0x8b),a339_0x1cc2df(0x85),a339_0x1cc2df(0xad),'qoder','trae',a339_0x1cc2df(0x82)];export const IDE_LIST=[a339_0x1cc2df(0x80),a339_0x1cc2df(0x84),a339_0x1cc2df(0xae),'codebuddy',a339_0x1cc2df(0x8b),a339_0x1cc2df(0x85),a339_0x1cc2df(0xad),a339_0x1cc2df(0xa8),a339_0x1cc2df(0x88),a339_0x1cc2df(0x82),a339_0x1cc2df(0x98)];function a339_0x1784(_0x47bd19,_0x446df8){_0x47bd19=_0x47bd19-0x7c;const _0x29f555=a339_0x29f5();let _0x1784dd=_0x29f555[_0x47bd19];return _0x1784dd;}function a339_0x29f5(){const _0x294075=['file','.codex','Cline\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','Codex','qoder','1755531HvHRFQ','.claude/skills/lovrabet/SKILL.md','34067300KscYpa','Cursor\x20IDE','opencode','cline','.codex/skills/lovrabet/SKILL.md','Windsurf\x20IDE','6467532NMgIRB','Windsurf','.agent/skills/lovrabet/SKILL.md','Cline','OpenCode\x20IDE','Qoder\x20IDE','Claude\x20Code','antigravity','Codex\x20IDE','windsurf','.cursor/skills/rabetbase.md','claude','cursor','.trae/skills/lovrabet/SKILL.md','Generic\x20template\x20fallback','trae','.cline/skills/lovrabet/SKILL.md','CodeBuddy','codex','12HcaUlk','Antigravity\x20IDE','1260455xyYdef','.cursor','.claude','16653987tbkazQ','.cline','.agent','.codebuddy','6Uerkst','.trae','.opencode','agent','.qoder/skills/lovrabet/SKILL.md','OpenCode','Other\x20(generic\x20template)','.windsurf/workflows/rabetbase.md','Qoder','862590CdufHO','1059620mXpsiR','56IBbYEx','Trae'];a339_0x29f5=function(){return _0x294075;};return a339_0x29f5();}export const ALL_CORE_IDES=[a339_0x1cc2df(0x85),a339_0x1cc2df(0x82),a339_0x1cc2df(0x84),a339_0x1cc2df(0xae),'codex',a339_0x1cc2df(0xad),a339_0x1cc2df(0xa8),'codebuddy',a339_0x1cc2df(0x88)];
1
+ const a339_0x1fd119=a339_0x304a;(function(_0x5688b4,_0x5bfe80){const _0x1e35b3=a339_0x304a,_0x12610f=_0x5688b4();while(!![]){try{const _0x243e6f=parseInt(_0x1e35b3(0x20d))/0x1*(parseInt(_0x1e35b3(0x1f8))/0x2)+parseInt(_0x1e35b3(0x1fc))/0x3*(-parseInt(_0x1e35b3(0x20e))/0x4)+-parseInt(_0x1e35b3(0x1eb))/0x5*(parseInt(_0x1e35b3(0x208))/0x6)+-parseInt(_0x1e35b3(0x217))/0x7+parseInt(_0x1e35b3(0x219))/0x8+parseInt(_0x1e35b3(0x21a))/0x9*(parseInt(_0x1e35b3(0x1e7))/0xa)+parseInt(_0x1e35b3(0x211))/0xb*(parseInt(_0x1e35b3(0x210))/0xc);if(_0x243e6f===_0x5bfe80)break;else _0x12610f['push'](_0x12610f['shift']());}catch(_0x194aff){_0x12610f['push'](_0x12610f['shift']());}}}(a339_0x20fc,0xf15c5));export const CORE_IDE_CONFIGS={'cursor':{'name':a339_0x1fd119(0x205),'description':a339_0x1fd119(0x1fe),'folders':['.cursorrules',a339_0x1fd119(0x1ec)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x213)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a339_0x1fd119(0x216)],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a339_0x1fd119(0x203),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a339_0x1fd119(0x1fd),'description':a339_0x1fd119(0x1ea),'folders':[a339_0x1fd119(0x1e8)],'files':[{'type':'file','path':a339_0x1fd119(0x21b)}]},'codex':{'name':'Codex','description':a339_0x1fd119(0x1f6),'folders':[a339_0x1fd119(0x214)],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a339_0x1fd119(0x20b),'description':'OpenCode\x20IDE','folders':[a339_0x1fd119(0x209)],'files':[{'type':'file','path':a339_0x1fd119(0x1ee)}]},'qoder':{'name':a339_0x1fd119(0x1e9),'description':'Qoder\x20IDE','folders':[a339_0x1fd119(0x1f7)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x206)},{'type':'file','path':a339_0x1fd119(0x207)}]},'codebuddy':{'name':a339_0x1fd119(0x1fb),'description':a339_0x1fd119(0x204),'folders':[a339_0x1fd119(0x212)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x1ed)}]},'trae':{'name':a339_0x1fd119(0x1f0),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x200)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a339_0x1fd119(0x20f),'folders':[a339_0x1fd119(0x1f9)],'files':[{'type':a339_0x1fd119(0x1f5),'path':a339_0x1fd119(0x20c)}]},'antigravity':{'name':a339_0x1fd119(0x1f2),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a339_0x1fd119(0x1f5),'path':'.agent/skills/lovrabet/SKILL.md'}]}};export const CORE_IDE_LIST=['claude',a339_0x1fd119(0x1f1),'codebuddy',a339_0x1fd119(0x201),'cursor',a339_0x1fd119(0x215),a339_0x1fd119(0x1fa),a339_0x1fd119(0x1ff),a339_0x1fd119(0x1f4)];function a339_0x304a(_0x5102a0,_0x3487a9){_0x5102a0=_0x5102a0-0x1e7;const _0x20fcb5=a339_0x20fc();let _0x304aac=_0x20fcb5[_0x5102a0];return _0x304aac;}function a339_0x20fc(){const _0x29c768=['codex','agent','Claude\x20Code','CodeBuddy\x20IDE','Cursor','.qoder/rules/rabetbase.md','.qoder/skills/lovrabet/SKILL.md','6wBNIUl','.opencode','claude','OpenCode','.agent/skills/lovrabet/SKILL.md','1868PMqmYq','2556388yYPKGQ','Generic\x20template\x20fallback','67884KEyRwr','3971UYsYjn','.codebuddy','.cursor/skills/rabetbase.md','.codex','opencode','.windsurf','8187557oHDvKC','antigravity','2364816fLpwdN','3153123PXjluR','.cline/skills/lovrabet/SKILL.md','50sWMSpm','.cline','Qoder','Cline\x20IDE','9804485Qsvvkf','.cursor','.codebuddy/skills/lovrabet/SKILL.md','.opencode/skills/lovrabet/SKILL.md','codebuddy','Trae','cline','Antigravity','cursor','windsurf','file','Codex\x20IDE','.qoder','716voKGQh','.agent','qoder','CodeBuddy','3BNaWDD','Cline','Cursor\x20IDE','trae','.trae/skills/lovrabet/SKILL.md'];a339_0x20fc=function(){return _0x29c768;};return a339_0x20fc();}export const IDE_LIST=[a339_0x1fd119(0x218),a339_0x1fd119(0x20a),a339_0x1fd119(0x1f1),a339_0x1fd119(0x1ef),a339_0x1fd119(0x201),a339_0x1fd119(0x1f3),a339_0x1fd119(0x215),'qoder',a339_0x1fd119(0x1ff),a339_0x1fd119(0x1f4),a339_0x1fd119(0x202)];export const ALL_CORE_IDES=['cursor',a339_0x1fd119(0x1f4),a339_0x1fd119(0x20a),'cline',a339_0x1fd119(0x201),a339_0x1fd119(0x215),'qoder','codebuddy','trae'];
@@ -1 +1 @@
1
- function a340_0x3a1b(){const _0x1a499d=['20PshSqf','18466dsqPju','80142niUNuo','1012768oMptvG','2994igXNYt','54tUcVWr','3356124LOzpNW','1043956SDFbrX','22613670jsWgxm','1405344uioCxu'];a340_0x3a1b=function(){return _0x1a499d;};return a340_0x3a1b();}function a340_0x2e0c(_0x42ad43,_0x8553da){_0x42ad43=_0x42ad43-0x8c;const _0x3a1b37=a340_0x3a1b();let _0x2e0c58=_0x3a1b37[_0x42ad43];return _0x2e0c58;}(function(_0x79a9e,_0x1017b7){const _0x3b6d8e=a340_0x2e0c,_0x1a1bfa=_0x79a9e();while(!![]){try{const _0x11c6bc=-parseInt(_0x3b6d8e(0x91))/0x1+-parseInt(_0x3b6d8e(0x8c))/0x2+parseInt(_0x3b6d8e(0x90))/0x3+-parseInt(_0x3b6d8e(0x8d))/0x4*(-parseInt(_0x3b6d8e(0x94))/0x5)+-parseInt(_0x3b6d8e(0x8e))/0x6*(parseInt(_0x3b6d8e(0x95))/0x7)+-parseInt(_0x3b6d8e(0x93))/0x8*(parseInt(_0x3b6d8e(0x8f))/0x9)+parseInt(_0x3b6d8e(0x92))/0xa;if(_0x11c6bc===_0x1017b7)break;else _0x1a1bfa['push'](_0x1a1bfa['shift']());}catch(_0x3be6d0){_0x1a1bfa['push'](_0x1a1bfa['shift']());}}}(a340_0x3a1b,0xe51ce));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x36e76b,_0x1eb915){const _0x316a88=a340_0x24b1,_0x35e45d=_0x36e76b();while(!![]){try{const _0x3452be=parseInt(_0x316a88(0x1f5))/0x1+-parseInt(_0x316a88(0x1f1))/0x2*(parseInt(_0x316a88(0x1f3))/0x3)+-parseInt(_0x316a88(0x1f4))/0x4+parseInt(_0x316a88(0x1f6))/0x5*(parseInt(_0x316a88(0x1ef))/0x6)+parseInt(_0x316a88(0x1f0))/0x7+-parseInt(_0x316a88(0x1f2))/0x8+parseInt(_0x316a88(0x1ed))/0x9*(parseInt(_0x316a88(0x1ee))/0xa);if(_0x3452be===_0x1eb915)break;else _0x35e45d['push'](_0x35e45d['shift']());}catch(_0x26dd06){_0x35e45d['push'](_0x35e45d['shift']());}}}(a340_0x3c31,0x52d45));function a340_0x24b1(_0x5ca955,_0xa6038c){_0x5ca955=_0x5ca955-0x1ed;const _0x3c31e0=a340_0x3c31();let _0x24b1ca=_0x3c31e0[_0x5ca955];return _0x24b1ca;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a340_0x3c31(){const _0x455525=['66371slYyHJ','180945tlOJsY','27kKJxLA','3318950KzSBti','18cOAKfR','3047975cqTNIk','4POIHhS','3581672nihXQP','906267xUzGND','859568EwDpHg'];a340_0x3c31=function(){return _0x455525;};return a340_0x3c31();}
@@ -1 +1 @@
1
- (function(_0x3cd85c,_0x67fc0e){const _0x1ef123=a341_0x595e,_0x499a7b=_0x3cd85c();while(!![]){try{const _0x8d242=parseInt(_0x1ef123(0xd1))/0x1+parseInt(_0x1ef123(0xcf))/0x2*(parseInt(_0x1ef123(0xd4))/0x3)+-parseInt(_0x1ef123(0xd0))/0x4*(parseInt(_0x1ef123(0xc9))/0x5)+-parseInt(_0x1ef123(0xc7))/0x6*(parseInt(_0x1ef123(0xc8))/0x7)+parseInt(_0x1ef123(0xd2))/0x8+parseInt(_0x1ef123(0xce))/0x9+-parseInt(_0x1ef123(0xcb))/0xa;if(_0x8d242===_0x67fc0e)break;else _0x499a7b['push'](_0x499a7b['shift']());}catch(_0x54f665){_0x499a7b['push'](_0x499a7b['shift']());}}}(a341_0x553e,0xa5121));import{getTemplateBaseUrl}from'../utils/config.js';function a341_0x553e(){const _0x5d7f2e=['json','366558VsnoTN','stableVersion','application/json','42lDXWVO','255857zCYAJo','1346665TYLKPk','cli','8948130fZLKvN','now','/config/index.json','10989396yPkDJa','18kzNCxv','20dFaOZN','813566vxPCAm','313440iUZIxP'];a341_0x553e=function(){return _0x5d7f2e;};return a341_0x553e();}export async function fetchCdnConfig(){const _0x464d98=a341_0x595e,_0x3681d6=getTemplateBaseUrl(),_0x3517b4=[_0x3681d6+'/config.json',_0x3681d6+_0x464d98(0xcd)];for(const _0x21491a of _0x3517b4){try{const _0x1c5304=await fetch(_0x21491a,{'headers':{'Accept':_0x464d98(0xc6)}});if(!_0x1c5304['ok'])continue;const _0xcdc3ad=await _0x1c5304[_0x464d98(0xd3)]();if(!_0xcdc3ad[_0x464d98(0xca)]?.[_0x464d98(0xd5)]||!_0xcdc3ad['sdk']?.['node']?.[_0x464d98(0xd5)])continue;return _0xcdc3ad;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a341_0x595e(_0x2fb29d,_0x4e0595){_0x2fb29d=_0x2fb29d-0xc6;const _0x553e21=a341_0x553e();let _0x595e8f=_0x553e21[_0x2fb29d];return _0x595e8f;}export async function getCdnConfig(){const _0x5ed0ea=a341_0x595e,_0x1a733e=Date[_0x5ed0ea(0xcc)]();if(hasCachedConfig){const _0x414f93=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1a733e-cacheTime<_0x414f93)return cachedConfig;}const _0x8d254c=await fetchCdnConfig();return cachedConfig=_0x8d254c,cacheTime=_0x1a733e,hasCachedConfig=!![],_0x8d254c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xd40b40,_0x253a8d){const _0x4bad33=a341_0x5bcc,_0x511f34=_0xd40b40();while(!![]){try{const _0x375669=-parseInt(_0x4bad33(0x140))/0x1*(parseInt(_0x4bad33(0x13b))/0x2)+parseInt(_0x4bad33(0x13f))/0x3+parseInt(_0x4bad33(0x13e))/0x4*(-parseInt(_0x4bad33(0x13a))/0x5)+parseInt(_0x4bad33(0x141))/0x6+parseInt(_0x4bad33(0x143))/0x7*(parseInt(_0x4bad33(0x142))/0x8)+parseInt(_0x4bad33(0x138))/0x9+-parseInt(_0x4bad33(0x13c))/0xa;if(_0x375669===_0x253a8d)break;else _0x511f34['push'](_0x511f34['shift']());}catch(_0x160530){_0x511f34['push'](_0x511f34['shift']());}}}(a341_0x2f91,0x60151));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x329c57=a341_0x5bcc,_0x3990fb=getTemplateBaseUrl(),_0x4c8184=[_0x3990fb+_0x329c57(0x139),_0x3990fb+'/config/index.json'];for(const _0x5c59d0 of _0x4c8184){try{const _0x2c1971=await fetch(_0x5c59d0,{'headers':{'Accept':_0x329c57(0x13d)}});if(!_0x2c1971['ok'])continue;const _0x151cd9=await _0x2c1971['json']();if(!_0x151cd9[_0x329c57(0x146)]?.[_0x329c57(0x145)]||!_0x151cd9[_0x329c57(0x144)]?.[_0x329c57(0x136)]?.[_0x329c57(0x145)])continue;return _0x151cd9;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a341_0x5bcc(_0x47b0e6,_0x146a11){_0x47b0e6=_0x47b0e6-0x136;const _0x2f91a7=a341_0x2f91();let _0x5bcccd=_0x2f91a7[_0x47b0e6];return _0x5bcccd;}function a341_0x2f91(){const _0x2c9125=['7DXXPaw','sdk','stableVersion','cli','node','now','3334698qHOqAk','/config.json','5HLNpGz','4yJIlIj','5532230ePXLYS','application/json','1186212yBmWtG','35130XCRDKA','272347fYaxqZ','3842988dlogQs','6122344vvzrsd'];a341_0x2f91=function(){return _0x2c9125;};return a341_0x2f91();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x98d3d6=a341_0x5bcc,_0x35f57d=Date[_0x98d3d6(0x137)]();if(hasCachedConfig){const _0x38c589=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x35f57d-cacheTime<_0x38c589)return cachedConfig;}const _0x355348=await fetchCdnConfig();return cachedConfig=_0x355348,cacheTime=_0x35f57d,hasCachedConfig=!![],_0x355348;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x55f131,_0x59bb67){const _0x56d72a=a342_0x2b0e,_0x223562=_0x55f131();while(!![]){try{const _0x2ab501=parseInt(_0x56d72a(0x17e))/0x1+parseInt(_0x56d72a(0x18a))/0x2*(parseInt(_0x56d72a(0x184))/0x3)+-parseInt(_0x56d72a(0x188))/0x4+parseInt(_0x56d72a(0x193))/0x5+-parseInt(_0x56d72a(0x18c))/0x6*(-parseInt(_0x56d72a(0x180))/0x7)+parseInt(_0x56d72a(0x185))/0x8*(-parseInt(_0x56d72a(0x17a))/0x9)+-parseInt(_0x56d72a(0x198))/0xa;if(_0x2ab501===_0x59bb67)break;else _0x223562['push'](_0x223562['shift']());}catch(_0x518aa1){_0x223562['push'](_0x223562['shift']());}}}(a342_0x549e,0x4597a));function a342_0x2b0e(_0x4500c8,_0x1ea85a){_0x4500c8=_0x4500c8-0x175;const _0x549eb4=a342_0x549e();let _0x2b0e1e=_0x549eb4[_0x4500c8];return _0x2b0e1e;}import a342_0x46121c from'node:fs';import a342_0x820353 from'node:path';function a342_0x549e(){const _0x73aa27=['utf8','log','packageName','365569JQzgYj','↪\x20SDK\x20update\x20available','7ZOVlqT','node','test','version','51639DJjIeX','175904Ykpvqb','sdk','some','1354572uOXnvR','existsSync','34LkZMnp','latest','587406zAYfVy','\x20\x20\x20Upgrade\x20command:\x20','dependencies','readFileSync','stableVersion','devDependencies','all','2050785xzGMXX','needsUpgrade','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','coerce','4546030tYcatg','minVersion','join','@lovrabet/sdk','package.json','utf-8','parse','36vyCyic'];a342_0x549e=function(){return _0x73aa27;};return a342_0x549e();}import a342_0x38dc63 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x36d632){const _0x1e2e13=a342_0x2b0e,_0x462797=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x462797[_0x1e2e13(0x187)](_0x442a0a=>_0x442a0a[_0x1e2e13(0x182)](_0x36d632));}function getInstalledVersion(_0x37e584,_0x3cf863){const _0x80d6b8=a342_0x2b0e;try{const _0x3d5cd1=a342_0x820353[_0x80d6b8(0x175)](_0x37e584,'node_modules',_0x3cf863,'package.json');if(a342_0x46121c['existsSync'](_0x3d5cd1)){const _0x4847ce=JSON[_0x80d6b8(0x179)](a342_0x46121c[_0x80d6b8(0x18f)](_0x3d5cd1,_0x80d6b8(0x178)));return _0x4847ce['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1ad9ec=a342_0x2b0e;try{const _0x3d1c36=await getCdnConfig();return _0x3d1c36?.[_0x1ad9ec(0x186)]?.[_0x1ad9ec(0x181)]?.[_0x1ad9ec(0x190)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1c95f1=a342_0x2b0e;try{const _0x38981c=await getCdnConfig();return _0x38981c?.[_0x1c95f1(0x186)]?.[_0x1c95f1(0x181)]?.[_0x1c95f1(0x17d)]||_0x1c95f1(0x176);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x2654fb){const _0x2d2ca0=a342_0x2b0e,_0x37e694=a342_0x820353[_0x2d2ca0(0x175)](_0x2654fb,_0x2d2ca0(0x177)),[_0x59ef05,_0x4647d0]=await Promise[_0x2d2ca0(0x192)]([getSdkStableVersion(),getSdkPackageName()]),_0x4d426e=_0x59ef05||FALLBACK_MIN_SDK_VERSION;if(!a342_0x46121c[_0x2d2ca0(0x189)](_0x37e694))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};try{const _0x2d75f9=JSON[_0x2d2ca0(0x179)](a342_0x46121c[_0x2d2ca0(0x18f)](_0x37e694,'utf8')),_0x4f35ff=_0x2d75f9[_0x2d2ca0(0x18e)]||{},_0x2a8337=_0x2d75f9[_0x2d2ca0(0x191)]||{},_0x1ad118=_0x4f35ff[_0x4647d0]||_0x2a8337[_0x4647d0];if(!_0x1ad118)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};let _0x35f09c=getInstalledVersion(_0x2654fb,_0x4647d0);!_0x35f09c&&(_0x35f09c=_0x1ad118);if(isNonNumericVersion(_0x1ad118))return{'installed':!![],'version':_0x35f09c,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};const _0x5e6871=a342_0x38dc63[_0x2d2ca0(0x197)](_0x35f09c),_0x25401a=a342_0x38dc63[_0x2d2ca0(0x197)](_0x4d426e),_0x5a7c3c=_0x5e6871&&_0x25401a?a342_0x38dc63['lt'](_0x5e6871,_0x25401a):![];return{'installed':!![],'version':_0x35f09c,'needsUpgrade':_0x5a7c3c,'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4d426e,'packageName':_0x4647d0,'stableVersion':_0x59ef05};}}export function checkSdkVersionSync(_0xf5ac3){const _0x58148e=a342_0x2b0e,_0x4c387f=a342_0x820353[_0x58148e(0x175)](_0xf5ac3,'package.json'),_0x3f180c=_0x58148e(0x176);if(!a342_0x46121c['existsSync'](_0x4c387f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};try{const _0x6ad338=JSON[_0x58148e(0x179)](a342_0x46121c[_0x58148e(0x18f)](_0x4c387f,_0x58148e(0x17b))),_0x51844e=_0x6ad338[_0x58148e(0x18e)]||{},_0x4b6315=_0x6ad338['devDependencies']||{},_0x5a6d09=_0x51844e[_0x3f180c]||_0x4b6315[_0x3f180c];if(!_0x5a6d09)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};let _0x260cc2=getInstalledVersion(_0xf5ac3,_0x3f180c);!_0x260cc2&&(_0x260cc2=_0x5a6d09);if(isNonNumericVersion(_0x5a6d09))return{'installed':!![],'version':_0x260cc2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};const _0x535b00=a342_0x38dc63[_0x58148e(0x197)](_0x260cc2),_0xa70920=_0x535b00?a342_0x38dc63['lt'](_0x535b00,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x260cc2,'needsUpgrade':_0xa70920,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3f180c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x13c98c){const _0x47293e=a342_0x2b0e;if(!_0x13c98c[_0x47293e(0x194)])return;const _0x2b732e='\x1b[33m',_0x267d21='\x1b[0m',_0x224d15='\x1b[1m',_0x45ad19=_0x13c98c[_0x47293e(0x17d)]||_0x47293e(0x176),_0x3deaa1=_0x13c98c[_0x47293e(0x190)]||_0x13c98c[_0x47293e(0x199)],_0x4c1f51='npm\x20install\x20'+_0x45ad19+'@'+(_0x3deaa1||_0x47293e(0x18b));console['log'](),console[_0x47293e(0x17c)](''+_0x2b732e+_0x224d15+_0x47293e(0x17f)+_0x267d21),console[_0x47293e(0x17c)](_0x2b732e+_0x47293e(0x195)+_0x45ad19+'@'+_0x13c98c[_0x47293e(0x183)]+_0x267d21),console[_0x47293e(0x17c)](_0x2b732e+_0x47293e(0x196)+_0x3deaa1+_0x267d21),console['log'](_0x2b732e+_0x47293e(0x18d)+_0x4c1f51+_0x267d21),console['log']();}
1
+ const a342_0xa988ad=a342_0x52fa;function a342_0x52fa(_0x220e6a,_0x8bfb54){_0x220e6a=_0x220e6a-0x10a;const _0x57d48a=a342_0x57d4();let _0x52fa55=_0x57d48a[_0x220e6a];return _0x52fa55;}(function(_0x286afe,_0x15c23e){const _0x106181=a342_0x52fa,_0x3e6964=_0x286afe();while(!![]){try{const _0x40629f=parseInt(_0x106181(0x11a))/0x1*(-parseInt(_0x106181(0x123))/0x2)+-parseInt(_0x106181(0x10e))/0x3+parseInt(_0x106181(0x11b))/0x4+-parseInt(_0x106181(0x10f))/0x5*(-parseInt(_0x106181(0x118))/0x6)+parseInt(_0x106181(0x122))/0x7+-parseInt(_0x106181(0x113))/0x8+parseInt(_0x106181(0x125))/0x9;if(_0x40629f===_0x15c23e)break;else _0x3e6964['push'](_0x3e6964['shift']());}catch(_0x54227d){_0x3e6964['push'](_0x3e6964['shift']());}}}(a342_0x57d4,0x63e65));import a342_0x329257 from'node:fs';import a342_0x11eb0f from'node:path';import a342_0x41f878 from'semver';function a342_0x57d4(){const _0x2b2c8b=['\x20\x20\x20Stable\x20version:\x20','version','join','latest','coerce','all','1682370bEwkYD','5vweZjG','devDependencies','test','\x1b[1m','3351616ydqOJt','\x20\x20\x20Upgrade\x20command:\x20','stableVersion','\x1b[33m','dependencies','3673122OUBXot','node_modules','1183tImTjO','1735780vJmAgo','parse','log','\x20\x20\x20Current\x20version:\x20','↪\x20SDK\x20update\x20available','readFileSync','sdk','4079572YnfhCg','952NMKKqi','1.2.0','2907999ZMmHmH','@lovrabet/sdk','minVersion','packageName','node','needsUpgrade','existsSync','\x1b[0m','package.json','utf8'];a342_0x57d4=function(){return _0x2b2c8b;};return a342_0x57d4();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a342_0xa988ad(0x124);function isNonNumericVersion(_0x2aee0b){const _0x5b9a3=a342_0xa988ad,_0x6c36e2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x6c36e2['some'](_0x599f1e=>_0x599f1e[_0x5b9a3(0x111)](_0x2aee0b));}function getInstalledVersion(_0x56a406,_0x215884){const _0x11e493=a342_0xa988ad;try{const _0x284523=a342_0x11eb0f['join'](_0x56a406,_0x11e493(0x119),_0x215884,'package.json');if(a342_0x329257[_0x11e493(0x12b)](_0x284523)){const _0x2ed0bc=JSON[_0x11e493(0x11c)](a342_0x329257[_0x11e493(0x120)](_0x284523,'utf-8'));return _0x2ed0bc[_0x11e493(0x130)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3c59ba=a342_0xa988ad;try{const _0x5e7ee6=await getCdnConfig();return _0x5e7ee6?.[_0x3c59ba(0x121)]?.[_0x3c59ba(0x129)]?.[_0x3c59ba(0x115)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x36ace3=a342_0xa988ad;try{const _0x3ea7e5=await getCdnConfig();return _0x3ea7e5?.[_0x36ace3(0x121)]?.[_0x36ace3(0x129)]?.[_0x36ace3(0x128)]||_0x36ace3(0x126);}catch{return _0x36ace3(0x126);}}export async function checkSdkVersion(_0x1c0480){const _0x3b5060=a342_0xa988ad,_0x38ea11=a342_0x11eb0f[_0x3b5060(0x10a)](_0x1c0480,'package.json'),[_0x51eb5c,_0x39f8bc]=await Promise[_0x3b5060(0x10d)]([getSdkStableVersion(),getSdkPackageName()]),_0x5df324=_0x51eb5c||FALLBACK_MIN_SDK_VERSION;if(!a342_0x329257[_0x3b5060(0x12b)](_0x38ea11))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};try{const _0x10583a=JSON[_0x3b5060(0x11c)](a342_0x329257[_0x3b5060(0x120)](_0x38ea11,'utf8')),_0x11aaf7=_0x10583a[_0x3b5060(0x117)]||{},_0x2cbc3e=_0x10583a[_0x3b5060(0x110)]||{},_0x151adf=_0x11aaf7[_0x39f8bc]||_0x2cbc3e[_0x39f8bc];if(!_0x151adf)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};let _0x4ac332=getInstalledVersion(_0x1c0480,_0x39f8bc);!_0x4ac332&&(_0x4ac332=_0x151adf);if(isNonNumericVersion(_0x151adf))return{'installed':!![],'version':_0x4ac332,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};const _0x47b718=a342_0x41f878[_0x3b5060(0x10c)](_0x4ac332),_0x252e85=a342_0x41f878[_0x3b5060(0x10c)](_0x5df324),_0x41fbb1=_0x47b718&&_0x252e85?a342_0x41f878['lt'](_0x47b718,_0x252e85):![];return{'installed':!![],'version':_0x4ac332,'needsUpgrade':_0x41fbb1,'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5df324,'packageName':_0x39f8bc,'stableVersion':_0x51eb5c};}}export function checkSdkVersionSync(_0x5ed880){const _0x7319c5=a342_0xa988ad,_0x19bcc1=a342_0x11eb0f[_0x7319c5(0x10a)](_0x5ed880,_0x7319c5(0x12d)),_0x2ee0f3='@lovrabet/sdk';if(!a342_0x329257[_0x7319c5(0x12b)](_0x19bcc1))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};try{const _0x5836ee=JSON['parse'](a342_0x329257[_0x7319c5(0x120)](_0x19bcc1,_0x7319c5(0x12e))),_0x32d75d=_0x5836ee[_0x7319c5(0x117)]||{},_0x218b94=_0x5836ee[_0x7319c5(0x110)]||{},_0xdd1a71=_0x32d75d[_0x2ee0f3]||_0x218b94[_0x2ee0f3];if(!_0xdd1a71)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};let _0x100413=getInstalledVersion(_0x5ed880,_0x2ee0f3);!_0x100413&&(_0x100413=_0xdd1a71);if(isNonNumericVersion(_0xdd1a71))return{'installed':!![],'version':_0x100413,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};const _0x16d1a8=a342_0x41f878[_0x7319c5(0x10c)](_0x100413),_0x3a979b=_0x16d1a8?a342_0x41f878['lt'](_0x16d1a8,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x100413,'needsUpgrade':_0x3a979b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ee0f3,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xa00798){const _0x3025f0=a342_0xa988ad;if(!_0xa00798[_0x3025f0(0x12a)])return;const _0x48849d=_0x3025f0(0x116),_0x9092d0=_0x3025f0(0x12c),_0x567116=_0x3025f0(0x112),_0x322c40=_0xa00798['packageName']||_0x3025f0(0x126),_0x25ce4d=_0xa00798['stableVersion']||_0xa00798[_0x3025f0(0x127)],_0x4c3c6f='npm\x20install\x20'+_0x322c40+'@'+(_0x25ce4d||_0x3025f0(0x10b));console[_0x3025f0(0x11d)](),console['log'](''+_0x48849d+_0x567116+_0x3025f0(0x11f)+_0x9092d0),console[_0x3025f0(0x11d)](_0x48849d+_0x3025f0(0x11e)+_0x322c40+'@'+_0xa00798[_0x3025f0(0x130)]+_0x9092d0),console['log'](_0x48849d+_0x3025f0(0x12f)+_0x25ce4d+_0x9092d0),console[_0x3025f0(0x11d)](_0x48849d+_0x3025f0(0x114)+_0x4c3c6f+_0x9092d0),console[_0x3025f0(0x11d)]();}
@@ -1 +1 @@
1
- (function(_0x46113e,_0x4eba7b){const _0x5f45f2=a343_0x4075,_0x32a95e=_0x46113e();while(!![]){try{const _0x275673=-parseInt(_0x5f45f2(0x1ad))/0x1+-parseInt(_0x5f45f2(0x1aa))/0x2*(-parseInt(_0x5f45f2(0x1b8))/0x3)+parseInt(_0x5f45f2(0x1b3))/0x4*(parseInt(_0x5f45f2(0x1af))/0x5)+-parseInt(_0x5f45f2(0x1b5))/0x6+-parseInt(_0x5f45f2(0x1a1))/0x7+-parseInt(_0x5f45f2(0x1ba))/0x8+-parseInt(_0x5f45f2(0x1b6))/0x9*(-parseInt(_0x5f45f2(0x1a8))/0xa);if(_0x275673===_0x4eba7b)break;else _0x32a95e['push'](_0x32a95e['shift']());}catch(_0x217461){_0x32a95e['push'](_0x32a95e['shift']());}}}(a343_0x548a,0x5b06d));import{readFileSync}from'node:fs';function a343_0x548a(){const _0x3b713c=['2742341jhRRcz','\x1b[33m','↪\x20New\x20version\x20available','log','\x1b[1m','package.json','upgradeMessage','79240ZMZDZC','\x20\x20\x20Current\x20CLI\x20version:\x20','2pDeiBO','minimumVersionMessage','../..','744557WYoxyU','minimumVersion','150310egqjOL','npm\x20install\x20-g\x20','validation','filter','56cNHZER','parse','2294718FHJfaQ','1827WYhMiA','Upgrade\x20command:\x20','1056486PqstcG','version','3919872mxpacW','\x20\x20\x20Stable\x20version:\x20','utf-8','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20','belowMinimum','currentVersion','1.0.0','\x1b[0m','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Upgrade\x20command:\x20','stableVersion'];a343_0x548a=function(){return _0x3b713c;};return a343_0x548a();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a343_0x4075(_0x1499c4,_0x1f9864){_0x1499c4=_0x1499c4-0x19d;const _0x548a21=a343_0x548a();let _0x4075cf=_0x548a21[_0x1499c4];return _0x4075cf;}import a343_0x595c62 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(_0x5efc3a){const _0x337398=a343_0x4075,_0x4f9366=_0x5efc3a['stableVersion']||'latest';return _0x337398(0x1b0)+NPM_PACKAGE_NAME+'@'+_0x4f9366;}function getCurrentCliVersion(){const _0x1d6477=a343_0x4075;try{const _0x507f5a=fileURLToPath(import.meta.url),_0x458b5d=resolve(dirname(_0x507f5a),_0x1d6477(0x1ac)),_0x33ba99=resolve(_0x458b5d,_0x1d6477(0x1a6)),_0x33f553=JSON[_0x1d6477(0x1b4)](readFileSync(_0x33ba99,_0x1d6477(0x1bc)));return _0x33f553[_0x1d6477(0x1b9)]||'1.0.0';}catch{return _0x1d6477(0x1c1);}}export async function checkCliVersion(){const _0xd21844=a343_0x4075,_0x419cce=getCurrentCliVersion(),_0x4976d5=await getCliVersionPolicy(),_0x495748=_0x4976d5?.[_0xd21844(0x1a0)]||null,_0x203bfe=_0x4976d5?.[_0xd21844(0x1ae)]||null;let _0x50511d=![],_0x28c004=![];const _0x363652=a343_0x595c62['coerce'](_0x419cce);if(_0x363652&&_0x495748)try{const _0x34f31c=a343_0x595c62['coerce'](_0x495748);if(_0x34f31c)_0x50511d=a343_0x595c62['lt'](_0x363652,_0x34f31c);}catch{}if(_0x363652&&_0x203bfe)try{const _0x8e6b92=a343_0x595c62['coerce'](_0x203bfe);if(_0x8e6b92)_0x28c004=a343_0x595c62['lt'](_0x363652,_0x8e6b92);}catch{}return _0x28c004&&(_0x50511d=!![]),{'currentVersion':_0x419cce,'stableVersion':_0x495748,'minimumVersion':_0x203bfe,'needsUpgrade':_0x50511d,'belowMinimum':_0x28c004,'isPreRelease':![],'upgradeMessage':_0x4976d5?.['upgradeMessage'],'minimumVersionMessage':_0x4976d5?.[_0xd21844(0x1ab)]};}export function printCliUpgradeWarning(_0x512a4e){const _0x5685d5=a343_0x4075;if(!_0x512a4e['needsUpgrade']&&!_0x512a4e[_0x5685d5(0x1bf)])return;const _0x53a0e9='\x1b[31m',_0x148915=_0x5685d5(0x1a2),_0x31ca53=_0x5685d5(0x19d),_0x29da88=_0x5685d5(0x1a5),_0x34d838=getCliUpgradeCommand(_0x512a4e);console[_0x5685d5(0x1a4)](),_0x512a4e[_0x5685d5(0x1bf)]?(console[_0x5685d5(0x1a4)](''+_0x53a0e9+_0x29da88+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x31ca53),console[_0x5685d5(0x1a4)](_0x53a0e9+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x512a4e[_0x5685d5(0x1c0)]+_0x31ca53),_0x512a4e['minimumVersion']&&console[_0x5685d5(0x1a4)](_0x53a0e9+_0x5685d5(0x1bd)+_0x512a4e[_0x5685d5(0x1ae)]+_0x31ca53),_0x512a4e[_0x5685d5(0x1a0)]&&_0x512a4e['stableVersion']!==_0x512a4e['minimumVersion']&&console['log'](_0x53a0e9+_0x5685d5(0x19e)+_0x512a4e[_0x5685d5(0x1a0)]+_0x31ca53),_0x512a4e[_0x5685d5(0x1ab)]&&console['log'](_0x53a0e9+_0x5685d5(0x1be)+_0x512a4e[_0x5685d5(0x1ab)]+_0x31ca53),console[_0x5685d5(0x1a4)](_0x53a0e9+'\x20\x20\x20Upgrade\x20command:\x20'+_0x34d838+_0x31ca53)):(console['log'](''+_0x148915+_0x29da88+_0x5685d5(0x1a3)+_0x31ca53),console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x1a9)+_0x512a4e[_0x5685d5(0x1c0)]+_0x31ca53),console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x1bb)+_0x512a4e['stableVersion']+_0x31ca53),_0x512a4e['upgradeMessage']&&console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x1be)+_0x512a4e[_0x5685d5(0x1a7)]+_0x31ca53),console[_0x5685d5(0x1a4)](_0x148915+_0x5685d5(0x19f)+_0x34d838+_0x31ca53)),console[_0x5685d5(0x1a4)]();}export function assertCliVersionSupported(_0xa9828b){const _0x32a709=a343_0x4075;if(!_0xa9828b['belowMinimum'])return;const _0x5b43c6=[_0xa9828b[_0x32a709(0x1ab)],'Current\x20version:\x20'+_0xa9828b[_0x32a709(0x1c0)],_0xa9828b[_0x32a709(0x1ae)]?'Minimum\x20supported:\x20'+_0xa9828b[_0x32a709(0x1ae)]:null,_0x32a709(0x1b7)+getCliUpgradeCommand(_0xa9828b)][_0x32a709(0x1b2)](Boolean)['join']('\x0a');throw CliErrors[_0x32a709(0x1b1)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x5b43c6);}
1
+ (function(_0x259a2f,_0x251828){const _0x3d804b=a343_0x540e,_0x31b742=_0x259a2f();while(!![]){try{const _0x177af6=-parseInt(_0x3d804b(0x78))/0x1+-parseInt(_0x3d804b(0x86))/0x2*(parseInt(_0x3d804b(0x92))/0x3)+-parseInt(_0x3d804b(0x91))/0x4*(-parseInt(_0x3d804b(0x8a))/0x5)+-parseInt(_0x3d804b(0x8f))/0x6+-parseInt(_0x3d804b(0x7f))/0x7*(-parseInt(_0x3d804b(0x94))/0x8)+-parseInt(_0x3d804b(0x7e))/0x9+parseInt(_0x3d804b(0x7c))/0xa*(parseInt(_0x3d804b(0x88))/0xb);if(_0x177af6===_0x251828)break;else _0x31b742['push'](_0x31b742['shift']());}catch(_0x5039e0){_0x31b742['push'](_0x31b742['shift']());}}}(a343_0x3499,0x7f76d));function a343_0x3499(){const _0x54cb8d=['Minimum\x20supported:\x20','\x1b[0m','../..','version','↪\x20New\x20version\x20available','521841xGdkHI','coerce','validation','belowMinimum','954610qPMNJP','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','4287294kZEAta','123291PITQCU','stableVersion','latest','minimumVersion','filter','1.0.0','upgradeMessage','4bIzVei','minimumVersionMessage','33ipAJHX','\x20\x20\x20Minimum\x20supported:\x20','1185JhVmHL','\x20\x20\x20','utf-8','\x20\x20\x20Upgrade\x20command:\x20','needsUpgrade','3330498fEoZjL','parse','15716hjOBLI','113493rDrmim','npm\x20install\x20-g\x20','424ZivERk','\x20\x20\x20Recommended\x20stable:\x20','package.json','\x1b[31m','\x1b[33m','↪\x20Critical\x20CLI\x20upgrade\x20required','log','join','currentVersion'];a343_0x3499=function(){return _0x54cb8d;};return a343_0x3499();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a343_0x23e1e0 from'semver';function a343_0x540e(_0x4e21bf,_0x277e81){_0x4e21bf=_0x4e21bf-0x6f;const _0x349941=a343_0x3499();let _0x540ecf=_0x349941[_0x4e21bf];return _0x540ecf;}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x41816b){const _0x338718=a343_0x540e,_0x2aaeee=_0x41816b[_0x338718(0x80)]||_0x338718(0x81);return _0x338718(0x93)+NPM_PACKAGE_NAME+'@'+_0x2aaeee;}function getCurrentCliVersion(){const _0x578968=a343_0x540e;try{const _0x589734=fileURLToPath(import.meta.url),_0x598d06=resolve(dirname(_0x589734),_0x578968(0x75)),_0x2aba73=resolve(_0x598d06,_0x578968(0x96)),_0x389164=JSON[_0x578968(0x90)](readFileSync(_0x2aba73,_0x578968(0x8c)));return _0x389164[_0x578968(0x76)]||_0x578968(0x84);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x46fb56=a343_0x540e,_0x3a4508=getCurrentCliVersion(),_0x16d1ab=await getCliVersionPolicy(),_0x332371=_0x16d1ab?.['stableVersion']||null,_0x8cabb4=_0x16d1ab?.['minimumVersion']||null;let _0x360b76=![],_0x179aa4=![];const _0x168f2f=a343_0x23e1e0[_0x46fb56(0x79)](_0x3a4508);if(_0x168f2f&&_0x332371)try{const _0x4ba546=a343_0x23e1e0[_0x46fb56(0x79)](_0x332371);if(_0x4ba546)_0x360b76=a343_0x23e1e0['lt'](_0x168f2f,_0x4ba546);}catch{}if(_0x168f2f&&_0x8cabb4)try{const _0x222da3=a343_0x23e1e0[_0x46fb56(0x79)](_0x8cabb4);if(_0x222da3)_0x179aa4=a343_0x23e1e0['lt'](_0x168f2f,_0x222da3);}catch{}return _0x179aa4&&(_0x360b76=!![]),{'currentVersion':_0x3a4508,'stableVersion':_0x332371,'minimumVersion':_0x8cabb4,'needsUpgrade':_0x360b76,'belowMinimum':_0x179aa4,'isPreRelease':![],'upgradeMessage':_0x16d1ab?.[_0x46fb56(0x85)],'minimumVersionMessage':_0x16d1ab?.[_0x46fb56(0x87)]};}export function printCliUpgradeWarning(_0x31a3f3){const _0x75796a=a343_0x540e;if(!_0x31a3f3[_0x75796a(0x8e)]&&!_0x31a3f3[_0x75796a(0x7b)])return;const _0x3828d0=_0x75796a(0x97),_0x25acd3=_0x75796a(0x98),_0x15c8bf=_0x75796a(0x74),_0x2ad08e='\x1b[1m',_0x3201ef=getCliUpgradeCommand(_0x31a3f3);console['log'](),_0x31a3f3[_0x75796a(0x7b)]?(console[_0x75796a(0x70)](''+_0x3828d0+_0x2ad08e+_0x75796a(0x6f)+_0x15c8bf),console['log'](_0x3828d0+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x31a3f3[_0x75796a(0x72)]+_0x15c8bf),_0x31a3f3[_0x75796a(0x82)]&&console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x89)+_0x31a3f3['minimumVersion']+_0x15c8bf),_0x31a3f3['stableVersion']&&_0x31a3f3[_0x75796a(0x80)]!==_0x31a3f3[_0x75796a(0x82)]&&console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x95)+_0x31a3f3[_0x75796a(0x80)]+_0x15c8bf),_0x31a3f3[_0x75796a(0x87)]&&console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x8b)+_0x31a3f3[_0x75796a(0x87)]+_0x15c8bf),console[_0x75796a(0x70)](_0x3828d0+_0x75796a(0x8d)+_0x3201ef+_0x15c8bf)):(console[_0x75796a(0x70)](''+_0x25acd3+_0x2ad08e+_0x75796a(0x77)+_0x15c8bf),console[_0x75796a(0x70)](_0x25acd3+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x31a3f3['currentVersion']+_0x15c8bf),console[_0x75796a(0x70)](_0x25acd3+'\x20\x20\x20Stable\x20version:\x20'+_0x31a3f3[_0x75796a(0x80)]+_0x15c8bf),_0x31a3f3['upgradeMessage']&&console[_0x75796a(0x70)](_0x25acd3+'\x20\x20\x20'+_0x31a3f3[_0x75796a(0x85)]+_0x15c8bf),console[_0x75796a(0x70)](_0x25acd3+_0x75796a(0x8d)+_0x3201ef+_0x15c8bf)),console[_0x75796a(0x70)]();}export function assertCliVersionSupported(_0x598836){const _0x18cc67=a343_0x540e;if(!_0x598836[_0x18cc67(0x7b)])return;const _0x192d2c=[_0x598836[_0x18cc67(0x87)],'Current\x20version:\x20'+_0x598836[_0x18cc67(0x72)],_0x598836['minimumVersion']?_0x18cc67(0x73)+_0x598836[_0x18cc67(0x82)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x598836)][_0x18cc67(0x83)](Boolean)[_0x18cc67(0x71)]('\x0a');throw CliErrors[_0x18cc67(0x7a)](_0x18cc67(0x7d),_0x192d2c);}
@@ -1 +1 @@
1
- (function(_0x1ff928,_0x143fb5){const _0x775f11=a344_0x153f,_0x22a8eb=_0x1ff928();while(!![]){try{const _0x14ebc=-parseInt(_0x775f11(0x18f))/0x1*(parseInt(_0x775f11(0x19a))/0x2)+-parseInt(_0x775f11(0x18a))/0x3+parseInt(_0x775f11(0x190))/0x4+-parseInt(_0x775f11(0x191))/0x5+parseInt(_0x775f11(0x197))/0x6*(-parseInt(_0x775f11(0x188))/0x7)+-parseInt(_0x775f11(0x186))/0x8*(-parseInt(_0x775f11(0x199))/0x9)+parseInt(_0x775f11(0x18d))/0xa*(parseInt(_0x775f11(0x1a0))/0xb);if(_0x14ebc===_0x143fb5)break;else _0x22a8eb['push'](_0x22a8eb['shift']());}catch(_0x174e1a){_0x22a8eb['push'](_0x22a8eb['shift']());}}}(a344_0x529e,0x46ea8));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a344_0x1c7e61 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0xac29e1){const _0x394aea=a344_0x153f,_0x4b5ec7=a344_0x1c7e61[_0x394aea(0x194)](_0xac29e1);return _0x4b5ec7?a344_0x1c7e61['prerelease'](_0x4b5ec7)?.[0x0]===_0x394aea(0x19e):![];}export function resolveProjectTemplateDescriptor(_0x81d6ef,_0x13ecdf){const _0x39a3b8=a344_0x153f;if(isBetaCliVersion(_0x13ecdf))return _0x81d6ef[_0x39a3b8(0x19e)]?.[_0x39a3b8(0x18c)]??_0x81d6ef[_0x39a3b8(0x18c)];return _0x81d6ef['projectTemplate'];}function pickString(_0x3f1816){const _0x1a008e=a344_0x153f;return typeof _0x3f1816===_0x1a008e(0x19f)&&_0x3f1816[_0x1a008e(0x189)]()[_0x1a008e(0x18e)]>0x0?_0x3f1816[_0x1a008e(0x189)]():null;}function normalizeCliVersionPolicy(_0x353dbd){const _0x43cbb3=a344_0x153f;if(!_0x353dbd||typeof _0x353dbd!==_0x43cbb3(0x196))return null;const _0x4e9d23=_0x353dbd,_0x51566e=_0x4e9d23[_0x43cbb3(0x18b)]&&typeof _0x4e9d23[_0x43cbb3(0x18b)]===_0x43cbb3(0x196)?_0x4e9d23[_0x43cbb3(0x18b)]:_0x4e9d23,_0x50329a=pickString(_0x51566e['stableVersion'])||pickString(_0x51566e[_0x43cbb3(0x198)])||pickString(_0x51566e[_0x43cbb3(0x193)]),_0x13195a=pickString(_0x51566e[_0x43cbb3(0x192)])||pickString(_0x51566e[_0x43cbb3(0x185)]);if(!_0x50329a&&!_0x13195a)return null;return{'stableVersion':_0x50329a,'minimumVersion':_0x13195a,'upgradeMessage':pickString(_0x51566e['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x51566e[_0x43cbb3(0x19d)])||undefined};}function a344_0x153f(_0x452744,_0x1561c5){_0x452744=_0x452744-0x185;const _0x529e22=a344_0x529e();let _0x153f40=_0x529e22[_0x452744];return _0x153f40;}async function fetchRabetbaseCdnConfigAt(_0xd3486c){const _0x1cb9f1=a344_0x153f,_0x3954c1=new AbortController(),_0x2bf3a6=setTimeout(()=>_0x3954c1[_0x1cb9f1(0x19c)](),FETCH_TIMEOUT_MS);try{const _0x183631=await fetch(_0xd3486c,{'headers':{'Accept':_0x1cb9f1(0x187)},'signal':_0x3954c1[_0x1cb9f1(0x195)]});if(!_0x183631['ok'])return null;const _0x2e22a1=await _0x183631[_0x1cb9f1(0x19b)]();return _0x2e22a1&&typeof _0x2e22a1===_0x1cb9f1(0x196)?_0x2e22a1:null;}catch{return null;}finally{clearTimeout(_0x2bf3a6);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}function a344_0x529e(){const _0x21321b=['abort','minimumVersionMessage','beta','string','11HwUozs','now','minVersion','8ElrJoV','application/json','8351tgmlSr','trim','1326075Ovxhmd','cli','projectTemplate','4733510CKVUuq','length','845bYDval','673408tpxVWN','1376185FqZslQ','minimumVersion','recommendedVersion','valid','signal','object','150KKOqhs','latestVersion','3608334YtManf','12PQfzkl','json'];a344_0x529e=function(){return _0x21321b;};return a344_0x529e();}export async function fetchProjectTemplateCdnConfig(){const _0x296c61=await getRabetbaseCdnConfig();return _0x296c61?{'config':_0x296c61,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x126f1f=a344_0x153f,_0x33575f=Date[_0x126f1f(0x1a1)]();if(hasCachedConfig){const _0x7df609=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x33575f-cacheTime<_0x7df609)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x33575f,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5ee85,_0x487cf1){const _0x4ce4a0=a344_0x2224,_0x5beb3c=_0x5ee85();while(!![]){try{const _0x41305b=parseInt(_0x4ce4a0(0xe6))/0x1*(-parseInt(_0x4ce4a0(0xe5))/0x2)+parseInt(_0x4ce4a0(0xdf))/0x3+parseInt(_0x4ce4a0(0xd6))/0x4*(-parseInt(_0x4ce4a0(0xd9))/0x5)+-parseInt(_0x4ce4a0(0xdb))/0x6+parseInt(_0x4ce4a0(0xde))/0x7+parseInt(_0x4ce4a0(0xe9))/0x8*(parseInt(_0x4ce4a0(0xd5))/0x9)+-parseInt(_0x4ce4a0(0xd4))/0xa;if(_0x41305b===_0x487cf1)break;else _0x5beb3c['push'](_0x5beb3c['shift']());}catch(_0x78cb8d){_0x5beb3c['push'](_0x5beb3c['shift']());}}}(a344_0x4ca3,0xbc8ba));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a344_0x43b2ad from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x42cef1){const _0x473478=a344_0x2224,_0x3bc9df=a344_0x43b2ad[_0x473478(0xd7)](_0x42cef1);return _0x3bc9df?a344_0x43b2ad['prerelease'](_0x3bc9df)?.[0x0]===_0x473478(0xe4):![];}function a344_0x2224(_0x4f8dfc,_0x56e9bf){_0x4f8dfc=_0x4f8dfc-0xd3;const _0x4ca3f7=a344_0x4ca3();let _0x2224aa=_0x4ca3f7[_0x4f8dfc];return _0x2224aa;}export function resolveProjectTemplateDescriptor(_0x2c5359,_0x495bf7){const _0x2d76cd=a344_0x2224;if(isBetaCliVersion(_0x495bf7))return _0x2c5359[_0x2d76cd(0xe4)]?.[_0x2d76cd(0xdc)]??_0x2c5359[_0x2d76cd(0xdc)];return _0x2c5359[_0x2d76cd(0xdc)];}function pickString(_0x532695){const _0x223bf0=a344_0x2224;return typeof _0x532695==='string'&&_0x532695[_0x223bf0(0xe0)]()['length']>0x0?_0x532695[_0x223bf0(0xe0)]():null;}function a344_0x4ca3(){const _0xff770e=['signal','beta','10mQnhuM','258729Cbmjof','abort','application/json','2440aOLoXZ','cli','5198750vtjCga','40113xkyyrS','12eWWrjF','valid','upgradeMessage','556455ihFSrn','json','4638012UCaXZz','projectTemplate','minimumVersion','10739561EMwSIv','2397207tPRmiI','trim','object','stableVersion'];a344_0x4ca3=function(){return _0xff770e;};return a344_0x4ca3();}function normalizeCliVersionPolicy(_0x4aa585){const _0x52dc51=a344_0x2224;if(!_0x4aa585||typeof _0x4aa585!==_0x52dc51(0xe1))return null;const _0x51ea6e=_0x4aa585,_0x47756f=_0x51ea6e[_0x52dc51(0xd3)]&&typeof _0x51ea6e[_0x52dc51(0xd3)]===_0x52dc51(0xe1)?_0x51ea6e['cli']:_0x51ea6e,_0x4bd863=pickString(_0x47756f[_0x52dc51(0xe2)])||pickString(_0x47756f['latestVersion'])||pickString(_0x47756f['recommendedVersion']),_0x5cb812=pickString(_0x47756f[_0x52dc51(0xdd)])||pickString(_0x47756f['minVersion']);if(!_0x4bd863&&!_0x5cb812)return null;return{'stableVersion':_0x4bd863,'minimumVersion':_0x5cb812,'upgradeMessage':pickString(_0x47756f[_0x52dc51(0xd8)])||undefined,'minimumVersionMessage':pickString(_0x47756f['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x3df15f){const _0x406f2a=a344_0x2224,_0x445c06=new AbortController(),_0x452205=setTimeout(()=>_0x445c06[_0x406f2a(0xe7)](),FETCH_TIMEOUT_MS);try{const _0x47b263=await fetch(_0x3df15f,{'headers':{'Accept':_0x406f2a(0xe8)},'signal':_0x445c06[_0x406f2a(0xe3)]});if(!_0x47b263['ok'])return null;const _0x237b17=await _0x47b263[_0x406f2a(0xda)]();return _0x237b17&&typeof _0x237b17==='object'?_0x237b17:null;}catch{return null;}finally{clearTimeout(_0x452205);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x3646cf=await getRabetbaseCdnConfig();return _0x3646cf?{'config':_0x3646cf,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5d75a1=Date['now']();if(hasCachedConfig){const _0x319b6f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5d75a1-cacheTime<_0x319b6f)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x5d75a1,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a345_0x56d0(_0x43d5a9,_0x22b036){_0x43d5a9=_0x43d5a9-0x7b;const _0xad11ab=a345_0xad11();let _0x56d02a=_0xad11ab[_0x43d5a9];return _0x56d02a;}function a345_0xad11(){const _0xdb32e1=['376ZvBbPr','35437347kGqYbl','2780JHjlwf','21DXFkAB','2172jEUrGJ','420921FbavFU','26677aRRTbV','35482ikrGtl','project','4042940BaMDaT','string','env','830195milJDd','190uvrOVS'];a345_0xad11=function(){return _0xdb32e1;};return a345_0xad11();}const a345_0xf2a5fb=a345_0x56d0;(function(_0xf8aaa4,_0x83f17d){const _0x3738dd=a345_0x56d0,_0x42706c=_0xf8aaa4();while(!![]){try{const _0x4e0e67=-parseInt(_0x3738dd(0x86))/0x1+-parseInt(_0x3738dd(0x81))/0x2*(parseInt(_0x3738dd(0x7d))/0x3)+-parseInt(_0x3738dd(0x83))/0x4+-parseInt(_0x3738dd(0x7c))/0x5*(-parseInt(_0x3738dd(0x7e))/0x6)+-parseInt(_0x3738dd(0x80))/0x7*(-parseInt(_0x3738dd(0x88))/0x8)+parseInt(_0x3738dd(0x7f))/0x9*(-parseInt(_0x3738dd(0x87))/0xa)+parseInt(_0x3738dd(0x7b))/0xb;if(_0x4e0e67===_0x83f17d)break;else _0x42706c['push'](_0x42706c['shift']());}catch(_0x3042e3){_0x42706c['push'](_0x42706c['shift']());}}}(a345_0xad11,0xb6ace));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a345_0x5a88a2,getMultiAppConfigs as a345_0x1e2fd2,getTemplateBaseUrl as a345_0x1009f2}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x443926){const _0x3af617=a345_0x56d0,_0x1850e8=readRawConfig(_0x443926);return _0x1850e8[_0x3af617(0x85)]&&typeof _0x1850e8['env']===_0x3af617(0x84)&&initEnv(_0x1850e8[_0x3af617(0x85)]),_0x1850e8;}export function getConfigAppCode(){return a345_0x5a88a2();}export function getMultiAppConfigs(_0x3684f5=a345_0xf2a5fb(0x82)){return a345_0x1e2fd2(_0x3684f5);}export function getTemplateBaseUrl(){return a345_0x1009f2();}
1
+ const a345_0x4e9ed2=a345_0x552b;(function(_0x35f6d,_0x25de20){const _0x149308=a345_0x552b,_0x16a905=_0x35f6d();while(!![]){try{const _0x292235=-parseInt(_0x149308(0xea))/0x1+-parseInt(_0x149308(0xe0))/0x2*(-parseInt(_0x149308(0xe2))/0x3)+parseInt(_0x149308(0xe1))/0x4*(-parseInt(_0x149308(0xe4))/0x5)+-parseInt(_0x149308(0xe3))/0x6+parseInt(_0x149308(0xe6))/0x7*(-parseInt(_0x149308(0xdd))/0x8)+-parseInt(_0x149308(0xe7))/0x9+parseInt(_0x149308(0xe9))/0xa*(parseInt(_0x149308(0xe8))/0xb);if(_0x292235===_0x25de20)break;else _0x16a905['push'](_0x16a905['shift']());}catch(_0x8f0341){_0x16a905['push'](_0x16a905['shift']());}}}(a345_0x4ff3,0x99fa8));import{initEnv}from'../constant/env.js';function a345_0x4ff3(){const _0x4aa872=['1614534mMoSAI','2020GAoIrD','3dHRUyB','6052608dDjkhB','130ufHHMu','env','287wBlWgc','11121840PbWWtK','11QgjIzu','31397470KyEFpJ','437961caDJTk','121112dLBCvu','project','string'];a345_0x4ff3=function(){return _0x4aa872;};return a345_0x4ff3();}import{readRawConfig,getConfigAppCode as a345_0x3c7cd2,getMultiAppConfigs as a345_0x487846,getTemplateBaseUrl as a345_0x1818ae}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1d7ec5){const _0x3032c0=a345_0x552b,_0x5af6d9=readRawConfig(_0x1d7ec5);return _0x5af6d9['env']&&typeof _0x5af6d9[_0x3032c0(0xe5)]===_0x3032c0(0xdf)&&initEnv(_0x5af6d9['env']),_0x5af6d9;}export function getConfigAppCode(){return a345_0x3c7cd2();}function a345_0x552b(_0xaf39b,_0x18cf96){_0xaf39b=_0xaf39b-0xdd;const _0x4ff366=a345_0x4ff3();let _0x552b5a=_0x4ff366[_0xaf39b];return _0x552b5a;}export function getMultiAppConfigs(_0x2c4168=a345_0x4e9ed2(0xde)){return a345_0x487846(_0x2c4168);}export function getTemplateBaseUrl(){return a345_0x1818ae();}
@@ -1 +1 @@
1
- (function(_0x1056df,_0x4fbf61){const _0x4b0c58=a346_0x55f4,_0x447f36=_0x1056df();while(!![]){try{const _0x28bc4f=parseInt(_0x4b0c58(0xee))/0x1+parseInt(_0x4b0c58(0xe7))/0x2+-parseInt(_0x4b0c58(0xe5))/0x3+-parseInt(_0x4b0c58(0xea))/0x4+-parseInt(_0x4b0c58(0xec))/0x5+parseInt(_0x4b0c58(0xe4))/0x6+-parseInt(_0x4b0c58(0xeb))/0x7*(-parseInt(_0x4b0c58(0xe8))/0x8);if(_0x28bc4f===_0x4fbf61)break;else _0x447f36['push'](_0x447f36['shift']());}catch(_0x3bcc89){_0x447f36['push'](_0x447f36['shift']());}}}(a346_0x2a98,0x4809f));function toFiniteNumber(_0x5cf3d3){const _0x586083=a346_0x55f4;if(typeof _0x5cf3d3==='number'&&Number[_0x586083(0xed)](_0x5cf3d3))return _0x5cf3d3;if(typeof _0x5cf3d3==='string'){const _0x3a0566=_0x5cf3d3[_0x586083(0xe6)]();if(!_0x3a0566)return undefined;const _0x47bbe2=Number(_0x3a0566);if(Number[_0x586083(0xed)](_0x47bbe2))return _0x47bbe2;}return undefined;}function a346_0x55f4(_0x1df18d,_0x113cf7){_0x1df18d=_0x1df18d-0xe4;const _0x2a986c=a346_0x2a98();let _0x55f43b=_0x2a986c[_0x1df18d];return _0x55f43b;}export function normalizeEntityWithIdResponse(_0x4e1b31){const _0x3d5c2b=a346_0x55f4,_0x54874a=toFiniteNumber(_0x4e1b31);if(_0x54874a!==undefined)return{'id':_0x54874a,'entity':{'id':_0x54874a}};if(!_0x4e1b31||typeof _0x4e1b31!==_0x3d5c2b(0xe9))return{'id':undefined,'entity':{}};const _0xd188c0={..._0x4e1b31},_0x17453d=toFiniteNumber(_0xd188c0['id']);return _0x17453d!==undefined&&(_0xd188c0['id']=_0x17453d),{'id':_0x17453d,'entity':_0xd188c0};}function a346_0x2a98(){const _0x45c359=['1273260OATXbj','1732329aKXKYm','trim','827176ECxzUa','4233976dMbUah','object','147212QuXLYU','7NTSbaN','2942790eGzoVZ','isFinite','342830Llgtai'];a346_0x2a98=function(){return _0x45c359;};return a346_0x2a98();}
1
+ (function(_0xfc926,_0x8ccb62){const _0xf583c6=a346_0x2286,_0x19af46=_0xfc926();while(!![]){try{const _0x44e92b=-parseInt(_0xf583c6(0xed))/0x1*(-parseInt(_0xf583c6(0xe2))/0x2)+parseInt(_0xf583c6(0xe1))/0x3+parseInt(_0xf583c6(0xea))/0x4+parseInt(_0xf583c6(0xe9))/0x5*(-parseInt(_0xf583c6(0xe3))/0x6)+-parseInt(_0xf583c6(0xee))/0x7+parseInt(_0xf583c6(0xe4))/0x8*(-parseInt(_0xf583c6(0xe8))/0x9)+parseInt(_0xf583c6(0xec))/0xa;if(_0x44e92b===_0x8ccb62)break;else _0x19af46['push'](_0x19af46['shift']());}catch(_0x1c5b92){_0x19af46['push'](_0x19af46['shift']());}}}(a346_0x58e6,0x3a8a5));function toFiniteNumber(_0x2c29ec){const _0x5d77f7=a346_0x2286;if(typeof _0x2c29ec===_0x5d77f7(0xe5)&&Number[_0x5d77f7(0xe7)](_0x2c29ec))return _0x2c29ec;if(typeof _0x2c29ec===_0x5d77f7(0xeb)){const _0x5c264a=_0x2c29ec['trim']();if(!_0x5c264a)return undefined;const _0x515ff7=Number(_0x5c264a);if(Number[_0x5d77f7(0xe7)](_0x515ff7))return _0x515ff7;}return undefined;}function a346_0x58e6(){const _0x4c8d4f=['20roCGAk','16188sGANzc','80ExQMfJ','number','object','isFinite','149643pOwUjK','590RonYVm','459688MYxAnt','string','3791150rIdzaT','28309AWWtZN','2791530pIuScX','1038234GlgqwT'];a346_0x58e6=function(){return _0x4c8d4f;};return a346_0x58e6();}function a346_0x2286(_0x4cfb93,_0xc486a9){_0x4cfb93=_0x4cfb93-0xe1;const _0x58e6ba=a346_0x58e6();let _0x2286fd=_0x58e6ba[_0x4cfb93];return _0x2286fd;}export function normalizeEntityWithIdResponse(_0x4adeda){const _0x22e9db=a346_0x2286,_0x529ee3=toFiniteNumber(_0x4adeda);if(_0x529ee3!==undefined)return{'id':_0x529ee3,'entity':{'id':_0x529ee3}};if(!_0x4adeda||typeof _0x4adeda!==_0x22e9db(0xe6))return{'id':undefined,'entity':{}};const _0x54187e={..._0x4adeda},_0x2d5c52=toFiniteNumber(_0x54187e['id']);return _0x2d5c52!==undefined&&(_0x54187e['id']=_0x2d5c52),{'id':_0x2d5c52,'entity':_0x54187e};}
@@ -1 +1 @@
1
- (function(_0x51f96b,_0x14e87d){const _0x32b245=a347_0x6a30,_0x22fdac=_0x51f96b();while(!![]){try{const _0x3c6eb5=parseInt(_0x32b245(0xc0))/0x1+-parseInt(_0x32b245(0xbf))/0x2+-parseInt(_0x32b245(0xc2))/0x3*(parseInt(_0x32b245(0xc4))/0x4)+parseInt(_0x32b245(0xc1))/0x5+-parseInt(_0x32b245(0xc5))/0x6+-parseInt(_0x32b245(0xbe))/0x7+parseInt(_0x32b245(0xc3))/0x8;if(_0x3c6eb5===_0x14e87d)break;else _0x22fdac['push'](_0x22fdac['shift']());}catch(_0x26117b){_0x22fdac['push'](_0x22fdac['shift']());}}}(a347_0x4133,0x5f2db));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a347_0x4133(){const _0x3dc656=['117faggsg','4396384AIemEp','48316DYcnlY','1580598QzsnJn','isDirectory','128758cFixpo','460756axjXUG','624547xEpdGY','995210PldpCy'];a347_0x4133=function(){return _0x3dc656;};return a347_0x4133();}export async function copyDir(_0x119ee8,_0x3aa7cd){const _0x2a24ad=a347_0x6a30,_0x58623c=statSync(_0x119ee8);if(_0x58623c[_0x2a24ad(0xbd)]()){!existsSync(_0x3aa7cd)&&mkdirSync(_0x3aa7cd,{'recursive':!![]});const _0x3da701=readdirSync(_0x119ee8);for(const _0x120968 of _0x3da701){await copyDir(join(_0x119ee8,_0x120968),join(_0x3aa7cd,_0x120968));}}else copyFileSync(_0x119ee8,_0x3aa7cd);}export function ensureDir(_0x20cc78){!existsSync(_0x20cc78)&&mkdirSync(_0x20cc78,{'recursive':!![]});}function a347_0x6a30(_0x17f782,_0x49fa1e){_0x17f782=_0x17f782-0xbd;const _0x41338e=a347_0x4133();let _0x6a30c1=_0x41338e[_0x17f782];return _0x6a30c1;}export function pathExists(_0x2f8bf2){return existsSync(_0x2f8bf2);}
1
+ (function(_0x178f99,_0xa78bc7){const _0x107ec8=a347_0x4d6e,_0x1b84f5=_0x178f99();while(!![]){try{const _0x1bb90f=parseInt(_0x107ec8(0x178))/0x1+-parseInt(_0x107ec8(0x17c))/0x2+-parseInt(_0x107ec8(0x17d))/0x3*(-parseInt(_0x107ec8(0x177))/0x4)+parseInt(_0x107ec8(0x17e))/0x5+parseInt(_0x107ec8(0x176))/0x6+parseInt(_0x107ec8(0x17f))/0x7+parseInt(_0x107ec8(0x17b))/0x8*(-parseInt(_0x107ec8(0x17a))/0x9);if(_0x1bb90f===_0xa78bc7)break;else _0x1b84f5['push'](_0x1b84f5['shift']());}catch(_0x3c777b){_0x1b84f5['push'](_0x1b84f5['shift']());}}}(a347_0x14e7,0x26db1));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x46d081,_0x63d938){const _0x853de3=a347_0x4d6e,_0x547b7c=statSync(_0x46d081);if(_0x547b7c[_0x853de3(0x179)]()){!existsSync(_0x63d938)&&mkdirSync(_0x63d938,{'recursive':!![]});const _0x395a1a=readdirSync(_0x46d081);for(const _0x487c21 of _0x395a1a){await copyDir(join(_0x46d081,_0x487c21),join(_0x63d938,_0x487c21));}}else copyFileSync(_0x46d081,_0x63d938);}export function ensureDir(_0x5631bb){!existsSync(_0x5631bb)&&mkdirSync(_0x5631bb,{'recursive':!![]});}function a347_0x4d6e(_0x36545e,_0x23a98f){_0x36545e=_0x36545e-0x176;const _0x14e7a6=a347_0x14e7();let _0x4d6eb1=_0x14e7a6[_0x36545e];return _0x4d6eb1;}export function pathExists(_0x487330){return existsSync(_0x487330);}function a347_0x14e7(){const _0x1c6810=['1877071eoovmZ','747546HeHlCk','1004pxRrdK','226576TdZPgF','isDirectory','7002873rGuzYa','8LtFXSl','143964WGeJsg','2019eqkSQo','1104945zaIYJK'];a347_0x14e7=function(){return _0x1c6810;};return a347_0x14e7();}
@@ -1 +1 @@
1
- const a348_0x564fec=a348_0x3793;(function(_0x51ca8a,_0x578e60){const _0x3311c2=a348_0x3793,_0xd3b991=_0x51ca8a();while(!![]){try{const _0x5e7a1a=-parseInt(_0x3311c2(0x206))/0x1*(-parseInt(_0x3311c2(0x1fa))/0x2)+parseInt(_0x3311c2(0x1f0))/0x3*(parseInt(_0x3311c2(0x1fc))/0x4)+-parseInt(_0x3311c2(0x1f9))/0x5+parseInt(_0x3311c2(0x1fb))/0x6+-parseInt(_0x3311c2(0x1ee))/0x7+-parseInt(_0x3311c2(0x207))/0x8*(parseInt(_0x3311c2(0x1fe))/0x9)+parseInt(_0x3311c2(0x203))/0xa;if(_0x5e7a1a===_0x578e60)break;else _0xd3b991['push'](_0xd3b991['shift']());}catch(_0x4158ee){_0xd3b991['push'](_0xd3b991['shift']());}}}(a348_0xf431,0x62737));import{mkdirSync,writeFileSync}from'node:fs';function a348_0x3793(_0x21316b,_0x57e521){_0x21316b=_0x21316b-0x1e9;const _0xf431da=a348_0xf431();let _0x3793ea=_0xf431da[_0x21316b];return _0x3793ea;}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a348_0xf431(){const _0x3964e1=['push','.lovrabet/skill/guides','lastUpdated','4962240RfSzic','statusText','join','2482NaDHqB','4320YKFXbQ','entries','.lovrabet','/skills/guides.json','length','keys','trimEnd','utf-8','4109532YQUMFc','\x0a\x0a>更新时间:','225669KmlTku','.md','status','replace','skillTemplate','title','guides','extendContent','application/json','2997670QbSAua','358nmTcMf','4199760yDCspU','4xHbvwR','object','2097OKPNHT','CDN\x20data\x20is\x20missing\x20skillTemplate'];a348_0xf431=function(){return _0x3964e1;};return a348_0xf431();}function getGuidesCdnUrl(){const _0xcf8d1=a348_0x3793,_0x3d0a35=getTemplateBaseUrl();return _0x3d0a35+_0xcf8d1(0x1e9);}const CACHE_DIR=join(homedir(),a348_0x564fec(0x209),'cache');export async function fetchGuidesFromCDN(){const _0x226df6=a348_0x564fec,_0x3a064b=getGuidesCdnUrl(),_0x186cab=await fetch(_0x3a064b,{'headers':{'Accept':_0x226df6(0x1f8)}});if(!_0x186cab['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x186cab[_0x226df6(0x1f2)]+'\x20'+_0x186cab[_0x226df6(0x204)]);const _0x34d9c6=await _0x186cab['json']();if(!_0x34d9c6[_0x226df6(0x1f6)]||typeof _0x34d9c6[_0x226df6(0x1f6)]!==_0x226df6(0x1fd))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x34d9c6;}export function writeGuidesToProject(_0x5891a4,_0x54aff5,_0x19e46c=a348_0x564fec(0x201),_0x407075){const _0x5084a9=a348_0x564fec,_0x23399c=join(_0x54aff5,_0x19e46c);mkdirSync(_0x23399c,{'recursive':!![]});for(const [_0x549e5f,_0x4fb89e]of Object['entries'](_0x5891a4[_0x5084a9(0x1f6)])){let _0x586cd6=_0x4fb89e['content'];_0x4fb89e['lastUpdated']&&(_0x586cd6=appendUpdateTime(_0x586cd6,_0x4fb89e[_0x5084a9(0x202)])),writeFileSync(join(_0x23399c,_0x549e5f+_0x5084a9(0x1f1)),_0x586cd6,_0x5084a9(0x1ed));}}export function appendUpdateTime(_0x45c8ba,_0x57aea0){const _0x9e6cb2=a348_0x564fec;return _0x45c8ba=_0x45c8ba['replace'](/\n*>更新时间:.*$/m,''),_0x45c8ba['trimEnd']()+(_0x9e6cb2(0x1ef)+_0x57aea0);}export function getSkillTemplate(_0x32dca5){const _0x35ef39=a348_0x564fec;return _0x32dca5[_0x35ef39(0x1f4)]?.['content']||'';}export function appendExtendContents(_0x3e2002,_0x327c18,_0x128596){const _0x1055d5=a348_0x564fec,_0x95849a=[];for(const [,_0x5dce94]of Object['entries'](_0x327c18[_0x1055d5(0x1f6)])){_0x5dce94[_0x1055d5(0x1f7)]&&_0x95849a[_0x1055d5(0x200)](_0x5dce94[_0x1055d5(0x1f7)][_0x1055d5(0x1ec)]());}if(_0x95849a[_0x1055d5(0x1ea)]===0x0)return _0x3e2002;return _0x3e2002[_0x1055d5(0x1ec)]()+'\x0a\x0a'+_0x95849a[_0x1055d5(0x205)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4414ba,_0x1b7fae,_0x150ca5){const _0x5b8281=a348_0x564fec,_0x1171be=getSkillTemplate(_0x4414ba);if(!_0x1171be)throw new Error(_0x5b8281(0x1ff));const _0x56e2ea=dirname(_0x1b7fae);mkdirSync(_0x56e2ea,{'recursive':!![]});let _0x27650e=_0x1171be[_0x5b8281(0x1f3)](/\{\{IDE_NAME\}\}/g,_0x150ca5);_0x27650e=appendExtendContents(_0x27650e,_0x4414ba),_0x4414ba[_0x5b8281(0x1f4)]['lastUpdated']&&(_0x27650e=appendUpdateTime(_0x27650e,_0x4414ba[_0x5b8281(0x1f4)][_0x5b8281(0x202)])),writeFileSync(_0x1b7fae,_0x27650e,_0x5b8281(0x1ed));}export async function installGuides(_0x576a9f){const _0x3caeae=a348_0x564fec,_0x3cf509=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3cf509,_0x576a9f),Object[_0x3caeae(0x1eb)](_0x3cf509[_0x3caeae(0x1f6)])[_0x3caeae(0x1ea)];}export function getGuidesSummary(_0x482517){const _0x3ec951=a348_0x564fec;return Object[_0x3ec951(0x208)](_0x482517['guides'])['map'](([_0x35704c,_0x22b06a])=>({'key':_0x35704c,'title':_0x22b06a[_0x3ec951(0x1f5)],'path':_0x22b06a['path']}));}
1
+ const a348_0x768af2=a348_0x5f5c;function a348_0x32ab(){const _0x149db4=['CDN\x20request\x20failed:\x20','CDN\x20data\x20is\x20missing\x20skillTemplate','cache','5MFQfBG','7385040ZGksCY','title','trimEnd','json','content','status','extendContent','4243488fxyiHZ','utf-8','79652eKErFx','keys','skillTemplate','/skills/guides.json','length','8251418CgdFfH','lastUpdated','guides','replace','entries','push','.lovrabet/skill/guides','\x0a\x0a>更新时间:','CDN\x20returned\x20invalid\x20data','4931556eaFNqf','42825048vNNMNp','1091744nWrgYL','map','join','statusText','path','.lovrabet'];a348_0x32ab=function(){return _0x149db4;};return a348_0x32ab();}(function(_0xf3761b,_0x155b9e){const _0x26f8d5=a348_0x5f5c,_0x2863d9=_0xf3761b();while(!![]){try{const _0x40e00d=-parseInt(_0x26f8d5(0x1a8))/0x1+parseInt(_0x26f8d5(0x195))/0x2+-parseInt(_0x26f8d5(0x1a6))/0x3+-parseInt(_0x26f8d5(0x193))/0x4*(parseInt(_0x26f8d5(0x19e))/0x5)+-parseInt(_0x26f8d5(0x19f))/0x6+-parseInt(_0x26f8d5(0x18a))/0x7+parseInt(_0x26f8d5(0x194))/0x8;if(_0x40e00d===_0x155b9e)break;else _0x2863d9['push'](_0x2863d9['shift']());}catch(_0x13efc7){_0x2863d9['push'](_0x2863d9['shift']());}}}(a348_0x32ab,0xba1f0));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 _0x521285=a348_0x5f5c,_0x2c9da3=getTemplateBaseUrl();return _0x2c9da3+_0x521285(0x1ab);}const CACHE_DIR=join(homedir(),a348_0x768af2(0x19a),a348_0x768af2(0x19d));export async function fetchGuidesFromCDN(){const _0x2a4de8=a348_0x768af2,_0x22db76=getGuidesCdnUrl(),_0x182324=await fetch(_0x22db76,{'headers':{'Accept':'application/json'}});if(!_0x182324['ok'])throw new Error(_0x2a4de8(0x19b)+_0x182324[_0x2a4de8(0x1a4)]+'\x20'+_0x182324[_0x2a4de8(0x198)]);const _0x1015f9=await _0x182324[_0x2a4de8(0x1a2)]();if(!_0x1015f9[_0x2a4de8(0x18c)]||typeof _0x1015f9[_0x2a4de8(0x18c)]!=='object')throw new Error(_0x2a4de8(0x192));return _0x1015f9;}export function writeGuidesToProject(_0x13d31b,_0x54567e,_0x448d48=a348_0x768af2(0x190),_0x59e6d4){const _0x2f08f2=a348_0x768af2,_0x2e8a7e=join(_0x54567e,_0x448d48);mkdirSync(_0x2e8a7e,{'recursive':!![]});for(const [_0x4764ec,_0x33c9b5]of Object['entries'](_0x13d31b['guides'])){let _0x55b465=_0x33c9b5[_0x2f08f2(0x1a3)];_0x33c9b5[_0x2f08f2(0x18b)]&&(_0x55b465=appendUpdateTime(_0x55b465,_0x33c9b5[_0x2f08f2(0x18b)])),writeFileSync(join(_0x2e8a7e,_0x4764ec+'.md'),_0x55b465,_0x2f08f2(0x1a7));}}export function appendUpdateTime(_0x28caa0,_0x4d9d0d){const _0x544e14=a348_0x768af2;return _0x28caa0=_0x28caa0[_0x544e14(0x18d)](/\n*>更新时间:.*$/m,''),_0x28caa0[_0x544e14(0x1a1)]()+(_0x544e14(0x191)+_0x4d9d0d);}export function getSkillTemplate(_0x291e94){const _0x3b006e=a348_0x768af2;return _0x291e94[_0x3b006e(0x1aa)]?.[_0x3b006e(0x1a3)]||'';}export function appendExtendContents(_0x2d930c,_0x16d4c1,_0x47c42c){const _0x18256d=a348_0x768af2,_0x2bb867=[];for(const [,_0x5e8b99]of Object[_0x18256d(0x18e)](_0x16d4c1[_0x18256d(0x18c)])){_0x5e8b99['extendContent']&&_0x2bb867[_0x18256d(0x18f)](_0x5e8b99[_0x18256d(0x1a5)]['trimEnd']());}if(_0x2bb867[_0x18256d(0x189)]===0x0)return _0x2d930c;return _0x2d930c[_0x18256d(0x1a1)]()+'\x0a\x0a'+_0x2bb867[_0x18256d(0x197)]('\x0a\x0a')+'\x0a';}function a348_0x5f5c(_0x4093cc,_0xee76e2){_0x4093cc=_0x4093cc-0x189;const _0x32abb6=a348_0x32ab();let _0x5f5c0d=_0x32abb6[_0x4093cc];return _0x5f5c0d;}export function writeSkillFile(_0x264b12,_0x1260cf,_0x343d95){const _0x891156=a348_0x768af2,_0x359754=getSkillTemplate(_0x264b12);if(!_0x359754)throw new Error(_0x891156(0x19c));const _0x2ba409=dirname(_0x1260cf);mkdirSync(_0x2ba409,{'recursive':!![]});let _0x4d604e=_0x359754['replace'](/\{\{IDE_NAME\}\}/g,_0x343d95);_0x4d604e=appendExtendContents(_0x4d604e,_0x264b12),_0x264b12['skillTemplate'][_0x891156(0x18b)]&&(_0x4d604e=appendUpdateTime(_0x4d604e,_0x264b12[_0x891156(0x1aa)]['lastUpdated'])),writeFileSync(_0x1260cf,_0x4d604e,'utf-8');}export async function installGuides(_0x2ae7f3){const _0x28773d=a348_0x768af2,_0x2aa900=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2aa900,_0x2ae7f3),Object[_0x28773d(0x1a9)](_0x2aa900[_0x28773d(0x18c)])[_0x28773d(0x189)];}export function getGuidesSummary(_0x2a88a9){const _0x5a6c69=a348_0x768af2;return Object['entries'](_0x2a88a9['guides'])[_0x5a6c69(0x196)](([_0x321b70,_0x4ce231])=>({'key':_0x321b70,'title':_0x4ce231[_0x5a6c69(0x1a0)],'path':_0x4ce231[_0x5a6c69(0x199)]}));}
@@ -1 +1 @@
1
- function a349_0x155f(_0x36015d,_0x75f45b){_0x36015d=_0x36015d-0x88;const _0x1e630c=a349_0x1e63();let _0x155fea=_0x1e630c[_0x36015d];return _0x155fea;}(function(_0x18024e,_0x44890b){const _0x4c9c99=a349_0x155f,_0x51807f=_0x18024e();while(!![]){try{const _0x548e95=-parseInt(_0x4c9c99(0xa0))/0x1+parseInt(_0x4c9c99(0x9d))/0x2+-parseInt(_0x4c9c99(0x8e))/0x3*(-parseInt(_0x4c9c99(0x8f))/0x4)+parseInt(_0x4c9c99(0x9f))/0x5*(-parseInt(_0x4c9c99(0x8c))/0x6)+parseInt(_0x4c9c99(0xa3))/0x7+parseInt(_0x4c9c99(0x95))/0x8+-parseInt(_0x4c9c99(0x94))/0x9*(parseInt(_0x4c9c99(0x91))/0xa);if(_0x548e95===_0x44890b)break;else _0x51807f['push'](_0x51807f['shift']());}catch(_0x26cdb1){_0x51807f['push'](_0x51807f['shift']());}}}(a349_0x1e63,0x94806));function a349_0x1e63(){const _0x50b296=['json','fetch','1862688NpQtsk','content-type','409555RMLcmC','49125TeSwlZ','AbortError','text','4480189LPaTqZ','name','message','statusText','headers','12YNzhlz','Request\x20failed','294AshkYT','9904LhJzbD','ms...','21013910gBDsWe','ECONNRESET','abort','9fBKPLZ','8868648TiTbWp','*\x20Request\x20failed;\x20retry\x20','log','TypeError','status','includes'];a349_0x1e63=function(){return _0x50b296;};return a349_0x1e63();}export async function httpRequest(_0x3d7e3d,_0x112900={}){const _0x2ee8c3=a349_0x155f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x112900;let _0x58040b=null;for(let _0x539e02=0x0;_0x539e02<=retries;_0x539e02++){try{const _0x452ed6=new AbortController(),_0x4d8e71=setTimeout(()=>_0x452ed6[_0x2ee8c3(0x93)](),timeout),_0x2f5e69=await fetch(_0x3d7e3d,{'headers':headers,'signal':_0x452ed6['signal']});clearTimeout(_0x4d8e71);let _0x2949d9;const _0x517e2f=_0x2f5e69[_0x2ee8c3(0x8b)]['get'](_0x2ee8c3(0x9e));return _0x517e2f?.[_0x2ee8c3(0x9a)]('application/json')?_0x2949d9=await _0x2f5e69[_0x2ee8c3(0x9b)]():_0x2949d9=await _0x2f5e69['text'](),{'ok':_0x2f5e69['ok'],'status':_0x2f5e69[_0x2ee8c3(0x99)],'statusText':_0x2f5e69[_0x2ee8c3(0x8a)],'data':_0x2949d9,'headers':_0x2f5e69[_0x2ee8c3(0x8b)],'url':_0x2f5e69['url'],'text':()=>_0x2f5e69[_0x2ee8c3(0xa2)]()};}catch(_0x1199f8){_0x58040b=_0x1199f8 instanceof Error?_0x1199f8:new Error(String(_0x1199f8));if(_0x539e02===retries)break;if(shouldRetry(_0x1199f8)){console[_0x2ee8c3(0x97)](_0x2ee8c3(0x96)+(_0x539e02+0x1)+'\x20in\x20'+retryDelay+_0x2ee8c3(0x90)),await sleep(retryDelay);continue;}else break;}}throw _0x58040b||new Error(_0x2ee8c3(0x8d));}function shouldRetry(_0x464cfe){const _0x4ccc3c=a349_0x155f;if(_0x464cfe instanceof Error){if(_0x464cfe[_0x4ccc3c(0x88)]===_0x4ccc3c(0xa1))return![];if(_0x464cfe[_0x4ccc3c(0x88)]===_0x4ccc3c(0x98)&&_0x464cfe[_0x4ccc3c(0x89)][_0x4ccc3c(0x9a)](_0x4ccc3c(0x9c)))return!![];if(_0x464cfe[_0x4ccc3c(0x89)]['includes'](_0x4ccc3c(0x92)))return!![];if(_0x464cfe['message'][_0x4ccc3c(0x9a)]('ENOTFOUND'))return![];}return![];}function sleep(_0x4a793d){return new Promise(_0x1626ef=>setTimeout(_0x1626ef,_0x4a793d));}export function validateUrl(_0x38d9e4){try{return new URL(_0x38d9e4),!![];}catch{return![];}}
1
+ function a349_0x511f(){const _0x27767=['AbortError','json','application/json','39948lfSfLj','161EHzDjE','90143VFKwda','3913220jkvxCm','*\x20Request\x20failed;\x20retry\x20','46856ywXkZx','abort','402381cdjRLC','headers','includes','name','statusText','status','850768ABMTid','log','url','3jNyACT','ENOTFOUND','ms...','content-type','55XUFRyj','text','ECONNRESET','message','get','488076QasuQu','signal'];a349_0x511f=function(){return _0x27767;};return a349_0x511f();}function a349_0x30a9(_0x40ead7,_0x105e54){_0x40ead7=_0x40ead7-0x90;const _0x511fc3=a349_0x511f();let _0x30a9c1=_0x511fc3[_0x40ead7];return _0x30a9c1;}(function(_0x225adf,_0x5beb68){const _0x2d46fa=a349_0x30a9,_0x1010bd=_0x225adf();while(!![]){try{const _0x314ff7=-parseInt(_0x2d46fa(0x9c))/0x1+parseInt(_0x2d46fa(0x95))/0x2+-parseInt(_0x2d46fa(0xaa))/0x3*(-parseInt(_0x2d46fa(0xa7))/0x4)+parseInt(_0x2d46fa(0x90))/0x5*(parseInt(_0x2d46fa(0x9a))/0x6)+-parseInt(_0x2d46fa(0x9b))/0x7*(-parseInt(_0x2d46fa(0x9f))/0x8)+-parseInt(_0x2d46fa(0xa1))/0x9+-parseInt(_0x2d46fa(0x9d))/0xa;if(_0x314ff7===_0x5beb68)break;else _0x1010bd['push'](_0x1010bd['shift']());}catch(_0xd38240){_0x1010bd['push'](_0x1010bd['shift']());}}}(a349_0x511f,0x21d09));export async function httpRequest(_0x3c9401,_0x38a00e={}){const _0x509db7=a349_0x30a9,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x38a00e;let _0x4f6875=null;for(let _0x37a5d3=0x0;_0x37a5d3<=retries;_0x37a5d3++){try{const _0x3687c0=new AbortController(),_0x53b110=setTimeout(()=>_0x3687c0[_0x509db7(0xa0)](),timeout),_0x1a51a7=await fetch(_0x3c9401,{'headers':headers,'signal':_0x3687c0[_0x509db7(0x96)]});clearTimeout(_0x53b110);let _0x1669ab;const _0x3c90b3=_0x1a51a7[_0x509db7(0xa2)][_0x509db7(0x94)](_0x509db7(0xad));return _0x3c90b3?.['includes'](_0x509db7(0x99))?_0x1669ab=await _0x1a51a7[_0x509db7(0x98)]():_0x1669ab=await _0x1a51a7[_0x509db7(0x91)](),{'ok':_0x1a51a7['ok'],'status':_0x1a51a7[_0x509db7(0xa6)],'statusText':_0x1a51a7[_0x509db7(0xa5)],'data':_0x1669ab,'headers':_0x1a51a7['headers'],'url':_0x1a51a7[_0x509db7(0xa9)],'text':()=>_0x1a51a7[_0x509db7(0x91)]()};}catch(_0x136b24){_0x4f6875=_0x136b24 instanceof Error?_0x136b24:new Error(String(_0x136b24));if(_0x37a5d3===retries)break;if(shouldRetry(_0x136b24)){console[_0x509db7(0xa8)](_0x509db7(0x9e)+(_0x37a5d3+0x1)+'\x20in\x20'+retryDelay+_0x509db7(0xac)),await sleep(retryDelay);continue;}else break;}}throw _0x4f6875||new Error('Request\x20failed');}function shouldRetry(_0x433c01){const _0x39f996=a349_0x30a9;if(_0x433c01 instanceof Error){if(_0x433c01[_0x39f996(0xa4)]===_0x39f996(0x97))return![];if(_0x433c01['name']==='TypeError'&&_0x433c01[_0x39f996(0x93)][_0x39f996(0xa3)]('fetch'))return!![];if(_0x433c01[_0x39f996(0x93)]['includes'](_0x39f996(0x92)))return!![];if(_0x433c01[_0x39f996(0x93)]['includes'](_0x39f996(0xab)))return![];}return![];}function sleep(_0x2e2a89){return new Promise(_0x53b694=>setTimeout(_0x53b694,_0x2e2a89));}export function validateUrl(_0x4be5d6){try{return new URL(_0x4be5d6),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a350_0x4eaf(){const _0x4dba1a=['nonInteractive','setRawMode','7vkbOKS','119754LkXHWh','506748QMUxcn','1570986XCfrAY','418580CePJth','stdin','isRaw','801872hiITdQ','3130808lDKdvU','82SXCDLv','18159MUurWf','isTTY','true'];a350_0x4eaf=function(){return _0x4dba1a;};return a350_0x4eaf();}(function(_0x153c58,_0x14a3a6){const _0x7d2503=a350_0x3c27,_0x1dfdc5=_0x153c58();while(!![]){try{const _0x5142c3=parseInt(_0x7d2503(0x1d8))/0x1+parseInt(_0x7d2503(0x1d1))/0x2*(parseInt(_0x7d2503(0x1d2))/0x3)+-parseInt(_0x7d2503(0x1cf))/0x4+-parseInt(_0x7d2503(0x1cc))/0x5+-parseInt(_0x7d2503(0x1d9))/0x6+-parseInt(_0x7d2503(0x1d7))/0x7*(-parseInt(_0x7d2503(0x1d0))/0x8)+-parseInt(_0x7d2503(0x1cb))/0x9;if(_0x5142c3===_0x14a3a6)break;else _0x1dfdc5['push'](_0x1dfdc5['shift']());}catch(_0x3c56e3){_0x1dfdc5['push'](_0x1dfdc5['shift']());}}}(a350_0x4eaf,0x34c12));function env(_0x47086b){return process.env[`RABETBASE_${_0x47086b}`]||process.env[`LOVRABET_${_0x47086b}`]||undefined;}export function isNonInteractive(_0x1942e6){const _0x4a1ca5=a350_0x3c27;return!!(_0x1942e6[_0x4a1ca5(0x1d5)]||_0x1942e6['ci']||env('CI')==='true'||process.env.CI===_0x4a1ca5(0x1d4)||!process['stdout'][_0x4a1ca5(0x1d3)]||!isStdinRawModeSupported());}function a350_0x3c27(_0x265fc1,_0x485557){_0x265fc1=_0x265fc1-0x1cb;const _0x4eaf02=a350_0x4eaf();let _0x3c2751=_0x4eaf02[_0x265fc1];return _0x3c2751;}function isStdinRawModeSupported(){const _0x5911e1=a350_0x3c27;if(!process[_0x5911e1(0x1cd)][_0x5911e1(0x1d3)])return![];try{const _0x5eb688=process[_0x5911e1(0x1cd)][_0x5911e1(0x1ce)];return process['stdin'][_0x5911e1(0x1d6)](!![]),process['stdin'][_0x5911e1(0x1d6)](_0x5eb688??![]),!![];}catch{return![];}}
1
+ function a350_0x40c2(){const _0x5bc7f5=['4422481DxiQve','setRawMode','stdin','3047260ezlmnG','8908515AIcdwZ','isTTY','11706850VAoenk','20QQKTfN','true','1115728LsJaTV','stdout','isRaw','1173596zjOOAL','nonInteractive','6yHPuTI','1012430DzrVYj','3hcdoiC'];a350_0x40c2=function(){return _0x5bc7f5;};return a350_0x40c2();}(function(_0x406928,_0x4feb4){const _0x3a945a=a350_0x4585,_0x375459=_0x406928();while(!![]){try{const _0x2aac81=parseInt(_0x3a945a(0x69))/0x1+-parseInt(_0x3a945a(0x6e))/0x2*(-parseInt(_0x3a945a(0x6a))/0x3)+parseInt(_0x3a945a(0x66))/0x4*(parseInt(_0x3a945a(0x72))/0x5)+-parseInt(_0x3a945a(0x68))/0x6*(parseInt(_0x3a945a(0x6b))/0x7)+-parseInt(_0x3a945a(0x74))/0x8+-parseInt(_0x3a945a(0x6f))/0x9+-parseInt(_0x3a945a(0x71))/0xa;if(_0x2aac81===_0x4feb4)break;else _0x375459['push'](_0x375459['shift']());}catch(_0x4082f5){_0x375459['push'](_0x375459['shift']());}}}(a350_0x40c2,0xbde9f));function env(_0x3ead9d){return process.env[`RABETBASE_${_0x3ead9d}`]||process.env[`LOVRABET_${_0x3ead9d}`]||undefined;}function a350_0x4585(_0x2d5bc1,_0x11909a){_0x2d5bc1=_0x2d5bc1-0x65;const _0x40c2df=a350_0x40c2();let _0x458590=_0x40c2df[_0x2d5bc1];return _0x458590;}export function isNonInteractive(_0x591e48){const _0x3b4269=a350_0x4585;return!!(_0x591e48[_0x3b4269(0x67)]||_0x591e48['ci']||env('CI')==='true'||process.env.CI===_0x3b4269(0x73)||!process[_0x3b4269(0x75)][_0x3b4269(0x70)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x47913b=a350_0x4585;if(!process[_0x47913b(0x6d)]['isTTY'])return![];try{const _0x313f7b=process[_0x47913b(0x6d)][_0x47913b(0x65)];return process[_0x47913b(0x6d)][_0x47913b(0x6c)](!![]),process[_0x47913b(0x6d)][_0x47913b(0x6c)](_0x313f7b??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a351_0x59a426=a351_0x550c;function a351_0x34a5(){const _0x20691f=['filter','2145290pbBwJw','41484OoAokf','dirname','green','3892kZaIZT','initWinstonLogger','5jPsSKu','utf8','807112wHevZu','setLogPath','parse','duration','File','details','errors','Failed:\x20','addColors','trim','450MSVyHe','transports','Completed:\x20','logTask','171783xFMIWb','4JajTZo','98725NvZdXM','clear','currentRawCommand','message','info','printf','readLogs','winstonLogger','writeFileSync','createLogger','logFilePath','existsSync','success','mkdirSync','Starting:\x20','.lovrabet.log','join','map','unknown','level','3rkopru','format','now','88HgDVMR','getWinstonInstance','warn','yellow','timestamp','error','385164DiFlJA','log','stringify'];a351_0x34a5=function(){return _0x20691f;};return a351_0x34a5();}(function(_0x338e46,_0x4b1ec8){const _0x1059b5=a351_0x550c,_0x72d011=_0x338e46();while(!![]){try{const _0x54f133=parseInt(_0x1059b5(0x1de))/0x1*(-parseInt(_0x1059b5(0x1cb))/0x2)+-parseInt(_0x1059b5(0x1ba))/0x3*(parseInt(_0x1059b5(0x1cf))/0x4)+-parseInt(_0x1059b5(0x1cd))/0x5*(-parseInt(_0x1059b5(0x1c8))/0x6)+parseInt(_0x1059b5(0x1c7))/0x7+parseInt(_0x1059b5(0x1bd))/0x8*(-parseInt(_0x1059b5(0x1dd))/0x9)+parseInt(_0x1059b5(0x1d9))/0xa*(parseInt(_0x1059b5(0x1df))/0xb)+-parseInt(_0x1059b5(0x1c3))/0xc;if(_0x54f133===_0x4b1ec8)break;else _0x72d011['push'](_0x72d011['shift']());}catch(_0x180571){_0x72d011['push'](_0x72d011['shift']());}}}(a351_0x34a5,0x40dab));function a351_0x550c(_0x29b23d,_0x30f361){_0x29b23d=_0x29b23d-0x1b6;const _0x34a5fa=a351_0x34a5();let _0x550c5f=_0x34a5fa[_0x29b23d];return _0x550c5f;}import a351_0x43c57b from'winston';import a351_0x3788b7 from'node:fs';import a351_0x168f7e from'node:path';class Logger{[a351_0x59a426(0x1e6)];[a351_0x59a426(0x1e9)];[a351_0x59a426(0x1e1)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x2037f2){this['currentRawCommand']=_0x2037f2;}[a351_0x59a426(0x1cc)](){const _0x2bbe4d=a351_0x59a426,_0xffa49b=a351_0x168f7e[_0x2bbe4d(0x1c9)](this[_0x2bbe4d(0x1e9)]);!a351_0x3788b7[_0x2bbe4d(0x1ea)](_0xffa49b)&&a351_0x3788b7[_0x2bbe4d(0x1ec)](_0xffa49b,{'recursive':!![]});const _0x654537=a351_0x43c57b['format']['combine'](a351_0x43c57b[_0x2bbe4d(0x1bb)][_0x2bbe4d(0x1c1)](),a351_0x43c57b[_0x2bbe4d(0x1bb)][_0x2bbe4d(0x1d5)]({'stack':!![]}),a351_0x43c57b[_0x2bbe4d(0x1bb)][_0x2bbe4d(0x1e4)](_0x34c2c3=>{const _0x18d775=_0x2bbe4d,_0x19bb69={'timestamp':_0x34c2c3[_0x18d775(0x1c1)]||new Date()['toISOString'](),'level':_0x34c2c3[_0x18d775(0x1b9)]||_0x18d775(0x1e3),'command':_0x34c2c3['command']||_0x18d775(0x1b8),'rawCommand':_0x34c2c3['rawCommand']||this['currentRawCommand']||undefined,'message':_0x34c2c3[_0x18d775(0x1e2)]||'','duration':_0x34c2c3[_0x18d775(0x1d2)]||undefined,'details':_0x34c2c3[_0x18d775(0x1d4)]||undefined};return JSON[_0x18d775(0x1c5)](_0x19bb69);}));this['winstonLogger']=a351_0x43c57b[_0x2bbe4d(0x1e8)]({'level':_0x2bbe4d(0x1e3),'format':_0x654537,'transports':[new a351_0x43c57b[(_0x2bbe4d(0x1da))][(_0x2bbe4d(0x1d3))]({'filename':this[_0x2bbe4d(0x1e9)],'level':_0x2bbe4d(0x1e3)})],'silent':![]}),a351_0x43c57b[_0x2bbe4d(0x1d7)]({'success':_0x2bbe4d(0x1ca),'error':'red','warn':_0x2bbe4d(0x1c0),'info':'blue'});}[a351_0x59a426(0x1d0)](_0x33d4f8){const _0x30a3e1=a351_0x59a426;this[_0x30a3e1(0x1e9)]=a351_0x168f7e[_0x30a3e1(0x1b6)](_0x33d4f8,_0x30a3e1(0x1ee)),this[_0x30a3e1(0x1e6)]&&this['winstonLogger'][_0x30a3e1(0x1e0)](),this[_0x30a3e1(0x1cc)]();}['info'](_0x65d6b0,_0x28049b,_0x1e08b0){const _0x1c0144=a351_0x59a426;if(!this[_0x1c0144(0x1e9)]||!this[_0x1c0144(0x1e6)])return;this[_0x1c0144(0x1e6)][_0x1c0144(0x1e3)](_0x28049b,{'command':_0x65d6b0,'details':_0x1e08b0});}[a351_0x59a426(0x1eb)](_0x46a158,_0x1b2c48,_0x49eb6b,_0x5030b5){const _0x101884=a351_0x59a426;if(!this[_0x101884(0x1e9)]||!this[_0x101884(0x1e6)])return;this[_0x101884(0x1e6)][_0x101884(0x1c4)](_0x101884(0x1e3),_0x1b2c48,{'level':_0x101884(0x1eb),'command':_0x46a158,'duration':_0x49eb6b,'details':_0x5030b5});}[a351_0x59a426(0x1c2)](_0x4f7112,_0x44814c,_0x5ee6d2){const _0x3dcab5=a351_0x59a426;if(!this[_0x3dcab5(0x1e9)]||!this[_0x3dcab5(0x1e6)])return;this[_0x3dcab5(0x1e6)][_0x3dcab5(0x1c2)](_0x44814c,{'command':_0x4f7112,'details':_0x5ee6d2});}[a351_0x59a426(0x1bf)](_0x261669,_0x4864e0,_0x1a0efb){const _0x5c5f32=a351_0x59a426;if(!this[_0x5c5f32(0x1e9)]||!this[_0x5c5f32(0x1e6)])return;this[_0x5c5f32(0x1e6)]['warn'](_0x4864e0,{'command':_0x261669,'details':_0x1a0efb});}async[a351_0x59a426(0x1dc)](_0x1c76bd,_0x539b5d,_0x18bb12){const _0xed396e=a351_0x59a426,_0x3bd747=Date[_0xed396e(0x1bc)]();this[_0xed396e(0x1e3)](_0x1c76bd,_0xed396e(0x1ed)+_0x539b5d);try{const _0x3d4ab8=await _0x18bb12(),_0x44d73d=Date[_0xed396e(0x1bc)]()-_0x3bd747;return this['success'](_0x1c76bd,_0xed396e(0x1db)+_0x539b5d,_0x44d73d),_0x3d4ab8;}catch(_0x2b1656){const _0x2a413f=Date[_0xed396e(0x1bc)]()-_0x3bd747;this[_0xed396e(0x1c2)](_0x1c76bd,_0xed396e(0x1d6)+_0x539b5d,{'error':_0x2b1656 instanceof Error?_0x2b1656[_0xed396e(0x1e2)]:String(_0x2b1656),'duration':_0x2a413f});throw _0x2b1656;}}[a351_0x59a426(0x1e5)](){const _0x5ea779=a351_0x59a426;try{if(!a351_0x3788b7[_0x5ea779(0x1ea)](this[_0x5ea779(0x1e9)]))return[];const _0x5d13d6=a351_0x3788b7['readFileSync'](this[_0x5ea779(0x1e9)],_0x5ea779(0x1ce));return _0x5d13d6['split']('\x0a')[_0x5ea779(0x1c6)](_0x36f106=>_0x36f106[_0x5ea779(0x1d8)]())[_0x5ea779(0x1b7)](_0x43df46=>JSON[_0x5ea779(0x1d1)](_0x43df46));}catch(_0x5d05c0){return console[_0x5ea779(0x1bf)]('Failed\x20to\x20read\x20logs:',_0x5d05c0),[];}}['clearLogs'](){const _0x28db8d=a351_0x59a426;try{a351_0x3788b7[_0x28db8d(0x1ea)](this[_0x28db8d(0x1e9)])&&a351_0x3788b7[_0x28db8d(0x1e7)](this['logFilePath'],'',_0x28db8d(0x1ce));}catch(_0x5b2120){console[_0x28db8d(0x1bf)]('Failed\x20to\x20clear\x20logs:',_0x5b2120);}}[a351_0x59a426(0x1be)](){const _0x9b2230=a351_0x59a426;return this[_0x9b2230(0x1e6)];}}export const logger=new Logger();
1
+ const a351_0x87c33d=a351_0x760c;(function(_0x290528,_0x3c9029){const _0x271c1f=a351_0x760c,_0x13d5ac=_0x290528();while(!![]){try{const _0x28b2cd=parseInt(_0x271c1f(0x1de))/0x1*(-parseInt(_0x271c1f(0x1e4))/0x2)+-parseInt(_0x271c1f(0x1e0))/0x3*(parseInt(_0x271c1f(0x1ea))/0x4)+-parseInt(_0x271c1f(0x1e2))/0x5+parseInt(_0x271c1f(0x1eb))/0x6*(-parseInt(_0x271c1f(0x1d4))/0x7)+-parseInt(_0x271c1f(0x1c2))/0x8*(-parseInt(_0x271c1f(0x1ee))/0x9)+-parseInt(_0x271c1f(0x1c4))/0xa*(parseInt(_0x271c1f(0x1d3))/0xb)+parseInt(_0x271c1f(0x1f7))/0xc*(parseInt(_0x271c1f(0x1db))/0xd);if(_0x28b2cd===_0x3c9029)break;else _0x13d5ac['push'](_0x13d5ac['shift']());}catch(_0x6c2862){_0x13d5ac['push'](_0x13d5ac['shift']());}}}(a351_0x5486,0x6122e));import a351_0x2419f8 from'winston';function a351_0x760c(_0x445ce6,_0x323493){_0x445ce6=_0x445ce6-0x1bf;const _0x5486ee=a351_0x5486();let _0x760c1e=_0x5486ee[_0x445ce6];return _0x760c1e;}import a351_0x50f29e from'node:fs';import a351_0x571b85 from'node:path';function a351_0x5486(){const _0x245f80=['684639VMWAPi','writeFileSync','now','clearLogs','printf','.lovrabet.log','readLogs','winstonLogger','rawCommand','317412hVmvxc','logFilePath','readFileSync','addColors','Failed\x20to\x20read\x20logs:','Failed:\x20','Starting:\x20','32JXPGIQ','warn','8240yrgJAa','map','error','combine','filter','green','setRawCommand','existsSync','details','createLogger','info','parse','format','success','clear','4411XXEbko','14ZPHHSQ','dirname','errors','Failed\x20to\x20clear\x20logs:','split','initWinstonLogger','yellow','1014jcPmvW','join','timestamp','205PNBSMW','Completed:\x20','588tNzXOs','setLogPath','2371165XDxoOw','unknown','2130YSgwQZ','log','red','currentRawCommand','message','toISOString','11412RMbgqJ','1162266LATihC','duration','trim'];a351_0x5486=function(){return _0x245f80;};return a351_0x5486();}class Logger{[a351_0x87c33d(0x1f5)];['logFilePath'];[a351_0x87c33d(0x1e7)]='';constructor(){const _0x286be3=a351_0x87c33d;this[_0x286be3(0x1f8)]='';}[a351_0x87c33d(0x1ca)](_0x574867){const _0x42d68b=a351_0x87c33d;this[_0x42d68b(0x1e7)]=_0x574867;}[a351_0x87c33d(0x1d9)](){const _0x399dc1=a351_0x87c33d,_0x1b8682=a351_0x571b85[_0x399dc1(0x1d5)](this[_0x399dc1(0x1f8)]);!a351_0x50f29e['existsSync'](_0x1b8682)&&a351_0x50f29e['mkdirSync'](_0x1b8682,{'recursive':!![]});const _0x5a3bf6=a351_0x2419f8[_0x399dc1(0x1d0)][_0x399dc1(0x1c7)](a351_0x2419f8['format'][_0x399dc1(0x1dd)](),a351_0x2419f8[_0x399dc1(0x1d0)][_0x399dc1(0x1d6)]({'stack':!![]}),a351_0x2419f8[_0x399dc1(0x1d0)][_0x399dc1(0x1f2)](_0x274de3=>{const _0x24dca1=_0x399dc1,_0x2a7d14={'timestamp':_0x274de3[_0x24dca1(0x1dd)]||new Date()[_0x24dca1(0x1e9)](),'level':_0x274de3['level']||_0x24dca1(0x1ce),'command':_0x274de3['command']||_0x24dca1(0x1e3),'rawCommand':_0x274de3[_0x24dca1(0x1f6)]||this[_0x24dca1(0x1e7)]||undefined,'message':_0x274de3[_0x24dca1(0x1e8)]||'','duration':_0x274de3[_0x24dca1(0x1ec)]||undefined,'details':_0x274de3[_0x24dca1(0x1cc)]||undefined};return JSON['stringify'](_0x2a7d14);}));this[_0x399dc1(0x1f5)]=a351_0x2419f8[_0x399dc1(0x1cd)]({'level':'info','format':_0x5a3bf6,'transports':[new a351_0x2419f8['transports']['File']({'filename':this[_0x399dc1(0x1f8)],'level':'info'})],'silent':![]}),a351_0x2419f8[_0x399dc1(0x1fa)]({'success':_0x399dc1(0x1c9),'error':_0x399dc1(0x1e6),'warn':_0x399dc1(0x1da),'info':'blue'});}[a351_0x87c33d(0x1e1)](_0x34129b){const _0x47fb73=a351_0x87c33d;this[_0x47fb73(0x1f8)]=a351_0x571b85[_0x47fb73(0x1dc)](_0x34129b,_0x47fb73(0x1f3)),this[_0x47fb73(0x1f5)]&&this[_0x47fb73(0x1f5)][_0x47fb73(0x1d2)](),this[_0x47fb73(0x1d9)]();}[a351_0x87c33d(0x1ce)](_0x2db493,_0x1a6e19,_0x4598bb){const _0x4739b4=a351_0x87c33d;if(!this[_0x4739b4(0x1f8)]||!this['winstonLogger'])return;this['winstonLogger'][_0x4739b4(0x1ce)](_0x1a6e19,{'command':_0x2db493,'details':_0x4598bb});}[a351_0x87c33d(0x1d1)](_0xb9bf93,_0x28abfb,_0x360efa,_0x225e8d){const _0x4b1d48=a351_0x87c33d;if(!this[_0x4b1d48(0x1f8)]||!this[_0x4b1d48(0x1f5)])return;this[_0x4b1d48(0x1f5)][_0x4b1d48(0x1e5)](_0x4b1d48(0x1ce),_0x28abfb,{'level':_0x4b1d48(0x1d1),'command':_0xb9bf93,'duration':_0x360efa,'details':_0x225e8d});}[a351_0x87c33d(0x1c6)](_0x1bcd3a,_0x22dbe4,_0x464247){const _0x220514=a351_0x87c33d;if(!this['logFilePath']||!this[_0x220514(0x1f5)])return;this[_0x220514(0x1f5)][_0x220514(0x1c6)](_0x22dbe4,{'command':_0x1bcd3a,'details':_0x464247});}[a351_0x87c33d(0x1c3)](_0x2e9bbb,_0x320576,_0x2a9470){const _0x175220=a351_0x87c33d;if(!this[_0x175220(0x1f8)]||!this[_0x175220(0x1f5)])return;this[_0x175220(0x1f5)][_0x175220(0x1c3)](_0x320576,{'command':_0x2e9bbb,'details':_0x2a9470});}async['logTask'](_0xd8daaa,_0x27b5ec,_0x553542){const _0x1fb191=a351_0x87c33d,_0x1ff747=Date[_0x1fb191(0x1f0)]();this[_0x1fb191(0x1ce)](_0xd8daaa,_0x1fb191(0x1c1)+_0x27b5ec);try{const _0xe99acf=await _0x553542(),_0x24e165=Date[_0x1fb191(0x1f0)]()-_0x1ff747;return this[_0x1fb191(0x1d1)](_0xd8daaa,_0x1fb191(0x1df)+_0x27b5ec,_0x24e165),_0xe99acf;}catch(_0x276fe1){const _0x5b3a6c=Date[_0x1fb191(0x1f0)]()-_0x1ff747;this[_0x1fb191(0x1c6)](_0xd8daaa,_0x1fb191(0x1c0)+_0x27b5ec,{'error':_0x276fe1 instanceof Error?_0x276fe1['message']:String(_0x276fe1),'duration':_0x5b3a6c});throw _0x276fe1;}}[a351_0x87c33d(0x1f4)](){const _0x13c307=a351_0x87c33d;try{if(!a351_0x50f29e[_0x13c307(0x1cb)](this['logFilePath']))return[];const _0xa2c269=a351_0x50f29e[_0x13c307(0x1f9)](this[_0x13c307(0x1f8)],'utf8');return _0xa2c269[_0x13c307(0x1d8)]('\x0a')[_0x13c307(0x1c8)](_0x3a1573=>_0x3a1573[_0x13c307(0x1ed)]())[_0x13c307(0x1c5)](_0xb04883=>JSON[_0x13c307(0x1cf)](_0xb04883));}catch(_0x1271a7){return console[_0x13c307(0x1c3)](_0x13c307(0x1bf),_0x1271a7),[];}}[a351_0x87c33d(0x1f1)](){const _0x5e5990=a351_0x87c33d;try{a351_0x50f29e[_0x5e5990(0x1cb)](this['logFilePath'])&&a351_0x50f29e[_0x5e5990(0x1ef)](this['logFilePath'],'','utf8');}catch(_0x3c2d1c){console[_0x5e5990(0x1c3)](_0x5e5990(0x1d7),_0x3c2d1c);}}['getWinstonInstance'](){const _0x2ff32f=a351_0x87c33d;return this[_0x2ff32f(0x1f5)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3c8fce,_0x5ab9ce){const _0x2bcfb6=a352_0x113b,_0xdb0c71=_0x3c8fce();while(!![]){try{const _0x295cd9=-parseInt(_0x2bcfb6(0x6f))/0x1+-parseInt(_0x2bcfb6(0x72))/0x2+parseInt(_0x2bcfb6(0x7b))/0x3*(-parseInt(_0x2bcfb6(0x7a))/0x4)+-parseInt(_0x2bcfb6(0x70))/0x5*(parseInt(_0x2bcfb6(0x78))/0x6)+parseInt(_0x2bcfb6(0x79))/0x7+-parseInt(_0x2bcfb6(0x71))/0x8+parseInt(_0x2bcfb6(0x76))/0x9;if(_0x295cd9===_0x5ab9ce)break;else _0xdb0c71['push'](_0xdb0c71['shift']());}catch(_0x1f1da6){_0xdb0c71['push'](_0xdb0c71['shift']());}}}(a352_0x342f,0xe78c1));function a352_0x113b(_0x583474,_0x3339b2){_0x583474=_0x583474-0x6d;const _0x342f8c=a352_0x342f();let _0x113be6=_0x342f8c[_0x583474];return _0x113be6;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1b40a1){const _0x1d4b7a=a352_0x113b;if(!_0x1b40a1)return undefined;let _0x5cb55e;try{_0x5cb55e=JSON[_0x1d4b7a(0x6d)](_0x1b40a1);}catch{throw CliErrors['validation'](_0x1d4b7a(0x73)+_0x1b40a1);}if(!_0x5cb55e||typeof _0x5cb55e!=='object'||Array[_0x1d4b7a(0x6e)](_0x5cb55e))throw CliErrors[_0x1d4b7a(0x75)](_0x1d4b7a(0x77),_0x1d4b7a(0x74));return _0x5cb55e;}function a352_0x342f(){const _0x59d941=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation','26445069cfCzsP','--params\x20must\x20be\x20a\x20JSON\x20object','1812kOfdUH','10421222QgeNnm','495364allOIH','21TmjCPY','parse','isArray','62544qjjcAW','16240WxPIiW','6387680rqLsso','1539766HGzRvO','Invalid\x20JSON\x20for\x20--params:\x20'];a352_0x342f=function(){return _0x59d941;};return a352_0x342f();}
1
+ function a352_0x659d(_0x39d9e7,_0x2ff2d5){_0x39d9e7=_0x39d9e7-0xb1;const _0x43227e=a352_0x4322();let _0x659d9c=_0x43227e[_0x39d9e7];return _0x659d9c;}(function(_0x5a341d,_0x47cebc){const _0x19e0c1=a352_0x659d,_0x56f51a=_0x5a341d();while(!![]){try{const _0x3238db=parseInt(_0x19e0c1(0xbb))/0x1*(parseInt(_0x19e0c1(0xb8))/0x2)+parseInt(_0x19e0c1(0xb3))/0x3+parseInt(_0x19e0c1(0xbd))/0x4+parseInt(_0x19e0c1(0xb6))/0x5+parseInt(_0x19e0c1(0xb4))/0x6*(parseInt(_0x19e0c1(0xb5))/0x7)+parseInt(_0x19e0c1(0xb2))/0x8*(parseInt(_0x19e0c1(0xb7))/0x9)+-parseInt(_0x19e0c1(0xb1))/0xa;if(_0x3238db===_0x47cebc)break;else _0x56f51a['push'](_0x56f51a['shift']());}catch(_0x57bb85){_0x56f51a['push'](_0x56f51a['shift']());}}}(a352_0x4322,0xb8ff0));function a352_0x4322(){const _0x38d6f9=['44026780tcXcYf','8136248iqkUrX','225771UfDgDc','102bVPbuD','229481rvOhRx','4552565dsrpnj','9RyLUJX','6eJQGzS','isArray','object','433859VRgNId','validation','5194932vGJfaF'];a352_0x4322=function(){return _0x38d6f9;};return a352_0x4322();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x446522){const _0x1c10d1=a352_0x659d;if(!_0x446522)return undefined;let _0x3ceb2d;try{_0x3ceb2d=JSON['parse'](_0x446522);}catch{throw CliErrors[_0x1c10d1(0xbc)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x446522);}if(!_0x3ceb2d||typeof _0x3ceb2d!==_0x1c10d1(0xba)||Array[_0x1c10d1(0xb9)](_0x3ceb2d))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x3ceb2d;}
@@ -1 +1 @@
1
- function a353_0x1907(_0x5c8792,_0x13d76b){_0x5c8792=_0x5c8792-0x115;const _0x4d3aed=a353_0x4d3a();let _0x1907a2=_0x4d3aed[_0x5c8792];return _0x1907a2;}const a353_0x44f7dd=a353_0x1907;function a353_0x4d3a(){const _0x3e40cc=['1947155NhsTtK','10xZCbYn','9ZlCsjZ','5737670FfsRMa','win32','1602606TICTmM','323055oCZYQM','32330ZRxfJT','1168yLVQyi','1358848KpXsUt','957pRXjsU','platform'];a353_0x4d3a=function(){return _0x3e40cc;};return a353_0x4d3a();}(function(_0x1cf11a,_0xbe0eea){const _0x4da66a=a353_0x1907,_0x32100a=_0x1cf11a();while(!![]){try{const _0x5ca3f8=parseInt(_0x4da66a(0x11a))/0x1*(-parseInt(_0x4da66a(0x120))/0x2)+-parseInt(_0x4da66a(0x117))/0x3*(-parseInt(_0x4da66a(0x115))/0x4)+parseInt(_0x4da66a(0x11f))/0x5+-parseInt(_0x4da66a(0x11e))/0x6+-parseInt(_0x4da66a(0x119))/0x7+parseInt(_0x4da66a(0x116))/0x8+parseInt(_0x4da66a(0x11b))/0x9*(parseInt(_0x4da66a(0x11c))/0xa);if(_0x5ca3f8===_0xbe0eea)break;else _0x32100a['push'](_0x32100a['shift']());}catch(_0x51c620){_0x32100a['push'](_0x32100a['shift']());}}}(a353_0x4d3a,0x2f7a2));export const isWindows=process[a353_0x44f7dd(0x118)]===a353_0x44f7dd(0x11d);export function resolveNpmBin(_0x51439f){return isWindows?_0x51439f+'.cmd':_0x51439f;}
1
+ function a353_0x4742(_0x42387a,_0x163f40){_0x42387a=_0x42387a-0xc7;const _0x475879=a353_0x4758();let _0x4742be=_0x475879[_0x42387a];return _0x4742be;}function a353_0x4758(){const _0x5e6665=['15917mDGhDD','952074iVMlZM','2455352pNslGi','5930ByHNbl','platform','win32','4sdnUBk','2451330SKCDRC','.cmd','473500vWvHDT','344895widDYI','7mgjgof','4clArtL','784695thSsYT'];a353_0x4758=function(){return _0x5e6665;};return a353_0x4758();}const a353_0x20c8a9=a353_0x4742;(function(_0x6f6f0b,_0x4c93cd){const _0x527def=a353_0x4742,_0x3cad4=_0x6f6f0b();while(!![]){try{const _0x1264c6=-parseInt(_0x527def(0xca))/0x1+parseInt(_0x527def(0xcd))/0x2*(-parseInt(_0x527def(0xcb))/0x3)+-parseInt(_0x527def(0xc7))/0x4*(-parseInt(_0x527def(0xce))/0x5)+parseInt(_0x527def(0xc8))/0x6+-parseInt(_0x527def(0xcc))/0x7*(parseInt(_0x527def(0xd1))/0x8)+-parseInt(_0x527def(0xd0))/0x9+-parseInt(_0x527def(0xd2))/0xa*(-parseInt(_0x527def(0xcf))/0xb);if(_0x1264c6===_0x4c93cd)break;else _0x3cad4['push'](_0x3cad4['shift']());}catch(_0x75457a){_0x3cad4['push'](_0x3cad4['shift']());}}}(a353_0x4758,0x4b0e6));export const isWindows=process[a353_0x20c8a9(0xd3)]===a353_0x20c8a9(0xd4);export function resolveNpmBin(_0x5aace9){const _0x153191=a353_0x20c8a9;return isWindows?_0x5aace9+_0x153191(0xc9):_0x5aace9;}