@lovrabet/rabetbase-cli 2.5.4-beta.3 → 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 (389) 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 +16 -1
  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 +22 -13
  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/references/rabetbase-user-account.md +8 -8
  389. package/skills/rabetbase.manifest.json +8 -3
@@ -1 +1 @@
1
- const a325_0x512530=a325_0x1f7d;(function(_0xe567ab,_0x2d8699){const _0x4aeeca=a325_0x1f7d,_0x436c87=_0xe567ab();while(!![]){try{const _0x74f432=parseInt(_0x4aeeca(0xec))/0x1*(parseInt(_0x4aeeca(0x111))/0x2)+parseInt(_0x4aeeca(0xfc))/0x3+-parseInt(_0x4aeeca(0xf5))/0x4*(-parseInt(_0x4aeeca(0x107))/0x5)+-parseInt(_0x4aeeca(0xef))/0x6+-parseInt(_0x4aeeca(0xe5))/0x7*(-parseInt(_0x4aeeca(0x105))/0x8)+parseInt(_0x4aeeca(0x10c))/0x9*(-parseInt(_0x4aeeca(0xfd))/0xa)+parseInt(_0x4aeeca(0x121))/0xb*(parseInt(_0x4aeeca(0x10f))/0xc);if(_0x74f432===_0x2d8699)break;else _0x436c87['push'](_0x436c87['shift']());}catch(_0x48275c){_0x436c87['push'](_0x436c87['shift']());}}}(a325_0xba7b,0xeb2d0));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a325_0x512530(0xf6);export const NPX_SKILLS_SUBCOMMAND_ADD=a325_0x512530(0x114);export const NPX_SKILLS_FLAG_SKILL=a325_0x512530(0x10d);export const RABETBASE_SKILL_SOURCE=a325_0x512530(0x110);export const RABETBASE_GLOBAL_SKILL_NAME=a325_0x512530(0x115);export const RABETBASE_SKILL_GIT_SOURCE=a325_0x512530(0xed);function a325_0xba7b(){const _0x476502=['Skill\x20\x22','npx\x20terminated\x20by\x20signal\x20','inherit','CHILD_TERMINATED','stdout','join','trim','EPERM','18678319xLAbbF','413bDhWFe','failed','stderr','ENOENT','presence','SPAWN_FAILED','SKILL_NOT_INSTALLED','369293fEFJHq','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','code','10816926ALoHgL','Installer\x20reported\x20','absent','present','push','npx','1710008HjLcAl','skills@latest','npm_config_global','pipe','exit\x20','\x22\x20install\x20state:\x20','unknown','938451VxIAPz','10310530kqrAmp','state','message','CHILD_EXIT_NONZERO','partialFailure','signal','match','unverifiable','34024tnaZri','\x20failed\x20target(s)','5jLOMHK','stdio','checked','skill','exitCode','9mjeDmG','--skill','EACCES','12VwyHfp','lovrabet/rabetbase','6kXsVIH','INSTALL_PARTIAL','expectedSkillName','add','rabetbase','filter','warn','shortMessage'];a325_0xba7b=function(){return _0x476502;};return a325_0xba7b();}export function resolveGlobalSkillName(_0x3ea637){const _0x22d687=a325_0x512530;switch(_0x3ea637[_0x22d687(0x11f)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x4aec8c){const _0x6b31dc=a325_0x512530,_0x108632=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x4aec8c&&_0x108632[_0x6b31dc(0xf3)](NPX_SKILLS_FLAG_SKILL,_0x4aec8c),_0x108632;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a325_0x512530(0xf4),...buildNpxSkillsAddArgv()][a325_0x512530(0x11e)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x5c5818,_0x9699a8,_0x5d25fc){return{'ok':![],'status':_0x9699a8,'code':_0x5c5818,'error':'['+_0x5c5818+']\x20'+_0x5d25fc};}function a325_0x1f7d(_0x1d6ffa,_0x7f15f){_0x1d6ffa=_0x1d6ffa-0xe5;const _0xba7b72=a325_0xba7b();let _0x1f7d62=_0xba7b72[_0x1d6ffa];return _0x1f7d62;}function execaOptions(_0x38dc97,_0x40a1f0){const _0x39e891=a325_0x512530,_0x303b87={...process.env};return delete _0x303b87[_0x39e891(0xf7)],delete _0x303b87['NPM_CONFIG_GLOBAL'],{'cwd':_0x38dc97,'stdio':_0x40a1f0,'env':_0x303b87,'extendEnv':![],'shell':![],'reject':![],..._0x40a1f0==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0xae1648,_0x2673ef,_0x24cb38){const _0x22a8c6=a325_0x512530,_0x2d385e=[_0xae1648[_0x22a8c6(0x11d)]?String(_0xae1648['stdout']):'',_0xae1648[_0x22a8c6(0xe7)]?String(_0xae1648[_0x22a8c6(0xe7)]):''][_0x22a8c6(0x116)](Boolean)[_0x22a8c6(0x11e)]('\x0a')[_0x22a8c6(0x11f)](),_0x378359=_0xae1648[_0x22a8c6(0x10b)]??null;if(_0xae1648[_0x22a8c6(0xee)]){const _0x489894=_0xae1648['code']===_0x22a8c6(0xe8)?'NPX_NOT_FOUND':_0xae1648[_0x22a8c6(0xee)]===_0x22a8c6(0x120)||_0xae1648['code']===_0x22a8c6(0x10e)?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0x489894,_0x378359,_0xae1648[_0x22a8c6(0x118)]??_0xae1648['message']??_0xae1648[_0x22a8c6(0xee)]);}if(_0xae1648[_0x22a8c6(0x102)])return failure(_0x22a8c6(0x11c),_0x378359,_0x22a8c6(0x11a)+_0xae1648[_0x22a8c6(0x102)]);if(_0xae1648[_0x22a8c6(0xe6)]&&_0x378359===null)return failure(_0x22a8c6(0xea),_0x378359,_0xae1648[_0x22a8c6(0x118)]??_0xae1648[_0x22a8c6(0xff)]??'npx\x20failed\x20to\x20start');if(_0x378359!==0x0)return failure(_0x22a8c6(0x100),_0x378359,_0x2d385e||_0xae1648[_0x22a8c6(0x118)]||_0x22a8c6(0xf9)+(_0x378359??_0x22a8c6(0xfb)));const _0x5c0731=_0x2673ef?resolveInstalledSkill(_0x2673ef,_0x24cb38):undefined,_0x456c02=_0x2d385e[_0x22a8c6(0x103)](/Failed to install\s+(\d+)/i);if(_0x456c02&&Number(_0x456c02[0x1])>0x0){const _0x3b54a7=_0x22a8c6(0xf0)+_0x456c02[0x1]+_0x22a8c6(0x106)+(_0x2d385e?':\x0a'+_0x2d385e:'');if(_0x5c0731?.['state']===_0x22a8c6(0xf2))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x456c02[0x1]),'output':_0x2d385e}};return failure(_0x22a8c6(0x112),0x0,_0x3b54a7);}if(_0x5c0731){if(_0x5c0731[_0x22a8c6(0xfe)]===_0x22a8c6(0xf1))return failure(_0x22a8c6(0xeb),0x0,_0x22a8c6(0x119)+_0x2673ef+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x5c0731[_0x22a8c6(0x109)][_0x22a8c6(0x11e)](',\x20')+')');_0x5c0731[_0x22a8c6(0xfe)]===_0x22a8c6(0x104)&&console[_0x22a8c6(0x117)]('!\x20Could\x20not\x20verify\x20\x22'+_0x2673ef+_0x22a8c6(0xfa)+_0x5c0731['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3a69e6,_0x21e34b){const _0x1b6c61=a325_0x512530;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4ec913=_0x21e34b?.[_0x1b6c61(0x108)]??_0x1b6c61(0x11b),_0x1dc3d5=buildNpxSkillsAddArgv(_0x21e34b?.[_0x1b6c61(0x10a)]),_0x11e509=[_0x1b6c61(0xf4),..._0x1dc3d5]['join']('\x20');console['log']('*\x20'+_0x11e509);const _0x4b3305=execaSync('npx',_0x1dc3d5,execaOptions(_0x3a69e6,_0x4ec913));return normalizeExecaResult(_0x4b3305);}export function runNpxSkillsAddGlobal(_0x14d129,_0x2cd574,_0x251e9a){const _0x4b56d8=a325_0x512530;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3eb881=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2cd574,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x39573b=[_0x4b56d8(0xf4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2cd574,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4b56d8(0x11e)]('\x20');console['log']('*\x20'+_0x39573b);const _0x182138=execaSync(_0x4b56d8(0xf4),_0x3eb881,execaOptions(_0x14d129,_0x4b56d8(0xf8))),_0x32f3dc=normalizeExecaResult(_0x182138,_0x251e9a?.[_0x4b56d8(0x113)]??resolveGlobalSkillName(_0x2cd574),_0x251e9a?.[_0x4b56d8(0xe9)]);if(_0x251e9a?.['stdio']!==_0x4b56d8(0xf8)&&!_0x32f3dc[_0x4b56d8(0x101)]){const _0x113a01=[_0x182138[_0x4b56d8(0x11d)],_0x182138['stderr']]['filter'](Boolean)[_0x4b56d8(0x11e)]('\x0a')[_0x4b56d8(0x11f)]();if(_0x113a01)console['log'](_0x113a01);}return _0x32f3dc;}
1
+ const a330_0x3cded0=a330_0x35db;(function(_0x6b41b6,_0x12e3b7){const _0x1a8559=a330_0x35db,_0x1c0a82=_0x6b41b6();while(!![]){try{const _0x40c398=-parseInt(_0x1a8559(0x133))/0x1+-parseInt(_0x1a8559(0x158))/0x2+-parseInt(_0x1a8559(0x157))/0x3*(-parseInt(_0x1a8559(0x132))/0x4)+parseInt(_0x1a8559(0x15b))/0x5+-parseInt(_0x1a8559(0x14c))/0x6*(parseInt(_0x1a8559(0x13e))/0x7)+parseInt(_0x1a8559(0x151))/0x8+parseInt(_0x1a8559(0x138))/0x9*(parseInt(_0x1a8559(0x131))/0xa);if(_0x40c398===_0x12e3b7)break;else _0x1c0a82['push'](_0x1c0a82['shift']());}catch(_0x5059f1){_0x1c0a82['push'](_0x1c0a82['shift']());}}}(a330_0x3cf7,0x43753));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';function a330_0x3cf7(){const _0x566d0c=['Installer\x20reported\x20','message','skill','join','npx\x20failed\x20to\x20start','9Kjcjix','1056102NPBQvb','checked','CHILD_TERMINATED','1472410tppILY','NPM_CONFIG_GLOBAL','shortMessage','signal','match','npx','push','--skill','EACCES','stdout','stdio','presence','unverifiable','code','failed','20MijxtH','9104HOqwLI','422411wrSsRC','npm_config_global','CHILD_EXIT_NONZERO','EPERM','\x22\x20install\x20state:\x20','3913731dnbAih','warn','SKILL_NOT_INSTALLED','npx\x20terminated\x20by\x20signal\x20','exitCode','partialFailure','7uUWJWP','absent','NPX_NOT_FOUND','stderr','log','exit\x20','filter','pipe','trim','reason','PERMISSION_DENIED','skills@latest','state','SPAWN_FAILED','2682228RYIzjQ','unknown','INSTALL_PARTIAL','ENOENT','rabetbase','4022232ENeyMG'];a330_0x3cf7=function(){return _0x566d0c;};return a330_0x3cf7();}export const NPX_SKILLS_CLI=a330_0x3cded0(0x149);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a330_0x3cded0(0x162);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const RABETBASE_GLOBAL_SKILL_NAME=a330_0x3cded0(0x150);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x2878e3){const _0x2f7414=a330_0x3cded0;switch(_0x2878e3[_0x2f7414(0x146)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x502945){const _0x2e6428=a330_0x3cded0,_0x5500ad=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x502945&&_0x5500ad[_0x2e6428(0x161)](NPX_SKILLS_FLAG_SKILL,_0x502945),_0x5500ad;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a330_0x3cded0(0x160),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a330_0x3cded0(0x160),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2c5817,_0x2c94fa,_0x1e0120){return{'ok':![],'status':_0x2c94fa,'code':_0x2c5817,'error':'['+_0x2c5817+']\x20'+_0x1e0120};}function execaOptions(_0x46bc3c,_0x3bbe1a){const _0x4932b5=a330_0x3cded0,_0x335766={...process.env};return delete _0x335766[_0x4932b5(0x134)],delete _0x335766[_0x4932b5(0x15c)],{'cwd':_0x46bc3c,'stdio':_0x3bbe1a,'env':_0x335766,'extendEnv':![],'shell':![],'reject':![],..._0x3bbe1a===_0x4932b5(0x145)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x2b3e1c,_0x7b75f0,_0x19be6a){const _0x4b71f8=a330_0x3cded0,_0x9c41a1=[_0x2b3e1c[_0x4b71f8(0x164)]?String(_0x2b3e1c[_0x4b71f8(0x164)]):'',_0x2b3e1c['stderr']?String(_0x2b3e1c[_0x4b71f8(0x141)]):''][_0x4b71f8(0x144)](Boolean)['join']('\x0a')['trim'](),_0x589b1f=_0x2b3e1c[_0x4b71f8(0x13c)]??null;if(_0x2b3e1c['code']){const _0x85a7d6=_0x2b3e1c['code']===_0x4b71f8(0x14f)?_0x4b71f8(0x140):_0x2b3e1c['code']===_0x4b71f8(0x136)||_0x2b3e1c['code']===_0x4b71f8(0x163)?_0x4b71f8(0x148):_0x4b71f8(0x14b);return failure(_0x85a7d6,_0x589b1f,_0x2b3e1c[_0x4b71f8(0x15d)]??_0x2b3e1c['message']??_0x2b3e1c[_0x4b71f8(0x168)]);}if(_0x2b3e1c['signal'])return failure(_0x4b71f8(0x15a),_0x589b1f,_0x4b71f8(0x13b)+_0x2b3e1c[_0x4b71f8(0x15e)]);if(_0x2b3e1c[_0x4b71f8(0x169)]&&_0x589b1f===null)return failure(_0x4b71f8(0x14b),_0x589b1f,_0x2b3e1c['shortMessage']??_0x2b3e1c[_0x4b71f8(0x153)]??_0x4b71f8(0x156));if(_0x589b1f!==0x0)return failure(_0x4b71f8(0x135),_0x589b1f,_0x9c41a1||_0x2b3e1c[_0x4b71f8(0x15d)]||_0x4b71f8(0x143)+(_0x589b1f??_0x4b71f8(0x14d)));const _0x46ca1f=_0x7b75f0?resolveInstalledSkill(_0x7b75f0,_0x19be6a):undefined,_0x10c780=_0x9c41a1[_0x4b71f8(0x15f)](/Failed to install\s+(\d+)/i);if(_0x10c780&&Number(_0x10c780[0x1])>0x0){const _0x157e56=_0x4b71f8(0x152)+_0x10c780[0x1]+'\x20failed\x20target(s)'+(_0x9c41a1?':\x0a'+_0x9c41a1:'');if(_0x46ca1f?.[_0x4b71f8(0x14a)]==='present')return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x10c780[0x1]),'output':_0x9c41a1}};return failure(_0x4b71f8(0x14e),0x0,_0x157e56);}if(_0x46ca1f){if(_0x46ca1f[_0x4b71f8(0x14a)]===_0x4b71f8(0x13f))return failure(_0x4b71f8(0x13a),0x0,'Skill\x20\x22'+_0x7b75f0+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x46ca1f[_0x4b71f8(0x159)][_0x4b71f8(0x155)](',\x20')+')');_0x46ca1f[_0x4b71f8(0x14a)]===_0x4b71f8(0x167)&&console[_0x4b71f8(0x139)]('!\x20Could\x20not\x20verify\x20\x22'+_0x7b75f0+_0x4b71f8(0x137)+_0x46ca1f[_0x4b71f8(0x147)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}function a330_0x35db(_0x4dc7f7,_0x34985a){_0x4dc7f7=_0x4dc7f7-0x131;const _0x3cf710=a330_0x3cf7();let _0x35db78=_0x3cf710[_0x4dc7f7];return _0x35db78;}export function runNpxSkillsAdd(_0xcd5f85,_0x381f13){const _0x15cbda=a330_0x3cded0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3d04e0=_0x381f13?.[_0x15cbda(0x165)]??'inherit',_0x4a0c8e=buildNpxSkillsAddArgv(_0x381f13?.[_0x15cbda(0x154)]),_0x21de30=[_0x15cbda(0x160),..._0x4a0c8e][_0x15cbda(0x155)]('\x20');console['log']('*\x20'+_0x21de30);const _0x40415b=execaSync(_0x15cbda(0x160),_0x4a0c8e,execaOptions(_0xcd5f85,_0x3d04e0));return normalizeExecaResult(_0x40415b);}export function runNpxSkillsAddGlobal(_0x414103,_0x1f90d4,_0x5a9d11){const _0x718db2=a330_0x3cded0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5d88f8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1f90d4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9cd235=[_0x718db2(0x160),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1f90d4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x718db2(0x155)]('\x20');console['log']('*\x20'+_0x9cd235);const _0x207941=execaSync('npx',_0x5d88f8,execaOptions(_0x414103,_0x718db2(0x145))),_0x5d2b1f=normalizeExecaResult(_0x207941,_0x5a9d11?.['expectedSkillName']??resolveGlobalSkillName(_0x1f90d4),_0x5a9d11?.[_0x718db2(0x166)]);if(_0x5a9d11?.['stdio']!==_0x718db2(0x145)&&!_0x5d2b1f[_0x718db2(0x13d)]){const _0x1c0185=[_0x207941[_0x718db2(0x164)],_0x207941[_0x718db2(0x141)]][_0x718db2(0x144)](Boolean)['join']('\x0a')[_0x718db2(0x146)]();if(_0x1c0185)console[_0x718db2(0x142)](_0x1c0185);}return _0x5d2b1f;}
@@ -1 +1 @@
1
- const a326_0x1e5b02=a326_0x1105;(function(_0x51d1bb,_0x42e820){const _0x3a4c4f=a326_0x1105,_0x3937e8=_0x51d1bb();while(!![]){try{const _0x595f2e=parseInt(_0x3a4c4f(0xbb))/0x1+parseInt(_0x3a4c4f(0x9f))/0x2*(-parseInt(_0x3a4c4f(0x9e))/0x3)+parseInt(_0x3a4c4f(0xa4))/0x4+-parseInt(_0x3a4c4f(0xb2))/0x5*(parseInt(_0x3a4c4f(0xba))/0x6)+-parseInt(_0x3a4c4f(0xbf))/0x7*(parseInt(_0x3a4c4f(0xac))/0x8)+parseInt(_0x3a4c4f(0xa6))/0x9*(-parseInt(_0x3a4c4f(0xb1))/0xa)+parseInt(_0x3a4c4f(0xb0))/0xb;if(_0x595f2e===_0x42e820)break;else _0x3937e8['push'](_0x3937e8['shift']());}catch(_0x253e85){_0x3937e8['push'](_0x3937e8['shift']());}}}(a326_0x7882,0x33eba));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a326_0x1105(_0x22e3e5,_0xa03b4){_0x22e3e5=_0x22e3e5-0x99;const _0x788224=a326_0x7882();let _0x110554=_0x788224[_0x22e3e5];return _0x110554;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a326_0x1e5b02(0xab),a326_0x1e5b02(0xa9));function a326_0x7882(){const _0x199868=['map','number','2046cPFBjZ','788hRVyIA','absent','not-recorded','utf8','message','559292KKtktV','\x20uses\x20unsupported\x20version\x20','9ylzdMs','unverifiable','reason','.skill-lock.json','join','.agents','721168LrlDmq','SKILL.md','object','present','8147436gocndv','1469060VMTwqG','1600045XUZsXD','recorded','parse','globalSkillsDirs','home','find','.claude','\x20records\x20\x22','6qpCrSA','157936YUUhbj','unusable','skills','\x20has\x20no\x20skills\x20map','7uJvnNH','version','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','kind','\x20is\x20unreadable:\x20'];a326_0x7882=function(){return _0x199868;};return a326_0x7882();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a326_0x1e5b02(0xab),a326_0x1e5b02(0xbd)),join(a326_0x1e5b02(0xb8),a326_0x1e5b02(0xbd))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x49ee4b,_0x2e9b1a){const _0x5b374f=a326_0x1e5b02;if(!existsSync(_0x49ee4b))return{'kind':_0x5b374f(0xa1)};let _0x5772cf;try{_0x5772cf=JSON[_0x5b374f(0xb4)](readFileSync(_0x49ee4b,_0x5b374f(0xa2)));}catch(_0x4060f0){return{'kind':_0x5b374f(0xbc),'reason':_0x49ee4b+_0x5b374f(0x9b)+_0x4060f0[_0x5b374f(0xa3)]};}const _0x54f4e3=_0x5772cf;if(typeof _0x54f4e3?.[_0x5b374f(0xc0)]!==_0x5b374f(0x9d)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x54f4e3[_0x5b374f(0xc0)]))return{'kind':'unusable','reason':_0x49ee4b+_0x5b374f(0xa5)+String(_0x54f4e3?.[_0x5b374f(0xc0)])};if(!_0x54f4e3[_0x5b374f(0xbd)]||typeof _0x54f4e3[_0x5b374f(0xbd)]!==_0x5b374f(0xae))return{'kind':_0x5b374f(0xbc),'reason':_0x49ee4b+_0x5b374f(0xbe)};return _0x54f4e3['skills'][_0x2e9b1a]?{'kind':_0x5b374f(0xb3)}:{'kind':_0x5b374f(0xa1)};}export function resolveInstalledSkill(_0x35d70c,_0x5138dc){const _0x194ff4=a326_0x1e5b02,_0x56a0e6=_0x5138dc?.[_0x194ff4(0xb6)]??homedir(),_0x1adf75=_0x5138dc?.[_0x194ff4(0xb5)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x194ff4(0x9c)](_0x165f8b=>join(_0x56a0e6,_0x165f8b)),_0x345740=_0x5138dc?.['lockFile']??join(_0x56a0e6,SKILL_LOCK_RELATIVE_PATH),_0x5a9cc0=_0x1adf75[_0x194ff4(0x9c)](_0x282a78=>join(_0x282a78,_0x35d70c,_0x194ff4(0xad))),_0xd19f12=_0x5a9cc0[_0x194ff4(0xb7)](_0x3b630c=>existsSync(_0x3b630c));if(_0xd19f12)return{'state':_0x194ff4(0xaf),'path':_0xd19f12};const _0x3e57e8=readLockLookup(_0x345740,_0x35d70c);if(_0x3e57e8[_0x194ff4(0x9a)]===_0x194ff4(0xbc))return{'state':_0x194ff4(0xa7),'reason':_0x3e57e8[_0x194ff4(0xa8)]};if(_0x3e57e8['kind']===_0x194ff4(0xb3))return{'state':_0x194ff4(0xa7),'reason':_0x345740+_0x194ff4(0xb9)+_0x35d70c+_0x194ff4(0x99)+('('+_0x5a9cc0[_0x194ff4(0xaa)](',\x20')+')')};return{'state':_0x194ff4(0xa0),'checked':_0x5a9cc0};}
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(_0xd1bbd2,_0x458eec){const _0x2849ca=a327_0x4203,_0x4048b7=_0xd1bbd2();while(!![]){try{const _0x1df112=parseInt(_0x2849ca(0x103))/0x1*(parseInt(_0x2849ca(0x105))/0x2)+-parseInt(_0x2849ca(0x106))/0x3+-parseInt(_0x2849ca(0xf9))/0x4+parseInt(_0x2849ca(0xfa))/0x5+parseInt(_0x2849ca(0xfe))/0x6+-parseInt(_0x2849ca(0xff))/0x7*(parseInt(_0x2849ca(0xfc))/0x8)+parseInt(_0x2849ca(0xfd))/0x9*(parseInt(_0x2849ca(0x108))/0xa);if(_0x1df112===_0x458eec)break;else _0x4048b7['push'](_0x4048b7['shift']());}catch(_0x11f81c){_0x4048b7['push'](_0x4048b7['shift']());}}}(a327_0x56d5,0x93512));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a327_0x56d5(){const _0xa82476=['553725HvqRJf','message','457296jzcoNN','7713rgUjMJ','3041844wAkoRh','35svWnsK','test','flags','stringify','1PmwELD','some','518002YPYipS','2521512dhjYcv','command','22520WZqMhG','rabetbase.command','entries','durationMs','error','4307840kVOyGx'];a327_0x56d5=function(){return _0xa82476;};return a327_0x56d5();}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x5594cd){const _0x51f4cd=a327_0x4203;return SENSITIVE_PATTERNS[_0x51f4cd(0x104)](_0x4a3be7=>_0x4a3be7[_0x51f4cd(0x100)](_0x5594cd));}function sanitizeFlags(_0x5bb98f){const _0x3cc004=a327_0x4203,_0x1fb484={};for(const [_0x4a3870,_0x51fb12]of Object[_0x3cc004(0xf6)](_0x5bb98f)){isSensitiveKey(_0x4a3870)?_0x1fb484[_0x4a3870]=_0x51fb12!=null&&_0x51fb12!==''?'[REDACTED]':_0x51fb12:_0x1fb484[_0x4a3870]=_0x51fb12;}return _0x1fb484;}function a327_0x4203(_0x4652e5,_0x2e3211){_0x4652e5=_0x4652e5-0xf6;const _0x56d56a=a327_0x56d5();let _0x42038a=_0x56d56a[_0x4652e5];return _0x42038a;}export async function reportCommandTrace(_0x3516b9){const _0x322280=a327_0x4203;try{const _0x1f32a8=sanitizeFlags(_0x3516b9[_0x322280(0x101)]);await sendCliTraceLog({'spanName':_0x322280(0x109),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3516b9['service'],'command.name':_0x3516b9[_0x322280(0x107)],'command.flags':JSON[_0x322280(0x102)](_0x1f32a8),..._0x3516b9[_0x322280(0xf7)]!=null?{'command.duration_ms':_0x3516b9['durationMs']}:{},..._0x3516b9['error']?{'command.error':_0x3516b9[_0x322280(0xf8)]instanceof Error?_0x3516b9[_0x322280(0xf8)][_0x322280(0xfb)]:String(_0x3516b9[_0x322280(0xf8)])}:{}}});}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(_0x2ad561,_0x1eb643){var _0x408167=a328_0x1fa5,_0x4acc67=_0x2ad561();while(!![]){try{var _0xa45fef=parseInt(_0x408167(0xd8))/0x1+parseInt(_0x408167(0xe6))/0x2*(-parseInt(_0x408167(0xd7))/0x3)+parseInt(_0x408167(0xd9))/0x4*(parseInt(_0x408167(0xe2))/0x5)+-parseInt(_0x408167(0xe1))/0x6+parseInt(_0x408167(0xda))/0x7*(parseInt(_0x408167(0xde))/0x8)+parseInt(_0x408167(0xe4))/0x9*(parseInt(_0x408167(0xe5))/0xa)+-parseInt(_0x408167(0xdb))/0xb*(parseInt(_0x408167(0xdc))/0xc);if(_0xa45fef===_0x1eb643)break;else _0x4acc67['push'](_0x4acc67['shift']());}catch(_0x5da775){_0x4acc67['push'](_0x4acc67['shift']());}}}(a328_0x379b,0x62552));function a328_0x379b(){var _0x231581=['41862WtreFm','45avHffc','616988nNJfcl','260zvRjMP','7mveVrD','11XPSuMC','14871228agsNjj','error','5683856Zlougc','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','902340yNzwHN','695FeXsVT','cli.help','9aDidIu','7698890cyHRQc'];a328_0x379b=function(){return _0x231581;};return a328_0x379b();}function a328_0x1fa5(_0xd10856,_0x5ed7ac){_0xd10856=_0xd10856-0xd7;var _0x379b77=a328_0x379b();var _0x1fa5e3=_0x379b77[_0xd10856];return _0x1fa5e3;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x19df7d,_0x24a16a){var _0x27f327=a328_0x1fa5;try{await sendCliTraceLog({'spanName':_0x27f327(0xe3),'logData':{'rabetbase.help.kind':_0x19df7d,..._0x24a16a?.[_0x27f327(0xe0)]&&{'rabetbase.help.service':_0x24a16a[_0x27f327(0xe0)]}}});}catch(_0x1a93c7){console[_0x27f327(0xdd)](_0x27f327(0xdf),_0x1a93c7);}}
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(_0x29d99e,_0x2a5fd8){const _0x598a12=a329_0x36ea,_0x37283d=_0x29d99e();while(!![]){try{const _0xb4106=parseInt(_0x598a12(0x9d))/0x1*(-parseInt(_0x598a12(0x9c))/0x2)+parseInt(_0x598a12(0xa2))/0x3+-parseInt(_0x598a12(0xa9))/0x4*(parseInt(_0x598a12(0xa4))/0x5)+-parseInt(_0x598a12(0x9f))/0x6*(-parseInt(_0x598a12(0xa6))/0x7)+-parseInt(_0x598a12(0xa1))/0x8+-parseInt(_0x598a12(0x9e))/0x9*(-parseInt(_0x598a12(0xa3))/0xa)+-parseInt(_0x598a12(0xab))/0xb*(-parseInt(_0x598a12(0xa0))/0xc);if(_0xb4106===_0x2a5fd8)break;else _0x37283d['push'](_0x37283d['shift']());}catch(_0x5d877e){_0x37283d['push'](_0x37283d['shift']());}}}(a329_0x510c,0x98c78));function a329_0x510c(){const _0x150cab=['production','1519AHBAel','unknown','daily','68XQWCUp','username','9809668CVDldf','194ZsSLCx','9325KonIyw','72Hgevyo','32322xYulCa','12HIpefg','1234224WgbmvY','1747527EEeoXp','30590OvArss','289165GfeBJa'];a329_0x510c=function(){return _0x150cab;};return a329_0x510c();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a329_0x36ea(_0x423f3e,_0x568cc7){_0x423f3e=_0x423f3e-0x9c;const _0x510cd6=a329_0x510c();let _0x36ea73=_0x510cd6[_0x423f3e];return _0x36ea73;}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 _0x5868b5=a329_0x36ea,_0x1a47a1=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1689a4=_0x1a47a1?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5868b5(0xa7)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5868b5(0xa8):_0x5868b5(0xa5))}),setUserContext({'id':_0x1689a4?.['id'],'username':_0x1689a4?.[_0x5868b5(0xaa)],'nickname':_0x1689a4?.['nickname'],'email':_0x1689a4?.['email'],'tenantCode':_0x1689a4?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1a47a1;}
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_0x3b47(){const _0x1d17b3=['then','once','9DDzKin','1738oHubHm','12oaaOvA','24YBnFsh','17954okHSRO','SIGTERM','exit','1548184SKruLj','25780FlFqsz','364615bPuYld','652848NBjBhC','24722784OmVmzw','3051006IcSvlY','28YvvOVl'];a330_0x3b47=function(){return _0x1d17b3;};return a330_0x3b47();}(function(_0xe62972,_0x525d31){const _0x59e1e9=a330_0x56e4,_0x5c54e4=_0xe62972();while(!![]){try{const _0x247f58=-parseInt(_0x59e1e9(0x145))/0x1*(-parseInt(_0x59e1e9(0x144))/0x2)+-parseInt(_0x59e1e9(0x14b))/0x3+-parseInt(_0x59e1e9(0x14e))/0x4*(parseInt(_0x59e1e9(0x14a))/0x5)+-parseInt(_0x59e1e9(0x143))/0x6*(parseInt(_0x59e1e9(0x14d))/0x7)+parseInt(_0x59e1e9(0x148))/0x8*(parseInt(_0x59e1e9(0x141))/0x9)+-parseInt(_0x59e1e9(0x149))/0xa*(parseInt(_0x59e1e9(0x142))/0xb)+parseInt(_0x59e1e9(0x14c))/0xc;if(_0x247f58===_0x525d31)break;else _0x5c54e4['push'](_0x5c54e4['shift']());}catch(_0xd1fe96){_0x5c54e4['push'](_0x5c54e4['shift']());}}}(a330_0x3b47,0x70d06));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a330_0x56e4(_0x42349f,_0x40ebd3){_0x42349f=_0x42349f-0x141;const _0x3b4746=a330_0x3b47();let _0x56e44e=_0x3b4746[_0x42349f];return _0x56e44e;}export function registerOtelShutdownOnExit(){const _0x86a080=a330_0x56e4;process[_0x86a080(0x150)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x53d94c=()=>{const _0x1547fe=_0x86a080;void flushOtelNodeIfUsed()[_0x1547fe(0x14f)](()=>process[_0x1547fe(0x147)](0x0));};process['once']('SIGINT',_0x53d94c),process[_0x86a080(0x150)](_0x86a080(0x146),_0x53d94c);}export async function exitWithOtelShutdown(_0x7a2c04){const _0x5ba016=a330_0x56e4;await flushOtelNodeIfUsed(),process[_0x5ba016(0x147)](_0x7a2c04);}
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
- const a331_0x180a88=a331_0xc6d8;function a331_0x3faa(){const _0x4a6bda=['48jDWikY','spanName','traceName','160405DcfMlb','406076BDvlBm','5864HTBDxY','369XvAepV','logData','traceparent','889859iGifvh','3gjfsuV','9289pkNXwB','27330xefslF','108bEEcVj','version','13390585fKPkRl','rabetbase-cli','2218828LbwJrH','manual','2ZhLGfk'];a331_0x3faa=function(){return _0x4a6bda;};return a331_0x3faa();}function a331_0xc6d8(_0x5a182d,_0x3c8716){_0x5a182d=_0x5a182d-0xf0;const _0x3faa4f=a331_0x3faa();let _0xc6d85a=_0x3faa4f[_0x5a182d];return _0xc6d85a;}(function(_0x202457,_0x16b6d8){const _0x4bf8a9=a331_0xc6d8,_0x88ff3e=_0x202457();while(!![]){try{const _0x385305=-parseInt(_0x4bf8a9(0xf3))/0x1*(-parseInt(_0x4bf8a9(0xfd))/0x2)+-parseInt(_0x4bf8a9(0xf4))/0x3*(-parseInt(_0x4bf8a9(0xfb))/0x4)+-parseInt(_0x4bf8a9(0x101))/0x5*(parseInt(_0x4bf8a9(0xf7))/0x6)+parseInt(_0x4bf8a9(0xf5))/0x7*(parseInt(_0x4bf8a9(0x103))/0x8)+parseInt(_0x4bf8a9(0xf0))/0x9*(-parseInt(_0x4bf8a9(0xf6))/0xa)+parseInt(_0x4bf8a9(0x102))/0xb*(-parseInt(_0x4bf8a9(0xfe))/0xc)+-parseInt(_0x4bf8a9(0xf9))/0xd;if(_0x385305===_0x16b6d8)break;else _0x88ff3e['push'](_0x88ff3e['shift']());}catch(_0x46b2ad){_0x88ff3e['push'](_0x88ff3e['shift']());}}}(a331_0x3faa,0x86495));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=a331_0x180a88(0xfa);export async function sendCliTraceLog(_0x2fd7cc){const _0xd2bf46=a331_0x180a88;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2fd7cc[_0xd2bf46(0x100)]??DEFAULT_TRACE_NAME,'version':_0x2fd7cc[_0xd2bf46(0xf8)]??getCliVersion(),'spanName':_0x2fd7cc[_0xd2bf46(0xff)],'eventType':_0xd2bf46(0xfc),'logData':_0x2fd7cc[_0xd2bf46(0xf1)],..._0x2fd7cc[_0xd2bf46(0xf2)]&&{'traceparent':_0x2fd7cc['traceparent']}});}
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
- const a332_0x23a8bb=a332_0x19d1;(function(_0x1b9a25,_0x209191){const _0x5ddf3f=a332_0x19d1,_0x560f66=_0x1b9a25();while(!![]){try{const _0x1daade=parseInt(_0x5ddf3f(0x190))/0x1+-parseInt(_0x5ddf3f(0x18a))/0x2*(parseInt(_0x5ddf3f(0x192))/0x3)+parseInt(_0x5ddf3f(0x18d))/0x4*(parseInt(_0x5ddf3f(0x183))/0x5)+parseInt(_0x5ddf3f(0x189))/0x6*(parseInt(_0x5ddf3f(0x187))/0x7)+parseInt(_0x5ddf3f(0x18c))/0x8*(parseInt(_0x5ddf3f(0x186))/0x9)+-parseInt(_0x5ddf3f(0x193))/0xa*(parseInt(_0x5ddf3f(0x185))/0xb)+-parseInt(_0x5ddf3f(0x18e))/0xc;if(_0x1daade===_0x209191)break;else _0x560f66['push'](_0x560f66['shift']());}catch(_0x500a4b){_0x560f66['push'](_0x560f66['shift']());}}}(a332_0x1316,0x94fd8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a332_0x19d1(_0x20915d,_0x32d5a1){_0x20915d=_0x20915d-0x183;const _0x1316eb=a332_0x1316();let _0x19d1fc=_0x1316eb[_0x20915d];return _0x19d1fc;}export const PLATFORM_ISSUE_TRACE_NAME=a332_0x23a8bb(0x191);export const PLATFORM_ISSUE_SPAN_NAME=a332_0x23a8bb(0x194);export async function sendPlatformIssueCollectLog(_0x534639){const _0x964f40=a332_0x23a8bb;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x534639[_0x964f40(0x188)],'issue.description':_0x534639[_0x964f40(0x18f)],..._0x534639[_0x964f40(0x184)]?{'issue.description_original_bytes':_0x534639[_0x964f40(0x184)][_0x964f40(0x196)],'issue.description_truncated':_0x534639[_0x964f40(0x184)][_0x964f40(0x195)],'issue.description_redactions':_0x534639[_0x964f40(0x184)][_0x964f40(0x197)],'issue.description_redaction_kinds':_0x534639[_0x964f40(0x184)][_0x964f40(0x18b)]['join'](',')}:{}}});}function a332_0x1316(){const _0x50aa5a=['truncated','originalBytes','redactionCount','142035ZYEdKH','sanitize','5710639RfIyHX','5206716ryfaFQ','7077CDXuie','title','4794PVgNOV','25370reVZeN','redactionKinds','16mDngrJ','4yvAfme','6656436hlARbi','description','464657XdfjhD','platform-issue-log-collect','183FTiEtk','10bqpDUg','issue.log.collect'];a332_0x1316=function(){return _0x50aa5a;};return a332_0x1316();}
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
- const a334_0x3b163a=a334_0xc5b5;(function(_0x2f97ed,_0x49bc2e){const _0x3df129=a334_0xc5b5,_0x59711f=_0x2f97ed();while(!![]){try{const _0x37f751=-parseInt(_0x3df129(0xba))/0x1*(-parseInt(_0x3df129(0xca))/0x2)+-parseInt(_0x3df129(0xdd))/0x3+-parseInt(_0x3df129(0xbf))/0x4+-parseInt(_0x3df129(0xc4))/0x5*(-parseInt(_0x3df129(0xdb))/0x6)+-parseInt(_0x3df129(0xc6))/0x7*(parseInt(_0x3df129(0xde))/0x8)+parseInt(_0x3df129(0xd9))/0x9+-parseInt(_0x3df129(0xaa))/0xa*(-parseInt(_0x3df129(0xc8))/0xb);if(_0x37f751===_0x49bc2e)break;else _0x59711f['push'](_0x59711f['shift']());}catch(_0x1710a6){_0x59711f['push'](_0x59711f['shift']());}}}(a334_0x280d,0xae6b2));function a334_0xc5b5(_0x395c04,_0x1019ea){_0x395c04=_0x395c04-0xa7;const _0x280df6=a334_0x280d();let _0xc5b51b=_0x280df6[_0x395c04];return _0xc5b51b;}export const CORE_IDE_CONFIGS={'cursor':{'name':a334_0x3b163a(0xcc),'description':a334_0x3b163a(0xcf),'folders':[a334_0x3b163a(0xae),a334_0x3b163a(0xce)],'files':[{'type':a334_0x3b163a(0xe0),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':'Windsurf','description':a334_0x3b163a(0xbc),'folders':[a334_0x3b163a(0xd1)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xb7)}]},'claude':{'name':a334_0x3b163a(0xb0),'description':'Claude\x20Code','folders':[a334_0x3b163a(0xaf)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xa8)}]},'cline':{'name':a334_0x3b163a(0xbe),'description':a334_0x3b163a(0xd2),'folders':[a334_0x3b163a(0xc2)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xcd)}]},'codex':{'name':a334_0x3b163a(0xcb),'description':a334_0x3b163a(0xdc),'folders':[a334_0x3b163a(0xb6)],'files':[{'type':'file','path':a334_0x3b163a(0xc0)}]},'opencode':{'name':'OpenCode','description':a334_0x3b163a(0xc9),'folders':[a334_0x3b163a(0xd0)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xb2)}]},'qoder':{'name':a334_0x3b163a(0xbb),'description':a334_0x3b163a(0xb5),'folders':['.qoder'],'files':[{'type':'file','path':a334_0x3b163a(0xd8)},{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xb3)}]},'codebuddy':{'name':a334_0x3b163a(0xe1),'description':a334_0x3b163a(0xdf),'folders':['.codebuddy'],'files':[{'type':'file','path':a334_0x3b163a(0xa9)}]},'trae':{'name':a334_0x3b163a(0xb8),'description':a334_0x3b163a(0xc7),'folders':['.trae'],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a334_0x3b163a(0xd7),'description':a334_0x3b163a(0xc3),'folders':[a334_0x3b163a(0xb9)],'files':[{'type':a334_0x3b163a(0xe0),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a334_0x3b163a(0xda),'description':a334_0x3b163a(0xd5),'folders':[a334_0x3b163a(0xb9)],'files':[{'type':a334_0x3b163a(0xe0),'path':a334_0x3b163a(0xd4)}]}};export const CORE_IDE_LIST=[a334_0x3b163a(0xd3),a334_0x3b163a(0xac),a334_0x3b163a(0xd6),a334_0x3b163a(0xbd),'cursor',a334_0x3b163a(0xa7),a334_0x3b163a(0xb1),a334_0x3b163a(0xc5),'windsurf'];export const IDE_LIST=[a334_0x3b163a(0xb4),a334_0x3b163a(0xd3),a334_0x3b163a(0xac),a334_0x3b163a(0xd6),'codex','cursor',a334_0x3b163a(0xa7),a334_0x3b163a(0xb1),a334_0x3b163a(0xc5),a334_0x3b163a(0xc1),a334_0x3b163a(0xad)];export const ALL_CORE_IDES=[a334_0x3b163a(0xab),a334_0x3b163a(0xc1),a334_0x3b163a(0xd3),a334_0x3b163a(0xac),a334_0x3b163a(0xbd),a334_0x3b163a(0xa7),a334_0x3b163a(0xb1),'codebuddy',a334_0x3b163a(0xc5)];function a334_0x280d(){const _0x598be3=['.cursor','Cursor\x20IDE','.opencode','.windsurf','Cline\x20IDE','claude','.agent/skills/lovrabet/SKILL.md','Antigravity\x20IDE','codebuddy','Other\x20(generic\x20template)','.qoder/rules/rabetbase.md','12738762fJoxvG','Antigravity','177156PLboBC','Codex\x20IDE','2603640vpLAmQ','582632VIOhaZ','CodeBuddy\x20IDE','file','CodeBuddy','opencode','.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','170TiOVBe','cursor','cline','agent','.cursorrules','.claude','Claude\x20Code','qoder','.opencode/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','antigravity','Qoder\x20IDE','.codex','.windsurf/workflows/rabetbase.md','Trae','.agent','34552dupgDE','Qoder','Windsurf\x20IDE','codex','Cline','5018336VkxfwS','.codex/skills/lovrabet/SKILL.md','windsurf','.cline','Generic\x20template\x20fallback','185CgkDva','trae','77llCZsT','Trae\x20IDE','507683GtrNhw','OpenCode\x20IDE','20tsJBid','Codex','Cursor','.cline/skills/lovrabet/SKILL.md'];a334_0x280d=function(){return _0x598be3;};return a334_0x280d();}
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(_0x57f756,_0x458d05){const _0x469949=a335_0x245d,_0x3f5fd5=_0x57f756();while(!![]){try{const _0x46546b=-parseInt(_0x469949(0x144))/0x1+parseInt(_0x469949(0x141))/0x2+-parseInt(_0x469949(0x142))/0x3+parseInt(_0x469949(0x145))/0x4+-parseInt(_0x469949(0x149))/0x5*(parseInt(_0x469949(0x146))/0x6)+parseInt(_0x469949(0x147))/0x7*(-parseInt(_0x469949(0x148))/0x8)+parseInt(_0x469949(0x143))/0x9;if(_0x46546b===_0x458d05)break;else _0x3f5fd5['push'](_0x3f5fd5['shift']());}catch(_0x315cab){_0x3f5fd5['push'](_0x3f5fd5['shift']());}}}(a335_0x3adb,0xb5368));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a335_0x245d(_0x5b65cc,_0x284b00){_0x5b65cc=_0x5b65cc-0x141;const _0x3adb9b=a335_0x3adb();let _0x245d7d=_0x3adb9b[_0x5b65cc];return _0x245d7d;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a335_0x3adb(){const _0x185d44=['2708380HdCVnK','1784499msMhBJ','9331218eUdbdH','819002yqAARz','3749008VNSSAY','6ivzBxG','7YRLOcc','515392TiKuNe','5538685xBvICn'];a335_0x3adb=function(){return _0x185d44;};return a335_0x3adb();}
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(_0xa1b1ad,_0x3bb341){const _0x3a9d84=a336_0x13bf,_0x3eae88=_0xa1b1ad();while(!![]){try{const _0x5220fb=-parseInt(_0x3a9d84(0x8a))/0x1+parseInt(_0x3a9d84(0x86))/0x2+-parseInt(_0x3a9d84(0x89))/0x3*(-parseInt(_0x3a9d84(0x85))/0x4)+parseInt(_0x3a9d84(0x8f))/0x5+parseInt(_0x3a9d84(0x84))/0x6+parseInt(_0x3a9d84(0x8c))/0x7*(parseInt(_0x3a9d84(0x8b))/0x8)+-parseInt(_0x3a9d84(0x82))/0x9;if(_0x5220fb===_0x3bb341)break;else _0x3eae88['push'](_0x3eae88['shift']());}catch(_0x201f81){_0x3eae88['push'](_0x3eae88['shift']());}}}(a336_0x2a36,0xde4b9));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x37ee22=a336_0x13bf,_0xce0185=getTemplateBaseUrl(),_0x52723f=[_0xce0185+_0x37ee22(0x83),_0xce0185+_0x37ee22(0x8e)];for(const _0x52320f of _0x52723f){try{const _0x289bbf=await fetch(_0x52320f,{'headers':{'Accept':'application/json'}});if(!_0x289bbf['ok'])continue;const _0x5f53e9=await _0x289bbf['json']();if(!_0x5f53e9['cli']?.[_0x37ee22(0x88)]||!_0x5f53e9[_0x37ee22(0x8d)]?.[_0x37ee22(0x87)]?.['stableVersion'])continue;return _0x5f53e9;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a336_0x2a36(){const _0x192171=['212398fgqqLD','node','stableVersion','31425vXhdaS','1578109BgbKwl','56HwRaiH','1245706gzbZyj','sdk','/config/index.json','4655805aaRFJp','10818171hjoHAn','/config.json','8005548Palxho','28upfNJl'];a336_0x2a36=function(){return _0x192171;};return a336_0x2a36();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2ce2fe=Date['now']();if(hasCachedConfig){const _0x57a6ba=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2ce2fe-cacheTime<_0x57a6ba)return cachedConfig;}const _0x5e5584=await fetchCdnConfig();return cachedConfig=_0x5e5584,cacheTime=_0x2ce2fe,hasCachedConfig=!![],_0x5e5584;}function a336_0x13bf(_0x204c01,_0x3b71ce){_0x204c01=_0x204c01-0x82;const _0x2a368e=a336_0x2a36();let _0x13bfdd=_0x2a368e[_0x204c01];return _0x13bfdd;}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_0x5043e2=a337_0x1613;(function(_0x1c3fc4,_0x406836){const _0x25e32f=a337_0x1613,_0xae319a=_0x1c3fc4();while(!![]){try{const _0x3c9a65=parseInt(_0x25e32f(0x1b3))/0x1*(-parseInt(_0x25e32f(0x1b4))/0x2)+-parseInt(_0x25e32f(0x1ae))/0x3*(parseInt(_0x25e32f(0x1aa))/0x4)+-parseInt(_0x25e32f(0x1ba))/0x5*(parseInt(_0x25e32f(0x1b5))/0x6)+parseInt(_0x25e32f(0x1ac))/0x7*(parseInt(_0x25e32f(0x1bd))/0x8)+parseInt(_0x25e32f(0x1a0))/0x9*(-parseInt(_0x25e32f(0x194))/0xa)+-parseInt(_0x25e32f(0x1a3))/0xb*(-parseInt(_0x25e32f(0x19a))/0xc)+parseInt(_0x25e32f(0x1b9))/0xd;if(_0x3c9a65===_0x406836)break;else _0xae319a['push'](_0xae319a['shift']());}catch(_0x19dcd5){_0xae319a['push'](_0xae319a['shift']());}}}(a337_0x1d81,0xdec14));import a337_0x2cea50 from'node:fs';import a337_0x1d418e from'node:path';import a337_0xf85546 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a337_0x1d81(){const _0x527198=['npm\x20install\x20','9qgOLiY','1.2.0','\x1b[1m','99NArReM','\x20\x20\x20Current\x20version:\x20','existsSync','stableVersion','@lovrabet/sdk','version','sdk','2863324EVCkaK','\x1b[33m','4988571KLOewl','minVersion','3PXdzJl','packageName','latest','↪\x20SDK\x20update\x20available','node_modules','86442gZHqWR','2APQAnR','150APLljL','\x1b[0m','utf8','readFileSync','22981829OubCbW','31385GHlasL','test','parse','8ZIHxBc','8515690mjSjsm','needsUpgrade','dependencies','node','devDependencies','coerce','323580QzglST','some','log','package.json','join'];a337_0x1d81=function(){return _0x527198;};return a337_0x1d81();}const FALLBACK_MIN_SDK_VERSION=a337_0x5043e2(0x1a1);function isNonNumericVersion(_0x5341ba){const _0x486f0e=a337_0x5043e2,_0x57031c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x57031c[_0x486f0e(0x19b)](_0x4d796=>_0x4d796[_0x486f0e(0x1bb)](_0x5341ba));}function getInstalledVersion(_0x598055,_0x5a4b6f){const _0x2f2e41=a337_0x5043e2;try{const _0x4acefe=a337_0x1d418e['join'](_0x598055,_0x2f2e41(0x1b2),_0x5a4b6f,'package.json');if(a337_0x2cea50[_0x2f2e41(0x1a5)](_0x4acefe)){const _0x16bf54=JSON[_0x2f2e41(0x1bc)](a337_0x2cea50[_0x2f2e41(0x1b8)](_0x4acefe,'utf-8'));return _0x16bf54[_0x2f2e41(0x1a8)]||null;}}catch{}return null;}function a337_0x1613(_0x49b662,_0x3fc543){_0x49b662=_0x49b662-0x194;const _0x1d8108=a337_0x1d81();let _0x16135c=_0x1d8108[_0x49b662];return _0x16135c;}async function getSdkStableVersion(){const _0x4c0187=a337_0x5043e2;try{const _0x5a756a=await getCdnConfig();return _0x5a756a?.[_0x4c0187(0x1a9)]?.[_0x4c0187(0x197)]?.[_0x4c0187(0x1a6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x46e742=a337_0x5043e2;try{const _0x5d1b9d=await getCdnConfig();return _0x5d1b9d?.[_0x46e742(0x1a9)]?.[_0x46e742(0x197)]?.[_0x46e742(0x1af)]||_0x46e742(0x1a7);}catch{return _0x46e742(0x1a7);}}export async function checkSdkVersion(_0x2f9513){const _0x3e607b=a337_0x5043e2,_0x54175a=a337_0x1d418e[_0x3e607b(0x19e)](_0x2f9513,_0x3e607b(0x19d)),[_0x15eefa,_0x3d8a97]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x48ab83=_0x15eefa||FALLBACK_MIN_SDK_VERSION;if(!a337_0x2cea50[_0x3e607b(0x1a5)](_0x54175a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48ab83,'packageName':_0x3d8a97,'stableVersion':_0x15eefa};try{const _0xcf2a1d=JSON[_0x3e607b(0x1bc)](a337_0x2cea50[_0x3e607b(0x1b8)](_0x54175a,_0x3e607b(0x1b7))),_0x1a70e2=_0xcf2a1d[_0x3e607b(0x196)]||{},_0x4c7d6e=_0xcf2a1d['devDependencies']||{},_0x583e30=_0x1a70e2[_0x3d8a97]||_0x4c7d6e[_0x3d8a97];if(!_0x583e30)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48ab83,'packageName':_0x3d8a97,'stableVersion':_0x15eefa};let _0x587ffd=getInstalledVersion(_0x2f9513,_0x3d8a97);!_0x587ffd&&(_0x587ffd=_0x583e30);if(isNonNumericVersion(_0x583e30))return{'installed':!![],'version':_0x587ffd,'needsUpgrade':![],'minVersion':_0x48ab83,'packageName':_0x3d8a97,'stableVersion':_0x15eefa};const _0x146a51=a337_0xf85546[_0x3e607b(0x199)](_0x587ffd),_0xc6935a=a337_0xf85546['coerce'](_0x48ab83),_0x4f529b=_0x146a51&&_0xc6935a?a337_0xf85546['lt'](_0x146a51,_0xc6935a):![];return{'installed':!![],'version':_0x587ffd,'needsUpgrade':_0x4f529b,'minVersion':_0x48ab83,'packageName':_0x3d8a97,'stableVersion':_0x15eefa};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48ab83,'packageName':_0x3d8a97,'stableVersion':_0x15eefa};}}export function checkSdkVersionSync(_0x29d671){const _0xce9a9a=a337_0x5043e2,_0x78cdb3=a337_0x1d418e['join'](_0x29d671,_0xce9a9a(0x19d)),_0x1fd968=_0xce9a9a(0x1a7);if(!a337_0x2cea50['existsSync'](_0x78cdb3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1fd968,'stableVersion':null};try{const _0x2c3be5=JSON[_0xce9a9a(0x1bc)](a337_0x2cea50['readFileSync'](_0x78cdb3,'utf8')),_0x325909=_0x2c3be5[_0xce9a9a(0x196)]||{},_0x32cc58=_0x2c3be5[_0xce9a9a(0x198)]||{},_0x2067d4=_0x325909[_0x1fd968]||_0x32cc58[_0x1fd968];if(!_0x2067d4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1fd968,'stableVersion':null};let _0x50cd6f=getInstalledVersion(_0x29d671,_0x1fd968);!_0x50cd6f&&(_0x50cd6f=_0x2067d4);if(isNonNumericVersion(_0x2067d4))return{'installed':!![],'version':_0x50cd6f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1fd968,'stableVersion':null};const _0x2afc1b=a337_0xf85546[_0xce9a9a(0x199)](_0x50cd6f),_0xbfa9e=_0x2afc1b?a337_0xf85546['lt'](_0x2afc1b,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x50cd6f,'needsUpgrade':_0xbfa9e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1fd968,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1fd968,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3b4b15){const _0x40fee9=a337_0x5043e2;if(!_0x3b4b15[_0x40fee9(0x195)])return;const _0x4c618d=_0x40fee9(0x1ab),_0x2de740=_0x40fee9(0x1b6),_0x2a4a83=_0x40fee9(0x1a2),_0x4080a7=_0x3b4b15['packageName']||_0x40fee9(0x1a7),_0xc0e5f5=_0x3b4b15[_0x40fee9(0x1a6)]||_0x3b4b15[_0x40fee9(0x1ad)],_0x58665d=_0x40fee9(0x19f)+_0x4080a7+'@'+(_0xc0e5f5||_0x40fee9(0x1b0));console[_0x40fee9(0x19c)](),console['log'](''+_0x4c618d+_0x2a4a83+_0x40fee9(0x1b1)+_0x2de740),console[_0x40fee9(0x19c)](_0x4c618d+_0x40fee9(0x1a4)+_0x4080a7+'@'+_0x3b4b15[_0x40fee9(0x1a8)]+_0x2de740),console['log'](_0x4c618d+'\x20\x20\x20Stable\x20version:\x20'+_0xc0e5f5+_0x2de740),console[_0x40fee9(0x19c)](_0x4c618d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x58665d+_0x2de740),console[_0x40fee9(0x19c)]();}
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(_0xf5bd23,_0x2287fd){const _0x3f098c=a338_0xd504,_0x8b86e2=_0xf5bd23();while(!![]){try{const _0x25d2d2=parseInt(_0x3f098c(0x158))/0x1+parseInt(_0x3f098c(0x150))/0x2*(parseInt(_0x3f098c(0x13d))/0x3)+parseInt(_0x3f098c(0x164))/0x4+-parseInt(_0x3f098c(0x168))/0x5*(-parseInt(_0x3f098c(0x155))/0x6)+-parseInt(_0x3f098c(0x157))/0x7*(-parseInt(_0x3f098c(0x159))/0x8)+parseInt(_0x3f098c(0x13f))/0x9*(parseInt(_0x3f098c(0x152))/0xa)+-parseInt(_0x3f098c(0x14f))/0xb;if(_0x25d2d2===_0x2287fd)break;else _0x8b86e2['push'](_0x8b86e2['shift']());}catch(_0x229d94){_0x8b86e2['push'](_0x8b86e2['shift']());}}}(a338_0x95e4,0x5e084));function a338_0xd504(_0x47a741,_0x1bc02b){_0x47a741=_0x47a741-0x13d;const _0x95e445=a338_0x95e4();let _0xd50418=_0x95e445[_0x47a741];return _0xd50418;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a338_0x95e4(){const _0x276120=['\x1b[0m','↪\x20New\x20version\x20available','belowMinimum','coerce','needsUpgrade','22781022xCFKBt','1361634uxkbeS','package.json','165150eDmJhJ','join','↪\x20Critical\x20CLI\x20upgrade\x20required','12DmConb','\x1b[31m','112uSVyZG','553850NfeRKg','160136QejsYy','\x1b[1m','\x20\x20\x20','utf-8','Minimum\x20supported:\x20','1.0.0','../..','npm\x20install\x20-g\x20','parse','validation','\x20\x20\x20Minimum\x20supported:\x20','798320irAVDh','Current\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersionMessage','474185wiOKcd','upgradeMessage','3GJzIYL','log','279XPGaxz','\x20\x20\x20Recommended\x20stable:\x20','minimumVersion','\x20\x20\x20Stable\x20version:\x20','stableVersion','currentVersion','filter','latest','\x20\x20\x20Upgrade\x20command:\x20','version','Upgrade\x20command:\x20'];a338_0x95e4=function(){return _0x276120;};return a338_0x95e4();}import{fileURLToPath}from'node:url';import a338_0x2983a5 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xdebc33){const _0x377faa=a338_0xd504,_0x5653fb=_0xdebc33[_0x377faa(0x143)]||_0x377faa(0x146);return _0x377faa(0x160)+NPM_PACKAGE_NAME+'@'+_0x5653fb;}function getCurrentCliVersion(){const _0x2e243b=a338_0xd504;try{const _0x21505c=fileURLToPath(import.meta.url),_0x3228ba=resolve(dirname(_0x21505c),_0x2e243b(0x15f)),_0x2ea6e5=resolve(_0x3228ba,_0x2e243b(0x151)),_0x3a7607=JSON[_0x2e243b(0x161)](readFileSync(_0x2ea6e5,_0x2e243b(0x15c)));return _0x3a7607[_0x2e243b(0x148)]||_0x2e243b(0x15e);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5788dc=a338_0xd504,_0x48904c=getCurrentCliVersion(),_0x5edd87=await getCliVersionPolicy(),_0x191e57=_0x5edd87?.[_0x5788dc(0x143)]||null,_0x40b61a=_0x5edd87?.[_0x5788dc(0x141)]||null;let _0x16c19e=![],_0x5afffb=![];const _0x424c0c=a338_0x2983a5['coerce'](_0x48904c);if(_0x424c0c&&_0x191e57)try{const _0x47895f=a338_0x2983a5[_0x5788dc(0x14d)](_0x191e57);if(_0x47895f)_0x16c19e=a338_0x2983a5['lt'](_0x424c0c,_0x47895f);}catch{}if(_0x424c0c&&_0x40b61a)try{const _0x164676=a338_0x2983a5[_0x5788dc(0x14d)](_0x40b61a);if(_0x164676)_0x5afffb=a338_0x2983a5['lt'](_0x424c0c,_0x164676);}catch{}return _0x5afffb&&(_0x16c19e=!![]),{'currentVersion':_0x48904c,'stableVersion':_0x191e57,'minimumVersion':_0x40b61a,'needsUpgrade':_0x16c19e,'belowMinimum':_0x5afffb,'isPreRelease':![],'upgradeMessage':_0x5edd87?.[_0x5788dc(0x169)],'minimumVersionMessage':_0x5edd87?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x3a862a){const _0x2c39a7=a338_0xd504;if(!_0x3a862a[_0x2c39a7(0x14e)]&&!_0x3a862a[_0x2c39a7(0x14c)])return;const _0x44527e=_0x2c39a7(0x156),_0x366387='\x1b[33m',_0x27ca88=_0x2c39a7(0x14a),_0x48dda7=_0x2c39a7(0x15a),_0x3cccb3=getCliUpgradeCommand(_0x3a862a);console['log'](),_0x3a862a['belowMinimum']?(console[_0x2c39a7(0x13e)](''+_0x44527e+_0x48dda7+_0x2c39a7(0x154)+_0x27ca88),console[_0x2c39a7(0x13e)](_0x44527e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3a862a[_0x2c39a7(0x144)]+_0x27ca88),_0x3a862a[_0x2c39a7(0x141)]&&console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x163)+_0x3a862a[_0x2c39a7(0x141)]+_0x27ca88),_0x3a862a[_0x2c39a7(0x143)]&&_0x3a862a[_0x2c39a7(0x143)]!==_0x3a862a[_0x2c39a7(0x141)]&&console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x140)+_0x3a862a[_0x2c39a7(0x143)]+_0x27ca88),_0x3a862a[_0x2c39a7(0x167)]&&console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x15b)+_0x3a862a[_0x2c39a7(0x167)]+_0x27ca88),console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x147)+_0x3cccb3+_0x27ca88)):(console[_0x2c39a7(0x13e)](''+_0x366387+_0x48dda7+_0x2c39a7(0x14b)+_0x27ca88),console[_0x2c39a7(0x13e)](_0x366387+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3a862a['currentVersion']+_0x27ca88),console[_0x2c39a7(0x13e)](_0x366387+_0x2c39a7(0x142)+_0x3a862a['stableVersion']+_0x27ca88),_0x3a862a['upgradeMessage']&&console['log'](_0x366387+_0x2c39a7(0x15b)+_0x3a862a[_0x2c39a7(0x169)]+_0x27ca88),console[_0x2c39a7(0x13e)](_0x366387+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3cccb3+_0x27ca88)),console[_0x2c39a7(0x13e)]();}export function assertCliVersionSupported(_0x584bc2){const _0x10661f=a338_0xd504;if(!_0x584bc2['belowMinimum'])return;const _0x4e3eea=[_0x584bc2['minimumVersionMessage'],_0x10661f(0x165)+_0x584bc2['currentVersion'],_0x584bc2[_0x10661f(0x141)]?_0x10661f(0x15d)+_0x584bc2[_0x10661f(0x141)]:null,_0x10661f(0x149)+getCliUpgradeCommand(_0x584bc2)][_0x10661f(0x145)](Boolean)[_0x10661f(0x153)]('\x0a');throw CliErrors[_0x10661f(0x162)](_0x10661f(0x166),_0x4e3eea);}
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(_0x33ad95,_0x1d6bc2){const _0x5d3615=a339_0x48c2,_0x387d3e=_0x33ad95();while(!![]){try{const _0x3d69e8=parseInt(_0x5d3615(0x1dd))/0x1*(-parseInt(_0x5d3615(0x1da))/0x2)+-parseInt(_0x5d3615(0x1df))/0x3*(parseInt(_0x5d3615(0x1d4))/0x4)+parseInt(_0x5d3615(0x1cb))/0x5*(-parseInt(_0x5d3615(0x1c9))/0x6)+parseInt(_0x5d3615(0x1e0))/0x7+parseInt(_0x5d3615(0x1cf))/0x8+parseInt(_0x5d3615(0x1ce))/0x9*(parseInt(_0x5d3615(0x1d2))/0xa)+-parseInt(_0x5d3615(0x1d1))/0xb;if(_0x3d69e8===_0x1d6bc2)break;else _0x387d3e['push'](_0x387d3e['shift']());}catch(_0x304ab0){_0x387d3e['push'](_0x387d3e['shift']());}}}(a339_0x4d1a,0xe3f92));function a339_0x4d1a(){const _0x2e4320=['signal','length','2rpByTZ','now','projectTemplate','1542137IkSHXW','stableVersion','6lPCYNl','9872044ogVqMC','trim','minimumVersionMessage','application/json','minimumVersion','84KcyHwY','string','116015heQMgO','beta','recommendedVersion','80874mHEcpw','6356984hudtiu','object','1938816hsVTxv','1390BoesVB','json','953912KIPwnj','valid','cli','abort'];a339_0x4d1a=function(){return _0x2e4320;};return a339_0x4d1a();}import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a339_0x4acc18 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x5299da){const _0x4a50dc=a339_0x48c2,_0x57ab98=a339_0x4acc18[_0x4a50dc(0x1d5)](_0x5299da);return _0x57ab98?a339_0x4acc18['prerelease'](_0x57ab98)?.[0x0]===_0x4a50dc(0x1cc):![];}export function resolveProjectTemplateDescriptor(_0x563b67,_0x39535d){const _0x16b922=a339_0x48c2;if(isBetaCliVersion(_0x39535d))return _0x563b67['beta']?.[_0x16b922(0x1dc)]??_0x563b67['projectTemplate'];return _0x563b67[_0x16b922(0x1dc)];}function pickString(_0x1dfb31){const _0x4b4c80=a339_0x48c2;return typeof _0x1dfb31===_0x4b4c80(0x1ca)&&_0x1dfb31['trim']()[_0x4b4c80(0x1d9)]>0x0?_0x1dfb31[_0x4b4c80(0x1e1)]():null;}function a339_0x48c2(_0x21d564,_0x363191){_0x21d564=_0x21d564-0x1c8;const _0x4d1a49=a339_0x4d1a();let _0x48c2d2=_0x4d1a49[_0x21d564];return _0x48c2d2;}function normalizeCliVersionPolicy(_0x51189f){const _0x4aee05=a339_0x48c2;if(!_0x51189f||typeof _0x51189f!==_0x4aee05(0x1d0))return null;const _0x2e6c8b=_0x51189f,_0x3b9916=_0x2e6c8b[_0x4aee05(0x1d6)]&&typeof _0x2e6c8b[_0x4aee05(0x1d6)]===_0x4aee05(0x1d0)?_0x2e6c8b[_0x4aee05(0x1d6)]:_0x2e6c8b,_0x5aec40=pickString(_0x3b9916[_0x4aee05(0x1de)])||pickString(_0x3b9916['latestVersion'])||pickString(_0x3b9916[_0x4aee05(0x1cd)]),_0x378328=pickString(_0x3b9916[_0x4aee05(0x1c8)])||pickString(_0x3b9916['minVersion']);if(!_0x5aec40&&!_0x378328)return null;return{'stableVersion':_0x5aec40,'minimumVersion':_0x378328,'upgradeMessage':pickString(_0x3b9916['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x3b9916[_0x4aee05(0x1e2)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x3a44d5){const _0x519027=a339_0x48c2,_0x4a17df=new AbortController(),_0x1681f8=setTimeout(()=>_0x4a17df[_0x519027(0x1d7)](),FETCH_TIMEOUT_MS);try{const _0x340653=await fetch(_0x3a44d5,{'headers':{'Accept':_0x519027(0x1e3)},'signal':_0x4a17df[_0x519027(0x1d8)]});if(!_0x340653['ok'])return null;const _0x48c334=await _0x340653[_0x519027(0x1d3)]();return _0x48c334&&typeof _0x48c334===_0x519027(0x1d0)?_0x48c334:null;}catch{return null;}finally{clearTimeout(_0x1681f8);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x48c494=await getRabetbaseCdnConfig();return _0x48c494?{'config':_0x48c494,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x32a071=a339_0x48c2,_0x5120a0=Date[_0x32a071(0x1db)]();if(hasCachedConfig){const _0x2d8758=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5120a0-cacheTime<_0x2d8758)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x5120a0,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_0xf73662=a340_0x57ed;(function(_0x186ab2,_0x5095ef){const _0x23962d=a340_0x57ed,_0x3440d1=_0x186ab2();while(!![]){try{const _0x672044=parseInt(_0x23962d(0x1f1))/0x1+parseInt(_0x23962d(0x1f4))/0x2+-parseInt(_0x23962d(0x1f2))/0x3*(-parseInt(_0x23962d(0x1f3))/0x4)+parseInt(_0x23962d(0x1ee))/0x5*(parseInt(_0x23962d(0x1e9))/0x6)+-parseInt(_0x23962d(0x1f0))/0x7+parseInt(_0x23962d(0x1ef))/0x8+-parseInt(_0x23962d(0x1ed))/0x9*(parseInt(_0x23962d(0x1ea))/0xa);if(_0x672044===_0x5095ef)break;else _0x3440d1['push'](_0x3440d1['shift']());}catch(_0x5e2aa4){_0x3440d1['push'](_0x3440d1['shift']());}}}(a340_0x26f7,0x69baf));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a340_0x247576,getMultiAppConfigs as a340_0x57948d,getTemplateBaseUrl as a340_0x575826}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a340_0x26f7(){const _0x4211e2=['9376407teDpPS','3358535ekaXDy','3344240JYKTkG','3640728kEQqbg','620147pSwEPa','1548714Gxgfng','4BRlBwt','1621398DIWBNS','project','6pFSnZa','20orqOJL','string','env'];a340_0x26f7=function(){return _0x4211e2;};return a340_0x26f7();}export function readConfig(_0xc72744){const _0x3ea97a=a340_0x57ed,_0x4563e8=readRawConfig(_0xc72744);return _0x4563e8['env']&&typeof _0x4563e8['env']===_0x3ea97a(0x1eb)&&initEnv(_0x4563e8[_0x3ea97a(0x1ec)]),_0x4563e8;}function a340_0x57ed(_0xd7e01c,_0x309313){_0xd7e01c=_0xd7e01c-0x1e8;const _0x26f786=a340_0x26f7();let _0x57ed62=_0x26f786[_0xd7e01c];return _0x57ed62;}export function getConfigAppCode(){return a340_0x247576();}export function getMultiAppConfigs(_0x30b164=a340_0xf73662(0x1e8)){return a340_0x57948d(_0x30b164);}export function getTemplateBaseUrl(){return a340_0x575826();}
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 a341_0x2762(){const _0x629c36=['isFinite','7004690ATqlVR','5pzmuzw','10lJAEzd','8vbCTgb','3251184XUDzZL','3387RmxwXJ','39FcOsVV','3CosEPG','string','trim','1910587BjhpST','7205283FAFPpk','2724504vkmDZh','380ZjrKIc','2980492Kqxgos','number'];a341_0x2762=function(){return _0x629c36;};return a341_0x2762();}function a341_0x1b17(_0x10ee2d,_0x1398df){_0x10ee2d=_0x10ee2d-0x100;const _0x2762a9=a341_0x2762();let _0x1b179c=_0x2762a9[_0x10ee2d];return _0x1b179c;}(function(_0x4f8154,_0x7fd013){const _0x2cf07a=a341_0x1b17,_0x3dae7a=_0x4f8154();while(!![]){try{const _0x1a5474=-parseInt(_0x2cf07a(0x106))/0x1*(parseInt(_0x2cf07a(0x10e))/0x2)+parseInt(_0x2cf07a(0x108))/0x3*(-parseInt(_0x2cf07a(0x10f))/0x4)+-parseInt(_0x2cf07a(0x102))/0x5*(parseInt(_0x2cf07a(0x105))/0x6)+-parseInt(_0x2cf07a(0x10b))/0x7*(-parseInt(_0x2cf07a(0x104))/0x8)+-parseInt(_0x2cf07a(0x10c))/0x9*(-parseInt(_0x2cf07a(0x103))/0xa)+parseInt(_0x2cf07a(0x101))/0xb+parseInt(_0x2cf07a(0x10d))/0xc*(parseInt(_0x2cf07a(0x107))/0xd);if(_0x1a5474===_0x7fd013)break;else _0x3dae7a['push'](_0x3dae7a['shift']());}catch(_0x4ecc7c){_0x3dae7a['push'](_0x3dae7a['shift']());}}}(a341_0x2762,0x7087f));function toFiniteNumber(_0x3bd93e){const _0x45abff=a341_0x1b17;if(typeof _0x3bd93e===_0x45abff(0x110)&&Number[_0x45abff(0x100)](_0x3bd93e))return _0x3bd93e;if(typeof _0x3bd93e===_0x45abff(0x109)){const _0x21ae4d=_0x3bd93e[_0x45abff(0x10a)]();if(!_0x21ae4d)return undefined;const _0xa0c7b1=Number(_0x21ae4d);if(Number[_0x45abff(0x100)](_0xa0c7b1))return _0xa0c7b1;}return undefined;}export function normalizeEntityWithIdResponse(_0x503708){const _0x1fba68=toFiniteNumber(_0x503708);if(_0x1fba68!==undefined)return{'id':_0x1fba68,'entity':{'id':_0x1fba68}};if(!_0x503708||typeof _0x503708!=='object')return{'id':undefined,'entity':{}};const _0x4b1f24={..._0x503708},_0x5deae6=toFiniteNumber(_0x4b1f24['id']);return _0x5deae6!==undefined&&(_0x4b1f24['id']=_0x5deae6),{'id':_0x5deae6,'entity':_0x4b1f24};}
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 a342_0x39ee(_0x50e552,_0x1a98bc){_0x50e552=_0x50e552-0x85;const _0x2fa749=a342_0x2fa7();let _0x39ee83=_0x2fa749[_0x50e552];return _0x39ee83;}function a342_0x2fa7(){const _0x153226=['15RfXmUZ','6625071ICtRmU','2543436OaaMuL','1156823MMhXqb','27526BTRjId','8596072myJtIa','87MghWjS','1064042YorHAs','2942340JXmjnH'];a342_0x2fa7=function(){return _0x153226;};return a342_0x2fa7();}(function(_0x3527a4,_0x441737){const _0x319de8=a342_0x39ee,_0x2731cb=_0x3527a4();while(!![]){try{const _0x31892f=-parseInt(_0x319de8(0x88))/0x1+parseInt(_0x319de8(0x89))/0x2*(-parseInt(_0x319de8(0x8b))/0x3)+parseInt(_0x319de8(0x8d))/0x4+-parseInt(_0x319de8(0x85))/0x5*(-parseInt(_0x319de8(0x87))/0x6)+-parseInt(_0x319de8(0x8c))/0x7+parseInt(_0x319de8(0x8a))/0x8+-parseInt(_0x319de8(0x86))/0x9;if(_0x31892f===_0x441737)break;else _0x2731cb['push'](_0x2731cb['shift']());}catch(_0x4a3913){_0x2731cb['push'](_0x2731cb['shift']());}}}(a342_0x2fa7,0x9bb29));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x130ee7,_0x417b9f){const _0x17f1da=statSync(_0x130ee7);if(_0x17f1da['isDirectory']()){!existsSync(_0x417b9f)&&mkdirSync(_0x417b9f,{'recursive':!![]});const _0x9e3c7=readdirSync(_0x130ee7);for(const _0x2b685c of _0x9e3c7){await copyDir(join(_0x130ee7,_0x2b685c),join(_0x417b9f,_0x2b685c));}}else copyFileSync(_0x130ee7,_0x417b9f);}export function ensureDir(_0x25a1d1){!existsSync(_0x25a1d1)&&mkdirSync(_0x25a1d1,{'recursive':!![]});}export function pathExists(_0x88f7d){return existsSync(_0x88f7d);}
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_0x1468c7=a343_0x3818;(function(_0x415626,_0x4beec2){const _0x2c0544=a343_0x3818,_0x277fb4=_0x415626();while(!![]){try{const _0x517db6=parseInt(_0x2c0544(0xb9))/0x1+parseInt(_0x2c0544(0xc3))/0x2*(parseInt(_0x2c0544(0xc2))/0x3)+parseInt(_0x2c0544(0xc8))/0x4+-parseInt(_0x2c0544(0xb8))/0x5+parseInt(_0x2c0544(0xb3))/0x6+parseInt(_0x2c0544(0xcf))/0x7+parseInt(_0x2c0544(0xcd))/0x8*(-parseInt(_0x2c0544(0xbf))/0x9);if(_0x517db6===_0x4beec2)break;else _0x277fb4['push'](_0x277fb4['shift']());}catch(_0x1732d6){_0x277fb4['push'](_0x277fb4['shift']());}}}(a343_0x2748,0xa00a9));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x14ff8f=a343_0x3818,_0x367027=getTemplateBaseUrl();return _0x367027+_0x14ff8f(0xc9);}const CACHE_DIR=join(homedir(),'.lovrabet',a343_0x1468c7(0xbe));function a343_0x3818(_0x1e4742,_0x2a9620){_0x1e4742=_0x1e4742-0xb0;const _0x274823=a343_0x2748();let _0x3818b0=_0x274823[_0x1e4742];return _0x3818b0;}export async function fetchGuidesFromCDN(){const _0x23703a=a343_0x1468c7,_0x55f0af=getGuidesCdnUrl(),_0x49f195=await fetch(_0x55f0af,{'headers':{'Accept':'application/json'}});if(!_0x49f195['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x49f195[_0x23703a(0xd0)]+'\x20'+_0x49f195[_0x23703a(0xc1)]);const _0x5d8458=await _0x49f195[_0x23703a(0xb5)]();if(!_0x5d8458[_0x23703a(0xc5)]||typeof _0x5d8458[_0x23703a(0xc5)]!==_0x23703a(0xce))throw new Error(_0x23703a(0xd2));return _0x5d8458;}export function writeGuidesToProject(_0x16f6ac,_0x4fdabf,_0x5aad0d=a343_0x1468c7(0xcb),_0x4da3de){const _0x23d66e=a343_0x1468c7,_0x7a02f4=join(_0x4fdabf,_0x5aad0d);mkdirSync(_0x7a02f4,{'recursive':!![]});for(const [_0x57295f,_0x4d4cd8]of Object[_0x23d66e(0xb0)](_0x16f6ac[_0x23d66e(0xc5)])){let _0x1bbea7=_0x4d4cd8[_0x23d66e(0xc7)];_0x4d4cd8[_0x23d66e(0xbb)]&&(_0x1bbea7=appendUpdateTime(_0x1bbea7,_0x4d4cd8[_0x23d66e(0xbb)])),writeFileSync(join(_0x7a02f4,_0x57295f+_0x23d66e(0xba)),_0x1bbea7,_0x23d66e(0xb7));}}export function appendUpdateTime(_0xd8e94e,_0x3a4611){const _0x3718da=a343_0x1468c7;return _0xd8e94e=_0xd8e94e[_0x3718da(0xca)](/\n*>更新时间:.*$/m,''),_0xd8e94e['trimEnd']()+(_0x3718da(0xb2)+_0x3a4611);}export function getSkillTemplate(_0x11c08){const _0x26f12c=a343_0x1468c7;return _0x11c08['skillTemplate']?.[_0x26f12c(0xc7)]||'';}export function appendExtendContents(_0x58b5b1,_0x5503e8,_0x33d2c9){const _0xea75a2=a343_0x1468c7,_0x4c817b=[];for(const [,_0x5b8205]of Object[_0xea75a2(0xb0)](_0x5503e8['guides'])){_0x5b8205[_0xea75a2(0xcc)]&&_0x4c817b[_0xea75a2(0xb1)](_0x5b8205[_0xea75a2(0xcc)][_0xea75a2(0xbd)]());}if(_0x4c817b['length']===0x0)return _0x58b5b1;return _0x58b5b1[_0xea75a2(0xbd)]()+'\x0a\x0a'+_0x4c817b[_0xea75a2(0xc0)]('\x0a\x0a')+'\x0a';}function a343_0x2748(){const _0xb1b733=['join','statusText','30FyzKsd','94390ITkpKh','CDN\x20data\x20is\x20missing\x20skillTemplate','guides','skillTemplate','content','2375736sYtBpq','/skills/guides.json','replace','.lovrabet/skill/guides','extendContent','72ZPLMEX','object','2358832OKgcLK','status','map','CDN\x20returned\x20invalid\x20data','entries','push','\x0a\x0a>更新时间:','2635128ObPfaG','title','json','length','utf-8','2033785ElwKMs','1043179rmZBjH','.md','lastUpdated','path','trimEnd','cache','1822941pXeVZG'];a343_0x2748=function(){return _0xb1b733;};return a343_0x2748();}export function writeSkillFile(_0x3a203d,_0x13de7f,_0x49f3d0){const _0x5c5d1c=a343_0x1468c7,_0x4cd868=getSkillTemplate(_0x3a203d);if(!_0x4cd868)throw new Error(_0x5c5d1c(0xc4));const _0x5d3be4=dirname(_0x13de7f);mkdirSync(_0x5d3be4,{'recursive':!![]});let _0x2371b4=_0x4cd868[_0x5c5d1c(0xca)](/\{\{IDE_NAME\}\}/g,_0x49f3d0);_0x2371b4=appendExtendContents(_0x2371b4,_0x3a203d),_0x3a203d[_0x5c5d1c(0xc6)]['lastUpdated']&&(_0x2371b4=appendUpdateTime(_0x2371b4,_0x3a203d[_0x5c5d1c(0xc6)][_0x5c5d1c(0xbb)])),writeFileSync(_0x13de7f,_0x2371b4,_0x5c5d1c(0xb7));}export async function installGuides(_0x538ba1){const _0x158041=a343_0x1468c7,_0x142905=await fetchGuidesFromCDN();return writeGuidesToProject(_0x142905,_0x538ba1),Object['keys'](_0x142905['guides'])[_0x158041(0xb6)];}export function getGuidesSummary(_0x57911f){const _0x140304=a343_0x1468c7;return Object[_0x140304(0xb0)](_0x57911f[_0x140304(0xc5)])[_0x140304(0xd1)](([_0x244e74,_0x5961b3])=>({'key':_0x244e74,'title':_0x5961b3[_0x140304(0xb4)],'path':_0x5961b3[_0x140304(0xbc)]}));}
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(_0x1bd17c,_0x1172ce){const _0x32203e=a344_0x2d0b,_0x4e03be=_0x1bd17c();while(!![]){try{const _0x2a75c3=-parseInt(_0x32203e(0x1df))/0x1*(parseInt(_0x32203e(0x1ec))/0x2)+parseInt(_0x32203e(0x1f0))/0x3*(parseInt(_0x32203e(0x1e4))/0x4)+-parseInt(_0x32203e(0x1ea))/0x5+-parseInt(_0x32203e(0x1e9))/0x6*(parseInt(_0x32203e(0x1f4))/0x7)+-parseInt(_0x32203e(0x1f2))/0x8+parseInt(_0x32203e(0x1de))/0x9+parseInt(_0x32203e(0x1d9))/0xa;if(_0x2a75c3===_0x1172ce)break;else _0x4e03be['push'](_0x4e03be['shift']());}catch(_0x31dce0){_0x4e03be['push'](_0x4e03be['shift']());}}}(a344_0xc5be,0xd8e81));function a344_0x2d0b(_0x5d9b25,_0x5df9d5){_0x5d9b25=_0x5d9b25-0x1d9;const _0xc5bec2=a344_0xc5be();let _0x2d0b36=_0xc5bec2[_0x5d9b25];return _0x2d0b36;}export async function httpRequest(_0x3adbd6,_0x443603={}){const _0x17cff1=a344_0x2d0b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x443603;let _0x7f5e2b=null;for(let _0x5325a3=0x0;_0x5325a3<=retries;_0x5325a3++){try{const _0x1c274c=new AbortController(),_0x26c706=setTimeout(()=>_0x1c274c['abort'](),timeout),_0x1da82f=await fetch(_0x3adbd6,{'headers':headers,'signal':_0x1c274c[_0x17cff1(0x1dc)]});clearTimeout(_0x26c706);let _0x1548dd;const _0x358d8e=_0x1da82f[_0x17cff1(0x1e8)][_0x17cff1(0x1e1)]('content-type');return _0x358d8e?.[_0x17cff1(0x1dd)](_0x17cff1(0x1db))?_0x1548dd=await _0x1da82f[_0x17cff1(0x1f1)]():_0x1548dd=await _0x1da82f[_0x17cff1(0x1e2)](),{'ok':_0x1da82f['ok'],'status':_0x1da82f['status'],'statusText':_0x1da82f[_0x17cff1(0x1ee)],'data':_0x1548dd,'headers':_0x1da82f[_0x17cff1(0x1e8)],'url':_0x1da82f[_0x17cff1(0x1e0)],'text':()=>_0x1da82f[_0x17cff1(0x1e2)]()};}catch(_0x34eb28){_0x7f5e2b=_0x34eb28 instanceof Error?_0x34eb28:new Error(String(_0x34eb28));if(_0x5325a3===retries)break;if(shouldRetry(_0x34eb28)){console[_0x17cff1(0x1e5)](_0x17cff1(0x1eb)+(_0x5325a3+0x1)+'\x20in\x20'+retryDelay+_0x17cff1(0x1e3)),await sleep(retryDelay);continue;}else break;}}throw _0x7f5e2b||new Error('Request\x20failed');}function shouldRetry(_0x16737a){const _0x1e9d78=a344_0x2d0b;if(_0x16737a instanceof Error){if(_0x16737a['name']===_0x1e9d78(0x1ef))return![];if(_0x16737a[_0x1e9d78(0x1e6)]===_0x1e9d78(0x1da)&&_0x16737a['message'][_0x1e9d78(0x1dd)](_0x1e9d78(0x1ed)))return!![];if(_0x16737a[_0x1e9d78(0x1e7)]['includes']('ECONNRESET'))return!![];if(_0x16737a[_0x1e9d78(0x1e7)][_0x1e9d78(0x1dd)](_0x1e9d78(0x1f3)))return![];}return![];}function sleep(_0x49f636){return new Promise(_0x48e108=>setTimeout(_0x48e108,_0x49f636));}export function validateUrl(_0x471185){try{return new URL(_0x471185),!![];}catch{return![];}}function a344_0xc5be(){const _0x4c1652=['name','message','headers','1116516xYSrAg','7200320rKXWYU','*\x20Request\x20failed;\x20retry\x20','2669266kVSCSq','fetch','statusText','AbortError','351fUHRdB','json','12984880TlanQG','ENOTFOUND','35VXdCas','53461800LRNyNC','TypeError','application/json','signal','includes','1165905CgErJh','1JSKpBs','url','get','text','ms...','25332IalsSz','log'];a344_0xc5be=function(){return _0x4c1652;};return a344_0xc5be();}
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 a345_0x52ef(_0x3ba6c0,_0x254fac){_0x3ba6c0=_0x3ba6c0-0x17f;const _0x3d99b8=a345_0x3d99();let _0x52efce=_0x3d99b8[_0x3ba6c0];return _0x52efce;}(function(_0x464d13,_0x3e72fe){const _0x65029a=a345_0x52ef,_0x13910a=_0x464d13();while(!![]){try{const _0x36855e=parseInt(_0x65029a(0x187))/0x1+parseInt(_0x65029a(0x186))/0x2*(parseInt(_0x65029a(0x18f))/0x3)+parseInt(_0x65029a(0x18c))/0x4+-parseInt(_0x65029a(0x183))/0x5*(-parseInt(_0x65029a(0x180))/0x6)+-parseInt(_0x65029a(0x18b))/0x7+parseInt(_0x65029a(0x185))/0x8*(-parseInt(_0x65029a(0x181))/0x9)+parseInt(_0x65029a(0x189))/0xa*(-parseInt(_0x65029a(0x18a))/0xb);if(_0x36855e===_0x3e72fe)break;else _0x13910a['push'](_0x13910a['shift']());}catch(_0x51345c){_0x13910a['push'](_0x13910a['shift']());}}}(a345_0x3d99,0xa3c18));function env(_0x2969fe){return process.env[`RABETBASE_${_0x2969fe}`]||process.env[`LOVRABET_${_0x2969fe}`]||undefined;}export function isNonInteractive(_0x1f10e3){const _0x129aa2=a345_0x52ef;return!!(_0x1f10e3[_0x129aa2(0x182)]||_0x1f10e3['ci']||env('CI')==='true'||process.env.CI===_0x129aa2(0x188)||!process[_0x129aa2(0x17f)][_0x129aa2(0x18d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2316f7=a345_0x52ef;if(!process[_0x2316f7(0x18e)][_0x2316f7(0x18d)])return![];try{const _0x93da32=process['stdin']['isRaw'];return process[_0x2316f7(0x18e)][_0x2316f7(0x184)](!![]),process[_0x2316f7(0x18e)]['setRawMode'](_0x93da32??![]),!![];}catch{return![];}}function a345_0x3d99(){const _0x36138e=['stdout','7256346WOYdKm','9FlBBDR','nonInteractive','5pxVGvI','setRawMode','581824migGMA','67534UDmkTH','1249454JXzCyO','true','10JGQYyr','32827289KFEDLb','1757721bwpeTk','1893008alWiLM','isTTY','stdin','93jpCPTM'];a345_0x3d99=function(){return _0x36138e;};return a345_0x3d99();}
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();}