@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.4-beta.5

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 (388) hide show
  1. package/README.md +8 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.d.ts +2 -0
  27. package/lib/commands/app/detail.js +1 -0
  28. package/lib/commands/app/index.js +1 -1
  29. package/lib/commands/app/list.js +1 -1
  30. package/lib/commands/app/members-list.js +1 -1
  31. package/lib/commands/app/remote-directory.js +1 -1
  32. package/lib/commands/app/shared.js +1 -1
  33. package/lib/commands/app-config/delete.js +1 -1
  34. package/lib/commands/app-config/get.js +1 -1
  35. package/lib/commands/app-config/index.js +1 -1
  36. package/lib/commands/app-config/list.js +1 -1
  37. package/lib/commands/app-config/set.js +1 -1
  38. package/lib/commands/app-config/shared.js +1 -1
  39. package/lib/commands/auth/index.js +1 -1
  40. package/lib/commands/bff/create.js +1 -1
  41. package/lib/commands/bff/delete.js +1 -1
  42. package/lib/commands/bff/detail.js +1 -1
  43. package/lib/commands/bff/index.js +1 -1
  44. package/lib/commands/bff/list.js +1 -1
  45. package/lib/commands/bff/logs.js +1 -1
  46. package/lib/commands/bff/pull.js +1 -1
  47. package/lib/commands/bff/push.js +1 -1
  48. package/lib/commands/bff/status.js +1 -1
  49. package/lib/commands/cli-skill/index.js +1 -1
  50. package/lib/commands/cli-update.js +1 -1
  51. package/lib/commands/codegen/index.js +1 -1
  52. package/lib/commands/codegen/sdk.js +1 -1
  53. package/lib/commands/codegen/sql.js +1 -1
  54. package/lib/commands/common/app-registry.js +1 -1
  55. package/lib/commands/common/app-selector.js +1 -1
  56. package/lib/commands/common/async-task.js +1 -1
  57. package/lib/commands/common/dry-run.js +1 -1
  58. package/lib/commands/common/flags.js +1 -1
  59. package/lib/commands/common/local-file.js +1 -1
  60. package/lib/commands/common/validate.js +1 -1
  61. package/lib/commands/config/delete.js +1 -1
  62. package/lib/commands/config/get.js +1 -1
  63. package/lib/commands/config/index.js +1 -1
  64. package/lib/commands/config/init.js +1 -1
  65. package/lib/commands/config/list.js +1 -1
  66. package/lib/commands/config/set.js +1 -1
  67. package/lib/commands/config/shared.js +1 -1
  68. package/lib/commands/dataset/batch-design.js +1 -1
  69. package/lib/commands/dataset/business-group-update.js +1 -1
  70. package/lib/commands/dataset/business-groups.js +1 -1
  71. package/lib/commands/dataset/capability.js +1 -1
  72. package/lib/commands/dataset/cross-relation-create.js +1 -1
  73. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  74. package/lib/commands/dataset/cross-relation-list.js +1 -1
  75. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  76. package/lib/commands/dataset/cross-relation-update.js +1 -1
  77. package/lib/commands/dataset/delete.js +1 -1
  78. package/lib/commands/dataset/detail.js +1 -1
  79. package/lib/commands/dataset/extend-update.js +1 -1
  80. package/lib/commands/dataset/field-restore.js +1 -1
  81. package/lib/commands/dataset/field-update.js +1 -1
  82. package/lib/commands/dataset/generate.js +1 -1
  83. package/lib/commands/dataset/index.js +1 -1
  84. package/lib/commands/dataset/list.js +1 -1
  85. package/lib/commands/dataset/operations.js +1 -1
  86. package/lib/commands/dataset/relation-audit.js +1 -1
  87. package/lib/commands/dataset/relation-create.js +1 -1
  88. package/lib/commands/dataset/relation-delete.js +1 -1
  89. package/lib/commands/dataset/relation-shared.js +1 -1
  90. package/lib/commands/dataset/relation-update.js +1 -1
  91. package/lib/commands/dataset/relations.js +1 -1
  92. package/lib/commands/dataset/rename.js +1 -1
  93. package/lib/commands/dataset/restore.js +1 -1
  94. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  95. package/lib/commands/db/analysis-batching.js +1 -1
  96. package/lib/commands/db/analyze-batch-plan.js +1 -1
  97. package/lib/commands/db/analyze-cancel.js +1 -1
  98. package/lib/commands/db/analyze-start.js +1 -1
  99. package/lib/commands/db/analyze-status.js +1 -1
  100. package/lib/commands/db/create.js +1 -1
  101. package/lib/commands/db/delete.js +1 -1
  102. package/lib/commands/db/detail.js +1 -1
  103. package/lib/commands/db/diff-refresh-start.js +1 -1
  104. package/lib/commands/db/diff-refresh-status.js +1 -1
  105. package/lib/commands/db/diff.js +1 -1
  106. package/lib/commands/db/index.js +1 -1
  107. package/lib/commands/db/list.js +1 -1
  108. package/lib/commands/db/shared.js +1 -1
  109. package/lib/commands/db/table-diff-shared.js +1 -1
  110. package/lib/commands/db/tables.js +1 -1
  111. package/lib/commands/db/test.js +1 -1
  112. package/lib/commands/db/update.js +1 -1
  113. package/lib/commands/deployment/index.js +1 -1
  114. package/lib/commands/deployment/sync-all.js +1 -1
  115. package/lib/commands/deployment/sync-jobs.js +1 -1
  116. package/lib/commands/deployment/sync-status.js +1 -1
  117. package/lib/commands/doctor.js +1 -1
  118. package/lib/commands/file/index.js +1 -1
  119. package/lib/commands/flow/create.js +1 -1
  120. package/lib/commands/flow/detail.js +1 -1
  121. package/lib/commands/flow/index.js +1 -1
  122. package/lib/commands/flow/list.js +1 -1
  123. package/lib/commands/flow/publish.js +1 -1
  124. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  125. package/lib/commands/flow/runtime-role-list.js +1 -1
  126. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  127. package/lib/commands/flow/runtime-user-search.js +1 -1
  128. package/lib/commands/flow/shared.js +1 -1
  129. package/lib/commands/flow/update.js +1 -1
  130. package/lib/commands/flow/validate.js +1 -1
  131. package/lib/commands/instant-api-policy/current.js +1 -1
  132. package/lib/commands/instant-api-policy/index.js +1 -1
  133. package/lib/commands/instant-api-policy/init.js +1 -1
  134. package/lib/commands/instant-api-policy/publish.js +1 -1
  135. package/lib/commands/instant-api-policy/pull.js +1 -1
  136. package/lib/commands/instant-api-policy/revision.js +1 -1
  137. package/lib/commands/instant-api-policy/revisions.js +1 -1
  138. package/lib/commands/instant-api-policy/rollback.js +1 -1
  139. package/lib/commands/instant-api-policy/shared.js +1 -1
  140. package/lib/commands/instant-api-policy/validate.js +1 -1
  141. package/lib/commands/issue/index.js +1 -1
  142. package/lib/commands/issue/nudge.js +1 -1
  143. package/lib/commands/issue/report.js +1 -1
  144. package/lib/commands/issue/shared.js +1 -1
  145. package/lib/commands/kb/create.js +1 -1
  146. package/lib/commands/kb/delete.js +1 -1
  147. package/lib/commands/kb/detail.js +1 -1
  148. package/lib/commands/kb/index.js +1 -1
  149. package/lib/commands/kb/list.js +1 -1
  150. package/lib/commands/kb/search.js +1 -1
  151. package/lib/commands/kb/shared.js +1 -1
  152. package/lib/commands/kb/update.js +1 -1
  153. package/lib/commands/logs/index.js +1 -1
  154. package/lib/commands/menu/asset-update.js +1 -1
  155. package/lib/commands/menu/delete.js +1 -1
  156. package/lib/commands/menu/external-link-create.js +1 -1
  157. package/lib/commands/menu/external-link-update.js +1 -1
  158. package/lib/commands/menu/group-create.js +1 -1
  159. package/lib/commands/menu/group-update.js +1 -1
  160. package/lib/commands/menu/index.js +1 -1
  161. package/lib/commands/menu/list.js +1 -1
  162. package/lib/commands/menu/move.js +1 -1
  163. package/lib/commands/menu/regroup-start.js +1 -1
  164. package/lib/commands/menu/rename.js +1 -1
  165. package/lib/commands/menu/shared/compare-table.js +1 -1
  166. package/lib/commands/menu/shared/delete-plan.js +1 -1
  167. package/lib/commands/menu/shared/facts.js +1 -1
  168. package/lib/commands/menu/shared/index.js +1 -1
  169. package/lib/commands/menu/shared/inquirer.js +1 -1
  170. package/lib/commands/menu/shared/local-pages.d.ts +1 -1
  171. package/lib/commands/menu/shared/local-pages.js +1 -1
  172. package/lib/commands/menu/shared/logic.d.ts +3 -1
  173. package/lib/commands/menu/shared/logic.js +1 -1
  174. package/lib/commands/menu/shared/mutations.js +1 -1
  175. package/lib/commands/menu/shared/path.d.ts +2 -0
  176. package/lib/commands/menu/shared/path.js +1 -0
  177. package/lib/commands/menu/shared/service.d.ts +6 -1
  178. package/lib/commands/menu/shared/service.js +1 -1
  179. package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
  180. package/lib/commands/menu/shared/subapp-assets.js +1 -0
  181. package/lib/commands/menu/shared/sync-core.d.ts +2 -1
  182. package/lib/commands/menu/shared/sync-core.js +1 -1
  183. package/lib/commands/menu/shared/types.d.ts +14 -4
  184. package/lib/commands/menu/shared/update-core.js +1 -1
  185. package/lib/commands/menu/shared/valid-url.js +1 -1
  186. package/lib/commands/menu/subapp-assets-status.d.ts +2 -0
  187. package/lib/commands/menu/subapp-assets-status.js +1 -0
  188. package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
  189. package/lib/commands/menu/subapp-assets-update.js +1 -0
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.d.ts +15 -0
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/skills/builtin-skill.js +1 -1
  338. package/lib/skills/main.js +1 -1
  339. package/lib/skills/npx-skills-add.js +1 -1
  340. package/lib/skills/skill-presence.js +1 -1
  341. package/lib/telemetry/cli-command-trace.js +1 -1
  342. package/lib/telemetry/cli-help-trace.js +1 -1
  343. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  344. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  345. package/lib/telemetry/send-cli-trace-log.js +1 -1
  346. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  347. package/lib/utils/ai_config.js +1 -1
  348. package/lib/utils/apply-jq-filter.js +1 -1
  349. package/lib/utils/cdn-config.js +1 -1
  350. package/lib/utils/check-sdk-version.js +1 -1
  351. package/lib/utils/cli-version-check.js +1 -1
  352. package/lib/utils/cli-version-policy.js +1 -1
  353. package/lib/utils/config.js +1 -1
  354. package/lib/utils/entity-with-id.js +1 -1
  355. package/lib/utils/file-utils.js +1 -1
  356. package/lib/utils/guides-cdn.js +1 -1
  357. package/lib/utils/http-client.js +1 -1
  358. package/lib/utils/is-non-interactive.js +1 -1
  359. package/lib/utils/logger.js +1 -1
  360. package/lib/utils/params.js +1 -1
  361. package/lib/utils/platform.js +1 -1
  362. package/lib/utils/sleep.js +1 -1
  363. package/lib/utils/template-replacer.js +1 -1
  364. package/lib/utils/update-notice.js +1 -1
  365. package/lib/utils/version.js +1 -1
  366. package/lib/utils/with-active-cookie.js +1 -1
  367. package/lib/utils/write-cli-side-channel.js +1 -1
  368. package/package.json +1 -1
  369. package/skills/rabetbase/SKILL.md +21 -12
  370. package/skills/rabetbase/guides/backend-function.md +2 -7
  371. package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
  372. package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
  373. package/skills/rabetbase/guides/independent-deployment.md +45 -0
  374. package/skills/rabetbase/guides/troubleshooting.md +9 -1
  375. package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
  376. package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
  377. package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
  379. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
  380. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
  381. package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
  382. package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
  383. package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
  384. package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
  385. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  386. package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
  387. package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
  388. package/skills/rabetbase.manifest.json +8 -3
@@ -1 +1 @@
1
- const a326_0x36e1b5=a326_0x2a67;(function(_0x402a48,_0x8d0317){const _0x257686=a326_0x2a67,_0x5edc3a=_0x402a48();while(!![]){try{const _0x14537a=-parseInt(_0x257686(0x113))/0x1+parseInt(_0x257686(0x121))/0x2*(-parseInt(_0x257686(0x110))/0x3)+-parseInt(_0x257686(0x125))/0x4*(-parseInt(_0x257686(0x10e))/0x5)+-parseInt(_0x257686(0x12f))/0x6*(-parseInt(_0x257686(0x117))/0x7)+parseInt(_0x257686(0x11e))/0x8+parseInt(_0x257686(0x120))/0x9+-parseInt(_0x257686(0x11c))/0xa*(-parseInt(_0x257686(0x126))/0xb);if(_0x14537a===_0x8d0317)break;else _0x5edc3a['push'](_0x5edc3a['shift']());}catch(_0xc84a98){_0x5edc3a['push'](_0x5edc3a['shift']());}}}(a326_0x3acc,0x2dd46));function a326_0x2a67(_0x37d4cb,_0x374967){_0x37d4cb=_0x37d4cb-0x10d;const _0x3acc9e=a326_0x3acc();let _0x2a6757=_0x3acc9e[_0x37d4cb];return _0x2a6757;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a326_0x36e1b5(0x118),a326_0x36e1b5(0x115));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a326_0x36e1b5(0x118),a326_0x36e1b5(0x12e)),join(a326_0x36e1b5(0x12d),a326_0x36e1b5(0x12e))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x409c14,_0x3a2957){const _0x143b18=a326_0x36e1b5;if(!existsSync(_0x409c14))return{'kind':_0x143b18(0x112)};let _0x5d9fd3;try{_0x5d9fd3=JSON[_0x143b18(0x12c)](readFileSync(_0x409c14,_0x143b18(0x127)));}catch(_0x56e9a7){return{'kind':_0x143b18(0x111),'reason':_0x409c14+_0x143b18(0x129)+_0x56e9a7[_0x143b18(0x128)]};}const _0x5f05d5=_0x5d9fd3;if(typeof _0x5f05d5?.[_0x143b18(0x11f)]!==_0x143b18(0x116)||!SUPPORTED_LOCK_VERSIONS[_0x143b18(0x11a)](_0x5f05d5['version']))return{'kind':_0x143b18(0x111),'reason':_0x409c14+_0x143b18(0x131)+String(_0x5f05d5?.[_0x143b18(0x11f)])};if(!_0x5f05d5[_0x143b18(0x12e)]||typeof _0x5f05d5[_0x143b18(0x12e)]!=='object')return{'kind':_0x143b18(0x111),'reason':_0x409c14+_0x143b18(0x119)};return _0x5f05d5[_0x143b18(0x12e)][_0x3a2957]?{'kind':_0x143b18(0x123)}:{'kind':_0x143b18(0x112)};}export function resolveInstalledSkill(_0x926ba9,_0x450b2c){const _0x1512d9=a326_0x36e1b5,_0xa91e43=_0x450b2c?.[_0x1512d9(0x11d)]??homedir(),_0x424004=_0x450b2c?.[_0x1512d9(0x124)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x1512d9(0x122)](_0x4e6d90=>join(_0xa91e43,_0x4e6d90)),_0x2ae8ae=_0x450b2c?.['lockFile']??join(_0xa91e43,SKILL_LOCK_RELATIVE_PATH),_0x81de71=_0x424004[_0x1512d9(0x122)](_0x7c6a8f=>join(_0x7c6a8f,_0x926ba9,_0x1512d9(0x130))),_0x4ddf6a=_0x81de71['find'](_0x1689c3=>existsSync(_0x1689c3));if(_0x4ddf6a)return{'state':_0x1512d9(0x12a),'path':_0x4ddf6a};const _0x5eeb7a=readLockLookup(_0x2ae8ae,_0x926ba9);if(_0x5eeb7a[_0x1512d9(0x10d)]===_0x1512d9(0x111))return{'state':_0x1512d9(0x12b),'reason':_0x5eeb7a['reason']};if(_0x5eeb7a['kind']===_0x1512d9(0x123))return{'state':'unverifiable','reason':_0x2ae8ae+_0x1512d9(0x114)+_0x926ba9+_0x1512d9(0x10f)+('('+_0x81de71['join'](',\x20')+')')};return{'state':_0x1512d9(0x11b),'checked':_0x81de71};}function a326_0x3acc(){const _0x85663a=['version','955521ighbaX','2EkjMLx','map','recorded','globalSkillsDirs','479148MswKoo','33143mOvdTt','utf8','message','\x20is\x20unreadable:\x20','present','unverifiable','parse','.claude','skills','6tnARXH','SKILL.md','\x20uses\x20unsupported\x20version\x20','kind','10VACZxt','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','842577hJmrtZ','unusable','not-recorded','310501CSDvls','\x20records\x20\x22','.skill-lock.json','number','1175489jiuWuw','.agents','\x20has\x20no\x20skills\x20map','includes','absent','610myYgdn','home','652920goLaMu'];a326_0x3acc=function(){return _0x85663a;};return a326_0x3acc();}
1
+ const a331_0x46847b=a331_0x8b2e;(function(_0x4c7bd1,_0xa674aa){const _0x336446=a331_0x8b2e,_0x5d1be0=_0x4c7bd1();while(!![]){try{const _0x592b38=-parseInt(_0x336446(0x180))/0x1*(parseInt(_0x336446(0x182))/0x2)+-parseInt(_0x336446(0x169))/0x3+parseInt(_0x336446(0x171))/0x4*(-parseInt(_0x336446(0x172))/0x5)+-parseInt(_0x336446(0x173))/0x6*(-parseInt(_0x336446(0x17e))/0x7)+-parseInt(_0x336446(0x177))/0x8*(-parseInt(_0x336446(0x16a))/0x9)+-parseInt(_0x336446(0x178))/0xa+parseInt(_0x336446(0x17f))/0xb;if(_0x592b38===_0xa674aa)break;else _0x5d1be0['push'](_0x5d1be0['shift']());}catch(_0xabe106){_0x5d1be0['push'](_0x5d1be0['shift']());}}}(a331_0x3f4c,0xa815f));import{existsSync,readFileSync}from'node:fs';function a331_0x8b2e(_0x2da52f,_0x48a95e){_0x2da52f=_0x2da52f-0x161;const _0x3f4ce0=a331_0x3f4c();let _0x8b2e11=_0x3f4ce0[_0x2da52f];return _0x8b2e11;}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a331_0x46847b(0x16d));function a331_0x3f4c(){const _0x2003f8=['absent','\x20records\x20\x22','4798549ASiFrf','12631806ZVOPIo','1LGzdbH','.claude','1167590MeVPju','includes','\x20is\x20unreadable:\x20','map','recorded','kind','version','utf8','number','unverifiable','unusable','home','2411478OnQmdZ','45qKKSHu','lockFile','skills','.skill-lock.json','\x20uses\x20unsupported\x20version\x20','join','globalSkillsDirs','36iHrQMq','258960xBHtON','12VnUGYV','object','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','present','1201976MjGLRq','7283670ycPIqb','message','not-recorded','parse'];a331_0x3f4c=function(){return _0x2003f8;};return a331_0x3f4c();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a331_0x46847b(0x16c)),join(a331_0x46847b(0x181),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x263c57,_0x3edc56){const _0x23c0e7=a331_0x46847b;if(!existsSync(_0x263c57))return{'kind':'not-recorded'};let _0x5a3a8e;try{_0x5a3a8e=JSON[_0x23c0e7(0x17b)](readFileSync(_0x263c57,_0x23c0e7(0x164)));}catch(_0x4171d4){return{'kind':'unusable','reason':_0x263c57+_0x23c0e7(0x184)+_0x4171d4[_0x23c0e7(0x179)]};}const _0xe7abf9=_0x5a3a8e;if(typeof _0xe7abf9?.['version']!==_0x23c0e7(0x165)||!SUPPORTED_LOCK_VERSIONS[_0x23c0e7(0x183)](_0xe7abf9[_0x23c0e7(0x163)]))return{'kind':_0x23c0e7(0x167),'reason':_0x263c57+_0x23c0e7(0x16e)+String(_0xe7abf9?.['version'])};if(!_0xe7abf9['skills']||typeof _0xe7abf9[_0x23c0e7(0x16c)]!==_0x23c0e7(0x174))return{'kind':_0x23c0e7(0x167),'reason':_0x263c57+'\x20has\x20no\x20skills\x20map'};return _0xe7abf9[_0x23c0e7(0x16c)][_0x3edc56]?{'kind':_0x23c0e7(0x161)}:{'kind':_0x23c0e7(0x17a)};}export function resolveInstalledSkill(_0x123294,_0x31d3b6){const _0x54709c=a331_0x46847b,_0x2bafd0=_0x31d3b6?.[_0x54709c(0x168)]??homedir(),_0x1bfe14=_0x31d3b6?.[_0x54709c(0x170)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x54709c(0x185)](_0x323e28=>join(_0x2bafd0,_0x323e28)),_0x43d134=_0x31d3b6?.[_0x54709c(0x16b)]??join(_0x2bafd0,SKILL_LOCK_RELATIVE_PATH),_0x977184=_0x1bfe14[_0x54709c(0x185)](_0x7accb0=>join(_0x7accb0,_0x123294,'SKILL.md')),_0xe293b4=_0x977184['find'](_0x245d2a=>existsSync(_0x245d2a));if(_0xe293b4)return{'state':_0x54709c(0x176),'path':_0xe293b4};const _0x457e2c=readLockLookup(_0x43d134,_0x123294);if(_0x457e2c['kind']==='unusable')return{'state':'unverifiable','reason':_0x457e2c['reason']};if(_0x457e2c[_0x54709c(0x162)]===_0x54709c(0x161))return{'state':_0x54709c(0x166),'reason':_0x43d134+_0x54709c(0x17d)+_0x123294+_0x54709c(0x175)+('('+_0x977184[_0x54709c(0x16f)](',\x20')+')')};return{'state':_0x54709c(0x17c),'checked':_0x977184};}
@@ -1 +1 @@
1
- (function(_0x575405,_0x409c8d){const _0x3e1d40=a327_0x595b,_0x5e638d=_0x575405();while(!![]){try{const _0x1badd5=-parseInt(_0x3e1d40(0x130))/0x1+-parseInt(_0x3e1d40(0x12f))/0x2*(-parseInt(_0x3e1d40(0x12e))/0x3)+-parseInt(_0x3e1d40(0x129))/0x4+parseInt(_0x3e1d40(0x12a))/0x5+parseInt(_0x3e1d40(0x12c))/0x6*(-parseInt(_0x3e1d40(0x121))/0x7)+-parseInt(_0x3e1d40(0x122))/0x8*(-parseInt(_0x3e1d40(0x12d))/0x9)+parseInt(_0x3e1d40(0x120))/0xa*(parseInt(_0x3e1d40(0x127))/0xb);if(_0x1badd5===_0x409c8d)break;else _0x5e638d['push'](_0x5e638d['shift']());}catch(_0x15b840){_0x5e638d['push'](_0x5e638d['shift']());}}}(a327_0x5831,0x1be67));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a327_0x5831(){const _0x2f631a=['200630mAFqNm','flags','[REDACTED]','10rRBRHD','7lckDOg','824cmnzfk','durationMs','error','message','some','3025748NaFvQh','service','545432Glcwgi','350305kCgiHY','test','493932rwFDYa','6921mxEVEC','327759BPYBdH','2pMzbdV'];a327_0x5831=function(){return _0x2f631a;};return a327_0x5831();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x9fcd23){const _0x4f4348=a327_0x595b;return SENSITIVE_PATTERNS[_0x4f4348(0x126)](_0x21487f=>_0x21487f[_0x4f4348(0x12b)](_0x9fcd23));}function sanitizeFlags(_0x4a70d9){const _0x3d3c04=a327_0x595b,_0x2402ff={};for(const [_0x20a66d,_0x4caaa2]of Object['entries'](_0x4a70d9)){isSensitiveKey(_0x20a66d)?_0x2402ff[_0x20a66d]=_0x4caaa2!=null&&_0x4caaa2!==''?_0x3d3c04(0x132):_0x4caaa2:_0x2402ff[_0x20a66d]=_0x4caaa2;}return _0x2402ff;}function a327_0x595b(_0x11116d,_0x5f21b8){_0x11116d=_0x11116d-0x120;const _0x58319b=a327_0x5831();let _0x595b90=_0x58319b[_0x11116d];return _0x595b90;}export async function reportCommandTrace(_0x38c053){const _0xc7f064=a327_0x595b;try{const _0x18cbdd=sanitizeFlags(_0x38c053[_0xc7f064(0x131)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x38c053[_0xc7f064(0x128)],'command.name':_0x38c053['command'],'command.flags':JSON['stringify'](_0x18cbdd),..._0x38c053['durationMs']!=null?{'command.duration_ms':_0x38c053[_0xc7f064(0x123)]}:{},..._0x38c053[_0xc7f064(0x124)]?{'command.error':_0x38c053[_0xc7f064(0x124)]instanceof Error?_0x38c053[_0xc7f064(0x124)][_0xc7f064(0x125)]:String(_0x38c053[_0xc7f064(0x124)])}:{}}});}catch{}}
1
+ (function(_0x2d43ce,_0x140168){const _0x26dbbf=a332_0x4e33,_0x12d220=_0x2d43ce();while(!![]){try{const _0x578f6c=-parseInt(_0x26dbbf(0x12a))/0x1+-parseInt(_0x26dbbf(0x129))/0x2+-parseInt(_0x26dbbf(0x130))/0x3+parseInt(_0x26dbbf(0x12f))/0x4+-parseInt(_0x26dbbf(0x127))/0x5+parseInt(_0x26dbbf(0x128))/0x6+parseInt(_0x26dbbf(0x126))/0x7*(parseInt(_0x26dbbf(0x125))/0x8);if(_0x578f6c===_0x140168)break;else _0x12d220['push'](_0x12d220['shift']());}catch(_0x533cba){_0x12d220['push'](_0x12d220['shift']());}}}(a332_0x573b,0x493c6));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_0x4e33(_0x4f1caa,_0x308ea4){_0x4f1caa=_0x4f1caa-0x121;const _0x573bd3=a332_0x573b();let _0x4e33c5=_0x573bd3[_0x4f1caa];return _0x4e33c5;}function isSensitiveKey(_0x4e42ef){const _0x3f2ce0=a332_0x4e33;return SENSITIVE_PATTERNS['some'](_0x34e83a=>_0x34e83a[_0x3f2ce0(0x12b)](_0x4e42ef));}function sanitizeFlags(_0x3fc787){const _0x2b1ce7=a332_0x4e33,_0x3a07d9={};for(const [_0x263b8b,_0x103f1c]of Object['entries'](_0x3fc787)){isSensitiveKey(_0x263b8b)?_0x3a07d9[_0x263b8b]=_0x103f1c!=null&&_0x103f1c!==''?_0x2b1ce7(0x121):_0x103f1c:_0x3a07d9[_0x263b8b]=_0x103f1c;}return _0x3a07d9;}function a332_0x573b(){const _0x4dcf5d=['durationMs','error','command','8zQiLKf','2209466NqOCxL','2362070xZnjcx','3140436qEDXrv','275718vVzzLn','202091gnYoSp','test','stringify','rabetbase.command','service','2123248yBVgLn','772554AsiITv','[REDACTED]'];a332_0x573b=function(){return _0x4dcf5d;};return a332_0x573b();}export async function reportCommandTrace(_0xf44f2b){const _0x37ca7c=a332_0x4e33;try{const _0x4f7f8d=sanitizeFlags(_0xf44f2b['flags']);await sendCliTraceLog({'spanName':_0x37ca7c(0x12d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xf44f2b[_0x37ca7c(0x12e)],'command.name':_0xf44f2b[_0x37ca7c(0x124)],'command.flags':JSON[_0x37ca7c(0x12c)](_0x4f7f8d),..._0xf44f2b['durationMs']!=null?{'command.duration_ms':_0xf44f2b[_0x37ca7c(0x122)]}:{},..._0xf44f2b['error']?{'command.error':_0xf44f2b[_0x37ca7c(0x123)]instanceof Error?_0xf44f2b[_0x37ca7c(0x123)]['message']:String(_0xf44f2b[_0x37ca7c(0x123)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x168287,_0x4f6000){var _0x28ae3e=a328_0x4604,_0x165c11=_0x168287();while(!![]){try{var _0x2423ca=-parseInt(_0x28ae3e(0xca))/0x1*(parseInt(_0x28ae3e(0xbf))/0x2)+parseInt(_0x28ae3e(0xcb))/0x3*(-parseInt(_0x28ae3e(0xc4))/0x4)+-parseInt(_0x28ae3e(0xc0))/0x5*(parseInt(_0x28ae3e(0xc7))/0x6)+-parseInt(_0x28ae3e(0xbd))/0x7*(parseInt(_0x28ae3e(0xbc))/0x8)+parseInt(_0x28ae3e(0xc2))/0x9*(-parseInt(_0x28ae3e(0xbe))/0xa)+parseInt(_0x28ae3e(0xc1))/0xb*(-parseInt(_0x28ae3e(0xc5))/0xc)+parseInt(_0x28ae3e(0xc8))/0xd*(parseInt(_0x28ae3e(0xc9))/0xe);if(_0x2423ca===_0x4f6000)break;else _0x165c11['push'](_0x165c11['shift']());}catch(_0x472a2d){_0x165c11['push'](_0x165c11['shift']());}}}(a328_0x426c,0x6a38b));function a328_0x4604(_0x335fc6,_0x441373){_0x335fc6=_0x335fc6-0xbc;var _0x426ca2=a328_0x426c();var _0x4604bb=_0x426ca2[_0x335fc6];return _0x4604bb;}function a328_0x426c(){var _0x3b83c4=['4imCTHL','7164pFSWcb','service','174AskzlO','559XxVVPd','984396ZNLptc','174WwjmIY','1002537dfsSYr','472zWuwoS','42133ScCYcL','1260noRHqo','7076muoEyr','19475lVHltM','14234UUMXhP','28431EOCXZv','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a328_0x426c=function(){return _0x3b83c4;};return a328_0x426c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2cf763,_0x4bd940){var _0x2aa12d=a328_0x4604;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x2cf763,..._0x4bd940?.[_0x2aa12d(0xc6)]&&{'rabetbase.help.service':_0x4bd940['service']}}});}catch(_0x7a60fd){console['error'](_0x2aa12d(0xc3),_0x7a60fd);}}
1
+ (function(_0x2727c2,_0x4fe8b3){var _0x28fa37=a333_0x528f,_0x317e25=_0x2727c2();while(!![]){try{var _0x5b720d=-parseInt(_0x28fa37(0x81))/0x1*(-parseInt(_0x28fa37(0x7e))/0x2)+-parseInt(_0x28fa37(0x7c))/0x3+parseInt(_0x28fa37(0x88))/0x4+parseInt(_0x28fa37(0x85))/0x5*(parseInt(_0x28fa37(0x89))/0x6)+parseInt(_0x28fa37(0x83))/0x7+parseInt(_0x28fa37(0x86))/0x8*(parseInt(_0x28fa37(0x7d))/0x9)+-parseInt(_0x28fa37(0x82))/0xa*(parseInt(_0x28fa37(0x7f))/0xb);if(_0x5b720d===_0x4fe8b3)break;else _0x317e25['push'](_0x317e25['shift']());}catch(_0x2097ff){_0x317e25['push'](_0x317e25['shift']());}}}(a333_0x2180,0x70cf7));function a333_0x2180(){var _0x1a63f9=['cli.help','1310765IeBXYK','5717992ZzKtkm','service','1988696sEZOcY','12mceMYd','452145xGkpos','9dUxtju','4mBCAUZ','11lmfPLO','error','298362MBOhak','23962270JzPaTU','4732420ZELPDz'];a333_0x2180=function(){return _0x1a63f9;};return a333_0x2180();}function a333_0x528f(_0x38fba3,_0x1d4abb){_0x38fba3=_0x38fba3-0x7c;var _0x21808f=a333_0x2180();var _0x528fa3=_0x21808f[_0x38fba3];return _0x528fa3;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x342177,_0x161f8c){var _0x299bf5=a333_0x528f;try{await sendCliTraceLog({'spanName':_0x299bf5(0x84),'logData':{'rabetbase.help.kind':_0x342177,..._0x161f8c?.[_0x299bf5(0x87)]&&{'rabetbase.help.service':_0x161f8c[_0x299bf5(0x87)]}}});}catch(_0x489f62){console[_0x299bf5(0x80)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x489f62);}}
@@ -1 +1 @@
1
- (function(_0x545f13,_0xbd25d2){const _0x451427=a329_0x118c,_0x2935b7=_0x545f13();while(!![]){try{const _0x4e4a74=parseInt(_0x451427(0x134))/0x1*(-parseInt(_0x451427(0x133))/0x2)+-parseInt(_0x451427(0x13c))/0x3+parseInt(_0x451427(0x131))/0x4+parseInt(_0x451427(0x13f))/0x5*(parseInt(_0x451427(0x13b))/0x6)+parseInt(_0x451427(0x13e))/0x7*(-parseInt(_0x451427(0x135))/0x8)+parseInt(_0x451427(0x138))/0x9+-parseInt(_0x451427(0x136))/0xa*(-parseInt(_0x451427(0x139))/0xb);if(_0x4e4a74===_0xbd25d2)break;else _0x2935b7['push'](_0x2935b7['shift']());}catch(_0x2dcd59){_0x2935b7['push'](_0x2935b7['shift']());}}}(a329_0x164c,0xd1417));function a329_0x164c(){const _0x404d38=['4846lRvfXo','227noeptP','104tleyZn','130byRkGm','user','6668910JykiLS','1508485nDAGvo','username','732TdgxtB','4362132cPpbun','email','645554FlMkhh','50390NZGqpT','production','unknown','1227204BANNNF','daily'];a329_0x164c=function(){return _0x404d38;};return a329_0x164c();}function a329_0x118c(_0x3d72d0,_0x1b707f){_0x3d72d0=_0x3d72d0-0x12f;const _0x164c26=a329_0x164c();let _0x118ccd=_0x164c26[_0x3d72d0];return _0x118ccd;}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 _0x35bef2=a329_0x118c,_0x4ab4cd=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x405b80=_0x4ab4cd?.[_0x35bef2(0x137)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x35bef2(0x130)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x35bef2(0x132):_0x35bef2(0x12f))}),setUserContext({'id':_0x405b80?.['id'],'username':_0x405b80?.[_0x35bef2(0x13a)],'nickname':_0x405b80?.['nickname'],'email':_0x405b80?.[_0x35bef2(0x13d)],'tenantCode':_0x405b80?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4ab4cd;}
1
+ (function(_0x329c62,_0x509d1b){const _0x3b727a=a334_0x4554,_0xb07287=_0x329c62();while(!![]){try{const _0x5e4f81=parseInt(_0x3b727a(0x79))/0x1*(-parseInt(_0x3b727a(0x7e))/0x2)+-parseInt(_0x3b727a(0x82))/0x3+parseInt(_0x3b727a(0x7a))/0x4+-parseInt(_0x3b727a(0x7b))/0x5+parseInt(_0x3b727a(0x80))/0x6*(-parseInt(_0x3b727a(0x76))/0x7)+-parseInt(_0x3b727a(0x75))/0x8*(-parseInt(_0x3b727a(0x86))/0x9)+-parseInt(_0x3b727a(0x78))/0xa*(-parseInt(_0x3b727a(0x84))/0xb);if(_0x5e4f81===_0x509d1b)break;else _0xb07287['push'](_0xb07287['shift']());}catch(_0x231087){_0xb07287['push'](_0xb07287['shift']());}}}(a334_0x4162,0x3f774));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_0x4554(_0x5ef6bd,_0xf017ab){_0x5ef6bd=_0x5ef6bd-0x75;const _0x416297=a334_0x4162();let _0x4554f7=_0x416297[_0x5ef6bd];return _0x4554f7;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a334_0x4162(){const _0x4c38ad=['user','nickname','9694FqjDzr','email','326472ZfPVAN','username','697260UPoNjE','production','1665136mvoykQ','unknown','2367pvVTNP','2776UbOLQY','7cSYMrF','daily','40RnzTXZ','46jZtDUb','1421092WWIMWK','1411440OHCsrt'];a334_0x4162=function(){return _0x4c38ad;};return a334_0x4162();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1ee91e=a334_0x4554,_0x204c5d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5567a8=_0x204c5d?.[_0x1ee91e(0x7c)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1ee91e(0x85)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1ee91e(0x77):_0x1ee91e(0x83))}),setUserContext({'id':_0x5567a8?.['id'],'username':_0x5567a8?.[_0x1ee91e(0x81)],'nickname':_0x5567a8?.[_0x1ee91e(0x7d)],'email':_0x5567a8?.[_0x1ee91e(0x7f)],'tenantCode':_0x5567a8?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x204c5d;}
@@ -1 +1 @@
1
- function a330_0x9d7e(_0x4865eb,_0x3666e6){_0x4865eb=_0x4865eb-0x1b9;const _0x38b5d9=a330_0x38b5();let _0x9d7e08=_0x38b5d9[_0x4865eb];return _0x9d7e08;}(function(_0x31e561,_0x3ace0f){const _0x1ad1b2=a330_0x9d7e,_0x1a07ab=_0x31e561();while(!![]){try{const _0x2ff9ff=parseInt(_0x1ad1b2(0x1b9))/0x1*(parseInt(_0x1ad1b2(0x1ba))/0x2)+parseInt(_0x1ad1b2(0x1c0))/0x3*(parseInt(_0x1ad1b2(0x1bf))/0x4)+-parseInt(_0x1ad1b2(0x1c2))/0x5+-parseInt(_0x1ad1b2(0x1c4))/0x6*(-parseInt(_0x1ad1b2(0x1c3))/0x7)+-parseInt(_0x1ad1b2(0x1c7))/0x8+parseInt(_0x1ad1b2(0x1c5))/0x9*(-parseInt(_0x1ad1b2(0x1c1))/0xa)+parseInt(_0x1ad1b2(0x1bd))/0xb;if(_0x2ff9ff===_0x3ace0f)break;else _0x1a07ab['push'](_0x1a07ab['shift']());}catch(_0x52894c){_0x1a07ab['push'](_0x1a07ab['shift']());}}}(a330_0x38b5,0x278e8));import{shutdownTraces}from'@lovrabet/otel-logger';function a330_0x38b5(){const _0x4dcda0=['1912256QQTJQH','SIGINT','224494PqrcFV','2BpiEyn','once','SIGTERM','934648CNCyiL','beforeExit','615356tQfUiG','3YkQATl','38230TmiEKe','710380KqxnIP','49wOMGkJ','127410SQyXUW','162lTiIgp','exit'];a330_0x38b5=function(){return _0x4dcda0;};return a330_0x38b5();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x45b73b=a330_0x9d7e;process['once'](_0x45b73b(0x1be),()=>{void flushOtelNodeIfUsed();});const _0x5e2d61=()=>{const _0x385398=_0x45b73b;void flushOtelNodeIfUsed()['then'](()=>process[_0x385398(0x1c6)](0x0));};process[_0x45b73b(0x1bb)](_0x45b73b(0x1c8),_0x5e2d61),process[_0x45b73b(0x1bb)](_0x45b73b(0x1bc),_0x5e2d61);}export async function exitWithOtelShutdown(_0x55814f){const _0x43cbda=a330_0x9d7e;await flushOtelNodeIfUsed(),process[_0x43cbda(0x1c6)](_0x55814f);}
1
+ function a335_0x5b92(_0x16c7e6,_0x707df){_0x16c7e6=_0x16c7e6-0xc4;const _0x6ad2b5=a335_0x6ad2();let _0x5b926a=_0x6ad2b5[_0x16c7e6];return _0x5b926a;}function a335_0x6ad2(){const _0x3073df=['39BNAnoS','51552fJsQDL','exit','312688hwtqqk','445940IuRjgr','8cLjAOp','6DZpHsv','SIGTERM','101432ePeRuj','once','9hWeeBP','1340129ewZKEk','SIGINT','314825vplCmy','643750RMoqSG','242tCNyuE'];a335_0x6ad2=function(){return _0x3073df;};return a335_0x6ad2();}(function(_0x141da8,_0x5639ce){const _0x4f6362=a335_0x5b92,_0x347d20=_0x141da8();while(!![]){try{const _0x57639b=parseInt(_0x4f6362(0xca))/0x1+parseInt(_0x4f6362(0xd0))/0x2+parseInt(_0x4f6362(0xcd))/0x3*(-parseInt(_0x4f6362(0xc5))/0x4)+-parseInt(_0x4f6362(0xd1))/0x5*(parseInt(_0x4f6362(0xd3))/0x6)+parseInt(_0x4f6362(0xc8))/0x7*(parseInt(_0x4f6362(0xd2))/0x8)+-parseInt(_0x4f6362(0xc7))/0x9*(-parseInt(_0x4f6362(0xcb))/0xa)+parseInt(_0x4f6362(0xcc))/0xb*(-parseInt(_0x4f6362(0xce))/0xc);if(_0x57639b===_0x5639ce)break;else _0x347d20['push'](_0x347d20['shift']());}catch(_0x292b94){_0x347d20['push'](_0x347d20['shift']());}}}(a335_0x6ad2,0x34285));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2d9b14=a335_0x5b92;process[_0x2d9b14(0xc6)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x29ee72=()=>{const _0x475b19=_0x2d9b14;void flushOtelNodeIfUsed()['then'](()=>process[_0x475b19(0xcf)](0x0));};process[_0x2d9b14(0xc6)](_0x2d9b14(0xc9),_0x29ee72),process[_0x2d9b14(0xc6)](_0x2d9b14(0xc4),_0x29ee72);}export async function exitWithOtelShutdown(_0x56011d){const _0x2dd6d0=a335_0x5b92;await flushOtelNodeIfUsed(),process[_0x2dd6d0(0xcf)](_0x56011d);}
@@ -1 +1 @@
1
- function a331_0x41a3(){const _0x5bd6e6=['version','8496648YSRXGJ','17606190UJuKTw','manual','1695081CzIQWf','12aDntgI','spanName','traceparent','logData','3928JhLEXx','682680ltXJzy','911260ZKiSZa','5333314RBHQRF','4FjbAIq','5724VuSDUV'];a331_0x41a3=function(){return _0x5bd6e6;};return a331_0x41a3();}(function(_0x306d7a,_0x5d7e0c){const _0x100ea8=a331_0x4441,_0x9eb010=_0x306d7a();while(!![]){try{const _0x3687f4=-parseInt(_0x100ea8(0x1e3))/0x1+-parseInt(_0x100ea8(0x1e6))/0x2*(parseInt(_0x100ea8(0x1ec))/0x3)+parseInt(_0x100ea8(0x1de))/0x4*(parseInt(_0x100ea8(0x1e4))/0x5)+parseInt(_0x100ea8(0x1e9))/0x6+-parseInt(_0x100ea8(0x1e5))/0x7+parseInt(_0x100ea8(0x1e2))/0x8*(-parseInt(_0x100ea8(0x1e7))/0x9)+parseInt(_0x100ea8(0x1ea))/0xa;if(_0x3687f4===_0x5d7e0c)break;else _0x9eb010['push'](_0x9eb010['shift']());}catch(_0x238fd1){_0x9eb010['push'](_0x9eb010['shift']());}}}(a331_0x41a3,0xcc3db));function a331_0x4441(_0x4f1e6d,_0x3c1eba){_0x4f1e6d=_0x4f1e6d-0x1de;const _0x41a3b5=a331_0x41a3();let _0x44415b=_0x41a3b5[_0x4f1e6d];return _0x44415b;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x391a6e){const _0x529a34=a331_0x4441;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x391a6e['traceName']??DEFAULT_TRACE_NAME,'version':_0x391a6e[_0x529a34(0x1e8)]??getCliVersion(),'spanName':_0x391a6e[_0x529a34(0x1df)],'eventType':_0x529a34(0x1eb),'logData':_0x391a6e[_0x529a34(0x1e1)],..._0x391a6e[_0x529a34(0x1e0)]&&{'traceparent':_0x391a6e[_0x529a34(0x1e0)]}});}
1
+ const a336_0x334dad=a336_0xa0e5;(function(_0x1fab35,_0x25df57){const _0x44c9d7=a336_0xa0e5,_0x3c082a=_0x1fab35();while(!![]){try{const _0x38b7a9=parseInt(_0x44c9d7(0xac))/0x1+parseInt(_0x44c9d7(0xa3))/0x2*(parseInt(_0x44c9d7(0xaa))/0x3)+parseInt(_0x44c9d7(0xa5))/0x4+parseInt(_0x44c9d7(0xa7))/0x5*(-parseInt(_0x44c9d7(0xb1))/0x6)+parseInt(_0x44c9d7(0xa0))/0x7+parseInt(_0x44c9d7(0xa1))/0x8*(parseInt(_0x44c9d7(0xa8))/0x9)+-parseInt(_0x44c9d7(0xa2))/0xa*(parseInt(_0x44c9d7(0xaf))/0xb);if(_0x38b7a9===_0x25df57)break;else _0x3c082a['push'](_0x3c082a['shift']());}catch(_0x3389af){_0x3c082a['push'](_0x3c082a['shift']());}}}(a336_0x2a60,0x536bb));function a336_0xa0e5(_0x48515e,_0x5828b4){_0x48515e=_0x48515e-0xa0;const _0x2a60ad=a336_0x2a60();let _0xa0e5e9=_0x2a60ad[_0x48515e];return _0xa0e5e9;}function a336_0x2a60(){const _0x2984bd=['658900rFjOdC','traceparent','822lYdIGK','281715qTmQaA','385360HyCPKD','200cZiaLN','6AoMCKI','version','906452mRkEtR','manual','6940EcFaQJ','126ebDBlH','spanName','277371VJuLQW','rabetbase-cli','511238BwpqcU','traceName','logData'];a336_0x2a60=function(){return _0x2984bd;};return a336_0x2a60();}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=a336_0x334dad(0xab);export async function sendCliTraceLog(_0x2548aa){const _0x441564=a336_0x334dad;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2548aa[_0x441564(0xad)]??DEFAULT_TRACE_NAME,'version':_0x2548aa[_0x441564(0xa4)]??getCliVersion(),'spanName':_0x2548aa[_0x441564(0xa9)],'eventType':_0x441564(0xa6),'logData':_0x2548aa[_0x441564(0xae)],..._0x2548aa[_0x441564(0xb0)]&&{'traceparent':_0x2548aa['traceparent']}});}
@@ -1 +1 @@
1
- (function(_0x510d23,_0x3ac409){const _0x3d9b9b=a332_0x2fa3,_0x54b93f=_0x510d23();while(!![]){try{const _0x5e978a=parseInt(_0x3d9b9b(0x10b))/0x1+-parseInt(_0x3d9b9b(0x101))/0x2+-parseInt(_0x3d9b9b(0x102))/0x3+-parseInt(_0x3d9b9b(0x10d))/0x4+parseInt(_0x3d9b9b(0x104))/0x5+-parseInt(_0x3d9b9b(0x106))/0x6*(-parseInt(_0x3d9b9b(0x103))/0x7)+-parseInt(_0x3d9b9b(0x107))/0x8*(parseInt(_0x3d9b9b(0x109))/0x9);if(_0x5e978a===_0x3ac409)break;else _0x54b93f['push'](_0x54b93f['shift']());}catch(_0x235741){_0x54b93f['push'](_0x54b93f['shift']());}}}(a332_0x1e62,0x954c7));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='issue.log.collect';function a332_0x1e62(){const _0xb422e4=['163436jSaqNd','848643RHEIPH','7qMkspm','4930685RKLawg','sanitize','3176058jNWhzd','35152tSUTHL','description','2043IeUDal','truncated','631540pOezVE','title','693824bAuYXu'];a332_0x1e62=function(){return _0xb422e4;};return a332_0x1e62();}function a332_0x2fa3(_0x3f7769,_0x2c48b3){_0x3f7769=_0x3f7769-0x101;const _0x1e623d=a332_0x1e62();let _0x2fa347=_0x1e623d[_0x3f7769];return _0x2fa347;}export async function sendPlatformIssueCollectLog(_0x58475c){const _0x20fbb3=a332_0x2fa3;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x58475c[_0x20fbb3(0x10c)],'issue.description':_0x58475c[_0x20fbb3(0x108)],..._0x58475c['sanitize']?{'issue.description_original_bytes':_0x58475c[_0x20fbb3(0x105)]['originalBytes'],'issue.description_truncated':_0x58475c['sanitize'][_0x20fbb3(0x10a)],'issue.description_redactions':_0x58475c['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x58475c[_0x20fbb3(0x105)]['redactionKinds']['join'](',')}:{}}});}
1
+ function a337_0x71e9(_0x19bdb7,_0xb23211){_0x19bdb7=_0x19bdb7-0xa6;const _0x1dbcd6=a337_0x1dbc();let _0x71e9d8=_0x1dbcd6[_0x19bdb7];return _0x71e9d8;}const a337_0x11fc91=a337_0x71e9;function a337_0x1dbc(){const _0x542d46=['67551tLZGjJ','originalBytes','23802xCRHBD','redactionKinds','join','platform-issue-log-collect','1976072UaxZZw','56FpPkAX','title','215TssBkX','sanitize','3490168bgJBWZ','381578lxMTyP','309824EgUwko','3665376kkNePT'];a337_0x1dbc=function(){return _0x542d46;};return a337_0x1dbc();}(function(_0xf2fb87,_0x41ff99){const _0x43a672=a337_0x71e9,_0x2126d8=_0xf2fb87();while(!![]){try{const _0x1e90e6=parseInt(_0x43a672(0xa6))/0x1+-parseInt(_0x43a672(0xb4))/0x2+parseInt(_0x43a672(0xa8))/0x3*(parseInt(_0x43a672(0xaf))/0x4)+parseInt(_0x43a672(0xb1))/0x5*(parseInt(_0x43a672(0xaa))/0x6)+-parseInt(_0x43a672(0xae))/0x7+-parseInt(_0x43a672(0xb3))/0x8+parseInt(_0x43a672(0xa7))/0x9;if(_0x1e90e6===_0x41ff99)break;else _0x2126d8['push'](_0x2126d8['shift']());}catch(_0x51c044){_0x2126d8['push'](_0x2126d8['shift']());}}}(a337_0x1dbc,0x47aaf));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a337_0x11fc91(0xad);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x3248b6){const _0xe256e0=a337_0x11fc91;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3248b6[_0xe256e0(0xb0)],'issue.description':_0x3248b6['description'],..._0x3248b6[_0xe256e0(0xb2)]?{'issue.description_original_bytes':_0x3248b6[_0xe256e0(0xb2)][_0xe256e0(0xa9)],'issue.description_truncated':_0x3248b6['sanitize']['truncated'],'issue.description_redactions':_0x3248b6[_0xe256e0(0xb2)]['redactionCount'],'issue.description_redaction_kinds':_0x3248b6[_0xe256e0(0xb2)][_0xe256e0(0xab)][_0xe256e0(0xac)](',')}:{}}});}
@@ -1 +1 @@
1
- function a334_0x26e6(_0x710a30,_0x4f131d){_0x710a30=_0x710a30-0x74;const _0x37a0cc=a334_0x37a0();let _0x26e669=_0x37a0cc[_0x710a30];return _0x26e669;}const a334_0x6afa47=a334_0x26e6;(function(_0xf524fa,_0x5186d9){const _0x2cc81c=a334_0x26e6,_0x1b2bfa=_0xf524fa();while(!![]){try{const _0x3c7ae0=-parseInt(_0x2cc81c(0x8d))/0x1+parseInt(_0x2cc81c(0x7c))/0x2*(parseInt(_0x2cc81c(0x95))/0x3)+-parseInt(_0x2cc81c(0xa0))/0x4*(-parseInt(_0x2cc81c(0x96))/0x5)+parseInt(_0x2cc81c(0x75))/0x6*(parseInt(_0x2cc81c(0x9a))/0x7)+-parseInt(_0x2cc81c(0x9f))/0x8+-parseInt(_0x2cc81c(0x89))/0x9+parseInt(_0x2cc81c(0xaa))/0xa;if(_0x3c7ae0===_0x5186d9)break;else _0x1b2bfa['push'](_0x1b2bfa['shift']());}catch(_0x2e6110){_0x1b2bfa['push'](_0x1b2bfa['shift']());}}}(a334_0x37a0,0xe1902));export const CORE_IDE_CONFIGS={'cursor':{'name':a334_0x6afa47(0x8f),'description':a334_0x6afa47(0x7f),'folders':['.cursorrules',a334_0x6afa47(0xa5)],'files':[{'type':'file','path':a334_0x6afa47(0x8e)}]},'windsurf':{'name':a334_0x6afa47(0x81),'description':'Windsurf\x20IDE','folders':[a334_0x6afa47(0xa2)],'files':[{'type':a334_0x6afa47(0x9e),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a334_0x6afa47(0x7a),'description':a334_0x6afa47(0x7a),'folders':[a334_0x6afa47(0xa4)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x98)}]},'cline':{'name':a334_0x6afa47(0xa7),'description':a334_0x6afa47(0x86),'folders':[a334_0x6afa47(0xa1)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x84)}]},'codex':{'name':a334_0x6afa47(0xa6),'description':a334_0x6afa47(0x80),'folders':['.codex'],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x9b)}]},'opencode':{'name':a334_0x6afa47(0xa9),'description':a334_0x6afa47(0x78),'folders':[a334_0x6afa47(0x83)],'files':[{'type':a334_0x6afa47(0x9e),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a334_0x6afa47(0xab),'description':a334_0x6afa47(0x9d),'folders':[a334_0x6afa47(0x99)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x91)},{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x93)}]},'codebuddy':{'name':a334_0x6afa47(0xa3),'description':a334_0x6afa47(0x8a),'folders':['.codebuddy'],'files':[{'type':'file','path':a334_0x6afa47(0x77)}]},'trae':{'name':a334_0x6afa47(0x7e),'description':'Trae\x20IDE','folders':[a334_0x6afa47(0x85)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x88)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a334_0x6afa47(0x8b),'description':'Generic\x20template\x20fallback','folders':[a334_0x6afa47(0x87)],'files':[{'type':a334_0x6afa47(0x9e),'path':a334_0x6afa47(0x8c)}]},'antigravity':{'name':'Antigravity','description':a334_0x6afa47(0x94),'folders':[a334_0x6afa47(0x87)],'files':[{'type':a334_0x6afa47(0x9e),'path':'.agent/skills/lovrabet/SKILL.md'}]}};function a334_0x37a0(){const _0x31a7f8=['1718361mXBxxs','CodeBuddy\x20IDE','Other\x20(generic\x20template)','.agent/skills/lovrabet/SKILL.md','1661872cbFAIc','.cursor/skills/rabetbase.md','Cursor','agent','.qoder/rules/rabetbase.md','windsurf','.qoder/skills/lovrabet/SKILL.md','Antigravity\x20IDE','223131kNBGNK','15duSqsT','qoder','.claude/skills/lovrabet/SKILL.md','.qoder','1050455ysJGsX','.codex/skills/lovrabet/SKILL.md','trae','Qoder\x20IDE','file','9406848vFhypG','1692436WBpQQr','.cline','.windsurf','CodeBuddy','.claude','.cursor','Codex','Cline','cline','OpenCode','17150240JTMztM','Qoder','cursor','6gOfsPB','codex','.codebuddy/skills/lovrabet/SKILL.md','OpenCode\x20IDE','antigravity','Claude\x20Code','claude','22DWLGYe','codebuddy','Trae','Cursor\x20IDE','Codex\x20IDE','Windsurf','opencode','.opencode','.cline/skills/lovrabet/SKILL.md','.trae','Cline\x20IDE','.agent','.trae/skills/lovrabet/SKILL.md'];a334_0x37a0=function(){return _0x31a7f8;};return a334_0x37a0();}export const CORE_IDE_LIST=[a334_0x6afa47(0x7b),a334_0x6afa47(0xa8),a334_0x6afa47(0x7d),'codex',a334_0x6afa47(0x74),'opencode',a334_0x6afa47(0x97),a334_0x6afa47(0x9c),a334_0x6afa47(0x92)];export const IDE_LIST=[a334_0x6afa47(0x79),a334_0x6afa47(0x7b),a334_0x6afa47(0xa8),a334_0x6afa47(0x7d),a334_0x6afa47(0x76),a334_0x6afa47(0x74),a334_0x6afa47(0x82),'qoder',a334_0x6afa47(0x9c),a334_0x6afa47(0x92),a334_0x6afa47(0x90)];export const ALL_CORE_IDES=[a334_0x6afa47(0x74),a334_0x6afa47(0x92),a334_0x6afa47(0x7b),'cline','codex','opencode',a334_0x6afa47(0x97),a334_0x6afa47(0x7d),a334_0x6afa47(0x9c)];
1
+ const a339_0x4bf132=a339_0x219f;(function(_0x5bec35,_0x2bae00){const _0x5856d2=a339_0x219f,_0x5446f0=_0x5bec35();while(!![]){try{const _0x19a700=parseInt(_0x5856d2(0xd0))/0x1*(-parseInt(_0x5856d2(0xc6))/0x2)+-parseInt(_0x5856d2(0xb4))/0x3*(parseInt(_0x5856d2(0xc9))/0x4)+parseInt(_0x5856d2(0xda))/0x5*(-parseInt(_0x5856d2(0xd9))/0x6)+parseInt(_0x5856d2(0xbd))/0x7*(-parseInt(_0x5856d2(0xc4))/0x8)+-parseInt(_0x5856d2(0xdf))/0x9+-parseInt(_0x5856d2(0xbb))/0xa+-parseInt(_0x5856d2(0xca))/0xb*(-parseInt(_0x5856d2(0xb5))/0xc);if(_0x19a700===_0x2bae00)break;else _0x5446f0['push'](_0x5446f0['shift']());}catch(_0xb88b39){_0x5446f0['push'](_0x5446f0['shift']());}}}(a339_0x5e3b,0x2104d));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a339_0x4bf132(0xe7),'folders':['.cursorrules',a339_0x4bf132(0xc2)],'files':[{'type':a339_0x4bf132(0xb6),'path':a339_0x4bf132(0xdc)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a339_0x4bf132(0xcb)],'files':[{'type':a339_0x4bf132(0xb6),'path':a339_0x4bf132(0xe8)}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a339_0x4bf132(0xb6),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a339_0x4bf132(0xbc),'description':a339_0x4bf132(0xb7),'folders':[a339_0x4bf132(0xe1)],'files':[{'type':a339_0x4bf132(0xb6),'path':a339_0x4bf132(0xc1)}]},'codex':{'name':a339_0x4bf132(0xe4),'description':a339_0x4bf132(0xd1),'folders':[a339_0x4bf132(0xbe)],'files':[{'type':a339_0x4bf132(0xb6),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a339_0x4bf132(0xe2),'description':a339_0x4bf132(0xe6),'folders':[a339_0x4bf132(0xd4)],'files':[{'type':a339_0x4bf132(0xb6),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a339_0x4bf132(0xc8),'description':a339_0x4bf132(0xe3),'folders':[a339_0x4bf132(0xc0)],'files':[{'type':a339_0x4bf132(0xb6),'path':'.qoder/rules/rabetbase.md'},{'type':a339_0x4bf132(0xb6),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a339_0x4bf132(0xe9),'description':'CodeBuddy\x20IDE','folders':[a339_0x4bf132(0xc5)],'files':[{'type':a339_0x4bf132(0xb6),'path':a339_0x4bf132(0xe0)}]},'trae':{'name':a339_0x4bf132(0xdb),'description':a339_0x4bf132(0xc3),'folders':[a339_0x4bf132(0xcc)],'files':[{'type':a339_0x4bf132(0xb6),'path':a339_0x4bf132(0xde)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a339_0x4bf132(0xb3),'description':a339_0x4bf132(0xc7),'folders':[a339_0x4bf132(0xcf)],'files':[{'type':a339_0x4bf132(0xb6),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a339_0x4bf132(0xd5),'description':a339_0x4bf132(0xb9),'folders':[a339_0x4bf132(0xcf)],'files':[{'type':'file','path':a339_0x4bf132(0xe5)}]}};export const CORE_IDE_LIST=[a339_0x4bf132(0xce),a339_0x4bf132(0xcd),a339_0x4bf132(0xd8),a339_0x4bf132(0xdd),'cursor',a339_0x4bf132(0xb8),'qoder',a339_0x4bf132(0xd7),a339_0x4bf132(0xbf)];function a339_0x5e3b(){const _0x1d9432=['Cline','203Sgtauo','.codex','windsurf','.qoder','.cline/skills/lovrabet/SKILL.md','.cursor','Trae\x20IDE','62072TcjjFR','.codebuddy','5142wHUmCa','Generic\x20template\x20fallback','Qoder','237884AjHkaC','22RXKTXI','.windsurf','.trae','cline','claude','.agent','71DncVFh','Codex\x20IDE','agent','antigravity','.opencode','Antigravity','cursor','trae','codebuddy','60dUGCXx','27010Jhdeph','Trae','.cursor/skills/rabetbase.md','codex','.trae/skills/lovrabet/SKILL.md','1881576jpvRVZ','.codebuddy/skills/lovrabet/SKILL.md','.cline','OpenCode','Qoder\x20IDE','Codex','.agent/skills/lovrabet/SKILL.md','OpenCode\x20IDE','Cursor\x20IDE','.windsurf/workflows/rabetbase.md','CodeBuddy','Other\x20(generic\x20template)','3LOsGyn','5832780qgTLsV','file','Cline\x20IDE','opencode','Antigravity\x20IDE','qoder','1067780NmKxfF'];a339_0x5e3b=function(){return _0x1d9432;};return a339_0x5e3b();}export const IDE_LIST=[a339_0x4bf132(0xd3),a339_0x4bf132(0xce),a339_0x4bf132(0xcd),'codebuddy',a339_0x4bf132(0xdd),a339_0x4bf132(0xd6),'opencode',a339_0x4bf132(0xba),a339_0x4bf132(0xd7),a339_0x4bf132(0xbf),a339_0x4bf132(0xd2)];function a339_0x219f(_0x15bdf9,_0x48ea31){_0x15bdf9=_0x15bdf9-0xb3;const _0x5e3bf3=a339_0x5e3b();let _0x219f9b=_0x5e3bf3[_0x15bdf9];return _0x219f9b;}export const ALL_CORE_IDES=['cursor',a339_0x4bf132(0xbf),a339_0x4bf132(0xce),a339_0x4bf132(0xcd),a339_0x4bf132(0xdd),a339_0x4bf132(0xb8),a339_0x4bf132(0xba),a339_0x4bf132(0xd8),a339_0x4bf132(0xd7)];
@@ -1 +1 @@
1
- (function(_0x276403,_0x3d571a){const _0x260739=a335_0x369d,_0x5f26b4=_0x276403();while(!![]){try{const _0x2b67be=-parseInt(_0x260739(0x14a))/0x1+-parseInt(_0x260739(0x14c))/0x2+parseInt(_0x260739(0x14b))/0x3+parseInt(_0x260739(0x14d))/0x4*(parseInt(_0x260739(0x14e))/0x5)+-parseInt(_0x260739(0x152))/0x6*(-parseInt(_0x260739(0x14f))/0x7)+-parseInt(_0x260739(0x150))/0x8+parseInt(_0x260739(0x151))/0x9;if(_0x2b67be===_0x3d571a)break;else _0x5f26b4['push'](_0x5f26b4['shift']());}catch(_0x3b61a2){_0x5f26b4['push'](_0x5f26b4['shift']());}}}(a335_0x4ea2,0xc16d8));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a335_0x369d(_0x34800a,_0xb9eedf){_0x34800a=_0x34800a-0x14a;const _0x4ea2d1=a335_0x4ea2();let _0x369d82=_0x4ea2d1[_0x34800a];return _0x369d82;}function a335_0x4ea2(){const _0x33e908=['245uNaaZj','12432616UfEBUM','6790176GDDKdJ','45366jTclCc','236768BANWaW','4481052IBludA','2302498dvwQsf','4886364FGUVJT','5WMxnZe'];a335_0x4ea2=function(){return _0x33e908;};return a335_0x4ea2();}
1
+ function a340_0x4ab8(_0x5ed24a,_0x402996){_0x5ed24a=_0x5ed24a-0x159;const _0x1acbea=a340_0x1acb();let _0x4ab8af=_0x1acbea[_0x5ed24a];return _0x4ab8af;}(function(_0x68bd12,_0x2c269a){const _0x4f9ddb=a340_0x4ab8,_0x19ed06=_0x68bd12();while(!![]){try{const _0x134d2e=parseInt(_0x4f9ddb(0x159))/0x1+-parseInt(_0x4f9ddb(0x15a))/0x2+-parseInt(_0x4f9ddb(0x15d))/0x3+parseInt(_0x4f9ddb(0x15f))/0x4+-parseInt(_0x4f9ddb(0x15b))/0x5+-parseInt(_0x4f9ddb(0x15c))/0x6+parseInt(_0x4f9ddb(0x15e))/0x7;if(_0x134d2e===_0x2c269a)break;else _0x19ed06['push'](_0x19ed06['shift']());}catch(_0x5019b5){_0x19ed06['push'](_0x19ed06['shift']());}}}(a340_0x1acb,0x9e2ec));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a340_0x1acb(){const _0x79adcc=['129287nKCLwj','836130bnDpnm','2648405WLNtTl','4248420KZeUkB','312066rfsVsl','7195118qYsjZp','5002372URveey'];a340_0x1acb=function(){return _0x79adcc;};return a340_0x1acb();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a336_0x56d1(_0x2f4a55,_0x221aa9){_0x2f4a55=_0x2f4a55-0x1c0;const _0x3edaf4=a336_0x3eda();let _0x56d1d7=_0x3edaf4[_0x2f4a55];return _0x56d1d7;}(function(_0x368eca,_0x50a3ed){const _0x307198=a336_0x56d1,_0x420272=_0x368eca();while(!![]){try{const _0xcda50=-parseInt(_0x307198(0x1c8))/0x1*(-parseInt(_0x307198(0x1cb))/0x2)+parseInt(_0x307198(0x1d2))/0x3+-parseInt(_0x307198(0x1c3))/0x4*(-parseInt(_0x307198(0x1c6))/0x5)+-parseInt(_0x307198(0x1d0))/0x6+parseInt(_0x307198(0x1ce))/0x7*(-parseInt(_0x307198(0x1d1))/0x8)+parseInt(_0x307198(0x1c1))/0x9*(parseInt(_0x307198(0x1c5))/0xa)+-parseInt(_0x307198(0x1cf))/0xb*(-parseInt(_0x307198(0x1c2))/0xc);if(_0xcda50===_0x50a3ed)break;else _0x420272['push'](_0x420272['shift']());}catch(_0x5ac2cc){_0x420272['push'](_0x420272['shift']());}}}(a336_0x3eda,0x92a86));import{getTemplateBaseUrl}from'../utils/config.js';function a336_0x3eda(){const _0x52cf2f=['143WupXKh','2237622JzlkfZ','134648NzzfnN','321237cqTTxk','stableVersion','2259eYZHsR','716508nENFIT','1946652ljegyv','json','14070rDANIU','5DiLmRy','now','41187RKJHZM','/config.json','cli','20otlqOm','application/json','sdk','483JSCSAo'];a336_0x3eda=function(){return _0x52cf2f;};return a336_0x3eda();}export async function fetchCdnConfig(){const _0xab97ac=a336_0x56d1,_0x70080d=getTemplateBaseUrl(),_0x2f8746=[_0x70080d+_0xab97ac(0x1c9),_0x70080d+'/config/index.json'];for(const _0x346d25 of _0x2f8746){try{const _0x11211b=await fetch(_0x346d25,{'headers':{'Accept':_0xab97ac(0x1cc)}});if(!_0x11211b['ok'])continue;const _0x38dcbe=await _0x11211b[_0xab97ac(0x1c4)]();if(!_0x38dcbe[_0xab97ac(0x1ca)]?.[_0xab97ac(0x1c0)]||!_0x38dcbe[_0xab97ac(0x1cd)]?.['node']?.[_0xab97ac(0x1c0)])continue;return _0x38dcbe;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x46db67=a336_0x56d1,_0x10218=Date[_0x46db67(0x1c7)]();if(hasCachedConfig){const _0x431126=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x10218-cacheTime<_0x431126)return cachedConfig;}const _0xda7b93=await fetchCdnConfig();return cachedConfig=_0xda7b93,cacheTime=_0x10218,hasCachedConfig=!![],_0xda7b93;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x15790a,_0x394e60){const _0x383ac7=a341_0x4f5b,_0xf43e00=_0x15790a();while(!![]){try{const _0x5496b7=-parseInt(_0x383ac7(0x19a))/0x1*(-parseInt(_0x383ac7(0x194))/0x2)+parseInt(_0x383ac7(0x198))/0x3+parseInt(_0x383ac7(0x1a3))/0x4+-parseInt(_0x383ac7(0x199))/0x5+-parseInt(_0x383ac7(0x19d))/0x6*(parseInt(_0x383ac7(0x19f))/0x7)+parseInt(_0x383ac7(0x1a2))/0x8*(-parseInt(_0x383ac7(0x197))/0x9)+parseInt(_0x383ac7(0x1a0))/0xa;if(_0x5496b7===_0x394e60)break;else _0xf43e00['push'](_0xf43e00['shift']());}catch(_0x41f09d){_0xf43e00['push'](_0xf43e00['shift']());}}}(a341_0x1f96,0x59fd2));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x56f2ab=a341_0x4f5b,_0x508e5a=getTemplateBaseUrl(),_0x4adccf=[_0x508e5a+'/config.json',_0x508e5a+'/config/index.json'];for(const _0x5d7f58 of _0x4adccf){try{const _0x973666=await fetch(_0x5d7f58,{'headers':{'Accept':_0x56f2ab(0x19c)}});if(!_0x973666['ok'])continue;const _0x272f76=await _0x973666[_0x56f2ab(0x195)]();if(!_0x272f76[_0x56f2ab(0x1a1)]?.['stableVersion']||!_0x272f76[_0x56f2ab(0x19b)]?.['node']?.[_0x56f2ab(0x19e)])continue;return _0x272f76;}catch{}}return null;}function a341_0x1f96(){const _0x1b2bd8=['cli','1141536rfJpzM','1838204xNTufm','2ouJSOE','json','now','9jcrkVV','859434lJroxB','1134760RpFrsC','117827EQEvjH','sdk','application/json','582buYuJe','stableVersion','10332PYLNWA','175540prIjbt'];a341_0x1f96=function(){return _0x1b2bd8;};return a341_0x1f96();}let cachedConfig=null,cacheTime=0x0;function a341_0x4f5b(_0x584837,_0x9330e5){_0x584837=_0x584837-0x194;const _0x1f9697=a341_0x1f96();let _0x4f5bac=_0x1f9697[_0x584837];return _0x4f5bac;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x277a9b=a341_0x4f5b,_0x257e5d=Date[_0x277a9b(0x196)]();if(hasCachedConfig){const _0x3e5d1e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x257e5d-cacheTime<_0x3e5d1e)return cachedConfig;}const _0xcf2ef9=await fetchCdnConfig();return cachedConfig=_0xcf2ef9,cacheTime=_0x257e5d,hasCachedConfig=!![],_0xcf2ef9;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a337_0x1f068f=a337_0x1792;(function(_0x68fbfb,_0x213d03){const _0xc0b8c4=a337_0x1792,_0x570ef1=_0x68fbfb();while(!![]){try{const _0x191781=parseInt(_0xc0b8c4(0xbe))/0x1*(parseInt(_0xc0b8c4(0xb1))/0x2)+-parseInt(_0xc0b8c4(0xae))/0x3+parseInt(_0xc0b8c4(0xb2))/0x4+-parseInt(_0xc0b8c4(0xc2))/0x5*(parseInt(_0xc0b8c4(0xc9))/0x6)+-parseInt(_0xc0b8c4(0xcb))/0x7*(-parseInt(_0xc0b8c4(0xba))/0x8)+parseInt(_0xc0b8c4(0xbd))/0x9+-parseInt(_0xc0b8c4(0xbf))/0xa;if(_0x191781===_0x213d03)break;else _0x570ef1['push'](_0x570ef1['shift']());}catch(_0x318541){_0x570ef1['push'](_0x570ef1['shift']());}}}(a337_0x5016,0xc9163));function a337_0x5016(){const _0xe446fe=['utf8','parse','\x1b[1m','7229532PzdYtF','log','419993rSCaoo','1.2.0','devDependencies','latest','node_modules','existsSync','\x20\x20\x20Current\x20version:\x20','2201169iUhhIU','join','version','428300jVzOXo','6345464WdMOWN','node','package.json','@lovrabet/sdk','packageName','needsUpgrade','stableVersion','dependencies','56kVzNaq','all','minVersion','10639503qaduQU','6zynnYY','17111300NNHDWl','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','5xfhlMs','sdk','coerce','utf-8'];a337_0x5016=function(){return _0xe446fe;};return a337_0x5016();}import a337_0x2810f3 from'node:fs';import a337_0x3cfc71 from'node:path';import a337_0x599c30 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a337_0x1f068f(0xcc);function isNonNumericVersion(_0x312e69){const _0x3dd182=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3dd182['some'](_0x4c2551=>_0x4c2551['test'](_0x312e69));}function getInstalledVersion(_0x201175,_0xffe5b1){const _0xabab3e=a337_0x1f068f;try{const _0x352289=a337_0x3cfc71['join'](_0x201175,_0xabab3e(0xab),_0xffe5b1,'package.json');if(a337_0x2810f3[_0xabab3e(0xac)](_0x352289)){const _0x349d15=JSON[_0xabab3e(0xc7)](a337_0x2810f3['readFileSync'](_0x352289,_0xabab3e(0xc5)));return _0x349d15[_0xabab3e(0xb0)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xc6613f=a337_0x1f068f;try{const _0x42ddfa=await getCdnConfig();return _0x42ddfa?.[_0xc6613f(0xc3)]?.['node']?.[_0xc6613f(0xb8)]||null;}catch{return null;}}function a337_0x1792(_0x4d76dc,_0x289556){_0x4d76dc=_0x4d76dc-0xaa;const _0x5016a6=a337_0x5016();let _0x1792c3=_0x5016a6[_0x4d76dc];return _0x1792c3;}async function getSdkPackageName(){const _0x3494b6=a337_0x1f068f;try{const _0x242624=await getCdnConfig();return _0x242624?.['sdk']?.[_0x3494b6(0xb3)]?.[_0x3494b6(0xb6)]||'@lovrabet/sdk';}catch{return _0x3494b6(0xb5);}}export async function checkSdkVersion(_0x4fa23b){const _0x12ebe0=a337_0x1f068f,_0xd7ba06=a337_0x3cfc71[_0x12ebe0(0xaf)](_0x4fa23b,'package.json'),[_0x3cb4a8,_0x3251dc]=await Promise[_0x12ebe0(0xbb)]([getSdkStableVersion(),getSdkPackageName()]),_0x3c892a=_0x3cb4a8||FALLBACK_MIN_SDK_VERSION;if(!a337_0x2810f3[_0x12ebe0(0xac)](_0xd7ba06))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};try{const _0x27962a=JSON['parse'](a337_0x2810f3['readFileSync'](_0xd7ba06,_0x12ebe0(0xc6))),_0x44e50e=_0x27962a[_0x12ebe0(0xb9)]||{},_0x1638a6=_0x27962a['devDependencies']||{},_0x5c76b1=_0x44e50e[_0x3251dc]||_0x1638a6[_0x3251dc];if(!_0x5c76b1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};let _0x680710=getInstalledVersion(_0x4fa23b,_0x3251dc);!_0x680710&&(_0x680710=_0x5c76b1);if(isNonNumericVersion(_0x5c76b1))return{'installed':!![],'version':_0x680710,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};const _0x3adc06=a337_0x599c30[_0x12ebe0(0xc4)](_0x680710),_0x2ed25e=a337_0x599c30['coerce'](_0x3c892a),_0x2a95f6=_0x3adc06&&_0x2ed25e?a337_0x599c30['lt'](_0x3adc06,_0x2ed25e):![];return{'installed':!![],'version':_0x680710,'needsUpgrade':_0x2a95f6,'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3c892a,'packageName':_0x3251dc,'stableVersion':_0x3cb4a8};}}export function checkSdkVersionSync(_0x1865ca){const _0x265f12=a337_0x1f068f,_0x2ee6d0=a337_0x3cfc71[_0x265f12(0xaf)](_0x1865ca,_0x265f12(0xb4)),_0x55655b=_0x265f12(0xb5);if(!a337_0x2810f3['existsSync'](_0x2ee6d0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};try{const _0x5d8ce2=JSON['parse'](a337_0x2810f3['readFileSync'](_0x2ee6d0,'utf8')),_0x392ce7=_0x5d8ce2[_0x265f12(0xb9)]||{},_0x613eb0=_0x5d8ce2[_0x265f12(0xcd)]||{},_0x5321f3=_0x392ce7[_0x55655b]||_0x613eb0[_0x55655b];if(!_0x5321f3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};let _0xc22ea=getInstalledVersion(_0x1865ca,_0x55655b);!_0xc22ea&&(_0xc22ea=_0x5321f3);if(isNonNumericVersion(_0x5321f3))return{'installed':!![],'version':_0xc22ea,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};const _0x4d92f0=a337_0x599c30[_0x265f12(0xc4)](_0xc22ea),_0x426173=_0x4d92f0?a337_0x599c30['lt'](_0x4d92f0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xc22ea,'needsUpgrade':_0x426173,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x55655b,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x283e4a){const _0x5cdad9=a337_0x1f068f;if(!_0x283e4a[_0x5cdad9(0xb7)])return;const _0x5c5ede=_0x5cdad9(0xc1),_0x392082='\x1b[0m',_0x540b87=_0x5cdad9(0xc8),_0x8a9795=_0x283e4a[_0x5cdad9(0xb6)]||_0x5cdad9(0xb5),_0x23ab34=_0x283e4a[_0x5cdad9(0xb8)]||_0x283e4a[_0x5cdad9(0xbc)],_0x49c569='npm\x20install\x20'+_0x8a9795+'@'+(_0x23ab34||_0x5cdad9(0xaa));console['log'](),console[_0x5cdad9(0xca)](''+_0x5c5ede+_0x540b87+'↪\x20SDK\x20update\x20available'+_0x392082),console['log'](_0x5c5ede+_0x5cdad9(0xad)+_0x8a9795+'@'+_0x283e4a[_0x5cdad9(0xb0)]+_0x392082),console[_0x5cdad9(0xca)](_0x5c5ede+'\x20\x20\x20Stable\x20version:\x20'+_0x23ab34+_0x392082),console['log'](_0x5c5ede+_0x5cdad9(0xc0)+_0x49c569+_0x392082),console[_0x5cdad9(0xca)]();}
1
+ const a342_0x5e7c8c=a342_0x1c50;(function(_0x584145,_0x1b4907){const _0x618313=a342_0x1c50,_0x3a022d=_0x584145();while(!![]){try{const _0xac9df6=-parseInt(_0x618313(0x1b7))/0x1+-parseInt(_0x618313(0x1da))/0x2*(parseInt(_0x618313(0x1b8))/0x3)+-parseInt(_0x618313(0x1dd))/0x4*(parseInt(_0x618313(0x1cc))/0x5)+parseInt(_0x618313(0x1d9))/0x6*(-parseInt(_0x618313(0x1bf))/0x7)+-parseInt(_0x618313(0x1ba))/0x8+parseInt(_0x618313(0x1c8))/0x9*(-parseInt(_0x618313(0x1c7))/0xa)+parseInt(_0x618313(0x1ca))/0xb*(parseInt(_0x618313(0x1d4))/0xc);if(_0xac9df6===_0x1b4907)break;else _0x3a022d['push'](_0x3a022d['shift']());}catch(_0x59b284){_0x3a022d['push'](_0x3a022d['shift']());}}}(a342_0x2fd6,0x67ef8));import a342_0x33727f from'node:fs';import a342_0x50a7f6 from'node:path';import a342_0xd3fd7e from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a342_0x2fd6(){const _0x46e382=['483550vpSHUo','parse','\x20\x20\x20Upgrade\x20command:\x20','4AdbWyN','all','sdk','13063HVlPgR','3lWiThg','dependencies','425888UfNeHN','latest','↪\x20SDK\x20update\x20available','node_modules','test','77pxyEXJ','utf8','npm\x20install\x20','log','stableVersion','devDependencies','existsSync','utf-8','136140pEXTQO','54JTVaXA','readFileSync','363lVeDGR','packageName','498610PzRIcz','version','coerce','@lovrabet/sdk','1.2.0','needsUpgrade','some','node','414756GMeSXh','package.json','join','\x1b[0m','minVersion','122934EfzefT'];a342_0x2fd6=function(){return _0x46e382;};return a342_0x2fd6();}const FALLBACK_MIN_SDK_VERSION=a342_0x5e7c8c(0x1d0);function isNonNumericVersion(_0x761ae7){const _0x2c9892=a342_0x5e7c8c,_0x210159=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x210159[_0x2c9892(0x1d2)](_0x59eec8=>_0x59eec8[_0x2c9892(0x1be)](_0x761ae7));}function a342_0x1c50(_0x1e0956,_0xe2613d){_0x1e0956=_0x1e0956-0x1b6;const _0x2fd63b=a342_0x2fd6();let _0x1c50b3=_0x2fd63b[_0x1e0956];return _0x1c50b3;}function getInstalledVersion(_0x2e0f76,_0x555042){const _0xd49f90=a342_0x5e7c8c;try{const _0x2447e0=a342_0x50a7f6[_0xd49f90(0x1d6)](_0x2e0f76,_0xd49f90(0x1bd),_0x555042,_0xd49f90(0x1d5));if(a342_0x33727f[_0xd49f90(0x1c5)](_0x2447e0)){const _0x528051=JSON[_0xd49f90(0x1db)](a342_0x33727f['readFileSync'](_0x2447e0,_0xd49f90(0x1c6)));return _0x528051[_0xd49f90(0x1cd)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3a4e3d=a342_0x5e7c8c;try{const _0x45007b=await getCdnConfig();return _0x45007b?.[_0x3a4e3d(0x1b6)]?.[_0x3a4e3d(0x1d3)]?.[_0x3a4e3d(0x1c3)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x106251=a342_0x5e7c8c;try{const _0x3a8f11=await getCdnConfig();return _0x3a8f11?.[_0x106251(0x1b6)]?.[_0x106251(0x1d3)]?.[_0x106251(0x1cb)]||'@lovrabet/sdk';}catch{return _0x106251(0x1cf);}}export async function checkSdkVersion(_0x247985){const _0x2b268a=a342_0x5e7c8c,_0x171b74=a342_0x50a7f6[_0x2b268a(0x1d6)](_0x247985,'package.json'),[_0x26bbf9,_0x53016d]=await Promise[_0x2b268a(0x1de)]([getSdkStableVersion(),getSdkPackageName()]),_0x582903=_0x26bbf9||FALLBACK_MIN_SDK_VERSION;if(!a342_0x33727f['existsSync'](_0x171b74))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x582903,'packageName':_0x53016d,'stableVersion':_0x26bbf9};try{const _0x86ef36=JSON[_0x2b268a(0x1db)](a342_0x33727f[_0x2b268a(0x1c9)](_0x171b74,_0x2b268a(0x1c0))),_0x331d5e=_0x86ef36[_0x2b268a(0x1b9)]||{},_0x5eec93=_0x86ef36['devDependencies']||{},_0x55e9df=_0x331d5e[_0x53016d]||_0x5eec93[_0x53016d];if(!_0x55e9df)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x582903,'packageName':_0x53016d,'stableVersion':_0x26bbf9};let _0x4a7ec1=getInstalledVersion(_0x247985,_0x53016d);!_0x4a7ec1&&(_0x4a7ec1=_0x55e9df);if(isNonNumericVersion(_0x55e9df))return{'installed':!![],'version':_0x4a7ec1,'needsUpgrade':![],'minVersion':_0x582903,'packageName':_0x53016d,'stableVersion':_0x26bbf9};const _0x634d93=a342_0xd3fd7e[_0x2b268a(0x1ce)](_0x4a7ec1),_0x36fd73=a342_0xd3fd7e[_0x2b268a(0x1ce)](_0x582903),_0x522acd=_0x634d93&&_0x36fd73?a342_0xd3fd7e['lt'](_0x634d93,_0x36fd73):![];return{'installed':!![],'version':_0x4a7ec1,'needsUpgrade':_0x522acd,'minVersion':_0x582903,'packageName':_0x53016d,'stableVersion':_0x26bbf9};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x582903,'packageName':_0x53016d,'stableVersion':_0x26bbf9};}}export function checkSdkVersionSync(_0x37fec8){const _0x5ecca4=a342_0x5e7c8c,_0x5a9a73=a342_0x50a7f6[_0x5ecca4(0x1d6)](_0x37fec8,'package.json'),_0x2ec799=_0x5ecca4(0x1cf);if(!a342_0x33727f[_0x5ecca4(0x1c5)](_0x5a9a73))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ec799,'stableVersion':null};try{const _0x20d35e=JSON[_0x5ecca4(0x1db)](a342_0x33727f[_0x5ecca4(0x1c9)](_0x5a9a73,'utf8')),_0x4e7d48=_0x20d35e[_0x5ecca4(0x1b9)]||{},_0x442733=_0x20d35e[_0x5ecca4(0x1c4)]||{},_0x139fc3=_0x4e7d48[_0x2ec799]||_0x442733[_0x2ec799];if(!_0x139fc3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ec799,'stableVersion':null};let _0x916f92=getInstalledVersion(_0x37fec8,_0x2ec799);!_0x916f92&&(_0x916f92=_0x139fc3);if(isNonNumericVersion(_0x139fc3))return{'installed':!![],'version':_0x916f92,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ec799,'stableVersion':null};const _0x4eb834=a342_0xd3fd7e['coerce'](_0x916f92),_0x4eef59=_0x4eb834?a342_0xd3fd7e['lt'](_0x4eb834,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x916f92,'needsUpgrade':_0x4eef59,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ec799,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2ec799,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5038d8){const _0x5ae5f9=a342_0x5e7c8c;if(!_0x5038d8[_0x5ae5f9(0x1d1)])return;const _0x23b6d5='\x1b[33m',_0x15b2c1=_0x5ae5f9(0x1d7),_0x476969='\x1b[1m',_0x75fb7e=_0x5038d8[_0x5ae5f9(0x1cb)]||'@lovrabet/sdk',_0x43686e=_0x5038d8['stableVersion']||_0x5038d8[_0x5ae5f9(0x1d8)],_0x2d9676=_0x5ae5f9(0x1c1)+_0x75fb7e+'@'+(_0x43686e||_0x5ae5f9(0x1bb));console[_0x5ae5f9(0x1c2)](),console[_0x5ae5f9(0x1c2)](''+_0x23b6d5+_0x476969+_0x5ae5f9(0x1bc)+_0x15b2c1),console[_0x5ae5f9(0x1c2)](_0x23b6d5+'\x20\x20\x20Current\x20version:\x20'+_0x75fb7e+'@'+_0x5038d8[_0x5ae5f9(0x1cd)]+_0x15b2c1),console['log'](_0x23b6d5+'\x20\x20\x20Stable\x20version:\x20'+_0x43686e+_0x15b2c1),console[_0x5ae5f9(0x1c2)](_0x23b6d5+_0x5ae5f9(0x1dc)+_0x2d9676+_0x15b2c1),console[_0x5ae5f9(0x1c2)]();}
@@ -1 +1 @@
1
- (function(_0x1ed7a3,_0x503cfa){const _0x310adc=a338_0x2846,_0x811210=_0x1ed7a3();while(!![]){try{const _0x4e9174=parseInt(_0x310adc(0x9c))/0x1+-parseInt(_0x310adc(0xb4))/0x2+parseInt(_0x310adc(0xb1))/0x3+-parseInt(_0x310adc(0xc0))/0x4+parseInt(_0x310adc(0xbc))/0x5*(parseInt(_0x310adc(0xa9))/0x6)+-parseInt(_0x310adc(0xb8))/0x7+-parseInt(_0x310adc(0xa3))/0x8;if(_0x4e9174===_0x503cfa)break;else _0x811210['push'](_0x811210['shift']());}catch(_0x3d99fc){_0x811210['push'](_0x811210['shift']());}}}(a338_0x3bd2,0xcd3d6));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a338_0x2323fd from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a338_0x2846(_0x227d56,_0x3a5577){_0x227d56=_0x227d56-0x9b;const _0x3bd243=a338_0x3bd2();let _0x284695=_0x3bd243[_0x227d56];return _0x284695;}export function getCliUpgradeCommand(_0x29396c){const _0x3a3582=a338_0x2846,_0x3fd87d=_0x29396c['stableVersion']||_0x3a3582(0xaf);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x3fd87d;}function getCurrentCliVersion(){const _0x17ec93=a338_0x2846;try{const _0x4804f8=fileURLToPath(import.meta.url),_0x392123=resolve(dirname(_0x4804f8),_0x17ec93(0xb0)),_0x1468e7=resolve(_0x392123,_0x17ec93(0xa2)),_0x5ce2fa=JSON[_0x17ec93(0xbb)](readFileSync(_0x1468e7,_0x17ec93(0xbe)));return _0x5ce2fa[_0x17ec93(0x9f)]||_0x17ec93(0xa6);}catch{return _0x17ec93(0xa6);}}export async function checkCliVersion(){const _0x117cc1=a338_0x2846,_0x490414=getCurrentCliVersion(),_0x5aaa88=await getCliVersionPolicy(),_0x4cdf63=_0x5aaa88?.[_0x117cc1(0xa5)]||null,_0x1010d0=_0x5aaa88?.[_0x117cc1(0xb3)]||null;let _0x3fec1e=![],_0x3a066d=![];const _0x25cc84=a338_0x2323fd[_0x117cc1(0xae)](_0x490414);if(_0x25cc84&&_0x4cdf63)try{const _0x4eb54c=a338_0x2323fd[_0x117cc1(0xae)](_0x4cdf63);if(_0x4eb54c)_0x3fec1e=a338_0x2323fd['lt'](_0x25cc84,_0x4eb54c);}catch{}if(_0x25cc84&&_0x1010d0)try{const _0x270f61=a338_0x2323fd[_0x117cc1(0xae)](_0x1010d0);if(_0x270f61)_0x3a066d=a338_0x2323fd['lt'](_0x25cc84,_0x270f61);}catch{}return _0x3a066d&&(_0x3fec1e=!![]),{'currentVersion':_0x490414,'stableVersion':_0x4cdf63,'minimumVersion':_0x1010d0,'needsUpgrade':_0x3fec1e,'belowMinimum':_0x3a066d,'isPreRelease':![],'upgradeMessage':_0x5aaa88?.['upgradeMessage'],'minimumVersionMessage':_0x5aaa88?.['minimumVersionMessage']};}function a338_0x3bd2(){const _0x32b893=['currentVersion','↪\x20New\x20version\x20available','filter','Current\x20version:\x20','coerce','latest','../..','4897524pQhFyY','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersion','230946XHtqOF','belowMinimum','\x20\x20\x20Recommended\x20stable:\x20','log','2155888qNhwLC','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20','parse','1630ZkWgGo','\x20\x20\x20Upgrade\x20command:\x20','utf-8','\x1b[1m','3337532aIkPDb','\x20\x20\x20Minimum\x20supported:\x20','\x1b[31m','110305rBIFrx','\x1b[0m','needsUpgrade','version','Minimum\x20supported:\x20','minimumVersionMessage','package.json','8040280ZzGTjP','↪\x20Critical\x20CLI\x20upgrade\x20required','stableVersion','1.0.0','\x1b[33m','upgradeMessage','25044GUGovQ'];a338_0x3bd2=function(){return _0x32b893;};return a338_0x3bd2();}export function printCliUpgradeWarning(_0x4103d3){const _0x5aac94=a338_0x2846;if(!_0x4103d3[_0x5aac94(0x9e)]&&!_0x4103d3['belowMinimum'])return;const _0x4a2993=_0x5aac94(0x9b),_0x5ad808=_0x5aac94(0xa7),_0x22e7f7=_0x5aac94(0x9d),_0x2582f5=_0x5aac94(0xbf),_0x5938fc=getCliUpgradeCommand(_0x4103d3);console[_0x5aac94(0xb7)](),_0x4103d3[_0x5aac94(0xb5)]?(console[_0x5aac94(0xb7)](''+_0x4a2993+_0x2582f5+_0x5aac94(0xa4)+_0x22e7f7),console['log'](_0x4a2993+_0x5aac94(0xb9)+_0x4103d3[_0x5aac94(0xaa)]+_0x22e7f7),_0x4103d3['minimumVersion']&&console['log'](_0x4a2993+_0x5aac94(0xc1)+_0x4103d3[_0x5aac94(0xb3)]+_0x22e7f7),_0x4103d3[_0x5aac94(0xa5)]&&_0x4103d3[_0x5aac94(0xa5)]!==_0x4103d3[_0x5aac94(0xb3)]&&console[_0x5aac94(0xb7)](_0x4a2993+_0x5aac94(0xb6)+_0x4103d3[_0x5aac94(0xa5)]+_0x22e7f7),_0x4103d3['minimumVersionMessage']&&console[_0x5aac94(0xb7)](_0x4a2993+_0x5aac94(0xba)+_0x4103d3['minimumVersionMessage']+_0x22e7f7),console[_0x5aac94(0xb7)](_0x4a2993+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5938fc+_0x22e7f7)):(console[_0x5aac94(0xb7)](''+_0x5ad808+_0x2582f5+_0x5aac94(0xab)+_0x22e7f7),console[_0x5aac94(0xb7)](_0x5ad808+_0x5aac94(0xb9)+_0x4103d3[_0x5aac94(0xaa)]+_0x22e7f7),console[_0x5aac94(0xb7)](_0x5ad808+'\x20\x20\x20Stable\x20version:\x20'+_0x4103d3[_0x5aac94(0xa5)]+_0x22e7f7),_0x4103d3[_0x5aac94(0xa8)]&&console['log'](_0x5ad808+_0x5aac94(0xba)+_0x4103d3[_0x5aac94(0xa8)]+_0x22e7f7),console['log'](_0x5ad808+_0x5aac94(0xbd)+_0x5938fc+_0x22e7f7)),console['log']();}export function assertCliVersionSupported(_0xd73286){const _0x4b2e2f=a338_0x2846;if(!_0xd73286[_0x4b2e2f(0xb5)])return;const _0x3bed33=[_0xd73286[_0x4b2e2f(0xa1)],_0x4b2e2f(0xad)+_0xd73286[_0x4b2e2f(0xaa)],_0xd73286[_0x4b2e2f(0xb3)]?_0x4b2e2f(0xa0)+_0xd73286['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0xd73286)][_0x4b2e2f(0xac)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x4b2e2f(0xb2),_0x3bed33);}
1
+ (function(_0x9c4ca9,_0x3c2067){const _0x18920c=a343_0x577e,_0x40b123=_0x9c4ca9();while(!![]){try{const _0x42d7f3=parseInt(_0x18920c(0xb3))/0x1*(-parseInt(_0x18920c(0xb5))/0x2)+parseInt(_0x18920c(0xcc))/0x3*(parseInt(_0x18920c(0xb9))/0x4)+-parseInt(_0x18920c(0xcb))/0x5*(parseInt(_0x18920c(0xab))/0x6)+-parseInt(_0x18920c(0xbc))/0x7*(parseInt(_0x18920c(0xb4))/0x8)+-parseInt(_0x18920c(0xc5))/0x9*(-parseInt(_0x18920c(0xbe))/0xa)+parseInt(_0x18920c(0xae))/0xb*(parseInt(_0x18920c(0xbd))/0xc)+parseInt(_0x18920c(0xbf))/0xd;if(_0x42d7f3===_0x3c2067)break;else _0x40b123['push'](_0x40b123['shift']());}catch(_0x448674){_0x40b123['push'](_0x40b123['shift']());}}}(a343_0x42da,0x41a94));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a343_0x42da(){const _0x3ef37d=['\x20\x20\x20','minimumVersionMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','currentVersion','1706740dJceoG','21999moWcPk','stableVersion','utf-8','Current\x20version:\x20','\x1b[0m','parse','\x1b[33m','\x20\x20\x20Upgrade\x20command:\x20','Upgrade\x20command:\x20','6wMZIuQ','log','\x1b[31m','934439JWeolf','npm\x20install\x20-g\x20','1.0.0','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','1KkxZxP','56VgQjzP','850228YzXQgM','validation','upgradeMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','120KUjKEn','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','97034OsLkMB','12dBQTHi','40gcWLDZ','6943677OqXRwO','needsUpgrade','Minimum\x20supported:\x20','package.json','latest','minimumVersion','660096uLSRzm','belowMinimum'];a343_0x42da=function(){return _0x3ef37d;};return a343_0x42da();}import{fileURLToPath}from'node:url';import a343_0x36964d from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a343_0x577e(_0x1d79b3,_0x1f67d1){_0x1d79b3=_0x1d79b3-0xaa;const _0x42da87=a343_0x42da();let _0x577e60=_0x42da87[_0x1d79b3];return _0x577e60;}export function getCliUpgradeCommand(_0x24041f){const _0x28225b=a343_0x577e,_0x158284=_0x24041f['stableVersion']||_0x28225b(0xc3);return _0x28225b(0xaf)+NPM_PACKAGE_NAME+'@'+_0x158284;}function getCurrentCliVersion(){const _0x2b6e40=a343_0x577e;try{const _0x185f22=fileURLToPath(import.meta.url),_0x1a8f63=resolve(dirname(_0x185f22),'../..'),_0x404ef1=resolve(_0x1a8f63,_0x2b6e40(0xc2)),_0x3c1813=JSON[_0x2b6e40(0xd1)](readFileSync(_0x404ef1,_0x2b6e40(0xce)));return _0x3c1813['version']||_0x2b6e40(0xb0);}catch{return _0x2b6e40(0xb0);}}export async function checkCliVersion(){const _0x158c8e=a343_0x577e,_0x3ff12e=getCurrentCliVersion(),_0x3daa4e=await getCliVersionPolicy(),_0x59c4f6=_0x3daa4e?.[_0x158c8e(0xcd)]||null,_0x4ec247=_0x3daa4e?.['minimumVersion']||null;let _0x5a9840=![],_0x37a622=![];const _0x2bac1b=a343_0x36964d['coerce'](_0x3ff12e);if(_0x2bac1b&&_0x59c4f6)try{const _0x3021ab=a343_0x36964d[_0x158c8e(0xb2)](_0x59c4f6);if(_0x3021ab)_0x5a9840=a343_0x36964d['lt'](_0x2bac1b,_0x3021ab);}catch{}if(_0x2bac1b&&_0x4ec247)try{const _0x2571b3=a343_0x36964d['coerce'](_0x4ec247);if(_0x2571b3)_0x37a622=a343_0x36964d['lt'](_0x2bac1b,_0x2571b3);}catch{}return _0x37a622&&(_0x5a9840=!![]),{'currentVersion':_0x3ff12e,'stableVersion':_0x59c4f6,'minimumVersion':_0x4ec247,'needsUpgrade':_0x5a9840,'belowMinimum':_0x37a622,'isPreRelease':![],'upgradeMessage':_0x3daa4e?.[_0x158c8e(0xb7)],'minimumVersionMessage':_0x3daa4e?.[_0x158c8e(0xc8)]};}export function printCliUpgradeWarning(_0x2b0db5){const _0x209326=a343_0x577e;if(!_0x2b0db5[_0x209326(0xc0)]&&!_0x2b0db5[_0x209326(0xc6)])return;const _0x4ea23a=_0x209326(0xad),_0x40aa80=_0x209326(0xd2),_0x2d0a53=_0x209326(0xd0),_0x573751='\x1b[1m',_0x235992=getCliUpgradeCommand(_0x2b0db5);console[_0x209326(0xac)](),_0x2b0db5['belowMinimum']?(console[_0x209326(0xac)](''+_0x4ea23a+_0x573751+_0x209326(0xc9)+_0x2d0a53),console[_0x209326(0xac)](_0x4ea23a+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2b0db5[_0x209326(0xca)]+_0x2d0a53),_0x2b0db5['minimumVersion']&&console[_0x209326(0xac)](_0x4ea23a+_0x209326(0xbb)+_0x2b0db5['minimumVersion']+_0x2d0a53),_0x2b0db5[_0x209326(0xcd)]&&_0x2b0db5[_0x209326(0xcd)]!==_0x2b0db5['minimumVersion']&&console[_0x209326(0xac)](_0x4ea23a+'\x20\x20\x20Recommended\x20stable:\x20'+_0x2b0db5[_0x209326(0xcd)]+_0x2d0a53),_0x2b0db5[_0x209326(0xc8)]&&console[_0x209326(0xac)](_0x4ea23a+_0x209326(0xc7)+_0x2b0db5[_0x209326(0xc8)]+_0x2d0a53),console[_0x209326(0xac)](_0x4ea23a+_0x209326(0xd3)+_0x235992+_0x2d0a53)):(console['log'](''+_0x40aa80+_0x573751+'↪\x20New\x20version\x20available'+_0x2d0a53),console[_0x209326(0xac)](_0x40aa80+_0x209326(0xb1)+_0x2b0db5[_0x209326(0xca)]+_0x2d0a53),console['log'](_0x40aa80+_0x209326(0xba)+_0x2b0db5[_0x209326(0xcd)]+_0x2d0a53),_0x2b0db5['upgradeMessage']&&console[_0x209326(0xac)](_0x40aa80+_0x209326(0xc7)+_0x2b0db5[_0x209326(0xb7)]+_0x2d0a53),console[_0x209326(0xac)](_0x40aa80+_0x209326(0xd3)+_0x235992+_0x2d0a53)),console[_0x209326(0xac)]();}export function assertCliVersionSupported(_0x590030){const _0x2c8a9a=a343_0x577e;if(!_0x590030[_0x2c8a9a(0xc6)])return;const _0x1eb5a0=[_0x590030[_0x2c8a9a(0xc8)],_0x2c8a9a(0xcf)+_0x590030[_0x2c8a9a(0xca)],_0x590030[_0x2c8a9a(0xc4)]?_0x2c8a9a(0xc1)+_0x590030[_0x2c8a9a(0xc4)]:null,_0x2c8a9a(0xaa)+getCliUpgradeCommand(_0x590030)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x2c8a9a(0xb6)](_0x2c8a9a(0xb8),_0x1eb5a0);}
@@ -1 +1 @@
1
- (function(_0x5e851d,_0x28cbaa){const _0x296625=a339_0x4a20,_0x40571b=_0x5e851d();while(!![]){try{const _0x4169f3=-parseInt(_0x296625(0x176))/0x1+-parseInt(_0x296625(0x17b))/0x2*(parseInt(_0x296625(0x178))/0x3)+-parseInt(_0x296625(0x172))/0x4+parseInt(_0x296625(0x182))/0x5*(-parseInt(_0x296625(0x17a))/0x6)+-parseInt(_0x296625(0x181))/0x7+parseInt(_0x296625(0x17c))/0x8+-parseInt(_0x296625(0x189))/0x9*(-parseInt(_0x296625(0x17d))/0xa);if(_0x4169f3===_0x28cbaa)break;else _0x40571b['push'](_0x40571b['shift']());}catch(_0x51f7b1){_0x40571b['push'](_0x40571b['shift']());}}}(a339_0x3b42,0x9deeb));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a339_0x257162 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x4bae94){const _0x548197=a339_0x4a20,_0x21b9b9=a339_0x257162[_0x548197(0x174)](_0x4bae94);return _0x21b9b9?a339_0x257162[_0x548197(0x187)](_0x21b9b9)?.[0x0]==='beta':![];}export function resolveProjectTemplateDescriptor(_0x36e274,_0x547c17){if(isBetaCliVersion(_0x547c17))return _0x36e274['beta']?.['projectTemplate']??_0x36e274['projectTemplate'];return _0x36e274['projectTemplate'];}function pickString(_0x7ee97e){const _0x1293fa=a339_0x4a20;return typeof _0x7ee97e===_0x1293fa(0x175)&&_0x7ee97e['trim']()['length']>0x0?_0x7ee97e[_0x1293fa(0x183)]():null;}function normalizeCliVersionPolicy(_0x1ac378){const _0x10254f=a339_0x4a20;if(!_0x1ac378||typeof _0x1ac378!==_0x10254f(0x179))return null;const _0x467a73=_0x1ac378,_0x29a34b=_0x467a73[_0x10254f(0x188)]&&typeof _0x467a73[_0x10254f(0x188)]==='object'?_0x467a73[_0x10254f(0x188)]:_0x467a73,_0x3bb3bc=pickString(_0x29a34b[_0x10254f(0x17e)])||pickString(_0x29a34b[_0x10254f(0x184)])||pickString(_0x29a34b[_0x10254f(0x177)]),_0x52a6f4=pickString(_0x29a34b[_0x10254f(0x180)])||pickString(_0x29a34b['minVersion']);if(!_0x3bb3bc&&!_0x52a6f4)return null;return{'stableVersion':_0x3bb3bc,'minimumVersion':_0x52a6f4,'upgradeMessage':pickString(_0x29a34b[_0x10254f(0x171)])||undefined,'minimumVersionMessage':pickString(_0x29a34b[_0x10254f(0x185)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x4426cc){const _0x596f83=a339_0x4a20,_0x7870e0=new AbortController(),_0x257657=setTimeout(()=>_0x7870e0[_0x596f83(0x173)](),FETCH_TIMEOUT_MS);try{const _0x5cc180=await fetch(_0x4426cc,{'headers':{'Accept':_0x596f83(0x17f)},'signal':_0x7870e0['signal']});if(!_0x5cc180['ok'])return null;const _0x102182=await _0x5cc180['json']();return _0x102182&&typeof _0x102182===_0x596f83(0x179)?_0x102182:null;}catch{return null;}finally{clearTimeout(_0x257657);}}function a339_0x3b42(){const _0x531b99=['abort','valid','string','728224rQmPXN','recommendedVersion','852AZsjhE','object','3264rJmYSn','3112IlMgDP','771688qgWSru','30gZSSfo','stableVersion','application/json','minimumVersion','3494029moEBeX','6605qMuAuW','trim','latestVersion','minimumVersionMessage','now','prerelease','cli','12460662xkowsu','upgradeMessage','4860900rXRHiJ'];a339_0x3b42=function(){return _0x531b99;};return a339_0x3b42();}function a339_0x4a20(_0x3d4b61,_0x11834b){_0x3d4b61=_0x3d4b61-0x171;const _0x3b4232=a339_0x3b42();let _0x4a203b=_0x3b4232[_0x3d4b61];return _0x4a203b;}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x1557f2=await getRabetbaseCdnConfig();return _0x1557f2?{'config':_0x1557f2,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x131422=a339_0x4a20,_0x6e1ddc=Date[_0x131422(0x186)]();if(hasCachedConfig){const _0x1da297=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x6e1ddc-cacheTime<_0x1da297)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x6e1ddc,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x4ee64d,_0xd7636){const _0xe38ab=a344_0x4264,_0x1bfd0c=_0x4ee64d();while(!![]){try{const _0x9f0865=-parseInt(_0xe38ab(0x120))/0x1+-parseInt(_0xe38ab(0x135))/0x2+-parseInt(_0xe38ab(0x124))/0x3+-parseInt(_0xe38ab(0x12b))/0x4*(parseInt(_0xe38ab(0x132))/0x5)+-parseInt(_0xe38ab(0x123))/0x6+parseInt(_0xe38ab(0x121))/0x7*(parseInt(_0xe38ab(0x125))/0x8)+parseInt(_0xe38ab(0x12d))/0x9;if(_0x9f0865===_0xd7636)break;else _0x1bfd0c['push'](_0x1bfd0c['shift']());}catch(_0x13a3bc){_0x1bfd0c['push'](_0x1bfd0c['shift']());}}}(a344_0x2f28,0x55e54));import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a344_0x27a396 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x2cbc68){const _0xb6f805=a344_0x4264,_0x5a0064=a344_0x27a396[_0xb6f805(0x12e)](_0x2cbc68);return _0x5a0064?a344_0x27a396[_0xb6f805(0x130)](_0x5a0064)?.[0x0]===_0xb6f805(0x137):![];}export function resolveProjectTemplateDescriptor(_0xeb4923,_0x58a627){const _0x55a245=a344_0x4264;if(isBetaCliVersion(_0x58a627))return _0xeb4923[_0x55a245(0x137)]?.[_0x55a245(0x136)]??_0xeb4923[_0x55a245(0x136)];return _0xeb4923[_0x55a245(0x136)];}function pickString(_0x4e07c8){const _0x4e0a60=a344_0x4264;return typeof _0x4e07c8===_0x4e0a60(0x129)&&_0x4e07c8['trim']()[_0x4e0a60(0x133)]>0x0?_0x4e07c8[_0x4e0a60(0x134)]():null;}function normalizeCliVersionPolicy(_0x44fad5){const _0x364ae1=a344_0x4264;if(!_0x44fad5||typeof _0x44fad5!==_0x364ae1(0x127))return null;const _0xa88770=_0x44fad5,_0x3bebdc=_0xa88770[_0x364ae1(0x12a)]&&typeof _0xa88770[_0x364ae1(0x12a)]===_0x364ae1(0x127)?_0xa88770[_0x364ae1(0x12a)]:_0xa88770,_0x28c8f5=pickString(_0x3bebdc['stableVersion'])||pickString(_0x3bebdc[_0x364ae1(0x122)])||pickString(_0x3bebdc[_0x364ae1(0x126)]),_0x170953=pickString(_0x3bebdc['minimumVersion'])||pickString(_0x3bebdc[_0x364ae1(0x131)]);if(!_0x28c8f5&&!_0x170953)return null;return{'stableVersion':_0x28c8f5,'minimumVersion':_0x170953,'upgradeMessage':pickString(_0x3bebdc[_0x364ae1(0x12f)])||undefined,'minimumVersionMessage':pickString(_0x3bebdc['minimumVersionMessage'])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x5535d4){const _0x1b60f9=a344_0x4264,_0x3b422d=new AbortController(),_0x5b2fed=setTimeout(()=>_0x3b422d[_0x1b60f9(0x128)](),FETCH_TIMEOUT_MS);try{const _0x36de88=await fetch(_0x5535d4,{'headers':{'Accept':'application/json'},'signal':_0x3b422d[_0x1b60f9(0x12c)]});if(!_0x36de88['ok'])return null;const _0xbb6c43=await _0x36de88['json']();return _0xbb6c43&&typeof _0xbb6c43==='object'?_0xbb6c43:null;}catch{return null;}finally{clearTimeout(_0x5b2fed);}}function a344_0x2f28(){const _0xfd903=['valid','upgradeMessage','prerelease','minVersion','4165KZtAWe','length','trim','1316688wcXMhm','projectTemplate','beta','492115LWxAoB','35cCrjwY','latestVersion','1576410DTYFuH','1782231WmGUBi','711976ptAdmC','recommendedVersion','object','abort','string','cli','336LvGKBe','signal','17856774JIYqxr'];a344_0x2f28=function(){return _0xfd903;};return a344_0x2f28();}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x50d602=await getRabetbaseCdnConfig();return _0x50d602?{'config':_0x50d602,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0xb0f571=Date['now']();if(hasCachedConfig){const _0x6e7369=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xb0f571-cacheTime<_0x6e7369)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0xb0f571,hasCachedConfig=!![],cachedConfig;}function a344_0x4264(_0x56ddeb,_0x334efb){_0x56ddeb=_0x56ddeb-0x120;const _0x2f287b=a344_0x2f28();let _0x426465=_0x2f287b[_0x56ddeb];return _0x426465;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a340_0x3f2457=a340_0x4799;(function(_0x512880,_0x21b1ed){const _0x39c008=a340_0x4799,_0x2f3939=_0x512880();while(!![]){try{const _0x540f22=-parseInt(_0x39c008(0x1a2))/0x1+-parseInt(_0x39c008(0x1a8))/0x2*(parseInt(_0x39c008(0x1a6))/0x3)+parseInt(_0x39c008(0x19f))/0x4+-parseInt(_0x39c008(0x1a0))/0x5+parseInt(_0x39c008(0x1a7))/0x6*(parseInt(_0x39c008(0x1a9))/0x7)+parseInt(_0x39c008(0x19d))/0x8*(-parseInt(_0x39c008(0x1a4))/0x9)+parseInt(_0x39c008(0x1a5))/0xa;if(_0x540f22===_0x21b1ed)break;else _0x2f3939['push'](_0x2f3939['shift']());}catch(_0x3046dc){_0x2f3939['push'](_0x2f3939['shift']());}}}(a340_0x115e,0xcf4bb));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a340_0x531fc6,getMultiAppConfigs as a340_0x560e7c,getTemplateBaseUrl as a340_0x236a5c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x33d7fc){const _0x3225e3=a340_0x4799,_0x581d65=readRawConfig(_0x33d7fc);return _0x581d65[_0x3225e3(0x1a3)]&&typeof _0x581d65[_0x3225e3(0x1a3)]===_0x3225e3(0x19e)&&initEnv(_0x581d65['env']),_0x581d65;}export function getConfigAppCode(){return a340_0x531fc6();}function a340_0x4799(_0x224585,_0x126b78){_0x224585=_0x224585-0x19d;const _0x115eda=a340_0x115e();let _0x4799fc=_0x115eda[_0x224585];return _0x4799fc;}function a340_0x115e(){const _0xa36da5=['511DcLvPr','2518072WcQXSA','string','4842680YNRvSM','7398230tmpRhX','project','1239884AfcxVv','env','9ZCToeB','26697770rRydsi','3xBrCkt','96546xpvNLq','2343436BZRHrA'];a340_0x115e=function(){return _0xa36da5;};return a340_0x115e();}export function getMultiAppConfigs(_0x291edc=a340_0x3f2457(0x1a1)){return a340_0x560e7c(_0x291edc);}export function getTemplateBaseUrl(){return a340_0x236a5c();}
1
+ const a345_0x1cd73b=a345_0x401f;(function(_0x5235c5,_0x2838f7){const _0x5c0146=a345_0x401f,_0x2d980c=_0x5235c5();while(!![]){try{const _0x40b541=-parseInt(_0x5c0146(0x10d))/0x1*(-parseInt(_0x5c0146(0x108))/0x2)+parseInt(_0x5c0146(0x109))/0x3*(-parseInt(_0x5c0146(0x112))/0x4)+parseInt(_0x5c0146(0x10b))/0x5*(-parseInt(_0x5c0146(0x10c))/0x6)+parseInt(_0x5c0146(0x10e))/0x7+-parseInt(_0x5c0146(0x111))/0x8+parseInt(_0x5c0146(0x110))/0x9+-parseInt(_0x5c0146(0x113))/0xa;if(_0x40b541===_0x2838f7)break;else _0x2d980c['push'](_0x2d980c['shift']());}catch(_0x239215){_0x2d980c['push'](_0x2d980c['shift']());}}}(a345_0x3260,0x1cfe0));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a345_0x253724,getMultiAppConfigs as a345_0x47fa26,getTemplateBaseUrl as a345_0x271d91}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x53d224){const _0xc99d5=a345_0x401f,_0x5a393e=readRawConfig(_0x53d224);return _0x5a393e[_0xc99d5(0x10f)]&&typeof _0x5a393e[_0xc99d5(0x10f)]==='string'&&initEnv(_0x5a393e['env']),_0x5a393e;}export function getConfigAppCode(){return a345_0x253724();}export function getMultiAppConfigs(_0x397c09=a345_0x1cd73b(0x10a)){return a345_0x47fa26(_0x397c09);}function a345_0x401f(_0x309ccb,_0x46650e){_0x309ccb=_0x309ccb-0x108;const _0x32602b=a345_0x3260();let _0x401fd1=_0x32602b[_0x309ccb];return _0x401fd1;}function a345_0x3260(){const _0x7993a2=['976840QXNtmo','21694GJEhcY','27HXMNen','project','65auIcGI','11094adOUMn','8EcBxws','1549695jkCvyt','env','1302930GnbAco','939272IPoBvX','42244ZQDyJi'];a345_0x3260=function(){return _0x7993a2;};return a345_0x3260();}export function getTemplateBaseUrl(){return a345_0x271d91();}
@@ -1 +1 @@
1
- (function(_0x572bb0,_0x2e5f8e){const _0x243dfc=a341_0x15b9,_0x40e042=_0x572bb0();while(!![]){try{const _0x239ef1=-parseInt(_0x243dfc(0xdf))/0x1*(parseInt(_0x243dfc(0xe2))/0x2)+parseInt(_0x243dfc(0xe6))/0x3+parseInt(_0x243dfc(0xd8))/0x4*(parseInt(_0x243dfc(0xe1))/0x5)+-parseInt(_0x243dfc(0xe0))/0x6*(-parseInt(_0x243dfc(0xda))/0x7)+parseInt(_0x243dfc(0xe3))/0x8*(-parseInt(_0x243dfc(0xde))/0x9)+parseInt(_0x243dfc(0xe5))/0xa*(parseInt(_0x243dfc(0xdd))/0xb)+parseInt(_0x243dfc(0xe4))/0xc;if(_0x239ef1===_0x2e5f8e)break;else _0x40e042['push'](_0x40e042['shift']());}catch(_0x174e7e){_0x40e042['push'](_0x40e042['shift']());}}}(a341_0xaff9,0x4ffcc));function a341_0x15b9(_0x16de87,_0x33a675){_0x16de87=_0x16de87-0xd8;const _0xaff9dd=a341_0xaff9();let _0x15b97b=_0xaff9dd[_0x16de87];return _0x15b97b;}function a341_0xaff9(){const _0x1f1401=['20itUWge','868797XzBSgQ','166568LDmJXj','isFinite','161QxgjkC','number','trim','2844776mheBpg','4203OfOJHw','19187cDZPyX','9564WdahNv','25BDFxjw','64RSkFXk','10136ffLQkz','5779176ZzlTTz'];a341_0xaff9=function(){return _0x1f1401;};return a341_0xaff9();}function toFiniteNumber(_0x2a46ee){const _0x1f9201=a341_0x15b9;if(typeof _0x2a46ee===_0x1f9201(0xdb)&&Number['isFinite'](_0x2a46ee))return _0x2a46ee;if(typeof _0x2a46ee==='string'){const _0x23550c=_0x2a46ee[_0x1f9201(0xdc)]();if(!_0x23550c)return undefined;const _0x5724c1=Number(_0x23550c);if(Number[_0x1f9201(0xd9)](_0x5724c1))return _0x5724c1;}return undefined;}export function normalizeEntityWithIdResponse(_0x1199f4){const _0x4b673b=toFiniteNumber(_0x1199f4);if(_0x4b673b!==undefined)return{'id':_0x4b673b,'entity':{'id':_0x4b673b}};if(!_0x1199f4||typeof _0x1199f4!=='object')return{'id':undefined,'entity':{}};const _0x122430={..._0x1199f4},_0x2e2595=toFiniteNumber(_0x122430['id']);return _0x2e2595!==undefined&&(_0x122430['id']=_0x2e2595),{'id':_0x2e2595,'entity':_0x122430};}
1
+ (function(_0x1b2b76,_0x38932c){const _0x47dcf6=a346_0x3955,_0x4aa92b=_0x1b2b76();while(!![]){try{const _0x4e14dc=parseInt(_0x47dcf6(0x8d))/0x1*(parseInt(_0x47dcf6(0x90))/0x2)+parseInt(_0x47dcf6(0x8a))/0x3+parseInt(_0x47dcf6(0x93))/0x4*(-parseInt(_0x47dcf6(0x91))/0x5)+parseInt(_0x47dcf6(0x92))/0x6+parseInt(_0x47dcf6(0x94))/0x7+parseInt(_0x47dcf6(0x89))/0x8+-parseInt(_0x47dcf6(0x8c))/0x9;if(_0x4e14dc===_0x38932c)break;else _0x4aa92b['push'](_0x4aa92b['shift']());}catch(_0x4c1f45){_0x4aa92b['push'](_0x4aa92b['shift']());}}}(a346_0x2a88,0x23961));function toFiniteNumber(_0x2bd3b8){const _0x3312ab=a346_0x3955;if(typeof _0x2bd3b8===_0x3312ab(0x8f)&&Number[_0x3312ab(0x8b)](_0x2bd3b8))return _0x2bd3b8;if(typeof _0x2bd3b8===_0x3312ab(0x8e)){const _0x393b99=_0x2bd3b8['trim']();if(!_0x393b99)return undefined;const _0x1beec2=Number(_0x393b99);if(Number[_0x3312ab(0x8b)](_0x1beec2))return _0x1beec2;}return undefined;}function a346_0x2a88(){const _0x82bd8e=['1392408JvhhEJ','1580DOJbkc','639653qkqAKu','1525264GQnPEO','781605ahKjis','isFinite','4367115vzpMZt','36871FrErFS','string','number','2kffXvN','2285aISGfz'];a346_0x2a88=function(){return _0x82bd8e;};return a346_0x2a88();}function a346_0x3955(_0x273716,_0x1183c1){_0x273716=_0x273716-0x89;const _0x2a88e7=a346_0x2a88();let _0x395525=_0x2a88e7[_0x273716];return _0x395525;}export function normalizeEntityWithIdResponse(_0x130f0d){const _0x33b51f=toFiniteNumber(_0x130f0d);if(_0x33b51f!==undefined)return{'id':_0x33b51f,'entity':{'id':_0x33b51f}};if(!_0x130f0d||typeof _0x130f0d!=='object')return{'id':undefined,'entity':{}};const _0x5befa6={..._0x130f0d},_0x3631f9=toFiniteNumber(_0x5befa6['id']);return _0x3631f9!==undefined&&(_0x5befa6['id']=_0x3631f9),{'id':_0x3631f9,'entity':_0x5befa6};}
@@ -1 +1 @@
1
- (function(_0x3bca9a,_0x3dd015){const _0x522d79=a342_0x3e60,_0x2797d9=_0x3bca9a();while(!![]){try{const _0xaddb8f=-parseInt(_0x522d79(0xd5))/0x1+parseInt(_0x522d79(0xde))/0x2+parseInt(_0x522d79(0xdb))/0x3*(parseInt(_0x522d79(0xe0))/0x4)+-parseInt(_0x522d79(0xda))/0x5*(-parseInt(_0x522d79(0xd9))/0x6)+-parseInt(_0x522d79(0xd6))/0x7*(-parseInt(_0x522d79(0xdc))/0x8)+parseInt(_0x522d79(0xdd))/0x9+-parseInt(_0x522d79(0xdf))/0xa*(parseInt(_0x522d79(0xd7))/0xb);if(_0xaddb8f===_0x3dd015)break;else _0x2797d9['push'](_0x2797d9['shift']());}catch(_0x1de638){_0x2797d9['push'](_0x2797d9['shift']());}}}(a342_0x4679,0x2d2b5));function a342_0x4679(){const _0x597803=['30DfOFfE','11365wxpFWj','3KVlXXL','144UsEscm','1757241xSPjjT','453214ftlEAL','174030BVihKi','846656ieIAxq','78965qdbHvB','34601UHStQD','297RvXbqs','isDirectory'];a342_0x4679=function(){return _0x597803;};return a342_0x4679();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a342_0x3e60(_0x549d3a,_0x580132){_0x549d3a=_0x549d3a-0xd5;const _0x467977=a342_0x4679();let _0x3e60c2=_0x467977[_0x549d3a];return _0x3e60c2;}import{join}from'node:path';export async function copyDir(_0x8e592,_0x5f384b){const _0x2d37b2=a342_0x3e60,_0x4f7c67=statSync(_0x8e592);if(_0x4f7c67[_0x2d37b2(0xd8)]()){!existsSync(_0x5f384b)&&mkdirSync(_0x5f384b,{'recursive':!![]});const _0x75ce56=readdirSync(_0x8e592);for(const _0x323885 of _0x75ce56){await copyDir(join(_0x8e592,_0x323885),join(_0x5f384b,_0x323885));}}else copyFileSync(_0x8e592,_0x5f384b);}export function ensureDir(_0x4f3503){!existsSync(_0x4f3503)&&mkdirSync(_0x4f3503,{'recursive':!![]});}export function pathExists(_0x3a4dfa){return existsSync(_0x3a4dfa);}
1
+ function a347_0x4b40(){const _0x48682f=['912355iRrQSz','6JlFKOn','103101bsNumy','35307jrtQTP','68058aHpRrG','2TuvUpe','2803962JxmHJE','7161220BeKgdp','462440NTgzJP','80uPhYVo'];a347_0x4b40=function(){return _0x48682f;};return a347_0x4b40();}(function(_0x4ffd78,_0x5ee7d7){const _0x56e449=a347_0x5a9f,_0x4f4b02=_0x4ffd78();while(!![]){try{const _0x559dc1=-parseInt(_0x56e449(0x70))/0x1+-parseInt(_0x56e449(0x73))/0x2*(-parseInt(_0x56e449(0x71))/0x3)+parseInt(_0x56e449(0x76))/0x4+parseInt(_0x56e449(0x6e))/0x5*(-parseInt(_0x56e449(0x6f))/0x6)+-parseInt(_0x56e449(0x74))/0x7+-parseInt(_0x56e449(0x77))/0x8*(-parseInt(_0x56e449(0x72))/0x9)+parseInt(_0x56e449(0x75))/0xa;if(_0x559dc1===_0x5ee7d7)break;else _0x4f4b02['push'](_0x4f4b02['shift']());}catch(_0x5d0883){_0x4f4b02['push'](_0x4f4b02['shift']());}}}(a347_0x4b40,0x38e17));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x19ead3,_0x9e0f56){const _0x28475a=statSync(_0x19ead3);if(_0x28475a['isDirectory']()){!existsSync(_0x9e0f56)&&mkdirSync(_0x9e0f56,{'recursive':!![]});const _0x2c9f8d=readdirSync(_0x19ead3);for(const _0x19ee22 of _0x2c9f8d){await copyDir(join(_0x19ead3,_0x19ee22),join(_0x9e0f56,_0x19ee22));}}else copyFileSync(_0x19ead3,_0x9e0f56);}export function ensureDir(_0x5694f0){!existsSync(_0x5694f0)&&mkdirSync(_0x5694f0,{'recursive':!![]});}function a347_0x5a9f(_0x14bb72,_0x420bed){_0x14bb72=_0x14bb72-0x6e;const _0x4b40d8=a347_0x4b40();let _0x5a9fe4=_0x4b40d8[_0x14bb72];return _0x5a9fe4;}export function pathExists(_0x27eff4){return existsSync(_0x27eff4);}
@@ -1 +1 @@
1
- const a343_0x40101e=a343_0x4ed5;(function(_0x53cbc9,_0x53fcde){const _0x23973b=a343_0x4ed5,_0x6dc6e=_0x53cbc9();while(!![]){try{const _0x1086d3=parseInt(_0x23973b(0x153))/0x1*(-parseInt(_0x23973b(0x148))/0x2)+-parseInt(_0x23973b(0x13b))/0x3+parseInt(_0x23973b(0x149))/0x4*(parseInt(_0x23973b(0x152))/0x5)+-parseInt(_0x23973b(0x139))/0x6*(-parseInt(_0x23973b(0x14d))/0x7)+-parseInt(_0x23973b(0x141))/0x8*(-parseInt(_0x23973b(0x14b))/0x9)+parseInt(_0x23973b(0x135))/0xa+parseInt(_0x23973b(0x143))/0xb*(-parseInt(_0x23973b(0x14e))/0xc);if(_0x1086d3===_0x53fcde)break;else _0x6dc6e['push'](_0x6dc6e['shift']());}catch(_0x249f53){_0x6dc6e['push'](_0x6dc6e['shift']());}}}(a343_0x4c79,0xcc5f2));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a343_0x4c79(){const _0x4fd3af=['16548650wINbHX','CDN\x20data\x20is\x20missing\x20skillTemplate','skillTemplate','\x0a\x0a>更新时间:','53358XHYeoi','statusText','4850376uTgRcZ','trimEnd','json','CDN\x20returned\x20invalid\x20data','entries','status','3581672UTwWRt','cache','110BjYotl','keys','.md','extendContent','utf-8','38ErvnDt','12pXwFco','object','18oylfel','guides','371JNJckc','234204wcmRsG','.lovrabet','map','lastUpdated','1660075LickUb','72031HViBkk','length','content','CDN\x20request\x20failed:\x20','join','.lovrabet/skill/guides','application/json'];a343_0x4c79=function(){return _0x4fd3af;};return a343_0x4c79();}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5cb2b6=getTemplateBaseUrl();return _0x5cb2b6+'/skills/guides.json';}function a343_0x4ed5(_0x101ac5,_0x1272bd){_0x101ac5=_0x101ac5-0x134;const _0x4c79bd=a343_0x4c79();let _0x4ed5c6=_0x4c79bd[_0x101ac5];return _0x4ed5c6;}const CACHE_DIR=join(homedir(),a343_0x40101e(0x14f),a343_0x40101e(0x142));export async function fetchGuidesFromCDN(){const _0x2c2d=a343_0x40101e,_0x428bc4=getGuidesCdnUrl(),_0x2fc91d=await fetch(_0x428bc4,{'headers':{'Accept':_0x2c2d(0x134)}});if(!_0x2fc91d['ok'])throw new Error(_0x2c2d(0x156)+_0x2fc91d[_0x2c2d(0x140)]+'\x20'+_0x2fc91d[_0x2c2d(0x13a)]);const _0x1db145=await _0x2fc91d[_0x2c2d(0x13d)]();if(!_0x1db145[_0x2c2d(0x14c)]||typeof _0x1db145[_0x2c2d(0x14c)]!==_0x2c2d(0x14a))throw new Error(_0x2c2d(0x13e));return _0x1db145;}export function writeGuidesToProject(_0x56dbe8,_0xc976b6,_0x31d591=a343_0x40101e(0x158),_0x269ebe){const _0x2630a9=a343_0x40101e,_0x5deb51=join(_0xc976b6,_0x31d591);mkdirSync(_0x5deb51,{'recursive':!![]});for(const [_0x12de51,_0x5ef494]of Object[_0x2630a9(0x13f)](_0x56dbe8[_0x2630a9(0x14c)])){let _0xd6f366=_0x5ef494['content'];_0x5ef494[_0x2630a9(0x151)]&&(_0xd6f366=appendUpdateTime(_0xd6f366,_0x5ef494[_0x2630a9(0x151)])),writeFileSync(join(_0x5deb51,_0x12de51+_0x2630a9(0x145)),_0xd6f366,_0x2630a9(0x147));}}export function appendUpdateTime(_0x35490d,_0xb39c88){const _0x5444c6=a343_0x40101e;return _0x35490d=_0x35490d['replace'](/\n*>更新时间:.*$/m,''),_0x35490d[_0x5444c6(0x13c)]()+(_0x5444c6(0x138)+_0xb39c88);}export function getSkillTemplate(_0x218ae9){const _0xc5dee8=a343_0x40101e;return _0x218ae9[_0xc5dee8(0x137)]?.[_0xc5dee8(0x155)]||'';}export function appendExtendContents(_0xa0e53d,_0x356691,_0x47ed09){const _0x3c78a0=a343_0x40101e,_0x497243=[];for(const [,_0x170dd7]of Object[_0x3c78a0(0x13f)](_0x356691[_0x3c78a0(0x14c)])){_0x170dd7[_0x3c78a0(0x146)]&&_0x497243['push'](_0x170dd7[_0x3c78a0(0x146)]['trimEnd']());}if(_0x497243[_0x3c78a0(0x154)]===0x0)return _0xa0e53d;return _0xa0e53d['trimEnd']()+'\x0a\x0a'+_0x497243[_0x3c78a0(0x157)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3004bc,_0x28686f,_0xd201ca){const _0x4f51c1=a343_0x40101e,_0x353667=getSkillTemplate(_0x3004bc);if(!_0x353667)throw new Error(_0x4f51c1(0x136));const _0x4ef2a7=dirname(_0x28686f);mkdirSync(_0x4ef2a7,{'recursive':!![]});let _0x265ea7=_0x353667['replace'](/\{\{IDE_NAME\}\}/g,_0xd201ca);_0x265ea7=appendExtendContents(_0x265ea7,_0x3004bc),_0x3004bc['skillTemplate'][_0x4f51c1(0x151)]&&(_0x265ea7=appendUpdateTime(_0x265ea7,_0x3004bc['skillTemplate']['lastUpdated'])),writeFileSync(_0x28686f,_0x265ea7,_0x4f51c1(0x147));}export async function installGuides(_0x2c7e73){const _0x4a6dd4=a343_0x40101e,_0x4ed3a3=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4ed3a3,_0x2c7e73),Object[_0x4a6dd4(0x144)](_0x4ed3a3[_0x4a6dd4(0x14c)])[_0x4a6dd4(0x154)];}export function getGuidesSummary(_0x39a13a){const _0x3ec20d=a343_0x40101e;return Object['entries'](_0x39a13a['guides'])[_0x3ec20d(0x150)](([_0x596f0e,_0x13d27f])=>({'key':_0x596f0e,'title':_0x13d27f['title'],'path':_0x13d27f['path']}));}
1
+ const a348_0x3cf6d8=a348_0x2c1c;(function(_0x190240,_0x4398e1){const _0x42664b=a348_0x2c1c,_0x423223=_0x190240();while(!![]){try{const _0x2e7397=parseInt(_0x42664b(0x87))/0x1*(parseInt(_0x42664b(0x88))/0x2)+-parseInt(_0x42664b(0x8b))/0x3+-parseInt(_0x42664b(0x80))/0x4*(-parseInt(_0x42664b(0x69))/0x5)+-parseInt(_0x42664b(0x76))/0x6*(parseInt(_0x42664b(0x6a))/0x7)+parseInt(_0x42664b(0x77))/0x8*(-parseInt(_0x42664b(0x7d))/0x9)+-parseInt(_0x42664b(0x7a))/0xa*(-parseInt(_0x42664b(0x71))/0xb)+parseInt(_0x42664b(0x75))/0xc*(parseInt(_0x42664b(0x7b))/0xd);if(_0x2e7397===_0x4398e1)break;else _0x423223['push'](_0x423223['shift']());}catch(_0x341d4f){_0x423223['push'](_0x423223['shift']());}}}(a348_0x454d,0xbdd3f));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a348_0x2c1c(_0x32f1a7,_0x5bfd8f){_0x32f1a7=_0x32f1a7-0x69;const _0x454dee=a348_0x454d();let _0x2c1caf=_0x454dee[_0x32f1a7];return _0x2c1caf;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x3bce7a=getTemplateBaseUrl();return _0x3bce7a+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a348_0x3cf6d8(0x79),'cache');export async function fetchGuidesFromCDN(){const _0x176dbb=a348_0x3cf6d8,_0x1ea2a0=getGuidesCdnUrl(),_0x4cd4ac=await fetch(_0x1ea2a0,{'headers':{'Accept':_0x176dbb(0x85)}});if(!_0x4cd4ac['ok'])throw new Error(_0x176dbb(0x81)+_0x4cd4ac['status']+'\x20'+_0x4cd4ac[_0x176dbb(0x70)]);const _0x2550d1=await _0x4cd4ac[_0x176dbb(0x8c)]();if(!_0x2550d1[_0x176dbb(0x8e)]||typeof _0x2550d1['guides']!==_0x176dbb(0x83))throw new Error(_0x176dbb(0x84));return _0x2550d1;}export function writeGuidesToProject(_0x2ca46a,_0x5f590a,_0x401d4f=a348_0x3cf6d8(0x7e),_0x3714ea){const _0x237074=a348_0x3cf6d8,_0x5a7599=join(_0x5f590a,_0x401d4f);mkdirSync(_0x5a7599,{'recursive':!![]});for(const [_0x1ea9dd,_0x3305d6]of Object[_0x237074(0x6e)](_0x2ca46a[_0x237074(0x8e)])){let _0x105fbd=_0x3305d6[_0x237074(0x8a)];_0x3305d6[_0x237074(0x6b)]&&(_0x105fbd=appendUpdateTime(_0x105fbd,_0x3305d6[_0x237074(0x6b)])),writeFileSync(join(_0x5a7599,_0x1ea9dd+_0x237074(0x8d)),_0x105fbd,_0x237074(0x7c));}}export function appendUpdateTime(_0x168dbd,_0x3ace83){const _0x1cc751=a348_0x3cf6d8;return _0x168dbd=_0x168dbd[_0x1cc751(0x6d)](/\n*>更新时间:.*$/m,''),_0x168dbd[_0x1cc751(0x78)]()+(_0x1cc751(0x74)+_0x3ace83);}export function getSkillTemplate(_0x10929b){const _0x5e1b4d=a348_0x3cf6d8;return _0x10929b[_0x5e1b4d(0x82)]?.[_0x5e1b4d(0x8a)]||'';}function a348_0x454d(){const _0x3f631a=['extendContent','948IkuAXN','404FRtVaB','push','content','3655482oNOwrN','json','.md','guides','2069755qFlWLw','3072062sTeIAC','lastUpdated','length','replace','entries','join','statusText','15290pJWsmZ','path','map','\x0a\x0a>更新时间:','1617324vKyqsA','6QJvLrj','7542032bmJuAq','trimEnd','.lovrabet','4430ydegqP','208FjJGvi','utf-8','9JBEzmm','.lovrabet/skill/guides','title','4ooWzgg','CDN\x20request\x20failed:\x20','skillTemplate','object','CDN\x20returned\x20invalid\x20data','application/json'];a348_0x454d=function(){return _0x3f631a;};return a348_0x454d();}export function appendExtendContents(_0x1f298f,_0x366aff,_0x24ff6b){const _0x35b6b6=a348_0x3cf6d8,_0x3a4bcf=[];for(const [,_0x56650f]of Object[_0x35b6b6(0x6e)](_0x366aff[_0x35b6b6(0x8e)])){_0x56650f[_0x35b6b6(0x86)]&&_0x3a4bcf[_0x35b6b6(0x89)](_0x56650f['extendContent']['trimEnd']());}if(_0x3a4bcf[_0x35b6b6(0x6c)]===0x0)return _0x1f298f;return _0x1f298f[_0x35b6b6(0x78)]()+'\x0a\x0a'+_0x3a4bcf[_0x35b6b6(0x6f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x26ea99,_0x4e3b7a,_0x53754d){const _0x1d3f23=a348_0x3cf6d8,_0x1a712d=getSkillTemplate(_0x26ea99);if(!_0x1a712d)throw new Error('CDN\x20data\x20is\x20missing\x20skillTemplate');const _0x49a5dd=dirname(_0x4e3b7a);mkdirSync(_0x49a5dd,{'recursive':!![]});let _0x4617fe=_0x1a712d[_0x1d3f23(0x6d)](/\{\{IDE_NAME\}\}/g,_0x53754d);_0x4617fe=appendExtendContents(_0x4617fe,_0x26ea99),_0x26ea99['skillTemplate']['lastUpdated']&&(_0x4617fe=appendUpdateTime(_0x4617fe,_0x26ea99[_0x1d3f23(0x82)][_0x1d3f23(0x6b)])),writeFileSync(_0x4e3b7a,_0x4617fe,_0x1d3f23(0x7c));}export async function installGuides(_0x155b31){const _0x2ed93b=a348_0x3cf6d8,_0x375212=await fetchGuidesFromCDN();return writeGuidesToProject(_0x375212,_0x155b31),Object['keys'](_0x375212[_0x2ed93b(0x8e)])[_0x2ed93b(0x6c)];}export function getGuidesSummary(_0x2d4fd7){const _0x468916=a348_0x3cf6d8;return Object[_0x468916(0x6e)](_0x2d4fd7[_0x468916(0x8e)])[_0x468916(0x73)](([_0x129db8,_0x1683e7])=>({'key':_0x129db8,'title':_0x1683e7[_0x468916(0x7f)],'path':_0x1683e7[_0x468916(0x72)]}));}
@@ -1 +1 @@
1
- function a344_0x128a(){const _0x45233f=['text','includes','log','271376WMIPTO','content-type','480EkdKtU','*\x20Request\x20failed;\x20retry\x20','application/json','\x20in\x20','1079844vkfsNe','message','AbortError','894sZrapF','ms...','2288106xTEXUY','abort','url','11602896aYQdQl','35pCsxxY','13279mMMMIS','507744rHhugu','json','name','764548ohVquN','Request\x20failed','headers','TypeError'];a344_0x128a=function(){return _0x45233f;};return a344_0x128a();}(function(_0x8d12b,_0xa02b75){const _0x3a2575=a344_0x1a8e,_0x5870b7=_0x8d12b();while(!![]){try{const _0x3eda3b=-parseInt(_0x3a2575(0x167))/0x1+parseInt(_0x3a2575(0x172))/0x2+parseInt(_0x3a2575(0x16d))/0x3+-parseInt(_0x3a2575(0x17b))/0x4*(parseInt(_0x3a2575(0x176))/0x5)+-parseInt(_0x3a2575(0x170))/0x6*(parseInt(_0x3a2575(0x177))/0x7)+-parseInt(_0x3a2575(0x175))/0x8+parseInt(_0x3a2575(0x178))/0x9*(parseInt(_0x3a2575(0x169))/0xa);if(_0x3eda3b===_0xa02b75)break;else _0x5870b7['push'](_0x5870b7['shift']());}catch(_0x3ce1d8){_0x5870b7['push'](_0x5870b7['shift']());}}}(a344_0x128a,0xd44f3));export async function httpRequest(_0x189b7b,_0x1f0212={}){const _0x595b09=a344_0x1a8e,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1f0212;let _0x28c242=null;for(let _0x4e1968=0x0;_0x4e1968<=retries;_0x4e1968++){try{const _0x7b3873=new AbortController(),_0x571fd0=setTimeout(()=>_0x7b3873[_0x595b09(0x173)](),timeout),_0x555876=await fetch(_0x189b7b,{'headers':headers,'signal':_0x7b3873['signal']});clearTimeout(_0x571fd0);let _0x24ef68;const _0x38b20b=_0x555876[_0x595b09(0x17d)]['get'](_0x595b09(0x168));return _0x38b20b?.['includes'](_0x595b09(0x16b))?_0x24ef68=await _0x555876[_0x595b09(0x179)]():_0x24ef68=await _0x555876[_0x595b09(0x164)](),{'ok':_0x555876['ok'],'status':_0x555876['status'],'statusText':_0x555876['statusText'],'data':_0x24ef68,'headers':_0x555876[_0x595b09(0x17d)],'url':_0x555876[_0x595b09(0x174)],'text':()=>_0x555876[_0x595b09(0x164)]()};}catch(_0x53ee1a){_0x28c242=_0x53ee1a instanceof Error?_0x53ee1a:new Error(String(_0x53ee1a));if(_0x4e1968===retries)break;if(shouldRetry(_0x53ee1a)){console[_0x595b09(0x166)](_0x595b09(0x16a)+(_0x4e1968+0x1)+_0x595b09(0x16c)+retryDelay+_0x595b09(0x171)),await sleep(retryDelay);continue;}else break;}}throw _0x28c242||new Error(_0x595b09(0x17c));}function shouldRetry(_0x47eeda){const _0xf29798=a344_0x1a8e;if(_0x47eeda instanceof Error){if(_0x47eeda[_0xf29798(0x17a)]===_0xf29798(0x16f))return![];if(_0x47eeda[_0xf29798(0x17a)]===_0xf29798(0x163)&&_0x47eeda['message'][_0xf29798(0x165)]('fetch'))return!![];if(_0x47eeda[_0xf29798(0x16e)][_0xf29798(0x165)]('ECONNRESET'))return!![];if(_0x47eeda['message']['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x385a72){return new Promise(_0x24a2fb=>setTimeout(_0x24a2fb,_0x385a72));}function a344_0x1a8e(_0x59ea60,_0x2a34b0){_0x59ea60=_0x59ea60-0x163;const _0x128a20=a344_0x128a();let _0x1a8eb0=_0x128a20[_0x59ea60];return _0x1a8eb0;}export function validateUrl(_0x3b6ac7){try{return new URL(_0x3b6ac7),!![];}catch{return![];}}
1
+ (function(_0x5790be,_0x2300dd){const _0x2f46f8=a349_0x29a4,_0x5b87e5=_0x5790be();while(!![]){try{const _0xc03677=-parseInt(_0x2f46f8(0x147))/0x1+parseInt(_0x2f46f8(0x142))/0x2*(parseInt(_0x2f46f8(0x143))/0x3)+-parseInt(_0x2f46f8(0x141))/0x4*(-parseInt(_0x2f46f8(0x156))/0x5)+parseInt(_0x2f46f8(0x14d))/0x6+parseInt(_0x2f46f8(0x149))/0x7+parseInt(_0x2f46f8(0x13d))/0x8+-parseInt(_0x2f46f8(0x14a))/0x9;if(_0xc03677===_0x2300dd)break;else _0x5b87e5['push'](_0x5b87e5['shift']());}catch(_0x33a2bc){_0x5b87e5['push'](_0x5b87e5['shift']());}}}(a349_0x2098,0x41795));export async function httpRequest(_0x4b44ce,_0x54ee5c={}){const _0x5350a7=a349_0x29a4,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x54ee5c;let _0x4561b9=null;for(let _0x3c416c=0x0;_0x3c416c<=retries;_0x3c416c++){try{const _0x22c51e=new AbortController(),_0x5a380f=setTimeout(()=>_0x22c51e[_0x5350a7(0x154)](),timeout),_0x574143=await fetch(_0x4b44ce,{'headers':headers,'signal':_0x22c51e[_0x5350a7(0x14e)]});clearTimeout(_0x5a380f);let _0x572a7f;const _0x625cb4=_0x574143[_0x5350a7(0x13c)][_0x5350a7(0x13e)](_0x5350a7(0x140));return _0x625cb4?.[_0x5350a7(0x157)](_0x5350a7(0x14c))?_0x572a7f=await _0x574143[_0x5350a7(0x146)]():_0x572a7f=await _0x574143[_0x5350a7(0x13a)](),{'ok':_0x574143['ok'],'status':_0x574143[_0x5350a7(0x14b)],'statusText':_0x574143[_0x5350a7(0x151)],'data':_0x572a7f,'headers':_0x574143[_0x5350a7(0x13c)],'url':_0x574143[_0x5350a7(0x14f)],'text':()=>_0x574143[_0x5350a7(0x13a)]()};}catch(_0xbf4a72){_0x4561b9=_0xbf4a72 instanceof Error?_0xbf4a72:new Error(String(_0xbf4a72));if(_0x3c416c===retries)break;if(shouldRetry(_0xbf4a72)){console[_0x5350a7(0x155)](_0x5350a7(0x139)+(_0x3c416c+0x1)+_0x5350a7(0x150)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x4561b9||new Error(_0x5350a7(0x145));}function shouldRetry(_0x2783b4){const _0x5df43b=a349_0x29a4;if(_0x2783b4 instanceof Error){if(_0x2783b4[_0x5df43b(0x148)]===_0x5df43b(0x144))return![];if(_0x2783b4[_0x5df43b(0x148)]===_0x5df43b(0x152)&&_0x2783b4[_0x5df43b(0x153)][_0x5df43b(0x157)](_0x5df43b(0x13b)))return!![];if(_0x2783b4[_0x5df43b(0x153)]['includes'](_0x5df43b(0x158)))return!![];if(_0x2783b4[_0x5df43b(0x153)][_0x5df43b(0x157)](_0x5df43b(0x13f)))return![];}return![];}function a349_0x2098(){const _0x2e33a4=['ENOTFOUND','content-type','491124lOQbmd','1348CzxFwn','123ASElEh','AbortError','Request\x20failed','json','108923VeMbPE','name','1990289nALbAq','5355450RZTxmS','status','application/json','314142dByesR','signal','url','\x20in\x20','statusText','TypeError','message','abort','log','15pxhWGx','includes','ECONNRESET','*\x20Request\x20failed;\x20retry\x20','text','fetch','headers','1915944Qmwhux','get'];a349_0x2098=function(){return _0x2e33a4;};return a349_0x2098();}function a349_0x29a4(_0x4b3cd0,_0x3d4b11){_0x4b3cd0=_0x4b3cd0-0x139;const _0x2098ff=a349_0x2098();let _0x29a441=_0x2098ff[_0x4b3cd0];return _0x29a441;}function sleep(_0x59f6f5){return new Promise(_0x516f1e=>setTimeout(_0x516f1e,_0x59f6f5));}export function validateUrl(_0x1fc51b){try{return new URL(_0x1fc51b),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4ab5dd,_0x347ea6){const _0x4fc10b=a345_0x4e61,_0x545772=_0x4ab5dd();while(!![]){try{const _0x23d68f=-parseInt(_0x4fc10b(0xce))/0x1*(parseInt(_0x4fc10b(0xd7))/0x2)+-parseInt(_0x4fc10b(0xc3))/0x3*(parseInt(_0x4fc10b(0xd1))/0x4)+-parseInt(_0x4fc10b(0xd2))/0x5*(-parseInt(_0x4fc10b(0xc6))/0x6)+-parseInt(_0x4fc10b(0xd6))/0x7*(parseInt(_0x4fc10b(0xd0))/0x8)+parseInt(_0x4fc10b(0xcb))/0x9*(parseInt(_0x4fc10b(0xc9))/0xa)+parseInt(_0x4fc10b(0xc7))/0xb*(-parseInt(_0x4fc10b(0xc8))/0xc)+parseInt(_0x4fc10b(0xd5))/0xd*(parseInt(_0x4fc10b(0xc4))/0xe);if(_0x23d68f===_0x347ea6)break;else _0x545772['push'](_0x545772['shift']());}catch(_0x26a066){_0x545772['push'](_0x545772['shift']());}}}(a345_0x2bab,0x54833));function env(_0x549739){return process.env[`RABETBASE_${_0x549739}`]||process.env[`LOVRABET_${_0x549739}`]||undefined;}export function isNonInteractive(_0x34bdac){const _0x120e0a=a345_0x4e61;return!!(_0x34bdac[_0x120e0a(0xcf)]||_0x34bdac['ci']||env('CI')==='true'||process.env.CI===_0x120e0a(0xcc)||!process[_0x120e0a(0xd4)]['isTTY']||!isStdinRawModeSupported());}function a345_0x2bab(){const _0x4afec4=['190cgCErT','isTTY','stdout','12077yFctht','7364iAUwdn','439612gZcfzb','198348cnqtai','13454YnRPUn','isRaw','108828PXTEfp','8844VbFjOQ','4596HqDNfa','10TLjEZO','stdin','952668wtCRDQ','true','setRawMode','3YImCFj','nonInteractive','2344IuStKH','4zdayrs'];a345_0x2bab=function(){return _0x4afec4;};return a345_0x2bab();}function a345_0x4e61(_0xf59319,_0x36c7e9){_0xf59319=_0xf59319-0xc3;const _0x2bab11=a345_0x2bab();let _0x4e613a=_0x2bab11[_0xf59319];return _0x4e613a;}function isStdinRawModeSupported(){const _0x501273=a345_0x4e61;if(!process[_0x501273(0xca)][_0x501273(0xd3)])return![];try{const _0x2e4481=process[_0x501273(0xca)][_0x501273(0xc5)];return process['stdin']['setRawMode'](!![]),process[_0x501273(0xca)][_0x501273(0xcd)](_0x2e4481??![]),!![];}catch{return![];}}
1
+ (function(_0x3a2c53,_0x5640a8){const _0x4c6b60=a350_0x14cd,_0x310fe4=_0x3a2c53();while(!![]){try{const _0x18395c=parseInt(_0x4c6b60(0x1f2))/0x1*(parseInt(_0x4c6b60(0x1f9))/0x2)+-parseInt(_0x4c6b60(0x1ed))/0x3*(-parseInt(_0x4c6b60(0x1fc))/0x4)+parseInt(_0x4c6b60(0x1ec))/0x5+-parseInt(_0x4c6b60(0x1f7))/0x6*(-parseInt(_0x4c6b60(0x1f6))/0x7)+parseInt(_0x4c6b60(0x1ee))/0x8*(-parseInt(_0x4c6b60(0x1f3))/0x9)+parseInt(_0x4c6b60(0x1f0))/0xa*(parseInt(_0x4c6b60(0x1fa))/0xb)+parseInt(_0x4c6b60(0x1f4))/0xc*(-parseInt(_0x4c6b60(0x1ef))/0xd);if(_0x18395c===_0x5640a8)break;else _0x310fe4['push'](_0x310fe4['shift']());}catch(_0x191069){_0x310fe4['push'](_0x310fe4['shift']());}}}(a350_0x30f3,0xa19d7));function env(_0x5eb7e4){return process.env[`RABETBASE_${_0x5eb7e4}`]||process.env[`LOVRABET_${_0x5eb7e4}`]||undefined;}function a350_0x14cd(_0x390c52,_0x5b7730){_0x390c52=_0x390c52-0x1eb;const _0x30f3f2=a350_0x30f3();let _0x14cdde=_0x30f3f2[_0x390c52];return _0x14cdde;}export function isNonInteractive(_0x57c647){const _0xd5c900=a350_0x14cd;return!!(_0x57c647[_0xd5c900(0x1f1)]||_0x57c647['ci']||env('CI')===_0xd5c900(0x1fd)||process.env.CI===_0xd5c900(0x1fd)||!process[_0xd5c900(0x1f5)][_0xd5c900(0x1f8)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x852674=a350_0x14cd;if(!process[_0x852674(0x1fb)]['isTTY'])return![];try{const _0x42d9c2=process['stdin'][_0x852674(0x1fe)];return process[_0x852674(0x1fb)][_0x852674(0x1eb)](!![]),process[_0x852674(0x1fb)][_0x852674(0x1eb)](_0x42d9c2??![]),!![];}catch{return![];}}function a350_0x30f3(){const _0x1e5320=['141yOaQIK','24464ePGfjc','132587wZXpkP','760sJvYMn','nonInteractive','2XLxClI','2169XKRSPt','1008XnBeQM','stdout','7VtVvFy','2948982mqsFuj','isTTY','499286YOajzQ','120164IXXoMw','stdin','32152FiIJDT','true','isRaw','setRawMode','284380ICLECO'];a350_0x30f3=function(){return _0x1e5320;};return a350_0x30f3();}
@@ -1 +1 @@
1
- const a346_0x2edcdd=a346_0x59d0;function a346_0x59d0(_0x507e30,_0x450937){_0x507e30=_0x507e30-0x1e7;const _0x2cb58c=a346_0x2cb5();let _0x59d0b8=_0x2cb58c[_0x507e30];return _0x59d0b8;}(function(_0x49611e,_0x30f0df){const _0x10b8b2=a346_0x59d0,_0x36210c=_0x49611e();while(!![]){try{const _0x6be596=-parseInt(_0x10b8b2(0x1fb))/0x1+parseInt(_0x10b8b2(0x208))/0x2*(-parseInt(_0x10b8b2(0x204))/0x3)+-parseInt(_0x10b8b2(0x21c))/0x4*(-parseInt(_0x10b8b2(0x20c))/0x5)+-parseInt(_0x10b8b2(0x1f5))/0x6+-parseInt(_0x10b8b2(0x1f2))/0x7*(parseInt(_0x10b8b2(0x202))/0x8)+parseInt(_0x10b8b2(0x1ec))/0x9+-parseInt(_0x10b8b2(0x218))/0xa*(-parseInt(_0x10b8b2(0x1ef))/0xb);if(_0x6be596===_0x30f0df)break;else _0x36210c['push'](_0x36210c['shift']());}catch(_0x4b8c91){_0x36210c['push'](_0x36210c['shift']());}}}(a346_0x2cb5,0x4e989));import a346_0x5ce9ba from'winston';import a346_0x4e9bed from'node:fs';import a346_0x2af00a from'node:path';function a346_0x2cb5(){const _0x44de63=['utf8','unknown','combine','4527324uuNTqk','createLogger','duration','1199mxhMBu','setRawCommand','warn','585319zbUIWU','clearLogs','now','2565192eFZYKh','info','currentRawCommand','Failed\x20to\x20read\x20logs:','clear','command','53049tLcifj','rawCommand','Failed:\x20','logFilePath','printf','details','yellow','56LgluAj','blue','26613FQOndH','existsSync','Starting:\x20','transports','26rcxzSU','File','message','join','1133805xMMyJT','success','errors','green','red','log','map','error','addColors','readFileSync','winstonLogger','trim','70950vxOGNE','format','filter','mkdirSync','4bORiiM','initWinstonLogger','getWinstonInstance','timestamp'];a346_0x2cb5=function(){return _0x44de63;};return a346_0x2cb5();}class Logger{['winstonLogger'];['logFilePath'];[a346_0x2edcdd(0x1f7)]='';constructor(){const _0x1ead51=a346_0x2edcdd;this[_0x1ead51(0x1fe)]='';}[a346_0x2edcdd(0x1f0)](_0x3e274e){this['currentRawCommand']=_0x3e274e;}[a346_0x2edcdd(0x21d)](){const _0x172f7b=a346_0x2edcdd,_0x1b5676=a346_0x2af00a['dirname'](this[_0x172f7b(0x1fe)]);!a346_0x4e9bed[_0x172f7b(0x205)](_0x1b5676)&&a346_0x4e9bed[_0x172f7b(0x21b)](_0x1b5676,{'recursive':!![]});const _0x122425=a346_0x5ce9ba[_0x172f7b(0x219)][_0x172f7b(0x1eb)](a346_0x5ce9ba[_0x172f7b(0x219)][_0x172f7b(0x1e8)](),a346_0x5ce9ba['format'][_0x172f7b(0x20e)]({'stack':!![]}),a346_0x5ce9ba['format'][_0x172f7b(0x1ff)](_0x24479a=>{const _0x2ab393=_0x172f7b,_0x197e23={'timestamp':_0x24479a['timestamp']||new Date()['toISOString'](),'level':_0x24479a['level']||'info','command':_0x24479a[_0x2ab393(0x1fa)]||_0x2ab393(0x1ea),'rawCommand':_0x24479a[_0x2ab393(0x1fc)]||this[_0x2ab393(0x1f7)]||undefined,'message':_0x24479a[_0x2ab393(0x20a)]||'','duration':_0x24479a[_0x2ab393(0x1ee)]||undefined,'details':_0x24479a[_0x2ab393(0x200)]||undefined};return JSON['stringify'](_0x197e23);}));this[_0x172f7b(0x216)]=a346_0x5ce9ba[_0x172f7b(0x1ed)]({'level':'info','format':_0x122425,'transports':[new a346_0x5ce9ba[(_0x172f7b(0x207))][(_0x172f7b(0x209))]({'filename':this[_0x172f7b(0x1fe)],'level':_0x172f7b(0x1f6)})],'silent':![]}),a346_0x5ce9ba[_0x172f7b(0x214)]({'success':_0x172f7b(0x20f),'error':_0x172f7b(0x210),'warn':_0x172f7b(0x201),'info':_0x172f7b(0x203)});}['setLogPath'](_0x44d5d7){const _0x2c91b4=a346_0x2edcdd;this[_0x2c91b4(0x1fe)]=a346_0x2af00a[_0x2c91b4(0x20b)](_0x44d5d7,'.lovrabet.log'),this[_0x2c91b4(0x216)]&&this[_0x2c91b4(0x216)][_0x2c91b4(0x1f9)](),this[_0x2c91b4(0x21d)]();}[a346_0x2edcdd(0x1f6)](_0x32b92a,_0x95a651,_0x472a33){const _0x2ad31b=a346_0x2edcdd;if(!this[_0x2ad31b(0x1fe)]||!this[_0x2ad31b(0x216)])return;this['winstonLogger']['info'](_0x95a651,{'command':_0x32b92a,'details':_0x472a33});}[a346_0x2edcdd(0x20d)](_0x56d7b3,_0x5ec091,_0x5c5d39,_0x1281a5){const _0x40b988=a346_0x2edcdd;if(!this[_0x40b988(0x1fe)]||!this[_0x40b988(0x216)])return;this[_0x40b988(0x216)][_0x40b988(0x211)](_0x40b988(0x1f6),_0x5ec091,{'level':_0x40b988(0x20d),'command':_0x56d7b3,'duration':_0x5c5d39,'details':_0x1281a5});}[a346_0x2edcdd(0x213)](_0x569076,_0x39a49a,_0x4d8db8){const _0x3a899f=a346_0x2edcdd;if(!this[_0x3a899f(0x1fe)]||!this[_0x3a899f(0x216)])return;this[_0x3a899f(0x216)][_0x3a899f(0x213)](_0x39a49a,{'command':_0x569076,'details':_0x4d8db8});}[a346_0x2edcdd(0x1f1)](_0x1cd975,_0x1f9c1b,_0x57a4ed){const _0x56c074=a346_0x2edcdd;if(!this[_0x56c074(0x1fe)]||!this['winstonLogger'])return;this[_0x56c074(0x216)]['warn'](_0x1f9c1b,{'command':_0x1cd975,'details':_0x57a4ed});}async['logTask'](_0x2e5646,_0x3387e7,_0x1504a7){const _0x4b20a2=a346_0x2edcdd,_0x248f82=Date['now']();this['info'](_0x2e5646,_0x4b20a2(0x206)+_0x3387e7);try{const _0x43a63b=await _0x1504a7(),_0xe45ba9=Date['now']()-_0x248f82;return this[_0x4b20a2(0x20d)](_0x2e5646,'Completed:\x20'+_0x3387e7,_0xe45ba9),_0x43a63b;}catch(_0x442e46){const _0x5fc24c=Date[_0x4b20a2(0x1f4)]()-_0x248f82;this['error'](_0x2e5646,_0x4b20a2(0x1fd)+_0x3387e7,{'error':_0x442e46 instanceof Error?_0x442e46['message']:String(_0x442e46),'duration':_0x5fc24c});throw _0x442e46;}}['readLogs'](){const _0x4979c4=a346_0x2edcdd;try{if(!a346_0x4e9bed[_0x4979c4(0x205)](this[_0x4979c4(0x1fe)]))return[];const _0x339fec=a346_0x4e9bed[_0x4979c4(0x215)](this['logFilePath'],_0x4979c4(0x1e9));return _0x339fec['split']('\x0a')[_0x4979c4(0x21a)](_0x5ba301=>_0x5ba301[_0x4979c4(0x217)]())[_0x4979c4(0x212)](_0x34d7a2=>JSON['parse'](_0x34d7a2));}catch(_0x85eab6){return console[_0x4979c4(0x1f1)](_0x4979c4(0x1f8),_0x85eab6),[];}}[a346_0x2edcdd(0x1f3)](){const _0x3555d2=a346_0x2edcdd;try{a346_0x4e9bed[_0x3555d2(0x205)](this[_0x3555d2(0x1fe)])&&a346_0x4e9bed['writeFileSync'](this[_0x3555d2(0x1fe)],'',_0x3555d2(0x1e9));}catch(_0x59774d){console[_0x3555d2(0x1f1)]('Failed\x20to\x20clear\x20logs:',_0x59774d);}}[a346_0x2edcdd(0x1e7)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a351_0x37a907=a351_0x3177;(function(_0x52b36b,_0x544b2c){const _0x4e1581=a351_0x3177,_0x3758dc=_0x52b36b();while(!![]){try{const _0x2b6f0f=parseInt(_0x4e1581(0x15a))/0x1*(parseInt(_0x4e1581(0x17b))/0x2)+-parseInt(_0x4e1581(0x162))/0x3*(parseInt(_0x4e1581(0x168))/0x4)+-parseInt(_0x4e1581(0x174))/0x5+-parseInt(_0x4e1581(0x18d))/0x6+parseInt(_0x4e1581(0x17d))/0x7+-parseInt(_0x4e1581(0x15c))/0x8+-parseInt(_0x4e1581(0x176))/0x9*(-parseInt(_0x4e1581(0x154))/0xa);if(_0x2b6f0f===_0x544b2c)break;else _0x3758dc['push'](_0x3758dc['shift']());}catch(_0x4c2341){_0x3758dc['push'](_0x3758dc['shift']());}}}(a351_0x1e69,0x3db71));import a351_0x2eddf0 from'winston';function a351_0x1e69(){const _0x13f80c=['9iebbUP','getWinstonInstance','dirname','Starting:\x20','currentRawCommand','977564zqiRoA','toISOString','2697639hNvIDd','clearLogs','existsSync','split','now','initWinstonLogger','File','readLogs','combine','green','timestamp','red','error','map','Failed\x20to\x20read\x20logs:','logFilePath','3020814gqxoUK','transports','6449210XuWEvi','info','Failed:\x20','Failed\x20to\x20clear\x20logs:','blue','unknown','1vOUdqr','trim','3173568aEWJDB','clear','.lovrabet.log','logTask','stringify','filter','115083eYlmNK','join','log','errors','utf8','Completed:\x20','36PjJHdc','warn','createLogger','success','parse','command','winstonLogger','rawCommand','message','setRawCommand','details','readFileSync','104405YSAhZq','format'];a351_0x1e69=function(){return _0x13f80c;};return a351_0x1e69();}import a351_0x49d1d6 from'node:fs';import a351_0x1bce94 from'node:path';class Logger{['winstonLogger'];['logFilePath'];[a351_0x37a907(0x17a)]='';constructor(){const _0x1722b4=a351_0x37a907;this[_0x1722b4(0x18c)]='';}[a351_0x37a907(0x171)](_0x2a3a1d){const _0x45d837=a351_0x37a907;this[_0x45d837(0x17a)]=_0x2a3a1d;}['initWinstonLogger'](){const _0x4fcb0d=a351_0x37a907,_0x2fc9d5=a351_0x1bce94[_0x4fcb0d(0x178)](this[_0x4fcb0d(0x18c)]);!a351_0x49d1d6[_0x4fcb0d(0x17f)](_0x2fc9d5)&&a351_0x49d1d6['mkdirSync'](_0x2fc9d5,{'recursive':!![]});const _0x467d28=a351_0x2eddf0[_0x4fcb0d(0x175)][_0x4fcb0d(0x185)](a351_0x2eddf0[_0x4fcb0d(0x175)][_0x4fcb0d(0x187)](),a351_0x2eddf0[_0x4fcb0d(0x175)][_0x4fcb0d(0x165)]({'stack':!![]}),a351_0x2eddf0['format']['printf'](_0x39ac7d=>{const _0x2393ba=_0x4fcb0d,_0x3dc8b2={'timestamp':_0x39ac7d[_0x2393ba(0x187)]||new Date()[_0x2393ba(0x17c)](),'level':_0x39ac7d['level']||'info','command':_0x39ac7d[_0x2393ba(0x16d)]||_0x2393ba(0x159),'rawCommand':_0x39ac7d[_0x2393ba(0x16f)]||this[_0x2393ba(0x17a)]||undefined,'message':_0x39ac7d[_0x2393ba(0x170)]||'','duration':_0x39ac7d['duration']||undefined,'details':_0x39ac7d[_0x2393ba(0x172)]||undefined};return JSON[_0x2393ba(0x160)](_0x3dc8b2);}));this['winstonLogger']=a351_0x2eddf0[_0x4fcb0d(0x16a)]({'level':_0x4fcb0d(0x155),'format':_0x467d28,'transports':[new a351_0x2eddf0[(_0x4fcb0d(0x18e))][(_0x4fcb0d(0x183))]({'filename':this[_0x4fcb0d(0x18c)],'level':_0x4fcb0d(0x155)})],'silent':![]}),a351_0x2eddf0['addColors']({'success':_0x4fcb0d(0x186),'error':_0x4fcb0d(0x188),'warn':'yellow','info':_0x4fcb0d(0x158)});}['setLogPath'](_0x79c1ec){const _0x4114f4=a351_0x37a907;this[_0x4114f4(0x18c)]=a351_0x1bce94[_0x4114f4(0x163)](_0x79c1ec,_0x4114f4(0x15e)),this[_0x4114f4(0x16e)]&&this[_0x4114f4(0x16e)][_0x4114f4(0x15d)](),this[_0x4114f4(0x182)]();}[a351_0x37a907(0x155)](_0xacc61,_0x4eb182,_0x5d7756){const _0xf7f761=a351_0x37a907;if(!this['logFilePath']||!this[_0xf7f761(0x16e)])return;this[_0xf7f761(0x16e)][_0xf7f761(0x155)](_0x4eb182,{'command':_0xacc61,'details':_0x5d7756});}[a351_0x37a907(0x16b)](_0xd3512a,_0x2fba83,_0x15a572,_0x2b1174){const _0x350652=a351_0x37a907;if(!this[_0x350652(0x18c)]||!this[_0x350652(0x16e)])return;this['winstonLogger'][_0x350652(0x164)]('info',_0x2fba83,{'level':_0x350652(0x16b),'command':_0xd3512a,'duration':_0x15a572,'details':_0x2b1174});}[a351_0x37a907(0x189)](_0x16b7d2,_0x2aa107,_0x28911c){const _0x41f644=a351_0x37a907;if(!this[_0x41f644(0x18c)]||!this[_0x41f644(0x16e)])return;this[_0x41f644(0x16e)]['error'](_0x2aa107,{'command':_0x16b7d2,'details':_0x28911c});}['warn'](_0x1cf649,_0x13e818,_0x16ae34){const _0x372232=a351_0x37a907;if(!this[_0x372232(0x18c)]||!this[_0x372232(0x16e)])return;this['winstonLogger'][_0x372232(0x169)](_0x13e818,{'command':_0x1cf649,'details':_0x16ae34});}async[a351_0x37a907(0x15f)](_0x1748aa,_0x574b2b,_0x17bde7){const _0x206123=a351_0x37a907,_0x2bfb57=Date['now']();this[_0x206123(0x155)](_0x1748aa,_0x206123(0x179)+_0x574b2b);try{const _0x2455df=await _0x17bde7(),_0x4b2fc2=Date['now']()-_0x2bfb57;return this['success'](_0x1748aa,_0x206123(0x167)+_0x574b2b,_0x4b2fc2),_0x2455df;}catch(_0x468cc1){const _0x91bc90=Date[_0x206123(0x181)]()-_0x2bfb57;this[_0x206123(0x189)](_0x1748aa,_0x206123(0x156)+_0x574b2b,{'error':_0x468cc1 instanceof Error?_0x468cc1['message']:String(_0x468cc1),'duration':_0x91bc90});throw _0x468cc1;}}[a351_0x37a907(0x184)](){const _0x2b8b7a=a351_0x37a907;try{if(!a351_0x49d1d6[_0x2b8b7a(0x17f)](this[_0x2b8b7a(0x18c)]))return[];const _0x594ece=a351_0x49d1d6[_0x2b8b7a(0x173)](this['logFilePath'],_0x2b8b7a(0x166));return _0x594ece[_0x2b8b7a(0x180)]('\x0a')[_0x2b8b7a(0x161)](_0x522c7b=>_0x522c7b[_0x2b8b7a(0x15b)]())[_0x2b8b7a(0x18a)](_0x457f64=>JSON[_0x2b8b7a(0x16c)](_0x457f64));}catch(_0x1b15b5){return console['warn'](_0x2b8b7a(0x18b),_0x1b15b5),[];}}[a351_0x37a907(0x17e)](){const _0x2d079e=a351_0x37a907;try{a351_0x49d1d6['existsSync'](this[_0x2d079e(0x18c)])&&a351_0x49d1d6['writeFileSync'](this[_0x2d079e(0x18c)],'',_0x2d079e(0x166));}catch(_0x93a6bb){console[_0x2d079e(0x169)](_0x2d079e(0x157),_0x93a6bb);}}[a351_0x37a907(0x177)](){return this['winstonLogger'];}}function a351_0x3177(_0x5b44ac,_0x428a9f){_0x5b44ac=_0x5b44ac-0x154;const _0x1e6914=a351_0x1e69();let _0x31774a=_0x1e6914[_0x5b44ac];return _0x31774a;}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3e84df,_0x3d4bed){const _0x20492b=a347_0x13f7,_0x284134=_0x3e84df();while(!![]){try{const _0x34448d=-parseInt(_0x20492b(0x6b))/0x1*(-parseInt(_0x20492b(0x70))/0x2)+-parseInt(_0x20492b(0x75))/0x3+-parseInt(_0x20492b(0x6f))/0x4+parseInt(_0x20492b(0x73))/0x5+parseInt(_0x20492b(0x6e))/0x6+parseInt(_0x20492b(0x72))/0x7+parseInt(_0x20492b(0x6a))/0x8;if(_0x34448d===_0x3d4bed)break;else _0x284134['push'](_0x284134['shift']());}catch(_0x569d59){_0x284134['push'](_0x284134['shift']());}}}(a347_0x4e7b,0x8f93f));import{CliErrors}from'../errors.js';function a347_0x4e7b(){const _0x2e5230=['3360363BMRDkj','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','17720ufgUPy','257bSFkuD','isArray','parse','7045074IizUxC','4132752Trnolu','3718KTvctJ','--params\x20must\x20be\x20a\x20JSON\x20object','774816gMXgoL','4882795gMiTqq','validation'];a347_0x4e7b=function(){return _0x2e5230;};return a347_0x4e7b();}function a347_0x13f7(_0x598464,_0x341847){_0x598464=_0x598464-0x6a;const _0x4e7bef=a347_0x4e7b();let _0x13f7e0=_0x4e7bef[_0x598464];return _0x13f7e0;}export function parseJsonParams(_0x485551){const _0x3c12d1=a347_0x13f7;if(!_0x485551)return undefined;let _0x289a18;try{_0x289a18=JSON[_0x3c12d1(0x6d)](_0x485551);}catch{throw CliErrors[_0x3c12d1(0x74)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x485551);}if(!_0x289a18||typeof _0x289a18!==_0x3c12d1(0x77)||Array[_0x3c12d1(0x6c)](_0x289a18))throw CliErrors[_0x3c12d1(0x74)](_0x3c12d1(0x71),_0x3c12d1(0x76));return _0x289a18;}
1
+ (function(_0x1ada8e,_0x23492d){const _0x2d45e2=a352_0x2e7d,_0x26f3ea=_0x1ada8e();while(!![]){try{const _0x15791e=parseInt(_0x2d45e2(0x153))/0x1+-parseInt(_0x2d45e2(0x149))/0x2*(-parseInt(_0x2d45e2(0x156))/0x3)+-parseInt(_0x2d45e2(0x150))/0x4+parseInt(_0x2d45e2(0x152))/0x5*(parseInt(_0x2d45e2(0x155))/0x6)+-parseInt(_0x2d45e2(0x14a))/0x7*(-parseInt(_0x2d45e2(0x147))/0x8)+-parseInt(_0x2d45e2(0x14d))/0x9*(parseInt(_0x2d45e2(0x14b))/0xa)+-parseInt(_0x2d45e2(0x14e))/0xb;if(_0x15791e===_0x23492d)break;else _0x26f3ea['push'](_0x26f3ea['shift']());}catch(_0x541700){_0x26f3ea['push'](_0x26f3ea['shift']());}}}(a352_0x1bf9,0x2e5c2));function a352_0x2e7d(_0x377e5a,_0x7fe547){_0x377e5a=_0x377e5a-0x146;const _0x1bf9e9=a352_0x1bf9();let _0x2e7d09=_0x1bf9e9[_0x377e5a];return _0x2e7d09;}function a352_0x1bf9(){const _0x3f623e=['16SCrYqa','object','13738fkntbV','976150EEMytZ','690oFnXtu','validation','34767QRIHfX','1186570YHBnHg','parse','203852wsKcQW','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','200zYHWaN','188098zrCTOE','isArray','13998NCDfiO','24wcWqZS','--params\x20must\x20be\x20a\x20JSON\x20object'];a352_0x1bf9=function(){return _0x3f623e;};return a352_0x1bf9();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3c0d34){const _0x1f50f9=a352_0x2e7d;if(!_0x3c0d34)return undefined;let _0x5d2ac3;try{_0x5d2ac3=JSON[_0x1f50f9(0x14f)](_0x3c0d34);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3c0d34);}if(!_0x5d2ac3||typeof _0x5d2ac3!==_0x1f50f9(0x148)||Array[_0x1f50f9(0x154)](_0x5d2ac3))throw CliErrors[_0x1f50f9(0x14c)](_0x1f50f9(0x146),_0x1f50f9(0x151));return _0x5d2ac3;}
@@ -1 +1 @@
1
- function a348_0x32bc(){const _0x10632e=['32070Xemjie','2541771ZnyINf','5734090dIPfRe','6nqbhDQ','12CsMtDa','platform','1GctxqX','766624IBlkCe','7kUoOyM','18849446hjwzsa','39388cfWzOV','2133965lpWTvD'];a348_0x32bc=function(){return _0x10632e;};return a348_0x32bc();}const a348_0x545fa4=a348_0x3ed2;(function(_0x2ac1e4,_0x35e764){const _0x45986b=a348_0x3ed2,_0x591392=_0x2ac1e4();while(!![]){try{const _0xe67a25=-parseInt(_0x45986b(0xee))/0x1*(-parseInt(_0x45986b(0xe6))/0x2)+parseInt(_0x45986b(0xe8))/0x3*(-parseInt(_0x45986b(0xec))/0x4)+-parseInt(_0x45986b(0xe7))/0x5*(parseInt(_0x45986b(0xeb))/0x6)+parseInt(_0x45986b(0xe4))/0x7*(-parseInt(_0x45986b(0xef))/0x8)+-parseInt(_0x45986b(0xe9))/0x9+-parseInt(_0x45986b(0xea))/0xa+parseInt(_0x45986b(0xe5))/0xb;if(_0xe67a25===_0x35e764)break;else _0x591392['push'](_0x591392['shift']());}catch(_0x1f08c6){_0x591392['push'](_0x591392['shift']());}}}(a348_0x32bc,0x4ecc9));export const isWindows=process[a348_0x545fa4(0xed)]==='win32';function a348_0x3ed2(_0x52b57d,_0x4ab40f){_0x52b57d=_0x52b57d-0xe4;const _0x32bce5=a348_0x32bc();let _0x3ed23d=_0x32bce5[_0x52b57d];return _0x3ed23d;}export function resolveNpmBin(_0x2eac3c){return isWindows?_0x2eac3c+'.cmd':_0x2eac3c;}
1
+ const a353_0x1e870e=a353_0x1447;(function(_0x52803b,_0x41c0f6){const _0x21c1e4=a353_0x1447,_0x341153=_0x52803b();while(!![]){try{const _0x282b89=-parseInt(_0x21c1e4(0x1a1))/0x1+parseInt(_0x21c1e4(0x1a5))/0x2+-parseInt(_0x21c1e4(0x1a4))/0x3*(parseInt(_0x21c1e4(0x19e))/0x4)+-parseInt(_0x21c1e4(0x19d))/0x5+-parseInt(_0x21c1e4(0x1a2))/0x6*(parseInt(_0x21c1e4(0x1a7))/0x7)+-parseInt(_0x21c1e4(0x1a3))/0x8*(-parseInt(_0x21c1e4(0x1a6))/0x9)+parseInt(_0x21c1e4(0x19f))/0xa;if(_0x282b89===_0x41c0f6)break;else _0x341153['push'](_0x341153['shift']());}catch(_0x36971c){_0x341153['push'](_0x341153['shift']());}}}(a353_0x1bac,0x41528));function a353_0x1bac(){const _0x217867=['9828BHJdyO','3373224oKVhWv','87HedZwS','1049708JWFnhA','9VACrEQ','1722QVeSau','2484575SxyHFA','41908itVJVB','9857520iEOVyb','win32','461003HVtdML'];a353_0x1bac=function(){return _0x217867;};return a353_0x1bac();}export const isWindows=process['platform']===a353_0x1e870e(0x1a0);function a353_0x1447(_0x5d4699,_0x3164fc){_0x5d4699=_0x5d4699-0x19d;const _0x1bac5b=a353_0x1bac();let _0x1447da=_0x1bac5b[_0x5d4699];return _0x1447da;}export function resolveNpmBin(_0x56251e){return isWindows?_0x56251e+'.cmd':_0x56251e;}