@lovrabet/rabetbase-cli 2.3.16-beta.6 → 2.4.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/README.md +4 -10
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.d.ts +2 -0
  142. package/lib/commands/page/react/create.js +1 -0
  143. package/lib/commands/page/react/detail.d.ts +2 -0
  144. package/lib/commands/page/react/detail.js +1 -0
  145. package/lib/commands/page/react/list.d.ts +2 -0
  146. package/lib/commands/page/react/list.js +1 -0
  147. package/lib/commands/page/react/publish.d.ts +2 -0
  148. package/lib/commands/page/react/publish.js +1 -0
  149. package/lib/commands/page/react/shared.d.ts +78 -0
  150. package/lib/commands/page/react/shared.js +1 -0
  151. package/lib/commands/page/react/syntax.d.ts +18 -0
  152. package/lib/commands/page/react/syntax.js +1 -0
  153. package/lib/commands/page/react/template.d.ts +8 -0
  154. package/lib/commands/page/react/template.js +1 -0
  155. package/lib/commands/page/react/update.d.ts +2 -0
  156. package/lib/commands/page/react/update.js +1 -0
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.d.ts +1 -0
  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/permit/index.js +1 -1
  164. package/lib/commands/permit/page-get.js +1 -1
  165. package/lib/commands/permit/page-set.js +1 -1
  166. package/lib/commands/permit/role-apis-set.js +1 -1
  167. package/lib/commands/permit/role-menus-set.js +1 -1
  168. package/lib/commands/permit/role-menus.js +1 -1
  169. package/lib/commands/permit/shared.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/non-interactive.js +1 -1
  174. package/lib/commands/project/create/project-template-path.js +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/create.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.js +1 -1
  187. package/lib/commands/role/update.js +1 -1
  188. package/lib/commands/role/user-add.js +1 -1
  189. package/lib/commands/role/user-remove.js +1 -1
  190. package/lib/commands/role/user-resolve.js +1 -1
  191. package/lib/commands/run/index.js +1 -1
  192. package/lib/commands/schema.js +1 -1
  193. package/lib/commands/sql/create.js +1 -1
  194. package/lib/commands/sql/delete.js +1 -1
  195. package/lib/commands/sql/detail.js +1 -1
  196. package/lib/commands/sql/exec.js +1 -1
  197. package/lib/commands/sql/index.js +1 -1
  198. package/lib/commands/sql/list.js +1 -1
  199. package/lib/commands/sql/pull.js +1 -1
  200. package/lib/commands/sql/push.js +1 -1
  201. package/lib/commands/sql/shared.js +1 -1
  202. package/lib/commands/sql/status.js +1 -1
  203. package/lib/commands/sql/validate.js +1 -1
  204. package/lib/commands/task/index.js +1 -1
  205. package/lib/commands/task/status.js +1 -1
  206. package/lib/commands/tenant/index.js +1 -1
  207. package/lib/commands/tenant/members-list.js +1 -1
  208. package/lib/commands/tenant/shared.js +1 -1
  209. package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
  211. package/lib/commands/user-account/index.d.ts +2 -0
  212. package/lib/commands/user-account/index.js +1 -0
  213. package/lib/commands/workspace/add.js +1 -1
  214. package/lib/commands/workspace/index.js +1 -1
  215. package/lib/commands/workspace/remove.js +1 -1
  216. package/lib/config/schema.js +1 -1
  217. package/lib/constant/cdn.js +1 -1
  218. package/lib/constant/cli.js +1 -1
  219. package/lib/constant/defaults.js +1 -1
  220. package/lib/constant/domain.js +1 -1
  221. package/lib/constant/env.js +1 -1
  222. package/lib/constant/output.js +1 -1
  223. package/lib/constant/paths.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.d.ts +1 -1
  229. package/lib/context.js +1 -1
  230. package/lib/core/alias-resolver.js +1 -1
  231. package/lib/core/api-client.d.ts +117 -0
  232. package/lib/core/api-client.js +1 -1
  233. package/lib/core/bff/config.js +1 -1
  234. package/lib/core/bff/file-system.js +1 -1
  235. package/lib/core/bff/hash.js +1 -1
  236. package/lib/core/bff/lock.js +1 -1
  237. package/lib/core/bff/utils.js +1 -1
  238. package/lib/core/db-resolver.js +1 -1
  239. package/lib/core/page/file-system.js +1 -1
  240. package/lib/core/page/hash.js +1 -1
  241. package/lib/core/page/lock.js +1 -1
  242. package/lib/core/sql-index-auditor.js +1 -1
  243. package/lib/core/sql-sync/config.js +1 -1
  244. package/lib/core/sql-sync/file-system.js +1 -1
  245. package/lib/core/sql-sync/hash.js +1 -1
  246. package/lib/core/sql-sync/lock.js +1 -1
  247. package/lib/core/sql-sync/utils.js +1 -1
  248. package/lib/core/sql-validator.js +1 -1
  249. package/lib/errors.js +1 -1
  250. package/lib/framework/build-all-flags.js +1 -1
  251. package/lib/framework/error-output.js +1 -1
  252. package/lib/framework/explicit-yes.js +1 -1
  253. package/lib/framework/flags.js +1 -1
  254. package/lib/framework/help.js +1 -1
  255. package/lib/framework/index.js +1 -1
  256. package/lib/framework/output.js +1 -1
  257. package/lib/framework/response.js +1 -1
  258. package/lib/framework/runner-alias.js +1 -1
  259. package/lib/framework/runner.js +1 -1
  260. package/lib/framework/schema-export.js +1 -1
  261. package/lib/framework/types.js +1 -1
  262. package/lib/generated/build-info.d.ts +4 -4
  263. package/lib/generated/build-info.js +1 -1
  264. package/lib/help.js +1 -1
  265. package/lib/postinstall.d.ts +3 -0
  266. package/lib/postinstall.js +1 -0
  267. package/lib/runtime/confirmation.js +1 -1
  268. package/lib/runtime/event.js +1 -1
  269. package/lib/runtime/index.js +1 -1
  270. package/lib/runtime/queue.js +1 -1
  271. package/lib/runtime/resolve.js +1 -1
  272. package/lib/skills/builtin-skill.d.ts +37 -0
  273. package/lib/skills/builtin-skill.js +1 -0
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.d.ts +4 -2
  276. package/lib/skills/npx-skills-add.js +1 -1
  277. package/lib/skills/skill-presence.js +1 -1
  278. package/lib/telemetry/cli-command-trace.js +1 -1
  279. package/lib/telemetry/cli-help-trace.js +1 -1
  280. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  281. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  282. package/lib/telemetry/send-cli-trace-log.js +1 -1
  283. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  284. package/lib/utils/ai_config.js +1 -1
  285. package/lib/utils/apply-jq-filter.js +1 -1
  286. package/lib/utils/cdn-config.js +1 -1
  287. package/lib/utils/check-sdk-version.js +1 -1
  288. package/lib/utils/cli-version-check.js +1 -1
  289. package/lib/utils/cli-version-policy.js +1 -1
  290. package/lib/utils/config.js +1 -1
  291. package/lib/utils/copy-directory.js +1 -1
  292. package/lib/utils/entity-with-id.js +1 -1
  293. package/lib/utils/file-utils.js +1 -1
  294. package/lib/utils/guides-cdn.js +1 -1
  295. package/lib/utils/http-client.js +1 -1
  296. package/lib/utils/is-non-interactive.js +1 -1
  297. package/lib/utils/logger.js +1 -1
  298. package/lib/utils/params.js +1 -1
  299. package/lib/utils/platform.js +1 -1
  300. package/lib/utils/rules-cdn.js +1 -1
  301. package/lib/utils/sleep.js +1 -1
  302. package/lib/utils/template-replacer.js +1 -1
  303. package/lib/utils/update-notice.js +1 -1
  304. package/lib/utils/version.js +1 -1
  305. package/lib/utils/with-active-cookie.js +1 -1
  306. package/lib/utils/write-cli-side-channel.js +1 -1
  307. package/package.json +9 -3
  308. package/scripts/postinstall.mjs +24 -0
  309. package/skills/rabetbase/SKILL.md +493 -0
  310. package/skills/rabetbase/guides/backend-function.md +835 -0
  311. package/skills/rabetbase/guides/best-practices.md +137 -0
  312. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  313. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  314. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  315. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  316. package/skills/rabetbase/guides/frontend-development.md +179 -0
  317. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  318. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  319. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  320. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  321. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  322. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  323. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  324. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  325. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  332. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  333. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  334. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  335. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  336. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  337. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  338. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  339. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  340. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  341. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  342. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  343. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  344. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  345. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  346. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  347. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  348. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  349. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  350. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  351. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  352. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  353. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  354. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  355. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  357. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  358. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  371. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  372. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  373. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  374. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  375. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  376. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  377. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  378. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  379. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  381. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  382. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  383. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  384. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  385. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  386. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  387. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  389. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  391. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  392. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  393. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  394. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  395. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  396. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  397. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  398. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  401. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  402. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  407. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  408. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  409. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  410. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  411. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  413. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  414. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  415. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  416. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  418. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  419. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  420. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  421. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  422. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  423. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  424. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  425. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  427. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  428. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  429. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  430. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  431. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  432. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  433. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  434. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  435. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  436. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- (function(_0xb1271d,_0xab051){const _0x492c3f=a252_0x2e74,_0x3d1677=_0xb1271d();while(!![]){try{const _0x290ee2=parseInt(_0x492c3f(0x166))/0x1*(-parseInt(_0x492c3f(0x16a))/0x2)+parseInt(_0x492c3f(0x165))/0x3*(parseInt(_0x492c3f(0x164))/0x4)+-parseInt(_0x492c3f(0x159))/0x5*(-parseInt(_0x492c3f(0x15e))/0x6)+-parseInt(_0x492c3f(0x167))/0x7+-parseInt(_0x492c3f(0x15a))/0x8+parseInt(_0x492c3f(0x15d))/0x9*(parseInt(_0x492c3f(0x162))/0xa)+parseInt(_0x492c3f(0x160))/0xb;if(_0x290ee2===_0xab051)break;else _0x3d1677['push'](_0x3d1677['shift']());}catch(_0x320380){_0x3d1677['push'](_0x3d1677['shift']());}}}(a252_0x11d4,0xae70b));function a252_0x11d4(){const _0x111da8=['2670808GyLsyS','service','error','2OzKWkN','test','command','59845xGFixU','5033672KxCxRw','flags','rabetbase.command','9FfPHnp','534wdQIPN','message','4098259pYvyiQ','some','7497680IjrasR','durationMs','3628AFNhOM','993jvkkXO','762535UqdURq'];a252_0x11d4=function(){return _0x111da8;};return a252_0x11d4();}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(_0x41fb00){const _0x5d90f7=a252_0x2e74;return SENSITIVE_PATTERNS[_0x5d90f7(0x161)](_0x2edec9=>_0x2edec9[_0x5d90f7(0x157)](_0x41fb00));}function sanitizeFlags(_0x675853){const _0x8fd660={};for(const [_0x1a8f1c,_0x2cc6d3]of Object['entries'](_0x675853)){isSensitiveKey(_0x1a8f1c)?_0x8fd660[_0x1a8f1c]=_0x2cc6d3!=null&&_0x2cc6d3!==''?'[REDACTED]':_0x2cc6d3:_0x8fd660[_0x1a8f1c]=_0x2cc6d3;}return _0x8fd660;}function a252_0x2e74(_0x2a1567,_0x51accc){_0x2a1567=_0x2a1567-0x157;const _0x11d415=a252_0x11d4();let _0x2e74e8=_0x11d415[_0x2a1567];return _0x2e74e8;}export async function reportCommandTrace(_0x5cd3ef){const _0x37989a=a252_0x2e74;try{const _0x550056=sanitizeFlags(_0x5cd3ef[_0x37989a(0x15b)]);await sendCliTraceLog({'spanName':_0x37989a(0x15c),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5cd3ef[_0x37989a(0x168)],'command.name':_0x5cd3ef[_0x37989a(0x158)],'command.flags':JSON['stringify'](_0x550056),..._0x5cd3ef[_0x37989a(0x163)]!=null?{'command.duration_ms':_0x5cd3ef[_0x37989a(0x163)]}:{},..._0x5cd3ef[_0x37989a(0x169)]?{'command.error':_0x5cd3ef['error']instanceof Error?_0x5cd3ef[_0x37989a(0x169)][_0x37989a(0x15f)]:String(_0x5cd3ef['error'])}:{}}});}catch{}}
1
+ (function(_0x9acda3,_0x535863){const _0x115864=a264_0x2b91,_0x4b1b2d=_0x9acda3();while(!![]){try{const _0x2c5da7=-parseInt(_0x115864(0x1c3))/0x1+-parseInt(_0x115864(0x1c9))/0x2+-parseInt(_0x115864(0x1c4))/0x3*(-parseInt(_0x115864(0x1be))/0x4)+parseInt(_0x115864(0x1c1))/0x5*(parseInt(_0x115864(0x1bc))/0x6)+parseInt(_0x115864(0x1bb))/0x7*(parseInt(_0x115864(0x1ba))/0x8)+-parseInt(_0x115864(0x1bd))/0x9*(parseInt(_0x115864(0x1c0))/0xa)+parseInt(_0x115864(0x1b8))/0xb;if(_0x2c5da7===_0x535863)break;else _0x4b1b2d['push'](_0x4b1b2d['shift']());}catch(_0x3c917f){_0x4b1b2d['push'](_0x4b1b2d['shift']());}}}(a264_0x198b,0x1cc39));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function a264_0x2b91(_0xde5281,_0x195b54){_0xde5281=_0xde5281-0x1b6;const _0x198b5a=a264_0x198b();let _0x2b916a=_0x198b5a[_0xde5281];return _0x2b916a;}function isSensitiveKey(_0x2515cc){const _0x211784=a264_0x2b91;return SENSITIVE_PATTERNS[_0x211784(0x1bf)](_0xa02b9d=>_0xa02b9d['test'](_0x2515cc));}function a264_0x198b(){const _0x3e8d55=['266eXIjqk','12PjLfSL','763659lvxTiE','8TzaTyx','some','20PRsHNc','280110DaozbR','message','34488pDzBAa','206952xepUnA','error','entries','command','service','418110AhYjLD','durationMs','[REDACTED]','2520144fRFfbQ','stringify','10936CWCaNf'];a264_0x198b=function(){return _0x3e8d55;};return a264_0x198b();}function sanitizeFlags(_0x3f8d32){const _0x5cbf10=a264_0x2b91,_0x3f1f5c={};for(const [_0x59fe58,_0x3933d1]of Object[_0x5cbf10(0x1c6)](_0x3f8d32)){isSensitiveKey(_0x59fe58)?_0x3f1f5c[_0x59fe58]=_0x3933d1!=null&&_0x3933d1!==''?_0x5cbf10(0x1b7):_0x3933d1:_0x3f1f5c[_0x59fe58]=_0x3933d1;}return _0x3f1f5c;}export async function reportCommandTrace(_0x5e9f8e){const _0x3dc679=a264_0x2b91;try{const _0x50bc0f=sanitizeFlags(_0x5e9f8e['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5e9f8e[_0x3dc679(0x1c8)],'command.name':_0x5e9f8e[_0x3dc679(0x1c7)],'command.flags':JSON[_0x3dc679(0x1b9)](_0x50bc0f),..._0x5e9f8e[_0x3dc679(0x1b6)]!=null?{'command.duration_ms':_0x5e9f8e['durationMs']}:{},..._0x5e9f8e[_0x3dc679(0x1c5)]?{'command.error':_0x5e9f8e[_0x3dc679(0x1c5)]instanceof Error?_0x5e9f8e[_0x3dc679(0x1c5)][_0x3dc679(0x1c2)]:String(_0x5e9f8e['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a253_0x3622(){var _0x1106da=['10873422Icwtvl','8wQglUL','cli.help','18AUQLXU','service','1128210LSMqlg','693420aLhElT','Failed\x20to\x20report\x20CLI\x20help\x20trace:','135584ftHTnj','1873220WmKowK','243726nMgrYE','95845dwJCCm','error'];a253_0x3622=function(){return _0x1106da;};return a253_0x3622();}function a253_0x42ad(_0x3fde08,_0x29430e){_0x3fde08=_0x3fde08-0x8d;var _0x362249=a253_0x3622();var _0x42ad11=_0x362249[_0x3fde08];return _0x42ad11;}(function(_0x1cc186,_0x2e2f5a){var _0x31e439=a253_0x42ad,_0x887cea=_0x1cc186();while(!![]){try{var _0x32bf40=parseInt(_0x31e439(0x90))/0x1+-parseInt(_0x31e439(0x8e))/0x2+-parseInt(_0x31e439(0x8d))/0x3+-parseInt(_0x31e439(0x91))/0x4+-parseInt(_0x31e439(0x93))/0x5+-parseInt(_0x31e439(0x98))/0x6*(-parseInt(_0x31e439(0x92))/0x7)+parseInt(_0x31e439(0x96))/0x8*(parseInt(_0x31e439(0x95))/0x9);if(_0x32bf40===_0x2e2f5a)break;else _0x887cea['push'](_0x887cea['shift']());}catch(_0x5e4a6f){_0x887cea['push'](_0x887cea['shift']());}}}(a253_0x3622,0x3a176));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x221ee2,_0x5784c5){var _0x5b47cd=a253_0x42ad;try{await sendCliTraceLog({'spanName':_0x5b47cd(0x97),'logData':{'rabetbase.help.kind':_0x221ee2,..._0x5784c5?.['service']&&{'rabetbase.help.service':_0x5784c5[_0x5b47cd(0x99)]}}});}catch(_0x5a341b){console[_0x5b47cd(0x94)](_0x5b47cd(0x8f),_0x5a341b);}}
1
+ function a265_0x5db4(_0x1d0411,_0x44514b){_0x1d0411=_0x1d0411-0x125;var _0x474755=a265_0x4747();var _0x5db427=_0x474755[_0x1d0411];return _0x5db427;}function a265_0x4747(){var _0xa25823=['30PGkNFC','1319764JEbQqt','1422534oryIJs','service','cli.help','863936LbrYqL','1994635umspcU','4496409gEjuQV','3TfDIjH','327054LDRozL','5071332VLkual','7wKgNfb','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a265_0x4747=function(){return _0xa25823;};return a265_0x4747();}(function(_0x4765f2,_0x59d18b){var _0x299af0=a265_0x5db4,_0x15ae14=_0x4765f2();while(!![]){try{var _0x4c0d57=parseInt(_0x299af0(0x130))/0x1+-parseInt(_0x299af0(0x129))/0x2+parseInt(_0x299af0(0x12f))/0x3*(-parseInt(_0x299af0(0x128))/0x4)+parseInt(_0x299af0(0x12d))/0x5+-parseInt(_0x299af0(0x131))/0x6+-parseInt(_0x299af0(0x125))/0x7*(-parseInt(_0x299af0(0x12c))/0x8)+parseInt(_0x299af0(0x12e))/0x9*(parseInt(_0x299af0(0x127))/0xa);if(_0x4c0d57===_0x59d18b)break;else _0x15ae14['push'](_0x15ae14['shift']());}catch(_0x11c23c){_0x15ae14['push'](_0x15ae14['shift']());}}}(a265_0x4747,0x6cf8a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4e53e2,_0x33aef4){var _0x36dce3=a265_0x5db4;try{await sendCliTraceLog({'spanName':_0x36dce3(0x12b),'logData':{'rabetbase.help.kind':_0x4e53e2,..._0x33aef4?.[_0x36dce3(0x12a)]&&{'rabetbase.help.service':_0x33aef4[_0x36dce3(0x12a)]}}});}catch(_0x3020b9){console['error'](_0x36dce3(0x126),_0x3020b9);}}
@@ -1 +1 @@
1
- (function(_0x4d7e48,_0xc2bade){const _0x13c8ee=a254_0x14ee,_0x3b8b5f=_0x4d7e48();while(!![]){try{const _0x3fa9bb=-parseInt(_0x13c8ee(0xec))/0x1*(parseInt(_0x13c8ee(0xe8))/0x2)+parseInt(_0x13c8ee(0xe5))/0x3+parseInt(_0x13c8ee(0xee))/0x4*(-parseInt(_0x13c8ee(0xe9))/0x5)+parseInt(_0x13c8ee(0xeb))/0x6*(-parseInt(_0x13c8ee(0xe6))/0x7)+parseInt(_0x13c8ee(0xe3))/0x8*(parseInt(_0x13c8ee(0xe7))/0x9)+-parseInt(_0x13c8ee(0xea))/0xa*(parseInt(_0x13c8ee(0xf2))/0xb)+parseInt(_0x13c8ee(0xe0))/0xc;if(_0x3fa9bb===_0xc2bade)break;else _0x3b8b5f['push'](_0x3b8b5f['shift']());}catch(_0x38e356){_0x3b8b5f['push'](_0x3b8b5f['shift']());}}}(a254_0x28f1,0x23a9b));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a254_0x14ee(_0x1c945a,_0x31eea3){_0x1c945a=_0x1c945a-0xe0;const _0x28f108=a254_0x28f1();let _0x14ee36=_0x28f108[_0x1c945a];return _0x14ee36;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x33839b=a254_0x14ee,_0x482beb=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x40f51d=_0x482beb?.[_0x33839b(0xe1)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x33839b(0xf0):'production')}),setUserContext({'id':_0x40f51d?.['id'],'username':_0x40f51d?.[_0x33839b(0xe2)],'nickname':_0x40f51d?.[_0x33839b(0xef)],'email':_0x40f51d?.[_0x33839b(0xe4)],'tenantCode':_0x40f51d?.[_0x33839b(0xf1)]?.[_0x33839b(0xed)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x482beb;}function a254_0x28f1(){const _0x4c0111=['5398392wYgacD','user','username','64CBEnWt','email','309987XSPSzX','1988581fVKkKf','214812yaXWWu','2uIzKbn','5QfnVwv','2686420OfKkVO','6BDjrml','23279oyyNCm','tenant_code','88240PqvCBp','nickname','daily','tenant','11rbKQtJ'];a254_0x28f1=function(){return _0x4c0111;};return a254_0x28f1();}
1
+ (function(_0x1ca9e8,_0x937f8f){const _0x335711=a266_0x3ced,_0x12a6b8=_0x1ca9e8();while(!![]){try{const _0x163da0=-parseInt(_0x335711(0x144))/0x1+parseInt(_0x335711(0x13d))/0x2*(-parseInt(_0x335711(0x146))/0x3)+parseInt(_0x335711(0x140))/0x4*(parseInt(_0x335711(0x145))/0x5)+-parseInt(_0x335711(0x139))/0x6*(-parseInt(_0x335711(0x148))/0x7)+-parseInt(_0x335711(0x142))/0x8+parseInt(_0x335711(0x141))/0x9+-parseInt(_0x335711(0x13e))/0xa*(-parseInt(_0x335711(0x143))/0xb);if(_0x163da0===_0x937f8f)break;else _0x12a6b8['push'](_0x12a6b8['shift']());}catch(_0x4797b2){_0x12a6b8['push'](_0x12a6b8['shift']());}}}(a266_0x4022,0xe9f82));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a266_0x3ced(_0xe4b9fc,_0x4f62c2){_0xe4b9fc=_0xe4b9fc-0x139;const _0x4022b1=a266_0x4022();let _0x3cedf1=_0x4022b1[_0xe4b9fc];return _0x3cedf1;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a266_0x4022(){const _0x34f120=['4275576OtlbWB','99LruoTV','776839QeUjXW','85mvpxSq','765027jdjOVT','user','1750WcRQjt','tenant_code','daily','tenant','14364tZjLjv','username','unknown','nickname','4iFhxGH','2189930LpOHkH','production','29836offIgU','750618povGYO'];a266_0x4022=function(){return _0x34f120;};return a266_0x4022();}export async function ensureCliOtelTraceConfig(){const _0xa79dab=a266_0x3ced,_0x3ad85a=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x36848b=_0x3ad85a?.[_0xa79dab(0x147)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xa79dab(0x13b)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xa79dab(0x14a):_0xa79dab(0x13f))}),setUserContext({'id':_0x36848b?.['id'],'username':_0x36848b?.[_0xa79dab(0x13a)],'nickname':_0x36848b?.[_0xa79dab(0x13c)],'email':_0x36848b?.['email'],'tenantCode':_0x36848b?.[_0xa79dab(0x14b)]?.[_0xa79dab(0x149)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3ad85a;}
@@ -1 +1 @@
1
- (function(_0xf5f5f7,_0x5a9c17){const _0x1e9588=a255_0x2fde,_0x5a83ce=_0xf5f5f7();while(!![]){try{const _0x4d244d=parseInt(_0x1e9588(0xde))/0x1+-parseInt(_0x1e9588(0xe1))/0x2+parseInt(_0x1e9588(0xe0))/0x3+parseInt(_0x1e9588(0xdf))/0x4*(parseInt(_0x1e9588(0xda))/0x5)+-parseInt(_0x1e9588(0xdc))/0x6*(parseInt(_0x1e9588(0xe5))/0x7)+parseInt(_0x1e9588(0xe2))/0x8*(-parseInt(_0x1e9588(0xe4))/0x9)+parseInt(_0x1e9588(0xe8))/0xa;if(_0x4d244d===_0x5a9c17)break;else _0x5a83ce['push'](_0x5a83ce['shift']());}catch(_0x437ffa){_0x5a83ce['push'](_0x5a83ce['shift']());}}}(a255_0x4752,0x83197));function a255_0x2fde(_0x28e74b,_0x308921){_0x28e74b=_0x28e74b-0xda;const _0x4752a1=a255_0x4752();let _0x2fdeb6=_0x4752a1[_0x28e74b];return _0x2fdeb6;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a255_0x4752(){const _0x3f8e32=['8978550hBNSFQ','5AhwMJz','once','64116oSoSfq','then','854774ZvUaaN','1358588HFWzKw','1840947FhTDca','1086838DKvQJJ','202152cXZDNA','beforeExit','225VhiGVt','651rGHCSQ','SIGTERM','exit'];a255_0x4752=function(){return _0x3f8e32;};return a255_0x4752();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x4d1acf=a255_0x2fde;process['once'](_0x4d1acf(0xe3),()=>{void flushOtelNodeIfUsed();});const _0x21f99f=()=>{const _0x62c550=_0x4d1acf;void flushOtelNodeIfUsed()[_0x62c550(0xdd)](()=>process[_0x62c550(0xe7)](0x0));};process['once']('SIGINT',_0x21f99f),process[_0x4d1acf(0xdb)](_0x4d1acf(0xe6),_0x21f99f);}export async function exitWithOtelShutdown(_0x2bae9d){const _0x290e58=a255_0x2fde;await flushOtelNodeIfUsed(),process[_0x290e58(0xe7)](_0x2bae9d);}
1
+ (function(_0x45f4c7,_0x1c3b62){const _0x43d140=a267_0xaebe,_0x1c2c8a=_0x45f4c7();while(!![]){try{const _0xd65982=-parseInt(_0x43d140(0x1bf))/0x1+parseInt(_0x43d140(0x1b6))/0x2+parseInt(_0x43d140(0x1be))/0x3*(parseInt(_0x43d140(0x1c4))/0x4)+parseInt(_0x43d140(0x1c3))/0x5+parseInt(_0x43d140(0x1c5))/0x6*(-parseInt(_0x43d140(0x1bb))/0x7)+parseInt(_0x43d140(0x1c1))/0x8*(-parseInt(_0x43d140(0x1bc))/0x9)+parseInt(_0x43d140(0x1c2))/0xa*(parseInt(_0x43d140(0x1b9))/0xb);if(_0xd65982===_0x1c3b62)break;else _0x1c2c8a['push'](_0x1c2c8a['shift']());}catch(_0x1e7f30){_0x1c2c8a['push'](_0x1c2c8a['shift']());}}}(a267_0x8258,0xb2dac));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 _0xd8999f=a267_0xaebe;process[_0xd8999f(0x1b5)](_0xd8999f(0x1ba),()=>{void flushOtelNodeIfUsed();});const _0x3dbbd9=()=>{const _0x3ce4a3=_0xd8999f;void flushOtelNodeIfUsed()[_0x3ce4a3(0x1c0)](()=>process[_0x3ce4a3(0x1b8)](0x0));};process[_0xd8999f(0x1b5)](_0xd8999f(0x1bd),_0x3dbbd9),process['once'](_0xd8999f(0x1b7),_0x3dbbd9);}function a267_0xaebe(_0x28b13a,_0xb0c968){_0x28b13a=_0x28b13a-0x1b5;const _0x825849=a267_0x8258();let _0xaebe0b=_0x825849[_0x28b13a];return _0xaebe0b;}function a267_0x8258(){const _0x50d39c=['3176390JMLlrH','539056FYPars','28182TNainP','once','665260gNNiow','SIGTERM','exit','11ItsiDM','beforeExit','2114MDqAXc','2034YnNRhz','SIGINT','12oQWMuQ','687587JrWuyU','then','44136hYPMEr','25785470ynlvek'];a267_0x8258=function(){return _0x50d39c;};return a267_0x8258();}export async function exitWithOtelShutdown(_0x28947f){const _0x15f3f3=a267_0xaebe;await flushOtelNodeIfUsed(),process[_0x15f3f3(0x1b8)](_0x28947f);}
@@ -1 +1 @@
1
- function a256_0x22dd(_0x2c21d3,_0x28848f){_0x2c21d3=_0x2c21d3-0x164;const _0x17be83=a256_0x17be();let _0x22dd78=_0x17be83[_0x2c21d3];return _0x22dd78;}const a256_0x105134=a256_0x22dd;(function(_0x4b06ce,_0xf27732){const _0x424214=a256_0x22dd,_0x15a420=_0x4b06ce();while(!![]){try{const _0x340146=parseInt(_0x424214(0x16b))/0x1*(-parseInt(_0x424214(0x168))/0x2)+parseInt(_0x424214(0x171))/0x3+-parseInt(_0x424214(0x170))/0x4*(parseInt(_0x424214(0x16f))/0x5)+parseInt(_0x424214(0x164))/0x6*(-parseInt(_0x424214(0x167))/0x7)+parseInt(_0x424214(0x173))/0x8+-parseInt(_0x424214(0x16c))/0x9*(-parseInt(_0x424214(0x174))/0xa)+parseInt(_0x424214(0x165))/0xb*(parseInt(_0x424214(0x175))/0xc);if(_0x340146===_0xf27732)break;else _0x15a420['push'](_0x15a420['shift']());}catch(_0x4abf18){_0x15a420['push'](_0x15a420['shift']());}}}(a256_0x17be,0xb22b2));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=a256_0x105134(0x169);export async function sendCliTraceLog(_0x5c0f67){const _0x4635b4=a256_0x105134;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5c0f67[_0x4635b4(0x166)]??DEFAULT_TRACE_NAME,'version':_0x5c0f67['version']??getCliVersion(),'spanName':_0x5c0f67[_0x4635b4(0x16d)],'eventType':_0x4635b4(0x16a),'logData':_0x5c0f67[_0x4635b4(0x172)],..._0x5c0f67[_0x4635b4(0x16e)]&&{'traceparent':_0x5c0f67[_0x4635b4(0x16e)]}});}function a256_0x17be(){const _0x30642f=['rabetbase-cli','manual','3637oJMPNF','773163EVJlnW','spanName','traceparent','51115PVeJZq','316rRcbbS','1445097dsvDya','logData','5692368puSnbe','30FxGPho','12pQbDNS','6lNuBFn','21339406ncojxK','traceName','4293100UOEiPw','682SNBFaw'];a256_0x17be=function(){return _0x30642f;};return a256_0x17be();}
1
+ const a268_0x33525e=a268_0x3dbe;(function(_0x1c4dda,_0xfec961){const _0x54886c=a268_0x3dbe,_0x47cf29=_0x1c4dda();while(!![]){try{const _0x4776d8=parseInt(_0x54886c(0x146))/0x1+parseInt(_0x54886c(0x148))/0x2*(-parseInt(_0x54886c(0x147))/0x3)+parseInt(_0x54886c(0x13f))/0x4+parseInt(_0x54886c(0x141))/0x5+parseInt(_0x54886c(0x142))/0x6*(parseInt(_0x54886c(0x145))/0x7)+parseInt(_0x54886c(0x13b))/0x8+-parseInt(_0x54886c(0x13d))/0x9*(parseInt(_0x54886c(0x13e))/0xa);if(_0x4776d8===_0xfec961)break;else _0x47cf29['push'](_0x47cf29['shift']());}catch(_0x17276b){_0x47cf29['push'](_0x47cf29['shift']());}}}(a268_0x474b,0xd8240));function a268_0x474b(){const _0x39f6fd=['2404828BSwjLW','traceparent','5488015yAKFIc','42tVslQo','logData','version','1736623UaUxWJ','207534WllBRV','4782TcjRyd','590zexMUM','rabetbase-cli','8704712sBruEa','spanName','15189813qalaOJ','20rgliGP'];a268_0x474b=function(){return _0x39f6fd;};return a268_0x474b();}function a268_0x3dbe(_0x334f10,_0x52964){_0x334f10=_0x334f10-0x13b;const _0x474b53=a268_0x474b();let _0x3dbea3=_0x474b53[_0x334f10];return _0x3dbea3;}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=a268_0x33525e(0x149);export async function sendCliTraceLog(_0x35de39){const _0x24358b=a268_0x33525e;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x35de39['traceName']??DEFAULT_TRACE_NAME,'version':_0x35de39[_0x24358b(0x144)]??getCliVersion(),'spanName':_0x35de39[_0x24358b(0x13c)],'eventType':'manual','logData':_0x35de39[_0x24358b(0x143)],..._0x35de39[_0x24358b(0x140)]&&{'traceparent':_0x35de39[_0x24358b(0x140)]}});}
@@ -1 +1 @@
1
- const a257_0x528bbd=a257_0x3522;(function(_0x51fa57,_0x15956f){const _0x455e3d=a257_0x3522,_0x5665aa=_0x51fa57();while(!![]){try{const _0x1f4cbd=-parseInt(_0x455e3d(0xaf))/0x1+-parseInt(_0x455e3d(0xb2))/0x2+parseInt(_0x455e3d(0xb0))/0x3*(-parseInt(_0x455e3d(0xa7))/0x4)+parseInt(_0x455e3d(0xb7))/0x5+-parseInt(_0x455e3d(0xaa))/0x6+parseInt(_0x455e3d(0xa8))/0x7*(parseInt(_0x455e3d(0xa9))/0x8)+parseInt(_0x455e3d(0xb6))/0x9;if(_0x1f4cbd===_0x15956f)break;else _0x5665aa['push'](_0x5665aa['shift']());}catch(_0x4ddcec){_0x5665aa['push'](_0x5665aa['shift']());}}}(a257_0x4a55,0xd6028));function a257_0x3522(_0x102d58,_0x4d1d83){_0x102d58=_0x102d58-0xa7;const _0x4a5571=a257_0x4a55();let _0x352244=_0x4a5571[_0x102d58];return _0x352244;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a257_0x528bbd(0xac);export const PLATFORM_ISSUE_SPAN_NAME=a257_0x528bbd(0xb1);function a257_0x4a55(){const _0x3b7bf1=['originalBytes','redactionCount','39737565jWAQkw','2813050mDWGQa','join','116tFXzME','523453sRsvkf','80fNPmxr','8747790FgTTGO','title','platform-issue-log-collect','sanitize','description','880902Volsya','109833WsGjxJ','issue.log.collect','2897030VbSrlt','redactionKinds'];a257_0x4a55=function(){return _0x3b7bf1;};return a257_0x4a55();}export async function sendPlatformIssueCollectLog(_0x1bcaf3){const _0x4ca578=a257_0x528bbd;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1bcaf3[_0x4ca578(0xab)],'issue.description':_0x1bcaf3[_0x4ca578(0xae)],..._0x1bcaf3[_0x4ca578(0xad)]?{'issue.description_original_bytes':_0x1bcaf3[_0x4ca578(0xad)][_0x4ca578(0xb4)],'issue.description_truncated':_0x1bcaf3['sanitize']['truncated'],'issue.description_redactions':_0x1bcaf3['sanitize'][_0x4ca578(0xb5)],'issue.description_redaction_kinds':_0x1bcaf3['sanitize'][_0x4ca578(0xb3)][_0x4ca578(0xb8)](',')}:{}}});}
1
+ const a269_0x2a3498=a269_0x2332;function a269_0x55f1(){const _0xc0ecd7=['redactionCount','truncated','2504708tkFMnf','5674452gwjhDB','join','issue.log.collect','5476890gqXcnJ','sanitize','redactionKinds','394767ZQLWLj','originalBytes','22gAcsFe','6SSSkDw','2676074zqlgPQ','platform-issue-log-collect','title','715740DEoOvG','1hvFTpL','7QHeGix','2782256FNqzMY'];a269_0x55f1=function(){return _0xc0ecd7;};return a269_0x55f1();}(function(_0x4e9f16,_0xbc84f6){const _0x3b5794=a269_0x2332,_0x35025c=_0x4e9f16();while(!![]){try{const _0x322acf=parseInt(_0x3b5794(0x139))/0x1*(parseInt(_0x3b5794(0x149))/0x2)+parseInt(_0x3b5794(0x148))/0x3*(parseInt(_0x3b5794(0x13e))/0x4)+-parseInt(_0x3b5794(0x142))/0x5+-parseInt(_0x3b5794(0x13f))/0x6+parseInt(_0x3b5794(0x13a))/0x7*(parseInt(_0x3b5794(0x13b))/0x8)+-parseInt(_0x3b5794(0x145))/0x9+parseInt(_0x3b5794(0x138))/0xa*(-parseInt(_0x3b5794(0x147))/0xb);if(_0x322acf===_0xbc84f6)break;else _0x35025c['push'](_0x35025c['shift']());}catch(_0x3fc034){_0x35025c['push'](_0x35025c['shift']());}}}(a269_0x55f1,0xad59a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a269_0x2a3498(0x136);function a269_0x2332(_0x128dbc,_0x1ff75e){_0x128dbc=_0x128dbc-0x136;const _0x55f1f8=a269_0x55f1();let _0x233228=_0x55f1f8[_0x128dbc];return _0x233228;}export const PLATFORM_ISSUE_SPAN_NAME=a269_0x2a3498(0x141);export async function sendPlatformIssueCollectLog(_0x3aec65){const _0x45b8d1=a269_0x2a3498;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3aec65[_0x45b8d1(0x137)],'issue.description':_0x3aec65['description'],..._0x3aec65[_0x45b8d1(0x143)]?{'issue.description_original_bytes':_0x3aec65[_0x45b8d1(0x143)][_0x45b8d1(0x146)],'issue.description_truncated':_0x3aec65['sanitize'][_0x45b8d1(0x13d)],'issue.description_redactions':_0x3aec65['sanitize'][_0x45b8d1(0x13c)],'issue.description_redaction_kinds':_0x3aec65[_0x45b8d1(0x143)][_0x45b8d1(0x144)][_0x45b8d1(0x140)](',')}:{}}});}
@@ -1 +1 @@
1
- const a259_0x560243=a259_0x1e1b;(function(_0x5b309c,_0x12e67d){const _0x4cb926=a259_0x1e1b,_0x185e37=_0x5b309c();while(!![]){try{const _0x1ba106=parseInt(_0x4cb926(0x15a))/0x1+-parseInt(_0x4cb926(0x132))/0x2*(-parseInt(_0x4cb926(0x143))/0x3)+parseInt(_0x4cb926(0x147))/0x4*(parseInt(_0x4cb926(0x13c))/0x5)+-parseInt(_0x4cb926(0x14e))/0x6*(parseInt(_0x4cb926(0x144))/0x7)+-parseInt(_0x4cb926(0x140))/0x8+-parseInt(_0x4cb926(0x15b))/0x9+parseInt(_0x4cb926(0x137))/0xa;if(_0x1ba106===_0x12e67d)break;else _0x185e37['push'](_0x185e37['shift']());}catch(_0x4c4121){_0x185e37['push'](_0x185e37['shift']());}}}(a259_0x4d63,0xe6321));function a259_0x1e1b(_0x16aa5f,_0x43111f){_0x16aa5f=_0x16aa5f-0x12f;const _0x4d63f7=a259_0x4d63();let _0x1e1b1e=_0x4d63f7[_0x16aa5f];return _0x1e1b1e;}export const CORE_IDE_CONFIGS={'cursor':{'name':a259_0x560243(0x138),'description':a259_0x560243(0x165),'folders':[a259_0x560243(0x156),a259_0x560243(0x130)],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x14f),'template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a259_0x560243(0x14a),'folders':[a259_0x560243(0x150)],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x13d),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':[a259_0x560243(0x154)],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x13f),'template':a259_0x560243(0x157)}]},'cline':{'name':'Cline','description':a259_0x560243(0x134),'folders':[a259_0x560243(0x152)],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x15d),'template':a259_0x560243(0x157)}]},'codex':{'name':a259_0x560243(0x13e),'description':'Codex\x20IDE','folders':[a259_0x560243(0x12f)],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x15f),'template':a259_0x560243(0x157)}]},'opencode':{'name':a259_0x560243(0x13b),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x155),'template':a259_0x560243(0x157)}]},'qoder':{'name':a259_0x560243(0x159),'description':a259_0x560243(0x14b),'folders':[a259_0x560243(0x139)],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x136),'template':a259_0x560243(0x157)},{'type':a259_0x560243(0x163),'path':a259_0x560243(0x14c),'template':a259_0x560243(0x157)}]},'codebuddy':{'name':a259_0x560243(0x149),'description':a259_0x560243(0x15e),'folders':[a259_0x560243(0x135)],'files':[{'type':a259_0x560243(0x163),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a259_0x560243(0x157)}]},'trae':{'name':a259_0x560243(0x133),'description':a259_0x560243(0x160),'folders':[a259_0x560243(0x158)],'files':[{'type':a259_0x560243(0x163),'path':a259_0x560243(0x153),'template':a259_0x560243(0x157)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a259_0x560243(0x161),'description':'通用模板\x20-\x20兜底方案','folders':[a259_0x560243(0x148)],'files':[{'type':a259_0x560243(0x163),'path':'.agent/skills/lovrabet/SKILL.md','template':a259_0x560243(0x157)}]},'antigravity':{'name':a259_0x560243(0x15c),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':'file','path':a259_0x560243(0x145),'template':a259_0x560243(0x157)}]}};export const CORE_IDE_LIST=['claude',a259_0x560243(0x146),'codebuddy','codex','cursor','opencode','qoder','trae',a259_0x560243(0x166)];export const IDE_LIST=[a259_0x560243(0x151),a259_0x560243(0x141),a259_0x560243(0x146),a259_0x560243(0x162),a259_0x560243(0x131),a259_0x560243(0x164),a259_0x560243(0x13a),a259_0x560243(0x142),a259_0x560243(0x14d),a259_0x560243(0x166),'agent'];export const ALL_CORE_IDES=['cursor','windsurf',a259_0x560243(0x141),'cline',a259_0x560243(0x131),'opencode',a259_0x560243(0x142),a259_0x560243(0x162),'trae'];function a259_0x4d63(){const _0x3294e4=['202608euRvmG','.agent/skills/lovrabet/SKILL.md','cline','20ggpTzp','.agent','CodeBuddy','Windsurf\x20IDE','Qoder\x20IDE','.qoder/skills/lovrabet/SKILL.md','trae','312YupZHB','.cursor/skills/rabetbase.md','.windsurf','antigravity','.cline','.trae/skills/lovrabet/SKILL.md','.claude','.opencode/skills/lovrabet/SKILL.md','.cursorrules','SKILL.md.tpl','.trae','Qoder','1436404FABqLn','5893938odruic','Antigravity','.cline/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','.codex/skills/lovrabet/SKILL.md','Trae\x20IDE','其他\x20(通用模板)','codebuddy','file','cursor','Cursor\x20IDE','windsurf','.codex','.cursor','codex','989994AwnHAm','Trae','Cline\x20IDE','.codebuddy','.qoder/rules/rabetbase.md','11074190mnMSdO','Cursor','.qoder','opencode','OpenCode','1871780nNBvpj','.windsurf/workflows/rabetbase.md','Codex','.claude/skills/lovrabet/SKILL.md','14461992hUmqcY','claude','qoder','3yzowMX'];a259_0x4d63=function(){return _0x3294e4;};return a259_0x4d63();}
1
+ const a271_0x4e36f1=a271_0x1401;function a271_0x39e5(){const _0x451216=['20575JLhYVI','.cursor/skills/rabetbase.md','Qoder\x20IDE','10JEMlGV','CodeBuddy','17042211MCHtBG','.agent','.codebuddy/skills/lovrabet/SKILL.md','Cline\x20IDE','22KlPKgV','Claude\x20Code','.cline/skills/lovrabet/SKILL.md','codebuddy','agent','其他\x20(通用模板)','Windsurf','2333160iBSyhN','Antigravity','CodeBuddy\x20IDE','.cursorrules','.qoder/skills/lovrabet/SKILL.md','1241485gJsUvB','.qoder','opencode','.opencode','Cursor','windsurf','Cursor\x20IDE','.windsurf','6298908dVzLaX','Codex\x20IDE','.claude','Cline','.codebuddy','.cline','16gFFaDF','file','Windsurf\x20IDE','Trae','.codex','.codex/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','.cursor','claude','cline','Codex','trae','1053436HqxbVQ','SKILL.md.tpl','cursor','1411207NqHjts','antigravity','codex','.trae','.opencode/skills/lovrabet/SKILL.md','Antigravity\x20IDE','qoder','Trae\x20IDE'];a271_0x39e5=function(){return _0x451216;};return a271_0x39e5();}(function(_0x252475,_0x9997a){const _0x4c2e9f=a271_0x1401,_0x360d2d=_0x252475();while(!![]){try{const _0x202d1f=-parseInt(_0x4c2e9f(0xad))/0x1*(-parseInt(_0x4c2e9f(0xb6))/0x2)+parseInt(_0x4c2e9f(0xbd))/0x3+-parseInt(_0x4c2e9f(0xa2))/0x4+parseInt(_0x4c2e9f(0xc2))/0x5+parseInt(_0x4c2e9f(0xca))/0x6+-parseInt(_0x4c2e9f(0xa5))/0x7*(-parseInt(_0x4c2e9f(0xd0))/0x8)+parseInt(_0x4c2e9f(0xb2))/0x9*(-parseInt(_0x4c2e9f(0xb0))/0xa);if(_0x202d1f===_0x9997a)break;else _0x360d2d['push'](_0x360d2d['shift']());}catch(_0x47b291){_0x360d2d['push'](_0x360d2d['shift']());}}}(a271_0x39e5,0x85e48));export const CORE_IDE_CONFIGS={'cursor':{'name':a271_0x4e36f1(0xc6),'description':a271_0x4e36f1(0xc8),'folders':[a271_0x4e36f1(0xc0),a271_0x4e36f1(0x9d)],'files':[{'type':a271_0x4e36f1(0xd1),'path':a271_0x4e36f1(0xae),'template':a271_0x4e36f1(0xa3)}]},'windsurf':{'name':a271_0x4e36f1(0xbc),'description':a271_0x4e36f1(0x98),'folders':[a271_0x4e36f1(0xc9)],'files':[{'type':a271_0x4e36f1(0xd1),'path':'.windsurf/workflows/rabetbase.md','template':a271_0x4e36f1(0xa3)}]},'claude':{'name':a271_0x4e36f1(0xb7),'description':a271_0x4e36f1(0xb7),'folders':[a271_0x4e36f1(0xcc)],'files':[{'type':a271_0x4e36f1(0xd1),'path':'.claude/skills/lovrabet/SKILL.md','template':a271_0x4e36f1(0xa3)}]},'cline':{'name':a271_0x4e36f1(0xcd),'description':a271_0x4e36f1(0xb5),'folders':[a271_0x4e36f1(0xcf)],'files':[{'type':'file','path':a271_0x4e36f1(0xb8),'template':a271_0x4e36f1(0xa3)}]},'codex':{'name':a271_0x4e36f1(0xa0),'description':a271_0x4e36f1(0xcb),'folders':[a271_0x4e36f1(0x9a)],'files':[{'type':'file','path':a271_0x4e36f1(0x9b),'template':a271_0x4e36f1(0xa3)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a271_0x4e36f1(0xc5)],'files':[{'type':'file','path':a271_0x4e36f1(0xa9),'template':a271_0x4e36f1(0xa3)}]},'qoder':{'name':'Qoder','description':a271_0x4e36f1(0xaf),'folders':[a271_0x4e36f1(0xc3)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':'SKILL.md.tpl'},{'type':a271_0x4e36f1(0xd1),'path':a271_0x4e36f1(0xc1),'template':a271_0x4e36f1(0xa3)}]},'codebuddy':{'name':a271_0x4e36f1(0xb1),'description':a271_0x4e36f1(0xbf),'folders':[a271_0x4e36f1(0xce)],'files':[{'type':a271_0x4e36f1(0xd1),'path':a271_0x4e36f1(0xb4),'template':a271_0x4e36f1(0xa3)}]},'trae':{'name':a271_0x4e36f1(0x99),'description':a271_0x4e36f1(0xac),'folders':[a271_0x4e36f1(0xa8)],'files':[{'type':a271_0x4e36f1(0xd1),'path':a271_0x4e36f1(0x9c),'template':a271_0x4e36f1(0xa3)}]}};function a271_0x1401(_0x37ea0d,_0x5a63b5){_0x37ea0d=_0x37ea0d-0x98;const _0x39e551=a271_0x39e5();let _0x140124=_0x39e551[_0x37ea0d];return _0x140124;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a271_0x4e36f1(0xbb),'description':'通用模板\x20-\x20兜底方案','folders':[a271_0x4e36f1(0xb3)],'files':[{'type':a271_0x4e36f1(0xd1),'path':'.agent/skills/lovrabet/SKILL.md','template':a271_0x4e36f1(0xa3)}]},'antigravity':{'name':a271_0x4e36f1(0xbe),'description':a271_0x4e36f1(0xaa),'folders':[a271_0x4e36f1(0xb3)],'files':[{'type':a271_0x4e36f1(0xd1),'path':'.agent/skills/lovrabet/SKILL.md','template':a271_0x4e36f1(0xa3)}]}};export const CORE_IDE_LIST=['claude',a271_0x4e36f1(0x9f),a271_0x4e36f1(0xb9),a271_0x4e36f1(0xa7),a271_0x4e36f1(0xa4),'opencode',a271_0x4e36f1(0xab),a271_0x4e36f1(0xa1),a271_0x4e36f1(0xc7)];export const IDE_LIST=[a271_0x4e36f1(0xa6),a271_0x4e36f1(0x9e),a271_0x4e36f1(0x9f),'codebuddy',a271_0x4e36f1(0xa7),'cursor',a271_0x4e36f1(0xc4),a271_0x4e36f1(0xab),'trae',a271_0x4e36f1(0xc7),a271_0x4e36f1(0xba)];export const ALL_CORE_IDES=[a271_0x4e36f1(0xa4),a271_0x4e36f1(0xc7),a271_0x4e36f1(0x9e),'cline',a271_0x4e36f1(0xa7),a271_0x4e36f1(0xc4),a271_0x4e36f1(0xab),'codebuddy',a271_0x4e36f1(0xa1)];
@@ -1 +1 @@
1
- function a260_0x3c7a(){const _0x24efe4=['16LrYBbM','6VPLaAy','82030dxqZWz','3574753OapFzI','300xsGafa','4102076ismSxI','40117hQECaq','710775CjLJPV','4430ysCeLX','202431vworcv','5616360AURBgV'];a260_0x3c7a=function(){return _0x24efe4;};return a260_0x3c7a();}(function(_0x56ddb3,_0x46d9c5){const _0x391ae5=a260_0x1704,_0x3c1016=_0x56ddb3();while(!![]){try{const _0x19f662=parseInt(_0x391ae5(0x93))/0x1*(-parseInt(_0x391ae5(0x8b))/0x2)+-parseInt(_0x391ae5(0x91))/0x3+-parseInt(_0x391ae5(0x8f))/0x4+parseInt(_0x391ae5(0x8c))/0x5*(-parseInt(_0x391ae5(0x8e))/0x6)+parseInt(_0x391ae5(0x8d))/0x7*(parseInt(_0x391ae5(0x8a))/0x8)+parseInt(_0x391ae5(0x89))/0x9+parseInt(_0x391ae5(0x92))/0xa*(parseInt(_0x391ae5(0x90))/0xb);if(_0x19f662===_0x46d9c5)break;else _0x3c1016['push'](_0x3c1016['shift']());}catch(_0x1354f0){_0x3c1016['push'](_0x3c1016['shift']());}}}(a260_0x3c7a,0x8b666));function a260_0x1704(_0x2d1c65,_0x508503){_0x2d1c65=_0x2d1c65-0x89;const _0x3c7a86=a260_0x3c7a();let _0x17040c=_0x3c7a86[_0x2d1c65];return _0x17040c;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x43db25,_0xed4b5){const _0x5e28c7=a272_0x9bef,_0x165bb5=_0x43db25();while(!![]){try{const _0x44579a=parseInt(_0x5e28c7(0x1b2))/0x1+parseInt(_0x5e28c7(0x1ac))/0x2+parseInt(_0x5e28c7(0x1b1))/0x3+parseInt(_0x5e28c7(0x1ad))/0x4+-parseInt(_0x5e28c7(0x1ae))/0x5+-parseInt(_0x5e28c7(0x1b0))/0x6+-parseInt(_0x5e28c7(0x1b3))/0x7*(parseInt(_0x5e28c7(0x1af))/0x8);if(_0x44579a===_0xed4b5)break;else _0x165bb5['push'](_0x165bb5['shift']());}catch(_0x52a185){_0x165bb5['push'](_0x165bb5['shift']());}}}(a272_0x2767,0xd960c));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a272_0x2767(){const _0x5cdcae=['88hCNNDW','7462542YGOEBv','4997562qiAtQL','577257lkqCmB','841687iyBWyK','1551474lnPbKY','3550720hYFMTg','2248700uxqLIl'];a272_0x2767=function(){return _0x5cdcae;};return a272_0x2767();}function a272_0x9bef(_0x1145e8,_0x35a078){_0x1145e8=_0x1145e8-0x1ac;const _0x2767e4=a272_0x2767();let _0x9bef58=_0x2767e4[_0x1145e8];return _0x9bef58;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x3c7dd7,_0x304d25){const _0xc648b=a261_0x1d43,_0x5c9e04=_0x3c7dd7();while(!![]){try{const _0x17aa3e=parseInt(_0xc648b(0x1a3))/0x1+parseInt(_0xc648b(0x1a1))/0x2*(parseInt(_0xc648b(0x19f))/0x3)+parseInt(_0xc648b(0x19a))/0x4*(-parseInt(_0xc648b(0x194))/0x5)+parseInt(_0xc648b(0x190))/0x6*(-parseInt(_0xc648b(0x198))/0x7)+parseInt(_0xc648b(0x19b))/0x8+parseInt(_0xc648b(0x193))/0x9+-parseInt(_0xc648b(0x195))/0xa*(parseInt(_0xc648b(0x19c))/0xb);if(_0x17aa3e===_0x304d25)break;else _0x5c9e04['push'](_0x5c9e04['shift']());}catch(_0x3017ff){_0x5c9e04['push'](_0x5c9e04['shift']());}}}(a261_0x4c6e,0xb52a1));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x35b02d=a261_0x1d43,_0x364f2f=getTemplateBaseUrl(),_0x5e7568=[_0x364f2f+_0x35b02d(0x197),_0x364f2f+_0x35b02d(0x19e)];for(const _0x678087 of _0x5e7568){try{const _0x576af6=await fetch(_0x678087,{'headers':{'Accept':_0x35b02d(0x191)}});if(!_0x576af6['ok'])continue;const _0x133cdb=await _0x576af6[_0x35b02d(0x199)]();if(!_0x133cdb[_0x35b02d(0x19d)]?.[_0x35b02d(0x1a0)]||!_0x133cdb[_0x35b02d(0x196)]?.[_0x35b02d(0x192)]?.[_0x35b02d(0x1a0)])continue;return _0x133cdb;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a261_0x1d43(_0x5221b3,_0x4a9b9d){_0x5221b3=_0x5221b3-0x190;const _0x4c6ec9=a261_0x4c6e();let _0x1d4308=_0x4c6ec9[_0x5221b3];return _0x1d4308;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a261_0x4c6e(){const _0x4d6e04=['application/json','node','8632269mPpeUT','18165OwNWvv','10zMiCbR','sdk','/config.json','14YRQVmf','json','596MmSghJ','413200XJuHku','9253343NCRLaD','cli','/config/index.json','9NLOMxY','stableVersion','769434AtTAyQ','now','240201DQTdGK','841692GoITWz'];a261_0x4c6e=function(){return _0x4d6e04;};return a261_0x4c6e();}export async function getCdnConfig(){const _0x24ca03=a261_0x1d43,_0x34ad9f=Date[_0x24ca03(0x1a2)]();if(hasCachedConfig){const _0x16cd99=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x34ad9f-cacheTime<_0x16cd99)return cachedConfig;}const _0x5bbd0c=await fetchCdnConfig();return cachedConfig=_0x5bbd0c,cacheTime=_0x34ad9f,hasCachedConfig=!![],_0x5bbd0c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x18cc6a,_0x6a4d44){const _0x5a4209=a273_0x5dba,_0x47e990=_0x18cc6a();while(!![]){try{const _0x2ff756=parseInt(_0x5a4209(0x125))/0x1+parseInt(_0x5a4209(0x128))/0x2*(parseInt(_0x5a4209(0x126))/0x3)+parseInt(_0x5a4209(0x120))/0x4*(-parseInt(_0x5a4209(0x129))/0x5)+parseInt(_0x5a4209(0x124))/0x6*(-parseInt(_0x5a4209(0x11d))/0x7)+-parseInt(_0x5a4209(0x12d))/0x8+-parseInt(_0x5a4209(0x11f))/0x9+-parseInt(_0x5a4209(0x122))/0xa*(-parseInt(_0x5a4209(0x12a))/0xb);if(_0x2ff756===_0x6a4d44)break;else _0x47e990['push'](_0x47e990['shift']());}catch(_0x4c2bc9){_0x47e990['push'](_0x47e990['shift']());}}}(a273_0x455a,0xec8a2));import{getTemplateBaseUrl}from'../utils/config.js';function a273_0x455a(){const _0x5a2951=['20kYIdFH','sdk','42QNuhft','1248365mdkIXu','426597mpxBcE','stableVersion','22kffjPr','115yeVrSj','13188725gwHSol','node','cli','12743432ueYgBI','15589LhhjUD','json','13083741ehgHQZ','205108OxEabj','now'];a273_0x455a=function(){return _0x5a2951;};return a273_0x455a();}export async function fetchCdnConfig(){const _0x2f3872=a273_0x5dba,_0x16b07b=getTemplateBaseUrl(),_0x741188=[_0x16b07b+'/config.json',_0x16b07b+'/config/index.json'];for(const _0x4a9a9d of _0x741188){try{const _0x4188d1=await fetch(_0x4a9a9d,{'headers':{'Accept':'application/json'}});if(!_0x4188d1['ok'])continue;const _0x4e1579=await _0x4188d1[_0x2f3872(0x11e)]();if(!_0x4e1579[_0x2f3872(0x12c)]?.[_0x2f3872(0x127)]||!_0x4e1579[_0x2f3872(0x123)]?.[_0x2f3872(0x12b)]?.['stableVersion'])continue;return _0x4e1579;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a273_0x5dba(_0x4061be,_0x544452){_0x4061be=_0x4061be-0x11d;const _0x455ab4=a273_0x455a();let _0x5dbae8=_0x455ab4[_0x4061be];return _0x5dbae8;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x469123=a273_0x5dba,_0x4a982d=Date[_0x469123(0x121)]();if(hasCachedConfig){const _0x461097=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4a982d-cacheTime<_0x461097)return cachedConfig;}const _0x39ab7a=await fetchCdnConfig();return cachedConfig=_0x39ab7a,cacheTime=_0x4a982d,hasCachedConfig=!![],_0x39ab7a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x262adf,_0xfa30b){const _0x4aa8b0=a262_0x5a8c,_0x142109=_0x262adf();while(!![]){try{const _0x49d98a=-parseInt(_0x4aa8b0(0x87))/0x1+-parseInt(_0x4aa8b0(0x9e))/0x2*(parseInt(_0x4aa8b0(0x92))/0x3)+parseInt(_0x4aa8b0(0x7e))/0x4*(parseInt(_0x4aa8b0(0x7f))/0x5)+parseInt(_0x4aa8b0(0x96))/0x6+parseInt(_0x4aa8b0(0x80))/0x7+parseInt(_0x4aa8b0(0x88))/0x8*(parseInt(_0x4aa8b0(0x7c))/0x9)+-parseInt(_0x4aa8b0(0x8d))/0xa;if(_0x49d98a===_0xfa30b)break;else _0x142109['push'](_0x142109['shift']());}catch(_0x253862){_0x142109['push'](_0x142109['shift']());}}}(a262_0x5e0d,0x5877f));import a262_0x29dd4 from'node:fs';import a262_0x10a149 from'node:path';import a262_0x469bf5 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function a262_0x5e0d(){const _0x4a6398=['npm\x20install\x20','4675780TgeFsH','@lovrabet/sdk','\x1b[1m','\x20\x20\x20Current\x20version:\x20','all','23736cdArqF','\x1b[0m','devDependencies','existsSync','699930ACbiKl','packageName','sdk','coerce','dependencies','join','test','readFileSync','46jjqKaN','needsUpgrade','\x1b[33m','some','↪\x20SDK\x20update\x20available','version','11538vTGxhC','package.json','41156ySwJdH','185LCqJUD','1763804TgILIg','node','log','\x20\x20\x20Upgrade\x20command:\x20','stableVersion','\x20\x20\x20Stable\x20version:\x20','latest','59181OgnhyR','2008tHiCEN','parse','node_modules','utf8'];a262_0x5e0d=function(){return _0x4a6398;};return a262_0x5e0d();}function isNonNumericVersion(_0x273c5b){const _0x4a2d31=a262_0x5a8c,_0x1bb2ec=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1bb2ec[_0x4a2d31(0xa1)](_0x19beaf=>_0x19beaf[_0x4a2d31(0x9c)](_0x273c5b));}function getInstalledVersion(_0x3aa0a8,_0x5ac3c7){const _0x2408ab=a262_0x5a8c;try{const _0xa85878=a262_0x10a149[_0x2408ab(0x9b)](_0x3aa0a8,_0x2408ab(0x8a),_0x5ac3c7,'package.json');if(a262_0x29dd4[_0x2408ab(0x95)](_0xa85878)){const _0x36fe48=JSON['parse'](a262_0x29dd4[_0x2408ab(0x9d)](_0xa85878,'utf-8'));return _0x36fe48[_0x2408ab(0xa3)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x30acc7=a262_0x5a8c;try{const _0x3604d7=await getCdnConfig();return _0x3604d7?.[_0x30acc7(0x98)]?.[_0x30acc7(0x81)]?.[_0x30acc7(0x84)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4d6e56=a262_0x5a8c;try{const _0x371393=await getCdnConfig();return _0x371393?.[_0x4d6e56(0x98)]?.[_0x4d6e56(0x81)]?.['packageName']||_0x4d6e56(0x8e);}catch{return _0x4d6e56(0x8e);}}export async function checkSdkVersion(_0x984aec){const _0x48606d=a262_0x5a8c,_0x455fae=a262_0x10a149[_0x48606d(0x9b)](_0x984aec,_0x48606d(0x7d)),[_0x4279e6,_0x35703b]=await Promise[_0x48606d(0x91)]([getSdkStableVersion(),getSdkPackageName()]),_0x55b67c=_0x4279e6||FALLBACK_MIN_SDK_VERSION;if(!a262_0x29dd4['existsSync'](_0x455fae))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55b67c,'packageName':_0x35703b,'stableVersion':_0x4279e6};try{const _0x59ec21=JSON[_0x48606d(0x89)](a262_0x29dd4[_0x48606d(0x9d)](_0x455fae,_0x48606d(0x8b))),_0xbfba6=_0x59ec21[_0x48606d(0x9a)]||{},_0x30519d=_0x59ec21[_0x48606d(0x94)]||{},_0x25e552=_0xbfba6[_0x35703b]||_0x30519d[_0x35703b];if(!_0x25e552)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55b67c,'packageName':_0x35703b,'stableVersion':_0x4279e6};let _0x28ac38=getInstalledVersion(_0x984aec,_0x35703b);!_0x28ac38&&(_0x28ac38=_0x25e552);if(isNonNumericVersion(_0x25e552))return{'installed':!![],'version':_0x28ac38,'needsUpgrade':![],'minVersion':_0x55b67c,'packageName':_0x35703b,'stableVersion':_0x4279e6};const _0x5e3aae=a262_0x469bf5[_0x48606d(0x99)](_0x28ac38),_0x328ed3=a262_0x469bf5[_0x48606d(0x99)](_0x55b67c),_0xd43bf0=_0x5e3aae&&_0x328ed3?a262_0x469bf5['lt'](_0x5e3aae,_0x328ed3):![];return{'installed':!![],'version':_0x28ac38,'needsUpgrade':_0xd43bf0,'minVersion':_0x55b67c,'packageName':_0x35703b,'stableVersion':_0x4279e6};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55b67c,'packageName':_0x35703b,'stableVersion':_0x4279e6};}}export function checkSdkVersionSync(_0x446a62){const _0x432c4a=a262_0x5a8c,_0xea5fda=a262_0x10a149['join'](_0x446a62,'package.json'),_0x2b3256=_0x432c4a(0x8e);if(!a262_0x29dd4[_0x432c4a(0x95)](_0xea5fda))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b3256,'stableVersion':null};try{const _0xb7b29c=JSON['parse'](a262_0x29dd4[_0x432c4a(0x9d)](_0xea5fda,'utf8')),_0x4fd51f=_0xb7b29c['dependencies']||{},_0x56d97d=_0xb7b29c[_0x432c4a(0x94)]||{},_0x3a5960=_0x4fd51f[_0x2b3256]||_0x56d97d[_0x2b3256];if(!_0x3a5960)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b3256,'stableVersion':null};let _0x1da3ca=getInstalledVersion(_0x446a62,_0x2b3256);!_0x1da3ca&&(_0x1da3ca=_0x3a5960);if(isNonNumericVersion(_0x3a5960))return{'installed':!![],'version':_0x1da3ca,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b3256,'stableVersion':null};const _0x339f0c=a262_0x469bf5[_0x432c4a(0x99)](_0x1da3ca),_0x1e8014=_0x339f0c?a262_0x469bf5['lt'](_0x339f0c,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1da3ca,'needsUpgrade':_0x1e8014,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b3256,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2b3256,'stableVersion':null};}}function a262_0x5a8c(_0x51edbd,_0x4102de){_0x51edbd=_0x51edbd-0x7c;const _0x5e0d73=a262_0x5e0d();let _0x5a8ce0=_0x5e0d73[_0x51edbd];return _0x5a8ce0;}export function printSdkUpgradeWarning(_0x34234c){const _0x33259e=a262_0x5a8c;if(!_0x34234c[_0x33259e(0x9f)])return;const _0x64553b=_0x33259e(0xa0),_0x50be65=_0x33259e(0x93),_0x48b070=_0x33259e(0x8f),_0x5a4fda=_0x34234c[_0x33259e(0x97)]||'@lovrabet/sdk',_0x28efb8=_0x34234c[_0x33259e(0x84)]||_0x34234c['minVersion'],_0x2b9725=_0x33259e(0x8c)+_0x5a4fda+'@'+(_0x28efb8||_0x33259e(0x86));console[_0x33259e(0x82)](),console['log'](''+_0x64553b+_0x48b070+_0x33259e(0xa2)+_0x50be65),console[_0x33259e(0x82)](_0x64553b+_0x33259e(0x90)+_0x5a4fda+'@'+_0x34234c[_0x33259e(0xa3)]+_0x50be65),console['log'](_0x64553b+_0x33259e(0x85)+_0x28efb8+_0x50be65),console['log'](_0x64553b+_0x33259e(0x83)+_0x2b9725+_0x50be65),console[_0x33259e(0x82)]();}
1
+ const a274_0x37f2df=a274_0x1953;(function(_0xfd6f8a,_0x3a2a67){const _0x438b11=a274_0x1953,_0x572415=_0xfd6f8a();while(!![]){try{const _0x5374a5=parseInt(_0x438b11(0xef))/0x1+-parseInt(_0x438b11(0xd1))/0x2*(parseInt(_0x438b11(0xdd))/0x3)+parseInt(_0x438b11(0xec))/0x4*(-parseInt(_0x438b11(0xe8))/0x5)+parseInt(_0x438b11(0xeb))/0x6+parseInt(_0x438b11(0xee))/0x7*(-parseInt(_0x438b11(0xd6))/0x8)+-parseInt(_0x438b11(0xcf))/0x9+parseInt(_0x438b11(0xe0))/0xa;if(_0x5374a5===_0x3a2a67)break;else _0x572415['push'](_0x572415['shift']());}catch(_0x4690cb){_0x572415['push'](_0x572415['shift']());}}}(a274_0x4dfb,0xc965d));import a274_0x441048 from'node:fs';import a274_0x5a624b from'node:path';import a274_0x1b2caf from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a274_0x37f2df(0xdc);function isNonNumericVersion(_0x4f1051){const _0x4183b7=a274_0x37f2df,_0x541ffe=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x541ffe[_0x4183b7(0xd5)](_0x179745=>_0x179745[_0x4183b7(0xe1)](_0x4f1051));}function a274_0x1953(_0x5361d7,_0xb17f81){_0x5361d7=_0x5361d7-0xca;const _0x4dfbb2=a274_0x4dfb();let _0x1953c8=_0x4dfbb2[_0x5361d7];return _0x1953c8;}function getInstalledVersion(_0x5e2dd6,_0x435508){const _0x507425=a274_0x37f2df;try{const _0x5953e4=a274_0x5a624b[_0x507425(0xd0)](_0x5e2dd6,_0x507425(0xcb),_0x435508,'package.json');if(a274_0x441048['existsSync'](_0x5953e4)){const _0x35c2cc=JSON['parse'](a274_0x441048['readFileSync'](_0x5953e4,'utf-8'));return _0x35c2cc[_0x507425(0xea)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4f053f=a274_0x37f2df;try{const _0x520343=await getCdnConfig();return _0x520343?.['sdk']?.[_0x4f053f(0xed)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x2f5e87=a274_0x37f2df;try{const _0x4f644e=await getCdnConfig();return _0x4f644e?.[_0x2f5e87(0xe6)]?.[_0x2f5e87(0xed)]?.[_0x2f5e87(0xd7)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x192812){const _0x4dfad0=a274_0x37f2df,_0x201fc6=a274_0x5a624b[_0x4dfad0(0xd0)](_0x192812,_0x4dfad0(0xde)),[_0x10db27,_0x368e19]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x4e7eec=_0x10db27||FALLBACK_MIN_SDK_VERSION;if(!a274_0x441048[_0x4dfad0(0xe9)](_0x201fc6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};try{const _0x18f9e9=JSON['parse'](a274_0x441048[_0x4dfad0(0xd2)](_0x201fc6,_0x4dfad0(0xe4))),_0x45d721=_0x18f9e9[_0x4dfad0(0xe5)]||{},_0x28e47c=_0x18f9e9['devDependencies']||{},_0xd398ef=_0x45d721[_0x368e19]||_0x28e47c[_0x368e19];if(!_0xd398ef)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};let _0x2289a2=getInstalledVersion(_0x192812,_0x368e19);!_0x2289a2&&(_0x2289a2=_0xd398ef);if(isNonNumericVersion(_0xd398ef))return{'installed':!![],'version':_0x2289a2,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};const _0x4c3a18=a274_0x1b2caf[_0x4dfad0(0xd3)](_0x2289a2),_0x2a13ff=a274_0x1b2caf[_0x4dfad0(0xd3)](_0x4e7eec),_0x2cfd7f=_0x4c3a18&&_0x2a13ff?a274_0x1b2caf['lt'](_0x4c3a18,_0x2a13ff):![];return{'installed':!![],'version':_0x2289a2,'needsUpgrade':_0x2cfd7f,'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};}}export function checkSdkVersionSync(_0x6120c5){const _0x933195=a274_0x37f2df,_0x47dcf2=a274_0x5a624b[_0x933195(0xd0)](_0x6120c5,_0x933195(0xde)),_0x887adc=_0x933195(0xe3);if(!a274_0x441048[_0x933195(0xe9)](_0x47dcf2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};try{const _0x1e3d7a=JSON['parse'](a274_0x441048[_0x933195(0xd2)](_0x47dcf2,_0x933195(0xe4))),_0x1d742b=_0x1e3d7a['dependencies']||{},_0x2661cb=_0x1e3d7a[_0x933195(0xe2)]||{},_0x474852=_0x1d742b[_0x887adc]||_0x2661cb[_0x887adc];if(!_0x474852)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};let _0x27ec0a=getInstalledVersion(_0x6120c5,_0x887adc);!_0x27ec0a&&(_0x27ec0a=_0x474852);if(isNonNumericVersion(_0x474852))return{'installed':!![],'version':_0x27ec0a,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};const _0x2c1ebe=a274_0x1b2caf[_0x933195(0xd3)](_0x27ec0a),_0x5c3ce4=_0x2c1ebe?a274_0x1b2caf['lt'](_0x2c1ebe,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x27ec0a,'needsUpgrade':_0x5c3ce4,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};}}function a274_0x4dfb(){const _0x28597c=['10801000iREhaG','test','devDependencies','@lovrabet/sdk','utf8','dependencies','sdk','latest','5mZTsdZ','existsSync','version','5940954VuldRU','207852uzEHAu','node','1302AyiEzp','290022WLyMdC','\x20\x20\x20Current\x20version:\x20','node_modules','minVersion','log','\x20\x20\x20Upgrade\x20command:\x20','4379049XTrPjK','join','16wyCdfk','readFileSync','coerce','\x1b[1m','some','23104BXKpAp','packageName','stableVersion','needsUpgrade','↪\x20SDK\x20update\x20available','npm\x20install\x20','1.2.0','172374DAsOWk','package.json','\x1b[33m'];a274_0x4dfb=function(){return _0x28597c;};return a274_0x4dfb();}export function printSdkUpgradeWarning(_0x145106){const _0x23655e=a274_0x37f2df;if(!_0x145106[_0x23655e(0xd9)])return;const _0x3cf367=_0x23655e(0xdf),_0x46530e='\x1b[0m',_0x44d7f3=_0x23655e(0xd4),_0x3e523c=_0x145106[_0x23655e(0xd7)]||'@lovrabet/sdk',_0x28fd01=_0x145106[_0x23655e(0xd8)]||_0x145106[_0x23655e(0xcc)],_0x3a05ec=_0x23655e(0xdb)+_0x3e523c+'@'+(_0x28fd01||_0x23655e(0xe7));console[_0x23655e(0xcd)](),console[_0x23655e(0xcd)](''+_0x3cf367+_0x44d7f3+_0x23655e(0xda)+_0x46530e),console[_0x23655e(0xcd)](_0x3cf367+_0x23655e(0xca)+_0x3e523c+'@'+_0x145106[_0x23655e(0xea)]+_0x46530e),console[_0x23655e(0xcd)](_0x3cf367+'\x20\x20\x20Stable\x20version:\x20'+_0x28fd01+_0x46530e),console[_0x23655e(0xcd)](_0x3cf367+_0x23655e(0xce)+_0x3a05ec+_0x46530e),console[_0x23655e(0xcd)]();}
@@ -1 +1 @@
1
- (function(_0x295f81,_0x1c80b3){const _0x2f7d45=a263_0x1231,_0x12dc30=_0x295f81();while(!![]){try{const _0x4bac92=-parseInt(_0x2f7d45(0x177))/0x1*(parseInt(_0x2f7d45(0x15b))/0x2)+parseInt(_0x2f7d45(0x160))/0x3+parseInt(_0x2f7d45(0x176))/0x4+parseInt(_0x2f7d45(0x166))/0x5+parseInt(_0x2f7d45(0x159))/0x6*(-parseInt(_0x2f7d45(0x163))/0x7)+-parseInt(_0x2f7d45(0x162))/0x8*(parseInt(_0x2f7d45(0x16b))/0x9)+parseInt(_0x2f7d45(0x16c))/0xa*(parseInt(_0x2f7d45(0x15a))/0xb);if(_0x4bac92===_0x1c80b3)break;else _0x12dc30['push'](_0x12dc30['shift']());}catch(_0x1c9a89){_0x12dc30['push'](_0x12dc30['shift']());}}}(a263_0x5069,0xabf42));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a263_0x1d123d 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(_0x3c20b0){const _0x42ab9c=a263_0x1231,_0x19348a=_0x3c20b0['stableVersion']||_0x42ab9c(0x153);return _0x42ab9c(0x167)+NPM_PACKAGE_NAME+'@'+_0x19348a;}function getCurrentCliVersion(){const _0x2580e3=a263_0x1231;try{const _0x181c26=fileURLToPath(import.meta.url),_0x2f12b8=resolve(dirname(_0x181c26),_0x2580e3(0x16f)),_0x1c5e60=resolve(_0x2f12b8,'package.json'),_0x197e0e=JSON['parse'](readFileSync(_0x1c5e60,_0x2580e3(0x175)));return _0x197e0e[_0x2580e3(0x16d)]||_0x2580e3(0x165);}catch{return _0x2580e3(0x165);}}export async function checkCliVersion(){const _0x2ec044=a263_0x1231,_0x145489=getCurrentCliVersion(),_0x5cff5c=await getCliVersionPolicy(),_0x5de5be=_0x5cff5c?.['stableVersion']||null,_0x2777d2=_0x5cff5c?.[_0x2ec044(0x173)]||null;let _0x530992=![],_0x3a5b4e=![];const _0x1e1421=a263_0x1d123d[_0x2ec044(0x172)](_0x145489);if(_0x1e1421&&_0x5de5be)try{const _0x884499=a263_0x1d123d[_0x2ec044(0x172)](_0x5de5be);if(_0x884499)_0x530992=a263_0x1d123d['lt'](_0x1e1421,_0x884499);}catch{}if(_0x1e1421&&_0x2777d2)try{const _0x2d2831=a263_0x1d123d[_0x2ec044(0x172)](_0x2777d2);if(_0x2d2831)_0x3a5b4e=a263_0x1d123d['lt'](_0x1e1421,_0x2d2831);}catch{}return _0x3a5b4e&&(_0x530992=!![]),{'currentVersion':_0x145489,'stableVersion':_0x5de5be,'minimumVersion':_0x2777d2,'needsUpgrade':_0x530992,'belowMinimum':_0x3a5b4e,'isPreRelease':![],'upgradeMessage':_0x5cff5c?.['upgradeMessage'],'minimumVersionMessage':_0x5cff5c?.[_0x2ec044(0x155)]};}function a263_0x1231(_0x11c64e,_0x3aea71){_0x11c64e=_0x11c64e-0x151;const _0x506956=a263_0x5069();let _0x123122=_0x506956[_0x11c64e];return _0x123122;}export function printCliUpgradeWarning(_0x355f52){const _0x1b6c0c=a263_0x1231;if(!_0x355f52[_0x1b6c0c(0x151)]&&!_0x355f52[_0x1b6c0c(0x15f)])return;const _0x191fa9=_0x1b6c0c(0x171),_0x2a7511=_0x1b6c0c(0x178),_0x813a0d=_0x1b6c0c(0x179),_0x434258='\x1b[1m',_0x103915=getCliUpgradeCommand(_0x355f52);console[_0x1b6c0c(0x169)](),_0x355f52['belowMinimum']?(console[_0x1b6c0c(0x169)](''+_0x191fa9+_0x434258+_0x1b6c0c(0x154)+_0x813a0d),console['log'](_0x191fa9+_0x1b6c0c(0x15e)+_0x355f52[_0x1b6c0c(0x156)]+_0x813a0d),_0x355f52[_0x1b6c0c(0x173)]&&console[_0x1b6c0c(0x169)](_0x191fa9+_0x1b6c0c(0x15d)+_0x355f52['minimumVersion']+_0x813a0d),_0x355f52[_0x1b6c0c(0x164)]&&_0x355f52[_0x1b6c0c(0x164)]!==_0x355f52['minimumVersion']&&console[_0x1b6c0c(0x169)](_0x191fa9+_0x1b6c0c(0x152)+_0x355f52[_0x1b6c0c(0x164)]+_0x813a0d),_0x355f52['minimumVersionMessage']&&console['log'](_0x191fa9+_0x1b6c0c(0x174)+_0x355f52[_0x1b6c0c(0x155)]+_0x813a0d),console[_0x1b6c0c(0x169)](_0x191fa9+_0x1b6c0c(0x16e)+_0x103915+_0x813a0d)):(console[_0x1b6c0c(0x169)](''+_0x2a7511+_0x434258+'↪\x20New\x20version\x20available'+_0x813a0d),console[_0x1b6c0c(0x169)](_0x2a7511+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x355f52[_0x1b6c0c(0x156)]+_0x813a0d),console['log'](_0x2a7511+_0x1b6c0c(0x170)+_0x355f52[_0x1b6c0c(0x164)]+_0x813a0d),_0x355f52[_0x1b6c0c(0x158)]&&console[_0x1b6c0c(0x169)](_0x2a7511+_0x1b6c0c(0x174)+_0x355f52[_0x1b6c0c(0x158)]+_0x813a0d),console[_0x1b6c0c(0x169)](_0x2a7511+_0x1b6c0c(0x16e)+_0x103915+_0x813a0d)),console[_0x1b6c0c(0x169)]();}export function assertCliVersionSupported(_0x28c2a6){const _0xf25af8=a263_0x1231;if(!_0x28c2a6[_0xf25af8(0x15f)])return;const _0x514a18=[_0x28c2a6[_0xf25af8(0x155)],_0xf25af8(0x16a)+_0x28c2a6[_0xf25af8(0x156)],_0x28c2a6[_0xf25af8(0x173)]?'Minimum\x20supported:\x20'+_0x28c2a6['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x28c2a6)][_0xf25af8(0x161)](Boolean)[_0xf25af8(0x157)]('\x0a');throw CliErrors[_0xf25af8(0x15c)](_0xf25af8(0x168),_0x514a18);}function a263_0x5069(){const _0x532914=['minimumVersion','\x20\x20\x20','utf-8','4325224ygwlNW','1sRRrvA','\x1b[33m','\x1b[0m','needsUpgrade','\x20\x20\x20Recommended\x20stable:\x20','latest','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersionMessage','currentVersion','join','upgradeMessage','6EVcePM','917213VlUAgt','2471754XyCldF','validation','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','belowMinimum','1118523BggZbQ','filter','8906312lpwGcX','2892414leUDSZ','stableVersion','1.0.0','2975160ANaMhG','npm\x20install\x20-g\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','log','Current\x20version:\x20','9EtmpIi','170MqZcEy','version','\x20\x20\x20Upgrade\x20command:\x20','../..','\x20\x20\x20Stable\x20version:\x20','\x1b[31m','coerce'];a263_0x5069=function(){return _0x532914;};return a263_0x5069();}
1
+ (function(_0x4cf4f3,_0x48a729){const _0x117cc0=a275_0x3a02,_0x276896=_0x4cf4f3();while(!![]){try{const _0x42d8af=parseInt(_0x117cc0(0x1d9))/0x1+-parseInt(_0x117cc0(0x1d5))/0x2+-parseInt(_0x117cc0(0x1d1))/0x3*(-parseInt(_0x117cc0(0x1e9))/0x4)+parseInt(_0x117cc0(0x1dd))/0x5*(parseInt(_0x117cc0(0x1e3))/0x6)+-parseInt(_0x117cc0(0x1cc))/0x7+-parseInt(_0x117cc0(0x1d3))/0x8*(-parseInt(_0x117cc0(0x1da))/0x9)+parseInt(_0x117cc0(0x1db))/0xa*(-parseInt(_0x117cc0(0x1d2))/0xb);if(_0x42d8af===_0x48a729)break;else _0x276896['push'](_0x276896['shift']());}catch(_0x5e8ea1){_0x276896['push'](_0x276896['shift']());}}}(a275_0x1c4e,0xdb04b));function a275_0x3a02(_0x5aa63f,_0x4dc2ee){_0x5aa63f=_0x5aa63f-0x1cc;const _0x1c4ebf=a275_0x1c4e();let _0x3a02cb=_0x1c4ebf[_0x5aa63f];return _0x3a02cb;}import{readFileSync}from'node:fs';function a275_0x1c4e(){const _0x404645=['log','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','\x1b[1m','filter','package.json','\x20\x20\x20Current\x20CLI\x20version:\x20','10191363fWpVBb','\x1b[31m','\x20\x20\x20','minimumVersionMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','1385427fejYgG','26322329pONTDY','16vZTWQS','\x20\x20\x20Minimum\x20supported:\x20','351840ZKpxgX','\x1b[33m','upgradeMessage','coerce','969310bsSsga','8063037lsFtUk','10CutnrV','currentVersion','215MNywub','minimumVersion','join','../..','Minimum\x20supported:\x20','Current\x20version:\x20','172626ozuexQ','validation','parse','belowMinimum','utf-8','\x20\x20\x20Recommended\x20stable:\x20','8gWzDhM','\x20\x20\x20Stable\x20version:\x20','stableVersion','latest'];a275_0x1c4e=function(){return _0x404645;};return a275_0x1c4e();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a275_0x5ed8a1 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(_0xd54ba3){const _0x132230=a275_0x3a02,_0x26f41f=_0xd54ba3[_0x132230(0x1eb)]||_0x132230(0x1ec);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x26f41f;}function getCurrentCliVersion(){const _0x4b7c87=a275_0x3a02;try{const _0x44db2d=fileURLToPath(import.meta.url),_0x298523=resolve(dirname(_0x44db2d),_0x4b7c87(0x1e0)),_0x59b101=resolve(_0x298523,_0x4b7c87(0x1f3)),_0x51b760=JSON[_0x4b7c87(0x1e5)](readFileSync(_0x59b101,_0x4b7c87(0x1e7)));return _0x51b760['version']||_0x4b7c87(0x1f0);}catch{return _0x4b7c87(0x1f0);}}export async function checkCliVersion(){const _0x84b7b2=a275_0x3a02,_0x3a3893=getCurrentCliVersion(),_0x4812ce=await getCliVersionPolicy(),_0x16f93a=_0x4812ce?.['stableVersion']||null,_0x5a1c38=_0x4812ce?.[_0x84b7b2(0x1de)]||null;let _0x208715=![],_0x493049=![];const _0x478c69=a275_0x5ed8a1[_0x84b7b2(0x1d8)](_0x3a3893);if(_0x478c69&&_0x16f93a)try{const _0xf6594e=a275_0x5ed8a1[_0x84b7b2(0x1d8)](_0x16f93a);if(_0xf6594e)_0x208715=a275_0x5ed8a1['lt'](_0x478c69,_0xf6594e);}catch{}if(_0x478c69&&_0x5a1c38)try{const _0x5aca8c=a275_0x5ed8a1[_0x84b7b2(0x1d8)](_0x5a1c38);if(_0x5aca8c)_0x493049=a275_0x5ed8a1['lt'](_0x478c69,_0x5aca8c);}catch{}return _0x493049&&(_0x208715=!![]),{'currentVersion':_0x3a3893,'stableVersion':_0x16f93a,'minimumVersion':_0x5a1c38,'needsUpgrade':_0x208715,'belowMinimum':_0x493049,'isPreRelease':![],'upgradeMessage':_0x4812ce?.[_0x84b7b2(0x1d7)],'minimumVersionMessage':_0x4812ce?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x3f5438){const _0x4e3445=a275_0x3a02;if(!_0x3f5438['needsUpgrade']&&!_0x3f5438[_0x4e3445(0x1e6)])return;const _0x497c3d=_0x4e3445(0x1cd),_0x4e4bc0=_0x4e3445(0x1d6),_0x37b34a='\x1b[0m',_0x23aec9=_0x4e3445(0x1f1),_0x403d2b=getCliUpgradeCommand(_0x3f5438);console['log'](),_0x3f5438['belowMinimum']?(console[_0x4e3445(0x1ed)](''+_0x497c3d+_0x23aec9+_0x4e3445(0x1d0)+_0x37b34a),console['log'](_0x497c3d+_0x4e3445(0x1f4)+_0x3f5438[_0x4e3445(0x1dc)]+_0x37b34a),_0x3f5438[_0x4e3445(0x1de)]&&console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1d4)+_0x3f5438['minimumVersion']+_0x37b34a),_0x3f5438[_0x4e3445(0x1eb)]&&_0x3f5438[_0x4e3445(0x1eb)]!==_0x3f5438[_0x4e3445(0x1de)]&&console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1e8)+_0x3f5438[_0x4e3445(0x1eb)]+_0x37b34a),_0x3f5438['minimumVersionMessage']&&console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1ce)+_0x3f5438[_0x4e3445(0x1cf)]+_0x37b34a),console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1ef)+_0x403d2b+_0x37b34a)):(console['log'](''+_0x4e4bc0+_0x23aec9+'↪\x20New\x20version\x20available'+_0x37b34a),console['log'](_0x4e4bc0+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3f5438[_0x4e3445(0x1dc)]+_0x37b34a),console['log'](_0x4e4bc0+_0x4e3445(0x1ea)+_0x3f5438[_0x4e3445(0x1eb)]+_0x37b34a),_0x3f5438['upgradeMessage']&&console['log'](_0x4e4bc0+_0x4e3445(0x1ce)+_0x3f5438[_0x4e3445(0x1d7)]+_0x37b34a),console[_0x4e3445(0x1ed)](_0x4e4bc0+_0x4e3445(0x1ef)+_0x403d2b+_0x37b34a)),console[_0x4e3445(0x1ed)]();}export function assertCliVersionSupported(_0x56bcaa){const _0x1d6fe1=a275_0x3a02;if(!_0x56bcaa[_0x1d6fe1(0x1e6)])return;const _0x3d8965=[_0x56bcaa[_0x1d6fe1(0x1cf)],_0x1d6fe1(0x1e2)+_0x56bcaa[_0x1d6fe1(0x1dc)],_0x56bcaa[_0x1d6fe1(0x1de)]?_0x1d6fe1(0x1e1)+_0x56bcaa[_0x1d6fe1(0x1de)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x56bcaa)][_0x1d6fe1(0x1f2)](Boolean)[_0x1d6fe1(0x1df)]('\x0a');throw CliErrors[_0x1d6fe1(0x1e4)](_0x1d6fe1(0x1ee),_0x3d8965);}
@@ -1 +1 @@
1
- function a264_0x5000(){const _0x40ed6b=['2VMbqXg','signal','upgradeMessage','application/json','object','2087561oiOLJw','5856KMoxkT','latestVersion','8WzCvQi','70759oUrJPV','157845rUSGGL','json','3505020FepcPD','minimumVersionMessage','cli','length','stableVersion','minimumVersion','970CQDAeR','trim','1108324PtFELV','minVersion','recommendedVersion','428436ACOPgu'];a264_0x5000=function(){return _0x40ed6b;};return a264_0x5000();}(function(_0x486298,_0x145fbe){const _0x1cf677=a264_0x15d1,_0x30e2ef=_0x486298();while(!![]){try{const _0x23dd73=-parseInt(_0x1cf677(0x139))/0x1*(-parseInt(_0x1cf677(0x130))/0x2)+-parseInt(_0x1cf677(0x13a))/0x3+parseInt(_0x1cf677(0x12c))/0x4+-parseInt(_0x1cf677(0x12a))/0x5*(parseInt(_0x1cf677(0x136))/0x6)+parseInt(_0x1cf677(0x135))/0x7*(-parseInt(_0x1cf677(0x138))/0x8)+parseInt(_0x1cf677(0x12f))/0x9+parseInt(_0x1cf677(0x13c))/0xa;if(_0x23dd73===_0x145fbe)break;else _0x30e2ef['push'](_0x30e2ef['shift']());}catch(_0x1d32c2){_0x30e2ef['push'](_0x30e2ef['shift']());}}}(a264_0x5000,0x323c4));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(_0x79910a){const _0xc579b=a264_0x15d1;return typeof _0x79910a==='string'&&_0x79910a[_0xc579b(0x12b)]()[_0xc579b(0x13f)]>0x0?_0x79910a['trim']():null;}function normalizeCliVersionPolicy(_0x375346){const _0x5d9b19=a264_0x15d1;if(!_0x375346||typeof _0x375346!=='object')return null;const _0x2f2566=_0x375346,_0x2dde86=_0x2f2566[_0x5d9b19(0x13e)]&&typeof _0x2f2566[_0x5d9b19(0x13e)]===_0x5d9b19(0x134)?_0x2f2566[_0x5d9b19(0x13e)]:_0x2f2566,_0x3cb3df=pickString(_0x2dde86[_0x5d9b19(0x140)])||pickString(_0x2dde86[_0x5d9b19(0x137)])||pickString(_0x2dde86[_0x5d9b19(0x12e)]),_0x102d0d=pickString(_0x2dde86[_0x5d9b19(0x141)])||pickString(_0x2dde86[_0x5d9b19(0x12d)]);if(!_0x3cb3df&&!_0x102d0d)return null;return{'stableVersion':_0x3cb3df,'minimumVersion':_0x102d0d,'upgradeMessage':pickString(_0x2dde86[_0x5d9b19(0x132)])||undefined,'minimumVersionMessage':pickString(_0x2dde86[_0x5d9b19(0x13d)])||undefined};}export async function fetchCliVersionPolicy(){const _0x4283cf=a264_0x15d1,_0x36580d=new AbortController(),_0x548ec4=setTimeout(()=>_0x36580d['abort'](),FETCH_TIMEOUT_MS);try{const _0x15d882=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4283cf(0x133)},'signal':_0x36580d[_0x4283cf(0x131)]});if(!_0x15d882['ok'])return null;const _0x24672d=await _0x15d882[_0x4283cf(0x13b)]();return normalizeCliVersionPolicy(_0x24672d);}catch{return null;}finally{clearTimeout(_0x548ec4);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a264_0x15d1(_0x55fd32,_0x3d4283){_0x55fd32=_0x55fd32-0x12a;const _0x5000b5=a264_0x5000();let _0x15d1f5=_0x5000b5[_0x55fd32];return _0x15d1f5;}export async function getCliVersionPolicy(){const _0x2d0530=Date['now']();if(hasCachedPolicy){const _0x4a7d84=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2d0530-cacheTime<_0x4a7d84)return cachedPolicy;}const _0x1338ed=await fetchCliVersionPolicy();return cachedPolicy=_0x1338ed,cacheTime=_0x2d0530,hasCachedPolicy=!![],_0x1338ed;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x7ea719,_0x2295d5){const _0x1ab892=a276_0xaeb3,_0x17958e=_0x7ea719();while(!![]){try{const _0x4b21d8=parseInt(_0x1ab892(0xbf))/0x1*(-parseInt(_0x1ab892(0xc8))/0x2)+-parseInt(_0x1ab892(0xbb))/0x3+parseInt(_0x1ab892(0xb7))/0x4+-parseInt(_0x1ab892(0xb5))/0x5*(parseInt(_0x1ab892(0xc5))/0x6)+parseInt(_0x1ab892(0xb9))/0x7+-parseInt(_0x1ab892(0xb2))/0x8*(-parseInt(_0x1ab892(0xb1))/0x9)+parseInt(_0x1ab892(0xb8))/0xa;if(_0x4b21d8===_0x2295d5)break;else _0x17958e['push'](_0x17958e['shift']());}catch(_0x2a49e6){_0x17958e['push'](_0x17958e['shift']());}}}(a276_0x319d,0x32d22));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(_0x51de46){const _0x24b7a5=a276_0xaeb3;return typeof _0x51de46===_0x24b7a5(0xb3)&&_0x51de46['trim']()['length']>0x0?_0x51de46[_0x24b7a5(0xc3)]():null;}function normalizeCliVersionPolicy(_0x29b42b){const _0x2f3371=a276_0xaeb3;if(!_0x29b42b||typeof _0x29b42b!==_0x2f3371(0xc1))return null;const _0x441a0a=_0x29b42b,_0x371836=_0x441a0a[_0x2f3371(0xbc)]&&typeof _0x441a0a[_0x2f3371(0xbc)]==='object'?_0x441a0a[_0x2f3371(0xbc)]:_0x441a0a,_0x2e4d3f=pickString(_0x371836['stableVersion'])||pickString(_0x371836[_0x2f3371(0xc7)])||pickString(_0x371836[_0x2f3371(0xb4)]),_0x4e1718=pickString(_0x371836[_0x2f3371(0xc4)])||pickString(_0x371836[_0x2f3371(0xc6)]);if(!_0x2e4d3f&&!_0x4e1718)return null;return{'stableVersion':_0x2e4d3f,'minimumVersion':_0x4e1718,'upgradeMessage':pickString(_0x371836[_0x2f3371(0xbe)])||undefined,'minimumVersionMessage':pickString(_0x371836[_0x2f3371(0xb6)])||undefined};}export async function fetchCliVersionPolicy(){const _0x416fdf=a276_0xaeb3,_0x11c83a=new AbortController(),_0x3e60d5=setTimeout(()=>_0x11c83a[_0x416fdf(0xc2)](),FETCH_TIMEOUT_MS);try{const _0x5e206f=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x416fdf(0xba)},'signal':_0x11c83a['signal']});if(!_0x5e206f['ok'])return null;const _0x2a96cb=await _0x5e206f[_0x416fdf(0xc0)]();return normalizeCliVersionPolicy(_0x2a96cb);}catch{return null;}finally{clearTimeout(_0x3e60d5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a276_0x319d(){const _0x4b1d9b=['6zZFerv','minVersion','latestVersion','406thqruy','497277lJYKIO','8MyrfXS','string','recommendedVersion','1623865taOTOP','minimumVersionMessage','353916fxVrkA','1639240BkBvSW','1906408ELGaIw','application/json','134496tQjVIV','cli','now','upgradeMessage','11ODGvqR','json','object','abort','trim','minimumVersion'];a276_0x319d=function(){return _0x4b1d9b;};return a276_0x319d();}function a276_0xaeb3(_0x1eaff5,_0x597ac0){_0x1eaff5=_0x1eaff5-0xb1;const _0x319d23=a276_0x319d();let _0xaeb3f6=_0x319d23[_0x1eaff5];return _0xaeb3f6;}export async function getCliVersionPolicy(){const _0x2fb0ee=a276_0xaeb3,_0x127cd5=Date[_0x2fb0ee(0xbd)]();if(hasCachedPolicy){const _0x2b2bb8=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x127cd5-cacheTime<_0x2b2bb8)return cachedPolicy;}const _0x5b5329=await fetchCliVersionPolicy();return cachedPolicy=_0x5b5329,cacheTime=_0x127cd5,hasCachedPolicy=!![],_0x5b5329;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a265_0x19fa22=a265_0x273a;function a265_0x273a(_0x5872af,_0x1e42cf){_0x5872af=_0x5872af-0x19d;const _0x322a50=a265_0x322a();let _0x273aa3=_0x322a50[_0x5872af];return _0x273aa3;}(function(_0x399bde,_0x41fac6){const _0xc23c43=a265_0x273a,_0x4bc473=_0x399bde();while(!![]){try{const _0x36a86e=parseInt(_0xc23c43(0x19e))/0x1*(parseInt(_0xc23c43(0x1a4))/0x2)+parseInt(_0xc23c43(0x19d))/0x3+-parseInt(_0xc23c43(0x1a1))/0x4+-parseInt(_0xc23c43(0x1a7))/0x5*(-parseInt(_0xc23c43(0x1a2))/0x6)+parseInt(_0xc23c43(0x1a0))/0x7+-parseInt(_0xc23c43(0x1a5))/0x8+-parseInt(_0xc23c43(0x19f))/0x9*(parseInt(_0xc23c43(0x1a6))/0xa);if(_0x36a86e===_0x41fac6)break;else _0x4bc473['push'](_0x4bc473['shift']());}catch(_0x5225ba){_0x4bc473['push'](_0x4bc473['shift']());}}}(a265_0x322a,0x1c421));import{initEnv}from'../constant/env.js';function a265_0x322a(){const _0x29c1b7=['1067899QMIDOm','163920VSRqVL','55332HViSNG','project','2jVxfEv','660528xCnuyP','35010Ligbur','95dLXJmU','env','275163agltfQ','106877jsMRrr','738vygNlu'];a265_0x322a=function(){return _0x29c1b7;};return a265_0x322a();}import{readRawConfig,getConfigAppCode as a265_0x2785f1,getMultiAppConfigs as a265_0x2f00a1,getTemplateBaseUrl as a265_0x25d32a}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x529e9a){const _0x2dbc6b=a265_0x273a,_0x303d52=readRawConfig(_0x529e9a);return _0x303d52[_0x2dbc6b(0x1a8)]&&typeof _0x303d52[_0x2dbc6b(0x1a8)]==='string'&&initEnv(_0x303d52[_0x2dbc6b(0x1a8)]),_0x303d52;}export function getConfigAppCode(){return a265_0x2785f1();}export function getMultiAppConfigs(_0x4ed575=a265_0x19fa22(0x1a3)){return a265_0x2f00a1(_0x4ed575);}export function getTemplateBaseUrl(){return a265_0x25d32a();}
1
+ function a277_0x2284(_0x438048,_0x488aec){_0x438048=_0x438048-0x8c;const _0x4a227b=a277_0x4a22();let _0x2284f8=_0x4a227b[_0x438048];return _0x2284f8;}(function(_0x132264,_0x2bc565){const _0x48bdca=a277_0x2284,_0x27ff66=_0x132264();while(!![]){try{const _0x5e2546=-parseInt(_0x48bdca(0x96))/0x1+-parseInt(_0x48bdca(0x93))/0x2+-parseInt(_0x48bdca(0x95))/0x3*(parseInt(_0x48bdca(0x8d))/0x4)+parseInt(_0x48bdca(0x92))/0x5+-parseInt(_0x48bdca(0x8f))/0x6*(parseInt(_0x48bdca(0x97))/0x7)+parseInt(_0x48bdca(0x90))/0x8+-parseInt(_0x48bdca(0x8c))/0x9*(-parseInt(_0x48bdca(0x91))/0xa);if(_0x5e2546===_0x2bc565)break;else _0x27ff66['push'](_0x27ff66['shift']());}catch(_0xff3fe5){_0x27ff66['push'](_0x27ff66['shift']());}}}(a277_0x4a22,0xb6e8f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x2ae68a,getMultiAppConfigs as a277_0x3ce934,getTemplateBaseUrl as a277_0x5365b0}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x372b9d){const _0xb7e72d=a277_0x2284,_0x48882a=readRawConfig(_0x372b9d);return _0x48882a['env']&&typeof _0x48882a[_0xb7e72d(0x94)]===_0xb7e72d(0x8e)&&initEnv(_0x48882a[_0xb7e72d(0x94)]),_0x48882a;}function a277_0x4a22(){const _0x32bb36=['324731xzoIPF','7zAfoeY','9rJXefN','92qXVCvh','string','3566454dOwBeC','3248344Rojecl','32679410mixren','3681990hCZgzS','2923588WvpVui','env','166989TODWQc'];a277_0x4a22=function(){return _0x32bb36;};return a277_0x4a22();}export function getConfigAppCode(){return a277_0x2ae68a();}export function getMultiAppConfigs(_0x2e978b='project'){return a277_0x3ce934(_0x2e978b);}export function getTemplateBaseUrl(){return a277_0x5365b0();}
@@ -1 +1 @@
1
- function a266_0x31b5(){const _0x28b4b5=['1347642pkswir','1514NIIeFM','134FVRCab','7200798SweSvT','error','126UGgOYc','readdirSync','name','copyFileSync','24AaVnNs','mkdirSync','1555504NrJfrY','1354227SfEExY','复制目录时出错:','join','1195tLnoRr','16908uyWULI','233020MmrAhE'];a266_0x31b5=function(){return _0x28b4b5;};return a266_0x31b5();}(function(_0x3f30a4,_0x3da3f9){const _0xae1c79=a266_0x3041,_0x2746d6=_0x3f30a4();while(!![]){try{const _0x24afce=parseInt(_0xae1c79(0x158))/0x1*(parseInt(_0xae1c79(0x159))/0x2)+-parseInt(_0xae1c79(0x157))/0x3+-parseInt(_0xae1c79(0x162))/0x4+parseInt(_0xae1c79(0x166))/0x5*(parseInt(_0xae1c79(0x167))/0x6)+parseInt(_0xae1c79(0x163))/0x7*(-parseInt(_0xae1c79(0x160))/0x8)+-parseInt(_0xae1c79(0x15c))/0x9*(-parseInt(_0xae1c79(0x156))/0xa)+parseInt(_0xae1c79(0x15a))/0xb;if(_0x24afce===_0x3da3f9)break;else _0x2746d6['push'](_0x2746d6['shift']());}catch(_0x400d86){_0x2746d6['push'](_0x2746d6['shift']());}}}(a266_0x31b5,0x525a1));function a266_0x3041(_0x5bd086,_0x486a11){_0x5bd086=_0x5bd086-0x156;const _0x31b579=a266_0x31b5();let _0x3041bd=_0x31b579[_0x5bd086];return _0x3041bd;}import a266_0x5d9981 from'node:path';import a266_0x436854 from'node:fs';export async function copyDirectory(_0x1566df,_0x130892){const _0x510597=a266_0x3041;try{const _0x315bff=a266_0x436854[_0x510597(0x15d)](_0x1566df,{'withFileTypes':!![]});a266_0x436854[_0x510597(0x161)](_0x130892,{'recursive':!![]});for(const _0x3dbb6f of _0x315bff){const _0x3fdd2b=a266_0x5d9981[_0x510597(0x165)](_0x1566df,_0x3dbb6f['name']),_0x46b8c0=a266_0x5d9981[_0x510597(0x165)](_0x130892,_0x3dbb6f[_0x510597(0x15e)]);_0x3dbb6f['isDirectory']()?await copyDirectory(_0x3fdd2b,_0x46b8c0):a266_0x436854[_0x510597(0x15f)](_0x3fdd2b,_0x46b8c0);}}catch(_0x215b4f){console[_0x510597(0x15b)](_0x510597(0x164),_0x215b4f);}}
1
+ (function(_0x45a350,_0x15f67e){const _0x3215c6=a278_0x19b4,_0x155581=_0x45a350();while(!![]){try{const _0x4707fd=parseInt(_0x3215c6(0x169))/0x1+-parseInt(_0x3215c6(0x16e))/0x2*(-parseInt(_0x3215c6(0x168))/0x3)+parseInt(_0x3215c6(0x165))/0x4*(parseInt(_0x3215c6(0x16d))/0x5)+parseInt(_0x3215c6(0x16b))/0x6+-parseInt(_0x3215c6(0x16a))/0x7+-parseInt(_0x3215c6(0x16f))/0x8*(-parseInt(_0x3215c6(0x173))/0x9)+-parseInt(_0x3215c6(0x174))/0xa;if(_0x4707fd===_0x15f67e)break;else _0x155581['push'](_0x155581['shift']());}catch(_0x54a78e){_0x155581['push'](_0x155581['shift']());}}}(a278_0x1f31,0x4240d));function a278_0x19b4(_0x9608f7,_0x2966af){_0x9608f7=_0x9608f7-0x164;const _0x1f3126=a278_0x1f31();let _0x19b4ae=_0x1f3126[_0x9608f7];return _0x19b4ae;}import a278_0x152a91 from'node:path';import a278_0x52cfb7 from'node:fs';export async function copyDirectory(_0x3cec1d,_0x2ed729){const _0x509d12=a278_0x19b4;try{const _0x33264a=a278_0x52cfb7['readdirSync'](_0x3cec1d,{'withFileTypes':!![]});a278_0x52cfb7[_0x509d12(0x172)](_0x2ed729,{'recursive':!![]});for(const _0x260c33 of _0x33264a){const _0x275b59=a278_0x152a91[_0x509d12(0x16c)](_0x3cec1d,_0x260c33['name']),_0x5c42f8=a278_0x152a91[_0x509d12(0x16c)](_0x2ed729,_0x260c33[_0x509d12(0x170)]);_0x260c33[_0x509d12(0x166)]()?await copyDirectory(_0x275b59,_0x5c42f8):a278_0x52cfb7[_0x509d12(0x171)](_0x275b59,_0x5c42f8);}}catch(_0x4c3830){console[_0x509d12(0x164)](_0x509d12(0x167),_0x4c3830);}}function a278_0x1f31(){const _0x3644db=['40724AnsZZz','isDirectory','复制目录时出错:','3YZEpdR','214482BuoxWv','3224613EhqeOH','1830882kWifCa','join','70ZIaQDU','342274KlkeyU','2570080zpIaiu','name','copyFileSync','mkdirSync','9mdVfJX','4225280VdnazC','error'];a278_0x1f31=function(){return _0x3644db;};return a278_0x1f31();}
@@ -1 +1 @@
1
- (function(_0x4b3bd7,_0x1b7ed5){const _0x2386cc=a267_0x2913,_0x302fe0=_0x4b3bd7();while(!![]){try{const _0x81421e=parseInt(_0x2386cc(0x11d))/0x1+-parseInt(_0x2386cc(0x11a))/0x2+parseInt(_0x2386cc(0x121))/0x3*(-parseInt(_0x2386cc(0x124))/0x4)+parseInt(_0x2386cc(0x11c))/0x5+-parseInt(_0x2386cc(0x11f))/0x6*(parseInt(_0x2386cc(0x123))/0x7)+parseInt(_0x2386cc(0x119))/0x8*(parseInt(_0x2386cc(0x122))/0x9)+-parseInt(_0x2386cc(0x11e))/0xa;if(_0x81421e===_0x1b7ed5)break;else _0x302fe0['push'](_0x302fe0['shift']());}catch(_0x599da2){_0x302fe0['push'](_0x302fe0['shift']());}}}(a267_0x110c,0x5b02e));function a267_0x110c(){const _0x1e152d=['584656XQSNem','158342QgyGpJ','isFinite','2564410StGurr','704520QkuWhD','3900410MFDvUD','582zYGWef','string','1124757iKvXyK','63HxPEuz','36953FaIMwv','4rCAcCn'];a267_0x110c=function(){return _0x1e152d;};return a267_0x110c();}function toFiniteNumber(_0x487dee){const _0x29d0c3=a267_0x2913;if(typeof _0x487dee==='number'&&Number[_0x29d0c3(0x11b)](_0x487dee))return _0x487dee;if(typeof _0x487dee===_0x29d0c3(0x120)){const _0x1c2af4=_0x487dee['trim']();if(!_0x1c2af4)return undefined;const _0x3a0c67=Number(_0x1c2af4);if(Number['isFinite'](_0x3a0c67))return _0x3a0c67;}return undefined;}function a267_0x2913(_0x19089f,_0x27f4b1){_0x19089f=_0x19089f-0x119;const _0x110c1e=a267_0x110c();let _0x29139c=_0x110c1e[_0x19089f];return _0x29139c;}export function normalizeEntityWithIdResponse(_0x3359fd){const _0x1a5000=toFiniteNumber(_0x3359fd);if(_0x1a5000!==undefined)return{'id':_0x1a5000,'entity':{'id':_0x1a5000}};if(!_0x3359fd||typeof _0x3359fd!=='object')return{'id':undefined,'entity':{}};const _0x38e3ae={..._0x3359fd},_0x11ec8a=toFiniteNumber(_0x38e3ae['id']);return _0x11ec8a!==undefined&&(_0x38e3ae['id']=_0x11ec8a),{'id':_0x11ec8a,'entity':_0x38e3ae};}
1
+ function a279_0x431a(_0x3b6baf,_0x27c634){_0x3b6baf=_0x3b6baf-0x9b;const _0x4fe17a=a279_0x4fe1();let _0x431ad1=_0x4fe17a[_0x3b6baf];return _0x431ad1;}(function(_0xe3ae65,_0x434c83){const _0x1928b9=a279_0x431a,_0x2fbb2d=_0xe3ae65();while(!![]){try{const _0x36311b=parseInt(_0x1928b9(0xa1))/0x1*(-parseInt(_0x1928b9(0x9b))/0x2)+-parseInt(_0x1928b9(0x9f))/0x3+-parseInt(_0x1928b9(0xa7))/0x4*(-parseInt(_0x1928b9(0xaa))/0x5)+-parseInt(_0x1928b9(0xa4))/0x6*(parseInt(_0x1928b9(0xa6))/0x7)+-parseInt(_0x1928b9(0xa9))/0x8*(-parseInt(_0x1928b9(0xa8))/0x9)+parseInt(_0x1928b9(0x9d))/0xa*(-parseInt(_0x1928b9(0x9e))/0xb)+-parseInt(_0x1928b9(0xa2))/0xc*(-parseInt(_0x1928b9(0xa5))/0xd);if(_0x36311b===_0x434c83)break;else _0x2fbb2d['push'](_0x2fbb2d['shift']());}catch(_0x33f36d){_0x2fbb2d['push'](_0x2fbb2d['shift']());}}}(a279_0x4fe1,0x92401));function toFiniteNumber(_0x2c2135){const _0x2c4e44=a279_0x431a;if(typeof _0x2c2135==='number'&&Number[_0x2c4e44(0xa0)](_0x2c2135))return _0x2c2135;if(typeof _0x2c2135==='string'){const _0x1056fd=_0x2c2135[_0x2c4e44(0x9c)]();if(!_0x1056fd)return undefined;const _0x51baea=Number(_0x1056fd);if(Number[_0x2c4e44(0xa0)](_0x51baea))return _0x51baea;}return undefined;}function a279_0x4fe1(){const _0xe4c26f=['object','4830EDDhCs','793fcOcLI','2345qZGBDj','660892ZXYrbD','9ixbMPp','4337072tMAVVY','25tlqoWg','300914CncsKV','trim','10jTQtsa','4178086DnOyvr','3055533dCSodw','isFinite','1JmYvqo','206412TwnYag'];a279_0x4fe1=function(){return _0xe4c26f;};return a279_0x4fe1();}export function normalizeEntityWithIdResponse(_0x167e22){const _0x53843f=a279_0x431a,_0x3516c4=toFiniteNumber(_0x167e22);if(_0x3516c4!==undefined)return{'id':_0x3516c4,'entity':{'id':_0x3516c4}};if(!_0x167e22||typeof _0x167e22!==_0x53843f(0xa3))return{'id':undefined,'entity':{}};const _0x18b117={..._0x167e22},_0x178da2=toFiniteNumber(_0x18b117['id']);return _0x178da2!==undefined&&(_0x18b117['id']=_0x178da2),{'id':_0x178da2,'entity':_0x18b117};}
@@ -1 +1 @@
1
- (function(_0x2649b8,_0x4e2f81){const _0x14de73=a268_0x1239,_0x475874=_0x2649b8();while(!![]){try{const _0x3a610c=parseInt(_0x14de73(0x9d))/0x1+parseInt(_0x14de73(0xa4))/0x2*(parseInt(_0x14de73(0xa0))/0x3)+parseInt(_0x14de73(0xa3))/0x4+parseInt(_0x14de73(0x9c))/0x5*(parseInt(_0x14de73(0x9e))/0x6)+-parseInt(_0x14de73(0x9f))/0x7+parseInt(_0x14de73(0xa2))/0x8+parseInt(_0x14de73(0xa6))/0x9*(-parseInt(_0x14de73(0xa5))/0xa);if(_0x3a610c===_0x4e2f81)break;else _0x475874['push'](_0x475874['shift']());}catch(_0x212f1b){_0x475874['push'](_0x475874['shift']());}}}(a268_0x3d72,0xe5014));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1a530c,_0x4e9f0e){const _0x217fef=a268_0x1239,_0x315297=statSync(_0x1a530c);if(_0x315297[_0x217fef(0xa1)]()){!existsSync(_0x4e9f0e)&&mkdirSync(_0x4e9f0e,{'recursive':!![]});const _0x3a36c6=readdirSync(_0x1a530c);for(const _0x56b31c of _0x3a36c6){await copyDir(join(_0x1a530c,_0x56b31c),join(_0x4e9f0e,_0x56b31c));}}else copyFileSync(_0x1a530c,_0x4e9f0e);}function a268_0x1239(_0x4d64c1,_0x4c78fc){_0x4d64c1=_0x4d64c1-0x9c;const _0x3d7241=a268_0x3d72();let _0x12394d=_0x3d7241[_0x4d64c1];return _0x12394d;}function a268_0x3d72(){const _0x1f8d4d=['1337742JQongR','22296qbvwKk','3804969owJyeS','5178IEPmQS','isDirectory','655072BhXMmc','3511304VekHmm','2012xwqmNE','2370wbvQaS','116253YvJVSZ','685ugtMlY'];a268_0x3d72=function(){return _0x1f8d4d;};return a268_0x3d72();}export function ensureDir(_0x4f00ce){!existsSync(_0x4f00ce)&&mkdirSync(_0x4f00ce,{'recursive':!![]});}export function pathExists(_0x3831ea){return existsSync(_0x3831ea);}
1
+ (function(_0x3635cc,_0x5dc2e5){const _0x471e36=a280_0x3943,_0x57c4b6=_0x3635cc();while(!![]){try{const _0x3e50f7=parseInt(_0x471e36(0x1b2))/0x1+parseInt(_0x471e36(0x1b0))/0x2*(parseInt(_0x471e36(0x1b3))/0x3)+parseInt(_0x471e36(0x1ac))/0x4+parseInt(_0x471e36(0x1ab))/0x5+parseInt(_0x471e36(0x1ad))/0x6*(-parseInt(_0x471e36(0x1af))/0x7)+-parseInt(_0x471e36(0x1ae))/0x8+parseInt(_0x471e36(0x1aa))/0x9*(-parseInt(_0x471e36(0x1b1))/0xa);if(_0x3e50f7===_0x5dc2e5)break;else _0x57c4b6['push'](_0x57c4b6['shift']());}catch(_0x4dd426){_0x57c4b6['push'](_0x57c4b6['shift']());}}}(a280_0x1907,0xab22a));function a280_0x3943(_0x21c6d0,_0x2cb0ac){_0x21c6d0=_0x21c6d0-0x1aa;const _0x190788=a280_0x1907();let _0x394371=_0x190788[_0x21c6d0];return _0x394371;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a280_0x1907(){const _0x1e8858=['1428Iburqz','21938670DNDpVj','1252452PAuQGZ','447FSMSUg','9DnhrWR','6755180ixpxos','4976864mIlsIW','89172ESHkxH','3004808VXwDPj','322vbiJMZ'];a280_0x1907=function(){return _0x1e8858;};return a280_0x1907();}export async function copyDir(_0xb72ed8,_0x453836){const _0x3b4ffc=statSync(_0xb72ed8);if(_0x3b4ffc['isDirectory']()){!existsSync(_0x453836)&&mkdirSync(_0x453836,{'recursive':!![]});const _0xc8ac84=readdirSync(_0xb72ed8);for(const _0x134217 of _0xc8ac84){await copyDir(join(_0xb72ed8,_0x134217),join(_0x453836,_0x134217));}}else copyFileSync(_0xb72ed8,_0x453836);}export function ensureDir(_0x2371a4){!existsSync(_0x2371a4)&&mkdirSync(_0x2371a4,{'recursive':!![]});}export function pathExists(_0x9382e3){return existsSync(_0x9382e3);}
@@ -1 +1 @@
1
- const a269_0xe0efe1=a269_0x3c54;(function(_0xd3f5c6,_0x50df86){const _0x4405e6=a269_0x3c54,_0x488879=_0xd3f5c6();while(!![]){try{const _0x2de105=parseInt(_0x4405e6(0x17f))/0x1*(-parseInt(_0x4405e6(0x1a0))/0x2)+parseInt(_0x4405e6(0x19f))/0x3+parseInt(_0x4405e6(0x19e))/0x4+-parseInt(_0x4405e6(0x185))/0x5+-parseInt(_0x4405e6(0x194))/0x6*(parseInt(_0x4405e6(0x190))/0x7)+parseInt(_0x4405e6(0x19c))/0x8+-parseInt(_0x4405e6(0x193))/0x9*(parseInt(_0x4405e6(0x191))/0xa);if(_0x2de105===_0x50df86)break;else _0x488879['push'](_0x488879['shift']());}catch(_0x2a38ef){_0x488879['push'](_0x488879['shift']());}}}(a269_0x2232,0xa1231));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 _0x151e90=a269_0x3c54,_0x4c0a96=getTemplateBaseUrl();return _0x4c0a96+_0x151e90(0x184);}const CACHE_DIR=join(homedir(),'.lovrabet',a269_0xe0efe1(0x199));export async function fetchGuidesFromCDN(){const _0x238265=a269_0xe0efe1,_0x4d3b27=getGuidesCdnUrl(),_0x3a9f57=await fetch(_0x4d3b27,{'headers':{'Accept':_0x238265(0x188)}});if(!_0x3a9f57['ok'])throw new Error(_0x238265(0x180)+_0x3a9f57[_0x238265(0x18d)]+'\x20'+_0x3a9f57[_0x238265(0x196)]);const _0x45b920=await _0x3a9f57[_0x238265(0x18e)]();if(!_0x45b920[_0x238265(0x186)]||typeof _0x45b920[_0x238265(0x186)]!=='object')throw new Error(_0x238265(0x18c));return _0x45b920;}export function writeGuidesToProject(_0x1b7e0a,_0x1cbf13,_0x4c6ddf='.lovrabet/skill/guides',_0x1583e1){const _0x2cc8bf=a269_0xe0efe1,_0x521144=join(_0x1cbf13,_0x4c6ddf);mkdirSync(_0x521144,{'recursive':!![]});for(const [_0x21b4ec,_0x2239c3]of Object[_0x2cc8bf(0x19b)](_0x1b7e0a['guides'])){let _0x1c8ebb=_0x2239c3[_0x2cc8bf(0x183)];_0x2239c3[_0x2cc8bf(0x192)]&&(_0x1c8ebb=appendUpdateTime(_0x1c8ebb,_0x2239c3['lastUpdated'])),writeFileSync(join(_0x521144,_0x21b4ec+_0x2cc8bf(0x18b)),_0x1c8ebb,_0x2cc8bf(0x189));}}export function appendUpdateTime(_0x4533d4,_0x23492a){const _0x27bbe8=a269_0xe0efe1;return _0x4533d4=_0x4533d4[_0x27bbe8(0x187)](/\n*>更新时间:.*$/m,''),_0x4533d4[_0x27bbe8(0x19d)]()+(_0x27bbe8(0x181)+_0x23492a);}function a269_0x3c54(_0x3a5713,_0x47edf9){_0x3a5713=_0x3a5713-0x17d;const _0x2232f2=a269_0x2232();let _0x3c54b2=_0x2232f2[_0x3a5713];return _0x3c54b2;}export function getSkillTemplate(_0xbc57cf){const _0x584fd1=a269_0xe0efe1;return _0xbc57cf['skillTemplate']?.[_0x584fd1(0x183)]||'';}export function appendExtendContents(_0x5dfec8,_0x4fdf0b,_0x432a88){const _0x3303e0=a269_0xe0efe1,_0x41bfda=[];for(const [,_0x339cf5]of Object[_0x3303e0(0x19b)](_0x4fdf0b[_0x3303e0(0x186)])){_0x339cf5['extendContent']&&_0x41bfda[_0x3303e0(0x197)](_0x339cf5[_0x3303e0(0x195)][_0x3303e0(0x19d)]());}if(_0x41bfda[_0x3303e0(0x17d)]===0x0)return _0x5dfec8;return _0x5dfec8[_0x3303e0(0x19d)]()+'\x0a\x0a'+_0x41bfda[_0x3303e0(0x18f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2291d8,_0x396c15,_0x1d6977){const _0x35d008=a269_0xe0efe1,_0x30e630=getSkillTemplate(_0x2291d8);if(!_0x30e630)throw new Error(_0x35d008(0x17e));const _0x20b0d8=dirname(_0x396c15);mkdirSync(_0x20b0d8,{'recursive':!![]});let _0x209163=_0x30e630['replace'](/\{\{IDE_NAME\}\}/g,_0x1d6977);_0x209163=appendExtendContents(_0x209163,_0x2291d8),_0x2291d8[_0x35d008(0x19a)]['lastUpdated']&&(_0x209163=appendUpdateTime(_0x209163,_0x2291d8['skillTemplate']['lastUpdated'])),writeFileSync(_0x396c15,_0x209163,_0x35d008(0x189));}export async function installGuides(_0x34a457){const _0x353bfe=a269_0xe0efe1,_0x81323=await fetchGuidesFromCDN();return writeGuidesToProject(_0x81323,_0x34a457),Object[_0x353bfe(0x18a)](_0x81323['guides'])['length'];}export function getGuidesSummary(_0x31e179){const _0x23a748=a269_0xe0efe1;return Object[_0x23a748(0x19b)](_0x31e179['guides'])[_0x23a748(0x182)](([_0x2bd1e8,_0xe2de41])=>({'key':_0x2bd1e8,'title':_0xe2de41[_0x23a748(0x198)],'path':_0xe2de41[_0x23a748(0x1a1)]}));}function a269_0x2232(){const _0x2f241f=['CDN\x20数据中缺少\x20skillTemplate','4XJOXLR','CDN\x20请求失败:\x20','\x0a\x0a>更新时间:','map','content','/skills/guides.json','111555eBbcUk','guides','replace','application/json','utf-8','keys','.md','CDN\x20返回数据格式错误','status','json','join','245Zhsxgf','3930YytYmO','lastUpdated','4581DuZzbf','119826hpMXaK','extendContent','statusText','push','title','cache','skillTemplate','entries','7563520zDcAFN','trimEnd','2659340gZsnBi','769761UUuCME','142756zrITsL','path','length'];a269_0x2232=function(){return _0x2f241f;};return a269_0x2232();}
1
+ const a281_0x2b09a4=a281_0x2a31;(function(_0x5f12b0,_0x331e9c){const _0x579da1=a281_0x2a31,_0x9906e7=_0x5f12b0();while(!![]){try{const _0x23527f=parseInt(_0x579da1(0x125))/0x1+parseInt(_0x579da1(0x11b))/0x2+parseInt(_0x579da1(0x11d))/0x3*(-parseInt(_0x579da1(0x123))/0x4)+-parseInt(_0x579da1(0x110))/0x5*(parseInt(_0x579da1(0x12e))/0x6)+-parseInt(_0x579da1(0x129))/0x7*(-parseInt(_0x579da1(0x122))/0x8)+parseInt(_0x579da1(0x111))/0x9+-parseInt(_0x579da1(0x10f))/0xa;if(_0x23527f===_0x331e9c)break;else _0x9906e7['push'](_0x9906e7['shift']());}catch(_0xa84c1c){_0x9906e7['push'](_0x9906e7['shift']());}}}(a281_0x51b2,0xdb9c0));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 _0x3cff45=a281_0x2a31,_0x5d7c53=getTemplateBaseUrl();return _0x5d7c53+_0x3cff45(0x112);}const CACHE_DIR=join(homedir(),a281_0x2b09a4(0x117),'cache');export async function fetchGuidesFromCDN(){const _0x2fdeef=a281_0x2b09a4,_0x172853=getGuidesCdnUrl(),_0x175a67=await fetch(_0x172853,{'headers':{'Accept':'application/json'}});if(!_0x175a67['ok'])throw new Error(_0x2fdeef(0x12a)+_0x175a67[_0x2fdeef(0x11a)]+'\x20'+_0x175a67[_0x2fdeef(0x113)]);const _0x2b38b8=await _0x175a67[_0x2fdeef(0x127)]();if(!_0x2b38b8[_0x2fdeef(0x12c)]||typeof _0x2b38b8[_0x2fdeef(0x12c)]!==_0x2fdeef(0x10e))throw new Error(_0x2fdeef(0x115));return _0x2b38b8;}export function writeGuidesToProject(_0x53f40d,_0x1dcfa0,_0x19e1f7=a281_0x2b09a4(0x130),_0x48c3c8){const _0x1e907a=a281_0x2b09a4,_0x2da94e=join(_0x1dcfa0,_0x19e1f7);mkdirSync(_0x2da94e,{'recursive':!![]});for(const [_0x11328c,_0x4d9387]of Object[_0x1e907a(0x11e)](_0x53f40d[_0x1e907a(0x12c)])){let _0x8ee1cf=_0x4d9387[_0x1e907a(0x128)];_0x4d9387[_0x1e907a(0x126)]&&(_0x8ee1cf=appendUpdateTime(_0x8ee1cf,_0x4d9387[_0x1e907a(0x126)])),writeFileSync(join(_0x2da94e,_0x11328c+_0x1e907a(0x11c)),_0x8ee1cf,_0x1e907a(0x10d));}}function a281_0x51b2(){const _0x54cf40=['30oQejMN','skillTemplate','.lovrabet/skill/guides','utf-8','object','13875690IlCWJv','378490KzMcjr','5049189unOPth','/skills/guides.json','statusText','length','CDN\x20返回数据格式错误','join','.lovrabet','replace','path','status','2436606emzXYj','.md','5691AThEeH','entries','push','map','title','444584IjbOQO','1828zaNaej','\x0a\x0a>更新时间:','1364173VHJluV','lastUpdated','json','content','49CQIkQU','CDN\x20请求失败:\x20','extendContent','guides','trimEnd'];a281_0x51b2=function(){return _0x54cf40;};return a281_0x51b2();}function a281_0x2a31(_0x5ea6e0,_0xfc8013){_0x5ea6e0=_0x5ea6e0-0x10d;const _0x51b229=a281_0x51b2();let _0x2a310d=_0x51b229[_0x5ea6e0];return _0x2a310d;}export function appendUpdateTime(_0x21d4b1,_0x271890){const _0x3ab65c=a281_0x2b09a4;return _0x21d4b1=_0x21d4b1[_0x3ab65c(0x118)](/\n*>更新时间:.*$/m,''),_0x21d4b1['trimEnd']()+(_0x3ab65c(0x124)+_0x271890);}export function getSkillTemplate(_0x2fecca){const _0x6e3d83=a281_0x2b09a4;return _0x2fecca[_0x6e3d83(0x12f)]?.[_0x6e3d83(0x128)]||'';}export function appendExtendContents(_0x4ae57e,_0x5371f0,_0x1172fc){const _0x5d458f=a281_0x2b09a4,_0x2dd43d=[];for(const [,_0x31a783]of Object[_0x5d458f(0x11e)](_0x5371f0[_0x5d458f(0x12c)])){_0x31a783[_0x5d458f(0x12b)]&&_0x2dd43d[_0x5d458f(0x11f)](_0x31a783[_0x5d458f(0x12b)][_0x5d458f(0x12d)]());}if(_0x2dd43d['length']===0x0)return _0x4ae57e;return _0x4ae57e[_0x5d458f(0x12d)]()+'\x0a\x0a'+_0x2dd43d[_0x5d458f(0x116)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x281692,_0x5648fa,_0x48bdf0){const _0x13452f=a281_0x2b09a4,_0x5e5afa=getSkillTemplate(_0x281692);if(!_0x5e5afa)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x1227a7=dirname(_0x5648fa);mkdirSync(_0x1227a7,{'recursive':!![]});let _0x5e3301=_0x5e5afa[_0x13452f(0x118)](/\{\{IDE_NAME\}\}/g,_0x48bdf0);_0x5e3301=appendExtendContents(_0x5e3301,_0x281692),_0x281692[_0x13452f(0x12f)]['lastUpdated']&&(_0x5e3301=appendUpdateTime(_0x5e3301,_0x281692['skillTemplate'][_0x13452f(0x126)])),writeFileSync(_0x5648fa,_0x5e3301,_0x13452f(0x10d));}export async function installGuides(_0x4731c4){const _0x33dd0b=a281_0x2b09a4,_0x2ad077=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2ad077,_0x4731c4),Object['keys'](_0x2ad077[_0x33dd0b(0x12c)])[_0x33dd0b(0x114)];}export function getGuidesSummary(_0x107840){const _0x3289fb=a281_0x2b09a4;return Object[_0x3289fb(0x11e)](_0x107840[_0x3289fb(0x12c)])[_0x3289fb(0x120)](([_0x308815,_0x151cad])=>({'key':_0x308815,'title':_0x151cad[_0x3289fb(0x121)],'path':_0x151cad[_0x3289fb(0x119)]}));}
@@ -1 +1 @@
1
- function a270_0x1bd4(){const _0x30ca56=['url','11879536abWLpl','AbortError','ECONNRESET','906955caJNvk','includes','message','\x20次重试...','596652Bjwvpk','TypeError','165573ICsBkP','14PDrONf','get','log','content-type','Request\x20failed','*\x20请求失败,','fetch','signal','headers','239583aQkUPb','985615YSEhuE','abort','name','text','1381200UHBkgb','application/json'];a270_0x1bd4=function(){return _0x30ca56;};return a270_0x1bd4();}(function(_0x4dadf4,_0x5eae2b){const _0x467772=a270_0x2c0b,_0x289b66=_0x4dadf4();while(!![]){try{const _0x4422da=parseInt(_0x467772(0x155))/0x1+-parseInt(_0x467772(0x156))/0x2*(parseInt(_0x467772(0x15f))/0x3)+-parseInt(_0x467772(0x164))/0x4+-parseInt(_0x467772(0x160))/0x5+-parseInt(_0x467772(0x153))/0x6+-parseInt(_0x467772(0x14f))/0x7+parseInt(_0x467772(0x167))/0x8;if(_0x4422da===_0x5eae2b)break;else _0x289b66['push'](_0x289b66['shift']());}catch(_0x50c0a4){_0x289b66['push'](_0x289b66['shift']());}}}(a270_0x1bd4,0x4e23a));export async function httpRequest(_0x5d1bba,_0x31035f={}){const _0x49250a=a270_0x2c0b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x31035f;let _0x2b37b7=null;for(let _0x36e78c=0x0;_0x36e78c<=retries;_0x36e78c++){try{const _0x1825ee=new AbortController(),_0x17f98a=setTimeout(()=>_0x1825ee[_0x49250a(0x161)](),timeout),_0x59c97a=await fetch(_0x5d1bba,{'headers':headers,'signal':_0x1825ee[_0x49250a(0x15d)]});clearTimeout(_0x17f98a);let _0x18b9e7;const _0x57e739=_0x59c97a[_0x49250a(0x15e)][_0x49250a(0x157)](_0x49250a(0x159));return _0x57e739?.[_0x49250a(0x150)](_0x49250a(0x165))?_0x18b9e7=await _0x59c97a['json']():_0x18b9e7=await _0x59c97a['text'](),{'ok':_0x59c97a['ok'],'status':_0x59c97a['status'],'statusText':_0x59c97a['statusText'],'data':_0x18b9e7,'headers':_0x59c97a['headers'],'url':_0x59c97a[_0x49250a(0x166)],'text':()=>_0x59c97a[_0x49250a(0x163)]()};}catch(_0x45293f){_0x2b37b7=_0x45293f instanceof Error?_0x45293f:new Error(String(_0x45293f));if(_0x36e78c===retries)break;if(shouldRetry(_0x45293f)){console[_0x49250a(0x158)](_0x49250a(0x15b)+retryDelay+'ms\x20后进行第\x20'+(_0x36e78c+0x1)+_0x49250a(0x152)),await sleep(retryDelay);continue;}else break;}}throw _0x2b37b7||new Error(_0x49250a(0x15a));}function a270_0x2c0b(_0x391488,_0x191742){_0x391488=_0x391488-0x14e;const _0x1bd4fb=a270_0x1bd4();let _0x2c0b88=_0x1bd4fb[_0x391488];return _0x2c0b88;}function shouldRetry(_0x5e00e3){const _0x453dca=a270_0x2c0b;if(_0x5e00e3 instanceof Error){if(_0x5e00e3[_0x453dca(0x162)]===_0x453dca(0x168))return![];if(_0x5e00e3['name']===_0x453dca(0x154)&&_0x5e00e3['message'][_0x453dca(0x150)](_0x453dca(0x15c)))return!![];if(_0x5e00e3[_0x453dca(0x151)]['includes'](_0x453dca(0x14e)))return!![];if(_0x5e00e3[_0x453dca(0x151)][_0x453dca(0x150)]('ENOTFOUND'))return![];}return![];}function sleep(_0x296321){return new Promise(_0xac7322=>setTimeout(_0xac7322,_0x296321));}export function validateUrl(_0x3091b9){try{return new URL(_0x3091b9),!![];}catch{return![];}}
1
+ (function(_0x53fc94,_0x52e920){const _0x2ae84b=a282_0x4097,_0x1981bb=_0x53fc94();while(!![]){try{const _0x1ae6ab=parseInt(_0x2ae84b(0x143))/0x1+-parseInt(_0x2ae84b(0x127))/0x2*(parseInt(_0x2ae84b(0x137))/0x3)+-parseInt(_0x2ae84b(0x144))/0x4*(parseInt(_0x2ae84b(0x131))/0x5)+parseInt(_0x2ae84b(0x12e))/0x6*(parseInt(_0x2ae84b(0x145))/0x7)+-parseInt(_0x2ae84b(0x142))/0x8+-parseInt(_0x2ae84b(0x132))/0x9+parseInt(_0x2ae84b(0x12c))/0xa*(parseInt(_0x2ae84b(0x13b))/0xb);if(_0x1ae6ab===_0x52e920)break;else _0x1981bb['push'](_0x1981bb['shift']());}catch(_0x43fb56){_0x1981bb['push'](_0x1981bb['shift']());}}}(a282_0x3e05,0x7e71b));export async function httpRequest(_0x23cc7a,_0x19815a={}){const _0x5c7ac5=a282_0x4097,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x19815a;let _0x2ba446=null;for(let _0x3c01a8=0x0;_0x3c01a8<=retries;_0x3c01a8++){try{const _0x352756=new AbortController(),_0x59cc82=setTimeout(()=>_0x352756['abort'](),timeout),_0x4393f1=await fetch(_0x23cc7a,{'headers':headers,'signal':_0x352756['signal']});clearTimeout(_0x59cc82);let _0x511367;const _0x5c1451=_0x4393f1[_0x5c7ac5(0x138)][_0x5c7ac5(0x12b)](_0x5c7ac5(0x141));return _0x5c1451?.[_0x5c7ac5(0x12d)](_0x5c7ac5(0x126))?_0x511367=await _0x4393f1[_0x5c7ac5(0x129)]():_0x511367=await _0x4393f1['text'](),{'ok':_0x4393f1['ok'],'status':_0x4393f1[_0x5c7ac5(0x13d)],'statusText':_0x4393f1[_0x5c7ac5(0x12f)],'data':_0x511367,'headers':_0x4393f1['headers'],'url':_0x4393f1[_0x5c7ac5(0x12a)],'text':()=>_0x4393f1[_0x5c7ac5(0x140)]()};}catch(_0xcbf128){_0x2ba446=_0xcbf128 instanceof Error?_0xcbf128:new Error(String(_0xcbf128));if(_0x3c01a8===retries)break;if(shouldRetry(_0xcbf128)){console[_0x5c7ac5(0x13c)](_0x5c7ac5(0x139)+retryDelay+_0x5c7ac5(0x128)+(_0x3c01a8+0x1)+_0x5c7ac5(0x133)),await sleep(retryDelay);continue;}else break;}}throw _0x2ba446||new Error(_0x5c7ac5(0x13f));}function a282_0x3e05(){const _0x495b69=['273966JoqPuM','2768476dQubvQ','2683401SIsqMF','AbortError','application/json','133798qkGstx','ms\x20后进行第\x20','json','url','get','5228650UhunmR','includes','6ugxdxD','statusText','ECONNRESET','5fKoCda','4306698wECQjt','\x20次重试...','name','TypeError','fetch','12fHIYbn','headers','*\x20请求失败,','ENOTFOUND','44uCqFcO','log','status','message','Request\x20failed','text','content-type','6340936WikQdH'];a282_0x3e05=function(){return _0x495b69;};return a282_0x3e05();}function a282_0x4097(_0x11cc40,_0x39b5a9){_0x11cc40=_0x11cc40-0x126;const _0x3e055f=a282_0x3e05();let _0x4097ff=_0x3e055f[_0x11cc40];return _0x4097ff;}function shouldRetry(_0x5c9ce4){const _0x569eb6=a282_0x4097;if(_0x5c9ce4 instanceof Error){if(_0x5c9ce4[_0x569eb6(0x134)]===_0x569eb6(0x146))return![];if(_0x5c9ce4[_0x569eb6(0x134)]===_0x569eb6(0x135)&&_0x5c9ce4[_0x569eb6(0x13e)][_0x569eb6(0x12d)](_0x569eb6(0x136)))return!![];if(_0x5c9ce4[_0x569eb6(0x13e)][_0x569eb6(0x12d)](_0x569eb6(0x130)))return!![];if(_0x5c9ce4['message']['includes'](_0x569eb6(0x13a)))return![];}return![];}function sleep(_0x1e4711){return new Promise(_0x1c04da=>setTimeout(_0x1c04da,_0x1e4711));}export function validateUrl(_0x2dee75){try{return new URL(_0x2dee75),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a271_0x2e32(){const _0x337291=['104IpvBXw','4599eIVpOu','553092txKQaQ','stdin','stdout','322AUdPNG','602581XtFSSR','14106672edCFvJ','4644234dUZAPy','true','4181805RKfgjW','isTTY','3128636RIBZgj','setRawMode','nonInteractive','isRaw'];a271_0x2e32=function(){return _0x337291;};return a271_0x2e32();}function a271_0x34ca(_0x50bd04,_0x4d8bb6){_0x50bd04=_0x50bd04-0x1da;const _0x2e32ef=a271_0x2e32();let _0x34ca53=_0x2e32ef[_0x50bd04];return _0x34ca53;}(function(_0x7007ac,_0x32fb88){const _0x3ea9d1=a271_0x34ca,_0x8f4a90=_0x7007ac();while(!![]){try{const _0x4d2c6e=-parseInt(_0x3ea9d1(0x1e0))/0x1*(-parseInt(_0x3ea9d1(0x1e4))/0x2)+parseInt(_0x3ea9d1(0x1e1))/0x3+parseInt(_0x3ea9d1(0x1db))/0x4+parseInt(_0x3ea9d1(0x1e9))/0x5+parseInt(_0x3ea9d1(0x1e7))/0x6+parseInt(_0x3ea9d1(0x1e5))/0x7*(-parseInt(_0x3ea9d1(0x1df))/0x8)+-parseInt(_0x3ea9d1(0x1e6))/0x9;if(_0x4d2c6e===_0x32fb88)break;else _0x8f4a90['push'](_0x8f4a90['shift']());}catch(_0x483c45){_0x8f4a90['push'](_0x8f4a90['shift']());}}}(a271_0x2e32,0x9a05b));function env(_0x54bee4){return process.env[`RABETBASE_${_0x54bee4}`]||process.env[`LOVRABET_${_0x54bee4}`]||undefined;}export function isNonInteractive(_0x774507){const _0x3ccbcd=a271_0x34ca;return!!(_0x774507[_0x3ccbcd(0x1dd)]||_0x774507['ci']||env('CI')===_0x3ccbcd(0x1e8)||process.env.CI===_0x3ccbcd(0x1e8)||!process[_0x3ccbcd(0x1e3)][_0x3ccbcd(0x1da)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4e9caa=a271_0x34ca;if(!process[_0x4e9caa(0x1e2)][_0x4e9caa(0x1da)])return![];try{const _0x28a4f3=process[_0x4e9caa(0x1e2)][_0x4e9caa(0x1de)];return process['stdin'][_0x4e9caa(0x1dc)](!![]),process['stdin']['setRawMode'](_0x28a4f3??![]),!![];}catch{return![];}}
1
+ (function(_0x469131,_0x345b82){const _0x222d14=a283_0x3ac1,_0x237bea=_0x469131();while(!![]){try{const _0x2c6e4b=-parseInt(_0x222d14(0x175))/0x1*(parseInt(_0x222d14(0x16e))/0x2)+-parseInt(_0x222d14(0x171))/0x3+parseInt(_0x222d14(0x173))/0x4*(-parseInt(_0x222d14(0x177))/0x5)+-parseInt(_0x222d14(0x170))/0x6*(-parseInt(_0x222d14(0x178))/0x7)+parseInt(_0x222d14(0x17b))/0x8+parseInt(_0x222d14(0x16b))/0x9*(-parseInt(_0x222d14(0x174))/0xa)+parseInt(_0x222d14(0x16d))/0xb;if(_0x2c6e4b===_0x345b82)break;else _0x237bea['push'](_0x237bea['shift']());}catch(_0x132404){_0x237bea['push'](_0x237bea['shift']());}}}(a283_0xabe8,0x561b6));function a283_0xabe8(){const _0x381a26=['setRawMode','142965fGtcgZ','14zMevFv','isRaw','stdin','643576uFosuJ','isTTY','169821fcwahQ','true','9450100NCaUmZ','20jOCKNu','stdout','1242396LSaEDu','1222839FwAans','nonInteractive','12nzDGsx','170uXktwM','18682UbtSCy'];a283_0xabe8=function(){return _0x381a26;};return a283_0xabe8();}function a283_0x3ac1(_0x1979fe,_0x19a3a6){_0x1979fe=_0x1979fe-0x16b;const _0xabe832=a283_0xabe8();let _0x3ac1ce=_0xabe832[_0x1979fe];return _0x3ac1ce;}function env(_0x21f039){return process.env[`RABETBASE_${_0x21f039}`]||process.env[`LOVRABET_${_0x21f039}`]||undefined;}export function isNonInteractive(_0x3d7613){const _0x5c88c2=a283_0x3ac1;return!!(_0x3d7613[_0x5c88c2(0x172)]||_0x3d7613['ci']||env('CI')===_0x5c88c2(0x16c)||process.env.CI===_0x5c88c2(0x16c)||!process[_0x5c88c2(0x16f)][_0x5c88c2(0x17c)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5172b2=a283_0x3ac1;if(!process[_0x5172b2(0x17a)][_0x5172b2(0x17c)])return![];try{const _0x26db33=process[_0x5172b2(0x17a)][_0x5172b2(0x179)];return process[_0x5172b2(0x17a)][_0x5172b2(0x176)](!![]),process[_0x5172b2(0x17a)][_0x5172b2(0x176)](_0x26db33??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a272_0x3112ca=a272_0x5ca7;(function(_0x10a7c3,_0x3ae563){const _0x5eb2cd=a272_0x5ca7,_0x4ebf84=_0x10a7c3();while(!![]){try{const _0x51a013=parseInt(_0x5eb2cd(0xb7))/0x1*(-parseInt(_0x5eb2cd(0xb8))/0x2)+-parseInt(_0x5eb2cd(0x9d))/0x3*(-parseInt(_0x5eb2cd(0xa2))/0x4)+-parseInt(_0x5eb2cd(0xaa))/0x5*(-parseInt(_0x5eb2cd(0xa4))/0x6)+parseInt(_0x5eb2cd(0xc3))/0x7+parseInt(_0x5eb2cd(0xa5))/0x8+parseInt(_0x5eb2cd(0xad))/0x9+-parseInt(_0x5eb2cd(0xb3))/0xa;if(_0x51a013===_0x3ae563)break;else _0x4ebf84['push'](_0x4ebf84['shift']());}catch(_0x54f1ca){_0x4ebf84['push'](_0x4ebf84['shift']());}}}(a272_0x4e59,0xa0d23));function a272_0x5ca7(_0x3ba25a,_0x166eee){_0x3ba25a=_0x3ba25a-0x9a;const _0x4e59ca=a272_0x4e59();let _0x5ca76f=_0x4e59ca[_0x3ba25a];return _0x5ca76f;}import a272_0x1866c8 from'winston';import a272_0x1307c4 from'node:fs';function a272_0x4e59(){const _0x441f6a=['success','message','parse','logFilePath','98811LyskpW','clearLogs','setRawCommand','createLogger','logTask','4SsToMv','winstonLogger','1494DHskrP','6614912qWqjHZ','toISOString','info','split','existsSync','17095SByHKJ','Failed\x20to\x20clear\x20logs:','timestamp','10546065rWtJDx','stringify','format','getWinstonInstance','rawCommand','transports','19250090kNePbc','完成:\x20','initWinstonLogger','clear','8OnStXr','302078gkqgwO','失败:\x20','duration','writeFileSync','readLogs','utf8','combine','command','details','readFileSync','now','6363889PstJWW','yellow','dirname','error','log','Failed\x20to\x20read\x20logs:','warn','addColors','currentRawCommand','errors'];a272_0x4e59=function(){return _0x441f6a;};return a272_0x4e59();}import a272_0x1245e7 from'node:path';class Logger{[a272_0x3112ca(0xa3)];[a272_0x3112ca(0x9c)];[a272_0x3112ca(0xcb)]='';constructor(){const _0x5bec76=a272_0x3112ca;this[_0x5bec76(0x9c)]='';}[a272_0x3112ca(0x9f)](_0x4fba66){const _0x23b110=a272_0x3112ca;this[_0x23b110(0xcb)]=_0x4fba66;}[a272_0x3112ca(0xb5)](){const _0x3b9908=a272_0x3112ca,_0xdbd4b3=a272_0x1245e7[_0x3b9908(0xc5)](this[_0x3b9908(0x9c)]);!a272_0x1307c4[_0x3b9908(0xa9)](_0xdbd4b3)&&a272_0x1307c4['mkdirSync'](_0xdbd4b3,{'recursive':!![]});const _0x2b8f12=a272_0x1866c8[_0x3b9908(0xaf)][_0x3b9908(0xbe)](a272_0x1866c8[_0x3b9908(0xaf)][_0x3b9908(0xac)](),a272_0x1866c8['format'][_0x3b9908(0xcc)]({'stack':!![]}),a272_0x1866c8[_0x3b9908(0xaf)]['printf'](_0xab0b00=>{const _0xe96b0b=_0x3b9908,_0x2327be={'timestamp':_0xab0b00[_0xe96b0b(0xac)]||new Date()[_0xe96b0b(0xa6)](),'level':_0xab0b00['level']||_0xe96b0b(0xa7),'command':_0xab0b00[_0xe96b0b(0xbf)]||'unknown','rawCommand':_0xab0b00[_0xe96b0b(0xb1)]||this[_0xe96b0b(0xcb)]||undefined,'message':_0xab0b00[_0xe96b0b(0x9a)]||'','duration':_0xab0b00[_0xe96b0b(0xba)]||undefined,'details':_0xab0b00[_0xe96b0b(0xc0)]||undefined};return JSON[_0xe96b0b(0xae)](_0x2327be);}));this[_0x3b9908(0xa3)]=a272_0x1866c8[_0x3b9908(0xa0)]({'level':_0x3b9908(0xa7),'format':_0x2b8f12,'transports':[new a272_0x1866c8[(_0x3b9908(0xb2))]['File']({'filename':this['logFilePath'],'level':_0x3b9908(0xa7)})],'silent':![]}),a272_0x1866c8[_0x3b9908(0xca)]({'success':'green','error':'red','warn':_0x3b9908(0xc4),'info':'blue'});}['setLogPath'](_0x476203){const _0x3ab80c=a272_0x3112ca;this[_0x3ab80c(0x9c)]=a272_0x1245e7['join'](_0x476203,'.lovrabet.log'),this['winstonLogger']&&this[_0x3ab80c(0xa3)][_0x3ab80c(0xb6)](),this[_0x3ab80c(0xb5)]();}['info'](_0x497e3d,_0x37e168,_0x16d9a9){if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x37e168,{'command':_0x497e3d,'details':_0x16d9a9});}['success'](_0x304b31,_0x2675e8,_0x79627b,_0x2e7858){const _0x4aa28d=a272_0x3112ca;if(!this[_0x4aa28d(0x9c)]||!this['winstonLogger'])return;this[_0x4aa28d(0xa3)][_0x4aa28d(0xc7)](_0x4aa28d(0xa7),_0x2675e8,{'level':_0x4aa28d(0xcd),'command':_0x304b31,'duration':_0x79627b,'details':_0x2e7858});}['error'](_0x4c4ccf,_0x26a5ef,_0x4afa0a){const _0x39fd95=a272_0x3112ca;if(!this['logFilePath']||!this[_0x39fd95(0xa3)])return;this[_0x39fd95(0xa3)]['error'](_0x26a5ef,{'command':_0x4c4ccf,'details':_0x4afa0a});}['warn'](_0x6386d0,_0x441934,_0x104c8d){const _0x137226=a272_0x3112ca;if(!this[_0x137226(0x9c)]||!this[_0x137226(0xa3)])return;this[_0x137226(0xa3)][_0x137226(0xc9)](_0x441934,{'command':_0x6386d0,'details':_0x104c8d});}async[a272_0x3112ca(0xa1)](_0x1ab704,_0x1771fa,_0x8e92e2){const _0x2482eb=a272_0x3112ca,_0x3bfc1e=Date[_0x2482eb(0xc2)]();this[_0x2482eb(0xa7)](_0x1ab704,'开始执行:\x20'+_0x1771fa);try{const _0x32b776=await _0x8e92e2(),_0xcb032c=Date['now']()-_0x3bfc1e;return this[_0x2482eb(0xcd)](_0x1ab704,_0x2482eb(0xb4)+_0x1771fa,_0xcb032c),_0x32b776;}catch(_0x42c55d){const _0x385203=Date['now']()-_0x3bfc1e;this[_0x2482eb(0xc6)](_0x1ab704,_0x2482eb(0xb9)+_0x1771fa,{'error':_0x42c55d instanceof Error?_0x42c55d[_0x2482eb(0x9a)]:String(_0x42c55d),'duration':_0x385203});throw _0x42c55d;}}[a272_0x3112ca(0xbc)](){const _0x55cbf6=a272_0x3112ca;try{if(!a272_0x1307c4[_0x55cbf6(0xa9)](this[_0x55cbf6(0x9c)]))return[];const _0x2767bc=a272_0x1307c4[_0x55cbf6(0xc1)](this[_0x55cbf6(0x9c)],_0x55cbf6(0xbd));return _0x2767bc[_0x55cbf6(0xa8)]('\x0a')['filter'](_0x32cdac=>_0x32cdac['trim']())['map'](_0x4592fe=>JSON[_0x55cbf6(0x9b)](_0x4592fe));}catch(_0x15cef1){return console[_0x55cbf6(0xc9)](_0x55cbf6(0xc8),_0x15cef1),[];}}[a272_0x3112ca(0x9e)](){const _0x35809b=a272_0x3112ca;try{a272_0x1307c4['existsSync'](this[_0x35809b(0x9c)])&&a272_0x1307c4[_0x35809b(0xbb)](this[_0x35809b(0x9c)],'',_0x35809b(0xbd));}catch(_0x356825){console['warn'](_0x35809b(0xab),_0x356825);}}[a272_0x3112ca(0xb0)](){const _0x1bbebc=a272_0x3112ca;return this[_0x1bbebc(0xa3)];}}export const logger=new Logger();
1
+ function a284_0x49dd(_0x3e10a4,_0x1fd6e2){_0x3e10a4=_0x3e10a4-0x6b;const _0x5ce531=a284_0x5ce5();let _0x49ddf1=_0x5ce531[_0x3e10a4];return _0x49ddf1;}const a284_0x3398ac=a284_0x49dd;(function(_0x3d5d95,_0x2aea38){const _0x39bb92=a284_0x49dd,_0x4f1fd2=_0x3d5d95();while(!![]){try{const _0x559fb2=-parseInt(_0x39bb92(0x90))/0x1+parseInt(_0x39bb92(0x72))/0x2+-parseInt(_0x39bb92(0x92))/0x3*(-parseInt(_0x39bb92(0x8c))/0x4)+parseInt(_0x39bb92(0x6f))/0x5+-parseInt(_0x39bb92(0x8f))/0x6+parseInt(_0x39bb92(0x9d))/0x7+parseInt(_0x39bb92(0x7b))/0x8*(-parseInt(_0x39bb92(0x71))/0x9);if(_0x559fb2===_0x2aea38)break;else _0x4f1fd2['push'](_0x4f1fd2['shift']());}catch(_0x77386f){_0x4f1fd2['push'](_0x4f1fd2['shift']());}}}(a284_0x5ce5,0x9c93c));import a284_0x5598f5 from'winston';import a284_0x199be5 from'node:fs';import a284_0x37d3cb from'node:path';class Logger{['winstonLogger'];[a284_0x3398ac(0x8a)];['currentRawCommand']='';constructor(){const _0xefc037=a284_0x3398ac;this[_0xefc037(0x8a)]='';}[a284_0x3398ac(0x87)](_0x52e91c){const _0x2289aa=a284_0x3398ac;this[_0x2289aa(0x97)]=_0x52e91c;}['initWinstonLogger'](){const _0x2827c4=a284_0x3398ac,_0x135b40=a284_0x37d3cb[_0x2827c4(0x8e)](this[_0x2827c4(0x8a)]);!a284_0x199be5['existsSync'](_0x135b40)&&a284_0x199be5[_0x2827c4(0x75)](_0x135b40,{'recursive':!![]});const _0x12d2b7=a284_0x5598f5['format']['combine'](a284_0x5598f5[_0x2827c4(0x6b)][_0x2827c4(0x9a)](),a284_0x5598f5[_0x2827c4(0x6b)][_0x2827c4(0x91)]({'stack':!![]}),a284_0x5598f5[_0x2827c4(0x6b)]['printf'](_0x216a08=>{const _0x35f459=_0x2827c4,_0xa638e5={'timestamp':_0x216a08[_0x35f459(0x9a)]||new Date()[_0x35f459(0x93)](),'level':_0x216a08['level']||_0x35f459(0x99),'command':_0x216a08['command']||'unknown','rawCommand':_0x216a08[_0x35f459(0x80)]||this[_0x35f459(0x97)]||undefined,'message':_0x216a08[_0x35f459(0x8b)]||'','duration':_0x216a08[_0x35f459(0x6e)]||undefined,'details':_0x216a08[_0x35f459(0x7c)]||undefined};return JSON['stringify'](_0xa638e5);}));this['winstonLogger']=a284_0x5598f5[_0x2827c4(0x9b)]({'level':_0x2827c4(0x99),'format':_0x12d2b7,'transports':[new a284_0x5598f5[(_0x2827c4(0x7e))][(_0x2827c4(0x95))]({'filename':this[_0x2827c4(0x8a)],'level':'info'})],'silent':![]}),a284_0x5598f5['addColors']({'success':'green','error':_0x2827c4(0x70),'warn':_0x2827c4(0x7d),'info':'blue'});}[a284_0x3398ac(0x6d)](_0x3e2c69){const _0x19e443=a284_0x3398ac;this[_0x19e443(0x8a)]=a284_0x37d3cb[_0x19e443(0x7f)](_0x3e2c69,'.lovrabet.log'),this[_0x19e443(0x88)]&&this[_0x19e443(0x88)][_0x19e443(0x96)](),this[_0x19e443(0x6c)]();}[a284_0x3398ac(0x99)](_0x1e7776,_0x350e41,_0x4c5279){const _0x3f5d33=a284_0x3398ac;if(!this[_0x3f5d33(0x8a)]||!this['winstonLogger'])return;this[_0x3f5d33(0x88)][_0x3f5d33(0x99)](_0x350e41,{'command':_0x1e7776,'details':_0x4c5279});}[a284_0x3398ac(0x74)](_0x3f2c1e,_0x1e36a2,_0x35ce50,_0x15483e){const _0x46bdef=a284_0x3398ac;if(!this[_0x46bdef(0x8a)]||!this['winstonLogger'])return;this[_0x46bdef(0x88)]['log'](_0x46bdef(0x99),_0x1e36a2,{'level':_0x46bdef(0x74),'command':_0x3f2c1e,'duration':_0x35ce50,'details':_0x15483e});}[a284_0x3398ac(0x98)](_0x484c80,_0x2dd8bd,_0x3e5ff4){const _0x20fce7=a284_0x3398ac;if(!this[_0x20fce7(0x8a)]||!this[_0x20fce7(0x88)])return;this[_0x20fce7(0x88)][_0x20fce7(0x98)](_0x2dd8bd,{'command':_0x484c80,'details':_0x3e5ff4});}[a284_0x3398ac(0x86)](_0x50c0e6,_0x41c5d4,_0x3f323e){const _0x402114=a284_0x3398ac;if(!this[_0x402114(0x8a)]||!this[_0x402114(0x88)])return;this[_0x402114(0x88)][_0x402114(0x86)](_0x41c5d4,{'command':_0x50c0e6,'details':_0x3f323e});}async[a284_0x3398ac(0x8d)](_0x4155e8,_0x2975a0,_0x58d290){const _0x37dd3f=a284_0x3398ac,_0x471379=Date[_0x37dd3f(0x78)]();this[_0x37dd3f(0x99)](_0x4155e8,_0x37dd3f(0x85)+_0x2975a0);try{const _0x1058a5=await _0x58d290(),_0x18010e=Date[_0x37dd3f(0x78)]()-_0x471379;return this[_0x37dd3f(0x74)](_0x4155e8,_0x37dd3f(0x79)+_0x2975a0,_0x18010e),_0x1058a5;}catch(_0x561695){const _0x2f439d=Date[_0x37dd3f(0x78)]()-_0x471379;this[_0x37dd3f(0x98)](_0x4155e8,_0x37dd3f(0x84)+_0x2975a0,{'error':_0x561695 instanceof Error?_0x561695[_0x37dd3f(0x8b)]:String(_0x561695),'duration':_0x2f439d});throw _0x561695;}}[a284_0x3398ac(0x9e)](){const _0x5da21a=a284_0x3398ac;try{if(!a284_0x199be5['existsSync'](this['logFilePath']))return[];const _0x4c1041=a284_0x199be5[_0x5da21a(0x94)](this[_0x5da21a(0x8a)],'utf8');return _0x4c1041[_0x5da21a(0x89)]('\x0a')[_0x5da21a(0x83)](_0x4b08db=>_0x4b08db[_0x5da21a(0x7a)]())['map'](_0x4f6134=>JSON[_0x5da21a(0x76)](_0x4f6134));}catch(_0x339bac){return console['warn'](_0x5da21a(0x81),_0x339bac),[];}}[a284_0x3398ac(0x82)](){const _0x40cc93=a284_0x3398ac;try{a284_0x199be5[_0x40cc93(0x9c)](this[_0x40cc93(0x8a)])&&a284_0x199be5[_0x40cc93(0x73)](this['logFilePath'],'','utf8');}catch(_0x1e8ba7){console[_0x40cc93(0x86)]('Failed\x20to\x20clear\x20logs:',_0x1e8ba7);}}[a284_0x3398ac(0x77)](){const _0x1f0628=a284_0x3398ac;return this[_0x1f0628(0x88)];}}function a284_0x5ce5(){const _0x22b108=['完成:\x20','trim','136odBIaQ','details','yellow','transports','join','rawCommand','Failed\x20to\x20read\x20logs:','clearLogs','filter','失败:\x20','开始执行:\x20','warn','setRawCommand','winstonLogger','split','logFilePath','message','4mirrXM','logTask','dirname','4911636vgqQDw','452317xGuPXu','errors','75135mVQEEd','toISOString','readFileSync','File','clear','currentRawCommand','error','info','timestamp','createLogger','existsSync','8131725SlJbSH','readLogs','format','initWinstonLogger','setLogPath','duration','1014090zEfIGY','red','70029jKzEPh','1310004ZZBrvX','writeFileSync','success','mkdirSync','parse','getWinstonInstance','now'];a284_0x5ce5=function(){return _0x22b108;};return a284_0x5ce5();}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x4a0107,_0x5eec88){const _0x23aa09=a273_0x3ef2,_0x3d1adb=_0x4a0107();while(!![]){try{const _0x1bd008=-parseInt(_0x23aa09(0x16f))/0x1+parseInt(_0x23aa09(0x172))/0x2+parseInt(_0x23aa09(0x173))/0x3+parseInt(_0x23aa09(0x170))/0x4*(parseInt(_0x23aa09(0x174))/0x5)+parseInt(_0x23aa09(0x16d))/0x6*(parseInt(_0x23aa09(0x171))/0x7)+parseInt(_0x23aa09(0x176))/0x8+-parseInt(_0x23aa09(0x175))/0x9;if(_0x1bd008===_0x5eec88)break;else _0x3d1adb['push'](_0x3d1adb['shift']());}catch(_0x2e4ca6){_0x3d1adb['push'](_0x3d1adb['shift']());}}}(a273_0x1495,0xe7c1b));import{CliErrors}from'../errors.js';function a273_0x3ef2(_0x2447f0,_0x2db695){_0x2447f0=_0x2447f0-0x16a;const _0x1495b2=a273_0x1495();let _0x3ef2e9=_0x1495b2[_0x2447f0];return _0x3ef2e9;}export function parseJsonParams(_0x2ef8fb){const _0x1934dc=a273_0x3ef2;if(!_0x2ef8fb)return undefined;let _0xb21227;try{_0xb21227=JSON['parse'](_0x2ef8fb);}catch{throw CliErrors[_0x1934dc(0x16e)](_0x1934dc(0x16a)+_0x2ef8fb);}if(!_0xb21227||typeof _0xb21227!==_0x1934dc(0x16c)||Array['isArray'](_0xb21227))throw CliErrors[_0x1934dc(0x16e)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x1934dc(0x16b));return _0xb21227;}function a273_0x1495(){const _0x3ac5e7=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','6BGRVTD','validation','1237111UhQJfi','20276zbNxRK','1801331rsUvFm','433760Hfugus','3060768BCXTxJ','610vYxwHd','7777377WDtvmR','7501216apmnli','Invalid\x20JSON\x20for\x20--params:\x20'];a273_0x1495=function(){return _0x3ac5e7;};return a273_0x1495();}
1
+ function a285_0x415c(_0x5de5cb,_0x49f374){_0x5de5cb=_0x5de5cb-0xb7;const _0x48743a=a285_0x4874();let _0x415c02=_0x48743a[_0x5de5cb];return _0x415c02;}(function(_0x29a528,_0x1fb558){const _0x1d578c=a285_0x415c,_0x1c46b6=_0x29a528();while(!![]){try{const _0x5ad465=parseInt(_0x1d578c(0xb8))/0x1+parseInt(_0x1d578c(0xbe))/0x2+-parseInt(_0x1d578c(0xb7))/0x3+-parseInt(_0x1d578c(0xb9))/0x4*(parseInt(_0x1d578c(0xc0))/0x5)+-parseInt(_0x1d578c(0xc4))/0x6*(-parseInt(_0x1d578c(0xbf))/0x7)+-parseInt(_0x1d578c(0xc2))/0x8+parseInt(_0x1d578c(0xc1))/0x9;if(_0x5ad465===_0x1fb558)break;else _0x1c46b6['push'](_0x1c46b6['shift']());}catch(_0x44e77e){_0x1c46b6['push'](_0x1c46b6['shift']());}}}(a285_0x4874,0x4631a));import{CliErrors}from'../errors.js';function a285_0x4874(){const _0x50b6fe=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','isArray','object','--params\x20must\x20be\x20a\x20JSON\x20object','84368uZsNJe','7PMBLbn','8945biROqb','2234556bdDByb','3616400SVGsYr','Invalid\x20JSON\x20for\x20--params:\x20','1634592GhcOyO','parse','660129kwSBBB','402074VVnOdV','12pjXSMr'];a285_0x4874=function(){return _0x50b6fe;};return a285_0x4874();}export function parseJsonParams(_0x298dee){const _0x54c3eb=a285_0x415c;if(!_0x298dee)return undefined;let _0x152b6e;try{_0x152b6e=JSON[_0x54c3eb(0xc5)](_0x298dee);}catch{throw CliErrors['validation'](_0x54c3eb(0xc3)+_0x298dee);}if(!_0x152b6e||typeof _0x152b6e!==_0x54c3eb(0xbc)||Array[_0x54c3eb(0xbb)](_0x152b6e))throw CliErrors['validation'](_0x54c3eb(0xbd),_0x54c3eb(0xba));return _0x152b6e;}
@@ -1 +1 @@
1
- const a274_0x182a5d=a274_0x4e60;function a274_0x4574(){const _0x42c07e=['platform','win32','3Muuevt','4504612hiAORa','251762OcuKwA','2178900wLqmrL','5168535epPuTL','6551048gsfWSE','7TAWCAJ','3487422vIwAwb','.cmd','17207010cFnaEV'];a274_0x4574=function(){return _0x42c07e;};return a274_0x4574();}(function(_0x26305e,_0x2dce26){const _0x496133=a274_0x4e60,_0x433bc8=_0x26305e();while(!![]){try{const _0x4feca5=-parseInt(_0x496133(0x15a))/0x1*(parseInt(_0x496133(0x156))/0x2)+-parseInt(_0x496133(0x154))/0x3*(-parseInt(_0x496133(0x157))/0x4)+parseInt(_0x496133(0x158))/0x5+-parseInt(_0x496133(0x15b))/0x6+-parseInt(_0x496133(0x155))/0x7+-parseInt(_0x496133(0x159))/0x8+parseInt(_0x496133(0x151))/0x9;if(_0x4feca5===_0x2dce26)break;else _0x433bc8['push'](_0x433bc8['shift']());}catch(_0x2b78d1){_0x433bc8['push'](_0x433bc8['shift']());}}}(a274_0x4574,0x8a111));export const isWindows=process[a274_0x182a5d(0x152)]===a274_0x182a5d(0x153);function a274_0x4e60(_0x5b2912,_0xf7cc02){_0x5b2912=_0x5b2912-0x151;const _0x4574d7=a274_0x4574();let _0x4e60cb=_0x4574d7[_0x5b2912];return _0x4e60cb;}export function resolveNpmBin(_0x2fc0c2){const _0x59b8c3=a274_0x182a5d;return isWindows?_0x2fc0c2+_0x59b8c3(0x15c):_0x2fc0c2;}
1
+ const a286_0x732e01=a286_0x5646;function a286_0x5646(_0x5642eb,_0xa54dfa){_0x5642eb=_0x5642eb-0x12a;const _0x377320=a286_0x3773();let _0x564615=_0x377320[_0x5642eb];return _0x564615;}(function(_0x551ce7,_0x53ef88){const _0x1c78ae=a286_0x5646,_0x41f788=_0x551ce7();while(!![]){try{const _0x3936cf=parseInt(_0x1c78ae(0x12b))/0x1+parseInt(_0x1c78ae(0x12e))/0x2*(-parseInt(_0x1c78ae(0x136))/0x3)+parseInt(_0x1c78ae(0x12c))/0x4*(-parseInt(_0x1c78ae(0x12d))/0x5)+-parseInt(_0x1c78ae(0x138))/0x6*(parseInt(_0x1c78ae(0x130))/0x7)+-parseInt(_0x1c78ae(0x131))/0x8*(-parseInt(_0x1c78ae(0x132))/0x9)+-parseInt(_0x1c78ae(0x12a))/0xa*(-parseInt(_0x1c78ae(0x137))/0xb)+parseInt(_0x1c78ae(0x133))/0xc;if(_0x3936cf===_0x53ef88)break;else _0x41f788['push'](_0x41f788['shift']());}catch(_0x5c3979){_0x41f788['push'](_0x41f788['shift']());}}}(a286_0x3773,0xa4b62));function a286_0x3773(){const _0x4b330a=['25734CpCggE','970OpiHPC','788118cgZgDd','164KSdKQC','91815OWsREs','2363218sZJYBk','.cmd','1687phhPLn','1336CjzUGt','22761YGpWiF','15467988dwSbHy','win32','platform','3DHmxAh','129657ShfDeb'];a286_0x3773=function(){return _0x4b330a;};return a286_0x3773();}export const isWindows=process[a286_0x732e01(0x135)]===a286_0x732e01(0x134);export function resolveNpmBin(_0x599a56){const _0xe224dd=a286_0x732e01;return isWindows?_0x599a56+_0xe224dd(0x12f):_0x599a56;}
@@ -1 +1 @@
1
- const a275_0x2879b9=a275_0x504f;(function(_0x41a98f,_0x17833f){const _0x2b4220=a275_0x504f,_0x295320=_0x41a98f();while(!![]){try{const _0x33cb91=parseInt(_0x2b4220(0x1a6))/0x1+parseInt(_0x2b4220(0x1a5))/0x2*(-parseInt(_0x2b4220(0x19d))/0x3)+-parseInt(_0x2b4220(0x1a9))/0x4*(-parseInt(_0x2b4220(0x197))/0x5)+parseInt(_0x2b4220(0x199))/0x6*(-parseInt(_0x2b4220(0x1a3))/0x7)+-parseInt(_0x2b4220(0x1a7))/0x8+parseInt(_0x2b4220(0x19f))/0x9*(parseInt(_0x2b4220(0x198))/0xa)+parseInt(_0x2b4220(0x1ac))/0xb;if(_0x33cb91===_0x17833f)break;else _0x295320['push'](_0x295320['shift']());}catch(_0x11deae){_0x295320['push'](_0x295320['shift']());}}}(a275_0x204b,0xb7f16));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a275_0x204b(){const _0x507123=['content','1412426eOPqzX','611272RmcntN','6284080aVAglr','本地模板文件不存在:\x20','329512yVkBWL','utf-8','CDN\x20返回数据格式错误','24314048GiMLTT','status','lastUpdated','json','statusText','35rMJSWi','5780LXFVjc','18YqAAjv','/rules/rules.json','.cursor/rules','lovrabet_rules.mdc','3WgpkVA','application/json','2610OapaxR','../../templates/rules/lovrabet_rules.mdc.tpl','CDN\x20请求失败:\x20','agents.md','3081757dFucOU'];a275_0x204b=function(){return _0x507123;};return a275_0x204b();}function getRulesCdnUrl(){const _0x13b402=a275_0x504f,_0x3f6ca2=getTemplateBaseUrl();return _0x3f6ca2+_0x13b402(0x19a);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a275_0x2879b9(0x1a0));export async function fetchRulesFromCDN(){const _0x41c78f=a275_0x2879b9,_0x11b797=getRulesCdnUrl(),_0x1ee7b0=await fetch(_0x11b797,{'headers':{'Accept':_0x41c78f(0x19e)}});if(!_0x1ee7b0['ok'])throw new Error(_0x41c78f(0x1a1)+_0x1ee7b0[_0x41c78f(0x193)]+'\x20'+_0x1ee7b0[_0x41c78f(0x196)]);const _0x43f008=await _0x1ee7b0[_0x41c78f(0x195)]();if(!_0x43f008[_0x41c78f(0x1a4)]||typeof _0x43f008[_0x41c78f(0x1a4)]!=='string')throw new Error(_0x41c78f(0x1ab));return _0x43f008;}export async function getRulesContent(){try{const _0x1357fa=await fetchRulesFromCDN();return _0x1357fa['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2efedf=a275_0x2879b9;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2efedf(0x1aa));throw new Error(_0x2efedf(0x1a8)+LOCAL_TEMPLATE_PATH);}function a275_0x504f(_0x522ea4,_0x3a6cd7){_0x522ea4=_0x522ea4-0x193;const _0x204b91=a275_0x204b();let _0x504ff0=_0x204b91[_0x522ea4];return _0x504ff0;}export async function writeRulesFile(_0x45c38f){const _0x147b05=a275_0x2879b9,_0x4cdd60=await fetchRulesFromCDN()['catch'](()=>null);let _0x2286a9;_0x4cdd60?(_0x2286a9=_0x4cdd60['content'],_0x4cdd60['lastUpdated']&&(_0x2286a9=appendUpdateTime(_0x2286a9,_0x4cdd60[_0x147b05(0x194)]))):_0x2286a9=readLocalTemplate();const _0x31bda7=dirname(_0x45c38f);!existsSync(_0x31bda7)&&mkdirSync(_0x31bda7,{'recursive':!![]}),writeFileSync(_0x45c38f,_0x2286a9,_0x147b05(0x1aa));}export async function copyRulesToCursor(_0xf77b34){const _0x5a8377=a275_0x2879b9,_0x394074=join(_0xf77b34,_0x5a8377(0x19b)),_0x24e07b=join(_0x394074,_0x5a8377(0x19c));if(existsSync(_0x24e07b))return![];return await writeRulesFile(_0x24e07b),!![];}export async function copyRulesToAgentsMd(_0x549591){const _0x565456=a275_0x2879b9,_0x436521=join(_0x549591,_0x565456(0x1a2));if(existsSync(_0x436521))return![];return await writeRulesFile(_0x436521),!![];}
1
+ (function(_0x1fb3e9,_0x33b6b7){const _0x1d6d9f=a287_0x601d,_0x1b1194=_0x1fb3e9();while(!![]){try{const _0x4e534a=parseInt(_0x1d6d9f(0xdf))/0x1+parseInt(_0x1d6d9f(0xd0))/0x2+-parseInt(_0x1d6d9f(0xd5))/0x3*(-parseInt(_0x1d6d9f(0xd7))/0x4)+-parseInt(_0x1d6d9f(0xdd))/0x5+-parseInt(_0x1d6d9f(0xd6))/0x6*(parseInt(_0x1d6d9f(0xd9))/0x7)+parseInt(_0x1d6d9f(0xda))/0x8+-parseInt(_0x1d6d9f(0xd2))/0x9*(parseInt(_0x1d6d9f(0xe2))/0xa);if(_0x4e534a===_0x33b6b7)break;else _0x1b1194['push'](_0x1b1194['shift']());}catch(_0x44dc88){_0x1b1194['push'](_0x1b1194['shift']());}}}(a287_0x2492,0x2d597));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a287_0x601d(_0x3f8afd,_0x5c649a){_0x3f8afd=_0x3f8afd-0xca;const _0x249266=a287_0x2492();let _0x601d19=_0x249266[_0x3f8afd];return _0x601d19;}function getRulesCdnUrl(){const _0x336037=a287_0x601d,_0x2e3126=getTemplateBaseUrl();return _0x2e3126+_0x336037(0xd8);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x3dac15=a287_0x601d,_0x260783=getRulesCdnUrl(),_0x10881a=await fetch(_0x260783,{'headers':{'Accept':_0x3dac15(0xcc)}});if(!_0x10881a['ok'])throw new Error(_0x3dac15(0xca)+_0x10881a[_0x3dac15(0xd1)]+'\x20'+_0x10881a[_0x3dac15(0xe0)]);const _0x10b720=await _0x10881a[_0x3dac15(0xcd)]();if(!_0x10b720[_0x3dac15(0xde)]||typeof _0x10b720[_0x3dac15(0xde)]!==_0x3dac15(0xdc))throw new Error(_0x3dac15(0xcb));return _0x10b720;}export async function getRulesContent(){const _0x467d62=a287_0x601d;try{const _0x1b753b=await fetchRulesFromCDN();return _0x1b753b[_0x467d62(0xde)];}catch{return readLocalTemplate();}}function a287_0x2492(){const _0x6aed87=['398054GeyrQz','status','2547PUAoBt','catch','.cursor/rules','3xCPfaY','30LPhDIM','1245700xRRAKg','/rules/rules.json','223489oWtQDt','1031680XYOeED','lastUpdated','string','1398440wDVhkG','content','282529KCDvLw','statusText','utf-8','10490yvXGbj','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','application/json','json','lovrabet_rules.mdc','agents.md'];a287_0x2492=function(){return _0x6aed87;};return a287_0x2492();}export function readLocalTemplate(){const _0x9c28af=a287_0x601d;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x9c28af(0xe1));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3f29e8){const _0x3e6e17=a287_0x601d,_0x1191e5=await fetchRulesFromCDN()[_0x3e6e17(0xd3)](()=>null);let _0x59c68d;_0x1191e5?(_0x59c68d=_0x1191e5[_0x3e6e17(0xde)],_0x1191e5[_0x3e6e17(0xdb)]&&(_0x59c68d=appendUpdateTime(_0x59c68d,_0x1191e5[_0x3e6e17(0xdb)]))):_0x59c68d=readLocalTemplate();const _0x2ccc12=dirname(_0x3f29e8);!existsSync(_0x2ccc12)&&mkdirSync(_0x2ccc12,{'recursive':!![]}),writeFileSync(_0x3f29e8,_0x59c68d,_0x3e6e17(0xe1));}export async function copyRulesToCursor(_0x12d6b8){const _0x1a437e=a287_0x601d,_0x2cc966=join(_0x12d6b8,_0x1a437e(0xd4)),_0x4ab98f=join(_0x2cc966,_0x1a437e(0xce));if(existsSync(_0x4ab98f))return![];return await writeRulesFile(_0x4ab98f),!![];}export async function copyRulesToAgentsMd(_0x1e38c2){const _0x28bc6c=a287_0x601d,_0x3b8a6f=join(_0x1e38c2,_0x28bc6c(0xcf));if(existsSync(_0x3b8a6f))return![];return await writeRulesFile(_0x3b8a6f),!![];}