@lovrabet/rabetbase-cli 2.4.4 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) 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.d.ts +1 -0
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/{permit/index.d.ts → dataset/business-groups.d.ts} +1 -1
  63. package/lib/commands/dataset/business-groups.js +1 -0
  64. package/lib/commands/dataset/capability.js +1 -1
  65. package/lib/commands/dataset/delete.js +1 -1
  66. package/lib/commands/dataset/detail.js +1 -1
  67. package/lib/commands/dataset/extend-update.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.d.ts +15 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/tables.js +1 -1
  97. package/lib/commands/db/test.js +1 -1
  98. package/lib/commands/db/update.js +1 -1
  99. package/lib/commands/doctor.js +1 -1
  100. package/lib/commands/file/index.js +1 -1
  101. package/lib/commands/init/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/shared.js +1 -1
  112. package/lib/commands/kb/update.js +1 -1
  113. package/lib/commands/logs/index.js +1 -1
  114. package/lib/commands/menu/asset-update.js +1 -1
  115. package/lib/commands/menu/delete.js +1 -1
  116. package/lib/commands/menu/external-link-create.js +1 -1
  117. package/lib/commands/menu/external-link-update.js +1 -1
  118. package/lib/commands/menu/group-create.js +1 -1
  119. package/lib/commands/menu/group-update.js +1 -1
  120. package/lib/commands/menu/index.js +1 -1
  121. package/lib/commands/menu/list.js +1 -1
  122. package/lib/commands/menu/move.js +1 -1
  123. package/lib/commands/menu/regroup-start.js +1 -1
  124. package/lib/commands/menu/rename.js +1 -1
  125. package/lib/commands/menu/shared/compare-table.js +1 -1
  126. package/lib/commands/menu/shared/delete-plan.js +1 -1
  127. package/lib/commands/menu/shared/facts.js +1 -1
  128. package/lib/commands/menu/shared/index.js +1 -1
  129. package/lib/commands/menu/shared/inquirer.js +1 -1
  130. package/lib/commands/menu/shared/local-pages.js +1 -1
  131. package/lib/commands/menu/shared/logic.js +1 -1
  132. package/lib/commands/menu/shared/mutations.js +1 -1
  133. package/lib/commands/menu/shared/service.js +1 -1
  134. package/lib/commands/menu/shared/sync-core.js +1 -1
  135. package/lib/commands/menu/shared/update-core.js +1 -1
  136. package/lib/commands/menu/shared/valid-url.js +1 -1
  137. package/lib/commands/menu/sync.js +1 -1
  138. package/lib/commands/notification/config-create.js +1 -1
  139. package/lib/commands/notification/config-delete.js +1 -1
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.js +1 -1
  142. package/lib/commands/notification/index.js +1 -1
  143. package/lib/commands/notification/shared.js +1 -1
  144. package/lib/commands/ocr/index.js +1 -1
  145. package/lib/commands/page/generate-start.js +1 -1
  146. package/lib/commands/page/generate-status.js +1 -1
  147. package/lib/commands/page/index.js +1 -1
  148. package/lib/commands/page/pull.js +1 -1
  149. package/lib/commands/page/push.js +1 -1
  150. package/lib/commands/page/react/create.js +1 -1
  151. package/lib/commands/page/react/detail.js +1 -1
  152. package/lib/commands/page/react/list.js +1 -1
  153. package/lib/commands/page/react/publish.js +1 -1
  154. package/lib/commands/page/react/shared.js +1 -1
  155. package/lib/commands/page/react/syntax.js +1 -1
  156. package/lib/commands/page/react/template.js +1 -1
  157. package/lib/commands/page/react/update.js +1 -1
  158. package/lib/commands/page/relation-audit.js +1 -1
  159. package/lib/commands/page/restore.js +1 -1
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  164. package/lib/commands/project/create/format-elapsed.js +1 -1
  165. package/lib/commands/project/create/main.js +1 -1
  166. package/lib/commands/project/create/materialize-project-template.js +1 -1
  167. package/lib/commands/project/create/project-name.js +1 -1
  168. package/lib/commands/project/create/project-template-archive.js +1 -1
  169. package/lib/commands/project/create/project-template-path.js +1 -1
  170. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  171. package/lib/commands/project/create/use-format-code.js +1 -1
  172. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  173. package/lib/commands/project/index.js +1 -1
  174. package/lib/commands/project/upgrade.js +1 -1
  175. package/lib/commands/registry.js +1 -1
  176. package/lib/commands/role/delete.js +1 -1
  177. package/lib/commands/role/detail.js +1 -1
  178. package/lib/commands/role/index.js +1 -1
  179. package/lib/commands/role/list.js +1 -1
  180. package/lib/commands/role/shared.d.ts +15 -17
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.d.ts +70 -79
  224. package/lib/core/api-client.js +1 -1
  225. package/lib/core/bff/config.js +1 -1
  226. package/lib/core/bff/file-system.d.ts +1 -0
  227. package/lib/core/bff/file-system.js +1 -1
  228. package/lib/core/bff/hash.js +1 -1
  229. package/lib/core/bff/lock.js +1 -1
  230. package/lib/core/bff/utils.js +1 -1
  231. package/lib/core/db-resolver.js +1 -1
  232. package/lib/core/page/file-system.js +1 -1
  233. package/lib/core/page/hash.js +1 -1
  234. package/lib/core/page/lock.js +1 -1
  235. package/lib/core/sql-index-auditor.js +1 -1
  236. package/lib/core/sql-sync/config.js +1 -1
  237. package/lib/core/sql-sync/file-system.js +1 -1
  238. package/lib/core/sql-sync/hash.js +1 -1
  239. package/lib/core/sql-sync/lock.js +1 -1
  240. package/lib/core/sql-sync/utils.js +1 -1
  241. package/lib/core/sql-validator.js +1 -1
  242. package/lib/errors.js +1 -1
  243. package/lib/framework/build-all-flags.js +1 -1
  244. package/lib/framework/error-output.js +1 -1
  245. package/lib/framework/explicit-yes.js +1 -1
  246. package/lib/framework/flags.js +1 -1
  247. package/lib/framework/help.js +1 -1
  248. package/lib/framework/index.js +1 -1
  249. package/lib/framework/output.js +1 -1
  250. package/lib/framework/response.js +1 -1
  251. package/lib/framework/runner-alias.js +1 -1
  252. package/lib/framework/runner.js +1 -1
  253. package/lib/framework/schema-export.js +1 -1
  254. package/lib/framework/types.js +1 -1
  255. package/lib/generated/build-info.d.ts +4 -4
  256. package/lib/generated/build-info.js +1 -1
  257. package/lib/help.js +1 -1
  258. package/lib/postinstall.js +1 -1
  259. package/lib/runtime/confirmation.js +1 -1
  260. package/lib/runtime/event.js +1 -1
  261. package/lib/runtime/index.js +1 -1
  262. package/lib/runtime/queue.js +1 -1
  263. package/lib/runtime/resolve.js +1 -1
  264. package/lib/skills/builtin-skill.js +1 -1
  265. package/lib/skills/main.js +1 -1
  266. package/lib/skills/npx-skills-add.js +1 -1
  267. package/lib/skills/skill-presence.js +1 -1
  268. package/lib/telemetry/cli-command-trace.js +1 -1
  269. package/lib/telemetry/cli-help-trace.js +1 -1
  270. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  271. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  272. package/lib/telemetry/send-cli-trace-log.js +1 -1
  273. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  274. package/lib/utils/ai_config.js +1 -1
  275. package/lib/utils/apply-jq-filter.js +1 -1
  276. package/lib/utils/cdn-config.js +1 -1
  277. package/lib/utils/check-sdk-version.js +1 -1
  278. package/lib/utils/cli-version-check.js +1 -1
  279. package/lib/utils/cli-version-policy.js +1 -1
  280. package/lib/utils/config.js +1 -1
  281. package/lib/utils/entity-with-id.js +1 -1
  282. package/lib/utils/file-utils.js +1 -1
  283. package/lib/utils/guides-cdn.js +1 -1
  284. package/lib/utils/http-client.js +1 -1
  285. package/lib/utils/is-non-interactive.js +1 -1
  286. package/lib/utils/logger.js +1 -1
  287. package/lib/utils/params.js +1 -1
  288. package/lib/utils/platform.js +1 -1
  289. package/lib/utils/rules-cdn.js +1 -1
  290. package/lib/utils/sleep.js +1 -1
  291. package/lib/utils/template-replacer.js +1 -1
  292. package/lib/utils/update-notice.js +1 -1
  293. package/lib/utils/version.js +1 -1
  294. package/lib/utils/with-active-cookie.js +1 -1
  295. package/lib/utils/write-cli-side-channel.js +1 -1
  296. package/package.json +1 -1
  297. package/skills/rabetbase/SKILL.md +18 -24
  298. package/skills/rabetbase/guides/database-connection-workflow.md +6 -2
  299. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +28 -0
  300. package/skills/rabetbase/references/rabetbase-dataset-delete.md +7 -5
  301. package/skills/rabetbase/references/rabetbase-dataset-list.md +6 -6
  302. package/skills/rabetbase/references/rabetbase-dataset-restore.md +5 -5
  303. package/skills/rabetbase/references/rabetbase-db-create.md +3 -0
  304. package/skills/rabetbase/references/rabetbase-db-delete.md +10 -2
  305. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -0
  306. package/skills/rabetbase/references/rabetbase-db-list.md +3 -2
  307. package/skills/rabetbase/references/rabetbase-db-update.md +4 -2
  308. package/skills/rabetbase/references/rabetbase-role-list.md +9 -17
  309. package/skills/rabetbase/references/rabetbase-role-user-add.md +44 -16
  310. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  311. package/skills/rabetbase.manifest.json +4 -7
  312. package/lib/commands/permit/index.js +0 -1
  313. package/lib/commands/permit/page-get.d.ts +0 -2
  314. package/lib/commands/permit/page-get.js +0 -1
  315. package/lib/commands/permit/page-set.d.ts +0 -2
  316. package/lib/commands/permit/page-set.js +0 -1
  317. package/lib/commands/permit/role-apis-set.d.ts +0 -2
  318. package/lib/commands/permit/role-apis-set.js +0 -1
  319. package/lib/commands/permit/role-menus-set.d.ts +0 -2
  320. package/lib/commands/permit/role-menus-set.js +0 -1
  321. package/lib/commands/permit/role-menus.d.ts +0 -2
  322. package/lib/commands/permit/role-menus.js +0 -1
  323. package/lib/commands/permit/shared.d.ts +0 -74
  324. package/lib/commands/permit/shared.js +0 -1
  325. package/lib/commands/role/create.d.ts +0 -2
  326. package/lib/commands/role/create.js +0 -1
  327. package/skills/rabetbase/guides/role-permit-workflow.md +0 -127
  328. package/skills/rabetbase/references/rabetbase-permit-page-set.md +0 -69
  329. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +0 -53
  330. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +0 -57
@@ -1 +1 @@
1
- const a270_0x4cbb8c=a270_0x167d;(function(_0x5353f6,_0x1142d8){const _0xac72e5=a270_0x167d,_0x4935c8=_0x5353f6();while(!![]){try{const _0x8843d3=-parseInt(_0xac72e5(0x1db))/0x1+parseInt(_0xac72e5(0x1dd))/0x2*(parseInt(_0xac72e5(0x1de))/0x3)+-parseInt(_0xac72e5(0x1f7))/0x4*(-parseInt(_0xac72e5(0x1df))/0x5)+parseInt(_0xac72e5(0x1c9))/0x6+-parseInt(_0xac72e5(0x1cd))/0x7+-parseInt(_0xac72e5(0x1d6))/0x8*(parseInt(_0xac72e5(0x1ed))/0x9)+parseInt(_0xac72e5(0x1d0))/0xa*(parseInt(_0xac72e5(0x1eb))/0xb);if(_0x8843d3===_0x1142d8)break;else _0x4935c8['push'](_0x4935c8['shift']());}catch(_0x22dd31){_0x4935c8['push'](_0x4935c8['shift']());}}}(a270_0x1b54,0xd6544));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=a270_0x4cbb8c(0x1bf);export const NPX_SKILLS_SUBCOMMAND_ADD=a270_0x4cbb8c(0x1d9);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a270_0x4cbb8c(0x1e5);export const LEGACY_RABETBASE_SKILL_SOURCE=a270_0x4cbb8c(0x1ce);export const DEFAULT_RABETBASE_SKILL_NAME=a270_0x4cbb8c(0x1d7);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a270_0x4cbb8c(0x1c8);export function resolveGlobalSkillName(_0x143497){const _0x19094c=a270_0x4cbb8c;switch(_0x143497[_0x19094c(0x1e7)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x574186){const _0xfcac25=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x574186&&_0xfcac25['push'](NPX_SKILLS_FLAG_SKILL,_0x574186),_0xfcac25;}function a270_0x167d(_0x11c23b,_0x58ba2d){_0x11c23b=_0x11c23b-0x1b7;const _0x1b54e5=a270_0x1b54();let _0x167dbf=_0x1b54e5[_0x11c23b];return _0x167dbf;}function a270_0x1b54(){const _0x4835e1=['1245EPjvvr','PERMISSION_DENIED','NPM_CONFIG_GLOBAL','warn','unverifiable','remove','lovrabet/rabetbase','exit\x20','trim','CHILD_EXIT_NONZERO','INSTALL_PARTIAL','present','486277YrgoQC','EPERM','1709946idUjZA','log','match','skill','code','NPX_NOT_FOUND','unknown','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','reason','Installer\x20reported\x20','16096tzbKqQ','state','stderr','error','stdio','EACCES','ENOENT','SPAWN_FAILED','message','skills@latest','npx','signal','stdout','checked','npm_config_global','join','CHILD_TERMINATED','expectedSkillName','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','7494906LAFUMz','presence','toString','SKILL_NOT_INSTALLED','3471412XHVJUX','lovrabet/lovrabet-skill','\x22\x20install\x20state:\x20','10TKyzXD','status','inherit','yes','pipe','npx\x20terminated\x20by\x20signal\x20','24jpwUZU','Lovrabet','\x20failed\x20target(s)','add','Skill\x20\x22','860943gVkzNc','filter','22MONajI','138927nBrgaz'];a270_0x1b54=function(){return _0x4835e1;};return a270_0x1b54();}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a270_0x4cbb8c(0x1c5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a270_0x4cbb8c(0x1c0),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x530713,_0x270632,_0x5b11f5){return{'ok':![],'status':_0x270632,'code':_0x530713,'error':'['+_0x530713+']\x20'+_0x5b11f5};}function spawnOptions(_0x5e3c34,_0xde21cb){const _0x25a00a=a270_0x4cbb8c,_0x31ef82={...process.env};return delete _0x31ef82[_0x25a00a(0x1c4)],delete _0x31ef82[_0x25a00a(0x1e1)],{'cwd':_0x5e3c34,'stdio':_0xde21cb,'env':_0x31ef82,'shell':![],..._0xde21cb===_0x25a00a(0x1d4)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x5e1e0e,_0x464fb7,_0x531daa,_0x8b0347){const _0x58bea0=a270_0x4cbb8c,_0xf40b7d=[_0x5e1e0e[_0x58bea0(0x1c2)]?_0x5e1e0e['stdout'][_0x58bea0(0x1cb)]():'',_0x5e1e0e[_0x58bea0(0x1b8)]?_0x5e1e0e[_0x58bea0(0x1b8)][_0x58bea0(0x1cb)]():''][_0x58bea0(0x1dc)](Boolean)[_0x58bea0(0x1c5)]('\x0a')[_0x58bea0(0x1e7)]();_0x8b0347!=='pipe'&&_0xf40b7d&&console[_0x58bea0(0x1ee)](_0xf40b7d);if(_0x5e1e0e['error']){const _0x45116a=_0x5e1e0e[_0x58bea0(0x1b9)],_0xd09bc3=_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1bc)?_0x58bea0(0x1f2):_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1ec)||_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1bb)?_0x58bea0(0x1e0):_0x58bea0(0x1bd);return failure(_0xd09bc3,_0x5e1e0e[_0x58bea0(0x1d1)],_0x45116a[_0x58bea0(0x1be)]);}if(_0x5e1e0e[_0x58bea0(0x1c1)])return failure(_0x58bea0(0x1c6),_0x5e1e0e[_0x58bea0(0x1d1)],_0x58bea0(0x1d5)+_0x5e1e0e['signal']);if(_0x5e1e0e[_0x58bea0(0x1d1)]!==0x0)return failure(_0x58bea0(0x1e8),_0x5e1e0e[_0x58bea0(0x1d1)],_0xf40b7d||_0x58bea0(0x1e6)+(_0x5e1e0e[_0x58bea0(0x1d1)]??_0x58bea0(0x1f3)));const _0x59d054=_0x464fb7?resolveInstalledSkill(_0x464fb7,_0x531daa):undefined,_0x16f153=_0xf40b7d[_0x58bea0(0x1ef)](/Failed to install\s+(\d+)/i);if(_0x16f153&&Number(_0x16f153[0x1])>0x0){const _0x8574a8=_0x58bea0(0x1f6)+_0x16f153[0x1]+_0x58bea0(0x1d8)+(_0xf40b7d?':\x0a'+_0xf40b7d:'');if(_0x59d054?.[_0x58bea0(0x1b7)]===_0x58bea0(0x1ea))return console[_0x58bea0(0x1e2)]('!\x20'+_0x8574a8),{'ok':!![],'status':0x0};return failure(_0x58bea0(0x1e9),0x0,_0x8574a8);}if(_0x59d054){if(_0x59d054[_0x58bea0(0x1b7)]==='absent')return failure(_0x58bea0(0x1cc),0x0,_0x58bea0(0x1da)+_0x464fb7+_0x58bea0(0x1f4)+_0x59d054[_0x58bea0(0x1c3)]['join'](',\x20')+')');_0x59d054[_0x58bea0(0x1b7)]===_0x58bea0(0x1e3)&&console['warn']('!\x20Could\x20not\x20verify\x20\x22'+_0x464fb7+_0x58bea0(0x1cf)+_0x59d054[_0x58bea0(0x1f5)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x54e7d9,_0x424fd4){const _0xbe810b=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35fd49=_0x424fd4?.[_0xbe810b(0x1ba)]??_0xbe810b(0x1d2),_0x2ce2ec=resolveNpmBin(_0xbe810b(0x1c0)),_0x5f4065=buildNpxSkillsAddArgv(_0x424fd4?.['skill']),_0x5be15b=[_0xbe810b(0x1c0),..._0x5f4065][_0xbe810b(0x1c5)]('\x20');console['log']('*\x20'+_0x5be15b);const _0x2c194d=spawnSync(_0x2ce2ec,_0x5f4065,spawnOptions(_0x54e7d9,_0x35fd49));return normalizeSpawnResult(_0x2c194d,undefined,undefined,_0x35fd49);}export function runNpxSkillsRemove(_0x3b3447,_0x15745c,_0x433e00=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5e3858=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x7fae23=_0x15745c?.['stdio']??'inherit',_0x55fa8e=resolveNpmBin(_0x5e3858(0x1c0)),_0x293ba7=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5e3858(0x1e4),_0x433e00,NPX_SKILLS_FLAG_SKILL,_0x15745c?.[_0x5e3858(0x1f0)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x15745c?.[_0x5e3858(0x1d3)]?['-y']:[]],_0x21b005=[_0x55fa8e,..._0x293ba7]['join']('\x20');console['log']('*\x20'+_0x21b005);const _0x5d43b5=spawnSync(_0x55fa8e,_0x293ba7,spawnOptions(_0x3b3447,_0x7fae23));return normalizeSpawnResult(_0x5d43b5,undefined,undefined,_0x7fae23);}export function runNpxSkillsAddGlobal(_0x28eb34,_0x52288d,_0x39d275){const _0x20800a=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x53a343=resolveNpmBin(_0x20800a(0x1c0)),_0x24e14d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x52288d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9704ae=[_0x20800a(0x1c0),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x52288d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x20800a(0x1c5)]('\x20');console['log']('*\x20'+_0x9704ae);const _0x7c3d3a=spawnSync(_0x53a343,_0x24e14d,spawnOptions(_0x28eb34,_0x20800a(0x1d4)));return normalizeSpawnResult(_0x7c3d3a,_0x39d275?.[_0x20800a(0x1c7)]??resolveGlobalSkillName(_0x52288d),_0x39d275?.[_0x20800a(0x1ca)],_0x39d275?.[_0x20800a(0x1ba)]);}
1
+ const a263_0x207a37=a263_0x3a95;(function(_0xdb3a23,_0x40ab3b){const _0x5b3010=a263_0x3a95,_0x2d05ae=_0xdb3a23();while(!![]){try{const _0x339215=parseInt(_0x5b3010(0xfd))/0x1*(parseInt(_0x5b3010(0xeb))/0x2)+-parseInt(_0x5b3010(0xf1))/0x3*(parseInt(_0x5b3010(0xdc))/0x4)+parseInt(_0x5b3010(0xd5))/0x5+parseInt(_0x5b3010(0xe8))/0x6*(parseInt(_0x5b3010(0xda))/0x7)+parseInt(_0x5b3010(0xee))/0x8*(-parseInt(_0x5b3010(0xe5))/0x9)+-parseInt(_0x5b3010(0xcd))/0xa*(parseInt(_0x5b3010(0xdd))/0xb)+parseInt(_0x5b3010(0xef))/0xc;if(_0x339215===_0x40ab3b)break;else _0x2d05ae['push'](_0x2d05ae['shift']());}catch(_0x55b26e){_0x2d05ae['push'](_0x2d05ae['shift']());}}}(a263_0x2946,0x8a14b));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a263_0x207a37(0xfc);export const NPX_SKILLS_SUBCOMMAND_ADD=a263_0x207a37(0xe0);export const NPX_SKILLS_FLAG_SKILL=a263_0x207a37(0xde);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a263_0x207a37(0xd8);export const DEFAULT_RABETBASE_SKILL_NAME=a263_0x207a37(0xce);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a263_0x207a37(0xdb);export function resolveGlobalSkillName(_0x29de9a){const _0x11f9fc=a263_0x207a37;switch(_0x29de9a[_0x11f9fc(0xd3)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x226e92){const _0x27649b=a263_0x207a37,_0x5a21fb=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x226e92&&_0x5a21fb[_0x27649b(0xe9)](NPX_SKILLS_FLAG_SKILL,_0x226e92),_0x5a21fb;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a263_0x207a37(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1dadeb,_0x1e76fe,_0x52e862){return{'ok':![],'status':_0x1e76fe,'code':_0x1dadeb,'error':'['+_0x1dadeb+']\x20'+_0x52e862};}function spawnOptions(_0x55501c,_0xe0a7e8){const _0x1c256f=a263_0x207a37,_0x2a1409={...process.env};return delete _0x2a1409[_0x1c256f(0xf3)],delete _0x2a1409[_0x1c256f(0xc9)],{'cwd':_0x55501c,'stdio':_0xe0a7e8,'env':_0x2a1409,'shell':![],..._0xe0a7e8===_0x1c256f(0xe7)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x470541,_0x56527c,_0x256f0f,_0x3b9a9a){const _0x3d7c94=a263_0x207a37,_0xaafed8=[_0x470541[_0x3d7c94(0xcf)]?_0x470541[_0x3d7c94(0xcf)][_0x3d7c94(0xf7)]():'',_0x470541['stderr']?_0x470541['stderr'][_0x3d7c94(0xf7)]():''][_0x3d7c94(0xf9)](Boolean)[_0x3d7c94(0xc8)]('\x0a')[_0x3d7c94(0xd3)]();_0x3b9a9a!==_0x3d7c94(0xe7)&&_0xaafed8&&console['log'](_0xaafed8);if(_0x470541[_0x3d7c94(0xf8)]){const _0x10767d=_0x470541['error'],_0x1780c7=_0x10767d[_0x3d7c94(0xe3)]===_0x3d7c94(0xf6)?_0x3d7c94(0xfa):_0x10767d['code']===_0x3d7c94(0x100)||_0x10767d[_0x3d7c94(0xe3)]===_0x3d7c94(0xd2)?_0x3d7c94(0xcb):_0x3d7c94(0xcc);return failure(_0x1780c7,_0x470541['status'],_0x10767d['message']);}if(_0x470541[_0x3d7c94(0xe6)])return failure('CHILD_TERMINATED',_0x470541[_0x3d7c94(0xd9)],_0x3d7c94(0xca)+_0x470541['signal']);if(_0x470541['status']!==0x0)return failure(_0x3d7c94(0xd6),_0x470541['status'],_0xaafed8||'exit\x20'+(_0x470541[_0x3d7c94(0xd9)]??_0x3d7c94(0xf4)));const _0x27d5e4=_0x56527c?resolveInstalledSkill(_0x56527c,_0x256f0f):undefined,_0x467fe0=_0xaafed8['match'](/Failed to install\s+(\d+)/i);if(_0x467fe0&&Number(_0x467fe0[0x1])>0x0){const _0x5da3dd='Installer\x20reported\x20'+_0x467fe0[0x1]+_0x3d7c94(0xdf)+(_0xaafed8?':\x0a'+_0xaafed8:'');if(_0x27d5e4?.['state']===_0x3d7c94(0xe2))return console['warn']('!\x20'+_0x5da3dd),{'ok':!![],'status':0x0};return failure(_0x3d7c94(0xf5),0x0,_0x5da3dd);}if(_0x27d5e4){if(_0x27d5e4[_0x3d7c94(0xf2)]===_0x3d7c94(0xed))return failure('SKILL_NOT_INSTALLED',0x0,'Skill\x20\x22'+_0x56527c+_0x3d7c94(0xec)+_0x27d5e4[_0x3d7c94(0xfe)]['join'](',\x20')+')');_0x27d5e4['state']===_0x3d7c94(0xd7)&&console[_0x3d7c94(0xd1)](_0x3d7c94(0xfb)+_0x56527c+_0x3d7c94(0xd0)+_0x27d5e4[_0x3d7c94(0xea)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xc8820c,_0x54804a){const _0x2892d2=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x481320=_0x54804a?.[_0x2892d2(0xe1)]??'inherit',_0xeb9d7e=resolveNpmBin(_0x2892d2(0xd4)),_0x5c7ace=buildNpxSkillsAddArgv(_0x54804a?.[_0x2892d2(0xe4)]),_0x54ef35=[_0x2892d2(0xd4),..._0x5c7ace][_0x2892d2(0xc8)]('\x20');console[_0x2892d2(0xf0)]('*\x20'+_0x54ef35);const _0x413bb5=spawnSync(_0xeb9d7e,_0x5c7ace,spawnOptions(_0xc8820c,_0x481320));return normalizeSpawnResult(_0x413bb5,undefined,undefined,_0x481320);}function a263_0x3a95(_0x1da10c,_0x3eaaf6){_0x1da10c=_0x1da10c-0xc8;const _0x2946bd=a263_0x2946();let _0x3a954b=_0x2946bd[_0x1da10c];return _0x3a954b;}export function runNpxSkillsRemove(_0x386af3,_0x1cabee,_0x5f5ca0=LEGACY_RABETBASE_SKILL_SOURCE){const _0x14c3f5=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e2603=_0x1cabee?.[_0x14c3f5(0xe1)]??_0x14c3f5(0xff),_0x175b68=resolveNpmBin(_0x14c3f5(0xd4)),_0x6664d0=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x5f5ca0,NPX_SKILLS_FLAG_SKILL,_0x1cabee?.[_0x14c3f5(0xe4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1cabee?.['yes']?['-y']:[]],_0x3b992d=[_0x175b68,..._0x6664d0][_0x14c3f5(0xc8)]('\x20');console[_0x14c3f5(0xf0)]('*\x20'+_0x3b992d);const _0x33c67a=spawnSync(_0x175b68,_0x6664d0,spawnOptions(_0x386af3,_0x5e2603));return normalizeSpawnResult(_0x33c67a,undefined,undefined,_0x5e2603);}function a263_0x2946(){const _0x4c3cc5=['11912364MopfkV','log','81vZJNJb','state','npm_config_global','unknown','INSTALL_PARTIAL','ENOENT','toString','error','filter','NPX_NOT_FOUND','!\x20Could\x20not\x20verify\x20\x22','skills@latest','1wweLYG','checked','inherit','EPERM','join','NPM_CONFIG_GLOBAL','npx\x20terminated\x20by\x20signal\x20','PERMISSION_DENIED','SPAWN_FAILED','2057420Qfmyex','Lovrabet','stdout','\x22\x20install\x20state:\x20','warn','EACCES','trim','npx','2165755osAeYW','CHILD_EXIT_NONZERO','unverifiable','lovrabet/lovrabet-skill','status','150262HMdbra','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','58268BEviui','11eCImqI','--skill','\x20failed\x20target(s)','add','stdio','present','code','skill','189MDWNRo','signal','pipe','12orySco','push','reason','1488382WlaijH','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','absent','399368xVFgNM'];a263_0x2946=function(){return _0x4c3cc5;};return a263_0x2946();}export function runNpxSkillsAddGlobal(_0x432e3d,_0x5af451,_0x17e6af){const _0x29d751=a263_0x207a37;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x420179=resolveNpmBin('npx'),_0x5dddf7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5af451,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x39b645=[_0x29d751(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5af451,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x29d751(0xc8)]('\x20');console[_0x29d751(0xf0)]('*\x20'+_0x39b645);const _0xd4d7fe=spawnSync(_0x420179,_0x5dddf7,spawnOptions(_0x432e3d,_0x29d751(0xe7)));return normalizeSpawnResult(_0xd4d7fe,_0x17e6af?.['expectedSkillName']??resolveGlobalSkillName(_0x5af451),_0x17e6af?.['presence'],_0x17e6af?.[_0x29d751(0xe1)]);}
@@ -1 +1 @@
1
- function a271_0x149d(_0x2d4e7d,_0x4babb1){_0x2d4e7d=_0x2d4e7d-0x1d6;const _0x5ee410=a271_0x5ee4();let _0x149d65=_0x5ee410[_0x2d4e7d];return _0x149d65;}const a271_0x52057c=a271_0x149d;(function(_0x27e721,_0x2e0aa8){const _0x33e1aa=a271_0x149d,_0x234ae5=_0x27e721();while(!![]){try{const _0xbd62bb=parseInt(_0x33e1aa(0x1e5))/0x1+-parseInt(_0x33e1aa(0x1e7))/0x2*(-parseInt(_0x33e1aa(0x1ee))/0x3)+-parseInt(_0x33e1aa(0x1f4))/0x4*(-parseInt(_0x33e1aa(0x1e6))/0x5)+parseInt(_0x33e1aa(0x1f3))/0x6+parseInt(_0x33e1aa(0x1e2))/0x7*(-parseInt(_0x33e1aa(0x1ed))/0x8)+parseInt(_0x33e1aa(0x1dd))/0x9*(-parseInt(_0x33e1aa(0x1d8))/0xa)+-parseInt(_0x33e1aa(0x1f2))/0xb;if(_0xbd62bb===_0x2e0aa8)break;else _0x234ae5['push'](_0x234ae5['shift']());}catch(_0x4ddf49){_0x234ae5['push'](_0x234ae5['shift']());}}}(a271_0x5ee4,0x9a2c4));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a271_0x5ee4(){const _0x3386a0=['map','2031112DxqRFj','112911qaPwRJ','join','find','lockFile','9480625zdtuqU','2828058DuDBCI','68pnaXIM','SKILL.md','message','home','1219210qaPZyW','kind','skills','unverifiable','parse','81swpwXw','\x20uses\x20unsupported\x20version\x20','reason','.skill-lock.json','not-recorded','7QFvJmy','unusable','version','532005wZLILl','297995uHfKdr','44ziZmUF','globalSkillsDirs','\x20is\x20unreadable:\x20','recorded','object'];a271_0x5ee4=function(){return _0x3386a0;};return a271_0x5ee4();}export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a271_0x52057c(0x1e0));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join('.claude',a271_0x52057c(0x1da))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x47ded6,_0xf0a37c){const _0x1b9bca=a271_0x52057c;if(!existsSync(_0x47ded6))return{'kind':_0x1b9bca(0x1e1)};let _0x3cca20;try{_0x3cca20=JSON[_0x1b9bca(0x1dc)](readFileSync(_0x47ded6,'utf8'));}catch(_0x33dd54){return{'kind':_0x1b9bca(0x1e3),'reason':_0x47ded6+_0x1b9bca(0x1e9)+_0x33dd54[_0x1b9bca(0x1d6)]};}const _0x132100=_0x3cca20;if(typeof _0x132100?.[_0x1b9bca(0x1e4)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x132100[_0x1b9bca(0x1e4)]))return{'kind':_0x1b9bca(0x1e3),'reason':_0x47ded6+_0x1b9bca(0x1de)+String(_0x132100?.[_0x1b9bca(0x1e4)])};if(!_0x132100['skills']||typeof _0x132100['skills']!==_0x1b9bca(0x1eb))return{'kind':'unusable','reason':_0x47ded6+'\x20has\x20no\x20skills\x20map'};return _0x132100[_0x1b9bca(0x1da)][_0xf0a37c]?{'kind':_0x1b9bca(0x1ea)}:{'kind':_0x1b9bca(0x1e1)};}export function resolveInstalledSkill(_0x7fe580,_0x5c19c0){const _0x27a1da=a271_0x52057c,_0x17f7f9=_0x5c19c0?.[_0x27a1da(0x1d7)]??homedir(),_0x25bb61=_0x5c19c0?.[_0x27a1da(0x1e8)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x27a1da(0x1ec)](_0x4cd112=>join(_0x17f7f9,_0x4cd112)),_0x4bddc8=_0x5c19c0?.[_0x27a1da(0x1f1)]??join(_0x17f7f9,SKILL_LOCK_RELATIVE_PATH),_0x226a75=_0x25bb61[_0x27a1da(0x1ec)](_0x3df4e7=>join(_0x3df4e7,_0x7fe580,_0x27a1da(0x1f5))),_0x394c16=_0x226a75[_0x27a1da(0x1f0)](_0x2484e9=>existsSync(_0x2484e9));if(_0x394c16)return{'state':'present','path':_0x394c16};const _0x10ebbd=readLockLookup(_0x4bddc8,_0x7fe580);if(_0x10ebbd[_0x27a1da(0x1d9)]==='unusable')return{'state':_0x27a1da(0x1db),'reason':_0x10ebbd[_0x27a1da(0x1df)]};if(_0x10ebbd['kind']===_0x27a1da(0x1ea))return{'state':_0x27a1da(0x1db),'reason':_0x4bddc8+'\x20records\x20\x22'+_0x7fe580+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x226a75[_0x27a1da(0x1ef)](',\x20')+')')};return{'state':'absent','checked':_0x226a75};}
1
+ const a264_0x63c369=a264_0x1051;(function(_0x383b10,_0x12d2a4){const _0x634736=a264_0x1051,_0x4633b7=_0x383b10();while(!![]){try{const _0x490375=parseInt(_0x634736(0x1ad))/0x1+parseInt(_0x634736(0x1b5))/0x2+parseInt(_0x634736(0x1a0))/0x3*(-parseInt(_0x634736(0x199))/0x4)+-parseInt(_0x634736(0x1b6))/0x5*(-parseInt(_0x634736(0x1ac))/0x6)+parseInt(_0x634736(0x196))/0x7*(parseInt(_0x634736(0x1a4))/0x8)+-parseInt(_0x634736(0x19b))/0x9+-parseInt(_0x634736(0x1a1))/0xa;if(_0x490375===_0x12d2a4)break;else _0x4633b7['push'](_0x4633b7['shift']());}catch(_0x3d85a7){_0x4633b7['push'](_0x4633b7['shift']());}}}(a264_0x627a,0x9af8a));import{existsSync,readFileSync}from'node:fs';function a264_0x627a(){const _0x54ac73=['find','version','\x20uses\x20unsupported\x20version\x20','2231280AtLtuW','39095puTjyB','\x20has\x20no\x20skills\x20map','reason','301UJFokr','home','message','100zHebSm','number','10021167ZeLRew','skills','.agents','kind','unverifiable','77358qcqxTR','14807010MHFJHv','parse','absent','210968BWtfhM','.claude','\x20records\x20\x22','unusable','join','object','lockFile','\x20is\x20unreadable:\x20','594ihgubx','849902vEjhVg','not-recorded','recorded','map','.skill-lock.json'];a264_0x627a=function(){return _0x54ac73;};return a264_0x627a();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a264_0x63c369(0x1b1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a264_0x63c369(0x19d),'skills'),join(a264_0x63c369(0x1a5),a264_0x63c369(0x19c))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a264_0x1051(_0x4928de,_0x183736){_0x4928de=_0x4928de-0x195;const _0x627a8b=a264_0x627a();let _0x1051a4=_0x627a8b[_0x4928de];return _0x1051a4;}function readLockLookup(_0x3a19f1,_0x1d9f2d){const _0x3f6297=a264_0x63c369;if(!existsSync(_0x3a19f1))return{'kind':'not-recorded'};let _0x46c4a8;try{_0x46c4a8=JSON[_0x3f6297(0x1a2)](readFileSync(_0x3a19f1,'utf8'));}catch(_0xea9a33){return{'kind':_0x3f6297(0x1a7),'reason':_0x3a19f1+_0x3f6297(0x1ab)+_0xea9a33[_0x3f6297(0x198)]};}const _0x45be23=_0x46c4a8;if(typeof _0x45be23?.[_0x3f6297(0x1b3)]!==_0x3f6297(0x19a)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x45be23[_0x3f6297(0x1b3)]))return{'kind':_0x3f6297(0x1a7),'reason':_0x3a19f1+_0x3f6297(0x1b4)+String(_0x45be23?.[_0x3f6297(0x1b3)])};if(!_0x45be23[_0x3f6297(0x19c)]||typeof _0x45be23[_0x3f6297(0x19c)]!==_0x3f6297(0x1a9))return{'kind':'unusable','reason':_0x3a19f1+_0x3f6297(0x1b7)};return _0x45be23[_0x3f6297(0x19c)][_0x1d9f2d]?{'kind':'recorded'}:{'kind':_0x3f6297(0x1ae)};}export function resolveInstalledSkill(_0x48ea74,_0x3868bf){const _0x5d56ac=a264_0x63c369,_0x1d5220=_0x3868bf?.[_0x5d56ac(0x197)]??homedir(),_0x13bf91=_0x3868bf?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5d56ac(0x1b0)](_0x4b29e1=>join(_0x1d5220,_0x4b29e1)),_0x1fe1d8=_0x3868bf?.[_0x5d56ac(0x1aa)]??join(_0x1d5220,SKILL_LOCK_RELATIVE_PATH),_0x4defc6=_0x13bf91[_0x5d56ac(0x1b0)](_0x101c6b=>join(_0x101c6b,_0x48ea74,'SKILL.md')),_0x35f8ad=_0x4defc6[_0x5d56ac(0x1b2)](_0x312683=>existsSync(_0x312683));if(_0x35f8ad)return{'state':'present','path':_0x35f8ad};const _0x371216=readLockLookup(_0x1fe1d8,_0x48ea74);if(_0x371216[_0x5d56ac(0x19e)]===_0x5d56ac(0x1a7))return{'state':'unverifiable','reason':_0x371216[_0x5d56ac(0x195)]};if(_0x371216[_0x5d56ac(0x19e)]===_0x5d56ac(0x1af))return{'state':_0x5d56ac(0x19f),'reason':_0x1fe1d8+_0x5d56ac(0x1a6)+_0x48ea74+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x4defc6[_0x5d56ac(0x1a8)](',\x20')+')')};return{'state':_0x5d56ac(0x1a3),'checked':_0x4defc6};}
@@ -1 +1 @@
1
- (function(_0xd5ec5e,_0x272da9){const _0x32f588=a272_0x5744,_0x4f6fe9=_0xd5ec5e();while(!![]){try{const _0x1b8d69=-parseInt(_0x32f588(0x1ea))/0x1*(parseInt(_0x32f588(0x1f1))/0x2)+parseInt(_0x32f588(0x1f3))/0x3+-parseInt(_0x32f588(0x1f7))/0x4*(-parseInt(_0x32f588(0x1fa))/0x5)+-parseInt(_0x32f588(0x1f2))/0x6+parseInt(_0x32f588(0x1ec))/0x7*(parseInt(_0x32f588(0x1f6))/0x8)+-parseInt(_0x32f588(0x1f4))/0x9+parseInt(_0x32f588(0x1f0))/0xa;if(_0x1b8d69===_0x272da9)break;else _0x4f6fe9['push'](_0x4f6fe9['shift']());}catch(_0x32f4b7){_0x4f6fe9['push'](_0x4f6fe9['shift']());}}}(a272_0x572c,0xd22de));function a272_0x572c(){const _0x3b2beb=['14haauJr','message','error','command','21623320szZZLH','805038AcyVjz','8463480EOrVMj','325908qCACDo','944226ogcysc','stringify','1036760nbWtzC','4aBcwWA','some','durationMs','1243745qhpMDp','test','1LUVLAh','rabetbase.command'];a272_0x572c=function(){return _0x3b2beb;};return a272_0x572c();}function a272_0x5744(_0x5a8b23,_0x107286){_0x5a8b23=_0x5a8b23-0x1e9;const _0x572c80=a272_0x572c();let _0x574408=_0x572c80[_0x5a8b23];return _0x574408;}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(_0x452fc1){const _0x29202a=a272_0x5744;return SENSITIVE_PATTERNS[_0x29202a(0x1f8)](_0x280de5=>_0x280de5[_0x29202a(0x1e9)](_0x452fc1));}function sanitizeFlags(_0x136c6a){const _0x599e4e={};for(const [_0x51c215,_0xa43e35]of Object['entries'](_0x136c6a)){isSensitiveKey(_0x51c215)?_0x599e4e[_0x51c215]=_0xa43e35!=null&&_0xa43e35!==''?'[REDACTED]':_0xa43e35:_0x599e4e[_0x51c215]=_0xa43e35;}return _0x599e4e;}export async function reportCommandTrace(_0x58191d){const _0x5bdf21=a272_0x5744;try{const _0x1a9a7c=sanitizeFlags(_0x58191d['flags']);await sendCliTraceLog({'spanName':_0x5bdf21(0x1eb),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x58191d['service'],'command.name':_0x58191d[_0x5bdf21(0x1ef)],'command.flags':JSON[_0x5bdf21(0x1f5)](_0x1a9a7c),..._0x58191d[_0x5bdf21(0x1f9)]!=null?{'command.duration_ms':_0x58191d['durationMs']}:{},..._0x58191d[_0x5bdf21(0x1ee)]?{'command.error':_0x58191d[_0x5bdf21(0x1ee)]instanceof Error?_0x58191d[_0x5bdf21(0x1ee)][_0x5bdf21(0x1ed)]:String(_0x58191d[_0x5bdf21(0x1ee)])}:{}}});}catch{}}
1
+ (function(_0xfe2276,_0x34879d){const _0x4630af=a265_0x5139,_0x395fe7=_0xfe2276();while(!![]){try{const _0x201b5d=-parseInt(_0x4630af(0x6d))/0x1+-parseInt(_0x4630af(0x7e))/0x2+-parseInt(_0x4630af(0x79))/0x3*(-parseInt(_0x4630af(0x7c))/0x4)+parseInt(_0x4630af(0x6c))/0x5*(parseInt(_0x4630af(0x6e))/0x6)+-parseInt(_0x4630af(0x75))/0x7*(-parseInt(_0x4630af(0x6f))/0x8)+-parseInt(_0x4630af(0x78))/0x9*(parseInt(_0x4630af(0x7d))/0xa)+-parseInt(_0x4630af(0x7f))/0xb*(-parseInt(_0x4630af(0x73))/0xc);if(_0x201b5d===_0x34879d)break;else _0x395fe7['push'](_0x395fe7['shift']());}catch(_0xe0cf51){_0x395fe7['push'](_0x395fe7['shift']());}}}(a265_0x5aea,0x83dc4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a265_0x5aea(){const _0xb9dfe3=['324007iUwKRA','6253182CvUeBz','24VBkNmY','service','command','entries','146436gBnwOg','[REDACTED]','946281OkKfHs','test','flags','1551276xKwzSP','13839ZHdkhY','stringify','error','284kaPLpv','60AISOHz','2121338SOXBma','1067vqZHhK','message','durationMs','5hBjURF'];a265_0x5aea=function(){return _0xb9dfe3;};return a265_0x5aea();}import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x5f2288){const _0xb997d8=a265_0x5139;return SENSITIVE_PATTERNS['some'](_0x4626db=>_0x4626db[_0xb997d8(0x76)](_0x5f2288));}function a265_0x5139(_0x31a611,_0x53f3ee){_0x31a611=_0x31a611-0x6b;const _0x5aeacd=a265_0x5aea();let _0x5139d8=_0x5aeacd[_0x31a611];return _0x5139d8;}function sanitizeFlags(_0x400fa8){const _0x40ab28=a265_0x5139,_0x54b425={};for(const [_0x5db959,_0x30c17d]of Object[_0x40ab28(0x72)](_0x400fa8)){isSensitiveKey(_0x5db959)?_0x54b425[_0x5db959]=_0x30c17d!=null&&_0x30c17d!==''?_0x40ab28(0x74):_0x30c17d:_0x54b425[_0x5db959]=_0x30c17d;}return _0x54b425;}export async function reportCommandTrace(_0x5f067c){const _0x243f9d=a265_0x5139;try{const _0xf9f7f3=sanitizeFlags(_0x5f067c[_0x243f9d(0x77)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5f067c[_0x243f9d(0x70)],'command.name':_0x5f067c[_0x243f9d(0x71)],'command.flags':JSON[_0x243f9d(0x7a)](_0xf9f7f3),..._0x5f067c[_0x243f9d(0x6b)]!=null?{'command.duration_ms':_0x5f067c['durationMs']}:{},..._0x5f067c[_0x243f9d(0x7b)]?{'command.error':_0x5f067c[_0x243f9d(0x7b)]instanceof Error?_0x5f067c['error'][_0x243f9d(0x80)]:String(_0x5f067c[_0x243f9d(0x7b)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a273_0x20c7(_0x542783,_0x5672eb){_0x542783=_0x542783-0x81;var _0x24bc8f=a273_0x24bc();var _0x20c742=_0x24bc8f[_0x542783];return _0x20c742;}(function(_0x313b02,_0x27fbc5){var _0xe0ad8=a273_0x20c7,_0x173a29=_0x313b02();while(!![]){try{var _0x3966eb=parseInt(_0xe0ad8(0x8f))/0x1+parseInt(_0xe0ad8(0x81))/0x2+parseInt(_0xe0ad8(0x89))/0x3*(parseInt(_0xe0ad8(0x8a))/0x4)+parseInt(_0xe0ad8(0x82))/0x5*(parseInt(_0xe0ad8(0x8c))/0x6)+-parseInt(_0xe0ad8(0x90))/0x7*(-parseInt(_0xe0ad8(0x83))/0x8)+parseInt(_0xe0ad8(0x84))/0x9*(-parseInt(_0xe0ad8(0x8b))/0xa)+parseInt(_0xe0ad8(0x8e))/0xb*(-parseInt(_0xe0ad8(0x87))/0xc);if(_0x3966eb===_0x27fbc5)break;else _0x173a29['push'](_0x173a29['shift']());}catch(_0x4b0503){_0x173a29['push'](_0x173a29['shift']());}}}(a273_0x24bc,0x2ae00));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a273_0x24bc(){var _0x5daf94=['2316MddwAL','error','12ZgwDts','252604CjXAfL','30tycbEA','175074TCgwdq','Failed\x20to\x20report\x20CLI\x20help\x20trace:','16753cwWtxJ','27388kpHUBq','11977pQMDuA','176796pFpCci','5vaWZni','1400WJzpEV','682317VoWpYU','service','cli.help'];a273_0x24bc=function(){return _0x5daf94;};return a273_0x24bc();}export async function reportCliHelpTrace(_0x2ea5a4,_0x2033b7){var _0x2a3b9d=a273_0x20c7;try{await sendCliTraceLog({'spanName':_0x2a3b9d(0x86),'logData':{'rabetbase.help.kind':_0x2ea5a4,..._0x2033b7?.[_0x2a3b9d(0x85)]&&{'rabetbase.help.service':_0x2033b7[_0x2a3b9d(0x85)]}}});}catch(_0x3b49e5){console[_0x2a3b9d(0x88)](_0x2a3b9d(0x8d),_0x3b49e5);}}
1
+ (function(_0x45db18,_0x54d348){var _0x40223a=a266_0x3370,_0x503ae0=_0x45db18();while(!![]){try{var _0x4c6ce2=-parseInt(_0x40223a(0x1d7))/0x1*(parseInt(_0x40223a(0x1d6))/0x2)+parseInt(_0x40223a(0x1d3))/0x3+-parseInt(_0x40223a(0x1de))/0x4*(parseInt(_0x40223a(0x1d5))/0x5)+-parseInt(_0x40223a(0x1d4))/0x6+parseInt(_0x40223a(0x1d1))/0x7*(-parseInt(_0x40223a(0x1dd))/0x8)+parseInt(_0x40223a(0x1d0))/0x9+-parseInt(_0x40223a(0x1d8))/0xa*(-parseInt(_0x40223a(0x1dc))/0xb);if(_0x4c6ce2===_0x54d348)break;else _0x503ae0['push'](_0x503ae0['shift']());}catch(_0x2ef685){_0x503ae0['push'](_0x503ae0['shift']());}}}(a266_0x41ac,0xb3a75));function a266_0x41ac(){var _0x40819d=['2632ztkuuF','4wQagSf','646335EDSMTS','19243jdESUp','cli.help','1983531UqQzNu','1350582qwMAxG','6759615IVsxkP','102056idRitp','12pjeOPJ','7460HnzazB','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','error','45661AEIZTR'];a266_0x41ac=function(){return _0x40819d;};return a266_0x41ac();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a266_0x3370(_0x15766c,_0x4d854d){_0x15766c=_0x15766c-0x1d0;var _0x41ac9e=a266_0x41ac();var _0x3370cb=_0x41ac9e[_0x15766c];return _0x3370cb;}export async function reportCliHelpTrace(_0x33d7af,_0x7f646a){var _0x23f8d1=a266_0x3370;try{await sendCliTraceLog({'spanName':_0x23f8d1(0x1d2),'logData':{'rabetbase.help.kind':_0x33d7af,..._0x7f646a?.['service']&&{'rabetbase.help.service':_0x7f646a[_0x23f8d1(0x1da)]}}});}catch(_0x140464){console[_0x23f8d1(0x1db)](_0x23f8d1(0x1d9),_0x140464);}}
@@ -1 +1 @@
1
- (function(_0xca218,_0x304864){const _0x407c1f=a274_0x2387,_0x9eabab=_0xca218();while(!![]){try{const _0x465245=parseInt(_0x407c1f(0xb4))/0x1+-parseInt(_0x407c1f(0xb0))/0x2*(-parseInt(_0x407c1f(0xad))/0x3)+-parseInt(_0x407c1f(0xb2))/0x4+-parseInt(_0x407c1f(0xaa))/0x5*(parseInt(_0x407c1f(0xb3))/0x6)+-parseInt(_0x407c1f(0xa7))/0x7+parseInt(_0x407c1f(0xac))/0x8+-parseInt(_0x407c1f(0xa5))/0x9;if(_0x465245===_0x304864)break;else _0x9eabab['push'](_0x9eabab['shift']());}catch(_0x38d009){_0x9eabab['push'](_0x9eabab['shift']());}}}(a274_0x50e6,0xe323f));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a274_0x2387(_0x26d519,_0x1a2aa4){_0x26d519=_0x26d519-0xa3;const _0x50e6a7=a274_0x50e6();let _0x23870b=_0x50e6a7[_0x26d519];return _0x23870b;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a274_0x50e6(){const _0xafb5d5=['7560wHoIqq','username','14785768FPovCn','77052ZIBajh','tenant_code','tenant','28ebMlMc','unknown','292972kqkuxi','4266dciRnH','133604KnpBXz','daily','email','1287711HLpuqA','nickname','837760MWFzsz','user','production'];a274_0x50e6=function(){return _0xafb5d5;};return a274_0x50e6();}export async function ensureCliOtelTraceConfig(){const _0x5cb2b1=a274_0x2387,_0x562b74=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5564dc=_0x562b74?.[_0x5cb2b1(0xa8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5cb2b1(0xb1)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5cb2b1(0xa3):_0x5cb2b1(0xa9))}),setUserContext({'id':_0x5564dc?.['id'],'username':_0x5564dc?.[_0x5cb2b1(0xab)],'nickname':_0x5564dc?.[_0x5cb2b1(0xa6)],'email':_0x5564dc?.[_0x5cb2b1(0xa4)],'tenantCode':_0x5564dc?.[_0x5cb2b1(0xaf)]?.[_0x5cb2b1(0xae)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x562b74;}
1
+ (function(_0x4b87c3,_0x57aeb9){const _0x32bc17=a267_0x3336,_0x5dd07f=_0x4b87c3();while(!![]){try{const _0x12ca30=-parseInt(_0x32bc17(0x89))/0x1+-parseInt(_0x32bc17(0x93))/0x2+-parseInt(_0x32bc17(0x8c))/0x3*(-parseInt(_0x32bc17(0x97))/0x4)+parseInt(_0x32bc17(0x8d))/0x5+-parseInt(_0x32bc17(0x94))/0x6+-parseInt(_0x32bc17(0x96))/0x7*(-parseInt(_0x32bc17(0x90))/0x8)+parseInt(_0x32bc17(0x87))/0x9;if(_0x12ca30===_0x57aeb9)break;else _0x5dd07f['push'](_0x5dd07f['shift']());}catch(_0x3fd28c){_0x5dd07f['push'](_0x5dd07f['shift']());}}}(a267_0x5840,0x87acd));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a267_0x3336(_0x49851f,_0x3476d9){_0x49851f=_0x49851f-0x87;const _0x5840ec=a267_0x5840();let _0x33361a=_0x5840ec[_0x49851f];return _0x33361a;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a267_0x5840(){const _0xa96f04=['daily','98etMOSp','4MmApDh','14883444YccueJ','tenant_code','81752UZnAde','username','production','302793RPCXOG','539445SPtlYu','user','email','47904bqMpXF','tenant','unknown','961530RICrxE','4968756YondcZ'];a267_0x5840=function(){return _0xa96f04;};return a267_0x5840();}export async function ensureCliOtelTraceConfig(){const _0x5e9155=a267_0x3336,_0x2b1914=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3e01ba=_0x2b1914?.[_0x5e9155(0x8e)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5e9155(0x92)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5e9155(0x95):_0x5e9155(0x8b))}),setUserContext({'id':_0x3e01ba?.['id'],'username':_0x3e01ba?.[_0x5e9155(0x8a)],'nickname':_0x3e01ba?.['nickname'],'email':_0x3e01ba?.[_0x5e9155(0x8f)],'tenantCode':_0x3e01ba?.[_0x5e9155(0x91)]?.[_0x5e9155(0x88)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2b1914;}
@@ -1 +1 @@
1
- function a275_0x33a7(_0x34dc28,_0x5a4392){_0x34dc28=_0x34dc28-0xee;const _0x22dfc6=a275_0x22df();let _0x33a7c5=_0x22dfc6[_0x34dc28];return _0x33a7c5;}(function(_0x5b1fee,_0x22ad9){const _0x5b40a6=a275_0x33a7,_0x1d9c6b=_0x5b1fee();while(!![]){try{const _0x202946=-parseInt(_0x5b40a6(0xfd))/0x1+-parseInt(_0x5b40a6(0xf5))/0x2+parseInt(_0x5b40a6(0xfb))/0x3*(-parseInt(_0x5b40a6(0xf9))/0x4)+-parseInt(_0x5b40a6(0xf8))/0x5*(parseInt(_0x5b40a6(0xef))/0x6)+-parseInt(_0x5b40a6(0xfa))/0x7*(-parseInt(_0x5b40a6(0xf6))/0x8)+parseInt(_0x5b40a6(0xee))/0x9*(parseInt(_0x5b40a6(0xfc))/0xa)+-parseInt(_0x5b40a6(0xf3))/0xb*(-parseInt(_0x5b40a6(0xf1))/0xc);if(_0x202946===_0x22ad9)break;else _0x1d9c6b['push'](_0x1d9c6b['shift']());}catch(_0x27fb85){_0x1d9c6b['push'](_0x1d9c6b['shift']());}}}(a275_0x22df,0x4eba1));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3771f4=a275_0x33a7;process[_0x3771f4(0xf4)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x32cfdd=()=>{const _0x133cb0=_0x3771f4;void flushOtelNodeIfUsed()[_0x133cb0(0xf0)](()=>process[_0x133cb0(0xf2)](0x0));};process[_0x3771f4(0xf4)]('SIGINT',_0x32cfdd),process[_0x3771f4(0xf4)](_0x3771f4(0xf7),_0x32cfdd);}export async function exitWithOtelShutdown(_0x274223){const _0x3e3c6b=a275_0x33a7;await flushOtelNodeIfUsed(),process[_0x3e3c6b(0xf2)](_0x274223);}function a275_0x22df(){const _0x358954=['135446OHissn','99vgrVwo','2650932EBQlVb','then','39324aVhpUr','exit','1991JvOcBm','once','880180bRGmVE','7536Iufxku','SIGTERM','5SaohNX','12yyzJBC','4431ioNebk','350859QnBfAM','455690OeukfW'];a275_0x22df=function(){return _0x358954;};return a275_0x22df();}
1
+ (function(_0x1bba21,_0xb15dcc){const _0x4f888d=a268_0x5bd6,_0x482599=_0x1bba21();while(!![]){try{const _0x22ff35=parseInt(_0x4f888d(0xd9))/0x1*(parseInt(_0x4f888d(0xcf))/0x2)+-parseInt(_0x4f888d(0xd1))/0x3*(parseInt(_0x4f888d(0xd0))/0x4)+-parseInt(_0x4f888d(0xd8))/0x5*(-parseInt(_0x4f888d(0xd2))/0x6)+parseInt(_0x4f888d(0xcd))/0x7+-parseInt(_0x4f888d(0xda))/0x8+parseInt(_0x4f888d(0xd4))/0x9+-parseInt(_0x4f888d(0xd6))/0xa;if(_0x22ff35===_0xb15dcc)break;else _0x482599['push'](_0x482599['shift']());}catch(_0x250b42){_0x482599['push'](_0x482599['shift']());}}}(a268_0x1443,0xaf650));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a268_0x5bd6(_0x4a0930,_0x48cdb2){_0x4a0930=_0x4a0930-0xcc;const _0x144366=a268_0x1443();let _0x5bd6d5=_0x144366[_0x4a0930];return _0x5bd6d5;}export function registerOtelShutdownOnExit(){const _0x52e0bf=a268_0x5bd6;process[_0x52e0bf(0xce)](_0x52e0bf(0xcc),()=>{void flushOtelNodeIfUsed();});const _0x1cafef=()=>{const _0xec668=_0x52e0bf;void flushOtelNodeIfUsed()[_0xec668(0xd7)](()=>process[_0xec668(0xd3)](0x0));};process[_0x52e0bf(0xce)]('SIGINT',_0x1cafef),process['once'](_0x52e0bf(0xd5),_0x1cafef);}function a268_0x1443(){const _0xe91591=['beforeExit','2637446bSjGKo','once','2LkHwdH','1958644OiDAoz','3Iawyyl','1700310lMKVjC','exit','5713884cJdCxR','SIGTERM','18584620ByuRtx','then','15HosQqi','1368773XDVwab','1312344RHoVch'];a268_0x1443=function(){return _0xe91591;};return a268_0x1443();}export async function exitWithOtelShutdown(_0x4a8aa0){const _0x543caa=a268_0x5bd6;await flushOtelNodeIfUsed(),process[_0x543caa(0xd3)](_0x4a8aa0);}
@@ -1 +1 @@
1
- const a276_0x2b0315=a276_0x4780;(function(_0x4a394b,_0x5e7b08){const _0xc93a1b=a276_0x4780,_0x32adaa=_0x4a394b();while(!![]){try{const _0x4a02d1=-parseInt(_0xc93a1b(0x115))/0x1+parseInt(_0xc93a1b(0x114))/0x2+-parseInt(_0xc93a1b(0x11a))/0x3*(-parseInt(_0xc93a1b(0x118))/0x4)+-parseInt(_0xc93a1b(0x112))/0x5+parseInt(_0xc93a1b(0x11d))/0x6*(-parseInt(_0xc93a1b(0x116))/0x7)+parseInt(_0xc93a1b(0x113))/0x8+parseInt(_0xc93a1b(0x117))/0x9;if(_0x4a02d1===_0x5e7b08)break;else _0x32adaa['push'](_0x32adaa['shift']());}catch(_0x2ea4d2){_0x32adaa['push'](_0x32adaa['shift']());}}}(a276_0x5972,0xbc355));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a276_0x4780(_0x1900e7,_0x203d80){_0x1900e7=_0x1900e7-0x112;const _0x597296=a276_0x5972();let _0x47808c=_0x597296[_0x1900e7];return _0x47808c;}function a276_0x5972(){const _0x3b1080=['64074HsrLyP','traceparent','rabetbase-cli','666VEFmfo','manual','version','6471950LfxLcT','8898760SkiAqg','1345376VWrRAE','978476uTcybK','28553OkImVu','4639095WnDhKk','224XZyisa','logData'];a276_0x5972=function(){return _0x3b1080;};return a276_0x5972();}const DEFAULT_TRACE_NAME=a276_0x2b0315(0x11c);export async function sendCliTraceLog(_0x5c69a9){const _0x173dd9=a276_0x2b0315;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5c69a9['traceName']??DEFAULT_TRACE_NAME,'version':_0x5c69a9[_0x173dd9(0x11f)]??getCliVersion(),'spanName':_0x5c69a9['spanName'],'eventType':_0x173dd9(0x11e),'logData':_0x5c69a9[_0x173dd9(0x119)],..._0x5c69a9['traceparent']&&{'traceparent':_0x5c69a9[_0x173dd9(0x11b)]}});}
1
+ const a269_0x2198b6=a269_0x2af4;function a269_0x544c(){const _0x45573f=['7964883wDkeFC','9345nxxVwm','version','3821600nKEVPG','7138145MVivSf','142YJHKBh','6vnpJPC','rabetbase-cli','19790UXAnyx','spanName','930268JJzIMY','64LeIdJz','traceName','manual','logData','707624SDRYVQ','traceparent'];a269_0x544c=function(){return _0x45573f;};return a269_0x544c();}(function(_0x37c999,_0x245b30){const _0x5583f3=a269_0x2af4,_0x409301=_0x37c999();while(!![]){try{const _0x1bef0d=-parseInt(_0x5583f3(0x1f7))/0x1+parseInt(_0x5583f3(0x1f2))/0x2*(parseInt(_0x5583f3(0x1ee))/0x3)+parseInt(_0x5583f3(0x1f8))/0x4*(-parseInt(_0x5583f3(0x1f5))/0x5)+parseInt(_0x5583f3(0x1f3))/0x6*(parseInt(_0x5583f3(0x1f1))/0x7)+-parseInt(_0x5583f3(0x1eb))/0x8+parseInt(_0x5583f3(0x1ed))/0x9+-parseInt(_0x5583f3(0x1f0))/0xa;if(_0x1bef0d===_0x245b30)break;else _0x409301['push'](_0x409301['shift']());}catch(_0x2b30a6){_0x409301['push'](_0x409301['shift']());}}}(a269_0x544c,0xa18ae));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a269_0x2198b6(0x1f4);function a269_0x2af4(_0x544450,_0x2730dd){_0x544450=_0x544450-0x1eb;const _0x544c7c=a269_0x544c();let _0x2af496=_0x544c7c[_0x544450];return _0x2af496;}export async function sendCliTraceLog(_0x183abc){const _0x57348f=a269_0x2198b6;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x183abc[_0x57348f(0x1f9)]??DEFAULT_TRACE_NAME,'version':_0x183abc[_0x57348f(0x1ef)]??getCliVersion(),'spanName':_0x183abc[_0x57348f(0x1f6)],'eventType':_0x57348f(0x1fa),'logData':_0x183abc[_0x57348f(0x1fb)],..._0x183abc['traceparent']&&{'traceparent':_0x183abc[_0x57348f(0x1ec)]}});}
@@ -1 +1 @@
1
- const a277_0x1fda95=a277_0x5de5;function a277_0x5de5(_0x4f57e8,_0x2d9180){_0x4f57e8=_0x4f57e8-0xc9;const _0x40a4f8=a277_0x40a4();let _0x5de5b9=_0x40a4f8[_0x4f57e8];return _0x5de5b9;}function a277_0x40a4(){const _0x4079a5=['title','19717272FkyLUu','418789aeKhQq','redactionKinds','originalBytes','1836864XTUOWX','issue.log.collect','join','1218244KFYxQv','15495WnZuUI','867908pryyvN','sanitize','4301752PqOsTw','552ZNZXKN'];a277_0x40a4=function(){return _0x4079a5;};return a277_0x40a4();}(function(_0x1eaafa,_0xc6bd53){const _0x35feae=a277_0x5de5,_0x4499aa=_0x1eaafa();while(!![]){try{const _0x546001=-parseInt(_0x35feae(0xd2))/0x1+-parseInt(_0x35feae(0xcc))/0x2+-parseInt(_0x35feae(0xd5))/0x3+-parseInt(_0x35feae(0xca))/0x4+-parseInt(_0x35feae(0xcb))/0x5*(-parseInt(_0x35feae(0xcf))/0x6)+-parseInt(_0x35feae(0xce))/0x7+parseInt(_0x35feae(0xd1))/0x8;if(_0x546001===_0xc6bd53)break;else _0x4499aa['push'](_0x4499aa['shift']());}catch(_0x10c28f){_0x4499aa['push'](_0x4499aa['shift']());}}}(a277_0x40a4,0x59447));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a277_0x1fda95(0xd6);export async function sendPlatformIssueCollectLog(_0x37b9c4){const _0x2a4a4c=a277_0x1fda95;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x37b9c4[_0x2a4a4c(0xd0)],'issue.description':_0x37b9c4['description'],..._0x37b9c4[_0x2a4a4c(0xcd)]?{'issue.description_original_bytes':_0x37b9c4[_0x2a4a4c(0xcd)][_0x2a4a4c(0xd4)],'issue.description_truncated':_0x37b9c4['sanitize']['truncated'],'issue.description_redactions':_0x37b9c4[_0x2a4a4c(0xcd)]['redactionCount'],'issue.description_redaction_kinds':_0x37b9c4[_0x2a4a4c(0xcd)][_0x2a4a4c(0xd3)][_0x2a4a4c(0xc9)](',')}:{}}});}
1
+ const a270_0x2ae8ce=a270_0x4ef6;(function(_0xe97320,_0x257f92){const _0x4a30d0=a270_0x4ef6,_0x313b3f=_0xe97320();while(!![]){try{const _0xeb401c=-parseInt(_0x4a30d0(0xe7))/0x1+parseInt(_0x4a30d0(0xe8))/0x2*(parseInt(_0x4a30d0(0xf7))/0x3)+-parseInt(_0x4a30d0(0xf2))/0x4*(parseInt(_0x4a30d0(0xf5))/0x5)+-parseInt(_0x4a30d0(0xf0))/0x6+parseInt(_0x4a30d0(0xf4))/0x7*(parseInt(_0x4a30d0(0xe9))/0x8)+parseInt(_0x4a30d0(0xea))/0x9*(parseInt(_0x4a30d0(0xeb))/0xa)+parseInt(_0x4a30d0(0xe5))/0xb;if(_0xeb401c===_0x257f92)break;else _0x313b3f['push'](_0x313b3f['shift']());}catch(_0x2503ba){_0x313b3f['push'](_0x313b3f['shift']());}}}(a270_0x2b08,0x9da64));function a270_0x2b08(){const _0x4b4e07=['7442072LccERw','sanitize','993466rQLyeZ','1182JqXaeU','136RJxUKo','74880ocYVDm','600UJHaSY','issue.log.collect','redactionCount','description','redactionKinds','42522JQRaBX','join','118744kefkWZ','title','340732zJhPgc','65uHGQWY','originalBytes','147zvTLxC','truncated'];a270_0x2b08=function(){return _0x4b4e07;};return a270_0x2b08();}function a270_0x4ef6(_0x1123e8,_0x1114b6){_0x1123e8=_0x1123e8-0xe4;const _0x2b085d=a270_0x2b08();let _0x4ef654=_0x2b085d[_0x1123e8];return _0x4ef654;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a270_0x2ae8ce(0xec);export async function sendPlatformIssueCollectLog(_0x584712){const _0x443c4e=a270_0x2ae8ce;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x584712[_0x443c4e(0xf3)],'issue.description':_0x584712[_0x443c4e(0xee)],..._0x584712[_0x443c4e(0xe6)]?{'issue.description_original_bytes':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xf6)],'issue.description_truncated':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xe4)],'issue.description_redactions':_0x584712['sanitize'][_0x443c4e(0xed)],'issue.description_redaction_kinds':_0x584712[_0x443c4e(0xe6)][_0x443c4e(0xef)][_0x443c4e(0xf1)](',')}:{}}});}
@@ -1 +1 @@
1
- const a279_0x5cb231=a279_0x58a0;(function(_0x2a2222,_0x5dcf20){const _0x5f0fdb=a279_0x58a0,_0x2035ee=_0x2a2222();while(!![]){try{const _0x59a3f7=-parseInt(_0x5f0fdb(0x17a))/0x1*(-parseInt(_0x5f0fdb(0x186))/0x2)+parseInt(_0x5f0fdb(0x15a))/0x3+parseInt(_0x5f0fdb(0x168))/0x4+-parseInt(_0x5f0fdb(0x172))/0x5+-parseInt(_0x5f0fdb(0x15f))/0x6*(parseInt(_0x5f0fdb(0x177))/0x7)+-parseInt(_0x5f0fdb(0x16b))/0x8+-parseInt(_0x5f0fdb(0x17c))/0x9*(-parseInt(_0x5f0fdb(0x15c))/0xa);if(_0x59a3f7===_0x5dcf20)break;else _0x2035ee['push'](_0x2035ee['shift']());}catch(_0x55796b){_0x2035ee['push'](_0x2035ee['shift']());}}}(a279_0x1f45,0x4415e));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a279_0x5cb231(0x15b),a279_0x5cb231(0x14e)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x154),'template':a279_0x5cb231(0x163)}]},'windsurf':{'name':'Windsurf','description':a279_0x5cb231(0x170),'folders':[a279_0x5cb231(0x16c)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x169),'template':a279_0x5cb231(0x163)}]},'claude':{'name':a279_0x5cb231(0x16f),'description':a279_0x5cb231(0x16f),'folders':[a279_0x5cb231(0x166)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x16a),'template':a279_0x5cb231(0x163)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a279_0x5cb231(0x184)],'files':[{'type':'file','path':a279_0x5cb231(0x17e),'template':a279_0x5cb231(0x163)}]},'codex':{'name':a279_0x5cb231(0x14d),'description':a279_0x5cb231(0x156),'folders':['.codex'],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x176),'template':a279_0x5cb231(0x163)}]},'opencode':{'name':'OpenCode','description':a279_0x5cb231(0x185),'folders':[a279_0x5cb231(0x159)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x16d),'template':a279_0x5cb231(0x163)}]},'qoder':{'name':a279_0x5cb231(0x162),'description':a279_0x5cb231(0x178),'folders':[a279_0x5cb231(0x180)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x150),'template':a279_0x5cb231(0x163)},{'type':'file','path':a279_0x5cb231(0x155),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':'CodeBuddy','description':a279_0x5cb231(0x17f),'folders':[a279_0x5cb231(0x175)],'files':[{'type':'file','path':a279_0x5cb231(0x161),'template':a279_0x5cb231(0x163)}]},'trae':{'name':a279_0x5cb231(0x158),'description':a279_0x5cb231(0x183),'folders':[a279_0x5cb231(0x160)],'files':[{'type':'file','path':a279_0x5cb231(0x165),'template':a279_0x5cb231(0x163)}]}};function a279_0x1f45(){const _0x1b5e6e=['windsurf','.codebuddy','.codex/skills/lovrabet/SKILL.md','2940889znilQe','Qoder\x20IDE','file','191gtpDUL','qoder','4252869PHrpIN','agent','.cline/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','.qoder','claude','opencode','Trae\x20IDE','.cline','OpenCode\x20IDE','1054fxewMJ','Codex','.cursor','通用模板\x20-\x20兜底方案','.qoder/rules/rabetbase.md','antigravity','codebuddy','.agent/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.qoder/skills/lovrabet/SKILL.md','Codex\x20IDE','trae','Trae','.opencode','325353YKlQtK','.cursorrules','20myTXPy','Antigravity\x20IDE','cursor','6BlIHMW','.trae','.codebuddy/skills/lovrabet/SKILL.md','Qoder','SKILL.md.tpl','cline','.trae/skills/lovrabet/SKILL.md','.claude','.agent','1967424DLnGkg','.windsurf/workflows/rabetbase.md','.claude/skills/lovrabet/SKILL.md','3742648mwXzou','.windsurf','.opencode/skills/lovrabet/SKILL.md','codex','Claude\x20Code','Windsurf\x20IDE','Antigravity','2396050ByELdz','其他\x20(通用模板)'];a279_0x1f45=function(){return _0x1b5e6e;};return a279_0x1f45();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a279_0x5cb231(0x173),'description':a279_0x5cb231(0x14f),'folders':[a279_0x5cb231(0x167)],'files':[{'type':a279_0x5cb231(0x179),'path':'.agent/skills/lovrabet/SKILL.md','template':a279_0x5cb231(0x163)}]},'antigravity':{'name':a279_0x5cb231(0x171),'description':a279_0x5cb231(0x15d),'folders':[a279_0x5cb231(0x167)],'files':[{'type':a279_0x5cb231(0x179),'path':a279_0x5cb231(0x153),'template':'SKILL.md.tpl'}]}};function a279_0x58a0(_0x11b0d7,_0x243b3e){_0x11b0d7=_0x11b0d7-0x14d;const _0x1f4560=a279_0x1f45();let _0x58a07f=_0x1f4560[_0x11b0d7];return _0x58a07f;}export const CORE_IDE_LIST=[a279_0x5cb231(0x181),a279_0x5cb231(0x164),a279_0x5cb231(0x152),a279_0x5cb231(0x16e),'cursor',a279_0x5cb231(0x182),a279_0x5cb231(0x17b),a279_0x5cb231(0x157),a279_0x5cb231(0x174)];export const IDE_LIST=[a279_0x5cb231(0x151),a279_0x5cb231(0x181),a279_0x5cb231(0x164),'codebuddy',a279_0x5cb231(0x16e),a279_0x5cb231(0x15e),a279_0x5cb231(0x182),'qoder',a279_0x5cb231(0x157),a279_0x5cb231(0x174),a279_0x5cb231(0x17d)];export const ALL_CORE_IDES=[a279_0x5cb231(0x15e),a279_0x5cb231(0x174),a279_0x5cb231(0x181),a279_0x5cb231(0x164),a279_0x5cb231(0x16e),a279_0x5cb231(0x182),a279_0x5cb231(0x17b),a279_0x5cb231(0x152),'trae'];
1
+ function a272_0x1d25(_0x942cc4,_0x58207b){_0x942cc4=_0x942cc4-0x98;const _0x22c760=a272_0x22c7();let _0x1d2503=_0x22c760[_0x942cc4];return _0x1d2503;}const a272_0x55eafd=a272_0x1d25;function a272_0x22c7(){const _0x15f66a=['681014QhYDKo','Windsurf\x20IDE','SKILL.md.tpl','Claude\x20Code','9gBHoFJ','3265586UPTFBf','OpenCode\x20IDE','opencode','.trae','5139536DPnmrz','.codex','.cursorrules','5751697LvHYGG','codex','.claude/skills/lovrabet/SKILL.md','25000gFDGnF','file','Trae\x20IDE','.opencode','cline','trae','CodeBuddy','.agent','.qoder/rules/rabetbase.md','.codebuddy','.codebuddy/skills/lovrabet/SKILL.md','444TFFHDB','Trae','Antigravity\x20IDE','codebuddy','3667191AIYqMa','.qoder','.codex/skills/lovrabet/SKILL.md','.claude','cursor','OpenCode','通用模板\x20-\x20兜底方案','Qoder','Codex\x20IDE','claude','Antigravity','其他\x20(通用模板)','.windsurf','windsurf','Codex','.opencode/skills/lovrabet/SKILL.md','Qoder\x20IDE','57555KrZYeG','.cline/skills/lovrabet/SKILL.md','qoder','.agent/skills/lovrabet/SKILL.md'];a272_0x22c7=function(){return _0x15f66a;};return a272_0x22c7();}(function(_0x3ea94d,_0x133c9a){const _0x1398dd=a272_0x1d25,_0x1da889=_0x3ea94d();while(!![]){try{const _0x25005d=parseInt(_0x1398dd(0x98))/0x1+-parseInt(_0x1398dd(0x9d))/0x2+parseInt(_0x1398dd(0xb6))/0x3+parseInt(_0x1398dd(0xa7))/0x4+parseInt(_0x1398dd(0xc7))/0x5*(-parseInt(_0x1398dd(0xb2))/0x6)+parseInt(_0x1398dd(0xa4))/0x7+-parseInt(_0x1398dd(0xa1))/0x8*(-parseInt(_0x1398dd(0x9c))/0x9);if(_0x25005d===_0x133c9a)break;else _0x1da889['push'](_0x1da889['shift']());}catch(_0x36c72a){_0x1da889['push'](_0x1da889['shift']());}}}(a272_0x22c7,0xd914f));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':'Cursor\x20IDE','folders':[a272_0x55eafd(0xa3),'.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a272_0x55eafd(0x9a)}]},'windsurf':{'name':'Windsurf','description':a272_0x55eafd(0x99),'folders':[a272_0x55eafd(0xc2)],'files':[{'type':a272_0x55eafd(0xa8),'path':'.windsurf/workflows/rabetbase.md','template':a272_0x55eafd(0x9a)}]},'claude':{'name':'Claude\x20Code','description':a272_0x55eafd(0x9b),'folders':[a272_0x55eafd(0xb9)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xa6),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xc8),'template':'SKILL.md.tpl'}]},'codex':{'name':a272_0x55eafd(0xc4),'description':a272_0x55eafd(0xbe),'folders':[a272_0x55eafd(0xa2)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xb8),'template':a272_0x55eafd(0x9a)}]},'opencode':{'name':a272_0x55eafd(0xbb),'description':a272_0x55eafd(0x9e),'folders':[a272_0x55eafd(0xaa)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xc5),'template':a272_0x55eafd(0x9a)}]},'qoder':{'name':a272_0x55eafd(0xbd),'description':a272_0x55eafd(0xc6),'folders':[a272_0x55eafd(0xb7)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xaf),'template':a272_0x55eafd(0x9a)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a272_0x55eafd(0x9a)}]},'codebuddy':{'name':a272_0x55eafd(0xad),'description':'CodeBuddy\x20IDE','folders':[a272_0x55eafd(0xb0)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xb1),'template':a272_0x55eafd(0x9a)}]},'trae':{'name':a272_0x55eafd(0xb3),'description':a272_0x55eafd(0xa9),'folders':[a272_0x55eafd(0xa0)],'files':[{'type':a272_0x55eafd(0xa8),'path':'.trae/skills/lovrabet/SKILL.md','template':a272_0x55eafd(0x9a)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a272_0x55eafd(0xc1),'description':a272_0x55eafd(0xbc),'folders':[a272_0x55eafd(0xae)],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xca),'template':a272_0x55eafd(0x9a)}]},'antigravity':{'name':a272_0x55eafd(0xc0),'description':a272_0x55eafd(0xb4),'folders':['.agent'],'files':[{'type':a272_0x55eafd(0xa8),'path':a272_0x55eafd(0xca),'template':a272_0x55eafd(0x9a)}]}};export const CORE_IDE_LIST=[a272_0x55eafd(0xbf),a272_0x55eafd(0xab),'codebuddy',a272_0x55eafd(0xa5),'cursor','opencode',a272_0x55eafd(0xc9),'trae',a272_0x55eafd(0xc3)];export const IDE_LIST=['antigravity',a272_0x55eafd(0xbf),a272_0x55eafd(0xab),'codebuddy',a272_0x55eafd(0xa5),a272_0x55eafd(0xba),a272_0x55eafd(0x9f),a272_0x55eafd(0xc9),a272_0x55eafd(0xac),a272_0x55eafd(0xc3),'agent'];export const ALL_CORE_IDES=['cursor',a272_0x55eafd(0xc3),'claude',a272_0x55eafd(0xab),a272_0x55eafd(0xa5),a272_0x55eafd(0x9f),'qoder',a272_0x55eafd(0xb5),a272_0x55eafd(0xac)];
@@ -1 +1 @@
1
- (function(_0xda6e47,_0x3ed7d9){const _0x13bb13=a280_0x3da2,_0x431684=_0xda6e47();while(!![]){try{const _0x1800f5=-parseInt(_0x13bb13(0x1d7))/0x1+-parseInt(_0x13bb13(0x1d2))/0x2+parseInt(_0x13bb13(0x1d3))/0x3*(-parseInt(_0x13bb13(0x1d0))/0x4)+parseInt(_0x13bb13(0x1d1))/0x5+parseInt(_0x13bb13(0x1d6))/0x6*(parseInt(_0x13bb13(0x1d5))/0x7)+parseInt(_0x13bb13(0x1ce))/0x8+parseInt(_0x13bb13(0x1d4))/0x9*(parseInt(_0x13bb13(0x1cf))/0xa);if(_0x1800f5===_0x3ed7d9)break;else _0x431684['push'](_0x431684['shift']());}catch(_0x1d07aa){_0x431684['push'](_0x431684['shift']());}}}(a280_0x1973,0xb72fc));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a280_0x3da2(_0x28bf53,_0x3d3530){_0x28bf53=_0x28bf53-0x1ce;const _0x1973d7=a280_0x1973();let _0x3da2ae=_0x1973d7[_0x28bf53];return _0x3da2ae;}function a280_0x1973(){const _0x1d6e17=['48rJbSFt','11843037sDwnte','6307NnCvty','1062atXZfW','1005013cuhKBD','10285216pXpQXi','10jHmruM','181128mdItPA','4787355LdUhGL','2477272LutJRx'];a280_0x1973=function(){return _0x1d6e17;};return a280_0x1973();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x2aba44,_0x43ba46){const _0x344249=a273_0x5651,_0x574f3d=_0x2aba44();while(!![]){try{const _0x3893ab=parseInt(_0x344249(0x167))/0x1*(-parseInt(_0x344249(0x16f))/0x2)+-parseInt(_0x344249(0x166))/0x3+-parseInt(_0x344249(0x168))/0x4+parseInt(_0x344249(0x169))/0x5+-parseInt(_0x344249(0x16d))/0x6*(-parseInt(_0x344249(0x16e))/0x7)+parseInt(_0x344249(0x16b))/0x8+-parseInt(_0x344249(0x16c))/0x9*(parseInt(_0x344249(0x16a))/0xa);if(_0x3893ab===_0x43ba46)break;else _0x574f3d['push'](_0x574f3d['shift']());}catch(_0x3f677d){_0x574f3d['push'](_0x574f3d['shift']());}}}(a273_0x36d4,0xbf03a));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a273_0x5651(_0x12f356,_0x24eb48){_0x12f356=_0x12f356-0x166;const _0x36d47e=a273_0x36d4();let _0x5651af=_0x36d47e[_0x12f356];return _0x5651af;}function a273_0x36d4(){const _0x6886b2=['25822kvTcJY','2272326vhgQcH','23iHpdEB','2997404VLlzqM','4358770YTbNGG','9190CcMVkm','11867376DqcpFj','1611ehdaMf','474558ctEqEi','35MjvWRk'];a273_0x36d4=function(){return _0x6886b2;};return a273_0x36d4();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x1f504d,_0x95ec3d){const _0x35bf02=a281_0xdabe,_0x488d79=_0x1f504d();while(!![]){try{const _0x2bd676=parseInt(_0x35bf02(0x1b6))/0x1+parseInt(_0x35bf02(0x1a6))/0x2*(-parseInt(_0x35bf02(0x1ab))/0x3)+parseInt(_0x35bf02(0x1b7))/0x4+parseInt(_0x35bf02(0x1b2))/0x5*(parseInt(_0x35bf02(0x1ac))/0x6)+parseInt(_0x35bf02(0x1ad))/0x7*(parseInt(_0x35bf02(0x1b5))/0x8)+parseInt(_0x35bf02(0x1b3))/0x9+-parseInt(_0x35bf02(0x1b4))/0xa*(parseInt(_0x35bf02(0x1ae))/0xb);if(_0x2bd676===_0x95ec3d)break;else _0x488d79['push'](_0x488d79['shift']());}catch(_0x773c0e){_0x488d79['push'](_0x488d79['shift']());}}}(a281_0x523f,0x446f6));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3012c0=a281_0xdabe,_0x1b2bd9=getTemplateBaseUrl(),_0x490dec=[_0x1b2bd9+'/config.json',_0x1b2bd9+_0x3012c0(0x1a7)];for(const _0x13aefe of _0x490dec){try{const _0x28aad5=await fetch(_0x13aefe,{'headers':{'Accept':_0x3012c0(0x1af)}});if(!_0x28aad5['ok'])continue;const _0x2ff5ed=await _0x28aad5['json']();if(!_0x2ff5ed[_0x3012c0(0x1b0)]?.[_0x3012c0(0x1aa)]||!_0x2ff5ed[_0x3012c0(0x1a8)]?.[_0x3012c0(0x1a9)]?.['stableVersion'])continue;return _0x2ff5ed;}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 _0x38bb9d=a281_0xdabe,_0x25e378=Date[_0x38bb9d(0x1b1)]();if(hasCachedConfig){const _0x17b48a=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x25e378-cacheTime<_0x17b48a)return cachedConfig;}const _0x74f41c=await fetchCdnConfig();return cachedConfig=_0x74f41c,cacheTime=_0x25e378,hasCachedConfig=!![],_0x74f41c;}function a281_0xdabe(_0x1da287,_0x185bdd){_0x1da287=_0x1da287-0x1a6;const _0x523ff5=a281_0x523f();let _0xdabeda=_0x523ff5[_0x1da287];return _0xdabeda;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a281_0x523f(){const _0x44e977=['6eslGWO','7NcrvQh','188408MoHCai','application/json','cli','now','2125025vEcNHk','2552103YvoUcp','190MEmiRc','2857024yZgVsC','22872dxMYWW','87764kPeBab','336514okGmOP','/config/index.json','sdk','node','stableVersion','9NWXUcp'];a281_0x523f=function(){return _0x44e977;};return a281_0x523f();}
1
+ (function(_0x1183b2,_0x2835f7){const _0x3b8908=a274_0x35ec,_0x2f0551=_0x1183b2();while(!![]){try{const _0x380488=-parseInt(_0x3b8908(0x16b))/0x1*(parseInt(_0x3b8908(0x176))/0x2)+-parseInt(_0x3b8908(0x16c))/0x3*(parseInt(_0x3b8908(0x169))/0x4)+parseInt(_0x3b8908(0x16d))/0x5*(-parseInt(_0x3b8908(0x175))/0x6)+parseInt(_0x3b8908(0x171))/0x7+parseInt(_0x3b8908(0x173))/0x8+-parseInt(_0x3b8908(0x172))/0x9*(parseInt(_0x3b8908(0x170))/0xa)+parseInt(_0x3b8908(0x16e))/0xb;if(_0x380488===_0x2835f7)break;else _0x2f0551['push'](_0x2f0551['shift']());}catch(_0x1a7dd0){_0x2f0551['push'](_0x2f0551['shift']());}}}(a274_0x1c30,0x6fcd0));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2d18e7=a274_0x35ec,_0x260936=getTemplateBaseUrl(),_0x50a079=[_0x260936+'/config.json',_0x260936+'/config/index.json'];for(const _0x2b2614 of _0x50a079){try{const _0xb6489b=await fetch(_0x2b2614,{'headers':{'Accept':'application/json'}});if(!_0xb6489b['ok'])continue;const _0x9c90ff=await _0xb6489b[_0x2d18e7(0x174)]();if(!_0x9c90ff[_0x2d18e7(0x16a)]?.[_0x2d18e7(0x177)]||!_0x9c90ff[_0x2d18e7(0x16f)]?.[_0x2d18e7(0x178)]?.[_0x2d18e7(0x177)])continue;return _0x9c90ff;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x145c91=Date['now']();if(hasCachedConfig){const _0x5a2372=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x145c91-cacheTime<_0x5a2372)return cachedConfig;}const _0x193d0f=await fetchCdnConfig();return cachedConfig=_0x193d0f,cacheTime=_0x145c91,hasCachedConfig=!![],_0x193d0f;}function a274_0x35ec(_0x987003,_0x2782cd){_0x987003=_0x987003-0x169;const _0x1c30d5=a274_0x1c30();let _0x35ec24=_0x1c30d5[_0x987003];return _0x35ec24;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a274_0x1c30(){const _0x24374f=['2292892dygyYd','cli','37846QFKxoe','3RtxFZl','893630TdVSkR','24276560PTCbTW','sdk','1990vbNLWu','1638490GXOlJK','29709eOxEAc','6272320GrCqTE','json','30eXYlse','34iEfXto','stableVersion','node'];a274_0x1c30=function(){return _0x24374f;};return a274_0x1c30();}
@@ -1 +1 @@
1
- function a282_0x2111(_0x4a8505,_0x46c8e1){_0x4a8505=_0x4a8505-0x1cf;const _0x15c595=a282_0x15c5();let _0x2111af=_0x15c595[_0x4a8505];return _0x2111af;}const a282_0x39204b=a282_0x2111;(function(_0x46d3cf,_0x3cb901){const _0x47e14c=a282_0x2111,_0xa13bab=_0x46d3cf();while(!![]){try{const _0x4ac227=parseInt(_0x47e14c(0x1f2))/0x1*(-parseInt(_0x47e14c(0x1f5))/0x2)+-parseInt(_0x47e14c(0x1e1))/0x3*(-parseInt(_0x47e14c(0x1f1))/0x4)+-parseInt(_0x47e14c(0x1d1))/0x5*(parseInt(_0x47e14c(0x1e4))/0x6)+parseInt(_0x47e14c(0x1f3))/0x7*(-parseInt(_0x47e14c(0x1d3))/0x8)+-parseInt(_0x47e14c(0x1d0))/0x9+parseInt(_0x47e14c(0x1da))/0xa+parseInt(_0x47e14c(0x1d4))/0xb;if(_0x4ac227===_0x3cb901)break;else _0xa13bab['push'](_0xa13bab['shift']());}catch(_0x4aaba5){_0xa13bab['push'](_0xa13bab['shift']());}}}(a282_0x15c5,0xa4eb7));import a282_0x296fe4 from'node:fs';import a282_0x4d95d5 from'node:path';import a282_0x2b933f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a282_0x39204b(0x1de);function isNonNumericVersion(_0x161ccb){const _0x12abb0=a282_0x39204b,_0x2141ac=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2141ac['some'](_0x12a5a9=>_0x12a5a9[_0x12abb0(0x1e0)](_0x161ccb));}function getInstalledVersion(_0x4c25ce,_0x5ddf09){const _0x4beb15=a282_0x39204b;try{const _0x3ef191=a282_0x4d95d5[_0x4beb15(0x1eb)](_0x4c25ce,_0x4beb15(0x1dd),_0x5ddf09,_0x4beb15(0x1d5));if(a282_0x296fe4[_0x4beb15(0x1f4)](_0x3ef191)){const _0x243c80=JSON[_0x4beb15(0x1e7)](a282_0x296fe4[_0x4beb15(0x1d6)](_0x3ef191,_0x4beb15(0x1d9)));return _0x243c80[_0x4beb15(0x1ec)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x322850=a282_0x39204b;try{const _0x4abd8a=await getCdnConfig();return _0x4abd8a?.['sdk']?.[_0x322850(0x1e6)]?.[_0x322850(0x1f0)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2c92a0=a282_0x39204b;try{const _0x468bc3=await getCdnConfig();return _0x468bc3?.[_0x2c92a0(0x1cf)]?.['node']?.[_0x2c92a0(0x1db)]||_0x2c92a0(0x1ef);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x39b38f){const _0x3da39f=a282_0x39204b,_0x2f1b75=a282_0x4d95d5[_0x3da39f(0x1eb)](_0x39b38f,_0x3da39f(0x1d5)),[_0x105615,_0x41457c]=await Promise[_0x3da39f(0x1e3)]([getSdkStableVersion(),getSdkPackageName()]),_0xecabce=_0x105615||FALLBACK_MIN_SDK_VERSION;if(!a282_0x296fe4['existsSync'](_0x2f1b75))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xecabce,'packageName':_0x41457c,'stableVersion':_0x105615};try{const _0x1975e4=JSON[_0x3da39f(0x1e7)](a282_0x296fe4[_0x3da39f(0x1d6)](_0x2f1b75,'utf8')),_0x29ef5f=_0x1975e4[_0x3da39f(0x1d7)]||{},_0xbfa022=_0x1975e4[_0x3da39f(0x1ed)]||{},_0x3b2250=_0x29ef5f[_0x41457c]||_0xbfa022[_0x41457c];if(!_0x3b2250)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xecabce,'packageName':_0x41457c,'stableVersion':_0x105615};let _0x5ec632=getInstalledVersion(_0x39b38f,_0x41457c);!_0x5ec632&&(_0x5ec632=_0x3b2250);if(isNonNumericVersion(_0x3b2250))return{'installed':!![],'version':_0x5ec632,'needsUpgrade':![],'minVersion':_0xecabce,'packageName':_0x41457c,'stableVersion':_0x105615};const _0x54611b=a282_0x2b933f[_0x3da39f(0x1df)](_0x5ec632),_0x47f85d=a282_0x2b933f['coerce'](_0xecabce),_0x530a01=_0x54611b&&_0x47f85d?a282_0x2b933f['lt'](_0x54611b,_0x47f85d):![];return{'installed':!![],'version':_0x5ec632,'needsUpgrade':_0x530a01,'minVersion':_0xecabce,'packageName':_0x41457c,'stableVersion':_0x105615};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xecabce,'packageName':_0x41457c,'stableVersion':_0x105615};}}export function checkSdkVersionSync(_0x206329){const _0x585926=a282_0x39204b,_0x2b33cf=a282_0x4d95d5[_0x585926(0x1eb)](_0x206329,_0x585926(0x1d5)),_0x1006ad=_0x585926(0x1ef);if(!a282_0x296fe4['existsSync'](_0x2b33cf))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1006ad,'stableVersion':null};try{const _0x159465=JSON['parse'](a282_0x296fe4[_0x585926(0x1d6)](_0x2b33cf,'utf8')),_0x3f93a4=_0x159465['dependencies']||{},_0x2105fb=_0x159465['devDependencies']||{},_0x6240bb=_0x3f93a4[_0x1006ad]||_0x2105fb[_0x1006ad];if(!_0x6240bb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1006ad,'stableVersion':null};let _0x3906a4=getInstalledVersion(_0x206329,_0x1006ad);!_0x3906a4&&(_0x3906a4=_0x6240bb);if(isNonNumericVersion(_0x6240bb))return{'installed':!![],'version':_0x3906a4,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1006ad,'stableVersion':null};const _0x115a3a=a282_0x2b933f[_0x585926(0x1df)](_0x3906a4),_0x250e7a=_0x115a3a?a282_0x2b933f['lt'](_0x115a3a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3906a4,'needsUpgrade':_0x250e7a,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1006ad,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1006ad,'stableVersion':null};}}function a282_0x15c5(){const _0x38b81b=['\x1b[0m','all','1893252qdkqVn','npm\x20install\x20','node','parse','\x20\x20\x20Upgrade\x20command:\x20','log','\x20\x20\x20Stable\x20version:\x20','join','version','devDependencies','↪\x20SDK\x20update\x20available','@lovrabet/sdk','stableVersion','1163044fIwMZd','55837ttvexe','684523gGXrld','existsSync','26csaPei','sdk','12102111dWxsMY','5XKfzRN','\x20\x20\x20Current\x20version:\x20','32TiBwKh','25337202gNUrnh','package.json','readFileSync','dependencies','latest','utf-8','8586260KRaDHm','packageName','\x1b[1m','node_modules','1.2.0','coerce','test','3KxXGnC'];a282_0x15c5=function(){return _0x38b81b;};return a282_0x15c5();}export function printSdkUpgradeWarning(_0x1512bc){const _0x272929=a282_0x39204b;if(!_0x1512bc['needsUpgrade'])return;const _0x508750='\x1b[33m',_0x5c5cf1=_0x272929(0x1e2),_0x4b011b=_0x272929(0x1dc),_0x21ec1c=_0x1512bc['packageName']||_0x272929(0x1ef),_0x154f14=_0x1512bc[_0x272929(0x1f0)]||_0x1512bc['minVersion'],_0x3daaf7=_0x272929(0x1e5)+_0x21ec1c+'@'+(_0x154f14||_0x272929(0x1d8));console[_0x272929(0x1e9)](),console[_0x272929(0x1e9)](''+_0x508750+_0x4b011b+_0x272929(0x1ee)+_0x5c5cf1),console[_0x272929(0x1e9)](_0x508750+_0x272929(0x1d2)+_0x21ec1c+'@'+_0x1512bc[_0x272929(0x1ec)]+_0x5c5cf1),console[_0x272929(0x1e9)](_0x508750+_0x272929(0x1ea)+_0x154f14+_0x5c5cf1),console['log'](_0x508750+_0x272929(0x1e8)+_0x3daaf7+_0x5c5cf1),console[_0x272929(0x1e9)]();}
1
+ (function(_0x5a53d9,_0x5f0f57){const _0x280de2=a275_0x4b9f,_0x4365d7=_0x5a53d9();while(!![]){try{const _0x5de073=-parseInt(_0x280de2(0x15a))/0x1*(-parseInt(_0x280de2(0x154))/0x2)+parseInt(_0x280de2(0x16a))/0x3*(-parseInt(_0x280de2(0x169))/0x4)+parseInt(_0x280de2(0x163))/0x5*(parseInt(_0x280de2(0x153))/0x6)+parseInt(_0x280de2(0x157))/0x7*(-parseInt(_0x280de2(0x167))/0x8)+parseInt(_0x280de2(0x16c))/0x9+-parseInt(_0x280de2(0x15d))/0xa+parseInt(_0x280de2(0x16b))/0xb*(parseInt(_0x280de2(0x152))/0xc);if(_0x5de073===_0x5f0f57)break;else _0x4365d7['push'](_0x4365d7['shift']());}catch(_0x18c9fe){_0x4365d7['push'](_0x4365d7['shift']());}}}(a275_0x5e37,0xa934e));import a275_0x50fc06 from'node:fs';function a275_0x4b9f(_0x59b6fb,_0x1435ae){_0x59b6fb=_0x59b6fb-0x14b;const _0x5e3709=a275_0x5e37();let _0x4b9f65=_0x5e3709[_0x59b6fb];return _0x4b9f65;}import a275_0x379cea from'node:path';import a275_0x398e26 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x536d53){const _0x5d6a52=a275_0x4b9f,_0x511250=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x511250[_0x5d6a52(0x151)](_0x4b3d3a=>_0x4b3d3a['test'](_0x536d53));}function getInstalledVersion(_0x112a83,_0x51b12b){const _0x4ad476=a275_0x4b9f;try{const _0x35378c=a275_0x379cea[_0x4ad476(0x164)](_0x112a83,'node_modules',_0x51b12b,_0x4ad476(0x16d));if(a275_0x50fc06[_0x4ad476(0x162)](_0x35378c)){const _0x1ed6c=JSON[_0x4ad476(0x14f)](a275_0x50fc06[_0x4ad476(0x168)](_0x35378c,_0x4ad476(0x15f)));return _0x1ed6c[_0x4ad476(0x15c)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5b7308=a275_0x4b9f;try{const _0xce69bc=await getCdnConfig();return _0xce69bc?.['sdk']?.['node']?.[_0x5b7308(0x150)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x26d20e=a275_0x4b9f;try{const _0x1d70ce=await getCdnConfig();return _0x1d70ce?.[_0x26d20e(0x15b)]?.[_0x26d20e(0x160)]?.[_0x26d20e(0x166)]||_0x26d20e(0x161);}catch{return _0x26d20e(0x161);}}export async function checkSdkVersion(_0x2770fe){const _0x3da271=a275_0x4b9f,_0x595108=a275_0x379cea[_0x3da271(0x164)](_0x2770fe,_0x3da271(0x16d)),[_0x5b9a19,_0x5731d2]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x3dacaf=_0x5b9a19||FALLBACK_MIN_SDK_VERSION;if(!a275_0x50fc06[_0x3da271(0x162)](_0x595108))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};try{const _0x1a71d6=JSON['parse'](a275_0x50fc06[_0x3da271(0x168)](_0x595108,_0x3da271(0x14d))),_0x44043e=_0x1a71d6[_0x3da271(0x14c)]||{},_0x23b651=_0x1a71d6['devDependencies']||{},_0x495c5a=_0x44043e[_0x5731d2]||_0x23b651[_0x5731d2];if(!_0x495c5a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};let _0x533c2d=getInstalledVersion(_0x2770fe,_0x5731d2);!_0x533c2d&&(_0x533c2d=_0x495c5a);if(isNonNumericVersion(_0x495c5a))return{'installed':!![],'version':_0x533c2d,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};const _0x228767=a275_0x398e26[_0x3da271(0x14e)](_0x533c2d),_0x345a57=a275_0x398e26[_0x3da271(0x14e)](_0x3dacaf),_0x32f8c3=_0x228767&&_0x345a57?a275_0x398e26['lt'](_0x228767,_0x345a57):![];return{'installed':!![],'version':_0x533c2d,'needsUpgrade':_0x32f8c3,'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3dacaf,'packageName':_0x5731d2,'stableVersion':_0x5b9a19};}}export function checkSdkVersionSync(_0x123b2e){const _0x2f06fa=a275_0x4b9f,_0x2ce886=a275_0x379cea[_0x2f06fa(0x164)](_0x123b2e,_0x2f06fa(0x16d)),_0x3b4e12=_0x2f06fa(0x161);if(!a275_0x50fc06[_0x2f06fa(0x162)](_0x2ce886))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};try{const _0x33c081=JSON['parse'](a275_0x50fc06[_0x2f06fa(0x168)](_0x2ce886,'utf8')),_0x543e42=_0x33c081['dependencies']||{},_0x3e00ec=_0x33c081[_0x2f06fa(0x158)]||{},_0x44e6c1=_0x543e42[_0x3b4e12]||_0x3e00ec[_0x3b4e12];if(!_0x44e6c1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};let _0x1eab96=getInstalledVersion(_0x123b2e,_0x3b4e12);!_0x1eab96&&(_0x1eab96=_0x44e6c1);if(isNonNumericVersion(_0x44e6c1))return{'installed':!![],'version':_0x1eab96,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};const _0x5db289=a275_0x398e26[_0x2f06fa(0x14e)](_0x1eab96),_0x3533c1=_0x5db289?a275_0x398e26['lt'](_0x5db289,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1eab96,'needsUpgrade':_0x3533c1,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b4e12,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xea78f5){const _0x415e26=a275_0x4b9f;if(!_0xea78f5['needsUpgrade'])return;const _0x1457ba=_0x415e26(0x14b),_0x1cdeb7='\x1b[0m',_0x8971aa=_0x415e26(0x16e),_0xcaa107=_0xea78f5[_0x415e26(0x166)]||'@lovrabet/sdk',_0x1b5584=_0xea78f5[_0x415e26(0x150)]||_0xea78f5['minVersion'],_0x129128=_0x415e26(0x156)+_0xcaa107+'@'+(_0x1b5584||'latest');console[_0x415e26(0x15e)](),console[_0x415e26(0x15e)](''+_0x1457ba+_0x8971aa+'↪\x20SDK\x20update\x20available'+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x159)+_0xcaa107+'@'+_0xea78f5['version']+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x165)+_0x1b5584+_0x1cdeb7),console[_0x415e26(0x15e)](_0x1457ba+_0x415e26(0x155)+_0x129128+_0x1cdeb7),console[_0x415e26(0x15e)]();}function a275_0x5e37(){const _0x5878b7=['\x20\x20\x20Stable\x20version:\x20','packageName','8XjnbGR','readFileSync','52TABhbP','7749xOaHsG','11icLlXX','5380776YJCrhJ','package.json','\x1b[1m','\x1b[33m','dependencies','utf8','coerce','parse','stableVersion','some','7122468LQVATg','113154vRhkUG','2094LAEBsN','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','2574257nQeNkE','devDependencies','\x20\x20\x20Current\x20version:\x20','1075YlYHIS','sdk','version','12979640rSyMVl','log','utf-8','node','@lovrabet/sdk','existsSync','20XjSblT','join'];a275_0x5e37=function(){return _0x5878b7;};return a275_0x5e37();}
@@ -1 +1 @@
1
- (function(_0x581257,_0x3b4aae){const _0x5d1063=a283_0x131b,_0x3cfbd9=_0x581257();while(!![]){try{const _0x2fd4cd=parseInt(_0x5d1063(0x1b3))/0x1*(-parseInt(_0x5d1063(0x1c8))/0x2)+parseInt(_0x5d1063(0x1c5))/0x3+parseInt(_0x5d1063(0x1ba))/0x4+-parseInt(_0x5d1063(0x1b7))/0x5*(parseInt(_0x5d1063(0x1a4))/0x6)+parseInt(_0x5d1063(0x1c1))/0x7*(-parseInt(_0x5d1063(0x1b2))/0x8)+-parseInt(_0x5d1063(0x1b1))/0x9+-parseInt(_0x5d1063(0x1b6))/0xa*(-parseInt(_0x5d1063(0x1af))/0xb);if(_0x2fd4cd===_0x3b4aae)break;else _0x3cfbd9['push'](_0x3cfbd9['shift']());}catch(_0x12a86d){_0x3cfbd9['push'](_0x3cfbd9['shift']());}}}(a283_0x2c3d,0xeb273));import{readFileSync}from'node:fs';function a283_0x131b(_0x166bc0,_0x4dbb81){_0x166bc0=_0x166bc0-0x1a4;const _0x2c3ddf=a283_0x2c3d();let _0x131be8=_0x2c3ddf[_0x166bc0];return _0x131be8;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a283_0x35cb22 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(_0xb00207){const _0x453825=a283_0x131b,_0x321309=_0xb00207[_0x453825(0x1b9)]||_0x453825(0x1c9);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x321309;}function getCurrentCliVersion(){const _0x912f89=a283_0x131b;try{const _0x5d0c8d=fileURLToPath(import.meta.url),_0x3f228b=resolve(dirname(_0x5d0c8d),_0x912f89(0x1b8)),_0xa43860=resolve(_0x3f228b,'package.json'),_0x507cbc=JSON[_0x912f89(0x1c4)](readFileSync(_0xa43860,_0x912f89(0x1c3)));return _0x507cbc['version']||_0x912f89(0x1a8);}catch{return _0x912f89(0x1a8);}}export async function checkCliVersion(){const _0x1a7c0a=a283_0x131b,_0x28d327=getCurrentCliVersion(),_0x522b7e=await getCliVersionPolicy(),_0x2bf61f=_0x522b7e?.['stableVersion']||null,_0x1aa872=_0x522b7e?.[_0x1a7c0a(0x1bc)]||null;let _0x466172=![],_0x29cc8b=![];const _0x743cd4=a283_0x35cb22['coerce'](_0x28d327);if(_0x743cd4&&_0x2bf61f)try{const _0x80d641=a283_0x35cb22[_0x1a7c0a(0x1ac)](_0x2bf61f);if(_0x80d641)_0x466172=a283_0x35cb22['lt'](_0x743cd4,_0x80d641);}catch{}if(_0x743cd4&&_0x1aa872)try{const _0x4f3e0a=a283_0x35cb22[_0x1a7c0a(0x1ac)](_0x1aa872);if(_0x4f3e0a)_0x29cc8b=a283_0x35cb22['lt'](_0x743cd4,_0x4f3e0a);}catch{}return _0x29cc8b&&(_0x466172=!![]),{'currentVersion':_0x28d327,'stableVersion':_0x2bf61f,'minimumVersion':_0x1aa872,'needsUpgrade':_0x466172,'belowMinimum':_0x29cc8b,'isPreRelease':![],'upgradeMessage':_0x522b7e?.[_0x1a7c0a(0x1c6)],'minimumVersionMessage':_0x522b7e?.[_0x1a7c0a(0x1bb)]};}export function printCliUpgradeWarning(_0x4226dc){const _0xa9d265=a283_0x131b;if(!_0x4226dc[_0xa9d265(0x1be)]&&!_0x4226dc[_0xa9d265(0x1aa)])return;const _0x5b2992=_0xa9d265(0x1a5),_0x1b02af=_0xa9d265(0x1a6),_0x3a4e12=_0xa9d265(0x1ad),_0x4db837='\x1b[1m',_0x309033=getCliUpgradeCommand(_0x4226dc);console[_0xa9d265(0x1cc)](),_0x4226dc[_0xa9d265(0x1aa)]?(console[_0xa9d265(0x1cc)](''+_0x5b2992+_0x4db837+_0xa9d265(0x1bf)+_0x3a4e12),console['log'](_0x5b2992+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x4226dc[_0xa9d265(0x1cb)]+_0x3a4e12),_0x4226dc[_0xa9d265(0x1bc)]&&console[_0xa9d265(0x1cc)](_0x5b2992+_0xa9d265(0x1a7)+_0x4226dc['minimumVersion']+_0x3a4e12),_0x4226dc[_0xa9d265(0x1b9)]&&_0x4226dc['stableVersion']!==_0x4226dc[_0xa9d265(0x1bc)]&&console['log'](_0x5b2992+_0xa9d265(0x1b0)+_0x4226dc[_0xa9d265(0x1b9)]+_0x3a4e12),_0x4226dc['minimumVersionMessage']&&console['log'](_0x5b2992+_0xa9d265(0x1c7)+_0x4226dc['minimumVersionMessage']+_0x3a4e12),console[_0xa9d265(0x1cc)](_0x5b2992+'\x20\x20\x20Upgrade\x20command:\x20'+_0x309033+_0x3a4e12)):(console['log'](''+_0x1b02af+_0x4db837+_0xa9d265(0x1ae)+_0x3a4e12),console[_0xa9d265(0x1cc)](_0x1b02af+_0xa9d265(0x1ca)+_0x4226dc[_0xa9d265(0x1cb)]+_0x3a4e12),console[_0xa9d265(0x1cc)](_0x1b02af+_0xa9d265(0x1a9)+_0x4226dc[_0xa9d265(0x1b9)]+_0x3a4e12),_0x4226dc['upgradeMessage']&&console['log'](_0x1b02af+'\x20\x20\x20'+_0x4226dc[_0xa9d265(0x1c6)]+_0x3a4e12),console[_0xa9d265(0x1cc)](_0x1b02af+_0xa9d265(0x1c2)+_0x309033+_0x3a4e12)),console[_0xa9d265(0x1cc)]();}export function assertCliVersionSupported(_0xb36328){const _0x17a283=a283_0x131b;if(!_0xb36328[_0x17a283(0x1aa)])return;const _0x445546=[_0xb36328['minimumVersionMessage'],_0x17a283(0x1ab)+_0xb36328['currentVersion'],_0xb36328['minimumVersion']?'Minimum\x20supported:\x20'+_0xb36328[_0x17a283(0x1bc)]:null,_0x17a283(0x1b5)+getCliUpgradeCommand(_0xb36328)][_0x17a283(0x1c0)](Boolean)[_0x17a283(0x1b4)]('\x0a');throw CliErrors['validation'](_0x17a283(0x1bd),_0x445546);}function a283_0x2c3d(){const _0x29290d=['log','6ohQCbG','\x1b[31m','\x1b[33m','\x20\x20\x20Minimum\x20supported:\x20','1.0.0','\x20\x20\x20Stable\x20version:\x20','belowMinimum','Current\x20version:\x20','coerce','\x1b[0m','↪\x20New\x20version\x20available','55990561JWSgMQ','\x20\x20\x20Recommended\x20stable:\x20','13897413wkCgAE','193448OKxKTy','3gpLKJd','join','Upgrade\x20command:\x20','10oSOwcY','1769060LQgvpA','../..','stableVersion','240256boaVyo','minimumVersionMessage','minimumVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','needsUpgrade','↪\x20Critical\x20CLI\x20upgrade\x20required','filter','427UjxAoi','\x20\x20\x20Upgrade\x20command:\x20','utf-8','parse','103320hQZedy','upgradeMessage','\x20\x20\x20','565572zcPbPl','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','currentVersion'];a283_0x2c3d=function(){return _0x29290d;};return a283_0x2c3d();}
1
+ (function(_0x1077c1,_0x2d5fcb){const _0x15c6f4=a276_0x3490,_0x4744dc=_0x1077c1();while(!![]){try{const _0x420311=-parseInt(_0x15c6f4(0xfc))/0x1+parseInt(_0x15c6f4(0xe8))/0x2+-parseInt(_0x15c6f4(0xf8))/0x3+-parseInt(_0x15c6f4(0xe7))/0x4*(-parseInt(_0x15c6f4(0xf2))/0x5)+parseInt(_0x15c6f4(0xf3))/0x6*(parseInt(_0x15c6f4(0xf4))/0x7)+-parseInt(_0x15c6f4(0xf6))/0x8+-parseInt(_0x15c6f4(0xfd))/0x9*(-parseInt(_0x15c6f4(0xe3))/0xa);if(_0x420311===_0x2d5fcb)break;else _0x4744dc['push'](_0x4744dc['shift']());}catch(_0x4213bf){_0x4744dc['push'](_0x4744dc['shift']());}}}(a276_0x5907,0x3a716));import{readFileSync}from'node:fs';function a276_0x5907(){const _0x18c359=['coerce','170iJHOta','1.0.0','minimumVersionMessage','\x20\x20\x20','44poePbb','800664iJHUMr','utf-8','currentVersion','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','stableVersion','upgradeMessage','log','\x20\x20\x20Current\x20CLI\x20version:\x20','filter','100690JOvyWy','678BabetD','6440CzdlLe','minimumVersion','576536IJXyRd','version','754941HavWIh','package.json','validation','latest','390259eFPmvy','120465VxyqpX','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','belowMinimum','\x1b[1m','\x1b[33m'];a276_0x5907=function(){return _0x18c359;};return a276_0x5907();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a276_0x42ceb1 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a276_0x3490(_0x341023,_0x278430){_0x341023=_0x341023-0xde;const _0x5907dd=a276_0x5907();let _0x34904a=_0x5907dd[_0x341023];return _0x34904a;}export function getCliUpgradeCommand(_0x2e594b){const _0x3ecf3b=a276_0x3490,_0x276a77=_0x2e594b[_0x3ecf3b(0xed)]||_0x3ecf3b(0xfb);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x276a77;}function getCurrentCliVersion(){const _0xcfbd35=a276_0x3490;try{const _0x460b90=fileURLToPath(import.meta.url),_0x1e8164=resolve(dirname(_0x460b90),'../..'),_0x24257b=resolve(_0x1e8164,_0xcfbd35(0xf9)),_0x2af56b=JSON['parse'](readFileSync(_0x24257b,_0xcfbd35(0xe9)));return _0x2af56b[_0xcfbd35(0xf7)]||_0xcfbd35(0xe4);}catch{return _0xcfbd35(0xe4);}}export async function checkCliVersion(){const _0x374864=a276_0x3490,_0x3dd3c7=getCurrentCliVersion(),_0x582929=await getCliVersionPolicy(),_0x2a5c8e=_0x582929?.['stableVersion']||null,_0x2bec78=_0x582929?.['minimumVersion']||null;let _0x3ed75f=![],_0x3e74d1=![];const _0x5271a8=a276_0x42ceb1[_0x374864(0xe2)](_0x3dd3c7);if(_0x5271a8&&_0x2a5c8e)try{const _0x59c2e8=a276_0x42ceb1[_0x374864(0xe2)](_0x2a5c8e);if(_0x59c2e8)_0x3ed75f=a276_0x42ceb1['lt'](_0x5271a8,_0x59c2e8);}catch{}if(_0x5271a8&&_0x2bec78)try{const _0x1999e8=a276_0x42ceb1[_0x374864(0xe2)](_0x2bec78);if(_0x1999e8)_0x3e74d1=a276_0x42ceb1['lt'](_0x5271a8,_0x1999e8);}catch{}return _0x3e74d1&&(_0x3ed75f=!![]),{'currentVersion':_0x3dd3c7,'stableVersion':_0x2a5c8e,'minimumVersion':_0x2bec78,'needsUpgrade':_0x3ed75f,'belowMinimum':_0x3e74d1,'isPreRelease':![],'upgradeMessage':_0x582929?.[_0x374864(0xee)],'minimumVersionMessage':_0x582929?.[_0x374864(0xe5)]};}export function printCliUpgradeWarning(_0x15c51d){const _0x43ca35=a276_0x3490;if(!_0x15c51d['needsUpgrade']&&!_0x15c51d['belowMinimum'])return;const _0x1e008d='\x1b[31m',_0x179e09=_0x43ca35(0xe1),_0x290e9f='\x1b[0m',_0x329014=_0x43ca35(0xe0),_0x44d91b=getCliUpgradeCommand(_0x15c51d);console['log'](),_0x15c51d[_0x43ca35(0xdf)]?(console[_0x43ca35(0xef)](''+_0x1e008d+_0x329014+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x290e9f),console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xf0)+_0x15c51d[_0x43ca35(0xea)]+_0x290e9f),_0x15c51d[_0x43ca35(0xf5)]&&console['log'](_0x1e008d+'\x20\x20\x20Minimum\x20supported:\x20'+_0x15c51d[_0x43ca35(0xf5)]+_0x290e9f),_0x15c51d['stableVersion']&&_0x15c51d[_0x43ca35(0xed)]!==_0x15c51d[_0x43ca35(0xf5)]&&console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xec)+_0x15c51d[_0x43ca35(0xed)]+_0x290e9f),_0x15c51d['minimumVersionMessage']&&console[_0x43ca35(0xef)](_0x1e008d+_0x43ca35(0xe6)+_0x15c51d[_0x43ca35(0xe5)]+_0x290e9f),console['log'](_0x1e008d+'\x20\x20\x20Upgrade\x20command:\x20'+_0x44d91b+_0x290e9f)):(console['log'](''+_0x179e09+_0x329014+'↪\x20New\x20version\x20available'+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x15c51d[_0x43ca35(0xea)]+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+_0x43ca35(0xeb)+_0x15c51d[_0x43ca35(0xed)]+_0x290e9f),_0x15c51d[_0x43ca35(0xee)]&&console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20'+_0x15c51d['upgradeMessage']+_0x290e9f),console[_0x43ca35(0xef)](_0x179e09+'\x20\x20\x20Upgrade\x20command:\x20'+_0x44d91b+_0x290e9f)),console['log']();}export function assertCliVersionSupported(_0x54d248){const _0x5cf589=a276_0x3490;if(!_0x54d248[_0x5cf589(0xdf)])return;const _0x5f2e94=[_0x54d248[_0x5cf589(0xe5)],'Current\x20version:\x20'+_0x54d248[_0x5cf589(0xea)],_0x54d248['minimumVersion']?'Minimum\x20supported:\x20'+_0x54d248[_0x5cf589(0xf5)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x54d248)][_0x5cf589(0xf1)](Boolean)['join']('\x0a');throw CliErrors[_0x5cf589(0xfa)](_0x5cf589(0xde),_0x5f2e94);}
@@ -1 +1 @@
1
- (function(_0x464c82,_0x3e3416){const _0x5b4665=a284_0x5e8e,_0x3e61c5=_0x464c82();while(!![]){try{const _0x4fe56b=parseInt(_0x5b4665(0x176))/0x1+-parseInt(_0x5b4665(0x175))/0x2+parseInt(_0x5b4665(0x177))/0x3+-parseInt(_0x5b4665(0x17b))/0x4+-parseInt(_0x5b4665(0x172))/0x5+parseInt(_0x5b4665(0x17f))/0x6+-parseInt(_0x5b4665(0x17d))/0x7*(parseInt(_0x5b4665(0x178))/0x8);if(_0x4fe56b===_0x3e3416)break;else _0x3e61c5['push'](_0x3e61c5['shift']());}catch(_0x3d6d62){_0x3e61c5['push'](_0x3e61c5['shift']());}}}(a284_0x4499,0xbf973));function a284_0x5e8e(_0x53d94d,_0x34bdd7){_0x53d94d=_0x53d94d-0x16e;const _0x4499c8=a284_0x4499();let _0x5e8ec4=_0x4499c8[_0x53d94d];return _0x5e8ec4;}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(_0x4ec2f5){const _0x57079b=a284_0x5e8e;return typeof _0x4ec2f5===_0x57079b(0x181)&&_0x4ec2f5[_0x57079b(0x184)]()['length']>0x0?_0x4ec2f5[_0x57079b(0x184)]():null;}function normalizeCliVersionPolicy(_0x1498d3){const _0xbc400f=a284_0x5e8e;if(!_0x1498d3||typeof _0x1498d3!==_0xbc400f(0x174))return null;const _0x5dfd95=_0x1498d3,_0x26189d=_0x5dfd95[_0xbc400f(0x16e)]&&typeof _0x5dfd95[_0xbc400f(0x16e)]===_0xbc400f(0x174)?_0x5dfd95[_0xbc400f(0x16e)]:_0x5dfd95,_0x457615=pickString(_0x26189d[_0xbc400f(0x173)])||pickString(_0x26189d[_0xbc400f(0x17c)])||pickString(_0x26189d[_0xbc400f(0x171)]),_0x43e1b7=pickString(_0x26189d[_0xbc400f(0x17e)])||pickString(_0x26189d[_0xbc400f(0x17a)]);if(!_0x457615&&!_0x43e1b7)return null;return{'stableVersion':_0x457615,'minimumVersion':_0x43e1b7,'upgradeMessage':pickString(_0x26189d[_0xbc400f(0x180)])||undefined,'minimumVersionMessage':pickString(_0x26189d['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x32a6e3=a284_0x5e8e,_0x549da8=new AbortController(),_0x18507a=setTimeout(()=>_0x549da8[_0x32a6e3(0x179)](),FETCH_TIMEOUT_MS);try{const _0x400b91=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x32a6e3(0x16f)},'signal':_0x549da8[_0x32a6e3(0x182)]});if(!_0x400b91['ok'])return null;const _0x3c9d8e=await _0x400b91[_0x32a6e3(0x183)]();return _0x3c9d8e&&typeof _0x3c9d8e==='object'?_0x3c9d8e:null;}catch{return null;}finally{clearTimeout(_0x18507a);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];function a284_0x4499(){const _0x42824b=['trim','cli','application/json','now','recommendedVersion','2094630zagdBM','stableVersion','object','267538fKaZBn','1561981eEoyAa','2423814vTNRno','16tNaUAU','abort','minVersion','2366992QOiVxJ','latestVersion','5118064fLzRhL','minimumVersion','6129498RUsVSO','upgradeMessage','string','signal','json'];a284_0x4499=function(){return _0x42824b;};return a284_0x4499();}export async function getRabetbaseCdnConfig(){const _0x36030a=a284_0x5e8e,_0xf62544=Date[_0x36030a(0x170)]();if(hasCachedConfig){const _0x1e8c32=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf62544-cacheTime<_0x1e8c32)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0xf62544,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5ab819,_0x54ef17){const _0x4624fa=a277_0x1be1,_0x4ed39b=_0x5ab819();while(!![]){try{const _0x2d3199=parseInt(_0x4624fa(0x105))/0x1+-parseInt(_0x4624fa(0x108))/0x2+-parseInt(_0x4624fa(0x109))/0x3*(parseInt(_0x4624fa(0x104))/0x4)+parseInt(_0x4624fa(0x101))/0x5+parseInt(_0x4624fa(0x112))/0x6+parseInt(_0x4624fa(0x10d))/0x7*(-parseInt(_0x4624fa(0x115))/0x8)+parseInt(_0x4624fa(0x102))/0x9;if(_0x2d3199===_0x54ef17)break;else _0x4ed39b['push'](_0x4ed39b['shift']());}catch(_0x43b7a1){_0x4ed39b['push'](_0x4ed39b['shift']());}}}(a277_0x35b7,0x86454));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x9e8b92){const _0x4c82e2=a277_0x1be1;return typeof _0x9e8b92===_0x4c82e2(0x113)&&_0x9e8b92[_0x4c82e2(0x10c)]()[_0x4c82e2(0x111)]>0x0?_0x9e8b92[_0x4c82e2(0x10c)]():null;}function normalizeCliVersionPolicy(_0x1f99d8){const _0x1bd9c6=a277_0x1be1;if(!_0x1f99d8||typeof _0x1f99d8!==_0x1bd9c6(0x117))return null;const _0x2c63a4=_0x1f99d8,_0x418996=_0x2c63a4['cli']&&typeof _0x2c63a4[_0x1bd9c6(0x110)]===_0x1bd9c6(0x117)?_0x2c63a4[_0x1bd9c6(0x110)]:_0x2c63a4,_0x364e49=pickString(_0x418996[_0x1bd9c6(0x116)])||pickString(_0x418996[_0x1bd9c6(0x118)])||pickString(_0x418996[_0x1bd9c6(0x107)]),_0x4dfc3a=pickString(_0x418996[_0x1bd9c6(0x10a)])||pickString(_0x418996['minVersion']);if(!_0x364e49&&!_0x4dfc3a)return null;return{'stableVersion':_0x364e49,'minimumVersion':_0x4dfc3a,'upgradeMessage':pickString(_0x418996[_0x1bd9c6(0x10b)])||undefined,'minimumVersionMessage':pickString(_0x418996[_0x1bd9c6(0x106)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x182816=a277_0x1be1,_0x4f0134=new AbortController(),_0x277ce2=setTimeout(()=>_0x4f0134['abort'](),FETCH_TIMEOUT_MS);try{const _0x59b314=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x182816(0x10f)},'signal':_0x4f0134[_0x182816(0x10e)]});if(!_0x59b314['ok'])return null;const _0x331b12=await _0x59b314[_0x182816(0x114)]();return _0x331b12&&typeof _0x331b12===_0x182816(0x117)?_0x331b12:null;}catch{return null;}finally{clearTimeout(_0x277ce2);}}function a277_0x1be1(_0xbcab80,_0x17267a){_0xbcab80=_0xbcab80-0x101;const _0x35b753=a277_0x35b7();let _0x1be1a5=_0x35b753[_0xbcab80];return _0x1be1a5;}function a277_0x35b7(){const _0x202e2a=['recommendedVersion','1855592hgCrup','3080265mTxcxi','minimumVersion','upgradeMessage','trim','4872eHFjHS','signal','application/json','cli','length','1330872nvmPVU','string','json','8792ATMPsL','stableVersion','object','latestVersion','3914275rLaiSM','18405522hEHGlL','now','4RvIugI','219702xLdyEo','minimumVersionMessage'];a277_0x35b7=function(){return _0x202e2a;};return a277_0x35b7();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0xb8ab7f=a277_0x1be1,_0x349193=Date[_0xb8ab7f(0x103)]();if(hasCachedConfig){const _0x47af0f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x349193-cacheTime<_0x47af0f)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x349193,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a285_0x3fb209=a285_0x3fd5;(function(_0x34f4d4,_0x209e89){const _0x763da=a285_0x3fd5,_0x9361f3=_0x34f4d4();while(!![]){try{const _0x99d07b=parseInt(_0x763da(0x82))/0x1*(-parseInt(_0x763da(0x87))/0x2)+parseInt(_0x763da(0x89))/0x3*(-parseInt(_0x763da(0x83))/0x4)+parseInt(_0x763da(0x8a))/0x5+-parseInt(_0x763da(0x8b))/0x6+parseInt(_0x763da(0x85))/0x7+parseInt(_0x763da(0x88))/0x8+parseInt(_0x763da(0x86))/0x9;if(_0x99d07b===_0x209e89)break;else _0x9361f3['push'](_0x9361f3['shift']());}catch(_0x37957e){_0x9361f3['push'](_0x9361f3['shift']());}}}(a285_0x5330,0x74291));function a285_0x3fd5(_0x449202,_0x20573a){_0x449202=_0x449202-0x82;const _0x533054=a285_0x5330();let _0x3fd523=_0x533054[_0x449202];return _0x3fd523;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a285_0x550511,getMultiAppConfigs as a285_0x26b382,getTemplateBaseUrl as a285_0x1ea3b7}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a285_0x5330(){const _0x32556f=['1891869hufUSO','2745099JPkPNw','204398qdCeyk','632440TIdTQn','26184xXpeKk','1354890RZZCmR','198666zhMFKd','project','env','1lRfYgd','144KyuiHq','string'];a285_0x5330=function(){return _0x32556f;};return a285_0x5330();}export function readConfig(_0x3307b7){const _0x12ea75=a285_0x3fd5,_0x4a384e=readRawConfig(_0x3307b7);return _0x4a384e[_0x12ea75(0x8d)]&&typeof _0x4a384e[_0x12ea75(0x8d)]===_0x12ea75(0x84)&&initEnv(_0x4a384e[_0x12ea75(0x8d)]),_0x4a384e;}export function getConfigAppCode(){return a285_0x550511();}export function getMultiAppConfigs(_0x482fe4=a285_0x3fb209(0x8c)){return a285_0x26b382(_0x482fe4);}export function getTemplateBaseUrl(){return a285_0x1ea3b7();}
1
+ (function(_0x45ddce,_0x542005){const _0x2ce848=a278_0x17a3,_0x4701f4=_0x45ddce();while(!![]){try{const _0x18294a=-parseInt(_0x2ce848(0x1e8))/0x1+-parseInt(_0x2ce848(0x1ed))/0x2*(parseInt(_0x2ce848(0x1e6))/0x3)+-parseInt(_0x2ce848(0x1f1))/0x4+parseInt(_0x2ce848(0x1e9))/0x5*(-parseInt(_0x2ce848(0x1f0))/0x6)+-parseInt(_0x2ce848(0x1ef))/0x7*(-parseInt(_0x2ce848(0x1e7))/0x8)+-parseInt(_0x2ce848(0x1eb))/0x9*(parseInt(_0x2ce848(0x1ea))/0xa)+parseInt(_0x2ce848(0x1e5))/0xb;if(_0x18294a===_0x542005)break;else _0x4701f4['push'](_0x4701f4['shift']());}catch(_0x143ade){_0x4701f4['push'](_0x4701f4['shift']());}}}(a278_0x267f,0xb34a5));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a278_0xcc354e,getMultiAppConfigs as a278_0x1be5a6,getTemplateBaseUrl as a278_0x584d47}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a278_0x17a3(_0x5c05bb,_0x50ebc0){_0x5c05bb=_0x5c05bb-0x1e5;const _0x267fcf=a278_0x267f();let _0x17a34e=_0x267fcf[_0x5c05bb];return _0x17a34e;}export{isInProject}from'../context.js';export function readConfig(_0x2682df){const _0x1129a0=a278_0x17a3,_0x4352fb=readRawConfig(_0x2682df);return _0x4352fb[_0x1129a0(0x1ee)]&&typeof _0x4352fb[_0x1129a0(0x1ee)]===_0x1129a0(0x1ec)&&initEnv(_0x4352fb[_0x1129a0(0x1ee)]),_0x4352fb;}function a278_0x267f(){const _0x154189=['173617uKXmBk','35EZmpiL','10gAGNlz','12867354GbzYwN','string','6yaDQFe','env','30758DffZQj','867978Uwejsy','1395716sskfNK','42193272YOttug','628614vtAMZh','896pgPHPF'];a278_0x267f=function(){return _0x154189;};return a278_0x267f();}export function getConfigAppCode(){return a278_0xcc354e();}export function getMultiAppConfigs(_0x48cc78='project'){return a278_0x1be5a6(_0x48cc78);}export function getTemplateBaseUrl(){return a278_0x584d47();}
@@ -1 +1 @@
1
- function a286_0x2a1d(_0x56b4df,_0x3cf072){_0x56b4df=_0x56b4df-0x6e;const _0x14eb2e=a286_0x14eb();let _0x2a1d92=_0x14eb2e[_0x56b4df];return _0x2a1d92;}(function(_0x3f802f,_0x98b4a4){const _0x2c9cd0=a286_0x2a1d,_0x2d3a2c=_0x3f802f();while(!![]){try{const _0x5a3614=parseInt(_0x2c9cd0(0x70))/0x1+-parseInt(_0x2c9cd0(0x74))/0x2*(-parseInt(_0x2c9cd0(0x6e))/0x3)+parseInt(_0x2c9cd0(0x7b))/0x4*(parseInt(_0x2c9cd0(0x77))/0x5)+-parseInt(_0x2c9cd0(0x7c))/0x6+-parseInt(_0x2c9cd0(0x73))/0x7+-parseInt(_0x2c9cd0(0x78))/0x8+-parseInt(_0x2c9cd0(0x79))/0x9*(-parseInt(_0x2c9cd0(0x72))/0xa);if(_0x5a3614===_0x98b4a4)break;else _0x2d3a2c['push'](_0x2d3a2c['shift']());}catch(_0xb3208c){_0x2d3a2c['push'](_0x2d3a2c['shift']());}}}(a286_0x14eb,0x75450));function toFiniteNumber(_0x2be73a){const _0x3d1b1f=a286_0x2a1d;if(typeof _0x2be73a===_0x3d1b1f(0x71)&&Number['isFinite'](_0x2be73a))return _0x2be73a;if(typeof _0x2be73a===_0x3d1b1f(0x76)){const _0x3e143b=_0x2be73a[_0x3d1b1f(0x7a)]();if(!_0x3e143b)return undefined;const _0x59c79e=Number(_0x3e143b);if(Number[_0x3d1b1f(0x75)](_0x59c79e))return _0x59c79e;}return undefined;}export function normalizeEntityWithIdResponse(_0x9021b4){const _0x5b2ff6=a286_0x2a1d,_0x4f3cff=toFiniteNumber(_0x9021b4);if(_0x4f3cff!==undefined)return{'id':_0x4f3cff,'entity':{'id':_0x4f3cff}};if(!_0x9021b4||typeof _0x9021b4!==_0x5b2ff6(0x6f))return{'id':undefined,'entity':{}};const _0x323625={..._0x9021b4},_0x22a981=toFiniteNumber(_0x323625['id']);return _0x22a981!==undefined&&(_0x323625['id']=_0x22a981),{'id':_0x22a981,'entity':_0x323625};}function a286_0x14eb(){const _0x21e26b=['9225LwOpfA','4782600MfKDws','9APKYFC','trim','524hybWjW','5308140HAzYdh','159xuDook','object','399934SBEETz','number','17706070CEcqzC','5994233hFIkzP','15356UeAfHB','isFinite','string'];a286_0x14eb=function(){return _0x21e26b;};return a286_0x14eb();}
1
+ (function(_0x16adf7,_0x1dccde){const _0x2279eb=a279_0x9fcc,_0x4c9f47=_0x16adf7();while(!![]){try{const _0xb4690b=parseInt(_0x2279eb(0xa3))/0x1*(-parseInt(_0x2279eb(0x9f))/0x2)+-parseInt(_0x2279eb(0xa5))/0x3*(-parseInt(_0x2279eb(0xa0))/0x4)+parseInt(_0x2279eb(0x9e))/0x5*(parseInt(_0x2279eb(0x9c))/0x6)+parseInt(_0x2279eb(0xa1))/0x7+-parseInt(_0x2279eb(0xa8))/0x8+parseInt(_0x2279eb(0x9a))/0x9*(-parseInt(_0x2279eb(0xa6))/0xa)+-parseInt(_0x2279eb(0xa2))/0xb;if(_0xb4690b===_0x1dccde)break;else _0x4c9f47['push'](_0x4c9f47['shift']());}catch(_0x305089){_0x4c9f47['push'](_0x4c9f47['shift']());}}}(a279_0xb96e,0xce28d));function toFiniteNumber(_0x3cd6b7){const _0x26ce88=a279_0x9fcc;if(typeof _0x3cd6b7===_0x26ce88(0xa4)&&Number[_0x26ce88(0xa7)](_0x3cd6b7))return _0x3cd6b7;if(typeof _0x3cd6b7===_0x26ce88(0x9b)){const _0x2b14ce=_0x3cd6b7[_0x26ce88(0x9d)]();if(!_0x2b14ce)return undefined;const _0x21873f=Number(_0x2b14ce);if(Number[_0x26ce88(0xa7)](_0x21873f))return _0x21873f;}return undefined;}export function normalizeEntityWithIdResponse(_0x3a8e97){const _0x29ffa6=a279_0x9fcc,_0x30935c=toFiniteNumber(_0x3a8e97);if(_0x30935c!==undefined)return{'id':_0x30935c,'entity':{'id':_0x30935c}};if(!_0x3a8e97||typeof _0x3a8e97!==_0x29ffa6(0x99))return{'id':undefined,'entity':{}};const _0x2da717={..._0x3a8e97},_0x3766e5=toFiniteNumber(_0x2da717['id']);return _0x3766e5!==undefined&&(_0x2da717['id']=_0x3766e5),{'id':_0x3766e5,'entity':_0x2da717};}function a279_0x9fcc(_0x496dc5,_0x41845e){_0x496dc5=_0x496dc5-0x99;const _0xb96e0=a279_0xb96e();let _0x9fcc80=_0xb96e0[_0x496dc5];return _0x9fcc80;}function a279_0xb96e(){const _0x577f1a=['3535384mcBtyA','object','175239RFDhas','string','300474DXwxjg','trim','70hFvZQM','25484FeHEZq','2581772ETowSP','10250359YgicDv','5176204GOBzKy','86kSUYQT','number','6XrllWt','310tLtZCS','isFinite'];a279_0xb96e=function(){return _0x577f1a;};return a279_0xb96e();}
@@ -1 +1 @@
1
- (function(_0x4b2c6f,_0x81fa42){const _0xc3592d=a287_0x401c,_0x1730d9=_0x4b2c6f();while(!![]){try{const _0x5a24b8=-parseInt(_0xc3592d(0x17b))/0x1*(parseInt(_0xc3592d(0x173))/0x2)+-parseInt(_0xc3592d(0x16f))/0x3*(-parseInt(_0xc3592d(0x179))/0x4)+-parseInt(_0xc3592d(0x176))/0x5*(-parseInt(_0xc3592d(0x170))/0x6)+parseInt(_0xc3592d(0x171))/0x7*(-parseInt(_0xc3592d(0x17a))/0x8)+parseInt(_0xc3592d(0x177))/0x9*(-parseInt(_0xc3592d(0x174))/0xa)+-parseInt(_0xc3592d(0x172))/0xb+parseInt(_0xc3592d(0x175))/0xc;if(_0x5a24b8===_0x81fa42)break;else _0x1730d9['push'](_0x1730d9['shift']());}catch(_0x5746f3){_0x1730d9['push'](_0x1730d9['shift']());}}}(a287_0x4a6d,0xc46e3));function a287_0x401c(_0x20d601,_0x2df3a6){_0x20d601=_0x20d601-0x16f;const _0x4a6d5c=a287_0x4a6d();let _0x401ca9=_0x4a6d5c[_0x20d601];return _0x401ca9;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x596741,_0x3e928d){const _0x2ae65f=a287_0x401c,_0x42518e=statSync(_0x596741);if(_0x42518e[_0x2ae65f(0x178)]()){!existsSync(_0x3e928d)&&mkdirSync(_0x3e928d,{'recursive':!![]});const _0x4cde69=readdirSync(_0x596741);for(const _0x2f6109 of _0x4cde69){await copyDir(join(_0x596741,_0x2f6109),join(_0x3e928d,_0x2f6109));}}else copyFileSync(_0x596741,_0x3e928d);}function a287_0x4a6d(){const _0x203356=['496276pNwkee','45DjQSVH','588LiKQMd','2093hcSMap','2667566VDspvY','2eKMWLz','5559730LyWqAI','16545960RlQTNi','43810euXPff','9NPBBwg','isDirectory','237676jjEgNZ','27544ELhucE'];a287_0x4a6d=function(){return _0x203356;};return a287_0x4a6d();}export function ensureDir(_0x3cc676){!existsSync(_0x3cc676)&&mkdirSync(_0x3cc676,{'recursive':!![]});}export function pathExists(_0x297b51){return existsSync(_0x297b51);}
1
+ (function(_0x27d6ee,_0x42d70a){const _0x5221f3=a280_0x1ec4,_0x5c8482=_0x27d6ee();while(!![]){try{const _0x2288f4=parseInt(_0x5221f3(0x1b7))/0x1*(parseInt(_0x5221f3(0x1c1))/0x2)+-parseInt(_0x5221f3(0x1bc))/0x3*(-parseInt(_0x5221f3(0x1b8))/0x4)+-parseInt(_0x5221f3(0x1bf))/0x5*(parseInt(_0x5221f3(0x1be))/0x6)+parseInt(_0x5221f3(0x1ba))/0x7+parseInt(_0x5221f3(0x1c2))/0x8*(parseInt(_0x5221f3(0x1bb))/0x9)+parseInt(_0x5221f3(0x1b9))/0xa*(parseInt(_0x5221f3(0x1b6))/0xb)+-parseInt(_0x5221f3(0x1c0))/0xc*(parseInt(_0x5221f3(0x1bd))/0xd);if(_0x2288f4===_0x42d70a)break;else _0x5c8482['push'](_0x5c8482['shift']());}catch(_0x448a58){_0x5c8482['push'](_0x5c8482['shift']());}}}(a280_0x3143,0x9fa83));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a280_0x1ec4(_0x28b9c8,_0x3c8ee5){_0x28b9c8=_0x28b9c8-0x1b6;const _0x3143a4=a280_0x3143();let _0x1ec4a0=_0x3143a4[_0x28b9c8];return _0x1ec4a0;}export async function copyDir(_0x575bee,_0x193ff0){const _0x14fb43=statSync(_0x575bee);if(_0x14fb43['isDirectory']()){!existsSync(_0x193ff0)&&mkdirSync(_0x193ff0,{'recursive':!![]});const _0x17d1b7=readdirSync(_0x575bee);for(const _0x269fa6 of _0x17d1b7){await copyDir(join(_0x575bee,_0x269fa6),join(_0x193ff0,_0x269fa6));}}else copyFileSync(_0x575bee,_0x193ff0);}function a280_0x3143(){const _0x21807f=['12cORnbe','1114205uMJtAl','3118044mrltzD','1903518pcpAqw','145352JXjLnF','143uMBysa','1jvTvHP','636kgfWmZ','401510ZVoSSc','5500110kCMbIF','423LyUTfr','15933IvAdFN','143jgOKHd'];a280_0x3143=function(){return _0x21807f;};return a280_0x3143();}export function ensureDir(_0x2f56a9){!existsSync(_0x2f56a9)&&mkdirSync(_0x2f56a9,{'recursive':!![]});}export function pathExists(_0x2d24f1){return existsSync(_0x2d24f1);}
@@ -1 +1 @@
1
- function a288_0x140a(_0x2e1864,_0x515d57){_0x2e1864=_0x2e1864-0x12a;const _0x4aa53f=a288_0x4aa5();let _0x140a65=_0x4aa53f[_0x2e1864];return _0x140a65;}const a288_0x205810=a288_0x140a;(function(_0x1998be,_0x5da684){const _0x181d6d=a288_0x140a,_0x3ae84c=_0x1998be();while(!![]){try{const _0xbc7638=-parseInt(_0x181d6d(0x149))/0x1+parseInt(_0x181d6d(0x144))/0x2+-parseInt(_0x181d6d(0x148))/0x3+parseInt(_0x181d6d(0x134))/0x4*(parseInt(_0x181d6d(0x141))/0x5)+-parseInt(_0x181d6d(0x12e))/0x6*(-parseInt(_0x181d6d(0x13c))/0x7)+parseInt(_0x181d6d(0x13e))/0x8+-parseInt(_0x181d6d(0x146))/0x9;if(_0xbc7638===_0x5da684)break;else _0x3ae84c['push'](_0x3ae84c['shift']());}catch(_0x3493a5){_0x3ae84c['push'](_0x3ae84c['shift']());}}}(a288_0x4aa5,0x232d1));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 _0x1ec367=a288_0x140a,_0x3fc311=getTemplateBaseUrl();return _0x3fc311+_0x1ec367(0x136);}const CACHE_DIR=join(homedir(),a288_0x205810(0x12b),a288_0x205810(0x135));export async function fetchGuidesFromCDN(){const _0x12a450=a288_0x205810,_0x10bd01=getGuidesCdnUrl(),_0x28a63f=await fetch(_0x10bd01,{'headers':{'Accept':_0x12a450(0x13f)}});if(!_0x28a63f['ok'])throw new Error(_0x12a450(0x13b)+_0x28a63f[_0x12a450(0x132)]+'\x20'+_0x28a63f[_0x12a450(0x140)]);const _0x2a9ce7=await _0x28a63f['json']();if(!_0x2a9ce7[_0x12a450(0x133)]||typeof _0x2a9ce7['guides']!==_0x12a450(0x131))throw new Error('CDN\x20返回数据格式错误');return _0x2a9ce7;}export function writeGuidesToProject(_0x486722,_0x4373c3,_0x5ca320=a288_0x205810(0x142),_0x3ac255){const _0x10d4b8=a288_0x205810,_0x4f86c2=join(_0x4373c3,_0x5ca320);mkdirSync(_0x4f86c2,{'recursive':!![]});for(const [_0x39511c,_0x4ced3f]of Object[_0x10d4b8(0x14a)](_0x486722[_0x10d4b8(0x133)])){let _0x466834=_0x4ced3f[_0x10d4b8(0x14b)];_0x4ced3f[_0x10d4b8(0x143)]&&(_0x466834=appendUpdateTime(_0x466834,_0x4ced3f['lastUpdated'])),writeFileSync(join(_0x4f86c2,_0x39511c+'.md'),_0x466834,_0x10d4b8(0x137));}}export function appendUpdateTime(_0x4a9ef8,_0x43eca2){const _0x30f659=a288_0x205810;return _0x4a9ef8=_0x4a9ef8[_0x30f659(0x12c)](/\n*>更新时间:.*$/m,''),_0x4a9ef8[_0x30f659(0x138)]()+(_0x30f659(0x130)+_0x43eca2);}export function getSkillTemplate(_0x5538c4){return _0x5538c4['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x79cab0,_0x418018,_0x4da8b1){const _0x7be93e=a288_0x205810,_0x5c3185=[];for(const [,_0x51300e]of Object[_0x7be93e(0x14a)](_0x418018['guides'])){_0x51300e[_0x7be93e(0x139)]&&_0x5c3185[_0x7be93e(0x13d)](_0x51300e[_0x7be93e(0x139)][_0x7be93e(0x138)]());}if(_0x5c3185[_0x7be93e(0x12f)]===0x0)return _0x79cab0;return _0x79cab0[_0x7be93e(0x138)]()+'\x0a\x0a'+_0x5c3185[_0x7be93e(0x145)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2e03a6,_0x1f8e47,_0x15d8b9){const _0x29425e=a288_0x205810,_0x3b6a6a=getSkillTemplate(_0x2e03a6);if(!_0x3b6a6a)throw new Error(_0x29425e(0x147));const _0x10fa6d=dirname(_0x1f8e47);mkdirSync(_0x10fa6d,{'recursive':!![]});let _0x485af4=_0x3b6a6a['replace'](/\{\{IDE_NAME\}\}/g,_0x15d8b9);_0x485af4=appendExtendContents(_0x485af4,_0x2e03a6),_0x2e03a6[_0x29425e(0x12d)][_0x29425e(0x143)]&&(_0x485af4=appendUpdateTime(_0x485af4,_0x2e03a6['skillTemplate']['lastUpdated'])),writeFileSync(_0x1f8e47,_0x485af4,_0x29425e(0x137));}export async function installGuides(_0x16056b){const _0x5d583f=a288_0x205810,_0x2b74b4=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2b74b4,_0x16056b),Object[_0x5d583f(0x12a)](_0x2b74b4[_0x5d583f(0x133)])['length'];}export function getGuidesSummary(_0x58df3d){const _0x461c40=a288_0x205810;return Object[_0x461c40(0x14a)](_0x58df3d[_0x461c40(0x133)])['map'](([_0xeedb64,_0x37b950])=>({'key':_0xeedb64,'title':_0x37b950['title'],'path':_0x37b950[_0x461c40(0x13a)]}));}function a288_0x4aa5(){const _0x57b072=['2751453BdNlpo','CDN\x20数据中缺少\x20skillTemplate','405504urctwJ','122018jNwDcq','entries','content','keys','.lovrabet','replace','skillTemplate','744NsIOjL','length','\x0a\x0a>更新时间:','object','status','guides','296696YKcKfp','cache','/skills/guides.json','utf-8','trimEnd','extendContent','path','CDN\x20请求失败:\x20','14161DIEbpv','push','2249936fCganm','application/json','statusText','10CjKfws','.lovrabet/skill/guides','lastUpdated','53084fDfiVI','join'];a288_0x4aa5=function(){return _0x57b072;};return a288_0x4aa5();}
1
+ const a281_0x1c3822=a281_0x1d28;(function(_0x2a9cf3,_0x131adb){const _0x4d60ad=a281_0x1d28,_0x1cb669=_0x2a9cf3();while(!![]){try{const _0x4ef703=parseInt(_0x4d60ad(0x155))/0x1+parseInt(_0x4d60ad(0x156))/0x2*(-parseInt(_0x4d60ad(0x15b))/0x3)+parseInt(_0x4d60ad(0x150))/0x4*(-parseInt(_0x4d60ad(0x13e))/0x5)+-parseInt(_0x4d60ad(0x145))/0x6+-parseInt(_0x4d60ad(0x154))/0x7*(parseInt(_0x4d60ad(0x147))/0x8)+-parseInt(_0x4d60ad(0x157))/0x9*(-parseInt(_0x4d60ad(0x143))/0xa)+parseInt(_0x4d60ad(0x15a))/0xb;if(_0x4ef703===_0x131adb)break;else _0x1cb669['push'](_0x1cb669['shift']());}catch(_0x5414e1){_0x1cb669['push'](_0x1cb669['shift']());}}}(a281_0x5d58,0x3cacc));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0xa51b11=a281_0x1d28,_0x2291bc=getTemplateBaseUrl();return _0x2291bc+_0xa51b11(0x148);}const CACHE_DIR=join(homedir(),'.lovrabet',a281_0x1c3822(0x15e));function a281_0x5d58(){const _0x17ee45=['application/json','json','lastUpdated','length','guides','176GerXNK','entries','map','push','8582VFZsNw','482829rjJlxi','20BkBfPA','2740005AMIMaf','utf-8','trimEnd','11372933PHqBBG','81897XsCihp','extendContent','.lovrabet/skill/guides','cache','44140gsOMnA','\x0a\x0a>更新时间:','content','path','.md','10GWeOrm','CDN\x20请求失败:\x20','2561766RrapHR','CDN\x20数据中缺少\x20skillTemplate','3160zKAVbL','/skills/guides.json','skillTemplate','status'];a281_0x5d58=function(){return _0x17ee45;};return a281_0x5d58();}export async function fetchGuidesFromCDN(){const _0x1b380c=a281_0x1c3822,_0x49d41c=getGuidesCdnUrl(),_0x5b5bb6=await fetch(_0x49d41c,{'headers':{'Accept':_0x1b380c(0x14b)}});if(!_0x5b5bb6['ok'])throw new Error(_0x1b380c(0x144)+_0x5b5bb6[_0x1b380c(0x14a)]+'\x20'+_0x5b5bb6['statusText']);const _0x3efdf9=await _0x5b5bb6[_0x1b380c(0x14c)]();if(!_0x3efdf9[_0x1b380c(0x14f)]||typeof _0x3efdf9['guides']!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x3efdf9;}function a281_0x1d28(_0x5e4437,_0x3d35d2){_0x5e4437=_0x5e4437-0x13e;const _0x5d5815=a281_0x5d58();let _0x1d282d=_0x5d5815[_0x5e4437];return _0x1d282d;}export function writeGuidesToProject(_0xac10d3,_0x35a8eb,_0x5a6123=a281_0x1c3822(0x15d),_0x3e2e37){const _0x3fe838=a281_0x1c3822,_0x48a789=join(_0x35a8eb,_0x5a6123);mkdirSync(_0x48a789,{'recursive':!![]});for(const [_0x5782d4,_0x24d88e]of Object[_0x3fe838(0x151)](_0xac10d3['guides'])){let _0x19d497=_0x24d88e[_0x3fe838(0x140)];_0x24d88e[_0x3fe838(0x14d)]&&(_0x19d497=appendUpdateTime(_0x19d497,_0x24d88e['lastUpdated'])),writeFileSync(join(_0x48a789,_0x5782d4+_0x3fe838(0x142)),_0x19d497,_0x3fe838(0x158));}}export function appendUpdateTime(_0x446f22,_0x5c3524){const _0x525742=a281_0x1c3822;return _0x446f22=_0x446f22['replace'](/\n*>更新时间:.*$/m,''),_0x446f22[_0x525742(0x159)]()+(_0x525742(0x13f)+_0x5c3524);}export function getSkillTemplate(_0x382286){const _0x4eedc2=a281_0x1c3822;return _0x382286[_0x4eedc2(0x149)]?.[_0x4eedc2(0x140)]||'';}export function appendExtendContents(_0x3da246,_0x2f19da,_0x3ec2af){const _0x92aab2=a281_0x1c3822,_0x5808f0=[];for(const [,_0x9ca615]of Object[_0x92aab2(0x151)](_0x2f19da[_0x92aab2(0x14f)])){_0x9ca615[_0x92aab2(0x15c)]&&_0x5808f0[_0x92aab2(0x153)](_0x9ca615[_0x92aab2(0x15c)][_0x92aab2(0x159)]());}if(_0x5808f0[_0x92aab2(0x14e)]===0x0)return _0x3da246;return _0x3da246[_0x92aab2(0x159)]()+'\x0a\x0a'+_0x5808f0['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x10c787,_0x444e88,_0x3b0165){const _0xbf395a=a281_0x1c3822,_0x2a35c6=getSkillTemplate(_0x10c787);if(!_0x2a35c6)throw new Error(_0xbf395a(0x146));const _0x3184f2=dirname(_0x444e88);mkdirSync(_0x3184f2,{'recursive':!![]});let _0x4fda29=_0x2a35c6['replace'](/\{\{IDE_NAME\}\}/g,_0x3b0165);_0x4fda29=appendExtendContents(_0x4fda29,_0x10c787),_0x10c787['skillTemplate']['lastUpdated']&&(_0x4fda29=appendUpdateTime(_0x4fda29,_0x10c787[_0xbf395a(0x149)]['lastUpdated'])),writeFileSync(_0x444e88,_0x4fda29,_0xbf395a(0x158));}export async function installGuides(_0x3c3b76){const _0x1ec0cd=a281_0x1c3822,_0x41e8b8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x41e8b8,_0x3c3b76),Object['keys'](_0x41e8b8[_0x1ec0cd(0x14f)])[_0x1ec0cd(0x14e)];}export function getGuidesSummary(_0x1245cb){const _0x2673ee=a281_0x1c3822;return Object[_0x2673ee(0x151)](_0x1245cb['guides'])[_0x2673ee(0x152)](([_0x43953a,_0x531204])=>({'key':_0x43953a,'title':_0x531204['title'],'path':_0x531204[_0x2673ee(0x141)]}));}
@@ -1 +1 @@
1
- (function(_0x1470fd,_0x2ba577){const _0x3537db=a289_0x1b7c,_0x8530b6=_0x1470fd();while(!![]){try{const _0x3fa9ac=-parseInt(_0x3537db(0x1f5))/0x1+-parseInt(_0x3537db(0x1f2))/0x2+parseInt(_0x3537db(0x1fe))/0x3*(-parseInt(_0x3537db(0x1ff))/0x4)+-parseInt(_0x3537db(0x1eb))/0x5+parseInt(_0x3537db(0x202))/0x6+parseInt(_0x3537db(0x1ed))/0x7+-parseInt(_0x3537db(0x201))/0x8*(-parseInt(_0x3537db(0x1ef))/0x9);if(_0x3fa9ac===_0x2ba577)break;else _0x8530b6['push'](_0x8530b6['shift']());}catch(_0x1c9f2d){_0x8530b6['push'](_0x8530b6['shift']());}}}(a289_0x4e48,0xd8147));export async function httpRequest(_0x23de5d,_0x3f3ef4={}){const _0x51eb39=a289_0x1b7c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3f3ef4;let _0x3a414d=null;for(let _0x195950=0x0;_0x195950<=retries;_0x195950++){try{const _0x31317d=new AbortController(),_0x27fba5=setTimeout(()=>_0x31317d[_0x51eb39(0x200)](),timeout),_0x3c6618=await fetch(_0x23de5d,{'headers':headers,'signal':_0x31317d[_0x51eb39(0x1f1)]});clearTimeout(_0x27fba5);let _0x2a12f2;const _0xb9df94=_0x3c6618[_0x51eb39(0x1e9)]['get'](_0x51eb39(0x1fb));return _0xb9df94?.[_0x51eb39(0x1ee)](_0x51eb39(0x1fa))?_0x2a12f2=await _0x3c6618[_0x51eb39(0x1ea)]():_0x2a12f2=await _0x3c6618[_0x51eb39(0x1f0)](),{'ok':_0x3c6618['ok'],'status':_0x3c6618[_0x51eb39(0x1f7)],'statusText':_0x3c6618['statusText'],'data':_0x2a12f2,'headers':_0x3c6618[_0x51eb39(0x1e9)],'url':_0x3c6618[_0x51eb39(0x1f3)],'text':()=>_0x3c6618[_0x51eb39(0x1f0)]()};}catch(_0x5a14cf){_0x3a414d=_0x5a14cf instanceof Error?_0x5a14cf:new Error(String(_0x5a14cf));if(_0x195950===retries)break;if(shouldRetry(_0x5a14cf)){console[_0x51eb39(0x1f4)](_0x51eb39(0x1f6)+retryDelay+_0x51eb39(0x1e7)+(_0x195950+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x3a414d||new Error(_0x51eb39(0x1fc));}function a289_0x4e48(){const _0xd0306a=['signal','2158186OgmFSE','url','log','1298087EeKfdx','*\x20请求失败,','status','name','TypeError','application/json','content-type','Request\x20failed','ENOTFOUND','71421PNHvPi','164OAIQcu','abort','341288QDbZDl','2449704HRyYCp','ms\x20后进行第\x20','fetch','headers','json','7607740UNUraI','message','2223172Wbilzx','includes','1062fCLbXu','text'];a289_0x4e48=function(){return _0xd0306a;};return a289_0x4e48();}function shouldRetry(_0x38f3fc){const _0xeebd1c=a289_0x1b7c;if(_0x38f3fc instanceof Error){if(_0x38f3fc[_0xeebd1c(0x1f8)]==='AbortError')return![];if(_0x38f3fc['name']===_0xeebd1c(0x1f9)&&_0x38f3fc[_0xeebd1c(0x1ec)][_0xeebd1c(0x1ee)](_0xeebd1c(0x1e8)))return!![];if(_0x38f3fc['message']['includes']('ECONNRESET'))return!![];if(_0x38f3fc[_0xeebd1c(0x1ec)][_0xeebd1c(0x1ee)](_0xeebd1c(0x1fd)))return![];}return![];}function a289_0x1b7c(_0xbf6579,_0x4c9f38){_0xbf6579=_0xbf6579-0x1e7;const _0x4e481d=a289_0x4e48();let _0x1b7c79=_0x4e481d[_0xbf6579];return _0x1b7c79;}function sleep(_0x59ed1d){return new Promise(_0x23c3fb=>setTimeout(_0x23c3fb,_0x59ed1d));}export function validateUrl(_0x1e38d1){try{return new URL(_0x1e38d1),!![];}catch{return![];}}
1
+ (function(_0x1d5872,_0x12f457){const _0x481579=a282_0x46d3,_0x45691d=_0x1d5872();while(!![]){try{const _0x3ae3f9=parseInt(_0x481579(0x1b4))/0x1+-parseInt(_0x481579(0x1aa))/0x2*(parseInt(_0x481579(0x1b2))/0x3)+-parseInt(_0x481579(0x198))/0x4*(-parseInt(_0x481579(0x1a9))/0x5)+-parseInt(_0x481579(0x199))/0x6+-parseInt(_0x481579(0x1a2))/0x7*(-parseInt(_0x481579(0x1ad))/0x8)+-parseInt(_0x481579(0x1a5))/0x9+-parseInt(_0x481579(0x1ac))/0xa*(parseInt(_0x481579(0x1a0))/0xb);if(_0x3ae3f9===_0x12f457)break;else _0x45691d['push'](_0x45691d['shift']());}catch(_0x423293){_0x45691d['push'](_0x45691d['shift']());}}}(a282_0x261a,0x2e7cc));export async function httpRequest(_0x1870fe,_0x2a8c88={}){const _0x4fec75=a282_0x46d3,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2a8c88;let _0x401c91=null;for(let _0x1191bc=0x0;_0x1191bc<=retries;_0x1191bc++){try{const _0x54d7ad=new AbortController(),_0x2264bb=setTimeout(()=>_0x54d7ad[_0x4fec75(0x1a6)](),timeout),_0x2b3b8a=await fetch(_0x1870fe,{'headers':headers,'signal':_0x54d7ad['signal']});clearTimeout(_0x2264bb);let _0x3788c6;const _0x255076=_0x2b3b8a[_0x4fec75(0x19d)][_0x4fec75(0x19a)](_0x4fec75(0x19e));return _0x255076?.[_0x4fec75(0x1b1)]('application/json')?_0x3788c6=await _0x2b3b8a[_0x4fec75(0x1b3)]():_0x3788c6=await _0x2b3b8a[_0x4fec75(0x1a4)](),{'ok':_0x2b3b8a['ok'],'status':_0x2b3b8a[_0x4fec75(0x19c)],'statusText':_0x2b3b8a[_0x4fec75(0x1a7)],'data':_0x3788c6,'headers':_0x2b3b8a[_0x4fec75(0x19d)],'url':_0x2b3b8a[_0x4fec75(0x1a8)],'text':()=>_0x2b3b8a[_0x4fec75(0x1a4)]()};}catch(_0x3e16a6){_0x401c91=_0x3e16a6 instanceof Error?_0x3e16a6:new Error(String(_0x3e16a6));if(_0x1191bc===retries)break;if(shouldRetry(_0x3e16a6)){console[_0x4fec75(0x1af)](_0x4fec75(0x1ae)+retryDelay+_0x4fec75(0x1ab)+(_0x1191bc+0x1)+_0x4fec75(0x1a1)),await sleep(retryDelay);continue;}else break;}}throw _0x401c91||new Error(_0x4fec75(0x19b));}function shouldRetry(_0x2ed19a){const _0x3103fd=a282_0x46d3;if(_0x2ed19a instanceof Error){if(_0x2ed19a['name']===_0x3103fd(0x196))return![];if(_0x2ed19a[_0x3103fd(0x194)]===_0x3103fd(0x1b0)&&_0x2ed19a[_0x3103fd(0x1a3)][_0x3103fd(0x1b1)](_0x3103fd(0x197)))return!![];if(_0x2ed19a['message'][_0x3103fd(0x1b1)](_0x3103fd(0x195)))return!![];if(_0x2ed19a[_0x3103fd(0x1a3)][_0x3103fd(0x1b1)](_0x3103fd(0x19f)))return![];}return![];}function a282_0x46d3(_0x4b4a78,_0x5d6b67){_0x4b4a78=_0x4b4a78-0x194;const _0x261a3e=a282_0x261a();let _0x46d31c=_0x261a3e[_0x4b4a78];return _0x46d31c;}function a282_0x261a(){const _0x23840c=['757647xtvDnD','abort','statusText','url','3695QnLinb','2gQBsbO','ms\x20后进行第\x20','2377030mZiIfN','32616TsrPhb','*\x20请求失败,','log','TypeError','includes','354111rDZcow','json','310676UgYQIl','name','ECONNRESET','AbortError','fetch','1668vkVMow','1325358JLvHBb','get','Request\x20failed','status','headers','content-type','ENOTFOUND','11KHjsFL','\x20次重试...','399CJXPxa','message','text'];a282_0x261a=function(){return _0x23840c;};return a282_0x261a();}function sleep(_0x20bc52){return new Promise(_0x4287f6=>setTimeout(_0x4287f6,_0x20bc52));}export function validateUrl(_0x3f0294){try{return new URL(_0x3f0294),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4c58b6,_0x908d12){const _0x5c8b0d=a290_0x48fd,_0x3cdf16=_0x4c58b6();while(!![]){try{const _0xcd2560=-parseInt(_0x5c8b0d(0xed))/0x1+parseInt(_0x5c8b0d(0xeb))/0x2+parseInt(_0x5c8b0d(0xea))/0x3*(parseInt(_0x5c8b0d(0xe7))/0x4)+-parseInt(_0x5c8b0d(0xee))/0x5+-parseInt(_0x5c8b0d(0xf1))/0x6+-parseInt(_0x5c8b0d(0xe5))/0x7*(parseInt(_0x5c8b0d(0xf2))/0x8)+parseInt(_0x5c8b0d(0xef))/0x9*(parseInt(_0x5c8b0d(0xf0))/0xa);if(_0xcd2560===_0x908d12)break;else _0x3cdf16['push'](_0x3cdf16['shift']());}catch(_0x1c2f71){_0x3cdf16['push'](_0x3cdf16['shift']());}}}(a290_0x2737,0xd4a4c));function a290_0x48fd(_0x1a3121,_0x16418a){_0x1a3121=_0x1a3121-0xe5;const _0x2737a4=a290_0x2737();let _0x48fd59=_0x2737a4[_0x1a3121];return _0x48fd59;}function env(_0x453b31){return process.env[`RABETBASE_${_0x453b31}`]||process.env[`LOVRABET_${_0x453b31}`]||undefined;}export function isNonInteractive(_0xb1f29){const _0x2d55f4=a290_0x48fd;return!!(_0xb1f29['nonInteractive']||_0xb1f29['ci']||env('CI')===_0x2d55f4(0xe6)||process.env.CI==='true'||!process[_0x2d55f4(0xf3)][_0x2d55f4(0xe9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2da535=a290_0x48fd;if(!process[_0x2da535(0xec)]['isTTY'])return![];try{const _0x3a9167=process['stdin']['isRaw'];return process['stdin'][_0x2da535(0xe8)](!![]),process[_0x2da535(0xec)][_0x2da535(0xe8)](_0x3a9167??![]),!![];}catch{return![];}}function a290_0x2737(){const _0x20e7fa=['4205418HArUzD','true','500qpFYLa','setRawMode','isTTY','30189tqxahG','2265050inCcXr','stdin','444204StFQhb','3085700NZvjHG','4383CBoRoV','18890ejOCpJ','4663422pHRBld','8XTtBHI','stdout'];a290_0x2737=function(){return _0x20e7fa;};return a290_0x2737();}
1
+ (function(_0x461e03,_0x5c6dd3){const _0x351832=a283_0x522e,_0x104993=_0x461e03();while(!![]){try{const _0x1753b1=-parseInt(_0x351832(0x196))/0x1+-parseInt(_0x351832(0x1a2))/0x2*(parseInt(_0x351832(0x19f))/0x3)+parseInt(_0x351832(0x197))/0x4+-parseInt(_0x351832(0x19b))/0x5*(-parseInt(_0x351832(0x19d))/0x6)+parseInt(_0x351832(0x193))/0x7*(parseInt(_0x351832(0x194))/0x8)+parseInt(_0x351832(0x19e))/0x9+-parseInt(_0x351832(0x1a1))/0xa;if(_0x1753b1===_0x5c6dd3)break;else _0x104993['push'](_0x104993['shift']());}catch(_0x2f537b){_0x104993['push'](_0x104993['shift']());}}}(a283_0x86f2,0xbeee1));function env(_0x2ac0db){return process.env[`RABETBASE_${_0x2ac0db}`]||process.env[`LOVRABET_${_0x2ac0db}`]||undefined;}function a283_0x522e(_0x266320,_0xd38ba8){_0x266320=_0x266320-0x192;const _0x86f2f=a283_0x86f2();let _0x522e51=_0x86f2f[_0x266320];return _0x522e51;}export function isNonInteractive(_0x52284e){const _0x264a69=a283_0x522e;return!!(_0x52284e[_0x264a69(0x192)]||_0x52284e['ci']||env('CI')===_0x264a69(0x195)||process.env.CI===_0x264a69(0x195)||!process[_0x264a69(0x1a0)]['isTTY']||!isStdinRawModeSupported());}function a283_0x86f2(){const _0x41acc9=['1639656lKzRFx','isTTY','isRaw','stdin','25rHcatU','setRawMode','1400004DCMqDj','9019584kBRHWq','201ZZtPQI','stdout','10008940NbgTyV','17002ckvNZI','nonInteractive','7DSptPq','7389456PGigLW','true','1149932xLpRQk'];a283_0x86f2=function(){return _0x41acc9;};return a283_0x86f2();}function isStdinRawModeSupported(){const _0x3ac798=a283_0x522e;if(!process[_0x3ac798(0x19a)][_0x3ac798(0x198)])return![];try{const _0x415313=process[_0x3ac798(0x19a)][_0x3ac798(0x199)];return process[_0x3ac798(0x19a)][_0x3ac798(0x19c)](!![]),process[_0x3ac798(0x19a)][_0x3ac798(0x19c)](_0x415313??![]),!![];}catch{return![];}}