@lovrabet/rabetbase-cli 2.4.3 → 2.4.4-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 (381) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.d.ts +2 -0
  87. package/lib/commands/db/diff-refresh-start.js +1 -0
  88. package/lib/commands/db/diff-refresh-status.d.ts +2 -0
  89. package/lib/commands/db/diff-refresh-status.js +1 -0
  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.d.ts +2 -0
  137. package/lib/commands/notification/config-create.js +1 -0
  138. package/lib/commands/notification/config-delete.d.ts +2 -0
  139. package/lib/commands/notification/config-delete.js +1 -0
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.d.ts +2 -0
  142. package/lib/commands/notification/config-update.js +1 -0
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.d.ts +97 -0
  145. package/lib/commands/notification/shared.js +1 -0
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/generate-start.js +1 -1
  148. package/lib/commands/page/generate-status.js +1 -1
  149. package/lib/commands/page/index.js +1 -1
  150. package/lib/commands/page/pull.js +1 -1
  151. package/lib/commands/page/push.js +1 -1
  152. package/lib/commands/page/react/create.js +1 -1
  153. package/lib/commands/page/react/detail.js +1 -1
  154. package/lib/commands/page/react/list.js +1 -1
  155. package/lib/commands/page/react/publish.js +1 -1
  156. package/lib/commands/page/react/shared.js +1 -1
  157. package/lib/commands/page/react/syntax.js +1 -1
  158. package/lib/commands/page/react/template.js +1 -1
  159. package/lib/commands/page/react/update.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/standard-page-status.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/permit/index.js +1 -1
  166. package/lib/commands/permit/page-get.js +1 -1
  167. package/lib/commands/permit/page-set.js +1 -1
  168. package/lib/commands/permit/role-apis-set.js +1 -1
  169. package/lib/commands/permit/role-menus-set.js +1 -1
  170. package/lib/commands/permit/role-menus.js +1 -1
  171. package/lib/commands/permit/shared.js +1 -1
  172. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  173. package/lib/commands/project/create/format-elapsed.js +1 -1
  174. package/lib/commands/project/create/main.d.ts +1 -0
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.d.ts +11 -0
  177. package/lib/commands/project/create/materialize-project-template.js +1 -0
  178. package/lib/commands/project/create/project-name.d.ts +2 -0
  179. package/lib/commands/project/create/project-name.js +1 -0
  180. package/lib/commands/project/create/project-template-archive.d.ts +6 -0
  181. package/lib/commands/project/create/project-template-archive.js +1 -0
  182. package/lib/commands/project/create/project-template-path.d.ts +1 -3
  183. package/lib/commands/project/create/project-template-path.js +1 -1
  184. package/lib/commands/project/create/use-copy-project-template.d.ts +2 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/index.js +1 -1
  189. package/lib/commands/project/upgrade.js +1 -1
  190. package/lib/commands/registry.js +1 -1
  191. package/lib/commands/role/create.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/run/index.js +1 -1
  202. package/lib/commands/schema.js +1 -1
  203. package/lib/commands/sql/create.js +1 -1
  204. package/lib/commands/sql/delete.js +1 -1
  205. package/lib/commands/sql/detail.js +1 -1
  206. package/lib/commands/sql/exec.js +1 -1
  207. package/lib/commands/sql/index.js +1 -1
  208. package/lib/commands/sql/list.js +1 -1
  209. package/lib/commands/sql/pull.js +1 -1
  210. package/lib/commands/sql/push.js +1 -1
  211. package/lib/commands/sql/shared.js +1 -1
  212. package/lib/commands/sql/status.js +1 -1
  213. package/lib/commands/sql/validate.js +1 -1
  214. package/lib/commands/task/index.js +1 -1
  215. package/lib/commands/task/status.js +1 -1
  216. package/lib/commands/tenant/index.js +1 -1
  217. package/lib/commands/tenant/members-list.js +1 -1
  218. package/lib/commands/tenant/shared.js +1 -1
  219. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  220. package/lib/commands/user-account/index.js +1 -1
  221. package/lib/commands/workspace/add.js +1 -1
  222. package/lib/commands/workspace/index.js +1 -1
  223. package/lib/commands/workspace/remove.js +1 -1
  224. package/lib/config/schema.js +1 -1
  225. package/lib/constant/cdn.d.ts +2 -0
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.js +1 -1
  230. package/lib/constant/env.js +1 -1
  231. package/lib/constant/output.js +1 -1
  232. package/lib/constant/paths.js +1 -1
  233. package/lib/constant/risk.js +1 -1
  234. package/lib/context/app-resolver.js +1 -1
  235. package/lib/context/auth-resolver.js +1 -1
  236. package/lib/context/config-loader.js +1 -1
  237. package/lib/context.d.ts +1 -1
  238. package/lib/context.js +1 -1
  239. package/lib/core/alias-resolver.js +1 -1
  240. package/lib/core/api-client.d.ts +29 -2
  241. package/lib/core/api-client.js +1 -1
  242. package/lib/core/bff/config.js +1 -1
  243. package/lib/core/bff/file-system.js +1 -1
  244. package/lib/core/bff/hash.js +1 -1
  245. package/lib/core/bff/lock.js +1 -1
  246. package/lib/core/bff/utils.js +1 -1
  247. package/lib/core/db-resolver.js +1 -1
  248. package/lib/core/page/file-system.js +1 -1
  249. package/lib/core/page/hash.js +1 -1
  250. package/lib/core/page/lock.js +1 -1
  251. package/lib/core/sql-index-auditor.js +1 -1
  252. package/lib/core/sql-sync/config.js +1 -1
  253. package/lib/core/sql-sync/file-system.js +1 -1
  254. package/lib/core/sql-sync/hash.js +1 -1
  255. package/lib/core/sql-sync/lock.js +1 -1
  256. package/lib/core/sql-sync/utils.js +1 -1
  257. package/lib/core/sql-validator.js +1 -1
  258. package/lib/errors.js +1 -1
  259. package/lib/framework/build-all-flags.js +1 -1
  260. package/lib/framework/error-output.js +1 -1
  261. package/lib/framework/explicit-yes.js +1 -1
  262. package/lib/framework/flags.js +1 -1
  263. package/lib/framework/help.js +1 -1
  264. package/lib/framework/index.js +1 -1
  265. package/lib/framework/output.js +1 -1
  266. package/lib/framework/response.js +1 -1
  267. package/lib/framework/runner-alias.js +1 -1
  268. package/lib/framework/runner.js +1 -1
  269. package/lib/framework/schema-export.js +1 -1
  270. package/lib/framework/types.js +1 -1
  271. package/lib/generated/build-info.d.ts +4 -4
  272. package/lib/generated/build-info.js +1 -1
  273. package/lib/help.js +1 -1
  274. package/lib/postinstall.js +1 -1
  275. package/lib/runtime/confirmation.js +1 -1
  276. package/lib/runtime/event.js +1 -1
  277. package/lib/runtime/index.js +1 -1
  278. package/lib/runtime/queue.js +1 -1
  279. package/lib/runtime/resolve.js +1 -1
  280. package/lib/skills/builtin-skill.js +1 -1
  281. package/lib/skills/main.js +1 -1
  282. package/lib/skills/npx-skills-add.js +1 -1
  283. package/lib/skills/skill-presence.js +1 -1
  284. package/lib/telemetry/cli-command-trace.js +1 -1
  285. package/lib/telemetry/cli-help-trace.js +1 -1
  286. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  287. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  288. package/lib/telemetry/send-cli-trace-log.js +1 -1
  289. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  290. package/lib/utils/ai_config.js +1 -1
  291. package/lib/utils/apply-jq-filter.js +1 -1
  292. package/lib/utils/cdn-config.js +1 -1
  293. package/lib/utils/check-sdk-version.js +1 -1
  294. package/lib/utils/cli-version-check.js +1 -1
  295. package/lib/utils/cli-version-policy.d.ts +13 -0
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/rules-cdn.js +1 -1
  307. package/lib/utils/sleep.js +1 -1
  308. package/lib/utils/template-replacer.js +1 -1
  309. package/lib/utils/update-notice.js +1 -1
  310. package/lib/utils/version.js +1 -1
  311. package/lib/utils/with-active-cookie.js +1 -1
  312. package/lib/utils/write-cli-side-channel.js +1 -1
  313. package/package.json +9 -4
  314. package/skills/rabetbase/SKILL.md +33 -22
  315. package/skills/rabetbase/guides/backend-function.md +5 -3
  316. package/skills/rabetbase/guides/bff-creation-workflow.md +2 -2
  317. package/skills/rabetbase/guides/conflict-detection.md +2 -2
  318. package/skills/rabetbase/guides/database-connection-workflow.md +39 -5
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +16 -4
  320. package/skills/rabetbase/guides/sql-creation-workflow.md +4 -2
  321. package/skills/rabetbase/guides/sql-mybatis.md +2 -2
  322. package/skills/rabetbase/knowledge/page-schema/YtPage.md +3 -37
  323. package/skills/rabetbase/knowledge/react-page/generation-standards.md +14 -3
  324. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  325. package/skills/rabetbase/references/rabetbase-bff-push.md +4 -5
  326. package/skills/rabetbase/references/rabetbase-bff-save.md +3 -3
  327. package/skills/rabetbase/references/rabetbase-config.md +2 -2
  328. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -2
  329. package/skills/rabetbase/references/rabetbase-db-detail.md +3 -0
  330. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +53 -0
  331. package/skills/rabetbase/references/rabetbase-db-diff.md +40 -21
  332. package/skills/rabetbase/references/rabetbase-db-list.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-kb.md +5 -3
  334. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -10
  335. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +1 -3
  336. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +2 -3
  337. package/skills/rabetbase/references/rabetbase-notification-config-list.md +2 -2
  338. package/skills/rabetbase/references/rabetbase-notification-config-mutations.md +56 -0
  339. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-react-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-react-publish.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +3 -0
  343. package/skills/rabetbase/references/rabetbase-run.md +1 -1
  344. package/skills/rabetbase/references/rabetbase-sql-create.md +1 -1
  345. package/skills/rabetbase/references/rabetbase-sql-push.md +3 -4
  346. package/skills/rabetbase/references/rabetbase-user-account.md +0 -1
  347. package/skills/rabetbase.manifest.json +5 -5
  348. package/templates/README.md +14 -2
  349. package/lib/commands/project/create/non-interactive.d.ts +0 -9
  350. package/lib/commands/project/create/non-interactive.js +0 -1
  351. package/lib/utils/copy-directory.d.ts +0 -1
  352. package/lib/utils/copy-directory.js +0 -1
  353. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +0 -291
  354. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +0 -223
  355. package/templates/projects/sub-app-react-demo/.prettierrc +0 -1
  356. package/templates/projects/sub-app-react-demo/CHANGELOG.md +0 -67
  357. package/templates/projects/sub-app-react-demo/README.md +0 -246
  358. package/templates/projects/sub-app-react-demo/docs/quick-start.md +0 -245
  359. package/templates/projects/sub-app-react-demo/index.html +0 -27
  360. package/templates/projects/sub-app-react-demo/package.json +0 -34
  361. package/templates/projects/sub-app-react-demo/public/logo.svg +0 -1
  362. package/templates/projects/sub-app-react-demo/public/vite.svg +0 -1
  363. package/templates/projects/sub-app-react-demo/src/api/api.ts +0 -26
  364. package/templates/projects/sub-app-react-demo/src/api/client.ts +0 -32
  365. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +0 -28
  366. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +0 -55
  367. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +0 -308
  368. package/templates/projects/sub-app-react-demo/src/main.tsx +0 -52
  369. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +0 -570
  370. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +0 -531
  371. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +0 -500
  372. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +0 -641
  373. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +0 -536
  374. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +0 -295
  375. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +0 -242
  376. package/templates/projects/sub-app-react-demo/src/router/index.tsx +0 -30
  377. package/templates/projects/sub-app-react-demo/src/style.css +0 -108
  378. package/templates/projects/sub-app-react-demo/src/utils/api.ts +0 -12
  379. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +0 -2
  380. package/templates/projects/sub-app-react-demo/tsconfig.json +0 -26
  381. package/templates/projects/sub-app-react-demo/vite.config.ts +0 -111
@@ -1 +1 @@
1
- const a262_0x398936=a262_0x35bb;(function(_0x29d4fb,_0x40dff6){const _0x271ce5=a262_0x35bb,_0x1e122e=_0x29d4fb();while(!![]){try{const _0x5dc833=parseInt(_0x271ce5(0xbc))/0x1*(-parseInt(_0x271ce5(0xe3))/0x2)+-parseInt(_0x271ce5(0xe5))/0x3+-parseInt(_0x271ce5(0xb1))/0x4*(parseInt(_0x271ce5(0xb0))/0x5)+-parseInt(_0x271ce5(0xc3))/0x6+-parseInt(_0x271ce5(0xd5))/0x7*(-parseInt(_0x271ce5(0xdf))/0x8)+parseInt(_0x271ce5(0xc5))/0x9*(parseInt(_0x271ce5(0xd3))/0xa)+-parseInt(_0x271ce5(0xb4))/0xb*(-parseInt(_0x271ce5(0xd0))/0xc);if(_0x5dc833===_0x40dff6)break;else _0x1e122e['push'](_0x1e122e['shift']());}catch(_0x3ada1){_0x1e122e['push'](_0x1e122e['shift']());}}}(a262_0x3763,0x56574));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=a262_0x398936(0xc9);export const NPX_SKILLS_SUBCOMMAND_ADD=a262_0x398936(0xdd);function a262_0x3763(){const _0xfd6098=['lovrabet/lovrabet-skill','state','INSTALL_PARTIAL','message','35825dcFTlN','28cGTMBf','ENOENT','\x20failed\x20target(s)','11ebEerV','expectedSkillName','presence','stdout','reason','EPERM','remove','yes','10702nSrECr','trim','lovrabet/rabetbase','code','toString','push','CHILD_EXIT_NONZERO','126588EOMjSU','join','85851FzPOKb','npx','npm_config_global','NPM_CONFIG_GLOBAL','skills@latest','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','Installer\x20reported\x20','stdio','pipe','present','filter','3047340kRzDcI','checked','inherit','530cqxNIj','absent','711641TmPstu','EACCES','error','status','match','signal','NPX_NOT_FOUND','SKILL_NOT_INSTALLED','add','stderr','16ewRWeF','\x22\x20install\x20state:\x20','--skill','npx\x20terminated\x20by\x20signal\x20','88WpqIoQ','warn','201135CfYPPY','log'];a262_0x3763=function(){return _0xfd6098;};return a262_0x3763();}export const NPX_SKILLS_FLAG_SKILL=a262_0x398936(0xe1);export const RABETBASE_SKILL_SOURCE=a262_0x398936(0xbe);export const LEGACY_RABETBASE_SKILL_SOURCE=a262_0x398936(0xe7);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';function a262_0x35bb(_0x3b9b73,_0x33cb47){_0x3b9b73=_0x3b9b73-0xae;const _0x37636b=a262_0x3763();let _0x35bbb2=_0x37636b[_0x3b9b73];return _0x35bbb2;}export function resolveGlobalSkillName(_0x4e1cc0){const _0x22aaa5=a262_0x398936;switch(_0x4e1cc0[_0x22aaa5(0xbd)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x535c35){const _0xade39a=a262_0x398936,_0x218971=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x535c35&&_0x218971[_0xade39a(0xc1)](NPX_SKILLS_FLAG_SKILL,_0x535c35),_0x218971;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a262_0x398936(0xc6),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a262_0x398936(0xc4)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x191fde,_0x591c7b,_0x5369a9){return{'ok':![],'status':_0x591c7b,'code':_0x191fde,'error':'['+_0x191fde+']\x20'+_0x5369a9};}function spawnOptions(_0x1d2881,_0x1a7ac6){const _0x48ef1=a262_0x398936,_0x524ad8={...process.env};return delete _0x524ad8[_0x48ef1(0xc7)],delete _0x524ad8[_0x48ef1(0xc8)],{'cwd':_0x1d2881,'stdio':_0x1a7ac6,'env':_0x524ad8,'shell':![],..._0x1a7ac6===_0x48ef1(0xcd)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x218631,_0x45785e,_0x3294db,_0x2f4510){const _0x8635a7=a262_0x398936,_0x511d0a=[_0x218631[_0x8635a7(0xb7)]?_0x218631[_0x8635a7(0xb7)][_0x8635a7(0xc0)]():'',_0x218631[_0x8635a7(0xde)]?_0x218631[_0x8635a7(0xde)][_0x8635a7(0xc0)]():''][_0x8635a7(0xcf)](Boolean)[_0x8635a7(0xc4)]('\x0a')['trim']();_0x2f4510!=='pipe'&&_0x511d0a&&console[_0x8635a7(0xe6)](_0x511d0a);if(_0x218631[_0x8635a7(0xd7)]){const _0x58cb86=_0x218631[_0x8635a7(0xd7)],_0x39c454=_0x58cb86[_0x8635a7(0xbf)]===_0x8635a7(0xb2)?_0x8635a7(0xdb):_0x58cb86[_0x8635a7(0xbf)]===_0x8635a7(0xb9)||_0x58cb86[_0x8635a7(0xbf)]===_0x8635a7(0xd6)?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0x39c454,_0x218631['status'],_0x58cb86[_0x8635a7(0xaf)]);}if(_0x218631[_0x8635a7(0xda)])return failure('CHILD_TERMINATED',_0x218631['status'],_0x8635a7(0xe2)+_0x218631[_0x8635a7(0xda)]);if(_0x218631['status']!==0x0)return failure(_0x8635a7(0xc2),_0x218631[_0x8635a7(0xd8)],_0x511d0a||'exit\x20'+(_0x218631[_0x8635a7(0xd8)]??'unknown'));const _0x1e0e79=_0x45785e?resolveInstalledSkill(_0x45785e,_0x3294db):undefined,_0x7b4a0f=_0x511d0a[_0x8635a7(0xd9)](/Failed to install\s+(\d+)/i);if(_0x7b4a0f&&Number(_0x7b4a0f[0x1])>0x0){const _0x4539fd=_0x8635a7(0xcb)+_0x7b4a0f[0x1]+_0x8635a7(0xb3)+(_0x511d0a?':\x0a'+_0x511d0a:'');if(_0x1e0e79?.[_0x8635a7(0xe8)]===_0x8635a7(0xce))return console[_0x8635a7(0xe4)]('!\x20'+_0x4539fd),{'ok':!![],'status':0x0};return failure(_0x8635a7(0xae),0x0,_0x4539fd);}if(_0x1e0e79){if(_0x1e0e79[_0x8635a7(0xe8)]===_0x8635a7(0xd4))return failure(_0x8635a7(0xdc),0x0,'Skill\x20\x22'+_0x45785e+_0x8635a7(0xca)+_0x1e0e79[_0x8635a7(0xd1)][_0x8635a7(0xc4)](',\x20')+')');_0x1e0e79['state']==='unverifiable'&&console[_0x8635a7(0xe4)]('!\x20Could\x20not\x20verify\x20\x22'+_0x45785e+_0x8635a7(0xe0)+_0x1e0e79[_0x8635a7(0xb8)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x20d7db,_0x17191b){const _0x36be7d=a262_0x398936;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1e512f=_0x17191b?.[_0x36be7d(0xcc)]??_0x36be7d(0xd2),_0x53ff10=resolveNpmBin(_0x36be7d(0xc6)),_0x3520a4=buildNpxSkillsAddArgv(_0x17191b?.['skill']),_0x20a59f=[_0x36be7d(0xc6),..._0x3520a4][_0x36be7d(0xc4)]('\x20');console[_0x36be7d(0xe6)]('*\x20'+_0x20a59f);const _0x2c7d55=spawnSync(_0x53ff10,_0x3520a4,spawnOptions(_0x20d7db,_0x1e512f));return normalizeSpawnResult(_0x2c7d55,undefined,undefined,_0x1e512f);}export function runNpxSkillsRemove(_0x574cf6,_0x7c21fc,_0x4f0082=LEGACY_RABETBASE_SKILL_SOURCE){const _0x51220a=a262_0x398936;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xfcbb20=_0x7c21fc?.[_0x51220a(0xcc)]??_0x51220a(0xd2),_0x19e267=resolveNpmBin('npx'),_0x316989=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x51220a(0xba),_0x4f0082,NPX_SKILLS_FLAG_SKILL,_0x7c21fc?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x7c21fc?.[_0x51220a(0xbb)]?['-y']:[]],_0x2f9cca=[_0x19e267,..._0x316989][_0x51220a(0xc4)]('\x20');console[_0x51220a(0xe6)]('*\x20'+_0x2f9cca);const _0x5c727b=spawnSync(_0x19e267,_0x316989,spawnOptions(_0x574cf6,_0xfcbb20));return normalizeSpawnResult(_0x5c727b,undefined,undefined,_0xfcbb20);}export function runNpxSkillsAddGlobal(_0x463a26,_0x16e62d,_0x323424){const _0xcc72a=a262_0x398936;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3b6d5a=resolveNpmBin(_0xcc72a(0xc6)),_0x433ce0=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x16e62d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x6f49c2=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x16e62d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xcc72a(0xc4)]('\x20');console['log']('*\x20'+_0x6f49c2);const _0x2d54f7=spawnSync(_0x3b6d5a,_0x433ce0,spawnOptions(_0x463a26,'pipe'));return normalizeSpawnResult(_0x2d54f7,_0x323424?.[_0xcc72a(0xb5)]??resolveGlobalSkillName(_0x16e62d),_0x323424?.[_0xcc72a(0xb6)],_0x323424?.[_0xcc72a(0xcc)]);}
1
+ const a270_0x2b87f1=a270_0xdd27;(function(_0x287815,_0x213336){const _0x2062b7=a270_0xdd27,_0x1ea88c=_0x287815();while(!![]){try{const _0x647007=parseInt(_0x2062b7(0x132))/0x1+-parseInt(_0x2062b7(0x10b))/0x2*(parseInt(_0x2062b7(0x11f))/0x3)+parseInt(_0x2062b7(0x131))/0x4*(-parseInt(_0x2062b7(0x102))/0x5)+parseInt(_0x2062b7(0x117))/0x6*(parseInt(_0x2062b7(0x101))/0x7)+-parseInt(_0x2062b7(0xfe))/0x8+-parseInt(_0x2062b7(0x10d))/0x9*(parseInt(_0x2062b7(0x133))/0xa)+parseInt(_0x2062b7(0x135))/0xb;if(_0x647007===_0x213336)break;else _0x1ea88c['push'](_0x1ea88c['shift']());}catch(_0x3118f1){_0x1ea88c['push'](_0x1ea88c['shift']());}}}(a270_0x317f,0x6fc83));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='add';export const NPX_SKILLS_FLAG_SKILL=a270_0x2b87f1(0x120);export const RABETBASE_SKILL_SOURCE=a270_0x2b87f1(0x115);export const LEGACY_RABETBASE_SKILL_SOURCE=a270_0x2b87f1(0x11e);export const DEFAULT_RABETBASE_SKILL_NAME=a270_0x2b87f1(0x110);function a270_0x317f(){const _0x1ab78f=['checked','signal','INSTALL_PARTIAL','push','absent','inherit','EACCES','unverifiable','error','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','rabetbase','pipe','4JgxfhJ','460172aexFgS','8565670IGVbOz','exit\x20','8823210mkODhd','CHILD_TERMINATED','yes','reason','546216CLpPIi','skill','code','4522CVQGuB','2677705TAjVeh','message','ENOENT','Skill\x20\x22','filter','toString','log','PERMISSION_DENIED','warn','2vLNZug','SKILL_NOT_INSTALLED','9uTMmBY','SPAWN_FAILED','stdout','Lovrabet','match','CHILD_EXIT_NONZERO','npm_config_global','state','lovrabet/rabetbase','unknown','7074MyqoCC','stderr','npx','!\x20Could\x20not\x20verify\x20\x22','npx\x20terminated\x20by\x20signal\x20','EPERM','trim','lovrabet/lovrabet-skill','317016vKCeLj','--skill','stdio','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','join','status'];a270_0x317f=function(){return _0x1ab78f;};return a270_0x317f();}export const RABETBASE_GLOBAL_SKILL_NAME=a270_0x2b87f1(0x12f);export const RABETBASE_SKILL_GIT_SOURCE=a270_0x2b87f1(0x12e);export function resolveGlobalSkillName(_0x1e056e){const _0x13a48f=a270_0x2b87f1;switch(_0x1e056e[_0x13a48f(0x11d)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1b5302){const _0x328398=a270_0x2b87f1,_0xe6d3f4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1b5302&&_0xe6d3f4[_0x328398(0x128)](NPX_SKILLS_FLAG_SKILL,_0x1b5302),_0xe6d3f4;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a270_0x2b87f1(0x119),...buildNpxSkillsAddArgv()][a270_0x2b87f1(0x123)]('\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][a270_0x2b87f1(0x123)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2f90e8,_0x4056b9,_0x2d33b0){return{'ok':![],'status':_0x4056b9,'code':_0x2f90e8,'error':'['+_0x2f90e8+']\x20'+_0x2d33b0};}function spawnOptions(_0x4574a8,_0x711e87){const _0x11fc87=a270_0x2b87f1,_0xf8e0cb={...process.env};return delete _0xf8e0cb[_0x11fc87(0x113)],delete _0xf8e0cb['NPM_CONFIG_GLOBAL'],{'cwd':_0x4574a8,'stdio':_0x711e87,'env':_0xf8e0cb,'shell':![],..._0x711e87===_0x11fc87(0x130)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4fe940,_0x2106d2,_0x21a717,_0x1e057c){const _0x63b421=a270_0x2b87f1,_0xad929f=[_0x4fe940[_0x63b421(0x10f)]?_0x4fe940[_0x63b421(0x10f)][_0x63b421(0x107)]():'',_0x4fe940[_0x63b421(0x118)]?_0x4fe940[_0x63b421(0x118)][_0x63b421(0x107)]():''][_0x63b421(0x106)](Boolean)['join']('\x0a')[_0x63b421(0x11d)]();_0x1e057c!==_0x63b421(0x130)&&_0xad929f&&console[_0x63b421(0x108)](_0xad929f);if(_0x4fe940[_0x63b421(0x12d)]){const _0x134fab=_0x4fe940['error'],_0x2b4bae=_0x134fab[_0x63b421(0x100)]===_0x63b421(0x104)?'NPX_NOT_FOUND':_0x134fab['code']===_0x63b421(0x11c)||_0x134fab[_0x63b421(0x100)]===_0x63b421(0x12b)?_0x63b421(0x109):_0x63b421(0x10e);return failure(_0x2b4bae,_0x4fe940[_0x63b421(0x124)],_0x134fab[_0x63b421(0x103)]);}if(_0x4fe940[_0x63b421(0x126)])return failure(_0x63b421(0x136),_0x4fe940['status'],_0x63b421(0x11b)+_0x4fe940[_0x63b421(0x126)]);if(_0x4fe940[_0x63b421(0x124)]!==0x0)return failure(_0x63b421(0x112),_0x4fe940[_0x63b421(0x124)],_0xad929f||_0x63b421(0x134)+(_0x4fe940[_0x63b421(0x124)]??_0x63b421(0x116)));const _0x3cd3de=_0x2106d2?resolveInstalledSkill(_0x2106d2,_0x21a717):undefined,_0x144f43=_0xad929f[_0x63b421(0x111)](/Failed to install\s+(\d+)/i);if(_0x144f43&&Number(_0x144f43[0x1])>0x0){const _0x24e66f='Installer\x20reported\x20'+_0x144f43[0x1]+'\x20failed\x20target(s)'+(_0xad929f?':\x0a'+_0xad929f:'');if(_0x3cd3de?.[_0x63b421(0x114)]==='present')return console[_0x63b421(0x10a)]('!\x20'+_0x24e66f),{'ok':!![],'status':0x0};return failure(_0x63b421(0x127),0x0,_0x24e66f);}if(_0x3cd3de){if(_0x3cd3de[_0x63b421(0x114)]===_0x63b421(0x129))return failure(_0x63b421(0x10c),0x0,_0x63b421(0x105)+_0x2106d2+_0x63b421(0x122)+_0x3cd3de[_0x63b421(0x125)][_0x63b421(0x123)](',\x20')+')');_0x3cd3de[_0x63b421(0x114)]===_0x63b421(0x12c)&&console['warn'](_0x63b421(0x11a)+_0x2106d2+'\x22\x20install\x20state:\x20'+_0x3cd3de[_0x63b421(0xfd)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x321528,_0x369bc6){const _0x1f691e=a270_0x2b87f1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x56110e=_0x369bc6?.['stdio']??'inherit',_0x47a718=resolveNpmBin('npx'),_0x428144=buildNpxSkillsAddArgv(_0x369bc6?.[_0x1f691e(0xff)]),_0x449e04=[_0x1f691e(0x119),..._0x428144][_0x1f691e(0x123)]('\x20');console[_0x1f691e(0x108)]('*\x20'+_0x449e04);const _0x4cc520=spawnSync(_0x47a718,_0x428144,spawnOptions(_0x321528,_0x56110e));return normalizeSpawnResult(_0x4cc520,undefined,undefined,_0x56110e);}export function runNpxSkillsRemove(_0x3c15ec,_0xd2db18,_0x53756b=LEGACY_RABETBASE_SKILL_SOURCE){const _0x226326=a270_0x2b87f1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x54d561=_0xd2db18?.[_0x226326(0x121)]??_0x226326(0x12a),_0x500b98=resolveNpmBin(_0x226326(0x119)),_0x73a72e=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x53756b,NPX_SKILLS_FLAG_SKILL,_0xd2db18?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0xd2db18?.[_0x226326(0xfc)]?['-y']:[]],_0x32684b=[_0x500b98,..._0x73a72e]['join']('\x20');console[_0x226326(0x108)]('*\x20'+_0x32684b);const _0x109e99=spawnSync(_0x500b98,_0x73a72e,spawnOptions(_0x3c15ec,_0x54d561));return normalizeSpawnResult(_0x109e99,undefined,undefined,_0x54d561);}function a270_0xdd27(_0x2f1519,_0x1ac136){_0x2f1519=_0x2f1519-0xfc;const _0x317f88=a270_0x317f();let _0xdd271b=_0x317f88[_0x2f1519];return _0xdd271b;}export function runNpxSkillsAddGlobal(_0x3c278e,_0x4e2fff,_0x39b47e){const _0x41ebc8=a270_0x2b87f1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xa566d1=resolveNpmBin(_0x41ebc8(0x119)),_0x3fca10=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e2fff,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x789022=[_0x41ebc8(0x119),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e2fff,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x41ebc8(0x123)]('\x20');console['log']('*\x20'+_0x789022);const _0x5c799a=spawnSync(_0xa566d1,_0x3fca10,spawnOptions(_0x3c278e,_0x41ebc8(0x130)));return normalizeSpawnResult(_0x5c799a,_0x39b47e?.['expectedSkillName']??resolveGlobalSkillName(_0x4e2fff),_0x39b47e?.['presence'],_0x39b47e?.['stdio']);}
@@ -1 +1 @@
1
- const a263_0x306e84=a263_0xf0ca;(function(_0x5054be,_0x173eda){const _0x226e03=a263_0xf0ca,_0x431998=_0x5054be();while(!![]){try{const _0x4cf906=parseInt(_0x226e03(0x179))/0x1*(-parseInt(_0x226e03(0x161))/0x2)+-parseInt(_0x226e03(0x15b))/0x3*(parseInt(_0x226e03(0x15c))/0x4)+parseInt(_0x226e03(0x167))/0x5+parseInt(_0x226e03(0x15d))/0x6+parseInt(_0x226e03(0x169))/0x7+-parseInt(_0x226e03(0x165))/0x8*(-parseInt(_0x226e03(0x15f))/0x9)+parseInt(_0x226e03(0x16b))/0xa*(-parseInt(_0x226e03(0x168))/0xb);if(_0x4cf906===_0x173eda)break;else _0x431998['push'](_0x431998['shift']());}catch(_0x3cef0f){_0x431998['push'](_0x431998['shift']());}}}(a263_0x25bf,0x7f56f));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a263_0x25bf(){const _0x210248=['3274765jhCkaN','35255sMEaaT','3096177aKiraD','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','2700rDROXo','.agents','reason','join','home','unverifiable','skills','lockFile','recorded','map','not-recorded','SKILL.md','\x20records\x20\x22','find','756827zNKFqu','version','object','kind','.claude','289290bMNKvr','24wPHXDV','4874766cVUmme','\x20is\x20unreadable:\x20','45WQswNC','utf8','2YAkHYI','unusable','\x20has\x20no\x20skills\x20map','\x20uses\x20unsupported\x20version\x20','1300184GWuFfc','present'];a263_0x25bf=function(){return _0x210248;};return a263_0x25bf();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a263_0x306e84(0x16c),'skills'),join(a263_0x306e84(0x15a),'skills')];function a263_0xf0ca(_0x15a32d,_0x257398){_0x15a32d=_0x15a32d-0x159;const _0x25bf69=a263_0x25bf();let _0xf0ca34=_0x25bf69[_0x15a32d];return _0xf0ca34;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x1067ed,_0x51c833){const _0x5965e7=a263_0x306e84;if(!existsSync(_0x1067ed))return{'kind':_0x5965e7(0x175)};let _0x498034;try{_0x498034=JSON['parse'](readFileSync(_0x1067ed,_0x5965e7(0x160)));}catch(_0x3ae427){return{'kind':'unusable','reason':_0x1067ed+_0x5965e7(0x15e)+_0x3ae427['message']};}const _0x5bb8c0=_0x498034;if(typeof _0x5bb8c0?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x5bb8c0[_0x5965e7(0x17a)]))return{'kind':_0x5965e7(0x162),'reason':_0x1067ed+_0x5965e7(0x164)+String(_0x5bb8c0?.['version'])};if(!_0x5bb8c0['skills']||typeof _0x5bb8c0['skills']!==_0x5965e7(0x17b))return{'kind':_0x5965e7(0x162),'reason':_0x1067ed+_0x5965e7(0x163)};return _0x5bb8c0[_0x5965e7(0x171)][_0x51c833]?{'kind':_0x5965e7(0x173)}:{'kind':_0x5965e7(0x175)};}export function resolveInstalledSkill(_0x3f6f2c,_0x1e8320){const _0x12a32f=a263_0x306e84,_0x40f1b3=_0x1e8320?.[_0x12a32f(0x16f)]??homedir(),_0xf97792=_0x1e8320?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x12a32f(0x174)](_0x5169ba=>join(_0x40f1b3,_0x5169ba)),_0x476a14=_0x1e8320?.[_0x12a32f(0x172)]??join(_0x40f1b3,SKILL_LOCK_RELATIVE_PATH),_0xa4703e=_0xf97792[_0x12a32f(0x174)](_0x4cbc7c=>join(_0x4cbc7c,_0x3f6f2c,_0x12a32f(0x176))),_0x813013=_0xa4703e[_0x12a32f(0x178)](_0x3250d8=>existsSync(_0x3250d8));if(_0x813013)return{'state':_0x12a32f(0x166),'path':_0x813013};const _0x3fc466=readLockLookup(_0x476a14,_0x3f6f2c);if(_0x3fc466[_0x12a32f(0x159)]===_0x12a32f(0x162))return{'state':_0x12a32f(0x170),'reason':_0x3fc466[_0x12a32f(0x16d)]};if(_0x3fc466[_0x12a32f(0x159)]===_0x12a32f(0x173))return{'state':_0x12a32f(0x170),'reason':_0x476a14+_0x12a32f(0x177)+_0x3f6f2c+_0x12a32f(0x16a)+('('+_0xa4703e[_0x12a32f(0x16e)](',\x20')+')')};return{'state':'absent','checked':_0xa4703e};}
1
+ function a271_0x1d0e(){const _0x5f2c4a=['find','3177048hgPygx','\x20uses\x20unsupported\x20version\x20','unusable','SKILL.md','map','.agents','parse','present','skills','object','join','lockFile','unverifiable','\x20has\x20no\x20skills\x20map','utf8','4725273AjNODp','8nfaRYQ','6827887WDzGoQ','globalSkillsDirs','\x20records\x20\x22','number','.claude','3028mwUBIj','6205VIGgqD','reason','absent','1732zfWsgU','version','10hUgmJi','kind','4xZHGPD','6508071wErjqw','recorded','5038776QBGQNQ','.skill-lock.json'];a271_0x1d0e=function(){return _0x5f2c4a;};return a271_0x1d0e();}const a271_0x377ea2=a271_0x5226;(function(_0x4b26d8,_0x1abde7){const _0x3d3dbd=a271_0x5226,_0x33fb9a=_0x4b26d8();while(!![]){try{const _0xa8599e=parseInt(_0x3d3dbd(0xa7))/0x1*(-parseInt(_0x3d3dbd(0x8b))/0x2)+parseInt(_0x3d3dbd(0x91))/0x3+-parseInt(_0x3d3dbd(0x87))/0x4*(parseInt(_0x3d3dbd(0xa8))/0x5)+parseInt(_0x3d3dbd(0x8e))/0x6+parseInt(_0x3d3dbd(0xa0))/0x7*(-parseInt(_0x3d3dbd(0xa1))/0x8)+parseInt(_0x3d3dbd(0x8c))/0x9*(-parseInt(_0x3d3dbd(0x89))/0xa)+parseInt(_0x3d3dbd(0xa2))/0xb;if(_0xa8599e===_0x1abde7)break;else _0x33fb9a['push'](_0x33fb9a['shift']());}catch(_0x1be7ae){_0x33fb9a['push'](_0x33fb9a['shift']());}}}(a271_0x1d0e,0x8d1aa));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a271_0x377ea2(0x96),a271_0x377ea2(0x8f));function a271_0x5226(_0x4baa16,_0x2bf3f5){_0x4baa16=_0x4baa16-0x86;const _0x1d0ef0=a271_0x1d0e();let _0x522631=_0x1d0ef0[_0x4baa16];return _0x522631;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a271_0x377ea2(0x99)),join(a271_0x377ea2(0xa6),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x140492,_0x2d4a06){const _0x2749fd=a271_0x377ea2;if(!existsSync(_0x140492))return{'kind':'not-recorded'};let _0x532128;try{_0x532128=JSON[_0x2749fd(0x97)](readFileSync(_0x140492,_0x2749fd(0x9f)));}catch(_0x23469f){return{'kind':_0x2749fd(0x93),'reason':_0x140492+'\x20is\x20unreadable:\x20'+_0x23469f['message']};}const _0x1bc80f=_0x532128;if(typeof _0x1bc80f?.['version']!==_0x2749fd(0xa5)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x1bc80f[_0x2749fd(0x88)]))return{'kind':_0x2749fd(0x93),'reason':_0x140492+_0x2749fd(0x92)+String(_0x1bc80f?.['version'])};if(!_0x1bc80f[_0x2749fd(0x99)]||typeof _0x1bc80f[_0x2749fd(0x99)]!==_0x2749fd(0x9a))return{'kind':_0x2749fd(0x93),'reason':_0x140492+_0x2749fd(0x9e)};return _0x1bc80f['skills'][_0x2d4a06]?{'kind':_0x2749fd(0x8d)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x162cb1,_0x2f675e){const _0x292a19=a271_0x377ea2,_0x5cf5d7=_0x2f675e?.['home']??homedir(),_0x1703ca=_0x2f675e?.[_0x292a19(0xa3)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x292a19(0x95)](_0x45b4a4=>join(_0x5cf5d7,_0x45b4a4)),_0x1dc088=_0x2f675e?.[_0x292a19(0x9c)]??join(_0x5cf5d7,SKILL_LOCK_RELATIVE_PATH),_0xa5a50c=_0x1703ca['map'](_0x5e6f32=>join(_0x5e6f32,_0x162cb1,_0x292a19(0x94))),_0x274f0f=_0xa5a50c[_0x292a19(0x90)](_0x26f426=>existsSync(_0x26f426));if(_0x274f0f)return{'state':_0x292a19(0x98),'path':_0x274f0f};const _0x7a0f92=readLockLookup(_0x1dc088,_0x162cb1);if(_0x7a0f92[_0x292a19(0x8a)]===_0x292a19(0x93))return{'state':_0x292a19(0x9d),'reason':_0x7a0f92[_0x292a19(0xa9)]};if(_0x7a0f92[_0x292a19(0x8a)]===_0x292a19(0x8d))return{'state':_0x292a19(0x9d),'reason':_0x1dc088+_0x292a19(0xa4)+_0x162cb1+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0xa5a50c[_0x292a19(0x9b)](',\x20')+')')};return{'state':_0x292a19(0x86),'checked':_0xa5a50c};}
@@ -1 +1 @@
1
- (function(_0x1311c8,_0x40aa2b){const _0xf0d1d2=a264_0x349e,_0x46b8ea=_0x1311c8();while(!![]){try{const _0x11dd9a=parseInt(_0xf0d1d2(0xfa))/0x1*(-parseInt(_0xf0d1d2(0xfc))/0x2)+-parseInt(_0xf0d1d2(0xf3))/0x3*(parseInt(_0xf0d1d2(0xfd))/0x4)+-parseInt(_0xf0d1d2(0xfe))/0x5*(parseInt(_0xf0d1d2(0xf7))/0x6)+-parseInt(_0xf0d1d2(0xf1))/0x7*(-parseInt(_0xf0d1d2(0xfb))/0x8)+-parseInt(_0xf0d1d2(0xea))/0x9*(parseInt(_0xf0d1d2(0xf8))/0xa)+-parseInt(_0xf0d1d2(0xf0))/0xb*(-parseInt(_0xf0d1d2(0xf4))/0xc)+parseInt(_0xf0d1d2(0xf9))/0xd*(parseInt(_0xf0d1d2(0xf5))/0xe);if(_0x11dd9a===_0x40aa2b)break;else _0x46b8ea['push'](_0x46b8ea['shift']());}catch(_0x727756){_0x46b8ea['push'](_0x46b8ea['shift']());}}}(a264_0x4dfb,0x60cdd));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 a264_0x4dfb(){const _0xa20145=['service','rabetbase.command','5931DCoahg','test','durationMs','[REDACTED]','message','entries','11jEbxjt','2680741FzgIjh','flags','861BorPoh','1144812byDzTh','143402ITVPjj','error','34746daWCbH','5140TIbkKK','819NxxdgT','113bvGMXF','16awANnr','7600lfKRgt','1296rWakBD','215vwCroJ'];a264_0x4dfb=function(){return _0xa20145;};return a264_0x4dfb();}function isSensitiveKey(_0x2c7b64){const _0x1d1612=a264_0x349e;return SENSITIVE_PATTERNS['some'](_0x3082d0=>_0x3082d0[_0x1d1612(0xeb)](_0x2c7b64));}function a264_0x349e(_0x4d7672,_0x567ac1){_0x4d7672=_0x4d7672-0xe9;const _0x4dfb37=a264_0x4dfb();let _0x349e12=_0x4dfb37[_0x4d7672];return _0x349e12;}function sanitizeFlags(_0x3423bd){const _0x3ab6e6=a264_0x349e,_0x258cba={};for(const [_0x59475a,_0x4a451c]of Object[_0x3ab6e6(0xef)](_0x3423bd)){isSensitiveKey(_0x59475a)?_0x258cba[_0x59475a]=_0x4a451c!=null&&_0x4a451c!==''?_0x3ab6e6(0xed):_0x4a451c:_0x258cba[_0x59475a]=_0x4a451c;}return _0x258cba;}export async function reportCommandTrace(_0x19b89e){const _0x1a512e=a264_0x349e;try{const _0x33e2f4=sanitizeFlags(_0x19b89e[_0x1a512e(0xf2)]);await sendCliTraceLog({'spanName':_0x1a512e(0xe9),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x19b89e[_0x1a512e(0xff)],'command.name':_0x19b89e['command'],'command.flags':JSON['stringify'](_0x33e2f4),..._0x19b89e[_0x1a512e(0xec)]!=null?{'command.duration_ms':_0x19b89e[_0x1a512e(0xec)]}:{},..._0x19b89e[_0x1a512e(0xf6)]?{'command.error':_0x19b89e[_0x1a512e(0xf6)]instanceof Error?_0x19b89e['error'][_0x1a512e(0xee)]:String(_0x19b89e[_0x1a512e(0xf6)])}:{}}});}catch{}}
1
+ function a272_0x78f5(){const _0x14c123=['1005035eKPPxT','6cRZHIE','417958YwJKUn','message','command','97493vTNVyX','flags','2220agbIXJ','stringify','37242CaHNDF','error','466000orkiBO','durationMs','7RPGETw','3515552gJSrwq','13LneUqC','rabetbase.command','1600eFXczf','test','7XwhYLn','1959580yNEcGD','42rPbtrH'];a272_0x78f5=function(){return _0x14c123;};return a272_0x78f5();}function a272_0x4a8c(_0x1cc3ed,_0x5367a9){_0x1cc3ed=_0x1cc3ed-0x1ed;const _0x78f53f=a272_0x78f5();let _0x4a8c13=_0x78f53f[_0x1cc3ed];return _0x4a8c13;}(function(_0x84c88c,_0x2b016d){const _0x32d7fd=a272_0x4a8c,_0xe13fcb=_0x84c88c();while(!![]){try{const _0x5ca82a=-parseInt(_0x32d7fd(0x1f7))/0x1*(-parseInt(_0x32d7fd(0x1fc))/0x2)+-parseInt(_0x32d7fd(0x1fb))/0x3*(parseInt(_0x32d7fd(0x1ef))/0x4)+-parseInt(_0x32d7fd(0x1fa))/0x5*(-parseInt(_0x32d7fd(0x1f9))/0x6)+-parseInt(_0x32d7fd(0x1f1))/0x7*(-parseInt(_0x32d7fd(0x1f2))/0x8)+-parseInt(_0x32d7fd(0x1ed))/0x9*(parseInt(_0x32d7fd(0x1f5))/0xa)+parseInt(_0x32d7fd(0x1ff))/0xb*(-parseInt(_0x32d7fd(0x201))/0xc)+-parseInt(_0x32d7fd(0x1f3))/0xd*(-parseInt(_0x32d7fd(0x1f8))/0xe);if(_0x5ca82a===_0x2b016d)break;else _0xe13fcb['push'](_0xe13fcb['shift']());}catch(_0x5a324e){_0xe13fcb['push'](_0xe13fcb['shift']());}}}(a272_0x78f5,0xdf495));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(_0x1772e0){const _0x248d0a=a272_0x4a8c;return SENSITIVE_PATTERNS['some'](_0x1e5bde=>_0x1e5bde[_0x248d0a(0x1f6)](_0x1772e0));}function sanitizeFlags(_0x3469a0){const _0x318fdc={};for(const [_0x1071eb,_0x2950bf]of Object['entries'](_0x3469a0)){isSensitiveKey(_0x1071eb)?_0x318fdc[_0x1071eb]=_0x2950bf!=null&&_0x2950bf!==''?'[REDACTED]':_0x2950bf:_0x318fdc[_0x1071eb]=_0x2950bf;}return _0x318fdc;}export async function reportCommandTrace(_0x4e5a74){const _0x2ceb82=a272_0x4a8c;try{const _0x3a9492=sanitizeFlags(_0x4e5a74[_0x2ceb82(0x200)]);await sendCliTraceLog({'spanName':_0x2ceb82(0x1f4),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4e5a74['service'],'command.name':_0x4e5a74[_0x2ceb82(0x1fe)],'command.flags':JSON[_0x2ceb82(0x202)](_0x3a9492),..._0x4e5a74[_0x2ceb82(0x1f0)]!=null?{'command.duration_ms':_0x4e5a74[_0x2ceb82(0x1f0)]}:{},..._0x4e5a74[_0x2ceb82(0x1ee)]?{'command.error':_0x4e5a74['error']instanceof Error?_0x4e5a74[_0x2ceb82(0x1ee)][_0x2ceb82(0x1fd)]:String(_0x4e5a74[_0x2ceb82(0x1ee)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a265_0x1f0e(){var _0x2e3717=['707923MYFneG','22ttxXsk','6MAsVMw','16EpvfRY','cli.help','1023393qIDTih','258867xXOugO','1718336FhtmEC','4446710eWwynC','2451788YSSUnE','service','12832596ZmJxWU','3YlrFoW','50cNTyRZ','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a265_0x1f0e=function(){return _0x2e3717;};return a265_0x1f0e();}(function(_0x508221,_0x138933){var _0x14cfbf=a265_0x527c,_0x565b4c=_0x508221();while(!![]){try{var _0xf5d68b=parseInt(_0x14cfbf(0x11d))/0x1+-parseInt(_0x14cfbf(0x117))/0x2*(-parseInt(_0x14cfbf(0x11a))/0x3)+parseInt(_0x14cfbf(0x124))/0x4+-parseInt(_0x14cfbf(0x116))/0x5*(-parseInt(_0x14cfbf(0x11f))/0x6)+parseInt(_0x14cfbf(0x122))/0x7*(-parseInt(_0x14cfbf(0x120))/0x8)+parseInt(_0x14cfbf(0x123))/0x9*(-parseInt(_0x14cfbf(0x11b))/0xa)+-parseInt(_0x14cfbf(0x11e))/0xb*(parseInt(_0x14cfbf(0x119))/0xc);if(_0xf5d68b===_0x138933)break;else _0x565b4c['push'](_0x565b4c['shift']());}catch(_0x581108){_0x565b4c['push'](_0x565b4c['shift']());}}}(a265_0x1f0e,0xa5784));function a265_0x527c(_0x278da8,_0x57be82){_0x278da8=_0x278da8-0x116;var _0x1f0e46=a265_0x1f0e();var _0x527c58=_0x1f0e46[_0x278da8];return _0x527c58;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x59f47a,_0x562a00){var _0xdbac92=a265_0x527c;try{await sendCliTraceLog({'spanName':_0xdbac92(0x121),'logData':{'rabetbase.help.kind':_0x59f47a,..._0x562a00?.[_0xdbac92(0x118)]&&{'rabetbase.help.service':_0x562a00[_0xdbac92(0x118)]}}});}catch(_0x3a75d0){console['error'](_0xdbac92(0x11c),_0x3a75d0);}}
1
+ function a273_0x2adb(){var _0x2be3d=['service','8108112Tvrcwv','240mCAPMT','612flQlSA','44zNPkIW','cli.help','2361496zTwOXt','193120eRXYgn','56kjegES','2420618givDQl','1292493dyyFov','3XnmtbL','161286OCGWaM','Failed\x20to\x20report\x20CLI\x20help\x20trace:','5663DRvxrO','error'];a273_0x2adb=function(){return _0x2be3d;};return a273_0x2adb();}(function(_0x8cf226,_0x4be612){var _0x406da0=a273_0x16c9,_0xbd7930=_0x8cf226();while(!![]){try{var _0x11915e=-parseInt(_0x406da0(0x7b))/0x1+parseInt(_0x406da0(0x7a))/0x2*(-parseInt(_0x406da0(0x7c))/0x3)+parseInt(_0x406da0(0x87))/0x4+-parseInt(_0x406da0(0x83))/0x5*(-parseInt(_0x406da0(0x7d))/0x6)+parseInt(_0x406da0(0x7f))/0x7*(parseInt(_0x406da0(0x89))/0x8)+parseInt(_0x406da0(0x84))/0x9*(-parseInt(_0x406da0(0x88))/0xa)+parseInt(_0x406da0(0x85))/0xb*(parseInt(_0x406da0(0x82))/0xc);if(_0x11915e===_0x4be612)break;else _0xbd7930['push'](_0xbd7930['shift']());}catch(_0x515165){_0xbd7930['push'](_0xbd7930['shift']());}}}(a273_0x2adb,0xbcb93));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a273_0x16c9(_0x42f893,_0x331efc){_0x42f893=_0x42f893-0x7a;var _0x2adb6f=a273_0x2adb();var _0x16c975=_0x2adb6f[_0x42f893];return _0x16c975;}export async function reportCliHelpTrace(_0x4a32e2,_0x290e1c){var _0x570515=a273_0x16c9;try{await sendCliTraceLog({'spanName':_0x570515(0x86),'logData':{'rabetbase.help.kind':_0x4a32e2,..._0x290e1c?.[_0x570515(0x81)]&&{'rabetbase.help.service':_0x290e1c[_0x570515(0x81)]}}});}catch(_0x11606d){console[_0x570515(0x80)](_0x570515(0x7e),_0x11606d);}}
@@ -1 +1 @@
1
- function a266_0x3a5a(){const _0x1b3be6=['24AWMFTv','606lmMDHC','7044608bWnnLL','5rQwzkG','tenant','3126134VRJnNb','2106764OGohFo','nickname','956579ykeVfs','username','unknown','tenant_code','production','3086qNmEbh','40306oYLyRv','7357896ItSKdV','80lguNtd'];a266_0x3a5a=function(){return _0x1b3be6;};return a266_0x3a5a();}(function(_0x7bd7ec,_0x4287c2){const _0x17ae22=a266_0x209c,_0x35fb40=_0x7bd7ec();while(!![]){try{const _0x2413c6=parseInt(_0x17ae22(0x191))/0x1+-parseInt(_0x17ae22(0x196))/0x2*(parseInt(_0x17ae22(0x19b))/0x3)+parseInt(_0x17ae22(0x1a0))/0x4*(-parseInt(_0x17ae22(0x19d))/0x5)+parseInt(_0x17ae22(0x19a))/0x6*(-parseInt(_0x17ae22(0x197))/0x7)+-parseInt(_0x17ae22(0x19c))/0x8+-parseInt(_0x17ae22(0x198))/0x9+parseInt(_0x17ae22(0x199))/0xa*(parseInt(_0x17ae22(0x19f))/0xb);if(_0x2413c6===_0x4287c2)break;else _0x35fb40['push'](_0x35fb40['shift']());}catch(_0x2dbf99){_0x35fb40['push'](_0x35fb40['shift']());}}}(a266_0x3a5a,0xa3b8a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a266_0x209c(_0x21c3e5,_0x37e7c7){_0x21c3e5=_0x21c3e5-0x191;const _0x3a5a18=a266_0x3a5a();let _0x209c13=_0x3a5a18[_0x21c3e5];return _0x209c13;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x47d3a3=a266_0x209c,_0x15ff1f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x23848e=_0x15ff1f?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x47d3a3(0x193)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x47d3a3(0x195))}),setUserContext({'id':_0x23848e?.['id'],'username':_0x23848e?.[_0x47d3a3(0x192)],'nickname':_0x23848e?.[_0x47d3a3(0x1a1)],'email':_0x23848e?.['email'],'tenantCode':_0x23848e?.[_0x47d3a3(0x19e)]?.[_0x47d3a3(0x194)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x15ff1f;}
1
+ (function(_0x39150b,_0x178ac0){const _0x203d07=a274_0x6910,_0x45d423=_0x39150b();while(!![]){try{const _0x27c798=parseInt(_0x203d07(0x9f))/0x1*(parseInt(_0x203d07(0xa1))/0x2)+parseInt(_0x203d07(0xa0))/0x3+-parseInt(_0x203d07(0x9e))/0x4+-parseInt(_0x203d07(0x9d))/0x5*(parseInt(_0x203d07(0xaa))/0x6)+parseInt(_0x203d07(0x99))/0x7+-parseInt(_0x203d07(0x9b))/0x8+parseInt(_0x203d07(0x9c))/0x9;if(_0x27c798===_0x178ac0)break;else _0x45d423['push'](_0x45d423['shift']());}catch(_0x55c919){_0x45d423['push'](_0x45d423['shift']());}}}(a274_0x4209,0x55fac));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a274_0x4209(){const _0x15a79c=['production','nickname','unknown','tenant_code','user','daily','username','2895822ubGoVL','233891elCEab','tenant','4585680JdVnyp','9491103qMXqdG','5SZGtgO','680276yEBFab','5263NUgXGS','933498WGYJpc','68ghYqqT','email'];a274_0x4209=function(){return _0x15a79c;};return a274_0x4209();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a274_0x6910(_0x59b153,_0x2b57b6){_0x59b153=_0x59b153-0x99;const _0x4209b5=a274_0x4209();let _0x691037=_0x4209b5[_0x59b153];return _0x691037;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x15ceee=a274_0x6910,_0x1f7030=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3acf04=_0x1f7030?.[_0x15ceee(0xa7)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x15ceee(0xa5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x15ceee(0xa8):_0x15ceee(0xa3))}),setUserContext({'id':_0x3acf04?.['id'],'username':_0x3acf04?.[_0x15ceee(0xa9)],'nickname':_0x3acf04?.[_0x15ceee(0xa4)],'email':_0x3acf04?.[_0x15ceee(0xa2)],'tenantCode':_0x3acf04?.[_0x15ceee(0x9a)]?.[_0x15ceee(0xa6)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1f7030;}
@@ -1 +1 @@
1
- (function(_0x2b0d63,_0x226583){const _0x142a3=a267_0x2560,_0x1c274b=_0x2b0d63();while(!![]){try{const _0xb493db=-parseInt(_0x142a3(0x132))/0x1+-parseInt(_0x142a3(0x12f))/0x2+-parseInt(_0x142a3(0x126))/0x3+-parseInt(_0x142a3(0x12a))/0x4*(-parseInt(_0x142a3(0x127))/0x5)+-parseInt(_0x142a3(0x12d))/0x6+parseInt(_0x142a3(0x12e))/0x7*(parseInt(_0x142a3(0x130))/0x8)+parseInt(_0x142a3(0x129))/0x9;if(_0xb493db===_0x226583)break;else _0x1c274b['push'](_0x1c274b['shift']());}catch(_0x3edae7){_0x1c274b['push'](_0x1c274b['shift']());}}}(a267_0x1713,0x4ff7b));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 a267_0x2560(_0x48800a,_0x168dbb){_0x48800a=_0x48800a-0x126;const _0x171394=a267_0x1713();let _0x256091=_0x171394[_0x48800a];return _0x256091;}export function registerOtelShutdownOnExit(){const _0x4e9b50=a267_0x2560;process[_0x4e9b50(0x12c)](_0x4e9b50(0x133),()=>{void flushOtelNodeIfUsed();});const _0x171a01=()=>{const _0x4c245d=_0x4e9b50;void flushOtelNodeIfUsed()[_0x4c245d(0x12b)](()=>process[_0x4c245d(0x128)](0x0));};process[_0x4e9b50(0x12c)](_0x4e9b50(0x131),_0x171a01),process[_0x4e9b50(0x12c)]('SIGTERM',_0x171a01);}function a267_0x1713(){const _0xb88fe3=['14688630hsrVIm','16VlocSf','then','once','3678882LORUuV','12516uoJzuT','1133996gnGdhR','952FfEReB','SIGINT','125439tsvUDY','beforeExit','996273MADquf','150475TayNQp','exit'];a267_0x1713=function(){return _0xb88fe3;};return a267_0x1713();}export async function exitWithOtelShutdown(_0x43986d){const _0x5ef8dc=a267_0x2560;await flushOtelNodeIfUsed(),process[_0x5ef8dc(0x128)](_0x43986d);}
1
+ (function(_0x324fce,_0x533822){const _0x3cc99c=a275_0x41e5,_0x269b87=_0x324fce();while(!![]){try{const _0x1f6400=-parseInt(_0x3cc99c(0x191))/0x1+parseInt(_0x3cc99c(0x192))/0x2+-parseInt(_0x3cc99c(0x18d))/0x3*(-parseInt(_0x3cc99c(0x182))/0x4)+parseInt(_0x3cc99c(0x183))/0x5*(parseInt(_0x3cc99c(0x18e))/0x6)+parseInt(_0x3cc99c(0x18a))/0x7*(parseInt(_0x3cc99c(0x18c))/0x8)+parseInt(_0x3cc99c(0x184))/0x9+-parseInt(_0x3cc99c(0x189))/0xa*(parseInt(_0x3cc99c(0x18b))/0xb);if(_0x1f6400===_0x533822)break;else _0x269b87['push'](_0x269b87['shift']());}catch(_0x23c33d){_0x269b87['push'](_0x269b87['shift']());}}}(a275_0x5a2c,0xee043));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a275_0x5a2c(){const _0x3dc91a=['once','SIGINT','beforeExit','SIGTERM','29813990xaTIbb','7SrbHrB','11bKoVyc','13098088TkIimv','39891rzIJKu','486DppMfb','exit','then','858082PYjsTD','1903642WLAaGv','284IToiXe','14165zVlQzS','9465786LQqdnx'];a275_0x5a2c=function(){return _0x3dc91a;};return a275_0x5a2c();}function a275_0x41e5(_0x21e425,_0xf28754){_0x21e425=_0x21e425-0x182;const _0x5a2c0a=a275_0x5a2c();let _0x41e50d=_0x5a2c0a[_0x21e425];return _0x41e50d;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2a957a=a275_0x41e5;process[_0x2a957a(0x185)](_0x2a957a(0x187),()=>{void flushOtelNodeIfUsed();});const _0x510b1d=()=>{const _0x3461f5=_0x2a957a;void flushOtelNodeIfUsed()[_0x3461f5(0x190)](()=>process[_0x3461f5(0x18f)](0x0));};process[_0x2a957a(0x185)](_0x2a957a(0x186),_0x510b1d),process[_0x2a957a(0x185)](_0x2a957a(0x188),_0x510b1d);}export async function exitWithOtelShutdown(_0x100954){const _0x1fefc6=a275_0x41e5;await flushOtelNodeIfUsed(),process[_0x1fefc6(0x18f)](_0x100954);}
@@ -1 +1 @@
1
- const a268_0x56d481=a268_0xaba0;(function(_0x4308c9,_0xa56146){const _0x271fee=a268_0xaba0,_0xb01517=_0x4308c9();while(!![]){try{const _0xbffff1=parseInt(_0x271fee(0x16a))/0x1+parseInt(_0x271fee(0x170))/0x2+parseInt(_0x271fee(0x163))/0x3*(parseInt(_0x271fee(0x16c))/0x4)+-parseInt(_0x271fee(0x169))/0x5*(-parseInt(_0x271fee(0x16b))/0x6)+-parseInt(_0x271fee(0x165))/0x7*(-parseInt(_0x271fee(0x160))/0x8)+parseInt(_0x271fee(0x164))/0x9*(parseInt(_0x271fee(0x166))/0xa)+-parseInt(_0x271fee(0x16d))/0xb;if(_0xbffff1===_0xa56146)break;else _0xb01517['push'](_0xb01517['shift']());}catch(_0x28cf49){_0xb01517['push'](_0xb01517['shift']());}}}(a268_0xff43,0x67576));function a268_0xaba0(_0x39a6f0,_0x25b5b5){_0x39a6f0=_0x39a6f0-0x15f;const _0xff4368=a268_0xff43();let _0xaba09=_0xff4368[_0x39a6f0];return _0xaba09;}import{sendTraceLog}from'@lovrabet/otel-logger';function a268_0xff43(){const _0x3b418c=['traceparent','1478872sLJsqw','version','traceName','142317ObVidR','2107107GyCEQc','28wrsVNv','10EkuvOr','spanName','logData','5wNutBJ','134622xKrpDJ','2551308UoYnCP','4IIvnfP','17085035qXoeqw','manual','rabetbase-cli','791266ElaFYy'];a268_0xff43=function(){return _0x3b418c;};return a268_0xff43();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a268_0x56d481(0x16f);export async function sendCliTraceLog(_0x41244c){const _0x5c0781=a268_0x56d481;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x41244c[_0x5c0781(0x162)]??DEFAULT_TRACE_NAME,'version':_0x41244c[_0x5c0781(0x161)]??getCliVersion(),'spanName':_0x41244c[_0x5c0781(0x167)],'eventType':_0x5c0781(0x16e),'logData':_0x41244c[_0x5c0781(0x168)],..._0x41244c[_0x5c0781(0x15f)]&&{'traceparent':_0x41244c[_0x5c0781(0x15f)]}});}
1
+ function a276_0x13a8(_0x5d5f8c,_0x426228){_0x5d5f8c=_0x5d5f8c-0x110;const _0x148970=a276_0x1489();let _0x13a8ac=_0x148970[_0x5d5f8c];return _0x13a8ac;}function a276_0x1489(){const _0x2b4bd9=['spanName','4166982IIdvXO','94158FuSXEN','logData','763014duNDtt','rabetbase-cli','version','8sEDCaF','1957520qKxjVl','traceparent','manual','traceName','551185bKRIdm','477264fDXtAD','14axqdUq','83480QqMwNI'];a276_0x1489=function(){return _0x2b4bd9;};return a276_0x1489();}const a276_0x48a567=a276_0x13a8;(function(_0x3b84ab,_0x332f50){const _0x32d0f5=a276_0x13a8,_0x20d075=_0x3b84ab();while(!![]){try{const _0x33b357=parseInt(_0x32d0f5(0x11d))/0x1+-parseInt(_0x32d0f5(0x110))/0x2+parseInt(_0x32d0f5(0x112))/0x3+-parseInt(_0x32d0f5(0x115))/0x4*(parseInt(_0x32d0f5(0x11a))/0x5)+parseInt(_0x32d0f5(0x11b))/0x6*(-parseInt(_0x32d0f5(0x11c))/0x7)+-parseInt(_0x32d0f5(0x116))/0x8+parseInt(_0x32d0f5(0x11f))/0x9;if(_0x33b357===_0x332f50)break;else _0x20d075['push'](_0x20d075['shift']());}catch(_0x56e52a){_0x20d075['push'](_0x20d075['shift']());}}}(a276_0x1489,0x1f9cd));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=a276_0x48a567(0x113);export async function sendCliTraceLog(_0x126e64){const _0x53481d=a276_0x48a567;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x126e64[_0x53481d(0x119)]??DEFAULT_TRACE_NAME,'version':_0x126e64[_0x53481d(0x114)]??getCliVersion(),'spanName':_0x126e64[_0x53481d(0x11e)],'eventType':_0x53481d(0x118),'logData':_0x126e64[_0x53481d(0x111)],..._0x126e64[_0x53481d(0x117)]&&{'traceparent':_0x126e64['traceparent']}});}
@@ -1 +1 @@
1
- const a269_0x164498=a269_0x1167;(function(_0x3029a5,_0x2b72cc){const _0x367b92=a269_0x1167,_0x57b176=_0x3029a5();while(!![]){try{const _0x3cfcd2=-parseInt(_0x367b92(0x13f))/0x1+parseInt(_0x367b92(0x148))/0x2+-parseInt(_0x367b92(0x13d))/0x3+-parseInt(_0x367b92(0x142))/0x4*(parseInt(_0x367b92(0x149))/0x5)+parseInt(_0x367b92(0x143))/0x6*(-parseInt(_0x367b92(0x144))/0x7)+parseInt(_0x367b92(0x146))/0x8+parseInt(_0x367b92(0x13b))/0x9;if(_0x3cfcd2===_0x2b72cc)break;else _0x57b176['push'](_0x57b176['shift']());}catch(_0x2f8a28){_0x57b176['push'](_0x57b176['shift']());}}}(a269_0x4c01,0x5d2cc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a269_0x1167(_0x37735f,_0x41c1c5){_0x37735f=_0x37735f-0x139;const _0x4c01a9=a269_0x4c01();let _0x116784=_0x4c01a9[_0x37735f];return _0x116784;}export const PLATFORM_ISSUE_TRACE_NAME=a269_0x164498(0x139);export const PLATFORM_ISSUE_SPAN_NAME=a269_0x164498(0x147);function a269_0x4c01(){const _0x1eb427=['join','23558589ZbLaiB','redactionKinds','2096553cbzFwe','description','669262xqnBkq','title','originalBytes','8feQHjk','95958QOdVsH','189DYabLv','truncated','1624712WHQvOl','issue.log.collect','189816RQfeKf','1835125MrQbNo','sanitize','platform-issue-log-collect'];a269_0x4c01=function(){return _0x1eb427;};return a269_0x4c01();}export async function sendPlatformIssueCollectLog(_0x2f7a61){const _0x3aa92c=a269_0x164498;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2f7a61[_0x3aa92c(0x140)],'issue.description':_0x2f7a61[_0x3aa92c(0x13e)],..._0x2f7a61['sanitize']?{'issue.description_original_bytes':_0x2f7a61[_0x3aa92c(0x14a)][_0x3aa92c(0x141)],'issue.description_truncated':_0x2f7a61['sanitize'][_0x3aa92c(0x145)],'issue.description_redactions':_0x2f7a61[_0x3aa92c(0x14a)]['redactionCount'],'issue.description_redaction_kinds':_0x2f7a61[_0x3aa92c(0x14a)][_0x3aa92c(0x13c)][_0x3aa92c(0x13a)](',')}:{}}});}
1
+ const a277_0x3e4d14=a277_0x17cf;(function(_0x2f469c,_0x33eb26){const _0x20d285=a277_0x17cf,_0x10fb1d=_0x2f469c();while(!![]){try{const _0xaa9577=-parseInt(_0x20d285(0x16d))/0x1*(parseInt(_0x20d285(0x162))/0x2)+-parseInt(_0x20d285(0x166))/0x3*(parseInt(_0x20d285(0x15b))/0x4)+parseInt(_0x20d285(0x168))/0x5*(-parseInt(_0x20d285(0x16e))/0x6)+-parseInt(_0x20d285(0x16a))/0x7+parseInt(_0x20d285(0x165))/0x8+-parseInt(_0x20d285(0x16c))/0x9*(parseInt(_0x20d285(0x169))/0xa)+parseInt(_0x20d285(0x15d))/0xb;if(_0xaa9577===_0x33eb26)break;else _0x10fb1d['push'](_0x10fb1d['shift']());}catch(_0x191327){_0x10fb1d['push'](_0x10fb1d['shift']());}}}(a277_0x2c5b,0xa2a7a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a277_0x3e4d14(0x160);export const PLATFORM_ISSUE_SPAN_NAME=a277_0x3e4d14(0x15c);function a277_0x17cf(_0x4e9383,_0x46e0ea){_0x4e9383=_0x4e9383-0x15a;const _0x2c5b73=a277_0x2c5b();let _0x17cf73=_0x2c5b73[_0x4e9383];return _0x17cf73;}function a277_0x2c5b(){const _0xb2e13d=['truncated','2027168tYzthC','100740qCdjuy','redactionKinds','43630gGzMgQ','610kWSnNi','4826059NBvNaG','description','169335TcTDlj','1nBgELV','594PfJEoT','originalBytes','124IwFJsT','issue.log.collect','55980562EeAMTm','join','title','platform-issue-log-collect','redactionCount','1868596jqGwLL','sanitize'];a277_0x2c5b=function(){return _0xb2e13d;};return a277_0x2c5b();}export async function sendPlatformIssueCollectLog(_0x1eb181){const _0x4e5c8a=a277_0x3e4d14;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1eb181[_0x4e5c8a(0x15f)],'issue.description':_0x1eb181[_0x4e5c8a(0x16b)],..._0x1eb181[_0x4e5c8a(0x163)]?{'issue.description_original_bytes':_0x1eb181[_0x4e5c8a(0x163)][_0x4e5c8a(0x15a)],'issue.description_truncated':_0x1eb181['sanitize'][_0x4e5c8a(0x164)],'issue.description_redactions':_0x1eb181[_0x4e5c8a(0x163)][_0x4e5c8a(0x161)],'issue.description_redaction_kinds':_0x1eb181[_0x4e5c8a(0x163)][_0x4e5c8a(0x167)][_0x4e5c8a(0x15e)](',')}:{}}});}
@@ -1 +1 @@
1
- const a271_0x29c1f4=a271_0x564a;(function(_0xcb627c,_0x32d2fa){const _0x54f361=a271_0x564a,_0x285236=_0xcb627c();while(!![]){try{const _0x506a36=parseInt(_0x54f361(0x15b))/0x1*(-parseInt(_0x54f361(0x159))/0x2)+-parseInt(_0x54f361(0x13b))/0x3+-parseInt(_0x54f361(0x147))/0x4*(-parseInt(_0x54f361(0x165))/0x5)+parseInt(_0x54f361(0x154))/0x6+-parseInt(_0x54f361(0x14c))/0x7*(-parseInt(_0x54f361(0x153))/0x8)+parseInt(_0x54f361(0x155))/0x9*(parseInt(_0x54f361(0x13c))/0xa)+-parseInt(_0x54f361(0x157))/0xb;if(_0x506a36===_0x32d2fa)break;else _0x285236['push'](_0x285236['shift']());}catch(_0x161ef6){_0x285236['push'](_0x285236['shift']());}}}(a271_0x221d,0x75a6d));export const CORE_IDE_CONFIGS={'cursor':{'name':a271_0x29c1f4(0x15c),'description':a271_0x29c1f4(0x141),'folders':['.cursorrules',a271_0x29c1f4(0x14d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x144),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a271_0x29c1f4(0x160),'folders':[a271_0x29c1f4(0x14a)],'files':[{'type':a271_0x29c1f4(0x161),'path':'.windsurf/workflows/rabetbase.md','template':a271_0x29c1f4(0x162)}]},'claude':{'name':'Claude\x20Code','description':a271_0x29c1f4(0x139),'folders':[a271_0x29c1f4(0x163)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x13a),'template':a271_0x29c1f4(0x162)}]},'cline':{'name':'Cline','description':a271_0x29c1f4(0x140),'folders':[a271_0x29c1f4(0x15a)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a271_0x29c1f4(0x162)}]},'codex':{'name':a271_0x29c1f4(0x13e),'description':a271_0x29c1f4(0x149),'folders':[a271_0x29c1f4(0x145)],'files':[{'type':'file','path':a271_0x29c1f4(0x14e),'template':a271_0x29c1f4(0x162)}]},'opencode':{'name':a271_0x29c1f4(0x15e),'description':a271_0x29c1f4(0x151),'folders':['.opencode'],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x138),'template':'SKILL.md.tpl'}]},'qoder':{'name':a271_0x29c1f4(0x16a),'description':'Qoder\x20IDE','folders':[a271_0x29c1f4(0x15f)],'files':[{'type':a271_0x29c1f4(0x161),'path':'.qoder/rules/rabetbase.md','template':a271_0x29c1f4(0x162)},{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x13d),'template':a271_0x29c1f4(0x162)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a271_0x29c1f4(0x169)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md','template':a271_0x29c1f4(0x162)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a271_0x29c1f4(0x168)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x156),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a271_0x29c1f4(0x14f),'description':a271_0x29c1f4(0x167),'folders':[a271_0x29c1f4(0x15d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x14b),'template':a271_0x29c1f4(0x162)}]},'antigravity':{'name':a271_0x29c1f4(0x136),'description':'Antigravity\x20IDE','folders':[a271_0x29c1f4(0x15d)],'files':[{'type':a271_0x29c1f4(0x161),'path':a271_0x29c1f4(0x14b),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x148),'codex',a271_0x29c1f4(0x142),'opencode',a271_0x29c1f4(0x158),'trae',a271_0x29c1f4(0x143)];function a271_0x564a(_0x303930,_0x8ea76d){_0x303930=_0x303930-0x136;const _0x221ddd=a271_0x221d();let _0x564a99=_0x221ddd[_0x303930];return _0x564a99;}function a271_0x221d(){const _0x56e11e=['Codex\x20IDE','.windsurf','.agent/skills/lovrabet/SKILL.md','1390466KkuKwl','.cursor','.codex/skills/lovrabet/SKILL.md','其他\x20(通用模板)','codex','OpenCode\x20IDE','agent','32lZREgf','675168QrOhuM','9BbgtUQ','.trae/skills/lovrabet/SKILL.md','13491951aBejZZ','qoder','12yOjjpp','.cline','82137OhbTTm','Cursor','.agent','OpenCode','.qoder','Windsurf\x20IDE','file','SKILL.md.tpl','.claude','antigravity','595TholGW','cline','通用模板\x20-\x20兜底方案','.trae','.codebuddy','Qoder','Antigravity','trae','.opencode/skills/lovrabet/SKILL.md','Claude\x20Code','.claude/skills/lovrabet/SKILL.md','285036nmyaco','4665890xyTNtY','.qoder/skills/lovrabet/SKILL.md','Codex','opencode','Cline\x20IDE','Cursor\x20IDE','cursor','windsurf','.cursor/skills/rabetbase.md','.codex','claude','31012ijFAfa','codebuddy'];a271_0x221d=function(){return _0x56e11e;};return a271_0x221d();}export const IDE_LIST=[a271_0x29c1f4(0x164),a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x148),a271_0x29c1f4(0x150),'cursor',a271_0x29c1f4(0x13f),'qoder',a271_0x29c1f4(0x137),a271_0x29c1f4(0x143),a271_0x29c1f4(0x152)];export const ALL_CORE_IDES=[a271_0x29c1f4(0x142),a271_0x29c1f4(0x143),a271_0x29c1f4(0x146),a271_0x29c1f4(0x166),a271_0x29c1f4(0x150),'opencode','qoder',a271_0x29c1f4(0x148),a271_0x29c1f4(0x137)];
1
+ const a279_0x43e529=a279_0xf123;(function(_0x4c8006,_0x5b4ab0){const _0x30177b=a279_0xf123,_0x39e149=_0x4c8006();while(!![]){try{const _0x1c51aa=parseInt(_0x30177b(0x1f5))/0x1+parseInt(_0x30177b(0x1fd))/0x2+-parseInt(_0x30177b(0x1f3))/0x3+parseInt(_0x30177b(0x1f9))/0x4+-parseInt(_0x30177b(0x1f2))/0x5+parseInt(_0x30177b(0x20e))/0x6*(-parseInt(_0x30177b(0x208))/0x7)+parseInt(_0x30177b(0x20f))/0x8*(parseInt(_0x30177b(0x1f4))/0x9);if(_0x1c51aa===_0x5b4ab0)break;else _0x39e149['push'](_0x39e149['shift']());}catch(_0x435ef0){_0x39e149['push'](_0x39e149['shift']());}}}(a279_0x4662,0x2756a));export const CORE_IDE_CONFIGS={'cursor':{'name':a279_0x43e529(0x214),'description':a279_0x43e529(0x21a),'folders':[a279_0x43e529(0x215),a279_0x43e529(0x205)],'files':[{'type':'file','path':a279_0x43e529(0x201),'template':a279_0x43e529(0x21d)}]},'windsurf':{'name':'Windsurf','description':a279_0x43e529(0x1fb),'folders':['.windsurf'],'files':[{'type':a279_0x43e529(0x21e),'path':a279_0x43e529(0x218),'template':a279_0x43e529(0x21d)}]},'claude':{'name':a279_0x43e529(0x20b),'description':a279_0x43e529(0x20b),'folders':['.claude'],'files':[{'type':a279_0x43e529(0x21e),'path':'.claude/skills/lovrabet/SKILL.md','template':a279_0x43e529(0x21d)}]},'cline':{'name':a279_0x43e529(0x213),'description':a279_0x43e529(0x207),'folders':[a279_0x43e529(0x1fc)],'files':[{'type':a279_0x43e529(0x21e),'path':a279_0x43e529(0x220),'template':a279_0x43e529(0x21d)}]},'codex':{'name':a279_0x43e529(0x210),'description':a279_0x43e529(0x204),'folders':[a279_0x43e529(0x1fe)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'opencode':{'name':a279_0x43e529(0x20c),'description':'OpenCode\x20IDE','folders':[a279_0x43e529(0x20a)],'files':[{'type':'file','path':a279_0x43e529(0x212),'template':a279_0x43e529(0x21d)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a279_0x43e529(0x217)],'files':[{'type':a279_0x43e529(0x21e),'path':'.qoder/rules/rabetbase.md','template':a279_0x43e529(0x21d)},{'type':a279_0x43e529(0x21e),'path':a279_0x43e529(0x209),'template':a279_0x43e529(0x21d)}]},'codebuddy':{'name':a279_0x43e529(0x1ff),'description':a279_0x43e529(0x20d),'folders':[a279_0x43e529(0x203)],'files':[{'type':'file','path':a279_0x43e529(0x21b),'template':a279_0x43e529(0x21d)}]},'trae':{'name':a279_0x43e529(0x1f7),'description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':a279_0x43e529(0x21e),'path':'.trae/skills/lovrabet/SKILL.md','template':a279_0x43e529(0x21d)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':'通用模板\x20-\x20兜底方案','folders':[a279_0x43e529(0x221)],'files':[{'type':a279_0x43e529(0x21e),'path':a279_0x43e529(0x200),'template':a279_0x43e529(0x21d)}]},'antigravity':{'name':a279_0x43e529(0x1f6),'description':'Antigravity\x20IDE','folders':[a279_0x43e529(0x221)],'files':[{'type':'file','path':a279_0x43e529(0x200),'template':'SKILL.md.tpl'}]}};function a279_0xf123(_0x25ed50,_0x1e7ff7){_0x25ed50=_0x25ed50-0x1f2;const _0x4662d2=a279_0x4662();let _0xf12303=_0x4662d2[_0x25ed50];return _0xf12303;}export const CORE_IDE_LIST=[a279_0x43e529(0x206),'cline',a279_0x43e529(0x21c),a279_0x43e529(0x21f),a279_0x43e529(0x216),a279_0x43e529(0x219),a279_0x43e529(0x1fa),'trae','windsurf'];function a279_0x4662(){const _0x27ef29=['opencode','Cursor\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','codebuddy','SKILL.md.tpl','file','codex','.cline/skills/lovrabet/SKILL.md','.agent','1165605bYTVoK','417351nButuC','18yDmPTf','25598fVukEJ','Antigravity','Trae','antigravity','584072siQoyg','qoder','Windsurf\x20IDE','.cline','9410JmnjIU','.codex','CodeBuddy','.agent/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','cline','.codebuddy','Codex\x20IDE','.cursor','claude','Cline\x20IDE','858557xdTcXk','.qoder/skills/lovrabet/SKILL.md','.opencode','Claude\x20Code','OpenCode','CodeBuddy\x20IDE','6UIdSnp','1918792trwnyo','Codex','trae','.opencode/skills/lovrabet/SKILL.md','Cline','Cursor','.cursorrules','cursor','.qoder','.windsurf/workflows/rabetbase.md'];a279_0x4662=function(){return _0x27ef29;};return a279_0x4662();}export const IDE_LIST=[a279_0x43e529(0x1f8),a279_0x43e529(0x206),a279_0x43e529(0x202),a279_0x43e529(0x21c),a279_0x43e529(0x21f),a279_0x43e529(0x216),a279_0x43e529(0x219),a279_0x43e529(0x1fa),'trae','windsurf','agent'];export const ALL_CORE_IDES=[a279_0x43e529(0x216),'windsurf',a279_0x43e529(0x206),a279_0x43e529(0x202),a279_0x43e529(0x21f),a279_0x43e529(0x219),'qoder','codebuddy',a279_0x43e529(0x211)];
@@ -1 +1 @@
1
- (function(_0x36415b,_0x497e18){const _0x3589f9=a272_0x560d,_0x465d95=_0x36415b();while(!![]){try{const _0x51cf17=parseInt(_0x3589f9(0x158))/0x1*(parseInt(_0x3589f9(0x159))/0x2)+parseInt(_0x3589f9(0x157))/0x3+-parseInt(_0x3589f9(0x15b))/0x4*(-parseInt(_0x3589f9(0x155))/0x5)+parseInt(_0x3589f9(0x15a))/0x6*(-parseInt(_0x3589f9(0x153))/0x7)+parseInt(_0x3589f9(0x154))/0x8*(-parseInt(_0x3589f9(0x15d))/0x9)+parseInt(_0x3589f9(0x15c))/0xa+-parseInt(_0x3589f9(0x156))/0xb;if(_0x51cf17===_0x497e18)break;else _0x465d95['push'](_0x465d95['shift']());}catch(_0x211756){_0x465d95['push'](_0x465d95['shift']());}}}(a272_0x48d6,0x41bd9));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a272_0x560d(_0x5edbce,_0x523e86){_0x5edbce=_0x5edbce-0x153;const _0x48d696=a272_0x48d6();let _0x560dee=_0x48d696[_0x5edbce];return _0x560dee;}function a272_0x48d6(){const _0x23f897=['5yCouvw','1824614KthZTM','632286YuVwHA','3865GDzLca','188qalUHB','569622fbpjBn','737996sdXrQX','1434370ZgnFax','9324pDsNtB','7yIkKqI','2872CGcCge'];a272_0x48d6=function(){return _0x23f897;};return a272_0x48d6();}
1
+ (function(_0x5f420a,_0x281ef8){const _0x35eaee=a280_0x323e,_0x5141b0=_0x5f420a();while(!![]){try{const _0x323bba=parseInt(_0x35eaee(0x1ca))/0x1*(parseInt(_0x35eaee(0x1c8))/0x2)+parseInt(_0x35eaee(0x1cc))/0x3+parseInt(_0x35eaee(0x1ce))/0x4+-parseInt(_0x35eaee(0x1cd))/0x5+parseInt(_0x35eaee(0x1c9))/0x6+-parseInt(_0x35eaee(0x1cb))/0x7*(-parseInt(_0x35eaee(0x1c6))/0x8)+-parseInt(_0x35eaee(0x1c7))/0x9;if(_0x323bba===_0x281ef8)break;else _0x5141b0['push'](_0x5141b0['shift']());}catch(_0x596e1c){_0x5141b0['push'](_0x5141b0['shift']());}}}(a280_0x4883,0xc8aa9));function a280_0x323e(_0x467221,_0x4894e8){_0x467221=_0x467221-0x1c6;const _0x4883f1=a280_0x4883();let _0x323e62=_0x4883f1[_0x467221];return _0x323e62;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a280_0x4883(){const _0xf24dbe=['14UCmwkI','3254979wgeFyE','3357455DmCqff','2162924nvCjdU','5037224deLWBz','36258516eAVbFr','2xNuHHp','9093480mPojXb','1121534lPyJrt'];a280_0x4883=function(){return _0xf24dbe;};return a280_0x4883();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x5da328,_0x51c17f){const _0x2b4da5=a273_0x5316,_0x25fb59=_0x5da328();while(!![]){try{const _0x4d57a=parseInt(_0x2b4da5(0x18f))/0x1+parseInt(_0x2b4da5(0x197))/0x2*(-parseInt(_0x2b4da5(0x199))/0x3)+-parseInt(_0x2b4da5(0x190))/0x4*(parseInt(_0x2b4da5(0x19c))/0x5)+parseInt(_0x2b4da5(0x18e))/0x6+parseInt(_0x2b4da5(0x193))/0x7+-parseInt(_0x2b4da5(0x19a))/0x8*(-parseInt(_0x2b4da5(0x19d))/0x9)+parseInt(_0x2b4da5(0x198))/0xa*(-parseInt(_0x2b4da5(0x191))/0xb);if(_0x4d57a===_0x51c17f)break;else _0x25fb59['push'](_0x25fb59['shift']());}catch(_0x320451){_0x25fb59['push'](_0x25fb59['shift']());}}}(a273_0x56d4,0xbaf96));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2de58b=a273_0x5316,_0x30adef=getTemplateBaseUrl(),_0x26c9a9=[_0x30adef+_0x2de58b(0x19e),_0x30adef+_0x2de58b(0x194)];for(const _0x1e918a of _0x26c9a9){try{const _0x583021=await fetch(_0x1e918a,{'headers':{'Accept':_0x2de58b(0x19b)}});if(!_0x583021['ok'])continue;const _0x469ab9=await _0x583021[_0x2de58b(0x195)]();if(!_0x469ab9['cli']?.[_0x2de58b(0x196)]||!_0x469ab9['sdk']?.[_0x2de58b(0x192)]?.[_0x2de58b(0x196)])continue;return _0x469ab9;}catch{}}return null;}function a273_0x5316(_0x4f4b2d,_0x26504f){_0x4f4b2d=_0x4f4b2d-0x18e;const _0x56d471=a273_0x56d4();let _0x5316ac=_0x56d471[_0x4f4b2d];return _0x5316ac;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1fc3c5=a273_0x5316,_0x37431d=Date[_0x1fc3c5(0x19f)]();if(hasCachedConfig){const _0x5a67f8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x37431d-cacheTime<_0x5a67f8)return cachedConfig;}const _0x3fc720=await fetchCdnConfig();return cachedConfig=_0x3fc720,cacheTime=_0x37431d,hasCachedConfig=!![],_0x3fc720;}function a273_0x56d4(){const _0x15fa3c=['stableVersion','1302124mWiEnv','420LxsCBm','3iegxxo','20200KrwfFY','application/json','3937855TKNenl','4401sBvYAi','/config.json','now','6588138GHFkYh','496975RolHTh','4sGpYun','169169MtFbjl','node','144718dXWmty','/config/index.json','json'];a273_0x56d4=function(){return _0x15fa3c;};return a273_0x56d4();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x580fa9,_0x1015f6){const _0x158ec7=a281_0x1963,_0x31053a=_0x580fa9();while(!![]){try{const _0x38b6c6=-parseInt(_0x158ec7(0x13e))/0x1*(parseInt(_0x158ec7(0x14a))/0x2)+-parseInt(_0x158ec7(0x13c))/0x3+-parseInt(_0x158ec7(0x13a))/0x4*(parseInt(_0x158ec7(0x13b))/0x5)+-parseInt(_0x158ec7(0x140))/0x6*(parseInt(_0x158ec7(0x145))/0x7)+-parseInt(_0x158ec7(0x146))/0x8*(-parseInt(_0x158ec7(0x13f))/0x9)+-parseInt(_0x158ec7(0x149))/0xa+parseInt(_0x158ec7(0x147))/0xb;if(_0x38b6c6===_0x1015f6)break;else _0x31053a['push'](_0x31053a['shift']());}catch(_0x5768ae){_0x31053a['push'](_0x31053a['shift']());}}}(a281_0x3bc5,0x50830));function a281_0x1963(_0x3f1fc6,_0x1c4a10){_0x3f1fc6=_0x3f1fc6-0x139;const _0x3bc5d0=a281_0x3bc5();let _0x19638a=_0x3bc5d0[_0x3f1fc6];return _0x19638a;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3cf13d=a281_0x1963,_0x9aa084=getTemplateBaseUrl(),_0x4860eb=[_0x9aa084+_0x3cf13d(0x13d),_0x9aa084+_0x3cf13d(0x144)];for(const _0xfa8ba3 of _0x4860eb){try{const _0x46176a=await fetch(_0xfa8ba3,{'headers':{'Accept':_0x3cf13d(0x139)}});if(!_0x46176a['ok'])continue;const _0x187a8d=await _0x46176a[_0x3cf13d(0x142)]();if(!_0x187a8d[_0x3cf13d(0x14c)]?.[_0x3cf13d(0x143)]||!_0x187a8d[_0x3cf13d(0x148)]?.[_0x3cf13d(0x14b)]?.['stableVersion'])continue;return _0x187a8d;}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 _0x24d812=a281_0x1963,_0x55f049=Date[_0x24d812(0x141)]();if(hasCachedConfig){const _0x4cfcc8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55f049-cacheTime<_0x4cfcc8)return cachedConfig;}const _0x47d5a5=await fetchCdnConfig();return cachedConfig=_0x47d5a5,cacheTime=_0x55f049,hasCachedConfig=!![],_0x47d5a5;}function a281_0x3bc5(){const _0x3923cf=['37593RVuYVF','10134nfVayG','now','json','stableVersion','/config/index.json','1057wXgmUd','744kZcwgd','20715893qumLmC','sdk','5941930BPmKES','2NMgswu','node','cli','application/json','621004AKaGXX','15XuOuZB','1870365kxAdUc','/config.json','3508HZizTU'];a281_0x3bc5=function(){return _0x3923cf;};return a281_0x3bc5();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a274_0x54ac22=a274_0x40e5;(function(_0x494951,_0x3b6588){const _0x5c7e1d=a274_0x40e5,_0x25b07a=_0x494951();while(!![]){try{const _0x16d462=-parseInt(_0x5c7e1d(0xd5))/0x1+parseInt(_0x5c7e1d(0xb8))/0x2+parseInt(_0x5c7e1d(0xd4))/0x3*(-parseInt(_0x5c7e1d(0xb6))/0x4)+parseInt(_0x5c7e1d(0xba))/0x5*(parseInt(_0x5c7e1d(0xbd))/0x6)+parseInt(_0x5c7e1d(0xc2))/0x7+parseInt(_0x5c7e1d(0xc9))/0x8+-parseInt(_0x5c7e1d(0xca))/0x9;if(_0x16d462===_0x3b6588)break;else _0x25b07a['push'](_0x25b07a['shift']());}catch(_0x264302){_0x25b07a['push'](_0x25b07a['shift']());}}}(a274_0x31be,0x44684));import a274_0xfdf17b from'node:fs';function a274_0x40e5(_0x57551a,_0x1604fc){_0x57551a=_0x57551a-0xb5;const _0x31be42=a274_0x31be();let _0x40e5cf=_0x31be42[_0x57551a];return _0x40e5cf;}import a274_0x13bae3 from'node:path';import a274_0x191f01 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a274_0x54ac22(0xc7);function a274_0x31be(){const _0x41f012=['1175NuYSXm','version','\x1b[33m','10314finALn','\x1b[0m','node_modules','minVersion','utf-8','650174ZaRTqk','all','parse','packageName','existsSync','1.2.0','devDependencies','252536LYlrgN','6124158aNDSdi','some','coerce','stableVersion','package.json','@lovrabet/sdk','join','dependencies','\x20\x20\x20Current\x20version:\x20','readFileSync','12927FVMTfQ','4473JdvHlb','sdk','\x20\x20\x20Upgrade\x20command:\x20','24WfIIVD','node','925142rrEwUa','log'];a274_0x31be=function(){return _0x41f012;};return a274_0x31be();}function isNonNumericVersion(_0x1b6c2d){const _0x11eba9=a274_0x54ac22,_0x5675be=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5675be[_0x11eba9(0xcb)](_0x1a8555=>_0x1a8555['test'](_0x1b6c2d));}function getInstalledVersion(_0x211cc0,_0xf91ea5){const _0x56f5b4=a274_0x54ac22;try{const _0x5d84c8=a274_0x13bae3[_0x56f5b4(0xd0)](_0x211cc0,_0x56f5b4(0xbf),_0xf91ea5,_0x56f5b4(0xce));if(a274_0xfdf17b[_0x56f5b4(0xc6)](_0x5d84c8)){const _0x5a4ccd=JSON[_0x56f5b4(0xc4)](a274_0xfdf17b[_0x56f5b4(0xd3)](_0x5d84c8,_0x56f5b4(0xc1)));return _0x5a4ccd['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xf3fa09=a274_0x54ac22;try{const _0x4f73b6=await getCdnConfig();return _0x4f73b6?.[_0xf3fa09(0xd6)]?.['node']?.[_0xf3fa09(0xcd)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x392cf0=a274_0x54ac22;try{const _0x2bc351=await getCdnConfig();return _0x2bc351?.[_0x392cf0(0xd6)]?.[_0x392cf0(0xb7)]?.['packageName']||_0x392cf0(0xcf);}catch{return _0x392cf0(0xcf);}}export async function checkSdkVersion(_0x51ac63){const _0x157e87=a274_0x54ac22,_0x5b9d59=a274_0x13bae3[_0x157e87(0xd0)](_0x51ac63,_0x157e87(0xce)),[_0xc874f0,_0x4c91da]=await Promise[_0x157e87(0xc3)]([getSdkStableVersion(),getSdkPackageName()]),_0x6efe5=_0xc874f0||FALLBACK_MIN_SDK_VERSION;if(!a274_0xfdf17b[_0x157e87(0xc6)](_0x5b9d59))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};try{const _0x597fb7=JSON[_0x157e87(0xc4)](a274_0xfdf17b['readFileSync'](_0x5b9d59,'utf8')),_0x3010c6=_0x597fb7[_0x157e87(0xd1)]||{},_0x4265bd=_0x597fb7[_0x157e87(0xc8)]||{},_0x52d152=_0x3010c6[_0x4c91da]||_0x4265bd[_0x4c91da];if(!_0x52d152)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};let _0x1fe04f=getInstalledVersion(_0x51ac63,_0x4c91da);!_0x1fe04f&&(_0x1fe04f=_0x52d152);if(isNonNumericVersion(_0x52d152))return{'installed':!![],'version':_0x1fe04f,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};const _0x53e37c=a274_0x191f01[_0x157e87(0xcc)](_0x1fe04f),_0x318287=a274_0x191f01[_0x157e87(0xcc)](_0x6efe5),_0x497f62=_0x53e37c&&_0x318287?a274_0x191f01['lt'](_0x53e37c,_0x318287):![];return{'installed':!![],'version':_0x1fe04f,'needsUpgrade':_0x497f62,'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x6efe5,'packageName':_0x4c91da,'stableVersion':_0xc874f0};}}export function checkSdkVersionSync(_0xc1ca0e){const _0x3f3c40=a274_0x54ac22,_0x45863f=a274_0x13bae3[_0x3f3c40(0xd0)](_0xc1ca0e,_0x3f3c40(0xce)),_0xbc9617=_0x3f3c40(0xcf);if(!a274_0xfdf17b[_0x3f3c40(0xc6)](_0x45863f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};try{const _0x54850d=JSON[_0x3f3c40(0xc4)](a274_0xfdf17b[_0x3f3c40(0xd3)](_0x45863f,'utf8')),_0x4771db=_0x54850d[_0x3f3c40(0xd1)]||{},_0x3450e7=_0x54850d[_0x3f3c40(0xc8)]||{},_0x588537=_0x4771db[_0xbc9617]||_0x3450e7[_0xbc9617];if(!_0x588537)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};let _0x3ee5da=getInstalledVersion(_0xc1ca0e,_0xbc9617);!_0x3ee5da&&(_0x3ee5da=_0x588537);if(isNonNumericVersion(_0x588537))return{'installed':!![],'version':_0x3ee5da,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};const _0x1902f3=a274_0x191f01[_0x3f3c40(0xcc)](_0x3ee5da),_0x17b646=_0x1902f3?a274_0x191f01['lt'](_0x1902f3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3ee5da,'needsUpgrade':_0x17b646,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xbc9617,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x11261b){const _0x130f0b=a274_0x54ac22;if(!_0x11261b['needsUpgrade'])return;const _0x50239d=_0x130f0b(0xbc),_0x330e4f=_0x130f0b(0xbe),_0x3385d6='\x1b[1m',_0x5bdfe7=_0x11261b[_0x130f0b(0xc5)]||'@lovrabet/sdk',_0x4fbde1=_0x11261b['stableVersion']||_0x11261b[_0x130f0b(0xc0)],_0xb8204='npm\x20install\x20'+_0x5bdfe7+'@'+(_0x4fbde1||'latest');console[_0x130f0b(0xb9)](),console[_0x130f0b(0xb9)](''+_0x50239d+_0x3385d6+'↪\x20SDK\x20update\x20available'+_0x330e4f),console['log'](_0x50239d+_0x130f0b(0xd2)+_0x5bdfe7+'@'+_0x11261b[_0x130f0b(0xbb)]+_0x330e4f),console[_0x130f0b(0xb9)](_0x50239d+'\x20\x20\x20Stable\x20version:\x20'+_0x4fbde1+_0x330e4f),console['log'](_0x50239d+_0x130f0b(0xb5)+_0xb8204+_0x330e4f),console[_0x130f0b(0xb9)]();}
1
+ (function(_0x10e0cf,_0x10ced2){const _0x1fc61f=a282_0x86c9,_0x4a5637=_0x10e0cf();while(!![]){try{const _0x2f515c=parseInt(_0x1fc61f(0x183))/0x1+parseInt(_0x1fc61f(0x16f))/0x2*(parseInt(_0x1fc61f(0x16d))/0x3)+-parseInt(_0x1fc61f(0x173))/0x4+-parseInt(_0x1fc61f(0x191))/0x5*(-parseInt(_0x1fc61f(0x181))/0x6)+-parseInt(_0x1fc61f(0x17d))/0x7*(-parseInt(_0x1fc61f(0x185))/0x8)+-parseInt(_0x1fc61f(0x178))/0x9*(-parseInt(_0x1fc61f(0x18e))/0xa)+parseInt(_0x1fc61f(0x170))/0xb*(-parseInt(_0x1fc61f(0x176))/0xc);if(_0x2f515c===_0x10ced2)break;else _0x4a5637['push'](_0x4a5637['shift']());}catch(_0x218e41){_0x4a5637['push'](_0x4a5637['shift']());}}}(a282_0x6e8a,0xa08da));import a282_0xd14984 from'node:fs';import a282_0x521a0d from'node:path';import a282_0x1dbcd9 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1a7f85){const _0xd729ac=a282_0x86c9,_0x384c6a=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x384c6a[_0xd729ac(0x16c)](_0x55e3e7=>_0x55e3e7[_0xd729ac(0x184)](_0x1a7f85));}function getInstalledVersion(_0x16f889,_0x538914){const _0x50b90c=a282_0x86c9;try{const _0x3f4f4e=a282_0x521a0d['join'](_0x16f889,_0x50b90c(0x18f),_0x538914,_0x50b90c(0x192));if(a282_0xd14984[_0x50b90c(0x17a)](_0x3f4f4e)){const _0x3ad1d9=JSON[_0x50b90c(0x18d)](a282_0xd14984[_0x50b90c(0x182)](_0x3f4f4e,_0x50b90c(0x17e)));return _0x3ad1d9[_0x50b90c(0x175)]||null;}}catch{}return null;}function a282_0x6e8a(){const _0x2f5a9d=['\x20\x20\x20Upgrade\x20command:\x20','1599100LvmzQY','stableVersion','version','1644768vLiZnz','npm\x20install\x20','9FCujOV','@lovrabet/sdk','existsSync','↪\x20SDK\x20update\x20available','coerce','35SorfJj','utf-8','sdk','latest','2031258nDmJIK','readFileSync','967906vTzTcP','test','1223512YlWZXm','utf8','minVersion','\x20\x20\x20Current\x20version:\x20','dependencies','\x20\x20\x20Stable\x20version:\x20','log','\x1b[0m','parse','5506100UTDzKP','node_modules','join','5MWCnci','package.json','some','652437rlhZbb','needsUpgrade','2glKNgx','143rdPRWr','devDependencies'];a282_0x6e8a=function(){return _0x2f5a9d;};return a282_0x6e8a();}async function getSdkStableVersion(){const _0x457cf9=a282_0x86c9;try{const _0x186bea=await getCdnConfig();return _0x186bea?.[_0x457cf9(0x17f)]?.['node']?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x55571b=a282_0x86c9;try{const _0x2b59f5=await getCdnConfig();return _0x2b59f5?.[_0x55571b(0x17f)]?.['node']?.['packageName']||_0x55571b(0x179);}catch{return _0x55571b(0x179);}}export async function checkSdkVersion(_0x5bc7cc){const _0x56b3dd=a282_0x86c9,_0x44c24c=a282_0x521a0d[_0x56b3dd(0x190)](_0x5bc7cc,_0x56b3dd(0x192)),[_0x321dd6,_0x28f155]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x4bb409=_0x321dd6||FALLBACK_MIN_SDK_VERSION;if(!a282_0xd14984[_0x56b3dd(0x17a)](_0x44c24c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};try{const _0x501e10=JSON[_0x56b3dd(0x18d)](a282_0xd14984['readFileSync'](_0x44c24c,_0x56b3dd(0x186))),_0x30c605=_0x501e10['dependencies']||{},_0x48a96c=_0x501e10['devDependencies']||{},_0x27b4c1=_0x30c605[_0x28f155]||_0x48a96c[_0x28f155];if(!_0x27b4c1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};let _0x5f5bf2=getInstalledVersion(_0x5bc7cc,_0x28f155);!_0x5f5bf2&&(_0x5f5bf2=_0x27b4c1);if(isNonNumericVersion(_0x27b4c1))return{'installed':!![],'version':_0x5f5bf2,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};const _0x3b0065=a282_0x1dbcd9[_0x56b3dd(0x17c)](_0x5f5bf2),_0x4a4a49=a282_0x1dbcd9[_0x56b3dd(0x17c)](_0x4bb409),_0xca0f9=_0x3b0065&&_0x4a4a49?a282_0x1dbcd9['lt'](_0x3b0065,_0x4a4a49):![];return{'installed':!![],'version':_0x5f5bf2,'needsUpgrade':_0xca0f9,'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4bb409,'packageName':_0x28f155,'stableVersion':_0x321dd6};}}export function checkSdkVersionSync(_0x2bb7ba){const _0x33c8c0=a282_0x86c9,_0x13a6b2=a282_0x521a0d['join'](_0x2bb7ba,'package.json'),_0x40cdae=_0x33c8c0(0x179);if(!a282_0xd14984[_0x33c8c0(0x17a)](_0x13a6b2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};try{const _0x2c58f2=JSON[_0x33c8c0(0x18d)](a282_0xd14984['readFileSync'](_0x13a6b2,_0x33c8c0(0x186))),_0x2335c9=_0x2c58f2[_0x33c8c0(0x189)]||{},_0x25c588=_0x2c58f2[_0x33c8c0(0x171)]||{},_0x184ebb=_0x2335c9[_0x40cdae]||_0x25c588[_0x40cdae];if(!_0x184ebb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};let _0x534723=getInstalledVersion(_0x2bb7ba,_0x40cdae);!_0x534723&&(_0x534723=_0x184ebb);if(isNonNumericVersion(_0x184ebb))return{'installed':!![],'version':_0x534723,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};const _0x42ccfa=a282_0x1dbcd9[_0x33c8c0(0x17c)](_0x534723),_0xa47967=_0x42ccfa?a282_0x1dbcd9['lt'](_0x42ccfa,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x534723,'needsUpgrade':_0xa47967,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x40cdae,'stableVersion':null};}}function a282_0x86c9(_0x1ba0a7,_0x2756b2){_0x1ba0a7=_0x1ba0a7-0x16c;const _0x6e8a3=a282_0x6e8a();let _0x86c907=_0x6e8a3[_0x1ba0a7];return _0x86c907;}export function printSdkUpgradeWarning(_0x508e1c){const _0x39d90a=a282_0x86c9;if(!_0x508e1c[_0x39d90a(0x16e)])return;const _0x5f48b7='\x1b[33m',_0x59ef4f=_0x39d90a(0x18c),_0x4381f0='\x1b[1m',_0x462747=_0x508e1c['packageName']||_0x39d90a(0x179),_0x2d4afa=_0x508e1c[_0x39d90a(0x174)]||_0x508e1c[_0x39d90a(0x187)],_0x51ddf8=_0x39d90a(0x177)+_0x462747+'@'+(_0x2d4afa||_0x39d90a(0x180));console[_0x39d90a(0x18b)](),console[_0x39d90a(0x18b)](''+_0x5f48b7+_0x4381f0+_0x39d90a(0x17b)+_0x59ef4f),console[_0x39d90a(0x18b)](_0x5f48b7+_0x39d90a(0x188)+_0x462747+'@'+_0x508e1c[_0x39d90a(0x175)]+_0x59ef4f),console['log'](_0x5f48b7+_0x39d90a(0x18a)+_0x2d4afa+_0x59ef4f),console[_0x39d90a(0x18b)](_0x5f48b7+_0x39d90a(0x172)+_0x51ddf8+_0x59ef4f),console[_0x39d90a(0x18b)]();}
@@ -1 +1 @@
1
- (function(_0xdf6844,_0x4af361){const _0x5b9b85=a275_0x3230,_0x45c944=_0xdf6844();while(!![]){try{const _0x299a6b=-parseInt(_0x5b9b85(0x1f1))/0x1*(-parseInt(_0x5b9b85(0x1d3))/0x2)+parseInt(_0x5b9b85(0x1f5))/0x3+parseInt(_0x5b9b85(0x1f6))/0x4+-parseInt(_0x5b9b85(0x1ee))/0x5*(-parseInt(_0x5b9b85(0x1e0))/0x6)+-parseInt(_0x5b9b85(0x1e4))/0x7+parseInt(_0x5b9b85(0x1db))/0x8*(-parseInt(_0x5b9b85(0x1de))/0x9)+-parseInt(_0x5b9b85(0x1d5))/0xa;if(_0x299a6b===_0x4af361)break;else _0x45c944['push'](_0x45c944['shift']());}catch(_0x29aa83){_0x45c944['push'](_0x45c944['shift']());}}}(a275_0x5af5,0xe53d6));import{readFileSync}from'node:fs';function a275_0x5af5(){const _0x30bdbd=['2310296uxQoJU','package.json','↪\x20New\x20version\x20available','Current\x20version:\x20','coerce','minimumVersion','10TCteEt','validation','1872440SwVikJ','belowMinimum','1.0.0','\x1b[31m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','filter','568MdsmQq','stableVersion','parse','28071zbYoNN','\x1b[1m','6mrADag','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','utf-8','12860918ZfkpSB','latest','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','version','\x20\x20\x20Minimum\x20supported:\x20','upgradeMessage','minimumVersionMessage','Upgrade\x20command:\x20','2797160gQaPgd','log','\x20\x20\x20Recommended\x20stable:\x20','153789YgWUqp','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','join','3836946GyasDS'];a275_0x5af5=function(){return _0x30bdbd;};return a275_0x5af5();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a275_0xfbb169 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(_0x512ce2){const _0x10b100=a275_0x3230,_0xba10a=_0x512ce2[_0x10b100(0x1dc)]||_0x10b100(0x1e5);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0xba10a;}function a275_0x3230(_0x1b27bd,_0x5e6b94){_0x1b27bd=_0x1b27bd-0x1d1;const _0x5af5c6=a275_0x5af5();let _0x323057=_0x5af5c6[_0x1b27bd];return _0x323057;}function getCurrentCliVersion(){const _0x214e4a=a275_0x3230;try{const _0x3e9975=fileURLToPath(import.meta.url),_0x9b2be6=resolve(dirname(_0x3e9975),_0x214e4a(0x1e8)),_0x5c23c2=resolve(_0x9b2be6,_0x214e4a(0x1f7)),_0x5e4750=JSON[_0x214e4a(0x1dd)](readFileSync(_0x5c23c2,_0x214e4a(0x1e3)));return _0x5e4750[_0x214e4a(0x1e9)]||_0x214e4a(0x1d7);}catch{return _0x214e4a(0x1d7);}}export async function checkCliVersion(){const _0x1a7c9b=a275_0x3230,_0x4dd358=getCurrentCliVersion(),_0x9d5399=await getCliVersionPolicy(),_0x3f4cfb=_0x9d5399?.[_0x1a7c9b(0x1dc)]||null,_0x54a560=_0x9d5399?.[_0x1a7c9b(0x1d2)]||null;let _0x24b764=![],_0x7ffb23=![];const _0x3d58dd=a275_0xfbb169['coerce'](_0x4dd358);if(_0x3d58dd&&_0x3f4cfb)try{const _0x3752c3=a275_0xfbb169[_0x1a7c9b(0x1d1)](_0x3f4cfb);if(_0x3752c3)_0x24b764=a275_0xfbb169['lt'](_0x3d58dd,_0x3752c3);}catch{}if(_0x3d58dd&&_0x54a560)try{const _0x161309=a275_0xfbb169[_0x1a7c9b(0x1d1)](_0x54a560);if(_0x161309)_0x7ffb23=a275_0xfbb169['lt'](_0x3d58dd,_0x161309);}catch{}return _0x7ffb23&&(_0x24b764=!![]),{'currentVersion':_0x4dd358,'stableVersion':_0x3f4cfb,'minimumVersion':_0x54a560,'needsUpgrade':_0x24b764,'belowMinimum':_0x7ffb23,'isPreRelease':![],'upgradeMessage':_0x9d5399?.[_0x1a7c9b(0x1eb)],'minimumVersionMessage':_0x9d5399?.[_0x1a7c9b(0x1ec)]};}export function printCliUpgradeWarning(_0x2a899e){const _0xbac462=a275_0x3230;if(!_0x2a899e['needsUpgrade']&&!_0x2a899e['belowMinimum'])return;const _0x323e36=_0xbac462(0x1d8),_0x169bb3=_0xbac462(0x1f3),_0x4e9a83='\x1b[0m',_0x662a97=_0xbac462(0x1df),_0x5bb83f=getCliUpgradeCommand(_0x2a899e);console[_0xbac462(0x1ef)](),_0x2a899e['belowMinimum']?(console[_0xbac462(0x1ef)](''+_0x323e36+_0x662a97+_0xbac462(0x1e7)+_0x4e9a83),console['log'](_0x323e36+_0xbac462(0x1e2)+_0x2a899e[_0xbac462(0x1e1)]+_0x4e9a83),_0x2a899e['minimumVersion']&&console[_0xbac462(0x1ef)](_0x323e36+_0xbac462(0x1ea)+_0x2a899e[_0xbac462(0x1d2)]+_0x4e9a83),_0x2a899e['stableVersion']&&_0x2a899e[_0xbac462(0x1dc)]!==_0x2a899e[_0xbac462(0x1d2)]&&console[_0xbac462(0x1ef)](_0x323e36+_0xbac462(0x1f0)+_0x2a899e[_0xbac462(0x1dc)]+_0x4e9a83),_0x2a899e[_0xbac462(0x1ec)]&&console[_0xbac462(0x1ef)](_0x323e36+_0xbac462(0x1e6)+_0x2a899e['minimumVersionMessage']+_0x4e9a83),console[_0xbac462(0x1ef)](_0x323e36+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5bb83f+_0x4e9a83)):(console['log'](''+_0x169bb3+_0x662a97+_0xbac462(0x1f8)+_0x4e9a83),console[_0xbac462(0x1ef)](_0x169bb3+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2a899e['currentVersion']+_0x4e9a83),console[_0xbac462(0x1ef)](_0x169bb3+'\x20\x20\x20Stable\x20version:\x20'+_0x2a899e[_0xbac462(0x1dc)]+_0x4e9a83),_0x2a899e[_0xbac462(0x1eb)]&&console['log'](_0x169bb3+'\x20\x20\x20'+_0x2a899e[_0xbac462(0x1eb)]+_0x4e9a83),console['log'](_0x169bb3+_0xbac462(0x1f2)+_0x5bb83f+_0x4e9a83)),console[_0xbac462(0x1ef)]();}export function assertCliVersionSupported(_0x3e6104){const _0x41eab5=a275_0x3230;if(!_0x3e6104[_0x41eab5(0x1d6)])return;const _0x2b871e=[_0x3e6104[_0x41eab5(0x1ec)],_0x41eab5(0x1f9)+_0x3e6104[_0x41eab5(0x1e1)],_0x3e6104[_0x41eab5(0x1d2)]?'Minimum\x20supported:\x20'+_0x3e6104[_0x41eab5(0x1d2)]:null,_0x41eab5(0x1ed)+getCliUpgradeCommand(_0x3e6104)][_0x41eab5(0x1da)](Boolean)[_0x41eab5(0x1f4)]('\x0a');throw CliErrors[_0x41eab5(0x1d4)](_0x41eab5(0x1d9),_0x2b871e);}
1
+ (function(_0x169440,_0x499103){const _0x5cbb1f=a283_0x5a0a,_0x4101d6=_0x169440();while(!![]){try{const _0x12e8ec=-parseInt(_0x5cbb1f(0x1aa))/0x1*(-parseInt(_0x5cbb1f(0x1ab))/0x2)+-parseInt(_0x5cbb1f(0x1bd))/0x3+parseInt(_0x5cbb1f(0x1a8))/0x4*(-parseInt(_0x5cbb1f(0x19b))/0x5)+-parseInt(_0x5cbb1f(0x19c))/0x6*(parseInt(_0x5cbb1f(0x1ad))/0x7)+-parseInt(_0x5cbb1f(0x1bc))/0x8+-parseInt(_0x5cbb1f(0x1c1))/0x9+parseInt(_0x5cbb1f(0x1ac))/0xa;if(_0x12e8ec===_0x499103)break;else _0x4101d6['push'](_0x4101d6['shift']());}catch(_0x1ea527){_0x4101d6['push'](_0x4101d6['shift']());}}}(a283_0x1be3,0xb2f5c));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a283_0x42a3d2 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a283_0x1be3(){const _0x3c2ae4=['5AouXtI','402406efKiBj','32267970OYBqTJ','14cHcIJy','\x20\x20\x20Minimum\x20supported:\x20','Minimum\x20supported:\x20','join','stableVersion','\x1b[1m','\x1b[33m','1.0.0','package.json','currentVersion','needsUpgrade','minimumVersion','minimumVersionMessage','\x1b[31m','belowMinimum','6173848uLAHLn','1097745TcTTzI','log','Current\x20version:\x20','Upgrade\x20command:\x20','7593075yARwfo','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Recommended\x20stable:\x20','4615gBSNnm','781266ahosql','utf-8','../..','npm\x20install\x20-g\x20','parse','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20','latest','coerce','\x1b[0m','upgradeMessage','version','5452EIFfin','\x20\x20\x20Current\x20CLI\x20version:\x20'];a283_0x1be3=function(){return _0x3c2ae4;};return a283_0x1be3();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x526a0f){const _0xc83a41=a283_0x5a0a,_0x505c8b=_0x526a0f[_0xc83a41(0x1b1)]||_0xc83a41(0x1a3);return _0xc83a41(0x19f)+NPM_PACKAGE_NAME+'@'+_0x505c8b;}function getCurrentCliVersion(){const _0x5b851c=a283_0x5a0a;try{const _0x576f28=fileURLToPath(import.meta.url),_0x5899c1=resolve(dirname(_0x576f28),_0x5b851c(0x19e)),_0x30a73a=resolve(_0x5899c1,_0x5b851c(0x1b5)),_0x51fd7e=JSON[_0x5b851c(0x1a0)](readFileSync(_0x30a73a,_0x5b851c(0x19d)));return _0x51fd7e[_0x5b851c(0x1a7)]||'1.0.0';}catch{return _0x5b851c(0x1b4);}}function a283_0x5a0a(_0x118638,_0x392c72){_0x118638=_0x118638-0x19a;const _0x1be362=a283_0x1be3();let _0x5a0a2f=_0x1be362[_0x118638];return _0x5a0a2f;}export async function checkCliVersion(){const _0x18c48b=a283_0x5a0a,_0x512764=getCurrentCliVersion(),_0x7bc87f=await getCliVersionPolicy(),_0xa330cd=_0x7bc87f?.['stableVersion']||null,_0x407176=_0x7bc87f?.[_0x18c48b(0x1b8)]||null;let _0x3ee31f=![],_0x5edbec=![];const _0x313f92=a283_0x42a3d2[_0x18c48b(0x1a4)](_0x512764);if(_0x313f92&&_0xa330cd)try{const _0x3c2158=a283_0x42a3d2[_0x18c48b(0x1a4)](_0xa330cd);if(_0x3c2158)_0x3ee31f=a283_0x42a3d2['lt'](_0x313f92,_0x3c2158);}catch{}if(_0x313f92&&_0x407176)try{const _0x33a3c6=a283_0x42a3d2[_0x18c48b(0x1a4)](_0x407176);if(_0x33a3c6)_0x5edbec=a283_0x42a3d2['lt'](_0x313f92,_0x33a3c6);}catch{}return _0x5edbec&&(_0x3ee31f=!![]),{'currentVersion':_0x512764,'stableVersion':_0xa330cd,'minimumVersion':_0x407176,'needsUpgrade':_0x3ee31f,'belowMinimum':_0x5edbec,'isPreRelease':![],'upgradeMessage':_0x7bc87f?.[_0x18c48b(0x1a6)],'minimumVersionMessage':_0x7bc87f?.[_0x18c48b(0x1b9)]};}export function printCliUpgradeWarning(_0x2a3b24){const _0x36ea5d=a283_0x5a0a;if(!_0x2a3b24[_0x36ea5d(0x1b7)]&&!_0x2a3b24[_0x36ea5d(0x1bb)])return;const _0x218d8c=_0x36ea5d(0x1ba),_0x7d8144=_0x36ea5d(0x1b3),_0x4e7eaa=_0x36ea5d(0x1a5),_0x678ff3=_0x36ea5d(0x1b2),_0x18771d=getCliUpgradeCommand(_0x2a3b24);console[_0x36ea5d(0x1be)](),_0x2a3b24[_0x36ea5d(0x1bb)]?(console[_0x36ea5d(0x1be)](''+_0x218d8c+_0x678ff3+_0x36ea5d(0x1a1)+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x218d8c+_0x36ea5d(0x1a9)+_0x2a3b24[_0x36ea5d(0x1b6)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1b8)]&&console[_0x36ea5d(0x1be)](_0x218d8c+_0x36ea5d(0x1ae)+_0x2a3b24[_0x36ea5d(0x1b8)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1b1)]&&_0x2a3b24['stableVersion']!==_0x2a3b24[_0x36ea5d(0x1b8)]&&console['log'](_0x218d8c+_0x36ea5d(0x19a)+_0x2a3b24[_0x36ea5d(0x1b1)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1b9)]&&console['log'](_0x218d8c+_0x36ea5d(0x1a2)+_0x2a3b24['minimumVersionMessage']+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x218d8c+'\x20\x20\x20Upgrade\x20command:\x20'+_0x18771d+_0x4e7eaa)):(console[_0x36ea5d(0x1be)](''+_0x7d8144+_0x678ff3+'↪\x20New\x20version\x20available'+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x7d8144+_0x36ea5d(0x1a9)+_0x2a3b24[_0x36ea5d(0x1b6)]+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x7d8144+'\x20\x20\x20Stable\x20version:\x20'+_0x2a3b24[_0x36ea5d(0x1b1)]+_0x4e7eaa),_0x2a3b24[_0x36ea5d(0x1a6)]&&console[_0x36ea5d(0x1be)](_0x7d8144+'\x20\x20\x20'+_0x2a3b24[_0x36ea5d(0x1a6)]+_0x4e7eaa),console[_0x36ea5d(0x1be)](_0x7d8144+_0x36ea5d(0x1c2)+_0x18771d+_0x4e7eaa)),console[_0x36ea5d(0x1be)]();}export function assertCliVersionSupported(_0x4ba575){const _0x5eb600=a283_0x5a0a;if(!_0x4ba575[_0x5eb600(0x1bb)])return;const _0x493e7b=[_0x4ba575[_0x5eb600(0x1b9)],_0x5eb600(0x1bf)+_0x4ba575[_0x5eb600(0x1b6)],_0x4ba575[_0x5eb600(0x1b8)]?_0x5eb600(0x1af)+_0x4ba575[_0x5eb600(0x1b8)]:null,_0x5eb600(0x1c0)+getCliUpgradeCommand(_0x4ba575)]['filter'](Boolean)[_0x5eb600(0x1b0)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x493e7b);}
@@ -4,6 +4,19 @@ export interface CliVersionPolicy {
4
4
  upgradeMessage?: string;
5
5
  minimumVersionMessage?: string;
6
6
  }
7
+ export interface ProjectTemplateCdnDescriptor {
8
+ version: string;
9
+ name: string;
10
+ sha256: string;
11
+ size: number;
12
+ }
13
+ export interface RabetbaseCdnConfig {
14
+ cli?: Record<string, unknown>;
15
+ projectTemplate?: ProjectTemplateCdnDescriptor;
16
+ [key: string]: unknown;
17
+ }
18
+ export declare function fetchRabetbaseCdnConfig(): Promise<RabetbaseCdnConfig | null>;
7
19
  export declare function fetchCliVersionPolicy(): Promise<CliVersionPolicy | null>;
20
+ export declare function getRabetbaseCdnConfig(): Promise<RabetbaseCdnConfig | null>;
8
21
  export declare function getCliVersionPolicy(): Promise<CliVersionPolicy | null>;
9
22
  export declare function clearCliVersionPolicyCache(): void;
@@ -1 +1 @@
1
- (function(_0x34205a,_0x3f771c){const _0x5e3424=a276_0x2ced,_0x2e50bb=_0x34205a();while(!![]){try{const _0x1e481e=parseInt(_0x5e3424(0x192))/0x1*(-parseInt(_0x5e3424(0x184))/0x2)+-parseInt(_0x5e3424(0x18d))/0x3*(parseInt(_0x5e3424(0x181))/0x4)+-parseInt(_0x5e3424(0x18f))/0x5*(-parseInt(_0x5e3424(0x188))/0x6)+-parseInt(_0x5e3424(0x180))/0x7*(parseInt(_0x5e3424(0x18a))/0x8)+parseInt(_0x5e3424(0x187))/0x9*(parseInt(_0x5e3424(0x186))/0xa)+parseInt(_0x5e3424(0x18e))/0xb*(-parseInt(_0x5e3424(0x197))/0xc)+-parseInt(_0x5e3424(0x182))/0xd*(-parseInt(_0x5e3424(0x193))/0xe);if(_0x1e481e===_0x3f771c)break;else _0x2e50bb['push'](_0x2e50bb['shift']());}catch(_0x1538f1){_0x2e50bb['push'](_0x2e50bb['shift']());}}}(a276_0x8910,0x96131));function a276_0x2ced(_0x3f152d,_0x1a6e64){_0x3f152d=_0x3f152d-0x17d;const _0x8910b8=a276_0x8910();let _0x2cede7=_0x8910b8[_0x3f152d];return _0x2cede7;}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(_0x307fdd){const _0x27d9ea=a276_0x2ced;return typeof _0x307fdd===_0x27d9ea(0x18b)&&_0x307fdd[_0x27d9ea(0x190)]()[_0x27d9ea(0x185)]>0x0?_0x307fdd['trim']():null;}function normalizeCliVersionPolicy(_0x517281){const _0x21ae4a=a276_0x2ced;if(!_0x517281||typeof _0x517281!==_0x21ae4a(0x198))return null;const _0x5eb19b=_0x517281,_0x4a93ba=_0x5eb19b[_0x21ae4a(0x183)]&&typeof _0x5eb19b[_0x21ae4a(0x183)]===_0x21ae4a(0x198)?_0x5eb19b[_0x21ae4a(0x183)]:_0x5eb19b,_0xc4dd2e=pickString(_0x4a93ba[_0x21ae4a(0x194)])||pickString(_0x4a93ba[_0x21ae4a(0x17e)])||pickString(_0x4a93ba[_0x21ae4a(0x195)]),_0x334dea=pickString(_0x4a93ba['minimumVersion'])||pickString(_0x4a93ba[_0x21ae4a(0x17d)]);if(!_0xc4dd2e&&!_0x334dea)return null;return{'stableVersion':_0xc4dd2e,'minimumVersion':_0x334dea,'upgradeMessage':pickString(_0x4a93ba['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4a93ba[_0x21ae4a(0x189)])||undefined};}export async function fetchCliVersionPolicy(){const _0x3d64d3=a276_0x2ced,_0x924e14=new AbortController(),_0x6fe7e5=setTimeout(()=>_0x924e14[_0x3d64d3(0x17f)](),FETCH_TIMEOUT_MS);try{const _0x519e7e=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3d64d3(0x199)},'signal':_0x924e14[_0x3d64d3(0x191)]});if(!_0x519e7e['ok'])return null;const _0x26e221=await _0x519e7e[_0x3d64d3(0x18c)]();return normalizeCliVersionPolicy(_0x26e221);}catch{return null;}finally{clearTimeout(_0x6fe7e5);}}function a276_0x8910(){const _0x1894a7=['2174116vcJmWO','2782286rfysOA','cli','164AkTsMl','length','10IfcMLV','7549641cjerSY','42lZGpZL','minimumVersionMessage','80QLONCE','string','json','3LEjcCc','1881517HJkiqc','868535oMZPjq','trim','signal','5074KoZTpe','14IXmWwr','stableVersion','recommendedVersion','now','48jVKcqH','object','application/json','minVersion','latestVersion','abort','7231jeQpWe'];a276_0x8910=function(){return _0x1894a7;};return a276_0x8910();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x211dbb=a276_0x2ced,_0x27e582=Date[_0x211dbb(0x196)]();if(hasCachedPolicy){const _0xa963b2=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x27e582-cacheTime<_0xa963b2)return cachedPolicy;}const _0x41bf36=await fetchCliVersionPolicy();return cachedPolicy=_0x41bf36,cacheTime=_0x27e582,hasCachedPolicy=!![],_0x41bf36;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x1da633,_0x3f8b8a){const _0x3f33cc=a284_0x3649,_0x3c26ba=_0x1da633();while(!![]){try{const _0x370da4=-parseInt(_0x3f33cc(0x10f))/0x1*(-parseInt(_0x3f33cc(0x114))/0x2)+-parseInt(_0x3f33cc(0x112))/0x3*(-parseInt(_0x3f33cc(0x10d))/0x4)+parseInt(_0x3f33cc(0x104))/0x5+-parseInt(_0x3f33cc(0x105))/0x6*(parseInt(_0x3f33cc(0x107))/0x7)+-parseInt(_0x3f33cc(0x103))/0x8*(parseInt(_0x3f33cc(0x101))/0x9)+parseInt(_0x3f33cc(0x113))/0xa*(parseInt(_0x3f33cc(0x109))/0xb)+parseInt(_0x3f33cc(0x115))/0xc*(parseInt(_0x3f33cc(0x10e))/0xd);if(_0x370da4===_0x3f8b8a)break;else _0x3c26ba['push'](_0x3c26ba['shift']());}catch(_0x43b851){_0x3c26ba['push'](_0x3c26ba['shift']());}}}(a284_0xad92,0xc2e73));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 a284_0xad92(){const _0x49bf26=['string','4yoteTi','13897iBTOxK','70727givZTS','length','upgradeMessage','1836777zUCFWO','65210crvMsy','26opLpal','8196TOLqyr','abort','signal','stableVersion','minVersion','latestVersion','minimumVersion','object','13592610oTrkQa','trim','8LgHwIa','1903140EFoksO','114UKAGuk','recommendedVersion','406490wyMkkr','json','1298jZxFrj','application/json','cli'];a284_0xad92=function(){return _0x49bf26;};return a284_0xad92();}function pickString(_0xf389f1){const _0x209946=a284_0x3649;return typeof _0xf389f1===_0x209946(0x10c)&&_0xf389f1[_0x209946(0x102)]()[_0x209946(0x110)]>0x0?_0xf389f1[_0x209946(0x102)]():null;}function a284_0x3649(_0x31e824,_0xecadb9){_0x31e824=_0x31e824-0xfd;const _0xad9289=a284_0xad92();let _0x36490f=_0xad9289[_0x31e824];return _0x36490f;}function normalizeCliVersionPolicy(_0x51a202){const _0x36a002=a284_0x3649;if(!_0x51a202||typeof _0x51a202!==_0x36a002(0x100))return null;const _0x25d434=_0x51a202,_0x2d3369=_0x25d434[_0x36a002(0x10b)]&&typeof _0x25d434['cli']==='object'?_0x25d434[_0x36a002(0x10b)]:_0x25d434,_0x200f73=pickString(_0x2d3369[_0x36a002(0x118)])||pickString(_0x2d3369[_0x36a002(0xfe)])||pickString(_0x2d3369[_0x36a002(0x106)]),_0x72e795=pickString(_0x2d3369[_0x36a002(0xff)])||pickString(_0x2d3369[_0x36a002(0xfd)]);if(!_0x200f73&&!_0x72e795)return null;return{'stableVersion':_0x200f73,'minimumVersion':_0x72e795,'upgradeMessage':pickString(_0x2d3369[_0x36a002(0x111)])||undefined,'minimumVersionMessage':pickString(_0x2d3369['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x5cc625=a284_0x3649,_0x3d186e=new AbortController(),_0x26da33=setTimeout(()=>_0x3d186e[_0x5cc625(0x116)](),FETCH_TIMEOUT_MS);try{const _0x2d353c=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5cc625(0x10a)},'signal':_0x3d186e[_0x5cc625(0x117)]});if(!_0x2d353c['ok'])return null;const _0x387371=await _0x2d353c[_0x5cc625(0x108)]();return _0x387371&&typeof _0x387371===_0x5cc625(0x100)?_0x387371:null;}catch{return null;}finally{clearTimeout(_0x26da33);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x30cb70=Date['now']();if(hasCachedConfig){const _0x468902=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x30cb70-cacheTime<_0x468902)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x30cb70,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a277_0x87e8a4=a277_0x3c1b;function a277_0x2618(){const _0x129fcc=['35AiPPLi','303526ptGtFb','24153AheBOj','project','string','196yiSENC','968NCMncd','356802FXPsHw','96039DzHKFL','147004tOabjg','env','17380259wahbDX','2YvCGFN','1470835gwkpbl','12jKUIbt','860gSevCU'];a277_0x2618=function(){return _0x129fcc;};return a277_0x2618();}(function(_0x1c080e,_0x4191ad){const _0x463dfd=a277_0x3c1b,_0x4696e3=_0x1c080e();while(!![]){try{const _0x1d5be8=parseInt(_0x463dfd(0xd5))/0x1*(parseInt(_0x463dfd(0xda))/0x2)+-parseInt(_0x463dfd(0xdb))/0x3*(parseInt(_0x463dfd(0xde))/0x4)+-parseInt(_0x463dfd(0xd6))/0x5+parseInt(_0x463dfd(0xe0))/0x6*(-parseInt(_0x463dfd(0xd9))/0x7)+-parseInt(_0x463dfd(0xdf))/0x8*(-parseInt(_0x463dfd(0xe1))/0x9)+parseInt(_0x463dfd(0xd8))/0xa*(-parseInt(_0x463dfd(0xe2))/0xb)+-parseInt(_0x463dfd(0xd7))/0xc*(-parseInt(_0x463dfd(0xe4))/0xd);if(_0x1d5be8===_0x4191ad)break;else _0x4696e3['push'](_0x4696e3['shift']());}catch(_0x3a0886){_0x4696e3['push'](_0x4696e3['shift']());}}}(a277_0x2618,0xc26c3));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x1e66ae,getMultiAppConfigs as a277_0x300d7f,getTemplateBaseUrl as a277_0x21a86f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x363bb3){const _0xf3a8e7=a277_0x3c1b,_0x4ff502=readRawConfig(_0x363bb3);return _0x4ff502[_0xf3a8e7(0xe3)]&&typeof _0x4ff502[_0xf3a8e7(0xe3)]===_0xf3a8e7(0xdd)&&initEnv(_0x4ff502[_0xf3a8e7(0xe3)]),_0x4ff502;}export function getConfigAppCode(){return a277_0x1e66ae();}export function getMultiAppConfigs(_0xdd9469=a277_0x87e8a4(0xdc)){return a277_0x300d7f(_0xdd9469);}function a277_0x3c1b(_0x431f90,_0x36ab5c){_0x431f90=_0x431f90-0xd5;const _0x2618ea=a277_0x2618();let _0x3c1b90=_0x2618ea[_0x431f90];return _0x3c1b90;}export function getTemplateBaseUrl(){return a277_0x21a86f();}
1
+ const a285_0x45f634=a285_0x265e;(function(_0x136bcf,_0x383582){const _0x2d9baf=a285_0x265e,_0x3a1b65=_0x136bcf();while(!![]){try{const _0x19f9b0=-parseInt(_0x2d9baf(0x130))/0x1+parseInt(_0x2d9baf(0x138))/0x2*(parseInt(_0x2d9baf(0x139))/0x3)+-parseInt(_0x2d9baf(0x136))/0x4+parseInt(_0x2d9baf(0x134))/0x5*(-parseInt(_0x2d9baf(0x12f))/0x6)+parseInt(_0x2d9baf(0x12d))/0x7+-parseInt(_0x2d9baf(0x132))/0x8*(-parseInt(_0x2d9baf(0x12e))/0x9)+parseInt(_0x2d9baf(0x137))/0xa;if(_0x19f9b0===_0x383582)break;else _0x3a1b65['push'](_0x3a1b65['shift']());}catch(_0x2ab59c){_0x3a1b65['push'](_0x3a1b65['shift']());}}}(a285_0x1ffc,0xb6a47));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a285_0x31007b,getMultiAppConfigs as a285_0x87e888,getTemplateBaseUrl as a285_0xec1b79}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xc350f6){const _0x204135=a285_0x265e,_0x21ccff=readRawConfig(_0xc350f6);return _0x21ccff[_0x204135(0x131)]&&typeof _0x21ccff[_0x204135(0x131)]===_0x204135(0x135)&&initEnv(_0x21ccff[_0x204135(0x131)]),_0x21ccff;}export function getConfigAppCode(){return a285_0x31007b();}function a285_0x1ffc(){const _0xb866d3=['string','5529844HkdkuF','4927310mwrJKI','13606xJAmBC','600vCqciQ','3445120slEbxe','45gKWErZ','12qfvPBO','114672RMrNsC','env','897976vkGMBD','project','1653725slAgxF'];a285_0x1ffc=function(){return _0xb866d3;};return a285_0x1ffc();}function a285_0x265e(_0x172a3d,_0x1a5957){_0x172a3d=_0x172a3d-0x12d;const _0x1ffc71=a285_0x1ffc();let _0x265ef8=_0x1ffc71[_0x172a3d];return _0x265ef8;}export function getMultiAppConfigs(_0x17a216=a285_0x45f634(0x133)){return a285_0x87e888(_0x17a216);}export function getTemplateBaseUrl(){return a285_0xec1b79();}
@@ -1 +1 @@
1
- (function(_0x47bc2e,_0x4c4ea0){const _0x3736a7=a279_0x3dbc,_0x1bfd0e=_0x47bc2e();while(!![]){try{const _0x190327=-parseInt(_0x3736a7(0x1a3))/0x1*(-parseInt(_0x3736a7(0x1ac))/0x2)+parseInt(_0x3736a7(0x1ae))/0x3*(parseInt(_0x3736a7(0x1af))/0x4)+parseInt(_0x3736a7(0x1a8))/0x5*(-parseInt(_0x3736a7(0x1a0))/0x6)+-parseInt(_0x3736a7(0x1a4))/0x7*(-parseInt(_0x3736a7(0x1a6))/0x8)+-parseInt(_0x3736a7(0x1ad))/0x9*(-parseInt(_0x3736a7(0x1a2))/0xa)+-parseInt(_0x3736a7(0x1a1))/0xb*(parseInt(_0x3736a7(0x1ab))/0xc)+-parseInt(_0x3736a7(0x1a7))/0xd;if(_0x190327===_0x4c4ea0)break;else _0x1bfd0e['push'](_0x1bfd0e['shift']());}catch(_0x9dd7e9){_0x1bfd0e['push'](_0x1bfd0e['shift']());}}}(a279_0x596e,0xcfc27));function a279_0x3dbc(_0x5ebf2b,_0x57f40a){_0x5ebf2b=_0x5ebf2b-0x1a0;const _0x596e8c=a279_0x596e();let _0x3dbc88=_0x596e8c[_0x5ebf2b];return _0x3dbc88;}function toFiniteNumber(_0x37289d){const _0x5d5da6=a279_0x3dbc;if(typeof _0x37289d==='number'&&Number[_0x5d5da6(0x1a9)](_0x37289d))return _0x37289d;if(typeof _0x37289d==='string'){const _0x40612f=_0x37289d[_0x5d5da6(0x1aa)]();if(!_0x40612f)return undefined;const _0x7c26da=Number(_0x40612f);if(Number[_0x5d5da6(0x1a9)](_0x7c26da))return _0x7c26da;}return undefined;}function a279_0x596e(){const _0x419236=['416493EKprAE','3095046cIYuXq','4LjdLoA','1194wJssZA','143VvavfY','40bNVtrP','714872nrLTju','427GLTfBG','object','142024txkeVG','23810761htjXUW','530bZkWPt','isFinite','trim','287004futvtD','2jIVOTQ'];a279_0x596e=function(){return _0x419236;};return a279_0x596e();}export function normalizeEntityWithIdResponse(_0x45fe9d){const _0x3d0026=a279_0x3dbc,_0xc845d2=toFiniteNumber(_0x45fe9d);if(_0xc845d2!==undefined)return{'id':_0xc845d2,'entity':{'id':_0xc845d2}};if(!_0x45fe9d||typeof _0x45fe9d!==_0x3d0026(0x1a5))return{'id':undefined,'entity':{}};const _0x3b6581={..._0x45fe9d},_0x1efb8e=toFiniteNumber(_0x3b6581['id']);return _0x1efb8e!==undefined&&(_0x3b6581['id']=_0x1efb8e),{'id':_0x1efb8e,'entity':_0x3b6581};}
1
+ function a286_0x4f1d(_0x360044,_0x4fccfd){_0x360044=_0x360044-0x1d1;const _0x57d474=a286_0x57d4();let _0x4f1def=_0x57d474[_0x360044];return _0x4f1def;}function a286_0x57d4(){const _0x30ab0d=['5565OZchPA','trim','isFinite','74QRBASI','string','number','3111160LJHNSf','3wpPXJd','7237450cOYRrQ','427383tdRDnA','object','6QeQebI','2227132RWqSXF','1425605OEcVtR','5307932kJoenL','10ATlBLm'];a286_0x57d4=function(){return _0x30ab0d;};return a286_0x57d4();}(function(_0x558c67,_0x527e6d){const _0x5b6200=a286_0x4f1d,_0x13ff02=_0x558c67();while(!![]){try{const _0x12a9af=parseInt(_0x5b6200(0x1d1))/0x1*(parseInt(_0x5b6200(0x1d4))/0x2)+-parseInt(_0x5b6200(0x1d8))/0x3*(-parseInt(_0x5b6200(0x1dd))/0x4)+parseInt(_0x5b6200(0x1de))/0x5*(parseInt(_0x5b6200(0x1dc))/0x6)+-parseInt(_0x5b6200(0x1df))/0x7+-parseInt(_0x5b6200(0x1d7))/0x8+-parseInt(_0x5b6200(0x1da))/0x9*(-parseInt(_0x5b6200(0x1e0))/0xa)+parseInt(_0x5b6200(0x1d9))/0xb;if(_0x12a9af===_0x527e6d)break;else _0x13ff02['push'](_0x13ff02['shift']());}catch(_0x3fb626){_0x13ff02['push'](_0x13ff02['shift']());}}}(a286_0x57d4,0x93f7b));function toFiniteNumber(_0x4f041d){const _0x253bde=a286_0x4f1d;if(typeof _0x4f041d===_0x253bde(0x1d6)&&Number[_0x253bde(0x1d3)](_0x4f041d))return _0x4f041d;if(typeof _0x4f041d===_0x253bde(0x1d5)){const _0x4c5b64=_0x4f041d[_0x253bde(0x1d2)]();if(!_0x4c5b64)return undefined;const _0x3509cd=Number(_0x4c5b64);if(Number['isFinite'](_0x3509cd))return _0x3509cd;}return undefined;}export function normalizeEntityWithIdResponse(_0x4af2d6){const _0x37d908=a286_0x4f1d,_0x1aa5a3=toFiniteNumber(_0x4af2d6);if(_0x1aa5a3!==undefined)return{'id':_0x1aa5a3,'entity':{'id':_0x1aa5a3}};if(!_0x4af2d6||typeof _0x4af2d6!==_0x37d908(0x1db))return{'id':undefined,'entity':{}};const _0x5ace6c={..._0x4af2d6},_0x28cfc8=toFiniteNumber(_0x5ace6c['id']);return _0x28cfc8!==undefined&&(_0x5ace6c['id']=_0x28cfc8),{'id':_0x28cfc8,'entity':_0x5ace6c};}
@@ -1 +1 @@
1
- (function(_0x1a277a,_0x504cc4){const _0x140e80=a280_0x3515,_0x7abef7=_0x1a277a();while(!![]){try{const _0xe088ad=parseInt(_0x140e80(0xa6))/0x1*(parseInt(_0x140e80(0xa9))/0x2)+parseInt(_0x140e80(0xa1))/0x3*(-parseInt(_0x140e80(0xa2))/0x4)+parseInt(_0x140e80(0xa7))/0x5*(parseInt(_0x140e80(0xa5))/0x6)+parseInt(_0x140e80(0x9f))/0x7*(-parseInt(_0x140e80(0x9e))/0x8)+-parseInt(_0x140e80(0xa3))/0x9*(-parseInt(_0x140e80(0xa8))/0xa)+-parseInt(_0x140e80(0xa0))/0xb+parseInt(_0x140e80(0xa4))/0xc;if(_0xe088ad===_0x504cc4)break;else _0x7abef7['push'](_0x7abef7['shift']());}catch(_0x3a0512){_0x7abef7['push'](_0x7abef7['shift']());}}}(a280_0x23e8,0x83897));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a280_0x3515(_0x3cb70e,_0x3fd959){_0x3cb70e=_0x3cb70e-0x9e;const _0x23e800=a280_0x23e8();let _0x35158e=_0x23e800[_0x3cb70e];return _0x35158e;}function a280_0x23e8(){const _0x18e005=['319983Srfcad','8EaIGma','3015oxojyf','9525504zbZsuX','2946IfbZoz','4045AGyLzu','8105SQLhQw','30othYwD','436ATIFPP','isDirectory','596584qUkLhI','91xxYXcV','8260692XCuUGi'];a280_0x23e8=function(){return _0x18e005;};return a280_0x23e8();}import{join}from'node:path';export async function copyDir(_0x14c52f,_0x1d48ff){const _0x55d350=a280_0x3515,_0x3ee7bc=statSync(_0x14c52f);if(_0x3ee7bc[_0x55d350(0xaa)]()){!existsSync(_0x1d48ff)&&mkdirSync(_0x1d48ff,{'recursive':!![]});const _0xfcda44=readdirSync(_0x14c52f);for(const _0x148a95 of _0xfcda44){await copyDir(join(_0x14c52f,_0x148a95),join(_0x1d48ff,_0x148a95));}}else copyFileSync(_0x14c52f,_0x1d48ff);}export function ensureDir(_0x38a9a4){!existsSync(_0x38a9a4)&&mkdirSync(_0x38a9a4,{'recursive':!![]});}export function pathExists(_0x153317){return existsSync(_0x153317);}
1
+ (function(_0x53f644,_0x438078){const _0x1e1741=a287_0x45e1,_0x2512c5=_0x53f644();while(!![]){try{const _0x4f29c1=parseInt(_0x1e1741(0x14a))/0x1*(-parseInt(_0x1e1741(0x143))/0x2)+parseInt(_0x1e1741(0x149))/0x3*(-parseInt(_0x1e1741(0x14d))/0x4)+parseInt(_0x1e1741(0x147))/0x5+parseInt(_0x1e1741(0x142))/0x6*(-parseInt(_0x1e1741(0x14e))/0x7)+parseInt(_0x1e1741(0x141))/0x8*(-parseInt(_0x1e1741(0x145))/0x9)+-parseInt(_0x1e1741(0x14c))/0xa*(parseInt(_0x1e1741(0x148))/0xb)+parseInt(_0x1e1741(0x146))/0xc*(parseInt(_0x1e1741(0x14b))/0xd);if(_0x4f29c1===_0x438078)break;else _0x2512c5['push'](_0x2512c5['shift']());}catch(_0x4b203c){_0x2512c5['push'](_0x2512c5['shift']());}}}(a287_0x9391,0x19972));function a287_0x45e1(_0x634694,_0x134c44){_0x634694=_0x634694-0x141;const _0x93916e=a287_0x9391();let _0x45e160=_0x93916e[_0x634694];return _0x45e160;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a287_0x9391(){const _0x36f368=['223128BkUpcp','4949fiuUNi','453392lMgoRY','1152CJfTXZ','248ZnrTZS','isDirectory','18GYvJNS','696KYcqsd','616065HnhCnu','11SejwmC','9ppesQV','406lpSSvx','121758ddbGaJ','948410Bhmygt'];a287_0x9391=function(){return _0x36f368;};return a287_0x9391();}import{join}from'node:path';export async function copyDir(_0x1f7bcc,_0x3f3065){const _0x563ba2=a287_0x45e1,_0xc5f8c2=statSync(_0x1f7bcc);if(_0xc5f8c2[_0x563ba2(0x144)]()){!existsSync(_0x3f3065)&&mkdirSync(_0x3f3065,{'recursive':!![]});const _0x44e7ce=readdirSync(_0x1f7bcc);for(const _0x32c06e of _0x44e7ce){await copyDir(join(_0x1f7bcc,_0x32c06e),join(_0x3f3065,_0x32c06e));}}else copyFileSync(_0x1f7bcc,_0x3f3065);}export function ensureDir(_0x339126){!existsSync(_0x339126)&&mkdirSync(_0x339126,{'recursive':!![]});}export function pathExists(_0x10e0c3){return existsSync(_0x10e0c3);}
@@ -1 +1 @@
1
- const a281_0x225db8=a281_0x120b;function a281_0x142c(){const _0x35ce90=['/skills/guides.json','join','8278458BWEuFX','.lovrabet/skill/guides','\x0a\x0a>更新时间:','4713742TWkENr','4873620eQOWkM','keys','9peCpbX','entries','content','36zLffvA','134120JNVGJT','394228lqvUyn','push','skillTemplate','34054tGsntW','9217995siReaG','.lovrabet','json','104cmfCpd','CDN\x20数据中缺少\x20skillTemplate','cache','.md','CDN\x20返回数据格式错误','replace','trimEnd','extendContent','1044QdPiGo','utf-8','7ynAmbz','lastUpdated','guides'];a281_0x142c=function(){return _0x35ce90;};return a281_0x142c();}(function(_0x531e83,_0x29af17){const _0x3bd766=a281_0x120b,_0x27a5af=_0x531e83();while(!![]){try{const _0x18af91=-parseInt(_0x3bd766(0x9a))/0x1*(-parseInt(_0x3bd766(0x96))/0x2)+-parseInt(_0x3bd766(0x8e))/0x3*(parseInt(_0x3bd766(0x93))/0x4)+-parseInt(_0x3bd766(0x97))/0x5+-parseInt(_0x3bd766(0xa9))/0x6*(parseInt(_0x3bd766(0xa4))/0x7)+-parseInt(_0x3bd766(0x92))/0x8*(-parseInt(_0x3bd766(0xa2))/0x9)+-parseInt(_0x3bd766(0x8c))/0xa+-parseInt(_0x3bd766(0x8b))/0xb*(-parseInt(_0x3bd766(0x91))/0xc);if(_0x18af91===_0x29af17)break;else _0x27a5af['push'](_0x27a5af['shift']());}catch(_0x67783c){_0x27a5af['push'](_0x27a5af['shift']());}}}(a281_0x142c,0xf2db3));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 _0x26997d=a281_0x120b,_0x3952c2=getTemplateBaseUrl();return _0x3952c2+_0x26997d(0xa7);}const CACHE_DIR=join(homedir(),a281_0x225db8(0x98),a281_0x225db8(0x9c));export async function fetchGuidesFromCDN(){const _0x2fd6f2=a281_0x225db8,_0x521340=getGuidesCdnUrl(),_0x11a50d=await fetch(_0x521340,{'headers':{'Accept':'application/json'}});if(!_0x11a50d['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x11a50d['status']+'\x20'+_0x11a50d['statusText']);const _0x478cb9=await _0x11a50d[_0x2fd6f2(0x99)]();if(!_0x478cb9[_0x2fd6f2(0xa6)]||typeof _0x478cb9['guides']!=='object')throw new Error(_0x2fd6f2(0x9e));return _0x478cb9;}export function writeGuidesToProject(_0x2f51a5,_0x4d4b38,_0x378c34=a281_0x225db8(0x89),_0x3220e6){const _0x4200e0=a281_0x225db8,_0xce6e2e=join(_0x4d4b38,_0x378c34);mkdirSync(_0xce6e2e,{'recursive':!![]});for(const [_0x4a676f,_0x59e828]of Object[_0x4200e0(0x8f)](_0x2f51a5[_0x4200e0(0xa6)])){let _0x212c27=_0x59e828[_0x4200e0(0x90)];_0x59e828[_0x4200e0(0xa5)]&&(_0x212c27=appendUpdateTime(_0x212c27,_0x59e828['lastUpdated'])),writeFileSync(join(_0xce6e2e,_0x4a676f+_0x4200e0(0x9d)),_0x212c27,_0x4200e0(0xa3));}}export function appendUpdateTime(_0xcb4260,_0x1eefd0){const _0x2c298f=a281_0x225db8;return _0xcb4260=_0xcb4260[_0x2c298f(0x9f)](/\n*>更新时间:.*$/m,''),_0xcb4260[_0x2c298f(0xa0)]()+(_0x2c298f(0x8a)+_0x1eefd0);}export function getSkillTemplate(_0x3b5992){const _0x56293f=a281_0x225db8;return _0x3b5992[_0x56293f(0x95)]?.[_0x56293f(0x90)]||'';}function a281_0x120b(_0x1628dd,_0x19c891){_0x1628dd=_0x1628dd-0x89;const _0x142ce9=a281_0x142c();let _0x120bd1=_0x142ce9[_0x1628dd];return _0x120bd1;}export function appendExtendContents(_0x1eb77c,_0x541862,_0x13b4b2){const _0x4042b7=a281_0x225db8,_0x2a619b=[];for(const [,_0x25515d]of Object[_0x4042b7(0x8f)](_0x541862[_0x4042b7(0xa6)])){_0x25515d[_0x4042b7(0xa1)]&&_0x2a619b[_0x4042b7(0x94)](_0x25515d[_0x4042b7(0xa1)][_0x4042b7(0xa0)]());}if(_0x2a619b['length']===0x0)return _0x1eb77c;return _0x1eb77c['trimEnd']()+'\x0a\x0a'+_0x2a619b[_0x4042b7(0xa8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2c9d54,_0x1d1034,_0x2dc33e){const _0x2077e0=a281_0x225db8,_0x54b866=getSkillTemplate(_0x2c9d54);if(!_0x54b866)throw new Error(_0x2077e0(0x9b));const _0x59205a=dirname(_0x1d1034);mkdirSync(_0x59205a,{'recursive':!![]});let _0x51324c=_0x54b866[_0x2077e0(0x9f)](/\{\{IDE_NAME\}\}/g,_0x2dc33e);_0x51324c=appendExtendContents(_0x51324c,_0x2c9d54),_0x2c9d54[_0x2077e0(0x95)][_0x2077e0(0xa5)]&&(_0x51324c=appendUpdateTime(_0x51324c,_0x2c9d54[_0x2077e0(0x95)][_0x2077e0(0xa5)])),writeFileSync(_0x1d1034,_0x51324c,_0x2077e0(0xa3));}export async function installGuides(_0x4e23b4){const _0x2576a9=a281_0x225db8,_0x271839=await fetchGuidesFromCDN();return writeGuidesToProject(_0x271839,_0x4e23b4),Object[_0x2576a9(0x8d)](_0x271839['guides'])['length'];}export function getGuidesSummary(_0x21957b){const _0x4ef4c4=a281_0x225db8;return Object[_0x4ef4c4(0x8f)](_0x21957b[_0x4ef4c4(0xa6)])['map'](([_0x56dfa6,_0x5ae4f1])=>({'key':_0x56dfa6,'title':_0x5ae4f1['title'],'path':_0x5ae4f1['path']}));}
1
+ const a288_0x5b8450=a288_0x55a6;(function(_0x582330,_0x4ccd82){const _0x572c76=a288_0x55a6,_0x57b3db=_0x582330();while(!![]){try{const _0x26f9f4=-parseInt(_0x572c76(0xa9))/0x1+-parseInt(_0x572c76(0xa2))/0x2+-parseInt(_0x572c76(0xb3))/0x3*(-parseInt(_0x572c76(0xab))/0x4)+-parseInt(_0x572c76(0xa1))/0x5*(-parseInt(_0x572c76(0xac))/0x6)+-parseInt(_0x572c76(0xa8))/0x7+-parseInt(_0x572c76(0x94))/0x8+parseInt(_0x572c76(0xb2))/0x9;if(_0x26f9f4===_0x4ccd82)break;else _0x57b3db['push'](_0x57b3db['shift']());}catch(_0x40933b){_0x57b3db['push'](_0x57b3db['shift']());}}}(a288_0x525f,0x4af14));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 _0x140638=getTemplateBaseUrl();return _0x140638+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a288_0x5b8450(0xad),a288_0x5b8450(0xa0));export async function fetchGuidesFromCDN(){const _0x5ce4a7=a288_0x5b8450,_0x1c2fbd=getGuidesCdnUrl(),_0x5637f2=await fetch(_0x1c2fbd,{'headers':{'Accept':_0x5ce4a7(0x9d)}});if(!_0x5637f2['ok'])throw new Error(_0x5ce4a7(0x93)+_0x5637f2[_0x5ce4a7(0x9e)]+'\x20'+_0x5637f2['statusText']);const _0x1c7186=await _0x5637f2[_0x5ce4a7(0xb4)]();if(!_0x1c7186[_0x5ce4a7(0x9a)]||typeof _0x1c7186[_0x5ce4a7(0x9a)]!==_0x5ce4a7(0xa7))throw new Error(_0x5ce4a7(0xa4));return _0x1c7186;}function a288_0x525f(){const _0xbaa57b=['join','guides','replace','skillTemplate','application/json','status','push','cache','48315TCMiJU','915354ejpNct','map','CDN\x20返回数据格式错误','lastUpdated','trimEnd','object','3678381ogNwNG','606676WKGrtG','CDN\x20数据中缺少\x20skillTemplate','4JYyHNM','150AMyaSg','.lovrabet','.lovrabet/skill/guides','.md','content','path','17676036SASCYG','668739vkknQP','json','CDN\x20请求失败:\x20','4253536AVJFnT','extendContent','length','utf-8','entries'];a288_0x525f=function(){return _0xbaa57b;};return a288_0x525f();}export function writeGuidesToProject(_0x2bd1e0,_0x21a714,_0x55903c=a288_0x5b8450(0xae),_0x4cad46){const _0x53e144=a288_0x5b8450,_0x52c330=join(_0x21a714,_0x55903c);mkdirSync(_0x52c330,{'recursive':!![]});for(const [_0x38911d,_0x1a02e2]of Object[_0x53e144(0x98)](_0x2bd1e0[_0x53e144(0x9a)])){let _0x31b0e5=_0x1a02e2[_0x53e144(0xb0)];_0x1a02e2['lastUpdated']&&(_0x31b0e5=appendUpdateTime(_0x31b0e5,_0x1a02e2[_0x53e144(0xa5)])),writeFileSync(join(_0x52c330,_0x38911d+_0x53e144(0xaf)),_0x31b0e5,'utf-8');}}export function appendUpdateTime(_0x333a71,_0x2e2268){const _0x4ebcc6=a288_0x5b8450;return _0x333a71=_0x333a71[_0x4ebcc6(0x9b)](/\n*>更新时间:.*$/m,''),_0x333a71[_0x4ebcc6(0xa6)]()+('\x0a\x0a>更新时间:'+_0x2e2268);}export function getSkillTemplate(_0x3bf60b){const _0x5cb05b=a288_0x5b8450;return _0x3bf60b[_0x5cb05b(0x9c)]?.[_0x5cb05b(0xb0)]||'';}export function appendExtendContents(_0x104644,_0x51ce34,_0x5bc145){const _0x51d6b4=a288_0x5b8450,_0x1f26c=[];for(const [,_0x2f0bf0]of Object[_0x51d6b4(0x98)](_0x51ce34[_0x51d6b4(0x9a)])){_0x2f0bf0[_0x51d6b4(0x95)]&&_0x1f26c[_0x51d6b4(0x9f)](_0x2f0bf0[_0x51d6b4(0x95)][_0x51d6b4(0xa6)]());}if(_0x1f26c[_0x51d6b4(0x96)]===0x0)return _0x104644;return _0x104644['trimEnd']()+'\x0a\x0a'+_0x1f26c[_0x51d6b4(0x99)]('\x0a\x0a')+'\x0a';}function a288_0x55a6(_0x26aeec,_0x9f0daa){_0x26aeec=_0x26aeec-0x93;const _0x525fae=a288_0x525f();let _0x55a6b3=_0x525fae[_0x26aeec];return _0x55a6b3;}export function writeSkillFile(_0x3eba5c,_0x4a647e,_0x288225){const _0x5eb122=a288_0x5b8450,_0x4c18e5=getSkillTemplate(_0x3eba5c);if(!_0x4c18e5)throw new Error(_0x5eb122(0xaa));const _0x37a81c=dirname(_0x4a647e);mkdirSync(_0x37a81c,{'recursive':!![]});let _0x529eea=_0x4c18e5[_0x5eb122(0x9b)](/\{\{IDE_NAME\}\}/g,_0x288225);_0x529eea=appendExtendContents(_0x529eea,_0x3eba5c),_0x3eba5c[_0x5eb122(0x9c)][_0x5eb122(0xa5)]&&(_0x529eea=appendUpdateTime(_0x529eea,_0x3eba5c[_0x5eb122(0x9c)][_0x5eb122(0xa5)])),writeFileSync(_0x4a647e,_0x529eea,_0x5eb122(0x97));}export async function installGuides(_0x7ab0d9){const _0x32b2a8=a288_0x5b8450,_0xee3c25=await fetchGuidesFromCDN();return writeGuidesToProject(_0xee3c25,_0x7ab0d9),Object['keys'](_0xee3c25[_0x32b2a8(0x9a)])[_0x32b2a8(0x96)];}export function getGuidesSummary(_0x45b745){const _0x418617=a288_0x5b8450;return Object[_0x418617(0x98)](_0x45b745[_0x418617(0x9a)])[_0x418617(0xa3)](([_0x3b9fdf,_0x11641c])=>({'key':_0x3b9fdf,'title':_0x11641c['title'],'path':_0x11641c[_0x418617(0xb1)]}));}
@@ -1 +1 @@
1
- function a282_0x2af1(){const _0x563425=['4984600jDkJiW','*\x20请求失败,','3655715YKarqw','35840QOELWb','signal','31266DYELFb','message','log','ms\x20后进行第\x20','statusText','application/json','3WaUOJX','text','\x20次重试...','json','TypeError','1197358jIZLal','Request\x20failed','16JuvaRt','293935HVfgwV','ECONNRESET','AbortError','fetch','status','headers','url','includes','abort','content-type','3439125nkCsqd','441qjvYrR','ENOTFOUND'];a282_0x2af1=function(){return _0x563425;};return a282_0x2af1();}(function(_0x2cb5b8,_0x15b7c3){const _0x3bdad6=a282_0xa8b9,_0x261fd4=_0x2cb5b8();while(!![]){try{const _0xced72e=parseInt(_0x3bdad6(0xe9))/0x1+-parseInt(_0x3bdad6(0x106))/0x2*(parseInt(_0x3bdad6(0x101))/0x3)+parseInt(_0x3bdad6(0xf6))/0x4+parseInt(_0x3bdad6(0xf3))/0x5+parseInt(_0x3bdad6(0xfb))/0x6+parseInt(_0x3bdad6(0xf8))/0x7*(-parseInt(_0x3bdad6(0xe8))/0x8)+-parseInt(_0x3bdad6(0xf4))/0x9*(-parseInt(_0x3bdad6(0xf9))/0xa);if(_0xced72e===_0x15b7c3)break;else _0x261fd4['push'](_0x261fd4['shift']());}catch(_0x209b23){_0x261fd4['push'](_0x261fd4['shift']());}}}(a282_0x2af1,0xbae80));function a282_0xa8b9(_0x4d4996,_0x2be332){_0x4d4996=_0x4d4996-0xe7;const _0x2af1b7=a282_0x2af1();let _0xa8b91b=_0x2af1b7[_0x4d4996];return _0xa8b91b;}export async function httpRequest(_0x9c8960,_0x4fd064={}){const _0xb9b3d7=a282_0xa8b9,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4fd064;let _0x56ffbc=null;for(let _0x464429=0x0;_0x464429<=retries;_0x464429++){try{const _0x2ad5b6=new AbortController(),_0x562b2e=setTimeout(()=>_0x2ad5b6[_0xb9b3d7(0xf1)](),timeout),_0x4b3364=await fetch(_0x9c8960,{'headers':headers,'signal':_0x2ad5b6[_0xb9b3d7(0xfa)]});clearTimeout(_0x562b2e);let _0x7462ab;const _0x1f70de=_0x4b3364[_0xb9b3d7(0xee)]['get'](_0xb9b3d7(0xf2));return _0x1f70de?.[_0xb9b3d7(0xf0)](_0xb9b3d7(0x100))?_0x7462ab=await _0x4b3364[_0xb9b3d7(0x104)]():_0x7462ab=await _0x4b3364['text'](),{'ok':_0x4b3364['ok'],'status':_0x4b3364[_0xb9b3d7(0xed)],'statusText':_0x4b3364[_0xb9b3d7(0xff)],'data':_0x7462ab,'headers':_0x4b3364[_0xb9b3d7(0xee)],'url':_0x4b3364[_0xb9b3d7(0xef)],'text':()=>_0x4b3364[_0xb9b3d7(0x102)]()};}catch(_0x556663){_0x56ffbc=_0x556663 instanceof Error?_0x556663:new Error(String(_0x556663));if(_0x464429===retries)break;if(shouldRetry(_0x556663)){console[_0xb9b3d7(0xfd)](_0xb9b3d7(0xf7)+retryDelay+_0xb9b3d7(0xfe)+(_0x464429+0x1)+_0xb9b3d7(0x103)),await sleep(retryDelay);continue;}else break;}}throw _0x56ffbc||new Error(_0xb9b3d7(0xe7));}function shouldRetry(_0x304158){const _0xbb439e=a282_0xa8b9;if(_0x304158 instanceof Error){if(_0x304158['name']===_0xbb439e(0xeb))return![];if(_0x304158['name']===_0xbb439e(0x105)&&_0x304158[_0xbb439e(0xfc)]['includes'](_0xbb439e(0xec)))return!![];if(_0x304158[_0xbb439e(0xfc)][_0xbb439e(0xf0)](_0xbb439e(0xea)))return!![];if(_0x304158[_0xbb439e(0xfc)][_0xbb439e(0xf0)](_0xbb439e(0xf5)))return![];}return![];}function sleep(_0x283bd9){return new Promise(_0x279985=>setTimeout(_0x279985,_0x283bd9));}export function validateUrl(_0x2d72bd){try{return new URL(_0x2d72bd),!![];}catch{return![];}}
1
+ (function(_0x5b66b9,_0x387327){const _0x11056b=a289_0x58c1,_0x5694f7=_0x5b66b9();while(!![]){try{const _0x1f3cf2=-parseInt(_0x11056b(0xf8))/0x1*(parseInt(_0x11056b(0xfc))/0x2)+parseInt(_0x11056b(0x105))/0x3+parseInt(_0x11056b(0x110))/0x4*(parseInt(_0x11056b(0x10e))/0x5)+parseInt(_0x11056b(0x108))/0x6+parseInt(_0x11056b(0x109))/0x7*(parseInt(_0x11056b(0x10d))/0x8)+parseInt(_0x11056b(0x103))/0x9*(-parseInt(_0x11056b(0x10b))/0xa)+parseInt(_0x11056b(0x102))/0xb*(-parseInt(_0x11056b(0xfd))/0xc);if(_0x1f3cf2===_0x387327)break;else _0x5694f7['push'](_0x5694f7['shift']());}catch(_0x1ada42){_0x5694f7['push'](_0x5694f7['shift']());}}}(a289_0x33bb,0xc73f2));export async function httpRequest(_0x4efda6,_0xfc0952={}){const _0x45a1bf=a289_0x58c1,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xfc0952;let _0x584459=null;for(let _0x1de092=0x0;_0x1de092<=retries;_0x1de092++){try{const _0x2dcb0b=new AbortController(),_0x38c48e=setTimeout(()=>_0x2dcb0b[_0x45a1bf(0x100)](),timeout),_0x2a0bb4=await fetch(_0x4efda6,{'headers':headers,'signal':_0x2dcb0b[_0x45a1bf(0xfa)]});clearTimeout(_0x38c48e);let _0x2f4f20;const _0x366877=_0x2a0bb4[_0x45a1bf(0xf7)]['get']('content-type');return _0x366877?.[_0x45a1bf(0x101)](_0x45a1bf(0x104))?_0x2f4f20=await _0x2a0bb4['json']():_0x2f4f20=await _0x2a0bb4[_0x45a1bf(0x10c)](),{'ok':_0x2a0bb4['ok'],'status':_0x2a0bb4['status'],'statusText':_0x2a0bb4[_0x45a1bf(0xf5)],'data':_0x2f4f20,'headers':_0x2a0bb4[_0x45a1bf(0xf7)],'url':_0x2a0bb4[_0x45a1bf(0x106)],'text':()=>_0x2a0bb4[_0x45a1bf(0x10c)]()};}catch(_0x535424){_0x584459=_0x535424 instanceof Error?_0x535424:new Error(String(_0x535424));if(_0x1de092===retries)break;if(shouldRetry(_0x535424)){console[_0x45a1bf(0xf6)](_0x45a1bf(0x10a)+retryDelay+_0x45a1bf(0x107)+(_0x1de092+0x1)+_0x45a1bf(0x111)),await sleep(retryDelay);continue;}else break;}}throw _0x584459||new Error(_0x45a1bf(0xf4));}function a289_0x33bb(){const _0x49baf4=['51401mNeXVK','*\x20请求失败,','10CLVfME','text','856reyfuH','5WiStuJ','TypeError','4073304NhSdsI','\x20次重试...','fetch','Request\x20failed','statusText','log','headers','17oWWRyT','name','signal','AbortError','74742HPzTLa','1464cSsdtS','message','ENOTFOUND','abort','includes','115764ukBLwC','9290025gbLzHd','application/json','3584160TQqHWL','url','ms\x20后进行第\x20','4612962leKHJY'];a289_0x33bb=function(){return _0x49baf4;};return a289_0x33bb();}function shouldRetry(_0x3dfc94){const _0x14e342=a289_0x58c1;if(_0x3dfc94 instanceof Error){if(_0x3dfc94[_0x14e342(0xf9)]===_0x14e342(0xfb))return![];if(_0x3dfc94['name']===_0x14e342(0x10f)&&_0x3dfc94[_0x14e342(0xfe)]['includes'](_0x14e342(0xf3)))return!![];if(_0x3dfc94[_0x14e342(0xfe)]['includes']('ECONNRESET'))return!![];if(_0x3dfc94[_0x14e342(0xfe)][_0x14e342(0x101)](_0x14e342(0xff)))return![];}return![];}function a289_0x58c1(_0x22ddee,_0x43930){_0x22ddee=_0x22ddee-0xf3;const _0x33bb4a=a289_0x33bb();let _0x58c10f=_0x33bb4a[_0x22ddee];return _0x58c10f;}function sleep(_0x1a5b52){return new Promise(_0x5656b5=>setTimeout(_0x5656b5,_0x1a5b52));}export function validateUrl(_0x1dc8de){try{return new URL(_0x1dc8de),!![];}catch{return![];}}