@lovrabet/rabetbase-cli 2.4.5 → 2.4.6-beta.1

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 (342) hide show
  1. package/README.md +3 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/init/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/notification/config-create.js +1 -1
  137. package/lib/commands/notification/config-delete.js +1 -1
  138. package/lib/commands/notification/config-list.js +1 -1
  139. package/lib/commands/notification/config-update.js +1 -1
  140. package/lib/commands/notification/index.js +1 -1
  141. package/lib/commands/notification/shared.js +1 -1
  142. package/lib/commands/ocr/index.js +1 -1
  143. package/lib/commands/page/{standard-page-status.d.ts → create.d.ts} +1 -1
  144. package/lib/commands/page/create.js +1 -0
  145. package/lib/commands/page/{react → custom}/detail.d.ts +1 -1
  146. package/lib/commands/page/custom/detail.js +1 -0
  147. package/lib/commands/page/{react → custom}/list.d.ts +1 -1
  148. package/lib/commands/page/custom/list.js +1 -0
  149. package/lib/commands/page/{react → custom}/publish.d.ts +1 -1
  150. package/lib/commands/page/custom/publish.js +1 -0
  151. package/lib/commands/page/{react → custom}/shared.d.ts +15 -15
  152. package/lib/commands/page/custom/shared.js +1 -0
  153. package/lib/commands/page/{react → custom}/syntax.d.ts +2 -2
  154. package/lib/commands/page/custom/syntax.js +1 -0
  155. package/lib/commands/page/custom/template.js +1 -0
  156. package/lib/commands/page/{react → custom}/update.d.ts +1 -1
  157. package/lib/commands/page/custom/update.js +1 -0
  158. package/lib/commands/page/data-list-status.d.ts +2 -0
  159. package/lib/commands/page/data-list-status.js +1 -0
  160. package/lib/commands/page/generate-start.js +1 -1
  161. package/lib/commands/page/generate-status.js +1 -1
  162. package/lib/commands/page/index.js +1 -1
  163. package/lib/commands/page/pull.js +1 -1
  164. package/lib/commands/page/push.js +1 -1
  165. package/lib/commands/page/relation-audit.js +1 -1
  166. package/lib/commands/page/restore.js +1 -1
  167. package/lib/commands/page/shared.d.ts +18 -18
  168. package/lib/commands/page/shared.js +1 -1
  169. package/lib/commands/page/sync.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/materialize-project-template.js +1 -1
  174. package/lib/commands/project/create/project-name.js +1 -1
  175. package/lib/commands/project/create/project-template-archive.js +1 -1
  176. package/lib/commands/project/create/project-template-path.js +1 -1
  177. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  178. package/lib/commands/project/create/use-format-code.js +1 -1
  179. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  180. package/lib/commands/project/index.js +1 -1
  181. package/lib/commands/project/upgrade.js +1 -1
  182. package/lib/commands/registry.js +1 -1
  183. package/lib/commands/role/delete.js +1 -1
  184. package/lib/commands/role/detail.js +1 -1
  185. package/lib/commands/role/index.js +1 -1
  186. package/lib/commands/role/list.js +1 -1
  187. package/lib/commands/role/shared.js +1 -1
  188. package/lib/commands/role/update.js +1 -1
  189. package/lib/commands/role/user-add.js +1 -1
  190. package/lib/commands/role/user-remove.js +1 -1
  191. package/lib/commands/role/user-resolve.js +1 -1
  192. package/lib/commands/run/index.js +1 -1
  193. package/lib/commands/schema.js +1 -1
  194. package/lib/commands/sql/create.js +1 -1
  195. package/lib/commands/sql/delete.js +1 -1
  196. package/lib/commands/sql/detail.js +1 -1
  197. package/lib/commands/sql/exec.js +1 -1
  198. package/lib/commands/sql/index.js +1 -1
  199. package/lib/commands/sql/list.js +1 -1
  200. package/lib/commands/sql/pull.js +1 -1
  201. package/lib/commands/sql/push.js +1 -1
  202. package/lib/commands/sql/shared.js +1 -1
  203. package/lib/commands/sql/status.js +1 -1
  204. package/lib/commands/sql/validate.js +1 -1
  205. package/lib/commands/task/index.js +1 -1
  206. package/lib/commands/task/status.js +1 -1
  207. package/lib/commands/tenant/index.js +1 -1
  208. package/lib/commands/tenant/members-list.js +1 -1
  209. package/lib/commands/tenant/shared.js +1 -1
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  211. package/lib/commands/user-account/index.js +1 -1
  212. package/lib/commands/workspace/add.js +1 -1
  213. package/lib/commands/workspace/index.js +1 -1
  214. package/lib/commands/workspace/remove.js +1 -1
  215. package/lib/config/schema.js +1 -1
  216. package/lib/constant/cdn.js +1 -1
  217. package/lib/constant/cli.js +1 -1
  218. package/lib/constant/defaults.js +1 -1
  219. package/lib/constant/domain.js +1 -1
  220. package/lib/constant/env.js +1 -1
  221. package/lib/constant/output.js +1 -1
  222. package/lib/constant/paths.js +1 -1
  223. package/lib/constant/risk.js +1 -1
  224. package/lib/context/app-resolver.js +1 -1
  225. package/lib/context/auth-resolver.js +1 -1
  226. package/lib/context/config-loader.js +1 -1
  227. package/lib/context.js +1 -1
  228. package/lib/core/alias-resolver.js +1 -1
  229. package/lib/core/api-client.d.ts +43 -43
  230. package/lib/core/api-client.js +1 -1
  231. package/lib/core/bff/config.js +1 -1
  232. package/lib/core/bff/file-system.js +1 -1
  233. package/lib/core/bff/hash.js +1 -1
  234. package/lib/core/bff/lock.js +1 -1
  235. package/lib/core/bff/utils.d.ts +3 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/page/file-system.js +1 -1
  239. package/lib/core/page/hash.js +1 -1
  240. package/lib/core/page/lock.js +1 -1
  241. package/lib/core/sql-index-auditor.js +1 -1
  242. package/lib/core/sql-sync/config.js +1 -1
  243. package/lib/core/sql-sync/file-system.js +1 -1
  244. package/lib/core/sql-sync/hash.js +1 -1
  245. package/lib/core/sql-sync/lock.js +1 -1
  246. package/lib/core/sql-sync/utils.js +1 -1
  247. package/lib/core/sql-validator.js +1 -1
  248. package/lib/errors.js +1 -1
  249. package/lib/framework/build-all-flags.js +1 -1
  250. package/lib/framework/error-output.js +1 -1
  251. package/lib/framework/explicit-yes.js +1 -1
  252. package/lib/framework/flags.js +1 -1
  253. package/lib/framework/help.js +1 -1
  254. package/lib/framework/index.js +1 -1
  255. package/lib/framework/output.js +1 -1
  256. package/lib/framework/response.js +1 -1
  257. package/lib/framework/runner-alias.js +1 -1
  258. package/lib/framework/runner.js +1 -1
  259. package/lib/framework/schema-export.js +1 -1
  260. package/lib/framework/types.js +1 -1
  261. package/lib/generated/build-info.d.ts +4 -4
  262. package/lib/generated/build-info.js +1 -1
  263. package/lib/help.js +1 -1
  264. package/lib/postinstall.js +1 -1
  265. package/lib/runtime/confirmation.js +1 -1
  266. package/lib/runtime/event.js +1 -1
  267. package/lib/runtime/index.js +1 -1
  268. package/lib/runtime/queue.js +1 -1
  269. package/lib/runtime/resolve.js +1 -1
  270. package/lib/skills/builtin-skill.js +1 -1
  271. package/lib/skills/main.js +1 -1
  272. package/lib/skills/npx-skills-add.js +1 -1
  273. package/lib/skills/skill-presence.js +1 -1
  274. package/lib/telemetry/cli-command-trace.js +1 -1
  275. package/lib/telemetry/cli-help-trace.js +1 -1
  276. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  277. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  278. package/lib/telemetry/send-cli-trace-log.js +1 -1
  279. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  280. package/lib/utils/ai_config.js +1 -1
  281. package/lib/utils/apply-jq-filter.js +1 -1
  282. package/lib/utils/cdn-config.js +1 -1
  283. package/lib/utils/check-sdk-version.js +1 -1
  284. package/lib/utils/cli-version-check.js +1 -1
  285. package/lib/utils/cli-version-policy.js +1 -1
  286. package/lib/utils/config.js +1 -1
  287. package/lib/utils/entity-with-id.js +1 -1
  288. package/lib/utils/file-utils.js +1 -1
  289. package/lib/utils/guides-cdn.js +1 -1
  290. package/lib/utils/http-client.js +1 -1
  291. package/lib/utils/is-non-interactive.js +1 -1
  292. package/lib/utils/logger.js +1 -1
  293. package/lib/utils/params.js +1 -1
  294. package/lib/utils/platform.js +1 -1
  295. package/lib/utils/rules-cdn.js +1 -1
  296. package/lib/utils/sleep.js +1 -1
  297. package/lib/utils/template-replacer.js +1 -1
  298. package/lib/utils/update-notice.js +1 -1
  299. package/lib/utils/version.js +1 -1
  300. package/lib/utils/with-active-cookie.js +1 -1
  301. package/lib/utils/write-cli-side-channel.js +1 -1
  302. package/package.json +1 -1
  303. package/skills/rabetbase/SKILL.md +34 -34
  304. package/skills/rabetbase/guides/backend-function.md +63 -18
  305. package/skills/rabetbase/guides/bff-creation-workflow.md +2 -0
  306. package/skills/rabetbase/guides/{react-custom-page-workflow.md → custom-page-workflow.md} +45 -45
  307. package/skills/rabetbase/guides/page-development-workflow.md +22 -22
  308. package/skills/rabetbase/knowledge/{react-page → custom-page}/components.md +2 -2
  309. package/skills/rabetbase/knowledge/{react-page → custom-page}/generation-standards.md +6 -6
  310. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +6 -6
  311. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +1 -1
  312. package/skills/rabetbase/references/rabetbase-bff-create.md +2 -0
  313. package/skills/rabetbase/references/{rabetbase-standard-page-status.md → rabetbase-data-list-status.md} +6 -6
  314. package/skills/rabetbase/references/rabetbase-dataset-generate.md +1 -1
  315. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +1 -1
  316. package/skills/rabetbase/references/rabetbase-dataset-relations.md +1 -1
  317. package/skills/rabetbase/references/rabetbase-dataset-restore.md +1 -1
  318. package/skills/rabetbase/references/rabetbase-menu-list.md +1 -1
  319. package/skills/rabetbase/references/rabetbase-page-create.md +31 -0
  320. package/skills/rabetbase/references/{rabetbase-page-react-detail.md → rabetbase-page-custom-detail.md} +5 -5
  321. package/skills/rabetbase/references/{rabetbase-page-react-list.md → rabetbase-page-custom-list.md} +4 -4
  322. package/skills/rabetbase/references/{rabetbase-page-react-publish.md → rabetbase-page-custom-publish.md} +6 -6
  323. package/skills/rabetbase/references/{rabetbase-page-react-update.md → rabetbase-page-custom-update.md} +6 -6
  324. package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -4
  325. package/skills/rabetbase/references/rabetbase-page-generate-status.md +4 -4
  326. package/skills/rabetbase/references/rabetbase-page-pull.md +2 -2
  327. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +1 -1
  328. package/skills/rabetbase/references/rabetbase-page-restore.md +7 -7
  329. package/skills/rabetbase/references/rabetbase-page-sync.md +3 -3
  330. package/skills/rabetbase.manifest.json +12 -12
  331. package/lib/commands/page/react/create.d.ts +0 -2
  332. package/lib/commands/page/react/create.js +0 -1
  333. package/lib/commands/page/react/detail.js +0 -1
  334. package/lib/commands/page/react/list.js +0 -1
  335. package/lib/commands/page/react/publish.js +0 -1
  336. package/lib/commands/page/react/shared.js +0 -1
  337. package/lib/commands/page/react/syntax.js +0 -1
  338. package/lib/commands/page/react/template.js +0 -1
  339. package/lib/commands/page/react/update.js +0 -1
  340. package/lib/commands/page/standard-page-status.js +0 -1
  341. package/skills/rabetbase/references/rabetbase-page-react-create.md +0 -29
  342. /package/lib/commands/page/{react → custom}/template.d.ts +0 -0
@@ -1 +1 @@
1
- const a263_0x207a37=a263_0x3a95;(function(_0xdb3a23,_0x40ab3b){const _0x5b3010=a263_0x3a95,_0x2d05ae=_0xdb3a23();while(!![]){try{const _0x339215=parseInt(_0x5b3010(0xfd))/0x1*(parseInt(_0x5b3010(0xeb))/0x2)+-parseInt(_0x5b3010(0xf1))/0x3*(parseInt(_0x5b3010(0xdc))/0x4)+parseInt(_0x5b3010(0xd5))/0x5+parseInt(_0x5b3010(0xe8))/0x6*(parseInt(_0x5b3010(0xda))/0x7)+parseInt(_0x5b3010(0xee))/0x8*(-parseInt(_0x5b3010(0xe5))/0x9)+-parseInt(_0x5b3010(0xcd))/0xa*(parseInt(_0x5b3010(0xdd))/0xb)+parseInt(_0x5b3010(0xef))/0xc;if(_0x339215===_0x40ab3b)break;else _0x2d05ae['push'](_0x2d05ae['shift']());}catch(_0x55b26e){_0x2d05ae['push'](_0x2d05ae['shift']());}}}(a263_0x2946,0x8a14b));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';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=a263_0x207a37(0xfc);export const NPX_SKILLS_SUBCOMMAND_ADD=a263_0x207a37(0xe0);export const NPX_SKILLS_FLAG_SKILL=a263_0x207a37(0xde);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a263_0x207a37(0xd8);export const DEFAULT_RABETBASE_SKILL_NAME=a263_0x207a37(0xce);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a263_0x207a37(0xdb);export function resolveGlobalSkillName(_0x29de9a){const _0x11f9fc=a263_0x207a37;switch(_0x29de9a[_0x11f9fc(0xd3)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x226e92){const _0x27649b=a263_0x207a37,_0x5a21fb=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x226e92&&_0x5a21fb[_0x27649b(0xe9)](NPX_SKILLS_FLAG_SKILL,_0x226e92),_0x5a21fb;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a263_0x207a37(0xd4),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(_0x1dadeb,_0x1e76fe,_0x52e862){return{'ok':![],'status':_0x1e76fe,'code':_0x1dadeb,'error':'['+_0x1dadeb+']\x20'+_0x52e862};}function spawnOptions(_0x55501c,_0xe0a7e8){const _0x1c256f=a263_0x207a37,_0x2a1409={...process.env};return delete _0x2a1409[_0x1c256f(0xf3)],delete _0x2a1409[_0x1c256f(0xc9)],{'cwd':_0x55501c,'stdio':_0xe0a7e8,'env':_0x2a1409,'shell':![],..._0xe0a7e8===_0x1c256f(0xe7)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x470541,_0x56527c,_0x256f0f,_0x3b9a9a){const _0x3d7c94=a263_0x207a37,_0xaafed8=[_0x470541[_0x3d7c94(0xcf)]?_0x470541[_0x3d7c94(0xcf)][_0x3d7c94(0xf7)]():'',_0x470541['stderr']?_0x470541['stderr'][_0x3d7c94(0xf7)]():''][_0x3d7c94(0xf9)](Boolean)[_0x3d7c94(0xc8)]('\x0a')[_0x3d7c94(0xd3)]();_0x3b9a9a!==_0x3d7c94(0xe7)&&_0xaafed8&&console['log'](_0xaafed8);if(_0x470541[_0x3d7c94(0xf8)]){const _0x10767d=_0x470541['error'],_0x1780c7=_0x10767d[_0x3d7c94(0xe3)]===_0x3d7c94(0xf6)?_0x3d7c94(0xfa):_0x10767d['code']===_0x3d7c94(0x100)||_0x10767d[_0x3d7c94(0xe3)]===_0x3d7c94(0xd2)?_0x3d7c94(0xcb):_0x3d7c94(0xcc);return failure(_0x1780c7,_0x470541['status'],_0x10767d['message']);}if(_0x470541[_0x3d7c94(0xe6)])return failure('CHILD_TERMINATED',_0x470541[_0x3d7c94(0xd9)],_0x3d7c94(0xca)+_0x470541['signal']);if(_0x470541['status']!==0x0)return failure(_0x3d7c94(0xd6),_0x470541['status'],_0xaafed8||'exit\x20'+(_0x470541[_0x3d7c94(0xd9)]??_0x3d7c94(0xf4)));const _0x27d5e4=_0x56527c?resolveInstalledSkill(_0x56527c,_0x256f0f):undefined,_0x467fe0=_0xaafed8['match'](/Failed to install\s+(\d+)/i);if(_0x467fe0&&Number(_0x467fe0[0x1])>0x0){const _0x5da3dd='Installer\x20reported\x20'+_0x467fe0[0x1]+_0x3d7c94(0xdf)+(_0xaafed8?':\x0a'+_0xaafed8:'');if(_0x27d5e4?.['state']===_0x3d7c94(0xe2))return console['warn']('!\x20'+_0x5da3dd),{'ok':!![],'status':0x0};return failure(_0x3d7c94(0xf5),0x0,_0x5da3dd);}if(_0x27d5e4){if(_0x27d5e4[_0x3d7c94(0xf2)]===_0x3d7c94(0xed))return failure('SKILL_NOT_INSTALLED',0x0,'Skill\x20\x22'+_0x56527c+_0x3d7c94(0xec)+_0x27d5e4[_0x3d7c94(0xfe)]['join'](',\x20')+')');_0x27d5e4['state']===_0x3d7c94(0xd7)&&console[_0x3d7c94(0xd1)](_0x3d7c94(0xfb)+_0x56527c+_0x3d7c94(0xd0)+_0x27d5e4[_0x3d7c94(0xea)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xc8820c,_0x54804a){const _0x2892d2=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x481320=_0x54804a?.[_0x2892d2(0xe1)]??'inherit',_0xeb9d7e=resolveNpmBin(_0x2892d2(0xd4)),_0x5c7ace=buildNpxSkillsAddArgv(_0x54804a?.[_0x2892d2(0xe4)]),_0x54ef35=[_0x2892d2(0xd4),..._0x5c7ace][_0x2892d2(0xc8)]('\x20');console[_0x2892d2(0xf0)]('*\x20'+_0x54ef35);const _0x413bb5=spawnSync(_0xeb9d7e,_0x5c7ace,spawnOptions(_0xc8820c,_0x481320));return normalizeSpawnResult(_0x413bb5,undefined,undefined,_0x481320);}function a263_0x3a95(_0x1da10c,_0x3eaaf6){_0x1da10c=_0x1da10c-0xc8;const _0x2946bd=a263_0x2946();let _0x3a954b=_0x2946bd[_0x1da10c];return _0x3a954b;}export function runNpxSkillsRemove(_0x386af3,_0x1cabee,_0x5f5ca0=LEGACY_RABETBASE_SKILL_SOURCE){const _0x14c3f5=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e2603=_0x1cabee?.[_0x14c3f5(0xe1)]??_0x14c3f5(0xff),_0x175b68=resolveNpmBin(_0x14c3f5(0xd4)),_0x6664d0=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x5f5ca0,NPX_SKILLS_FLAG_SKILL,_0x1cabee?.[_0x14c3f5(0xe4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1cabee?.['yes']?['-y']:[]],_0x3b992d=[_0x175b68,..._0x6664d0][_0x14c3f5(0xc8)]('\x20');console[_0x14c3f5(0xf0)]('*\x20'+_0x3b992d);const _0x33c67a=spawnSync(_0x175b68,_0x6664d0,spawnOptions(_0x386af3,_0x5e2603));return normalizeSpawnResult(_0x33c67a,undefined,undefined,_0x5e2603);}function a263_0x2946(){const _0x4c3cc5=['11912364MopfkV','log','81vZJNJb','state','npm_config_global','unknown','INSTALL_PARTIAL','ENOENT','toString','error','filter','NPX_NOT_FOUND','!\x20Could\x20not\x20verify\x20\x22','skills@latest','1wweLYG','checked','inherit','EPERM','join','NPM_CONFIG_GLOBAL','npx\x20terminated\x20by\x20signal\x20','PERMISSION_DENIED','SPAWN_FAILED','2057420Qfmyex','Lovrabet','stdout','\x22\x20install\x20state:\x20','warn','EACCES','trim','npx','2165755osAeYW','CHILD_EXIT_NONZERO','unverifiable','lovrabet/lovrabet-skill','status','150262HMdbra','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','58268BEviui','11eCImqI','--skill','\x20failed\x20target(s)','add','stdio','present','code','skill','189MDWNRo','signal','pipe','12orySco','push','reason','1488382WlaijH','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','absent','399368xVFgNM'];a263_0x2946=function(){return _0x4c3cc5;};return a263_0x2946();}export function runNpxSkillsAddGlobal(_0x432e3d,_0x5af451,_0x17e6af){const _0x29d751=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x420179=resolveNpmBin('npx'),_0x5dddf7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5af451,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x39b645=[_0x29d751(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5af451,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x29d751(0xc8)]('\x20');console[_0x29d751(0xf0)]('*\x20'+_0x39b645);const _0xd4d7fe=spawnSync(_0x420179,_0x5dddf7,spawnOptions(_0x432e3d,_0x29d751(0xe7)));return normalizeSpawnResult(_0xd4d7fe,_0x17e6af?.['expectedSkillName']??resolveGlobalSkillName(_0x5af451),_0x17e6af?.['presence'],_0x17e6af?.[_0x29d751(0xe1)]);}
1
+ const a263_0x3b3afb=a263_0x2ebd;(function(_0x5eb185,_0x4b8f95){const _0x490cf6=a263_0x2ebd,_0x2a2b0f=_0x5eb185();while(!![]){try{const _0x1ce4ad=parseInt(_0x490cf6(0xf9))/0x1*(-parseInt(_0x490cf6(0x129))/0x2)+parseInt(_0x490cf6(0x132))/0x3*(-parseInt(_0x490cf6(0x10c))/0x4)+parseInt(_0x490cf6(0x122))/0x5*(parseInt(_0x490cf6(0x116))/0x6)+-parseInt(_0x490cf6(0x107))/0x7+-parseInt(_0x490cf6(0xfd))/0x8+parseInt(_0x490cf6(0x126))/0x9+-parseInt(_0x490cf6(0x10d))/0xa*(-parseInt(_0x490cf6(0x105))/0xb);if(_0x1ce4ad===_0x4b8f95)break;else _0x2a2b0f['push'](_0x2a2b0f['shift']());}catch(_0x1e3de9){_0x2a2b0f['push'](_0x2a2b0f['shift']());}}}(a263_0x565c,0x92f35));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';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='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a263_0x3b3afb(0x10f);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a263_0x3b3afb(0xff);export const LEGACY_RABETBASE_SKILL_SOURCE=a263_0x3b3afb(0x106);export const DEFAULT_RABETBASE_SKILL_NAME=a263_0x3b3afb(0x11a);export const RABETBASE_GLOBAL_SKILL_NAME=a263_0x3b3afb(0x114);export const RABETBASE_SKILL_GIT_SOURCE=a263_0x3b3afb(0x108);export function resolveGlobalSkillName(_0x346857){const _0x3b6a8a=a263_0x3b3afb;switch(_0x346857[_0x3b6a8a(0x128)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x2ae706){const _0x3ca5ee=a263_0x3b3afb,_0x1f7608=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2ae706&&_0x1f7608[_0x3ca5ee(0x11e)](NPX_SKILLS_FLAG_SKILL,_0x2ae706),_0x1f7608;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\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 a263_0x2ebd(_0x2e067d,_0x1373f1){_0x2e067d=_0x2e067d-0xf9;const _0x565cb4=a263_0x565c();let _0x2ebd86=_0x565cb4[_0x2e067d];return _0x2ebd86;}function failure(_0x8d4d2b,_0x2f5e73,_0x18750c){return{'ok':![],'status':_0x2f5e73,'code':_0x8d4d2b,'error':'['+_0x8d4d2b+']\x20'+_0x18750c};}function a263_0x565c(){const _0x643d25=['6725768rYKNSb','toString','lovrabet/rabetbase','warn','EACCES','NPM_CONFIG_GLOBAL','Skill\x20\x22','error','33AuHtFz','lovrabet/lovrabet-skill','3467296Siexzz','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','join','remove','absent','4572woJecd','4266730trMMVg','stdio','add','pipe','ENOENT','stderr','npm_config_global','rabetbase','filter','6eaiBOJ','presence','stdout','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','Lovrabet','npx\x20terminated\x20by\x20signal\x20','SPAWN_FAILED','checked','push','inherit','NPX_NOT_FOUND','unverifiable','4383445jwudaT','code','exit\x20','yes','6172722NPVhGI','Installer\x20reported\x20','trim','306wkNwHv','INSTALL_PARTIAL','reason','\x22\x20install\x20state:\x20','message','npx','expectedSkillName','skill','status','1329QLiKox','2603RVcEXo','state','log','PERMISSION_DENIED'];a263_0x565c=function(){return _0x643d25;};return a263_0x565c();}function spawnOptions(_0x3cb223,_0x2b6730){const _0x1394aa=a263_0x3b3afb,_0x26ac0d={...process.env};return delete _0x26ac0d[_0x1394aa(0x113)],delete _0x26ac0d[_0x1394aa(0x102)],{'cwd':_0x3cb223,'stdio':_0x2b6730,'env':_0x26ac0d,'shell':![],..._0x2b6730===_0x1394aa(0x110)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x2ffaf4,_0x3e149d,_0xfc187,_0xc03c82){const _0x3738ba=a263_0x3b3afb,_0x6415b1=[_0x2ffaf4[_0x3738ba(0x118)]?_0x2ffaf4[_0x3738ba(0x118)]['toString']():'',_0x2ffaf4['stderr']?_0x2ffaf4[_0x3738ba(0x112)][_0x3738ba(0xfe)]():''][_0x3738ba(0x115)](Boolean)[_0x3738ba(0x109)]('\x0a')[_0x3738ba(0x128)]();_0xc03c82!=='pipe'&&_0x6415b1&&console['log'](_0x6415b1);if(_0x2ffaf4[_0x3738ba(0x104)]){const _0x18f0cf=_0x2ffaf4[_0x3738ba(0x104)],_0x4ff37e=_0x18f0cf['code']===_0x3738ba(0x111)?_0x3738ba(0x120):_0x18f0cf[_0x3738ba(0x123)]==='EPERM'||_0x18f0cf[_0x3738ba(0x123)]===_0x3738ba(0x101)?_0x3738ba(0xfc):_0x3738ba(0x11c);return failure(_0x4ff37e,_0x2ffaf4[_0x3738ba(0x131)],_0x18f0cf[_0x3738ba(0x12d)]);}if(_0x2ffaf4['signal'])return failure('CHILD_TERMINATED',_0x2ffaf4[_0x3738ba(0x131)],_0x3738ba(0x11b)+_0x2ffaf4['signal']);if(_0x2ffaf4['status']!==0x0)return failure('CHILD_EXIT_NONZERO',_0x2ffaf4[_0x3738ba(0x131)],_0x6415b1||_0x3738ba(0x124)+(_0x2ffaf4['status']??'unknown'));const _0x1fc82f=_0x3e149d?resolveInstalledSkill(_0x3e149d,_0xfc187):undefined,_0x56483d=_0x6415b1['match'](/Failed to install\s+(\d+)/i);if(_0x56483d&&Number(_0x56483d[0x1])>0x0){const _0x21363d=_0x3738ba(0x127)+_0x56483d[0x1]+'\x20failed\x20target(s)'+(_0x6415b1?':\x0a'+_0x6415b1:'');if(_0x1fc82f?.['state']==='present')return console[_0x3738ba(0x100)]('!\x20'+_0x21363d),{'ok':!![],'status':0x0};return failure(_0x3738ba(0x12a),0x0,_0x21363d);}if(_0x1fc82f){if(_0x1fc82f[_0x3738ba(0xfa)]===_0x3738ba(0x10b))return failure('SKILL_NOT_INSTALLED',0x0,_0x3738ba(0x103)+_0x3e149d+_0x3738ba(0x119)+_0x1fc82f[_0x3738ba(0x11d)][_0x3738ba(0x109)](',\x20')+')');_0x1fc82f[_0x3738ba(0xfa)]===_0x3738ba(0x121)&&console[_0x3738ba(0x100)]('!\x20Could\x20not\x20verify\x20\x22'+_0x3e149d+_0x3738ba(0x12c)+_0x1fc82f[_0x3738ba(0x12b)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2ed90b,_0xf0a169){const _0x42d64c=a263_0x3b3afb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3ac280=_0xf0a169?.[_0x42d64c(0x10e)]??'inherit',_0x3c1769=resolveNpmBin(_0x42d64c(0x12e)),_0xa43fc8=buildNpxSkillsAddArgv(_0xf0a169?.[_0x42d64c(0x130)]),_0x39d38c=[_0x42d64c(0x12e),..._0xa43fc8]['join']('\x20');console[_0x42d64c(0xfb)]('*\x20'+_0x39d38c);const _0x31879d=spawnSync(_0x3c1769,_0xa43fc8,spawnOptions(_0x2ed90b,_0x3ac280));return normalizeSpawnResult(_0x31879d,undefined,undefined,_0x3ac280);}export function runNpxSkillsRemove(_0x5daa0a,_0x44c718,_0x113cbc=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2fa6f6=a263_0x3b3afb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbe2fe=_0x44c718?.['stdio']??_0x2fa6f6(0x11f),_0x2ddf2c=resolveNpmBin(_0x2fa6f6(0x12e)),_0x456871=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2fa6f6(0x10a),_0x113cbc,NPX_SKILLS_FLAG_SKILL,_0x44c718?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x44c718?.[_0x2fa6f6(0x125)]?['-y']:[]],_0x32b347=[_0x2ddf2c,..._0x456871][_0x2fa6f6(0x109)]('\x20');console['log']('*\x20'+_0x32b347);const _0x4093ed=spawnSync(_0x2ddf2c,_0x456871,spawnOptions(_0x5daa0a,_0xbe2fe));return normalizeSpawnResult(_0x4093ed,undefined,undefined,_0xbe2fe);}export function runNpxSkillsAddGlobal(_0x4284c1,_0x49b701,_0x2d58f1){const _0x225bce=a263_0x3b3afb;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2c1c19=resolveNpmBin(_0x225bce(0x12e)),_0x56778b=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x49b701,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1443ed=[_0x225bce(0x12e),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x49b701,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x225bce(0x109)]('\x20');console[_0x225bce(0xfb)]('*\x20'+_0x1443ed);const _0x22cdf5=spawnSync(_0x2c1c19,_0x56778b,spawnOptions(_0x4284c1,_0x225bce(0x110)));return normalizeSpawnResult(_0x22cdf5,_0x2d58f1?.[_0x225bce(0x12f)]??resolveGlobalSkillName(_0x49b701),_0x2d58f1?.[_0x225bce(0x117)],_0x2d58f1?.[_0x225bce(0x10e)]);}
@@ -1 +1 @@
1
- const a264_0x63c369=a264_0x1051;(function(_0x383b10,_0x12d2a4){const _0x634736=a264_0x1051,_0x4633b7=_0x383b10();while(!![]){try{const _0x490375=parseInt(_0x634736(0x1ad))/0x1+parseInt(_0x634736(0x1b5))/0x2+parseInt(_0x634736(0x1a0))/0x3*(-parseInt(_0x634736(0x199))/0x4)+-parseInt(_0x634736(0x1b6))/0x5*(-parseInt(_0x634736(0x1ac))/0x6)+parseInt(_0x634736(0x196))/0x7*(parseInt(_0x634736(0x1a4))/0x8)+-parseInt(_0x634736(0x19b))/0x9+-parseInt(_0x634736(0x1a1))/0xa;if(_0x490375===_0x12d2a4)break;else _0x4633b7['push'](_0x4633b7['shift']());}catch(_0x3d85a7){_0x4633b7['push'](_0x4633b7['shift']());}}}(a264_0x627a,0x9af8a));import{existsSync,readFileSync}from'node:fs';function a264_0x627a(){const _0x54ac73=['find','version','\x20uses\x20unsupported\x20version\x20','2231280AtLtuW','39095puTjyB','\x20has\x20no\x20skills\x20map','reason','301UJFokr','home','message','100zHebSm','number','10021167ZeLRew','skills','.agents','kind','unverifiable','77358qcqxTR','14807010MHFJHv','parse','absent','210968BWtfhM','.claude','\x20records\x20\x22','unusable','join','object','lockFile','\x20is\x20unreadable:\x20','594ihgubx','849902vEjhVg','not-recorded','recorded','map','.skill-lock.json'];a264_0x627a=function(){return _0x54ac73;};return a264_0x627a();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a264_0x63c369(0x1b1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a264_0x63c369(0x19d),'skills'),join(a264_0x63c369(0x1a5),a264_0x63c369(0x19c))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a264_0x1051(_0x4928de,_0x183736){_0x4928de=_0x4928de-0x195;const _0x627a8b=a264_0x627a();let _0x1051a4=_0x627a8b[_0x4928de];return _0x1051a4;}function readLockLookup(_0x3a19f1,_0x1d9f2d){const _0x3f6297=a264_0x63c369;if(!existsSync(_0x3a19f1))return{'kind':'not-recorded'};let _0x46c4a8;try{_0x46c4a8=JSON[_0x3f6297(0x1a2)](readFileSync(_0x3a19f1,'utf8'));}catch(_0xea9a33){return{'kind':_0x3f6297(0x1a7),'reason':_0x3a19f1+_0x3f6297(0x1ab)+_0xea9a33[_0x3f6297(0x198)]};}const _0x45be23=_0x46c4a8;if(typeof _0x45be23?.[_0x3f6297(0x1b3)]!==_0x3f6297(0x19a)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x45be23[_0x3f6297(0x1b3)]))return{'kind':_0x3f6297(0x1a7),'reason':_0x3a19f1+_0x3f6297(0x1b4)+String(_0x45be23?.[_0x3f6297(0x1b3)])};if(!_0x45be23[_0x3f6297(0x19c)]||typeof _0x45be23[_0x3f6297(0x19c)]!==_0x3f6297(0x1a9))return{'kind':'unusable','reason':_0x3a19f1+_0x3f6297(0x1b7)};return _0x45be23[_0x3f6297(0x19c)][_0x1d9f2d]?{'kind':'recorded'}:{'kind':_0x3f6297(0x1ae)};}export function resolveInstalledSkill(_0x48ea74,_0x3868bf){const _0x5d56ac=a264_0x63c369,_0x1d5220=_0x3868bf?.[_0x5d56ac(0x197)]??homedir(),_0x13bf91=_0x3868bf?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5d56ac(0x1b0)](_0x4b29e1=>join(_0x1d5220,_0x4b29e1)),_0x1fe1d8=_0x3868bf?.[_0x5d56ac(0x1aa)]??join(_0x1d5220,SKILL_LOCK_RELATIVE_PATH),_0x4defc6=_0x13bf91[_0x5d56ac(0x1b0)](_0x101c6b=>join(_0x101c6b,_0x48ea74,'SKILL.md')),_0x35f8ad=_0x4defc6[_0x5d56ac(0x1b2)](_0x312683=>existsSync(_0x312683));if(_0x35f8ad)return{'state':'present','path':_0x35f8ad};const _0x371216=readLockLookup(_0x1fe1d8,_0x48ea74);if(_0x371216[_0x5d56ac(0x19e)]===_0x5d56ac(0x1a7))return{'state':'unverifiable','reason':_0x371216[_0x5d56ac(0x195)]};if(_0x371216[_0x5d56ac(0x19e)]===_0x5d56ac(0x1af))return{'state':_0x5d56ac(0x19f),'reason':_0x1fe1d8+_0x5d56ac(0x1a6)+_0x48ea74+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x4defc6[_0x5d56ac(0x1a8)](',\x20')+')')};return{'state':_0x5d56ac(0x1a3),'checked':_0x4defc6};}
1
+ const a264_0x236b48=a264_0x6413;(function(_0x3147d4,_0x251ccd){const _0x515031=a264_0x6413,_0x367a77=_0x3147d4();while(!![]){try{const _0x33facc=-parseInt(_0x515031(0x7c))/0x1*(-parseInt(_0x515031(0x76))/0x2)+-parseInt(_0x515031(0x78))/0x3+parseInt(_0x515031(0x85))/0x4*(parseInt(_0x515031(0x6c))/0x5)+-parseInt(_0x515031(0x8c))/0x6+-parseInt(_0x515031(0x89))/0x7*(-parseInt(_0x515031(0x8e))/0x8)+-parseInt(_0x515031(0x8b))/0x9*(-parseInt(_0x515031(0x80))/0xa)+-parseInt(_0x515031(0x6d))/0xb*(parseInt(_0x515031(0x83))/0xc);if(_0x33facc===_0x251ccd)break;else _0x367a77['push'](_0x367a77['shift']());}catch(_0x3919b4){_0x367a77['push'](_0x367a77['shift']());}}}(a264_0x3e7d,0x2f67e));import{existsSync,readFileSync}from'node:fs';function a264_0x3e7d(){const _0x1912c0=['.agents','4qqkUHN','unverifiable','660738dAlwxU','reason','not-recorded','\x20has\x20no\x20skills\x20map','109512FzVzgP','.skill-lock.json','lockFile','globalSkillsDirs','2608710ImNMec','recorded','version','36852GYPLxh','\x20is\x20unreadable:\x20','52pONQiu','map','SKILL.md','unusable','10661JuTcDm','number','9KgBVCv','2294400SjemfI','home','1680rSRadW','object','join','\x20uses\x20unsupported\x20version\x20','message','1245XJpaTu','22TRWfEy','parse','.claude','find','kind','skills','utf8','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'];a264_0x3e7d=function(){return _0x1912c0;};return a264_0x3e7d();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a264_0x236b48(0x75),a264_0x236b48(0x7d));function a264_0x6413(_0x2f5849,_0xfb4ad2){_0x2f5849=_0x2f5849-0x6c;const _0x3e7d82=a264_0x3e7d();let _0x6413a8=_0x3e7d82[_0x2f5849];return _0x6413a8;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a264_0x236b48(0x75),a264_0x236b48(0x72)),join(a264_0x236b48(0x6f),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3dd027,_0x22092e){const _0x4c44df=a264_0x236b48;if(!existsSync(_0x3dd027))return{'kind':_0x4c44df(0x7a)};let _0x916fea;try{_0x916fea=JSON[_0x4c44df(0x6e)](readFileSync(_0x3dd027,_0x4c44df(0x73)));}catch(_0x2183d4){return{'kind':_0x4c44df(0x88),'reason':_0x3dd027+_0x4c44df(0x84)+_0x2183d4[_0x4c44df(0x92)]};}const _0x594b71=_0x916fea;if(typeof _0x594b71?.[_0x4c44df(0x82)]!==_0x4c44df(0x8a)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x594b71[_0x4c44df(0x82)]))return{'kind':_0x4c44df(0x88),'reason':_0x3dd027+_0x4c44df(0x91)+String(_0x594b71?.[_0x4c44df(0x82)])};if(!_0x594b71['skills']||typeof _0x594b71[_0x4c44df(0x72)]!==_0x4c44df(0x8f))return{'kind':_0x4c44df(0x88),'reason':_0x3dd027+_0x4c44df(0x7b)};return _0x594b71['skills'][_0x22092e]?{'kind':_0x4c44df(0x81)}:{'kind':_0x4c44df(0x7a)};}export function resolveInstalledSkill(_0x171891,_0xab17db){const _0x3f7e6c=a264_0x236b48,_0x4d9e4b=_0xab17db?.[_0x3f7e6c(0x8d)]??homedir(),_0x10f045=_0xab17db?.[_0x3f7e6c(0x7f)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3f7e6c(0x86)](_0xebd96d=>join(_0x4d9e4b,_0xebd96d)),_0x36fb90=_0xab17db?.[_0x3f7e6c(0x7e)]??join(_0x4d9e4b,SKILL_LOCK_RELATIVE_PATH),_0x3218fb=_0x10f045[_0x3f7e6c(0x86)](_0x1ef2e3=>join(_0x1ef2e3,_0x171891,_0x3f7e6c(0x87))),_0x1eafcc=_0x3218fb[_0x3f7e6c(0x70)](_0x16f1dc=>existsSync(_0x16f1dc));if(_0x1eafcc)return{'state':'present','path':_0x1eafcc};const _0x471901=readLockLookup(_0x36fb90,_0x171891);if(_0x471901[_0x3f7e6c(0x71)]===_0x3f7e6c(0x88))return{'state':_0x3f7e6c(0x77),'reason':_0x471901[_0x3f7e6c(0x79)]};if(_0x471901[_0x3f7e6c(0x71)]===_0x3f7e6c(0x81))return{'state':_0x3f7e6c(0x77),'reason':_0x36fb90+'\x20records\x20\x22'+_0x171891+_0x3f7e6c(0x74)+('('+_0x3218fb[_0x3f7e6c(0x90)](',\x20')+')')};return{'state':'absent','checked':_0x3218fb};}
@@ -1 +1 @@
1
- (function(_0xfe2276,_0x34879d){const _0x4630af=a265_0x5139,_0x395fe7=_0xfe2276();while(!![]){try{const _0x201b5d=-parseInt(_0x4630af(0x6d))/0x1+-parseInt(_0x4630af(0x7e))/0x2+-parseInt(_0x4630af(0x79))/0x3*(-parseInt(_0x4630af(0x7c))/0x4)+parseInt(_0x4630af(0x6c))/0x5*(parseInt(_0x4630af(0x6e))/0x6)+-parseInt(_0x4630af(0x75))/0x7*(-parseInt(_0x4630af(0x6f))/0x8)+-parseInt(_0x4630af(0x78))/0x9*(parseInt(_0x4630af(0x7d))/0xa)+-parseInt(_0x4630af(0x7f))/0xb*(-parseInt(_0x4630af(0x73))/0xc);if(_0x201b5d===_0x34879d)break;else _0x395fe7['push'](_0x395fe7['shift']());}catch(_0xe0cf51){_0x395fe7['push'](_0x395fe7['shift']());}}}(a265_0x5aea,0x83dc4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a265_0x5aea(){const _0xb9dfe3=['324007iUwKRA','6253182CvUeBz','24VBkNmY','service','command','entries','146436gBnwOg','[REDACTED]','946281OkKfHs','test','flags','1551276xKwzSP','13839ZHdkhY','stringify','error','284kaPLpv','60AISOHz','2121338SOXBma','1067vqZHhK','message','durationMs','5hBjURF'];a265_0x5aea=function(){return _0xb9dfe3;};return a265_0x5aea();}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(_0x5f2288){const _0xb997d8=a265_0x5139;return SENSITIVE_PATTERNS['some'](_0x4626db=>_0x4626db[_0xb997d8(0x76)](_0x5f2288));}function a265_0x5139(_0x31a611,_0x53f3ee){_0x31a611=_0x31a611-0x6b;const _0x5aeacd=a265_0x5aea();let _0x5139d8=_0x5aeacd[_0x31a611];return _0x5139d8;}function sanitizeFlags(_0x400fa8){const _0x40ab28=a265_0x5139,_0x54b425={};for(const [_0x5db959,_0x30c17d]of Object[_0x40ab28(0x72)](_0x400fa8)){isSensitiveKey(_0x5db959)?_0x54b425[_0x5db959]=_0x30c17d!=null&&_0x30c17d!==''?_0x40ab28(0x74):_0x30c17d:_0x54b425[_0x5db959]=_0x30c17d;}return _0x54b425;}export async function reportCommandTrace(_0x5f067c){const _0x243f9d=a265_0x5139;try{const _0xf9f7f3=sanitizeFlags(_0x5f067c[_0x243f9d(0x77)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5f067c[_0x243f9d(0x70)],'command.name':_0x5f067c[_0x243f9d(0x71)],'command.flags':JSON[_0x243f9d(0x7a)](_0xf9f7f3),..._0x5f067c[_0x243f9d(0x6b)]!=null?{'command.duration_ms':_0x5f067c['durationMs']}:{},..._0x5f067c[_0x243f9d(0x7b)]?{'command.error':_0x5f067c[_0x243f9d(0x7b)]instanceof Error?_0x5f067c['error'][_0x243f9d(0x80)]:String(_0x5f067c[_0x243f9d(0x7b)])}:{}}});}catch{}}
1
+ (function(_0x3e4fb7,_0x2f7701){const _0x45b837=a265_0x46d1,_0x3e0b59=_0x3e4fb7();while(!![]){try{const _0x27681d=-parseInt(_0x45b837(0x1c3))/0x1+parseInt(_0x45b837(0x1c9))/0x2+-parseInt(_0x45b837(0x1d1))/0x3+-parseInt(_0x45b837(0x1c7))/0x4*(parseInt(_0x45b837(0x1c8))/0x5)+-parseInt(_0x45b837(0x1cc))/0x6+parseInt(_0x45b837(0x1ce))/0x7+parseInt(_0x45b837(0x1cb))/0x8*(parseInt(_0x45b837(0x1c5))/0x9);if(_0x27681d===_0x2f7701)break;else _0x3e0b59['push'](_0x3e0b59['shift']());}catch(_0x58c358){_0x3e0b59['push'](_0x3e0b59['shift']());}}}(a265_0x4e7c,0xe020f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x3acfc4){const _0x1c209c=a265_0x46d1;return SENSITIVE_PATTERNS[_0x1c209c(0x1cd)](_0x1c5139=>_0x1c5139['test'](_0x3acfc4));}function a265_0x4e7c(){const _0x4e8f62=['781443NpNUFj','error','1112233BCylqn','stringify','22671JufdqM','durationMs','5082492VetfUb','5crwNkW','3401478GgQkuG','[REDACTED]','5000CKnydv','5780868ajDmEF','some','8748124BmOsdr','message','flags'];a265_0x4e7c=function(){return _0x4e8f62;};return a265_0x4e7c();}function a265_0x46d1(_0x17f41e,_0x36791f){_0x17f41e=_0x17f41e-0x1c2;const _0x4e7c1e=a265_0x4e7c();let _0x46d19d=_0x4e7c1e[_0x17f41e];return _0x46d19d;}function sanitizeFlags(_0x4a7937){const _0xae304d=a265_0x46d1,_0x235a12={};for(const [_0x13729d,_0x467ee1]of Object['entries'](_0x4a7937)){isSensitiveKey(_0x13729d)?_0x235a12[_0x13729d]=_0x467ee1!=null&&_0x467ee1!==''?_0xae304d(0x1ca):_0x467ee1:_0x235a12[_0x13729d]=_0x467ee1;}return _0x235a12;}export async function reportCommandTrace(_0x1a6e17){const _0x483baf=a265_0x46d1;try{const _0x9e3f10=sanitizeFlags(_0x1a6e17[_0x483baf(0x1d0)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x1a6e17['service'],'command.name':_0x1a6e17['command'],'command.flags':JSON[_0x483baf(0x1c4)](_0x9e3f10),..._0x1a6e17[_0x483baf(0x1c6)]!=null?{'command.duration_ms':_0x1a6e17[_0x483baf(0x1c6)]}:{},..._0x1a6e17[_0x483baf(0x1c2)]?{'command.error':_0x1a6e17[_0x483baf(0x1c2)]instanceof Error?_0x1a6e17[_0x483baf(0x1c2)][_0x483baf(0x1cf)]:String(_0x1a6e17[_0x483baf(0x1c2)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x45db18,_0x54d348){var _0x40223a=a266_0x3370,_0x503ae0=_0x45db18();while(!![]){try{var _0x4c6ce2=-parseInt(_0x40223a(0x1d7))/0x1*(parseInt(_0x40223a(0x1d6))/0x2)+parseInt(_0x40223a(0x1d3))/0x3+-parseInt(_0x40223a(0x1de))/0x4*(parseInt(_0x40223a(0x1d5))/0x5)+-parseInt(_0x40223a(0x1d4))/0x6+parseInt(_0x40223a(0x1d1))/0x7*(-parseInt(_0x40223a(0x1dd))/0x8)+parseInt(_0x40223a(0x1d0))/0x9+-parseInt(_0x40223a(0x1d8))/0xa*(-parseInt(_0x40223a(0x1dc))/0xb);if(_0x4c6ce2===_0x54d348)break;else _0x503ae0['push'](_0x503ae0['shift']());}catch(_0x2ef685){_0x503ae0['push'](_0x503ae0['shift']());}}}(a266_0x41ac,0xb3a75));function a266_0x41ac(){var _0x40819d=['2632ztkuuF','4wQagSf','646335EDSMTS','19243jdESUp','cli.help','1983531UqQzNu','1350582qwMAxG','6759615IVsxkP','102056idRitp','12pjeOPJ','7460HnzazB','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','error','45661AEIZTR'];a266_0x41ac=function(){return _0x40819d;};return a266_0x41ac();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a266_0x3370(_0x15766c,_0x4d854d){_0x15766c=_0x15766c-0x1d0;var _0x41ac9e=a266_0x41ac();var _0x3370cb=_0x41ac9e[_0x15766c];return _0x3370cb;}export async function reportCliHelpTrace(_0x33d7af,_0x7f646a){var _0x23f8d1=a266_0x3370;try{await sendCliTraceLog({'spanName':_0x23f8d1(0x1d2),'logData':{'rabetbase.help.kind':_0x33d7af,..._0x7f646a?.['service']&&{'rabetbase.help.service':_0x7f646a[_0x23f8d1(0x1da)]}}});}catch(_0x140464){console[_0x23f8d1(0x1db)](_0x23f8d1(0x1d9),_0x140464);}}
1
+ function a266_0x2233(_0xbe7f0,_0x1f6bde){_0xbe7f0=_0xbe7f0-0xae;var _0x3b9191=a266_0x3b91();var _0x223304=_0x3b9191[_0xbe7f0];return _0x223304;}(function(_0x23b5c6,_0x35e2b3){var _0x245956=a266_0x2233,_0x59e8b2=_0x23b5c6();while(!![]){try{var _0x392790=-parseInt(_0x245956(0xb5))/0x1+parseInt(_0x245956(0xaf))/0x2+-parseInt(_0x245956(0xae))/0x3*(-parseInt(_0x245956(0xb3))/0x4)+-parseInt(_0x245956(0xb2))/0x5+parseInt(_0x245956(0xb4))/0x6*(-parseInt(_0x245956(0xb8))/0x7)+-parseInt(_0x245956(0xb1))/0x8+parseInt(_0x245956(0xb0))/0x9;if(_0x392790===_0x35e2b3)break;else _0x59e8b2['push'](_0x59e8b2['shift']());}catch(_0x5e0de6){_0x59e8b2['push'](_0x59e8b2['shift']());}}}(a266_0x3b91,0x76f34));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x327ac3,_0x3a5001){var _0x530a03=a266_0x2233;try{await sendCliTraceLog({'spanName':_0x530a03(0xb6),'logData':{'rabetbase.help.kind':_0x327ac3,..._0x3a5001?.[_0x530a03(0xb7)]&&{'rabetbase.help.service':_0x3a5001[_0x530a03(0xb7)]}}});}catch(_0x238bcb){console['error']('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x238bcb);}}function a266_0x3b91(){var _0x274608=['36hQNDLa','12pRkyaW','745899sfNrrQ','cli.help','service','45514LqpdFZ','187134PmnLaB','1802776tEUpSs','6564060CjbwDv','1534016CRJKxZ','3771275YFXePQ'];a266_0x3b91=function(){return _0x274608;};return a266_0x3b91();}
@@ -1 +1 @@
1
- (function(_0x4b87c3,_0x57aeb9){const _0x32bc17=a267_0x3336,_0x5dd07f=_0x4b87c3();while(!![]){try{const _0x12ca30=-parseInt(_0x32bc17(0x89))/0x1+-parseInt(_0x32bc17(0x93))/0x2+-parseInt(_0x32bc17(0x8c))/0x3*(-parseInt(_0x32bc17(0x97))/0x4)+parseInt(_0x32bc17(0x8d))/0x5+-parseInt(_0x32bc17(0x94))/0x6+-parseInt(_0x32bc17(0x96))/0x7*(-parseInt(_0x32bc17(0x90))/0x8)+parseInt(_0x32bc17(0x87))/0x9;if(_0x12ca30===_0x57aeb9)break;else _0x5dd07f['push'](_0x5dd07f['shift']());}catch(_0x3fd28c){_0x5dd07f['push'](_0x5dd07f['shift']());}}}(a267_0x5840,0x87acd));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 a267_0x3336(_0x49851f,_0x3476d9){_0x49851f=_0x49851f-0x87;const _0x5840ec=a267_0x5840();let _0x33361a=_0x5840ec[_0x49851f];return _0x33361a;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a267_0x5840(){const _0xa96f04=['daily','98etMOSp','4MmApDh','14883444YccueJ','tenant_code','81752UZnAde','username','production','302793RPCXOG','539445SPtlYu','user','email','47904bqMpXF','tenant','unknown','961530RICrxE','4968756YondcZ'];a267_0x5840=function(){return _0xa96f04;};return a267_0x5840();}export async function ensureCliOtelTraceConfig(){const _0x5e9155=a267_0x3336,_0x2b1914=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3e01ba=_0x2b1914?.[_0x5e9155(0x8e)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5e9155(0x92)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5e9155(0x95):_0x5e9155(0x8b))}),setUserContext({'id':_0x3e01ba?.['id'],'username':_0x3e01ba?.[_0x5e9155(0x8a)],'nickname':_0x3e01ba?.['nickname'],'email':_0x3e01ba?.[_0x5e9155(0x8f)],'tenantCode':_0x3e01ba?.[_0x5e9155(0x91)]?.[_0x5e9155(0x88)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2b1914;}
1
+ (function(_0x580b2d,_0x52c0eb){const _0x50ec81=a267_0x2645,_0x44de9d=_0x580b2d();while(!![]){try{const _0x28946b=parseInt(_0x50ec81(0x171))/0x1*(parseInt(_0x50ec81(0x173))/0x2)+-parseInt(_0x50ec81(0x179))/0x3+parseInt(_0x50ec81(0x177))/0x4+-parseInt(_0x50ec81(0x17b))/0x5*(-parseInt(_0x50ec81(0x170))/0x6)+-parseInt(_0x50ec81(0x172))/0x7+-parseInt(_0x50ec81(0x17c))/0x8*(parseInt(_0x50ec81(0x175))/0x9)+parseInt(_0x50ec81(0x17e))/0xa;if(_0x28946b===_0x52c0eb)break;else _0x44de9d['push'](_0x44de9d['shift']());}catch(_0x2f8fd0){_0x44de9d['push'](_0x44de9d['shift']());}}}(a267_0x1441,0x75e2c));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 a267_0x1441(){const _0x3b8901=['1107PVClJL','username','1193404fbYzut','daily','2858547azNRAN','email','4595Xogsgk','37096RTDHFC','tenant','15497170uqVqHv','production','unknown','1158wqrarJ','539254khhGcD','3910403ezkGMS','2nKUQoH','tenant_code'];a267_0x1441=function(){return _0x3b8901;};return a267_0x1441();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a267_0x2645(_0x229704,_0x540b32){_0x229704=_0x229704-0x170;const _0x1441d1=a267_0x1441();let _0x26457d=_0x1441d1[_0x229704];return _0x26457d;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2c26fb=a267_0x2645,_0x2002ea=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x509da2=_0x2002ea?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2c26fb(0x180)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2c26fb(0x178):_0x2c26fb(0x17f))}),setUserContext({'id':_0x509da2?.['id'],'username':_0x509da2?.[_0x2c26fb(0x176)],'nickname':_0x509da2?.['nickname'],'email':_0x509da2?.[_0x2c26fb(0x17a)],'tenantCode':_0x509da2?.[_0x2c26fb(0x17d)]?.[_0x2c26fb(0x174)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2002ea;}
@@ -1 +1 @@
1
- (function(_0x1bba21,_0xb15dcc){const _0x4f888d=a268_0x5bd6,_0x482599=_0x1bba21();while(!![]){try{const _0x22ff35=parseInt(_0x4f888d(0xd9))/0x1*(parseInt(_0x4f888d(0xcf))/0x2)+-parseInt(_0x4f888d(0xd1))/0x3*(parseInt(_0x4f888d(0xd0))/0x4)+-parseInt(_0x4f888d(0xd8))/0x5*(-parseInt(_0x4f888d(0xd2))/0x6)+parseInt(_0x4f888d(0xcd))/0x7+-parseInt(_0x4f888d(0xda))/0x8+parseInt(_0x4f888d(0xd4))/0x9+-parseInt(_0x4f888d(0xd6))/0xa;if(_0x22ff35===_0xb15dcc)break;else _0x482599['push'](_0x482599['shift']());}catch(_0x250b42){_0x482599['push'](_0x482599['shift']());}}}(a268_0x1443,0xaf650));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 a268_0x5bd6(_0x4a0930,_0x48cdb2){_0x4a0930=_0x4a0930-0xcc;const _0x144366=a268_0x1443();let _0x5bd6d5=_0x144366[_0x4a0930];return _0x5bd6d5;}export function registerOtelShutdownOnExit(){const _0x52e0bf=a268_0x5bd6;process[_0x52e0bf(0xce)](_0x52e0bf(0xcc),()=>{void flushOtelNodeIfUsed();});const _0x1cafef=()=>{const _0xec668=_0x52e0bf;void flushOtelNodeIfUsed()[_0xec668(0xd7)](()=>process[_0xec668(0xd3)](0x0));};process[_0x52e0bf(0xce)]('SIGINT',_0x1cafef),process['once'](_0x52e0bf(0xd5),_0x1cafef);}function a268_0x1443(){const _0xe91591=['beforeExit','2637446bSjGKo','once','2LkHwdH','1958644OiDAoz','3Iawyyl','1700310lMKVjC','exit','5713884cJdCxR','SIGTERM','18584620ByuRtx','then','15HosQqi','1368773XDVwab','1312344RHoVch'];a268_0x1443=function(){return _0xe91591;};return a268_0x1443();}export async function exitWithOtelShutdown(_0x4a8aa0){const _0x543caa=a268_0x5bd6;await flushOtelNodeIfUsed(),process[_0x543caa(0xd3)](_0x4a8aa0);}
1
+ (function(_0x2d0580,_0x51254a){const _0x1a359d=a268_0x3678,_0x42bf67=_0x2d0580();while(!![]){try{const _0x1435b7=-parseInt(_0x1a359d(0xc1))/0x1+-parseInt(_0x1a359d(0xce))/0x2+-parseInt(_0x1a359d(0xcf))/0x3+parseInt(_0x1a359d(0xcd))/0x4*(parseInt(_0x1a359d(0xc4))/0x5)+parseInt(_0x1a359d(0xc2))/0x6*(parseInt(_0x1a359d(0xca))/0x7)+-parseInt(_0x1a359d(0xcc))/0x8+parseInt(_0x1a359d(0xcb))/0x9*(parseInt(_0x1a359d(0xc7))/0xa);if(_0x1435b7===_0x51254a)break;else _0x42bf67['push'](_0x42bf67['shift']());}catch(_0x269495){_0x42bf67['push'](_0x42bf67['shift']());}}}(a268_0x2650,0xd90c2));function a268_0x3678(_0x38fd17,_0x9f2d24){_0x38fd17=_0x38fd17-0xc1;const _0x2650c0=a268_0x2650();let _0x3678f5=_0x2650c0[_0x38fd17];return _0x3678f5;}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 a268_0x2650(){const _0xb24034=['105Eqofab','9nujaZf','5964344TtgDnw','2189228SfOhHG','610420pbByfD','1842543csMSja','253796BOTYkg','413970MROITf','SIGTERM','10tadlDE','then','once','6782170eMNUzS','SIGINT','exit'];a268_0x2650=function(){return _0xb24034;};return a268_0x2650();}export function registerOtelShutdownOnExit(){const _0xe20d2d=a268_0x3678;process[_0xe20d2d(0xc6)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x42b576=()=>{const _0x23c0a1=_0xe20d2d;void flushOtelNodeIfUsed()[_0x23c0a1(0xc5)](()=>process[_0x23c0a1(0xc9)](0x0));};process[_0xe20d2d(0xc6)](_0xe20d2d(0xc8),_0x42b576),process[_0xe20d2d(0xc6)](_0xe20d2d(0xc3),_0x42b576);}export async function exitWithOtelShutdown(_0x45d5e2){const _0x4f0384=a268_0x3678;await flushOtelNodeIfUsed(),process[_0x4f0384(0xc9)](_0x45d5e2);}
@@ -1 +1 @@
1
- const a269_0x2198b6=a269_0x2af4;function a269_0x544c(){const _0x45573f=['7964883wDkeFC','9345nxxVwm','version','3821600nKEVPG','7138145MVivSf','142YJHKBh','6vnpJPC','rabetbase-cli','19790UXAnyx','spanName','930268JJzIMY','64LeIdJz','traceName','manual','logData','707624SDRYVQ','traceparent'];a269_0x544c=function(){return _0x45573f;};return a269_0x544c();}(function(_0x37c999,_0x245b30){const _0x5583f3=a269_0x2af4,_0x409301=_0x37c999();while(!![]){try{const _0x1bef0d=-parseInt(_0x5583f3(0x1f7))/0x1+parseInt(_0x5583f3(0x1f2))/0x2*(parseInt(_0x5583f3(0x1ee))/0x3)+parseInt(_0x5583f3(0x1f8))/0x4*(-parseInt(_0x5583f3(0x1f5))/0x5)+parseInt(_0x5583f3(0x1f3))/0x6*(parseInt(_0x5583f3(0x1f1))/0x7)+-parseInt(_0x5583f3(0x1eb))/0x8+parseInt(_0x5583f3(0x1ed))/0x9+-parseInt(_0x5583f3(0x1f0))/0xa;if(_0x1bef0d===_0x245b30)break;else _0x409301['push'](_0x409301['shift']());}catch(_0x2b30a6){_0x409301['push'](_0x409301['shift']());}}}(a269_0x544c,0xa18ae));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=a269_0x2198b6(0x1f4);function a269_0x2af4(_0x544450,_0x2730dd){_0x544450=_0x544450-0x1eb;const _0x544c7c=a269_0x544c();let _0x2af496=_0x544c7c[_0x544450];return _0x2af496;}export async function sendCliTraceLog(_0x183abc){const _0x57348f=a269_0x2198b6;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x183abc[_0x57348f(0x1f9)]??DEFAULT_TRACE_NAME,'version':_0x183abc[_0x57348f(0x1ef)]??getCliVersion(),'spanName':_0x183abc[_0x57348f(0x1f6)],'eventType':_0x57348f(0x1fa),'logData':_0x183abc[_0x57348f(0x1fb)],..._0x183abc['traceparent']&&{'traceparent':_0x183abc[_0x57348f(0x1ec)]}});}
1
+ const a269_0x33bf87=a269_0x46ba;(function(_0x19180d,_0x438f23){const _0x34a9cb=a269_0x46ba,_0x368db1=_0x19180d();while(!![]){try{const _0x4d8902=-parseInt(_0x34a9cb(0xeb))/0x1*(-parseInt(_0x34a9cb(0xef))/0x2)+-parseInt(_0x34a9cb(0xed))/0x3*(parseInt(_0x34a9cb(0xf0))/0x4)+parseInt(_0x34a9cb(0xf6))/0x5*(-parseInt(_0x34a9cb(0xf5))/0x6)+-parseInt(_0x34a9cb(0xf8))/0x7*(parseInt(_0x34a9cb(0xee))/0x8)+parseInt(_0x34a9cb(0xf4))/0x9+parseInt(_0x34a9cb(0xec))/0xa+-parseInt(_0x34a9cb(0xf3))/0xb*(-parseInt(_0x34a9cb(0xf2))/0xc);if(_0x4d8902===_0x438f23)break;else _0x368db1['push'](_0x368db1['shift']());}catch(_0x1b9440){_0x368db1['push'](_0x368db1['shift']());}}}(a269_0x47d0,0xc2302));import{sendTraceLog}from'@lovrabet/otel-logger';function a269_0x46ba(_0x509676,_0x5c476a){_0x509676=_0x509676-0xe9;const _0x47d06c=a269_0x47d0();let _0x46ba97=_0x47d06c[_0x509676];return _0x46ba97;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a269_0x47d0(){const _0x115ae3=['rabetbase-cli','1281KklNfO','version','spanName','355363sygmCT','7172640KlPDEX','2062209AdtpHi','57800yFxrkB','2huwlRs','4CFTxBC','traceparent','302148yrbGBe','253CrSPGM','10404504qjWejr','1212wNGenk','70aeXXtW'];a269_0x47d0=function(){return _0x115ae3;};return a269_0x47d0();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a269_0x33bf87(0xf7);export async function sendCliTraceLog(_0x1c2d59){const _0x2b4a4c=a269_0x33bf87;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x1c2d59['traceName']??DEFAULT_TRACE_NAME,'version':_0x1c2d59[_0x2b4a4c(0xe9)]??getCliVersion(),'spanName':_0x1c2d59[_0x2b4a4c(0xea)],'eventType':'manual','logData':_0x1c2d59['logData'],..._0x1c2d59[_0x2b4a4c(0xf1)]&&{'traceparent':_0x1c2d59[_0x2b4a4c(0xf1)]}});}
@@ -1 +1 @@
1
- const a270_0x2ae8ce=a270_0x4ef6;(function(_0xe97320,_0x257f92){const _0x4a30d0=a270_0x4ef6,_0x313b3f=_0xe97320();while(!![]){try{const _0xeb401c=-parseInt(_0x4a30d0(0xe7))/0x1+parseInt(_0x4a30d0(0xe8))/0x2*(parseInt(_0x4a30d0(0xf7))/0x3)+-parseInt(_0x4a30d0(0xf2))/0x4*(parseInt(_0x4a30d0(0xf5))/0x5)+-parseInt(_0x4a30d0(0xf0))/0x6+parseInt(_0x4a30d0(0xf4))/0x7*(parseInt(_0x4a30d0(0xe9))/0x8)+parseInt(_0x4a30d0(0xea))/0x9*(parseInt(_0x4a30d0(0xeb))/0xa)+parseInt(_0x4a30d0(0xe5))/0xb;if(_0xeb401c===_0x257f92)break;else _0x313b3f['push'](_0x313b3f['shift']());}catch(_0x2503ba){_0x313b3f['push'](_0x313b3f['shift']());}}}(a270_0x2b08,0x9da64));function a270_0x2b08(){const _0x4b4e07=['7442072LccERw','sanitize','993466rQLyeZ','1182JqXaeU','136RJxUKo','74880ocYVDm','600UJHaSY','issue.log.collect','redactionCount','description','redactionKinds','42522JQRaBX','join','118744kefkWZ','title','340732zJhPgc','65uHGQWY','originalBytes','147zvTLxC','truncated'];a270_0x2b08=function(){return _0x4b4e07;};return a270_0x2b08();}function a270_0x4ef6(_0x1123e8,_0x1114b6){_0x1123e8=_0x1123e8-0xe4;const _0x2b085d=a270_0x2b08();let _0x4ef654=_0x2b085d[_0x1123e8];return _0x4ef654;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a270_0x2ae8ce(0xec);export async function sendPlatformIssueCollectLog(_0x584712){const _0x443c4e=a270_0x2ae8ce;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x584712[_0x443c4e(0xf3)],'issue.description':_0x584712[_0x443c4e(0xee)],..._0x584712[_0x443c4e(0xe6)]?{'issue.description_original_bytes':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xf6)],'issue.description_truncated':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xe4)],'issue.description_redactions':_0x584712['sanitize'][_0x443c4e(0xed)],'issue.description_redaction_kinds':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xef)][_0x443c4e(0xf1)](',')}:{}}});}
1
+ function a270_0x361f(_0x1271e1,_0x3a2ace){_0x1271e1=_0x1271e1-0x146;const _0x425a82=a270_0x425a();let _0x361f43=_0x425a82[_0x1271e1];return _0x361f43;}const a270_0x48757b=a270_0x361f;(function(_0x1041f9,_0x5c8ecf){const _0x1d07d8=a270_0x361f,_0x33771e=_0x1041f9();while(!![]){try{const _0x25c730=-parseInt(_0x1d07d8(0x155))/0x1+-parseInt(_0x1d07d8(0x14f))/0x2+-parseInt(_0x1d07d8(0x148))/0x3*(-parseInt(_0x1d07d8(0x152))/0x4)+parseInt(_0x1d07d8(0x14b))/0x5+parseInt(_0x1d07d8(0x154))/0x6*(parseInt(_0x1d07d8(0x147))/0x7)+parseInt(_0x1d07d8(0x151))/0x8+parseInt(_0x1d07d8(0x150))/0x9*(-parseInt(_0x1d07d8(0x149))/0xa);if(_0x25c730===_0x5c8ecf)break;else _0x33771e['push'](_0x33771e['shift']());}catch(_0x22040b){_0x33771e['push'](_0x33771e['shift']());}}}(a270_0x425a,0xdcf00));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a270_0x48757b(0x146);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a270_0x425a(){const _0x217e53=['9276939lzUmfa','67216PzBcoq','4MfBoIz','sanitize','6vHRaNF','1091539vEqwoV','platform-issue-log-collect','11940922HuHQnO','4605783vekVuS','10KObsmd','redactionCount','5000350moOudS','redactionKinds','title','originalBytes','2444618vDuMeI'];a270_0x425a=function(){return _0x217e53;};return a270_0x425a();}export async function sendPlatformIssueCollectLog(_0x1c8c19){const _0xbc28cd=a270_0x48757b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1c8c19[_0xbc28cd(0x14d)],'issue.description':_0x1c8c19['description'],..._0x1c8c19[_0xbc28cd(0x153)]?{'issue.description_original_bytes':_0x1c8c19[_0xbc28cd(0x153)][_0xbc28cd(0x14e)],'issue.description_truncated':_0x1c8c19[_0xbc28cd(0x153)]['truncated'],'issue.description_redactions':_0x1c8c19[_0xbc28cd(0x153)][_0xbc28cd(0x14a)],'issue.description_redaction_kinds':_0x1c8c19[_0xbc28cd(0x153)][_0xbc28cd(0x14c)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- function a272_0x1d25(_0x942cc4,_0x58207b){_0x942cc4=_0x942cc4-0x98;const _0x22c760=a272_0x22c7();let _0x1d2503=_0x22c760[_0x942cc4];return _0x1d2503;}const a272_0x55eafd=a272_0x1d25;function a272_0x22c7(){const _0x15f66a=['681014QhYDKo','Windsurf\x20IDE','SKILL.md.tpl','Claude\x20Code','9gBHoFJ','3265586UPTFBf','OpenCode\x20IDE','opencode','.trae','5139536DPnmrz','.codex','.cursorrules','5751697LvHYGG','codex','.claude/skills/lovrabet/SKILL.md','25000gFDGnF','file','Trae\x20IDE','.opencode','cline','trae','CodeBuddy','.agent','.qoder/rules/rabetbase.md','.codebuddy','.codebuddy/skills/lovrabet/SKILL.md','444TFFHDB','Trae','Antigravity\x20IDE','codebuddy','3667191AIYqMa','.qoder','.codex/skills/lovrabet/SKILL.md','.claude','cursor','OpenCode','通用模板\x20-\x20兜底方案','Qoder','Codex\x20IDE','claude','Antigravity','其他\x20(通用模板)','.windsurf','windsurf','Codex','.opencode/skills/lovrabet/SKILL.md','Qoder\x20IDE','57555KrZYeG','.cline/skills/lovrabet/SKILL.md','qoder','.agent/skills/lovrabet/SKILL.md'];a272_0x22c7=function(){return _0x15f66a;};return a272_0x22c7();}(function(_0x3ea94d,_0x133c9a){const _0x1398dd=a272_0x1d25,_0x1da889=_0x3ea94d();while(!![]){try{const _0x25005d=parseInt(_0x1398dd(0x98))/0x1+-parseInt(_0x1398dd(0x9d))/0x2+parseInt(_0x1398dd(0xb6))/0x3+parseInt(_0x1398dd(0xa7))/0x4+parseInt(_0x1398dd(0xc7))/0x5*(-parseInt(_0x1398dd(0xb2))/0x6)+parseInt(_0x1398dd(0xa4))/0x7+-parseInt(_0x1398dd(0xa1))/0x8*(-parseInt(_0x1398dd(0x9c))/0x9);if(_0x25005d===_0x133c9a)break;else _0x1da889['push'](_0x1da889['shift']());}catch(_0x36c72a){_0x1da889['push'](_0x1da889['shift']());}}}(a272_0x22c7,0xd914f));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a272_0x55eafd(0xa3),'.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a272_0x55eafd(0x9a)}]},'windsurf':{'name':'Windsurf','description':a272_0x55eafd(0x99),'folders':[a272_0x55eafd(0xc2)],'files':[{'type':a272_0x55eafd(0xa8),'path':'.windsurf/workflows/rabetbase.md','template':a272_0x55eafd(0x9a)}]},'claude':{'name':'Claude\x20Code','description':a272_0x55eafd(0x9b),'folders':[a272_0x55eafd(0xb9)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xa6),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xc8),'template':'SKILL.md.tpl'}]},'codex':{'name':a272_0x55eafd(0xc4),'description':a272_0x55eafd(0xbe),'folders':[a272_0x55eafd(0xa2)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xb8),'template':a272_0x55eafd(0x9a)}]},'opencode':{'name':a272_0x55eafd(0xbb),'description':a272_0x55eafd(0x9e),'folders':[a272_0x55eafd(0xaa)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xc5),'template':a272_0x55eafd(0x9a)}]},'qoder':{'name':a272_0x55eafd(0xbd),'description':a272_0x55eafd(0xc6),'folders':[a272_0x55eafd(0xb7)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xaf),'template':a272_0x55eafd(0x9a)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a272_0x55eafd(0x9a)}]},'codebuddy':{'name':a272_0x55eafd(0xad),'description':'CodeBuddy\x20IDE','folders':[a272_0x55eafd(0xb0)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xb1),'template':a272_0x55eafd(0x9a)}]},'trae':{'name':a272_0x55eafd(0xb3),'description':a272_0x55eafd(0xa9),'folders':[a272_0x55eafd(0xa0)],'files':[{'type':a272_0x55eafd(0xa8),'path':'.trae/skills/lovrabet/SKILL.md','template':a272_0x55eafd(0x9a)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a272_0x55eafd(0xc1),'description':a272_0x55eafd(0xbc),'folders':[a272_0x55eafd(0xae)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xca),'template':a272_0x55eafd(0x9a)}]},'antigravity':{'name':a272_0x55eafd(0xc0),'description':a272_0x55eafd(0xb4),'folders':['.agent'],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xca),'template':a272_0x55eafd(0x9a)}]}};export const CORE_IDE_LIST=[a272_0x55eafd(0xbf),a272_0x55eafd(0xab),'codebuddy',a272_0x55eafd(0xa5),'cursor','opencode',a272_0x55eafd(0xc9),'trae',a272_0x55eafd(0xc3)];export const IDE_LIST=['antigravity',a272_0x55eafd(0xbf),a272_0x55eafd(0xab),'codebuddy',a272_0x55eafd(0xa5),a272_0x55eafd(0xba),a272_0x55eafd(0x9f),a272_0x55eafd(0xc9),a272_0x55eafd(0xac),a272_0x55eafd(0xc3),'agent'];export const ALL_CORE_IDES=['cursor',a272_0x55eafd(0xc3),'claude',a272_0x55eafd(0xab),a272_0x55eafd(0xa5),a272_0x55eafd(0x9f),'qoder',a272_0x55eafd(0xb5),a272_0x55eafd(0xac)];
1
+ function a272_0x5bb3(){const _0x51d976=['SKILL.md.tpl','Windsurf\x20IDE','qoder','.codebuddy/skills/lovrabet/SKILL.md','.cursor','.claude/skills/lovrabet/SKILL.md','26224500yTliMB','windsurf','trae','47480ktSgDD','antigravity','claude','codebuddy','.cursorrules','65076oICcfx','812560AyNsAc','.agent','.cline','1683zcHzLY','.trae','cursor','通用模板\x20-\x20兜底方案','.opencode/skills/lovrabet/SKILL.md','cline','1326570VzpCew','Claude\x20Code','Windsurf','385ZpcEKQ','.cursor/skills/rabetbase.md','3MjeGcd','Cursor\x20IDE','Qoder','Trae\x20IDE','OpenCode','Codex','Qoder\x20IDE','.trae/skills/lovrabet/SKILL.md','Codex\x20IDE','.windsurf/workflows/rabetbase.md','.qoder/rules/rabetbase.md','codex','.opencode','OpenCode\x20IDE','9034648bWyTjG','Cursor','Antigravity','opencode','Cline','.codebuddy','CodeBuddy\x20IDE','file','4904628WftQtl','.codex','.codex/skills/lovrabet/SKILL.md','Antigravity\x20IDE'];a272_0x5bb3=function(){return _0x51d976;};return a272_0x5bb3();}function a272_0x1de8(_0x4275ee,_0xd24827){_0x4275ee=_0x4275ee-0x12e;const _0x5bb391=a272_0x5bb3();let _0x1de80d=_0x5bb391[_0x4275ee];return _0x1de80d;}const a272_0xa9f65d=a272_0x1de8;(function(_0x1a9bcb,_0x469e61){const _0x414ade=a272_0x1de8,_0x416bc2=_0x1a9bcb();while(!![]){try{const _0x423087=parseInt(_0x414ade(0x138))/0x1+-parseInt(_0x414ade(0x141))/0x2+parseInt(_0x414ade(0x146))/0x3*(parseInt(_0x414ade(0x15c))/0x4)+parseInt(_0x414ade(0x144))/0x5*(-parseInt(_0x414ade(0x137))/0x6)+-parseInt(_0x414ade(0x154))/0x7+parseInt(_0x414ade(0x132))/0x8*(-parseInt(_0x414ade(0x13b))/0x9)+parseInt(_0x414ade(0x12f))/0xa;if(_0x423087===_0x469e61)break;else _0x416bc2['push'](_0x416bc2['shift']());}catch(_0x465dae){_0x416bc2['push'](_0x416bc2['shift']());}}}(a272_0x5bb3,0xba177));export const CORE_IDE_CONFIGS={'cursor':{'name':a272_0xa9f65d(0x155),'description':a272_0xa9f65d(0x147),'folders':[a272_0xa9f65d(0x136),a272_0xa9f65d(0x164)],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x145),'template':a272_0xa9f65d(0x160)}]},'windsurf':{'name':a272_0xa9f65d(0x143),'description':a272_0xa9f65d(0x161),'folders':['.windsurf'],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x14f),'template':a272_0xa9f65d(0x160)}]},'claude':{'name':a272_0xa9f65d(0x142),'description':a272_0xa9f65d(0x142),'folders':['.claude'],'files':[{'type':'file','path':a272_0xa9f65d(0x12e),'template':a272_0xa9f65d(0x160)}]},'cline':{'name':a272_0xa9f65d(0x158),'description':'Cline\x20IDE','folders':[a272_0xa9f65d(0x13a)],'files':[{'type':a272_0xa9f65d(0x15b),'path':'.cline/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]},'codex':{'name':a272_0xa9f65d(0x14b),'description':a272_0xa9f65d(0x14e),'folders':[a272_0xa9f65d(0x15d)],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x15e),'template':a272_0xa9f65d(0x160)}]},'opencode':{'name':a272_0xa9f65d(0x14a),'description':a272_0xa9f65d(0x153),'folders':[a272_0xa9f65d(0x152)],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x13f),'template':a272_0xa9f65d(0x160)}]},'qoder':{'name':a272_0xa9f65d(0x148),'description':a272_0xa9f65d(0x14c),'folders':['.qoder'],'files':[{'type':a272_0xa9f65d(0x15b),'path':a272_0xa9f65d(0x150),'template':a272_0xa9f65d(0x160)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]},'codebuddy':{'name':'CodeBuddy','description':a272_0xa9f65d(0x15a),'folders':[a272_0xa9f65d(0x159)],'files':[{'type':'file','path':a272_0xa9f65d(0x163),'template':a272_0xa9f65d(0x160)}]},'trae':{'name':'Trae','description':a272_0xa9f65d(0x149),'folders':[a272_0xa9f65d(0x13c)],'files':[{'type':'file','path':a272_0xa9f65d(0x14d),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a272_0xa9f65d(0x13e),'folders':[a272_0xa9f65d(0x139)],'files':[{'type':a272_0xa9f65d(0x15b),'path':'.agent/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]},'antigravity':{'name':a272_0xa9f65d(0x156),'description':a272_0xa9f65d(0x15f),'folders':[a272_0xa9f65d(0x139)],'files':[{'type':a272_0xa9f65d(0x15b),'path':'.agent/skills/lovrabet/SKILL.md','template':a272_0xa9f65d(0x160)}]}};export const CORE_IDE_LIST=[a272_0xa9f65d(0x134),a272_0xa9f65d(0x140),'codebuddy',a272_0xa9f65d(0x151),a272_0xa9f65d(0x13d),a272_0xa9f65d(0x157),a272_0xa9f65d(0x162),a272_0xa9f65d(0x131),a272_0xa9f65d(0x130)];export const IDE_LIST=[a272_0xa9f65d(0x133),'claude',a272_0xa9f65d(0x140),a272_0xa9f65d(0x135),a272_0xa9f65d(0x151),a272_0xa9f65d(0x13d),a272_0xa9f65d(0x157),a272_0xa9f65d(0x162),'trae',a272_0xa9f65d(0x130),'agent'];export const ALL_CORE_IDES=[a272_0xa9f65d(0x13d),a272_0xa9f65d(0x130),'claude',a272_0xa9f65d(0x140),a272_0xa9f65d(0x151),'opencode',a272_0xa9f65d(0x162),'codebuddy',a272_0xa9f65d(0x131)];
@@ -1 +1 @@
1
- (function(_0x2aba44,_0x43ba46){const _0x344249=a273_0x5651,_0x574f3d=_0x2aba44();while(!![]){try{const _0x3893ab=parseInt(_0x344249(0x167))/0x1*(-parseInt(_0x344249(0x16f))/0x2)+-parseInt(_0x344249(0x166))/0x3+-parseInt(_0x344249(0x168))/0x4+parseInt(_0x344249(0x169))/0x5+-parseInt(_0x344249(0x16d))/0x6*(-parseInt(_0x344249(0x16e))/0x7)+parseInt(_0x344249(0x16b))/0x8+-parseInt(_0x344249(0x16c))/0x9*(parseInt(_0x344249(0x16a))/0xa);if(_0x3893ab===_0x43ba46)break;else _0x574f3d['push'](_0x574f3d['shift']());}catch(_0x3f677d){_0x574f3d['push'](_0x574f3d['shift']());}}}(a273_0x36d4,0xbf03a));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a273_0x5651(_0x12f356,_0x24eb48){_0x12f356=_0x12f356-0x166;const _0x36d47e=a273_0x36d4();let _0x5651af=_0x36d47e[_0x12f356];return _0x5651af;}function a273_0x36d4(){const _0x6886b2=['25822kvTcJY','2272326vhgQcH','23iHpdEB','2997404VLlzqM','4358770YTbNGG','9190CcMVkm','11867376DqcpFj','1611ehdaMf','474558ctEqEi','35MjvWRk'];a273_0x36d4=function(){return _0x6886b2;};return a273_0x36d4();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x469e98,_0x4ea2ec){const _0x3058cd=a273_0x2d6c,_0x82e39=_0x469e98();while(!![]){try{const _0x1361dc=parseInt(_0x3058cd(0xf0))/0x1*(-parseInt(_0x3058cd(0xea))/0x2)+-parseInt(_0x3058cd(0xeb))/0x3+-parseInt(_0x3058cd(0xee))/0x4+-parseInt(_0x3058cd(0xed))/0x5*(parseInt(_0x3058cd(0xef))/0x6)+parseInt(_0x3058cd(0xec))/0x7+-parseInt(_0x3058cd(0xe9))/0x8+parseInt(_0x3058cd(0xe8))/0x9;if(_0x1361dc===_0x4ea2ec)break;else _0x82e39['push'](_0x82e39['shift']());}catch(_0x4f8d02){_0x82e39['push'](_0x82e39['shift']());}}}(a273_0x5da2,0x5a2b0));function a273_0x5da2(){const _0x3d9e33=['1245204nygKlw','4044042MjRsGR','312101eCsXmo','22502628wIYjYk','4017488LPjmaQ','4aAQPpX','1518009MzTWBG','3407145fqfOzF','5ILjRZQ'];a273_0x5da2=function(){return _0x3d9e33;};return a273_0x5da2();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a273_0x2d6c(_0x42d95d,_0x8336a1){_0x42d95d=_0x42d95d-0xe8;const _0x5da22b=a273_0x5da2();let _0x2d6c60=_0x5da22b[_0x42d95d];return _0x2d6c60;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x1183b2,_0x2835f7){const _0x3b8908=a274_0x35ec,_0x2f0551=_0x1183b2();while(!![]){try{const _0x380488=-parseInt(_0x3b8908(0x16b))/0x1*(parseInt(_0x3b8908(0x176))/0x2)+-parseInt(_0x3b8908(0x16c))/0x3*(parseInt(_0x3b8908(0x169))/0x4)+parseInt(_0x3b8908(0x16d))/0x5*(-parseInt(_0x3b8908(0x175))/0x6)+parseInt(_0x3b8908(0x171))/0x7+parseInt(_0x3b8908(0x173))/0x8+-parseInt(_0x3b8908(0x172))/0x9*(parseInt(_0x3b8908(0x170))/0xa)+parseInt(_0x3b8908(0x16e))/0xb;if(_0x380488===_0x2835f7)break;else _0x2f0551['push'](_0x2f0551['shift']());}catch(_0x1a7dd0){_0x2f0551['push'](_0x2f0551['shift']());}}}(a274_0x1c30,0x6fcd0));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2d18e7=a274_0x35ec,_0x260936=getTemplateBaseUrl(),_0x50a079=[_0x260936+'/config.json',_0x260936+'/config/index.json'];for(const _0x2b2614 of _0x50a079){try{const _0xb6489b=await fetch(_0x2b2614,{'headers':{'Accept':'application/json'}});if(!_0xb6489b['ok'])continue;const _0x9c90ff=await _0xb6489b[_0x2d18e7(0x174)]();if(!_0x9c90ff[_0x2d18e7(0x16a)]?.[_0x2d18e7(0x177)]||!_0x9c90ff[_0x2d18e7(0x16f)]?.[_0x2d18e7(0x178)]?.[_0x2d18e7(0x177)])continue;return _0x9c90ff;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x145c91=Date['now']();if(hasCachedConfig){const _0x5a2372=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x145c91-cacheTime<_0x5a2372)return cachedConfig;}const _0x193d0f=await fetchCdnConfig();return cachedConfig=_0x193d0f,cacheTime=_0x145c91,hasCachedConfig=!![],_0x193d0f;}function a274_0x35ec(_0x987003,_0x2782cd){_0x987003=_0x987003-0x169;const _0x1c30d5=a274_0x1c30();let _0x35ec24=_0x1c30d5[_0x987003];return _0x35ec24;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a274_0x1c30(){const _0x24374f=['2292892dygyYd','cli','37846QFKxoe','3RtxFZl','893630TdVSkR','24276560PTCbTW','sdk','1990vbNLWu','1638490GXOlJK','29709eOxEAc','6272320GrCqTE','json','30eXYlse','34iEfXto','stableVersion','node'];a274_0x1c30=function(){return _0x24374f;};return a274_0x1c30();}
1
+ (function(_0x28fd22,_0x2a1e8b){const _0x1018f7=a274_0x1754,_0x4d5f23=_0x28fd22();while(!![]){try{const _0x29166e=-parseInt(_0x1018f7(0x10c))/0x1*(parseInt(_0x1018f7(0x118))/0x2)+-parseInt(_0x1018f7(0x115))/0x3*(parseInt(_0x1018f7(0x10d))/0x4)+parseInt(_0x1018f7(0x112))/0x5+parseInt(_0x1018f7(0x10e))/0x6+parseInt(_0x1018f7(0x114))/0x7+parseInt(_0x1018f7(0x111))/0x8+-parseInt(_0x1018f7(0x110))/0x9;if(_0x29166e===_0x2a1e8b)break;else _0x4d5f23['push'](_0x4d5f23['shift']());}catch(_0x39921c){_0x4d5f23['push'](_0x4d5f23['shift']());}}}(a274_0x5164,0x35e92));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x4b2b74=a274_0x1754,_0x156f9c=getTemplateBaseUrl(),_0x370b3e=[_0x156f9c+_0x4b2b74(0x119),_0x156f9c+'/config/index.json'];for(const _0x51161c of _0x370b3e){try{const _0x926f03=await fetch(_0x51161c,{'headers':{'Accept':'application/json'}});if(!_0x926f03['ok'])continue;const _0x555fb1=await _0x926f03[_0x4b2b74(0x116)]();if(!_0x555fb1[_0x4b2b74(0x117)]?.['stableVersion']||!_0x555fb1[_0x4b2b74(0x113)]?.['node']?.['stableVersion'])continue;return _0x555fb1;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a274_0x5164(){const _0x35e4ff=['8724kioBlV','1522776lZJzde','now','6754734UteFTM','2648688vhxKST','910615WCIvbG','sdk','2245201hZNlrD','150UMsyzo','json','cli','7354bufEJg','/config.json','2mBKClZ'];a274_0x5164=function(){return _0x35e4ff;};return a274_0x5164();}function a274_0x1754(_0x2a32d0,_0x4c25c2){_0x2a32d0=_0x2a32d0-0x10c;const _0x51649b=a274_0x5164();let _0x175412=_0x51649b[_0x2a32d0];return _0x175412;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x5c57bb=a274_0x1754,_0x3d5f07=Date[_0x5c57bb(0x10f)]();if(hasCachedConfig){const _0x81ab42=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3d5f07-cacheTime<_0x81ab42)return cachedConfig;}const _0xbdf779=await fetchCdnConfig();return cachedConfig=_0xbdf779,cacheTime=_0x3d5f07,hasCachedConfig=!![],_0xbdf779;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x5a53d9,_0x5f0f57){const _0x280de2=a275_0x4b9f,_0x4365d7=_0x5a53d9();while(!![]){try{const _0x5de073=-parseInt(_0x280de2(0x15a))/0x1*(-parseInt(_0x280de2(0x154))/0x2)+parseInt(_0x280de2(0x16a))/0x3*(-parseInt(_0x280de2(0x169))/0x4)+parseInt(_0x280de2(0x163))/0x5*(parseInt(_0x280de2(0x153))/0x6)+parseInt(_0x280de2(0x157))/0x7*(-parseInt(_0x280de2(0x167))/0x8)+parseInt(_0x280de2(0x16c))/0x9+-parseInt(_0x280de2(0x15d))/0xa+parseInt(_0x280de2(0x16b))/0xb*(parseInt(_0x280de2(0x152))/0xc);if(_0x5de073===_0x5f0f57)break;else _0x4365d7['push'](_0x4365d7['shift']());}catch(_0x18c9fe){_0x4365d7['push'](_0x4365d7['shift']());}}}(a275_0x5e37,0xa934e));import a275_0x50fc06 from'node:fs';function a275_0x4b9f(_0x59b6fb,_0x1435ae){_0x59b6fb=_0x59b6fb-0x14b;const _0x5e3709=a275_0x5e37();let _0x4b9f65=_0x5e3709[_0x59b6fb];return _0x4b9f65;}import a275_0x379cea from'node:path';import a275_0x398e26 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x536d53){const _0x5d6a52=a275_0x4b9f,_0x511250=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x511250[_0x5d6a52(0x151)](_0x4b3d3a=>_0x4b3d3a['test'](_0x536d53));}function getInstalledVersion(_0x112a83,_0x51b12b){const _0x4ad476=a275_0x4b9f;try{const _0x35378c=a275_0x379cea[_0x4ad476(0x164)](_0x112a83,'node_modules',_0x51b12b,_0x4ad476(0x16d));if(a275_0x50fc06[_0x4ad476(0x162)](_0x35378c)){const _0x1ed6c=JSON[_0x4ad476(0x14f)](a275_0x50fc06[_0x4ad476(0x168)](_0x35378c,_0x4ad476(0x15f)));return _0x1ed6c[_0x4ad476(0x15c)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5b7308=a275_0x4b9f;try{const _0xce69bc=await getCdnConfig();return _0xce69bc?.['sdk']?.['node']?.[_0x5b7308(0x150)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x26d20e=a275_0x4b9f;try{const _0x1d70ce=await getCdnConfig();return _0x1d70ce?.[_0x26d20e(0x15b)]?.[_0x26d20e(0x160)]?.[_0x26d20e(0x166)]||_0x26d20e(0x161);}catch{return _0x26d20e(0x161);}}export async function checkSdkVersion(_0x2770fe){const _0x3da271=a275_0x4b9f,_0x595108=a275_0x379cea[_0x3da271(0x164)](_0x2770fe,_0x3da271(0x16d)),[_0x5b9a19,_0x5731d2]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x3dacaf=_0x5b9a19||FALLBACK_MIN_SDK_VERSION;if(!a275_0x50fc06[_0x3da271(0x162)](_0x595108))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};try{const _0x1a71d6=JSON['parse'](a275_0x50fc06[_0x3da271(0x168)](_0x595108,_0x3da271(0x14d))),_0x44043e=_0x1a71d6[_0x3da271(0x14c)]||{},_0x23b651=_0x1a71d6['devDependencies']||{},_0x495c5a=_0x44043e[_0x5731d2]||_0x23b651[_0x5731d2];if(!_0x495c5a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};let _0x533c2d=getInstalledVersion(_0x2770fe,_0x5731d2);!_0x533c2d&&(_0x533c2d=_0x495c5a);if(isNonNumericVersion(_0x495c5a))return{'installed':!![],'version':_0x533c2d,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};const _0x228767=a275_0x398e26[_0x3da271(0x14e)](_0x533c2d),_0x345a57=a275_0x398e26[_0x3da271(0x14e)](_0x3dacaf),_0x32f8c3=_0x228767&&_0x345a57?a275_0x398e26['lt'](_0x228767,_0x345a57):![];return{'installed':!![],'version':_0x533c2d,'needsUpgrade':_0x32f8c3,'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};}}export function checkSdkVersionSync(_0x123b2e){const _0x2f06fa=a275_0x4b9f,_0x2ce886=a275_0x379cea[_0x2f06fa(0x164)](_0x123b2e,_0x2f06fa(0x16d)),_0x3b4e12=_0x2f06fa(0x161);if(!a275_0x50fc06[_0x2f06fa(0x162)](_0x2ce886))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};try{const _0x33c081=JSON['parse'](a275_0x50fc06[_0x2f06fa(0x168)](_0x2ce886,'utf8')),_0x543e42=_0x33c081['dependencies']||{},_0x3e00ec=_0x33c081[_0x2f06fa(0x158)]||{},_0x44e6c1=_0x543e42[_0x3b4e12]||_0x3e00ec[_0x3b4e12];if(!_0x44e6c1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};let _0x1eab96=getInstalledVersion(_0x123b2e,_0x3b4e12);!_0x1eab96&&(_0x1eab96=_0x44e6c1);if(isNonNumericVersion(_0x44e6c1))return{'installed':!![],'version':_0x1eab96,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};const _0x5db289=a275_0x398e26[_0x2f06fa(0x14e)](_0x1eab96),_0x3533c1=_0x5db289?a275_0x398e26['lt'](_0x5db289,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1eab96,'needsUpgrade':_0x3533c1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xea78f5){const _0x415e26=a275_0x4b9f;if(!_0xea78f5['needsUpgrade'])return;const _0x1457ba=_0x415e26(0x14b),_0x1cdeb7='\x1b[0m',_0x8971aa=_0x415e26(0x16e),_0xcaa107=_0xea78f5[_0x415e26(0x166)]||'@lovrabet/sdk',_0x1b5584=_0xea78f5[_0x415e26(0x150)]||_0xea78f5['minVersion'],_0x129128=_0x415e26(0x156)+_0xcaa107+'@'+(_0x1b5584||'latest');console[_0x415e26(0x15e)](),console[_0x415e26(0x15e)](''+_0x1457ba+_0x8971aa+'↪\x20SDK\x20update\x20available'+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x159)+_0xcaa107+'@'+_0xea78f5['version']+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x165)+_0x1b5584+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x155)+_0x129128+_0x1cdeb7),console[_0x415e26(0x15e)]();}function a275_0x5e37(){const _0x5878b7=['\x20\x20\x20Stable\x20version:\x20','packageName','8XjnbGR','readFileSync','52TABhbP','7749xOaHsG','11icLlXX','5380776YJCrhJ','package.json','\x1b[1m','\x1b[33m','dependencies','utf8','coerce','parse','stableVersion','some','7122468LQVATg','113154vRhkUG','2094LAEBsN','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','2574257nQeNkE','devDependencies','\x20\x20\x20Current\x20version:\x20','1075YlYHIS','sdk','version','12979640rSyMVl','log','utf-8','node','@lovrabet/sdk','existsSync','20XjSblT','join'];a275_0x5e37=function(){return _0x5878b7;};return a275_0x5e37();}
1
+ const a275_0x5485d9=a275_0x260d;(function(_0x482ea4,_0x4d7f79){const _0x15d165=a275_0x260d,_0x269e49=_0x482ea4();while(!![]){try{const _0x28835a=parseInt(_0x15d165(0xdc))/0x1*(parseInt(_0x15d165(0xbf))/0x2)+parseInt(_0x15d165(0xcb))/0x3*(parseInt(_0x15d165(0xc8))/0x4)+-parseInt(_0x15d165(0xd4))/0x5*(-parseInt(_0x15d165(0xba))/0x6)+-parseInt(_0x15d165(0xd1))/0x7*(-parseInt(_0x15d165(0xbe))/0x8)+-parseInt(_0x15d165(0xce))/0x9*(parseInt(_0x15d165(0xb9))/0xa)+parseInt(_0x15d165(0xc6))/0xb*(parseInt(_0x15d165(0xd2))/0xc)+-parseInt(_0x15d165(0xc7))/0xd;if(_0x28835a===_0x4d7f79)break;else _0x269e49['push'](_0x269e49['shift']());}catch(_0x48f755){_0x269e49['push'](_0x269e49['shift']());}}}(a275_0x11f3,0xc78cc));import a275_0x4f10b9 from'node:fs';import a275_0x175515 from'node:path';import a275_0x222740 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a275_0x5485d9(0xd9);function isNonNumericVersion(_0x547fc4){const _0x1b395d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1b395d['some'](_0x35ac8d=>_0x35ac8d['test'](_0x547fc4));}function getInstalledVersion(_0x5f5ca0,_0x2d8a81){const _0x54d18a=a275_0x5485d9;try{const _0x3a9bee=a275_0x175515['join'](_0x5f5ca0,_0x54d18a(0xc4),_0x2d8a81,_0x54d18a(0xc0));if(a275_0x4f10b9[_0x54d18a(0xc2)](_0x3a9bee)){const _0x1f5303=JSON['parse'](a275_0x4f10b9[_0x54d18a(0xc5)](_0x3a9bee,'utf-8'));return _0x1f5303[_0x54d18a(0xdb)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1ab9f0=a275_0x5485d9;try{const _0xe2c09b=await getCdnConfig();return _0xe2c09b?.['sdk']?.[_0x1ab9f0(0xcf)]?.[_0x1ab9f0(0xcd)]||null;}catch{return null;}}function a275_0x11f3(){const _0x13cdbc=['parse','@lovrabet/sdk','1.2.0','coerce','version','450913rduapv','minVersion','4990uNNSPW','1379022aukyTQ','devDependencies','join','\x20\x20\x20Current\x20version:\x20','8NqXcjv','2wTCcyK','package.json','latest','existsSync','↪\x20SDK\x20update\x20available','node_modules','readFileSync','88nwdivB','30879095fFfFBa','1852TYdJjV','log','\x1b[1m','8766CSCpqP','all','stableVersion','16074TbTXxu','node','packageName','10275167tYOtuF','873552yQiiHy','sdk','5lbAQhw','utf8','dependencies'];a275_0x11f3=function(){return _0x13cdbc;};return a275_0x11f3();}async function getSdkPackageName(){const _0x7f941d=a275_0x5485d9;try{const _0x422ccb=await getCdnConfig();return _0x422ccb?.[_0x7f941d(0xd3)]?.[_0x7f941d(0xcf)]?.[_0x7f941d(0xd0)]||_0x7f941d(0xd8);}catch{return _0x7f941d(0xd8);}}function a275_0x260d(_0x373a13,_0x4443a0){_0x373a13=_0x373a13-0xb8;const _0x11f360=a275_0x11f3();let _0x260d39=_0x11f360[_0x373a13];return _0x260d39;}export async function checkSdkVersion(_0x40c6f0){const _0x5d2a3a=a275_0x5485d9,_0x30e701=a275_0x175515[_0x5d2a3a(0xbc)](_0x40c6f0,_0x5d2a3a(0xc0)),[_0x53a3bf,_0xb2ac2b]=await Promise[_0x5d2a3a(0xcc)]([getSdkStableVersion(),getSdkPackageName()]),_0x3e4b2b=_0x53a3bf||FALLBACK_MIN_SDK_VERSION;if(!a275_0x4f10b9[_0x5d2a3a(0xc2)](_0x30e701))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};try{const _0x6cb1e0=JSON[_0x5d2a3a(0xd7)](a275_0x4f10b9[_0x5d2a3a(0xc5)](_0x30e701,_0x5d2a3a(0xd5))),_0x114d4e=_0x6cb1e0['dependencies']||{},_0x4f091a=_0x6cb1e0[_0x5d2a3a(0xbb)]||{},_0x55e5d6=_0x114d4e[_0xb2ac2b]||_0x4f091a[_0xb2ac2b];if(!_0x55e5d6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};let _0x24db3e=getInstalledVersion(_0x40c6f0,_0xb2ac2b);!_0x24db3e&&(_0x24db3e=_0x55e5d6);if(isNonNumericVersion(_0x55e5d6))return{'installed':!![],'version':_0x24db3e,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};const _0x84e1a6=a275_0x222740['coerce'](_0x24db3e),_0x255df5=a275_0x222740[_0x5d2a3a(0xda)](_0x3e4b2b),_0x2a9164=_0x84e1a6&&_0x255df5?a275_0x222740['lt'](_0x84e1a6,_0x255df5):![];return{'installed':!![],'version':_0x24db3e,'needsUpgrade':_0x2a9164,'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3e4b2b,'packageName':_0xb2ac2b,'stableVersion':_0x53a3bf};}}export function checkSdkVersionSync(_0x11d933){const _0x3f09da=a275_0x5485d9,_0x3c96b3=a275_0x175515[_0x3f09da(0xbc)](_0x11d933,_0x3f09da(0xc0)),_0xc12e41=_0x3f09da(0xd8);if(!a275_0x4f10b9[_0x3f09da(0xc2)](_0x3c96b3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};try{const _0x28a4de=JSON[_0x3f09da(0xd7)](a275_0x4f10b9['readFileSync'](_0x3c96b3,_0x3f09da(0xd5))),_0x336457=_0x28a4de[_0x3f09da(0xd6)]||{},_0x182cef=_0x28a4de[_0x3f09da(0xbb)]||{},_0x3364ea=_0x336457[_0xc12e41]||_0x182cef[_0xc12e41];if(!_0x3364ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};let _0x2ad9a9=getInstalledVersion(_0x11d933,_0xc12e41);!_0x2ad9a9&&(_0x2ad9a9=_0x3364ea);if(isNonNumericVersion(_0x3364ea))return{'installed':!![],'version':_0x2ad9a9,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};const _0x628e76=a275_0x222740[_0x3f09da(0xda)](_0x2ad9a9),_0x19015b=_0x628e76?a275_0x222740['lt'](_0x628e76,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2ad9a9,'needsUpgrade':_0x19015b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xc12e41,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x108fc5){const _0x371626=a275_0x5485d9;if(!_0x108fc5['needsUpgrade'])return;const _0x24f68e='\x1b[33m',_0x13d61e='\x1b[0m',_0x51941a=_0x371626(0xca),_0x7bdbd8=_0x108fc5[_0x371626(0xd0)]||'@lovrabet/sdk',_0x489397=_0x108fc5[_0x371626(0xcd)]||_0x108fc5[_0x371626(0xb8)],_0x50e5c3='npm\x20install\x20'+_0x7bdbd8+'@'+(_0x489397||_0x371626(0xc1));console[_0x371626(0xc9)](),console['log'](''+_0x24f68e+_0x51941a+_0x371626(0xc3)+_0x13d61e),console[_0x371626(0xc9)](_0x24f68e+_0x371626(0xbd)+_0x7bdbd8+'@'+_0x108fc5[_0x371626(0xdb)]+_0x13d61e),console[_0x371626(0xc9)](_0x24f68e+'\x20\x20\x20Stable\x20version:\x20'+_0x489397+_0x13d61e),console[_0x371626(0xc9)](_0x24f68e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x50e5c3+_0x13d61e),console[_0x371626(0xc9)]();}
@@ -1 +1 @@
1
- (function(_0x1077c1,_0x2d5fcb){const _0x15c6f4=a276_0x3490,_0x4744dc=_0x1077c1();while(!![]){try{const _0x420311=-parseInt(_0x15c6f4(0xfc))/0x1+parseInt(_0x15c6f4(0xe8))/0x2+-parseInt(_0x15c6f4(0xf8))/0x3+-parseInt(_0x15c6f4(0xe7))/0x4*(-parseInt(_0x15c6f4(0xf2))/0x5)+parseInt(_0x15c6f4(0xf3))/0x6*(parseInt(_0x15c6f4(0xf4))/0x7)+-parseInt(_0x15c6f4(0xf6))/0x8+-parseInt(_0x15c6f4(0xfd))/0x9*(-parseInt(_0x15c6f4(0xe3))/0xa);if(_0x420311===_0x2d5fcb)break;else _0x4744dc['push'](_0x4744dc['shift']());}catch(_0x4213bf){_0x4744dc['push'](_0x4744dc['shift']());}}}(a276_0x5907,0x3a716));import{readFileSync}from'node:fs';function a276_0x5907(){const _0x18c359=['coerce','170iJHOta','1.0.0','minimumVersionMessage','\x20\x20\x20','44poePbb','800664iJHUMr','utf-8','currentVersion','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','stableVersion','upgradeMessage','log','\x20\x20\x20Current\x20CLI\x20version:\x20','filter','100690JOvyWy','678BabetD','6440CzdlLe','minimumVersion','576536IJXyRd','version','754941HavWIh','package.json','validation','latest','390259eFPmvy','120465VxyqpX','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','belowMinimum','\x1b[1m','\x1b[33m'];a276_0x5907=function(){return _0x18c359;};return a276_0x5907();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a276_0x42ceb1 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a276_0x3490(_0x341023,_0x278430){_0x341023=_0x341023-0xde;const _0x5907dd=a276_0x5907();let _0x34904a=_0x5907dd[_0x341023];return _0x34904a;}export function getCliUpgradeCommand(_0x2e594b){const _0x3ecf3b=a276_0x3490,_0x276a77=_0x2e594b[_0x3ecf3b(0xed)]||_0x3ecf3b(0xfb);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x276a77;}function getCurrentCliVersion(){const _0xcfbd35=a276_0x3490;try{const _0x460b90=fileURLToPath(import.meta.url),_0x1e8164=resolve(dirname(_0x460b90),'../..'),_0x24257b=resolve(_0x1e8164,_0xcfbd35(0xf9)),_0x2af56b=JSON['parse'](readFileSync(_0x24257b,_0xcfbd35(0xe9)));return _0x2af56b[_0xcfbd35(0xf7)]||_0xcfbd35(0xe4);}catch{return _0xcfbd35(0xe4);}}export async function checkCliVersion(){const _0x374864=a276_0x3490,_0x3dd3c7=getCurrentCliVersion(),_0x582929=await getCliVersionPolicy(),_0x2a5c8e=_0x582929?.['stableVersion']||null,_0x2bec78=_0x582929?.['minimumVersion']||null;let _0x3ed75f=![],_0x3e74d1=![];const _0x5271a8=a276_0x42ceb1[_0x374864(0xe2)](_0x3dd3c7);if(_0x5271a8&&_0x2a5c8e)try{const _0x59c2e8=a276_0x42ceb1[_0x374864(0xe2)](_0x2a5c8e);if(_0x59c2e8)_0x3ed75f=a276_0x42ceb1['lt'](_0x5271a8,_0x59c2e8);}catch{}if(_0x5271a8&&_0x2bec78)try{const _0x1999e8=a276_0x42ceb1[_0x374864(0xe2)](_0x2bec78);if(_0x1999e8)_0x3e74d1=a276_0x42ceb1['lt'](_0x5271a8,_0x1999e8);}catch{}return _0x3e74d1&&(_0x3ed75f=!![]),{'currentVersion':_0x3dd3c7,'stableVersion':_0x2a5c8e,'minimumVersion':_0x2bec78,'needsUpgrade':_0x3ed75f,'belowMinimum':_0x3e74d1,'isPreRelease':![],'upgradeMessage':_0x582929?.[_0x374864(0xee)],'minimumVersionMessage':_0x582929?.[_0x374864(0xe5)]};}export function printCliUpgradeWarning(_0x15c51d){const _0x43ca35=a276_0x3490;if(!_0x15c51d['needsUpgrade']&&!_0x15c51d['belowMinimum'])return;const _0x1e008d='\x1b[31m',_0x179e09=_0x43ca35(0xe1),_0x290e9f='\x1b[0m',_0x329014=_0x43ca35(0xe0),_0x44d91b=getCliUpgradeCommand(_0x15c51d);console['log'](),_0x15c51d[_0x43ca35(0xdf)]?(console[_0x43ca35(0xef)](''+_0x1e008d+_0x329014+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x290e9f),console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xf0)+_0x15c51d[_0x43ca35(0xea)]+_0x290e9f),_0x15c51d[_0x43ca35(0xf5)]&&console['log'](_0x1e008d+'\x20\x20\x20Minimum\x20supported:\x20'+_0x15c51d[_0x43ca35(0xf5)]+_0x290e9f),_0x15c51d['stableVersion']&&_0x15c51d[_0x43ca35(0xed)]!==_0x15c51d[_0x43ca35(0xf5)]&&console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xec)+_0x15c51d[_0x43ca35(0xed)]+_0x290e9f),_0x15c51d['minimumVersionMessage']&&console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xe6)+_0x15c51d[_0x43ca35(0xe5)]+_0x290e9f),console['log'](_0x1e008d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x44d91b+_0x290e9f)):(console['log'](''+_0x179e09+_0x329014+'↪\x20New\x20version\x20available'+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x15c51d[_0x43ca35(0xea)]+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+_0x43ca35(0xeb)+_0x15c51d[_0x43ca35(0xed)]+_0x290e9f),_0x15c51d[_0x43ca35(0xee)]&&console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20'+_0x15c51d['upgradeMessage']+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20Upgrade\x20command:\x20'+_0x44d91b+_0x290e9f)),console['log']();}export function assertCliVersionSupported(_0x54d248){const _0x5cf589=a276_0x3490;if(!_0x54d248[_0x5cf589(0xdf)])return;const _0x5f2e94=[_0x54d248[_0x5cf589(0xe5)],'Current\x20version:\x20'+_0x54d248[_0x5cf589(0xea)],_0x54d248['minimumVersion']?'Minimum\x20supported:\x20'+_0x54d248[_0x5cf589(0xf5)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x54d248)][_0x5cf589(0xf1)](Boolean)['join']('\x0a');throw CliErrors[_0x5cf589(0xfa)](_0x5cf589(0xde),_0x5f2e94);}
1
+ (function(_0xfd42be,_0x3f0a1f){const _0x1d58ce=a276_0x194e,_0x3772dc=_0xfd42be();while(!![]){try{const _0x451ec0=-parseInt(_0x1d58ce(0x9e))/0x1*(parseInt(_0x1d58ce(0x8d))/0x2)+parseInt(_0x1d58ce(0x99))/0x3*(parseInt(_0x1d58ce(0xad))/0x4)+-parseInt(_0x1d58ce(0x97))/0x5+-parseInt(_0x1d58ce(0x8e))/0x6+parseInt(_0x1d58ce(0xa4))/0x7*(parseInt(_0x1d58ce(0xaf))/0x8)+-parseInt(_0x1d58ce(0x94))/0x9*(-parseInt(_0x1d58ce(0xa7))/0xa)+-parseInt(_0x1d58ce(0x9d))/0xb*(-parseInt(_0x1d58ce(0x96))/0xc);if(_0x451ec0===_0x3f0a1f)break;else _0x3772dc['push'](_0x3772dc['shift']());}catch(_0x1c8a6c){_0x3772dc['push'](_0x3772dc['shift']());}}}(a276_0x5893,0xbe4cc));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a276_0x5893(){const _0x168d76=['Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','↪\x20Critical\x20CLI\x20upgrade\x20required','validation','60XNqhLA','6381306ClZFGH','parse','log','1.0.0','belowMinimum','../..','3832407bBBlmh','coerce','48HtJaVd','4779190UtPgqC','upgradeMessage','108sWzXhw','\x1b[0m','utf-8','stableVersion','1067110EnSLNG','17205DprjvE','join','filter','↪\x20New\x20version\x20available','\x1b[33m','\x1b[31m','736876svNbAO','\x1b[1m','minimumVersion','10RDvVHJ','minimumVersionMessage','Current\x20version:\x20','needsUpgrade','npm\x20install\x20-g\x20','latest','149244ThxudE','Upgrade\x20command:\x20','88tnzeMP','version','\x20\x20\x20Recommended\x20stable:\x20','currentVersion','\x20\x20\x20','\x20\x20\x20Stable\x20version:\x20'];a276_0x5893=function(){return _0x168d76;};return a276_0x5893();}import a276_0x1921d2 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(_0x5d5fb3){const _0x3976da=a276_0x194e,_0x19502b=_0x5d5fb3[_0x3976da(0x9c)]||_0x3976da(0xac);return _0x3976da(0xab)+NPM_PACKAGE_NAME+'@'+_0x19502b;}function getCurrentCliVersion(){const _0x57bbf5=a276_0x194e;try{const _0x57a014=fileURLToPath(import.meta.url),_0x320f42=resolve(dirname(_0x57a014),_0x57bbf5(0x93)),_0x3a9879=resolve(_0x320f42,'package.json'),_0x133e6f=JSON[_0x57bbf5(0x8f)](readFileSync(_0x3a9879,_0x57bbf5(0x9b)));return _0x133e6f[_0x57bbf5(0xb0)]||_0x57bbf5(0x91);}catch{return _0x57bbf5(0x91);}}export async function checkCliVersion(){const _0x5b9d58=a276_0x194e,_0xc5dc9a=getCurrentCliVersion(),_0x36dabd=await getCliVersionPolicy(),_0x38e0d6=_0x36dabd?.['stableVersion']||null,_0x1cb549=_0x36dabd?.[_0x5b9d58(0xa6)]||null;let _0xf2de8b=![],_0x346b84=![];const _0x443fd0=a276_0x1921d2['coerce'](_0xc5dc9a);if(_0x443fd0&&_0x38e0d6)try{const _0x1f2cac=a276_0x1921d2[_0x5b9d58(0x95)](_0x38e0d6);if(_0x1f2cac)_0xf2de8b=a276_0x1921d2['lt'](_0x443fd0,_0x1f2cac);}catch{}if(_0x443fd0&&_0x1cb549)try{const _0x258cd2=a276_0x1921d2[_0x5b9d58(0x95)](_0x1cb549);if(_0x258cd2)_0x346b84=a276_0x1921d2['lt'](_0x443fd0,_0x258cd2);}catch{}return _0x346b84&&(_0xf2de8b=!![]),{'currentVersion':_0xc5dc9a,'stableVersion':_0x38e0d6,'minimumVersion':_0x1cb549,'needsUpgrade':_0xf2de8b,'belowMinimum':_0x346b84,'isPreRelease':![],'upgradeMessage':_0x36dabd?.[_0x5b9d58(0x98)],'minimumVersionMessage':_0x36dabd?.[_0x5b9d58(0xa8)]};}export function printCliUpgradeWarning(_0x33413d){const _0x51df2d=a276_0x194e;if(!_0x33413d[_0x51df2d(0xaa)]&&!_0x33413d[_0x51df2d(0x92)])return;const _0xeccf23=_0x51df2d(0xa3),_0x56d159=_0x51df2d(0xa2),_0x328ad7=_0x51df2d(0x9a),_0x26b052=_0x51df2d(0xa5),_0x590a26=getCliUpgradeCommand(_0x33413d);console[_0x51df2d(0x90)](),_0x33413d['belowMinimum']?(console[_0x51df2d(0x90)](''+_0xeccf23+_0x26b052+_0x51df2d(0x8b)+_0x328ad7),console['log'](_0xeccf23+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x33413d[_0x51df2d(0xb2)]+_0x328ad7),_0x33413d[_0x51df2d(0xa6)]&&console[_0x51df2d(0x90)](_0xeccf23+'\x20\x20\x20Minimum\x20supported:\x20'+_0x33413d[_0x51df2d(0xa6)]+_0x328ad7),_0x33413d[_0x51df2d(0x9c)]&&_0x33413d[_0x51df2d(0x9c)]!==_0x33413d[_0x51df2d(0xa6)]&&console[_0x51df2d(0x90)](_0xeccf23+_0x51df2d(0xb1)+_0x33413d[_0x51df2d(0x9c)]+_0x328ad7),_0x33413d[_0x51df2d(0xa8)]&&console[_0x51df2d(0x90)](_0xeccf23+'\x20\x20\x20'+_0x33413d[_0x51df2d(0xa8)]+_0x328ad7),console[_0x51df2d(0x90)](_0xeccf23+'\x20\x20\x20Upgrade\x20command:\x20'+_0x590a26+_0x328ad7)):(console[_0x51df2d(0x90)](''+_0x56d159+_0x26b052+_0x51df2d(0xa1)+_0x328ad7),console[_0x51df2d(0x90)](_0x56d159+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x33413d[_0x51df2d(0xb2)]+_0x328ad7),console[_0x51df2d(0x90)](_0x56d159+_0x51df2d(0x89)+_0x33413d[_0x51df2d(0x9c)]+_0x328ad7),_0x33413d[_0x51df2d(0x98)]&&console[_0x51df2d(0x90)](_0x56d159+_0x51df2d(0x88)+_0x33413d[_0x51df2d(0x98)]+_0x328ad7),console[_0x51df2d(0x90)](_0x56d159+'\x20\x20\x20Upgrade\x20command:\x20'+_0x590a26+_0x328ad7)),console[_0x51df2d(0x90)]();}function a276_0x194e(_0xc8a556,_0x1a3252){_0xc8a556=_0xc8a556-0x88;const _0x58935a=a276_0x5893();let _0x194e20=_0x58935a[_0xc8a556];return _0x194e20;}export function assertCliVersionSupported(_0x358dc4){const _0xbe0266=a276_0x194e;if(!_0x358dc4[_0xbe0266(0x92)])return;const _0x5a29a7=[_0x358dc4[_0xbe0266(0xa8)],_0xbe0266(0xa9)+_0x358dc4[_0xbe0266(0xb2)],_0x358dc4[_0xbe0266(0xa6)]?'Minimum\x20supported:\x20'+_0x358dc4[_0xbe0266(0xa6)]:null,_0xbe0266(0xae)+getCliUpgradeCommand(_0x358dc4)][_0xbe0266(0xa0)](Boolean)[_0xbe0266(0x9f)]('\x0a');throw CliErrors[_0xbe0266(0x8c)](_0xbe0266(0x8a),_0x5a29a7);}
@@ -1 +1 @@
1
- (function(_0x5ab819,_0x54ef17){const _0x4624fa=a277_0x1be1,_0x4ed39b=_0x5ab819();while(!![]){try{const _0x2d3199=parseInt(_0x4624fa(0x105))/0x1+-parseInt(_0x4624fa(0x108))/0x2+-parseInt(_0x4624fa(0x109))/0x3*(parseInt(_0x4624fa(0x104))/0x4)+parseInt(_0x4624fa(0x101))/0x5+parseInt(_0x4624fa(0x112))/0x6+parseInt(_0x4624fa(0x10d))/0x7*(-parseInt(_0x4624fa(0x115))/0x8)+parseInt(_0x4624fa(0x102))/0x9;if(_0x2d3199===_0x54ef17)break;else _0x4ed39b['push'](_0x4ed39b['shift']());}catch(_0x43b7a1){_0x4ed39b['push'](_0x4ed39b['shift']());}}}(a277_0x35b7,0x86454));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x9e8b92){const _0x4c82e2=a277_0x1be1;return typeof _0x9e8b92===_0x4c82e2(0x113)&&_0x9e8b92[_0x4c82e2(0x10c)]()[_0x4c82e2(0x111)]>0x0?_0x9e8b92[_0x4c82e2(0x10c)]():null;}function normalizeCliVersionPolicy(_0x1f99d8){const _0x1bd9c6=a277_0x1be1;if(!_0x1f99d8||typeof _0x1f99d8!==_0x1bd9c6(0x117))return null;const _0x2c63a4=_0x1f99d8,_0x418996=_0x2c63a4['cli']&&typeof _0x2c63a4[_0x1bd9c6(0x110)]===_0x1bd9c6(0x117)?_0x2c63a4[_0x1bd9c6(0x110)]:_0x2c63a4,_0x364e49=pickString(_0x418996[_0x1bd9c6(0x116)])||pickString(_0x418996[_0x1bd9c6(0x118)])||pickString(_0x418996[_0x1bd9c6(0x107)]),_0x4dfc3a=pickString(_0x418996[_0x1bd9c6(0x10a)])||pickString(_0x418996['minVersion']);if(!_0x364e49&&!_0x4dfc3a)return null;return{'stableVersion':_0x364e49,'minimumVersion':_0x4dfc3a,'upgradeMessage':pickString(_0x418996[_0x1bd9c6(0x10b)])||undefined,'minimumVersionMessage':pickString(_0x418996[_0x1bd9c6(0x106)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x182816=a277_0x1be1,_0x4f0134=new AbortController(),_0x277ce2=setTimeout(()=>_0x4f0134['abort'](),FETCH_TIMEOUT_MS);try{const _0x59b314=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x182816(0x10f)},'signal':_0x4f0134[_0x182816(0x10e)]});if(!_0x59b314['ok'])return null;const _0x331b12=await _0x59b314[_0x182816(0x114)]();return _0x331b12&&typeof _0x331b12===_0x182816(0x117)?_0x331b12:null;}catch{return null;}finally{clearTimeout(_0x277ce2);}}function a277_0x1be1(_0xbcab80,_0x17267a){_0xbcab80=_0xbcab80-0x101;const _0x35b753=a277_0x35b7();let _0x1be1a5=_0x35b753[_0xbcab80];return _0x1be1a5;}function a277_0x35b7(){const _0x202e2a=['recommendedVersion','1855592hgCrup','3080265mTxcxi','minimumVersion','upgradeMessage','trim','4872eHFjHS','signal','application/json','cli','length','1330872nvmPVU','string','json','8792ATMPsL','stableVersion','object','latestVersion','3914275rLaiSM','18405522hEHGlL','now','4RvIugI','219702xLdyEo','minimumVersionMessage'];a277_0x35b7=function(){return _0x202e2a;};return a277_0x35b7();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0xb8ab7f=a277_0x1be1,_0x349193=Date[_0xb8ab7f(0x103)]();if(hasCachedConfig){const _0x47af0f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x349193-cacheTime<_0x47af0f)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x349193,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x543764,_0x37ced3){const _0x254ddf=a277_0x3694,_0x386768=_0x543764();while(!![]){try{const _0x551fd4=-parseInt(_0x254ddf(0x176))/0x1+parseInt(_0x254ddf(0x185))/0x2+parseInt(_0x254ddf(0x180))/0x3*(parseInt(_0x254ddf(0x17d))/0x4)+-parseInt(_0x254ddf(0x174))/0x5*(-parseInt(_0x254ddf(0x17f))/0x6)+parseInt(_0x254ddf(0x186))/0x7+parseInt(_0x254ddf(0x175))/0x8+-parseInt(_0x254ddf(0x189))/0x9;if(_0x551fd4===_0x37ced3)break;else _0x386768['push'](_0x386768['shift']());}catch(_0xd8035e){_0x386768['push'](_0x386768['shift']());}}}(a277_0x5c93,0x4e195));function a277_0x3694(_0x5f5994,_0xccdd4c){_0x5f5994=_0x5f5994-0x174;const _0x5c935c=a277_0x5c93();let _0x3694a1=_0x5c935c[_0x5f5994];return _0x3694a1;}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function a277_0x5c93(){const _0x5cb9cd=['string','minimumVersionMessage','cli','60vJMNcg','4534800cMbWTw','622102FiWYkJ','recommendedVersion','now','application/json','object','upgradeMessage','trim','12mKryrq','signal','54396gdpvxM','527127TgGfZd','latestVersion','length','stableVersion','minimumVersion','1074928LMqFZd','3466659TUqBcs','abort','minVersion','11641275TbBYiJ'];a277_0x5c93=function(){return _0x5cb9cd;};return a277_0x5c93();}function pickString(_0x7e30f8){const _0x54001c=a277_0x3694;return typeof _0x7e30f8===_0x54001c(0x18a)&&_0x7e30f8[_0x54001c(0x17c)]()[_0x54001c(0x182)]>0x0?_0x7e30f8[_0x54001c(0x17c)]():null;}function normalizeCliVersionPolicy(_0x3395a1){const _0x10bae1=a277_0x3694;if(!_0x3395a1||typeof _0x3395a1!==_0x10bae1(0x17a))return null;const _0x5b87f4=_0x3395a1,_0x47afc6=_0x5b87f4[_0x10bae1(0x18c)]&&typeof _0x5b87f4[_0x10bae1(0x18c)]===_0x10bae1(0x17a)?_0x5b87f4[_0x10bae1(0x18c)]:_0x5b87f4,_0x21b32f=pickString(_0x47afc6[_0x10bae1(0x183)])||pickString(_0x47afc6[_0x10bae1(0x181)])||pickString(_0x47afc6[_0x10bae1(0x177)]),_0x2915d9=pickString(_0x47afc6[_0x10bae1(0x184)])||pickString(_0x47afc6[_0x10bae1(0x188)]);if(!_0x21b32f&&!_0x2915d9)return null;return{'stableVersion':_0x21b32f,'minimumVersion':_0x2915d9,'upgradeMessage':pickString(_0x47afc6[_0x10bae1(0x17b)])||undefined,'minimumVersionMessage':pickString(_0x47afc6[_0x10bae1(0x18b)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x3147f1=a277_0x3694,_0x1ed06d=new AbortController(),_0xfb9615=setTimeout(()=>_0x1ed06d[_0x3147f1(0x187)](),FETCH_TIMEOUT_MS);try{const _0xd868c4=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3147f1(0x179)},'signal':_0x1ed06d[_0x3147f1(0x17e)]});if(!_0xd868c4['ok'])return null;const _0xbad9af=await _0xd868c4['json']();return _0xbad9af&&typeof _0xbad9af===_0x3147f1(0x17a)?_0xbad9af:null;}catch{return null;}finally{clearTimeout(_0xfb9615);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5e7e34=a277_0x3694,_0x545cd6=Date[_0x5e7e34(0x178)]();if(hasCachedConfig){const _0x1c75e7=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x545cd6-cacheTime<_0x1c75e7)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x545cd6,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x45ddce,_0x542005){const _0x2ce848=a278_0x17a3,_0x4701f4=_0x45ddce();while(!![]){try{const _0x18294a=-parseInt(_0x2ce848(0x1e8))/0x1+-parseInt(_0x2ce848(0x1ed))/0x2*(parseInt(_0x2ce848(0x1e6))/0x3)+-parseInt(_0x2ce848(0x1f1))/0x4+parseInt(_0x2ce848(0x1e9))/0x5*(-parseInt(_0x2ce848(0x1f0))/0x6)+-parseInt(_0x2ce848(0x1ef))/0x7*(-parseInt(_0x2ce848(0x1e7))/0x8)+-parseInt(_0x2ce848(0x1eb))/0x9*(parseInt(_0x2ce848(0x1ea))/0xa)+parseInt(_0x2ce848(0x1e5))/0xb;if(_0x18294a===_0x542005)break;else _0x4701f4['push'](_0x4701f4['shift']());}catch(_0x143ade){_0x4701f4['push'](_0x4701f4['shift']());}}}(a278_0x267f,0xb34a5));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a278_0xcc354e,getMultiAppConfigs as a278_0x1be5a6,getTemplateBaseUrl as a278_0x584d47}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a278_0x17a3(_0x5c05bb,_0x50ebc0){_0x5c05bb=_0x5c05bb-0x1e5;const _0x267fcf=a278_0x267f();let _0x17a34e=_0x267fcf[_0x5c05bb];return _0x17a34e;}export{isInProject}from'../context.js';export function readConfig(_0x2682df){const _0x1129a0=a278_0x17a3,_0x4352fb=readRawConfig(_0x2682df);return _0x4352fb[_0x1129a0(0x1ee)]&&typeof _0x4352fb[_0x1129a0(0x1ee)]===_0x1129a0(0x1ec)&&initEnv(_0x4352fb[_0x1129a0(0x1ee)]),_0x4352fb;}function a278_0x267f(){const _0x154189=['173617uKXmBk','35EZmpiL','10gAGNlz','12867354GbzYwN','string','6yaDQFe','env','30758DffZQj','867978Uwejsy','1395716sskfNK','42193272YOttug','628614vtAMZh','896pgPHPF'];a278_0x267f=function(){return _0x154189;};return a278_0x267f();}export function getConfigAppCode(){return a278_0xcc354e();}export function getMultiAppConfigs(_0x48cc78='project'){return a278_0x1be5a6(_0x48cc78);}export function getTemplateBaseUrl(){return a278_0x584d47();}
1
+ const a278_0x15b8e9=a278_0x26f1;(function(_0x1bfc67,_0x4a2106){const _0x2cf9dd=a278_0x26f1,_0x188a8c=_0x1bfc67();while(!![]){try{const _0x174bad=parseInt(_0x2cf9dd(0x155))/0x1*(-parseInt(_0x2cf9dd(0x15a))/0x2)+parseInt(_0x2cf9dd(0x153))/0x3*(parseInt(_0x2cf9dd(0x15e))/0x4)+-parseInt(_0x2cf9dd(0x158))/0x5+parseInt(_0x2cf9dd(0x156))/0x6*(parseInt(_0x2cf9dd(0x154))/0x7)+-parseInt(_0x2cf9dd(0x150))/0x8+-parseInt(_0x2cf9dd(0x15c))/0x9*(parseInt(_0x2cf9dd(0x152))/0xa)+-parseInt(_0x2cf9dd(0x15d))/0xb*(-parseInt(_0x2cf9dd(0x15b))/0xc);if(_0x174bad===_0x4a2106)break;else _0x188a8c['push'](_0x188a8c['shift']());}catch(_0x9efebf){_0x188a8c['push'](_0x188a8c['shift']());}}}(a278_0x54f9,0xc17cd));function a278_0x54f9(){const _0x4105c6=['string','878420aPnbbS','36646548USpOXS','83367HJOpax','11TOlJjU','3948MtluRP','6900104uqZtJc','env','290yUEEPi','243nmHjyp','217hefCKn','3hTeOzq','77898gIZcej','project','1475020ZRurln'];a278_0x54f9=function(){return _0x4105c6;};return a278_0x54f9();}import{initEnv}from'../constant/env.js';function a278_0x26f1(_0x27473e,_0x1dc255){_0x27473e=_0x27473e-0x150;const _0x54f999=a278_0x54f9();let _0x26f1da=_0x54f999[_0x27473e];return _0x26f1da;}import{readRawConfig,getConfigAppCode as a278_0x272ea5,getMultiAppConfigs as a278_0x3f0db0,getTemplateBaseUrl as a278_0x2ce0a7}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x11ca12){const _0x284eb9=a278_0x26f1,_0x327ea9=readRawConfig(_0x11ca12);return _0x327ea9[_0x284eb9(0x151)]&&typeof _0x327ea9[_0x284eb9(0x151)]===_0x284eb9(0x159)&&initEnv(_0x327ea9[_0x284eb9(0x151)]),_0x327ea9;}export function getConfigAppCode(){return a278_0x272ea5();}export function getMultiAppConfigs(_0x5568ab=a278_0x15b8e9(0x157)){return a278_0x3f0db0(_0x5568ab);}export function getTemplateBaseUrl(){return a278_0x2ce0a7();}
@@ -1 +1 @@
1
- (function(_0x16adf7,_0x1dccde){const _0x2279eb=a279_0x9fcc,_0x4c9f47=_0x16adf7();while(!![]){try{const _0xb4690b=parseInt(_0x2279eb(0xa3))/0x1*(-parseInt(_0x2279eb(0x9f))/0x2)+-parseInt(_0x2279eb(0xa5))/0x3*(-parseInt(_0x2279eb(0xa0))/0x4)+parseInt(_0x2279eb(0x9e))/0x5*(parseInt(_0x2279eb(0x9c))/0x6)+parseInt(_0x2279eb(0xa1))/0x7+-parseInt(_0x2279eb(0xa8))/0x8+parseInt(_0x2279eb(0x9a))/0x9*(-parseInt(_0x2279eb(0xa6))/0xa)+-parseInt(_0x2279eb(0xa2))/0xb;if(_0xb4690b===_0x1dccde)break;else _0x4c9f47['push'](_0x4c9f47['shift']());}catch(_0x305089){_0x4c9f47['push'](_0x4c9f47['shift']());}}}(a279_0xb96e,0xce28d));function toFiniteNumber(_0x3cd6b7){const _0x26ce88=a279_0x9fcc;if(typeof _0x3cd6b7===_0x26ce88(0xa4)&&Number[_0x26ce88(0xa7)](_0x3cd6b7))return _0x3cd6b7;if(typeof _0x3cd6b7===_0x26ce88(0x9b)){const _0x2b14ce=_0x3cd6b7[_0x26ce88(0x9d)]();if(!_0x2b14ce)return undefined;const _0x21873f=Number(_0x2b14ce);if(Number[_0x26ce88(0xa7)](_0x21873f))return _0x21873f;}return undefined;}export function normalizeEntityWithIdResponse(_0x3a8e97){const _0x29ffa6=a279_0x9fcc,_0x30935c=toFiniteNumber(_0x3a8e97);if(_0x30935c!==undefined)return{'id':_0x30935c,'entity':{'id':_0x30935c}};if(!_0x3a8e97||typeof _0x3a8e97!==_0x29ffa6(0x99))return{'id':undefined,'entity':{}};const _0x2da717={..._0x3a8e97},_0x3766e5=toFiniteNumber(_0x2da717['id']);return _0x3766e5!==undefined&&(_0x2da717['id']=_0x3766e5),{'id':_0x3766e5,'entity':_0x2da717};}function a279_0x9fcc(_0x496dc5,_0x41845e){_0x496dc5=_0x496dc5-0x99;const _0xb96e0=a279_0xb96e();let _0x9fcc80=_0xb96e0[_0x496dc5];return _0x9fcc80;}function a279_0xb96e(){const _0x577f1a=['3535384mcBtyA','object','175239RFDhas','string','300474DXwxjg','trim','70hFvZQM','25484FeHEZq','2581772ETowSP','10250359YgicDv','5176204GOBzKy','86kSUYQT','number','6XrllWt','310tLtZCS','isFinite'];a279_0xb96e=function(){return _0x577f1a;};return a279_0xb96e();}
1
+ (function(_0x1b2d56,_0x580d0){const _0x1f9c18=a279_0x442e,_0x2dd50d=_0x1b2d56();while(!![]){try{const _0x4503ba=parseInt(_0x1f9c18(0x1c8))/0x1*(parseInt(_0x1f9c18(0x1c9))/0x2)+-parseInt(_0x1f9c18(0x1c7))/0x3+-parseInt(_0x1f9c18(0x1cd))/0x4+parseInt(_0x1f9c18(0x1c6))/0x5+parseInt(_0x1f9c18(0x1c5))/0x6*(parseInt(_0x1f9c18(0x1c4))/0x7)+-parseInt(_0x1f9c18(0x1c1))/0x8+-parseInt(_0x1f9c18(0x1cb))/0x9;if(_0x4503ba===_0x580d0)break;else _0x2dd50d['push'](_0x2dd50d['shift']());}catch(_0x47cdff){_0x2dd50d['push'](_0x2dd50d['shift']());}}}(a279_0x3936,0x780a9));function toFiniteNumber(_0x4bb1da){const _0xdc149c=a279_0x442e;if(typeof _0x4bb1da==='number'&&Number['isFinite'](_0x4bb1da))return _0x4bb1da;if(typeof _0x4bb1da===_0xdc149c(0x1c2)){const _0x56b683=_0x4bb1da[_0xdc149c(0x1c3)]();if(!_0x56b683)return undefined;const _0x2e4606=Number(_0x56b683);if(Number[_0xdc149c(0x1ca)](_0x2e4606))return _0x2e4606;}return undefined;}function a279_0x442e(_0x5a44d5,_0x290531){_0x5a44d5=_0x5a44d5-0x1c1;const _0x3936d6=a279_0x3936();let _0x442e00=_0x3936d6[_0x5a44d5];return _0x442e00;}export function normalizeEntityWithIdResponse(_0x117111){const _0x40a7e3=a279_0x442e,_0x293678=toFiniteNumber(_0x117111);if(_0x293678!==undefined)return{'id':_0x293678,'entity':{'id':_0x293678}};if(!_0x117111||typeof _0x117111!==_0x40a7e3(0x1cc))return{'id':undefined,'entity':{}};const _0xe9bc7e={..._0x117111},_0x1249a5=toFiniteNumber(_0xe9bc7e['id']);return _0x1249a5!==undefined&&(_0xe9bc7e['id']=_0x1249a5),{'id':_0x1249a5,'entity':_0xe9bc7e};}function a279_0x3936(){const _0x1b22b8=['2963214VUxsTt','object','706228QFKEJc','1787816WgHiEI','string','trim','7NEZVYg','3828732cyCoIJ','3764080bPBQyU','1565928BeZLTf','352007RzxAZt','2TbaMUR','isFinite'];a279_0x3936=function(){return _0x1b22b8;};return a279_0x3936();}
@@ -1 +1 @@
1
- (function(_0x27d6ee,_0x42d70a){const _0x5221f3=a280_0x1ec4,_0x5c8482=_0x27d6ee();while(!![]){try{const _0x2288f4=parseInt(_0x5221f3(0x1b7))/0x1*(parseInt(_0x5221f3(0x1c1))/0x2)+-parseInt(_0x5221f3(0x1bc))/0x3*(-parseInt(_0x5221f3(0x1b8))/0x4)+-parseInt(_0x5221f3(0x1bf))/0x5*(parseInt(_0x5221f3(0x1be))/0x6)+parseInt(_0x5221f3(0x1ba))/0x7+parseInt(_0x5221f3(0x1c2))/0x8*(parseInt(_0x5221f3(0x1bb))/0x9)+parseInt(_0x5221f3(0x1b9))/0xa*(parseInt(_0x5221f3(0x1b6))/0xb)+-parseInt(_0x5221f3(0x1c0))/0xc*(parseInt(_0x5221f3(0x1bd))/0xd);if(_0x2288f4===_0x42d70a)break;else _0x5c8482['push'](_0x5c8482['shift']());}catch(_0x448a58){_0x5c8482['push'](_0x5c8482['shift']());}}}(a280_0x3143,0x9fa83));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a280_0x1ec4(_0x28b9c8,_0x3c8ee5){_0x28b9c8=_0x28b9c8-0x1b6;const _0x3143a4=a280_0x3143();let _0x1ec4a0=_0x3143a4[_0x28b9c8];return _0x1ec4a0;}export async function copyDir(_0x575bee,_0x193ff0){const _0x14fb43=statSync(_0x575bee);if(_0x14fb43['isDirectory']()){!existsSync(_0x193ff0)&&mkdirSync(_0x193ff0,{'recursive':!![]});const _0x17d1b7=readdirSync(_0x575bee);for(const _0x269fa6 of _0x17d1b7){await copyDir(join(_0x575bee,_0x269fa6),join(_0x193ff0,_0x269fa6));}}else copyFileSync(_0x575bee,_0x193ff0);}function a280_0x3143(){const _0x21807f=['12cORnbe','1114205uMJtAl','3118044mrltzD','1903518pcpAqw','145352JXjLnF','143uMBysa','1jvTvHP','636kgfWmZ','401510ZVoSSc','5500110kCMbIF','423LyUTfr','15933IvAdFN','143jgOKHd'];a280_0x3143=function(){return _0x21807f;};return a280_0x3143();}export function ensureDir(_0x2f56a9){!existsSync(_0x2f56a9)&&mkdirSync(_0x2f56a9,{'recursive':!![]});}export function pathExists(_0x2d24f1){return existsSync(_0x2d24f1);}
1
+ (function(_0x2c9dda,_0x5621a5){const _0x2adef4=a280_0x36e7,_0x413b9c=_0x2c9dda();while(!![]){try{const _0x4eb760=-parseInt(_0x2adef4(0x173))/0x1+-parseInt(_0x2adef4(0x16d))/0x2*(-parseInt(_0x2adef4(0x174))/0x3)+parseInt(_0x2adef4(0x16e))/0x4+parseInt(_0x2adef4(0x170))/0x5+-parseInt(_0x2adef4(0x171))/0x6+-parseInt(_0x2adef4(0x172))/0x7+parseInt(_0x2adef4(0x16f))/0x8;if(_0x4eb760===_0x5621a5)break;else _0x413b9c['push'](_0x413b9c['shift']());}catch(_0x33b443){_0x413b9c['push'](_0x413b9c['shift']());}}}(a280_0x193b,0x96551));function a280_0x36e7(_0x1091ff,_0x2a1594){_0x1091ff=_0x1091ff-0x16d;const _0x193b91=a280_0x193b();let _0x36e7a9=_0x193b91[_0x1091ff];return _0x36e7a9;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4a27ff,_0x1df969){const _0x1b4d26=a280_0x36e7,_0x3fa7ee=statSync(_0x4a27ff);if(_0x3fa7ee[_0x1b4d26(0x175)]()){!existsSync(_0x1df969)&&mkdirSync(_0x1df969,{'recursive':!![]});const _0x1d05f5=readdirSync(_0x4a27ff);for(const _0x76aa5e of _0x1d05f5){await copyDir(join(_0x4a27ff,_0x76aa5e),join(_0x1df969,_0x76aa5e));}}else copyFileSync(_0x4a27ff,_0x1df969);}function a280_0x193b(){const _0x48c304=['3401466gxxKaV','3769661zEiBhq','630878HfArlU','971307fsvOwx','isDirectory','6HyQGNq','404252rhqqfd','6488112KrgxAb','2343445mScTGM'];a280_0x193b=function(){return _0x48c304;};return a280_0x193b();}export function ensureDir(_0x32a2ad){!existsSync(_0x32a2ad)&&mkdirSync(_0x32a2ad,{'recursive':!![]});}export function pathExists(_0x4bffa9){return existsSync(_0x4bffa9);}
@@ -1 +1 @@
1
- const a281_0x1c3822=a281_0x1d28;(function(_0x2a9cf3,_0x131adb){const _0x4d60ad=a281_0x1d28,_0x1cb669=_0x2a9cf3();while(!![]){try{const _0x4ef703=parseInt(_0x4d60ad(0x155))/0x1+parseInt(_0x4d60ad(0x156))/0x2*(-parseInt(_0x4d60ad(0x15b))/0x3)+parseInt(_0x4d60ad(0x150))/0x4*(-parseInt(_0x4d60ad(0x13e))/0x5)+-parseInt(_0x4d60ad(0x145))/0x6+-parseInt(_0x4d60ad(0x154))/0x7*(parseInt(_0x4d60ad(0x147))/0x8)+-parseInt(_0x4d60ad(0x157))/0x9*(-parseInt(_0x4d60ad(0x143))/0xa)+parseInt(_0x4d60ad(0x15a))/0xb;if(_0x4ef703===_0x131adb)break;else _0x1cb669['push'](_0x1cb669['shift']());}catch(_0x5414e1){_0x1cb669['push'](_0x1cb669['shift']());}}}(a281_0x5d58,0x3cacc));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 _0xa51b11=a281_0x1d28,_0x2291bc=getTemplateBaseUrl();return _0x2291bc+_0xa51b11(0x148);}const CACHE_DIR=join(homedir(),'.lovrabet',a281_0x1c3822(0x15e));function a281_0x5d58(){const _0x17ee45=['application/json','json','lastUpdated','length','guides','176GerXNK','entries','map','push','8582VFZsNw','482829rjJlxi','20BkBfPA','2740005AMIMaf','utf-8','trimEnd','11372933PHqBBG','81897XsCihp','extendContent','.lovrabet/skill/guides','cache','44140gsOMnA','\x0a\x0a>更新时间:','content','path','.md','10GWeOrm','CDN\x20请求失败:\x20','2561766RrapHR','CDN\x20数据中缺少\x20skillTemplate','3160zKAVbL','/skills/guides.json','skillTemplate','status'];a281_0x5d58=function(){return _0x17ee45;};return a281_0x5d58();}export async function fetchGuidesFromCDN(){const _0x1b380c=a281_0x1c3822,_0x49d41c=getGuidesCdnUrl(),_0x5b5bb6=await fetch(_0x49d41c,{'headers':{'Accept':_0x1b380c(0x14b)}});if(!_0x5b5bb6['ok'])throw new Error(_0x1b380c(0x144)+_0x5b5bb6[_0x1b380c(0x14a)]+'\x20'+_0x5b5bb6['statusText']);const _0x3efdf9=await _0x5b5bb6[_0x1b380c(0x14c)]();if(!_0x3efdf9[_0x1b380c(0x14f)]||typeof _0x3efdf9['guides']!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x3efdf9;}function a281_0x1d28(_0x5e4437,_0x3d35d2){_0x5e4437=_0x5e4437-0x13e;const _0x5d5815=a281_0x5d58();let _0x1d282d=_0x5d5815[_0x5e4437];return _0x1d282d;}export function writeGuidesToProject(_0xac10d3,_0x35a8eb,_0x5a6123=a281_0x1c3822(0x15d),_0x3e2e37){const _0x3fe838=a281_0x1c3822,_0x48a789=join(_0x35a8eb,_0x5a6123);mkdirSync(_0x48a789,{'recursive':!![]});for(const [_0x5782d4,_0x24d88e]of Object[_0x3fe838(0x151)](_0xac10d3['guides'])){let _0x19d497=_0x24d88e[_0x3fe838(0x140)];_0x24d88e[_0x3fe838(0x14d)]&&(_0x19d497=appendUpdateTime(_0x19d497,_0x24d88e['lastUpdated'])),writeFileSync(join(_0x48a789,_0x5782d4+_0x3fe838(0x142)),_0x19d497,_0x3fe838(0x158));}}export function appendUpdateTime(_0x446f22,_0x5c3524){const _0x525742=a281_0x1c3822;return _0x446f22=_0x446f22['replace'](/\n*>更新时间:.*$/m,''),_0x446f22[_0x525742(0x159)]()+(_0x525742(0x13f)+_0x5c3524);}export function getSkillTemplate(_0x382286){const _0x4eedc2=a281_0x1c3822;return _0x382286[_0x4eedc2(0x149)]?.[_0x4eedc2(0x140)]||'';}export function appendExtendContents(_0x3da246,_0x2f19da,_0x3ec2af){const _0x92aab2=a281_0x1c3822,_0x5808f0=[];for(const [,_0x9ca615]of Object[_0x92aab2(0x151)](_0x2f19da[_0x92aab2(0x14f)])){_0x9ca615[_0x92aab2(0x15c)]&&_0x5808f0[_0x92aab2(0x153)](_0x9ca615[_0x92aab2(0x15c)][_0x92aab2(0x159)]());}if(_0x5808f0[_0x92aab2(0x14e)]===0x0)return _0x3da246;return _0x3da246[_0x92aab2(0x159)]()+'\x0a\x0a'+_0x5808f0['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x10c787,_0x444e88,_0x3b0165){const _0xbf395a=a281_0x1c3822,_0x2a35c6=getSkillTemplate(_0x10c787);if(!_0x2a35c6)throw new Error(_0xbf395a(0x146));const _0x3184f2=dirname(_0x444e88);mkdirSync(_0x3184f2,{'recursive':!![]});let _0x4fda29=_0x2a35c6['replace'](/\{\{IDE_NAME\}\}/g,_0x3b0165);_0x4fda29=appendExtendContents(_0x4fda29,_0x10c787),_0x10c787['skillTemplate']['lastUpdated']&&(_0x4fda29=appendUpdateTime(_0x4fda29,_0x10c787[_0xbf395a(0x149)]['lastUpdated'])),writeFileSync(_0x444e88,_0x4fda29,_0xbf395a(0x158));}export async function installGuides(_0x3c3b76){const _0x1ec0cd=a281_0x1c3822,_0x41e8b8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x41e8b8,_0x3c3b76),Object['keys'](_0x41e8b8[_0x1ec0cd(0x14f)])[_0x1ec0cd(0x14e)];}export function getGuidesSummary(_0x1245cb){const _0x2673ee=a281_0x1c3822;return Object[_0x2673ee(0x151)](_0x1245cb['guides'])[_0x2673ee(0x152)](([_0x43953a,_0x531204])=>({'key':_0x43953a,'title':_0x531204['title'],'path':_0x531204[_0x2673ee(0x141)]}));}
1
+ const a281_0x17c84f=a281_0x791c;(function(_0x1b7b31,_0x4da9e1){const _0x2ab592=a281_0x791c,_0x2f9a96=_0x1b7b31();while(!![]){try{const _0x2cbb12=parseInt(_0x2ab592(0xa4))/0x1*(parseInt(_0x2ab592(0xac))/0x2)+parseInt(_0x2ab592(0xb9))/0x3+parseInt(_0x2ab592(0xa7))/0x4*(parseInt(_0x2ab592(0xa9))/0x5)+parseInt(_0x2ab592(0xad))/0x6+-parseInt(_0x2ab592(0xa8))/0x7+parseInt(_0x2ab592(0x9f))/0x8+parseInt(_0x2ab592(0xa0))/0x9*(-parseInt(_0x2ab592(0xb4))/0xa);if(_0x2cbb12===_0x4da9e1)break;else _0x2f9a96['push'](_0x2f9a96['shift']());}catch(_0x13ff3f){_0x2f9a96['push'](_0x2f9a96['shift']());}}}(a281_0x51b7,0x3e40a));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 _0x57763a=a281_0x791c,_0x10d333=getTemplateBaseUrl();return _0x10d333+_0x57763a(0xc0);}const CACHE_DIR=join(homedir(),a281_0x17c84f(0xaa),a281_0x17c84f(0xb6));export async function fetchGuidesFromCDN(){const _0x11fd24=a281_0x17c84f,_0x4b35a9=getGuidesCdnUrl(),_0x31d668=await fetch(_0x4b35a9,{'headers':{'Accept':_0x11fd24(0xc1)}});if(!_0x31d668['ok'])throw new Error(_0x11fd24(0xae)+_0x31d668[_0x11fd24(0xbe)]+'\x20'+_0x31d668[_0x11fd24(0xa3)]);const _0x416caf=await _0x31d668[_0x11fd24(0xaf)]();if(!_0x416caf['guides']||typeof _0x416caf[_0x11fd24(0xbd)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x416caf;}export function writeGuidesToProject(_0x32466b,_0x206b0a,_0x137077=a281_0x17c84f(0xb0),_0x2c10dc){const _0x449764=a281_0x17c84f,_0x55f1e1=join(_0x206b0a,_0x137077);mkdirSync(_0x55f1e1,{'recursive':!![]});for(const [_0x316aa9,_0x10c36a]of Object[_0x449764(0xbb)](_0x32466b[_0x449764(0xbd)])){let _0x46ba0f=_0x10c36a['content'];_0x10c36a[_0x449764(0xb2)]&&(_0x46ba0f=appendUpdateTime(_0x46ba0f,_0x10c36a['lastUpdated'])),writeFileSync(join(_0x55f1e1,_0x316aa9+_0x449764(0xbc)),_0x46ba0f,_0x449764(0xb3));}}export function appendUpdateTime(_0x3bba98,_0x4970a8){const _0x4c8a1f=a281_0x17c84f;return _0x3bba98=_0x3bba98[_0x4c8a1f(0xbf)](/\n*>更新时间:.*$/m,''),_0x3bba98[_0x4c8a1f(0xb7)]()+(_0x4c8a1f(0xb1)+_0x4970a8);}function a281_0x791c(_0x3c734,_0x467513){_0x3c734=_0x3c734-0x9f;const _0x51b7a0=a281_0x51b7();let _0x791cfd=_0x51b7a0[_0x3c734];return _0x791cfd;}function a281_0x51b7(){const _0x5de53b=['extendContent','cache','trimEnd','path','659364XidRrt','title','entries','.md','guides','status','replace','/skills/guides.json','application/json','1419008wTSgyO','319230cmojSn','skillTemplate','map','statusText','64618vMufAK','keys','length','231340tXXnen','909405aRKvnO','20hlowBZ','.lovrabet','content','2OZBzba','1555794WHlmsX','CDN\x20请求失败:\x20','json','.lovrabet/skill/guides','\x0a\x0a>更新时间:','lastUpdated','utf-8','160pZmQRz'];a281_0x51b7=function(){return _0x5de53b;};return a281_0x51b7();}export function getSkillTemplate(_0x3601c9){const _0x2e6a76=a281_0x17c84f;return _0x3601c9[_0x2e6a76(0xa1)]?.[_0x2e6a76(0xab)]||'';}export function appendExtendContents(_0x22409e,_0x45ee8b,_0x246bae){const _0x144c65=a281_0x17c84f,_0x14d44e=[];for(const [,_0x547fa9]of Object[_0x144c65(0xbb)](_0x45ee8b[_0x144c65(0xbd)])){_0x547fa9[_0x144c65(0xb5)]&&_0x14d44e['push'](_0x547fa9['extendContent'][_0x144c65(0xb7)]());}if(_0x14d44e[_0x144c65(0xa6)]===0x0)return _0x22409e;return _0x22409e[_0x144c65(0xb7)]()+'\x0a\x0a'+_0x14d44e['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x394b5d,_0x11a0d7,_0xfdba1d){const _0x1807d6=a281_0x17c84f,_0x106a7b=getSkillTemplate(_0x394b5d);if(!_0x106a7b)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x59f4f4=dirname(_0x11a0d7);mkdirSync(_0x59f4f4,{'recursive':!![]});let _0x13dcb9=_0x106a7b[_0x1807d6(0xbf)](/\{\{IDE_NAME\}\}/g,_0xfdba1d);_0x13dcb9=appendExtendContents(_0x13dcb9,_0x394b5d),_0x394b5d['skillTemplate'][_0x1807d6(0xb2)]&&(_0x13dcb9=appendUpdateTime(_0x13dcb9,_0x394b5d[_0x1807d6(0xa1)][_0x1807d6(0xb2)])),writeFileSync(_0x11a0d7,_0x13dcb9,_0x1807d6(0xb3));}export async function installGuides(_0x446f06){const _0x2cb228=a281_0x17c84f,_0x5eb52d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5eb52d,_0x446f06),Object[_0x2cb228(0xa5)](_0x5eb52d[_0x2cb228(0xbd)])[_0x2cb228(0xa6)];}export function getGuidesSummary(_0xd5dd01){const _0x30e80f=a281_0x17c84f;return Object['entries'](_0xd5dd01['guides'])[_0x30e80f(0xa2)](([_0x4bc53b,_0x4632c8])=>({'key':_0x4bc53b,'title':_0x4632c8[_0x30e80f(0xba)],'path':_0x4632c8[_0x30e80f(0xb8)]}));}
@@ -1 +1 @@
1
- (function(_0x1d5872,_0x12f457){const _0x481579=a282_0x46d3,_0x45691d=_0x1d5872();while(!![]){try{const _0x3ae3f9=parseInt(_0x481579(0x1b4))/0x1+-parseInt(_0x481579(0x1aa))/0x2*(parseInt(_0x481579(0x1b2))/0x3)+-parseInt(_0x481579(0x198))/0x4*(-parseInt(_0x481579(0x1a9))/0x5)+-parseInt(_0x481579(0x199))/0x6+-parseInt(_0x481579(0x1a2))/0x7*(-parseInt(_0x481579(0x1ad))/0x8)+-parseInt(_0x481579(0x1a5))/0x9+-parseInt(_0x481579(0x1ac))/0xa*(parseInt(_0x481579(0x1a0))/0xb);if(_0x3ae3f9===_0x12f457)break;else _0x45691d['push'](_0x45691d['shift']());}catch(_0x423293){_0x45691d['push'](_0x45691d['shift']());}}}(a282_0x261a,0x2e7cc));export async function httpRequest(_0x1870fe,_0x2a8c88={}){const _0x4fec75=a282_0x46d3,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2a8c88;let _0x401c91=null;for(let _0x1191bc=0x0;_0x1191bc<=retries;_0x1191bc++){try{const _0x54d7ad=new AbortController(),_0x2264bb=setTimeout(()=>_0x54d7ad[_0x4fec75(0x1a6)](),timeout),_0x2b3b8a=await fetch(_0x1870fe,{'headers':headers,'signal':_0x54d7ad['signal']});clearTimeout(_0x2264bb);let _0x3788c6;const _0x255076=_0x2b3b8a[_0x4fec75(0x19d)][_0x4fec75(0x19a)](_0x4fec75(0x19e));return _0x255076?.[_0x4fec75(0x1b1)]('application/json')?_0x3788c6=await _0x2b3b8a[_0x4fec75(0x1b3)]():_0x3788c6=await _0x2b3b8a[_0x4fec75(0x1a4)](),{'ok':_0x2b3b8a['ok'],'status':_0x2b3b8a[_0x4fec75(0x19c)],'statusText':_0x2b3b8a[_0x4fec75(0x1a7)],'data':_0x3788c6,'headers':_0x2b3b8a[_0x4fec75(0x19d)],'url':_0x2b3b8a[_0x4fec75(0x1a8)],'text':()=>_0x2b3b8a[_0x4fec75(0x1a4)]()};}catch(_0x3e16a6){_0x401c91=_0x3e16a6 instanceof Error?_0x3e16a6:new Error(String(_0x3e16a6));if(_0x1191bc===retries)break;if(shouldRetry(_0x3e16a6)){console[_0x4fec75(0x1af)](_0x4fec75(0x1ae)+retryDelay+_0x4fec75(0x1ab)+(_0x1191bc+0x1)+_0x4fec75(0x1a1)),await sleep(retryDelay);continue;}else break;}}throw _0x401c91||new Error(_0x4fec75(0x19b));}function shouldRetry(_0x2ed19a){const _0x3103fd=a282_0x46d3;if(_0x2ed19a instanceof Error){if(_0x2ed19a['name']===_0x3103fd(0x196))return![];if(_0x2ed19a[_0x3103fd(0x194)]===_0x3103fd(0x1b0)&&_0x2ed19a[_0x3103fd(0x1a3)][_0x3103fd(0x1b1)](_0x3103fd(0x197)))return!![];if(_0x2ed19a['message'][_0x3103fd(0x1b1)](_0x3103fd(0x195)))return!![];if(_0x2ed19a[_0x3103fd(0x1a3)][_0x3103fd(0x1b1)](_0x3103fd(0x19f)))return![];}return![];}function a282_0x46d3(_0x4b4a78,_0x5d6b67){_0x4b4a78=_0x4b4a78-0x194;const _0x261a3e=a282_0x261a();let _0x46d31c=_0x261a3e[_0x4b4a78];return _0x46d31c;}function a282_0x261a(){const _0x23840c=['757647xtvDnD','abort','statusText','url','3695QnLinb','2gQBsbO','ms\x20后进行第\x20','2377030mZiIfN','32616TsrPhb','*\x20请求失败,','log','TypeError','includes','354111rDZcow','json','310676UgYQIl','name','ECONNRESET','AbortError','fetch','1668vkVMow','1325358JLvHBb','get','Request\x20failed','status','headers','content-type','ENOTFOUND','11KHjsFL','\x20次重试...','399CJXPxa','message','text'];a282_0x261a=function(){return _0x23840c;};return a282_0x261a();}function sleep(_0x20bc52){return new Promise(_0x4287f6=>setTimeout(_0x4287f6,_0x20bc52));}export function validateUrl(_0x3f0294){try{return new URL(_0x3f0294),!![];}catch{return![];}}
1
+ function a282_0xce43(_0x511c4d,_0x534505){_0x511c4d=_0x511c4d-0x17c;const _0x2fcb7c=a282_0x2fcb();let _0xce4317=_0x2fcb7c[_0x511c4d];return _0xce4317;}(function(_0x6d9c4e,_0x400773){const _0x576042=a282_0xce43,_0x4f85ae=_0x6d9c4e();while(!![]){try{const _0x24403f=-parseInt(_0x576042(0x196))/0x1*(-parseInt(_0x576042(0x198))/0x2)+parseInt(_0x576042(0x188))/0x3*(parseInt(_0x576042(0x190))/0x4)+-parseInt(_0x576042(0x18e))/0x5*(-parseInt(_0x576042(0x186))/0x6)+parseInt(_0x576042(0x17f))/0x7*(parseInt(_0x576042(0x17c))/0x8)+-parseInt(_0x576042(0x184))/0x9*(parseInt(_0x576042(0x18a))/0xa)+-parseInt(_0x576042(0x187))/0xb*(parseInt(_0x576042(0x199))/0xc)+parseInt(_0x576042(0x191))/0xd;if(_0x24403f===_0x400773)break;else _0x4f85ae['push'](_0x4f85ae['shift']());}catch(_0x3992c3){_0x4f85ae['push'](_0x4f85ae['shift']());}}}(a282_0x2fcb,0xd7d5e));export async function httpRequest(_0x33070f,_0x22cb9f={}){const _0x530569=a282_0xce43,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x22cb9f;let _0x1c2710=null;for(let _0x4ee232=0x0;_0x4ee232<=retries;_0x4ee232++){try{const _0x3a40b8=new AbortController(),_0x449150=setTimeout(()=>_0x3a40b8[_0x530569(0x195)](),timeout),_0x3e2b26=await fetch(_0x33070f,{'headers':headers,'signal':_0x3a40b8[_0x530569(0x192)]});clearTimeout(_0x449150);let _0x167df8;const _0xad9a4e=_0x3e2b26[_0x530569(0x183)][_0x530569(0x193)](_0x530569(0x18f));return _0xad9a4e?.[_0x530569(0x17d)](_0x530569(0x18b))?_0x167df8=await _0x3e2b26['json']():_0x167df8=await _0x3e2b26[_0x530569(0x18d)](),{'ok':_0x3e2b26['ok'],'status':_0x3e2b26[_0x530569(0x180)],'statusText':_0x3e2b26[_0x530569(0x189)],'data':_0x167df8,'headers':_0x3e2b26[_0x530569(0x183)],'url':_0x3e2b26['url'],'text':()=>_0x3e2b26[_0x530569(0x18d)]()};}catch(_0x19761d){_0x1c2710=_0x19761d instanceof Error?_0x19761d:new Error(String(_0x19761d));if(_0x4ee232===retries)break;if(shouldRetry(_0x19761d)){console[_0x530569(0x18c)]('*\x20请求失败,'+retryDelay+'ms\x20后进行第\x20'+(_0x4ee232+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1c2710||new Error('Request\x20failed');}function shouldRetry(_0x8fa74){const _0x30d589=a282_0xce43;if(_0x8fa74 instanceof Error){if(_0x8fa74['name']===_0x30d589(0x185))return![];if(_0x8fa74[_0x30d589(0x182)]===_0x30d589(0x181)&&_0x8fa74['message'][_0x30d589(0x17d)](_0x30d589(0x194)))return!![];if(_0x8fa74[_0x30d589(0x197)][_0x30d589(0x17d)](_0x30d589(0x17e)))return!![];if(_0x8fa74[_0x30d589(0x197)]['includes']('ENOTFOUND'))return![];}return![];}function a282_0x2fcb(){const _0x4e6eb7=['application/json','log','text','2001245DPBCFe','content-type','16cCVxvc','6093555FXbDzx','signal','get','fetch','abort','8eIufXZ','message','3072ymiXMH','996Hnnxpr','9344QODhTw','includes','ECONNRESET','2569OxhYih','status','TypeError','name','headers','9FIZAnx','AbortError','18XVyTNJ','121715zvxIiE','393561LdvmUU','statusText','8327170iyjTYQ'];a282_0x2fcb=function(){return _0x4e6eb7;};return a282_0x2fcb();}function sleep(_0x28d440){return new Promise(_0x43ba12=>setTimeout(_0x43ba12,_0x28d440));}export function validateUrl(_0x271f0a){try{return new URL(_0x271f0a),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x461e03,_0x5c6dd3){const _0x351832=a283_0x522e,_0x104993=_0x461e03();while(!![]){try{const _0x1753b1=-parseInt(_0x351832(0x196))/0x1+-parseInt(_0x351832(0x1a2))/0x2*(parseInt(_0x351832(0x19f))/0x3)+parseInt(_0x351832(0x197))/0x4+-parseInt(_0x351832(0x19b))/0x5*(-parseInt(_0x351832(0x19d))/0x6)+parseInt(_0x351832(0x193))/0x7*(parseInt(_0x351832(0x194))/0x8)+parseInt(_0x351832(0x19e))/0x9+-parseInt(_0x351832(0x1a1))/0xa;if(_0x1753b1===_0x5c6dd3)break;else _0x104993['push'](_0x104993['shift']());}catch(_0x2f537b){_0x104993['push'](_0x104993['shift']());}}}(a283_0x86f2,0xbeee1));function env(_0x2ac0db){return process.env[`RABETBASE_${_0x2ac0db}`]||process.env[`LOVRABET_${_0x2ac0db}`]||undefined;}function a283_0x522e(_0x266320,_0xd38ba8){_0x266320=_0x266320-0x192;const _0x86f2f=a283_0x86f2();let _0x522e51=_0x86f2f[_0x266320];return _0x522e51;}export function isNonInteractive(_0x52284e){const _0x264a69=a283_0x522e;return!!(_0x52284e[_0x264a69(0x192)]||_0x52284e['ci']||env('CI')===_0x264a69(0x195)||process.env.CI===_0x264a69(0x195)||!process[_0x264a69(0x1a0)]['isTTY']||!isStdinRawModeSupported());}function a283_0x86f2(){const _0x41acc9=['1639656lKzRFx','isTTY','isRaw','stdin','25rHcatU','setRawMode','1400004DCMqDj','9019584kBRHWq','201ZZtPQI','stdout','10008940NbgTyV','17002ckvNZI','nonInteractive','7DSptPq','7389456PGigLW','true','1149932xLpRQk'];a283_0x86f2=function(){return _0x41acc9;};return a283_0x86f2();}function isStdinRawModeSupported(){const _0x3ac798=a283_0x522e;if(!process[_0x3ac798(0x19a)][_0x3ac798(0x198)])return![];try{const _0x415313=process[_0x3ac798(0x19a)][_0x3ac798(0x199)];return process[_0x3ac798(0x19a)][_0x3ac798(0x19c)](!![]),process[_0x3ac798(0x19a)][_0x3ac798(0x19c)](_0x415313??![]),!![];}catch{return![];}}
1
+ function a283_0x3741(_0x2dc57a,_0x1b5412){_0x2dc57a=_0x2dc57a-0x1ec;const _0x4322e1=a283_0x4322();let _0x3741ff=_0x4322e1[_0x2dc57a];return _0x3741ff;}(function(_0x577cc2,_0x392bf8){const _0x25ab90=a283_0x3741,_0x456f1f=_0x577cc2();while(!![]){try{const _0x388f2f=parseInt(_0x25ab90(0x1ef))/0x1*(-parseInt(_0x25ab90(0x1f5))/0x2)+parseInt(_0x25ab90(0x1f3))/0x3*(parseInt(_0x25ab90(0x1f6))/0x4)+-parseInt(_0x25ab90(0x1ed))/0x5+-parseInt(_0x25ab90(0x1f4))/0x6+-parseInt(_0x25ab90(0x1ee))/0x7+parseInt(_0x25ab90(0x1f0))/0x8+parseInt(_0x25ab90(0x1f1))/0x9;if(_0x388f2f===_0x392bf8)break;else _0x456f1f['push'](_0x456f1f['shift']());}catch(_0x2e85fd){_0x456f1f['push'](_0x456f1f['shift']());}}}(a283_0x4322,0x7716f));function env(_0x217364){return process.env[`RABETBASE_${_0x217364}`]||process.env[`LOVRABET_${_0x217364}`]||undefined;}export function isNonInteractive(_0x458386){const _0x747f04=a283_0x3741;return!!(_0x458386['nonInteractive']||_0x458386['ci']||env('CI')===_0x747f04(0x1f2)||process.env.CI===_0x747f04(0x1f2)||!process[_0x747f04(0x1ec)][_0x747f04(0x1fa)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5b5afc=a283_0x3741;if(!process[_0x5b5afc(0x1f8)][_0x5b5afc(0x1fa)])return![];try{const _0x2c890b=process[_0x5b5afc(0x1f8)][_0x5b5afc(0x1f9)];return process['stdin'][_0x5b5afc(0x1f7)](!![]),process[_0x5b5afc(0x1f8)][_0x5b5afc(0x1f7)](_0x2c890b??![]),!![];}catch{return![];}}function a283_0x4322(){const _0x56055d=['stdin','isRaw','isTTY','stdout','1741275JoCSUy','5665373dEmFiU','4PCBgat','6986080AowXTA','18245016ztdvNn','true','799689QZgofd','4086828oweNkS','420262rYaTin','4IEpifJ','setRawMode'];a283_0x4322=function(){return _0x56055d;};return a283_0x4322();}