@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.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 (435) 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.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +117 -0
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/page/file-system.js +1 -1
  239. package/lib/core/page/hash.js +1 -1
  240. package/lib/core/page/lock.js +1 -1
  241. package/lib/core/sql-index-auditor.js +1 -1
  242. package/lib/core/sql-sync/config.js +1 -1
  243. package/lib/core/sql-sync/file-system.js +1 -1
  244. package/lib/core/sql-sync/hash.js +1 -1
  245. package/lib/core/sql-sync/lock.js +1 -1
  246. package/lib/core/sql-sync/utils.js +1 -1
  247. package/lib/core/sql-validator.js +1 -1
  248. package/lib/errors.js +1 -1
  249. package/lib/framework/build-all-flags.js +1 -1
  250. package/lib/framework/error-output.js +1 -1
  251. package/lib/framework/explicit-yes.js +1 -1
  252. package/lib/framework/flags.js +1 -1
  253. package/lib/framework/help.js +1 -1
  254. package/lib/framework/index.js +1 -1
  255. package/lib/framework/output.js +1 -1
  256. package/lib/framework/response.js +1 -1
  257. package/lib/framework/runner-alias.js +1 -1
  258. package/lib/framework/runner.js +1 -1
  259. package/lib/framework/schema-export.js +1 -1
  260. package/lib/framework/types.js +1 -1
  261. package/lib/generated/build-info.d.ts +4 -4
  262. package/lib/generated/build-info.js +1 -1
  263. package/lib/help.js +1 -1
  264. package/lib/postinstall.d.ts +3 -0
  265. package/lib/postinstall.js +1 -0
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.d.ts +37 -0
  272. package/lib/skills/builtin-skill.js +1 -0
  273. package/lib/skills/main.js +1 -1
  274. package/lib/skills/npx-skills-add.d.ts +4 -2
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/copy-directory.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/rules-cdn.js +1 -1
  300. package/lib/utils/sleep.js +1 -1
  301. package/lib/utils/template-replacer.js +1 -1
  302. package/lib/utils/update-notice.js +1 -1
  303. package/lib/utils/version.js +1 -1
  304. package/lib/utils/with-active-cookie.js +1 -1
  305. package/lib/utils/write-cli-side-channel.js +1 -1
  306. package/package.json +9 -3
  307. package/scripts/postinstall.mjs +24 -0
  308. package/skills/rabetbase/SKILL.md +493 -0
  309. package/skills/rabetbase/guides/backend-function.md +835 -0
  310. package/skills/rabetbase/guides/best-practices.md +137 -0
  311. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  312. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  313. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  314. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  315. package/skills/rabetbase/guides/frontend-development.md +179 -0
  316. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  317. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  318. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  320. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  322. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  323. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  324. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  325. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  332. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  333. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  334. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  335. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  336. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  337. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  338. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  339. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  340. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  341. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  342. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  343. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  344. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  345. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  346. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  347. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  348. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  349. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  350. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  351. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  352. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  353. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  354. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  355. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  357. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  358. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  371. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  372. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  373. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  374. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  375. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  376. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  377. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  378. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  379. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  381. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  382. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  383. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  384. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  385. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  386. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  387. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  389. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  391. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  392. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  393. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  394. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  395. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  396. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  397. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  398. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  401. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  402. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  407. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  408. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  409. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  410. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  411. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  413. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  414. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  415. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  416. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  418. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  419. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  420. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  421. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  422. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  423. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  424. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  425. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  427. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  428. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  429. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  430. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  431. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  432. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  433. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  434. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  435. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- function a252_0x2e29(_0x29a251,_0x5d6328){_0x29a251=_0x29a251-0x103;const _0x4c954c=a252_0x4c95();let _0x2e29e3=_0x4c954c[_0x29a251];return _0x2e29e3;}function a252_0x4c95(){const _0x5d32d4=['1146212wMClQJ','stringify','test','236120CPTGiV','some','entries','rabetbase.command','[REDACTED]','987309tLLqsO','687312WlqMYg','28eMrjYj','2465815OOOFNP','flags','37203mYCzNN','3rFFTZy','service','durationMs','error','1918035BrJsmT'];a252_0x4c95=function(){return _0x5d32d4;};return a252_0x4c95();}(function(_0x54d598,_0xdb4146){const _0x562076=a252_0x2e29,_0x388aae=_0x54d598();while(!![]){try{const _0x14cb94=parseInt(_0x562076(0x114))/0x1*(parseInt(_0x562076(0x111))/0x2)+parseInt(_0x562076(0x115))/0x3*(parseInt(_0x562076(0x107))/0x4)+-parseInt(_0x562076(0x112))/0x5+parseInt(_0x562076(0x110))/0x6+-parseInt(_0x562076(0x106))/0x7+parseInt(_0x562076(0x10a))/0x8+parseInt(_0x562076(0x10f))/0x9;if(_0x14cb94===_0xdb4146)break;else _0x388aae['push'](_0x388aae['shift']());}catch(_0x5af473){_0x388aae['push'](_0x388aae['shift']());}}}(a252_0x4c95,0x47c6b));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(_0xc11b02){const _0x194e4b=a252_0x2e29;return SENSITIVE_PATTERNS[_0x194e4b(0x10b)](_0x98e670=>_0x98e670[_0x194e4b(0x109)](_0xc11b02));}function sanitizeFlags(_0x2793a4){const _0x43ac33=a252_0x2e29,_0x8bd3f4={};for(const [_0x1ac427,_0x3005a7]of Object[_0x43ac33(0x10c)](_0x2793a4)){isSensitiveKey(_0x1ac427)?_0x8bd3f4[_0x1ac427]=_0x3005a7!=null&&_0x3005a7!==''?_0x43ac33(0x10e):_0x3005a7:_0x8bd3f4[_0x1ac427]=_0x3005a7;}return _0x8bd3f4;}export async function reportCommandTrace(_0x2cd8a1){const _0x1ffb5b=a252_0x2e29;try{const _0x3b9639=sanitizeFlags(_0x2cd8a1[_0x1ffb5b(0x113)]);await sendCliTraceLog({'spanName':_0x1ffb5b(0x10d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2cd8a1[_0x1ffb5b(0x103)],'command.name':_0x2cd8a1['command'],'command.flags':JSON[_0x1ffb5b(0x108)](_0x3b9639),..._0x2cd8a1[_0x1ffb5b(0x104)]!=null?{'command.duration_ms':_0x2cd8a1[_0x1ffb5b(0x104)]}:{},..._0x2cd8a1[_0x1ffb5b(0x105)]?{'command.error':_0x2cd8a1['error']instanceof Error?_0x2cd8a1['error']['message']:String(_0x2cd8a1['error'])}:{}}});}catch{}}
1
+ (function(_0x2a72b1,_0x3897eb){const _0x592085=a264_0x4249,_0x536506=_0x2a72b1();while(!![]){try{const _0xb30bc6=-parseInt(_0x592085(0x14c))/0x1*(-parseInt(_0x592085(0x14d))/0x2)+-parseInt(_0x592085(0x148))/0x3+-parseInt(_0x592085(0x152))/0x4+parseInt(_0x592085(0x14f))/0x5*(parseInt(_0x592085(0x14b))/0x6)+parseInt(_0x592085(0x141))/0x7*(-parseInt(_0x592085(0x149))/0x8)+parseInt(_0x592085(0x147))/0x9+parseInt(_0x592085(0x14e))/0xa;if(_0xb30bc6===_0x3897eb)break;else _0x536506['push'](_0x536506['shift']());}catch(_0x3c59de){_0x536506['push'](_0x536506['shift']());}}}(a264_0x2e6b,0x3f961));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_0x2e6b(){const _0x2f0bc7=['7eMhHuV','stringify','[REDACTED]','durationMs','entries','command','1938213VERbZJ','1381869wZVkes','2240120pJvzak','test','26538zhUFcE','1WuLozF','692178dSlbvE','1003600bpaugc','510grhVrG','rabetbase.command','flags','447460QoLSsu','error'];a264_0x2e6b=function(){return _0x2f0bc7;};return a264_0x2e6b();}function isSensitiveKey(_0x5cd410){const _0x5bbbd7=a264_0x4249;return SENSITIVE_PATTERNS['some'](_0x2a48d1=>_0x2a48d1[_0x5bbbd7(0x14a)](_0x5cd410));}function sanitizeFlags(_0x31cb75){const _0x2e0a33=a264_0x4249,_0x8e2466={};for(const [_0x4a44b0,_0x5230a2]of Object[_0x2e0a33(0x145)](_0x31cb75)){isSensitiveKey(_0x4a44b0)?_0x8e2466[_0x4a44b0]=_0x5230a2!=null&&_0x5230a2!==''?_0x2e0a33(0x143):_0x5230a2:_0x8e2466[_0x4a44b0]=_0x5230a2;}return _0x8e2466;}function a264_0x4249(_0x482112,_0x14613f){_0x482112=_0x482112-0x140;const _0x2e6b96=a264_0x2e6b();let _0x42497d=_0x2e6b96[_0x482112];return _0x42497d;}export async function reportCommandTrace(_0x2eb13b){const _0x5dacf6=a264_0x4249;try{const _0x2e5810=sanitizeFlags(_0x2eb13b[_0x5dacf6(0x151)]);await sendCliTraceLog({'spanName':_0x5dacf6(0x150),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x2eb13b['service'],'command.name':_0x2eb13b[_0x5dacf6(0x146)],'command.flags':JSON[_0x5dacf6(0x142)](_0x2e5810),..._0x2eb13b[_0x5dacf6(0x144)]!=null?{'command.duration_ms':_0x2eb13b['durationMs']}:{},..._0x2eb13b[_0x5dacf6(0x140)]?{'command.error':_0x2eb13b[_0x5dacf6(0x140)]instanceof Error?_0x2eb13b['error']['message']:String(_0x2eb13b[_0x5dacf6(0x140)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a253_0x3b73(_0x8541c5,_0x2ac757){_0x8541c5=_0x8541c5-0x1d2;var _0x23935a=a253_0x2393();var _0x3b7335=_0x23935a[_0x8541c5];return _0x3b7335;}function a253_0x2393(){var _0x5e37e1=['14PUSqNK','198984aEbTQh','8bQugNK','error','64254VwGytY','61280726iQJvtV','Failed\x20to\x20report\x20CLI\x20help\x20trace:','11683YpTLHm','143HYxOlO','20VqIeer','service','1799514dOLAjm','2205219juhkDa','283736XPVyhs','4ZgVFyo','6168sJWFYU','95Cnbaph'];a253_0x2393=function(){return _0x5e37e1;};return a253_0x2393();}(function(_0x3e20cd,_0x535bc9){var _0x3a4edd=a253_0x3b73,_0xb5afb7=_0x3e20cd();while(!![]){try{var _0x3cd73f=-parseInt(_0x3a4edd(0x1dd))/0x1*(parseInt(_0x3a4edd(0x1d7))/0x2)+parseInt(_0x3a4edd(0x1d6))/0x3*(-parseInt(_0x3a4edd(0x1d8))/0x4)+-parseInt(_0x3a4edd(0x1da))/0x5*(parseInt(_0x3a4edd(0x1df))/0x6)+-parseInt(_0x3a4edd(0x1e2))/0x7*(parseInt(_0x3a4edd(0x1d9))/0x8)+-parseInt(_0x3a4edd(0x1d5))/0x9*(parseInt(_0x3a4edd(0x1d3))/0xa)+-parseInt(_0x3a4edd(0x1d2))/0xb*(parseInt(_0x3a4edd(0x1dc))/0xc)+-parseInt(_0x3a4edd(0x1e0))/0xd*(-parseInt(_0x3a4edd(0x1db))/0xe);if(_0x3cd73f===_0x535bc9)break;else _0xb5afb7['push'](_0xb5afb7['shift']());}catch(_0x2ed5ce){_0xb5afb7['push'](_0xb5afb7['shift']());}}}(a253_0x2393,0xb436d));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4b59d3,_0x451226){var _0x530d55=a253_0x3b73;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x4b59d3,..._0x451226?.[_0x530d55(0x1d4)]&&{'rabetbase.help.service':_0x451226[_0x530d55(0x1d4)]}}});}catch(_0x16d706){console[_0x530d55(0x1de)](_0x530d55(0x1e1),_0x16d706);}}
1
+ (function(_0x2865cf,_0x5161ad){var _0x19922c=a265_0x5499,_0x2ac4bb=_0x2865cf();while(!![]){try{var _0x46c822=-parseInt(_0x19922c(0x1c7))/0x1*(-parseInt(_0x19922c(0x1c1))/0x2)+parseInt(_0x19922c(0x1bd))/0x3*(parseInt(_0x19922c(0x1c9))/0x4)+-parseInt(_0x19922c(0x1c3))/0x5+-parseInt(_0x19922c(0x1c8))/0x6*(-parseInt(_0x19922c(0x1c0))/0x7)+parseInt(_0x19922c(0x1bf))/0x8*(-parseInt(_0x19922c(0x1bc))/0x9)+-parseInt(_0x19922c(0x1c4))/0xa*(-parseInt(_0x19922c(0x1c5))/0xb)+-parseInt(_0x19922c(0x1be))/0xc;if(_0x46c822===_0x5161ad)break;else _0x2ac4bb['push'](_0x2ac4bb['shift']());}catch(_0x168484){_0x2ac4bb['push'](_0x2ac4bb['shift']());}}}(a265_0x5b2c,0xa5938));function a265_0x5499(_0x5251e0,_0x5b2716){_0x5251e0=_0x5251e0-0x1bb;var _0x5b2c57=a265_0x5b2c();var _0x5499e8=_0x5b2c57[_0x5251e0];return _0x5499e8;}function a265_0x5b2c(){var _0x51d50d=['34KnqZVq','error','2224070yyXPuv','110jPgZeC','241406neZlBN','service','55172lDmIgQ','1865034uHuwYW','16bpSOvv','cli.help','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1402425kqVWyf','336981KGMlkj','7908192iGWfPu','40DyvOSZ','21KGWevA'];a265_0x5b2c=function(){return _0x51d50d;};return a265_0x5b2c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x566bc5,_0xfd37fe){var _0x2cddb9=a265_0x5499;try{await sendCliTraceLog({'spanName':_0x2cddb9(0x1ca),'logData':{'rabetbase.help.kind':_0x566bc5,..._0xfd37fe?.[_0x2cddb9(0x1c6)]&&{'rabetbase.help.service':_0xfd37fe[_0x2cddb9(0x1c6)]}}});}catch(_0x280be3){console[_0x2cddb9(0x1c2)](_0x2cddb9(0x1bb),_0x280be3);}}
@@ -1 +1 @@
1
- (function(_0xa5c641,_0x3b7250){const _0xe9d804=a254_0x543d,_0x4cbf81=_0xa5c641();while(!![]){try{const _0x337e7a=parseInt(_0xe9d804(0x161))/0x1*(-parseInt(_0xe9d804(0x167))/0x2)+-parseInt(_0xe9d804(0x165))/0x3*(parseInt(_0xe9d804(0x16b))/0x4)+parseInt(_0xe9d804(0x163))/0x5+-parseInt(_0xe9d804(0x164))/0x6+-parseInt(_0xe9d804(0x16a))/0x7+-parseInt(_0xe9d804(0x15e))/0x8+parseInt(_0xe9d804(0x15f))/0x9*(parseInt(_0xe9d804(0x166))/0xa);if(_0x337e7a===_0x3b7250)break;else _0x4cbf81['push'](_0x4cbf81['shift']());}catch(_0x3b9e41){_0x4cbf81['push'](_0x4cbf81['shift']());}}}(a254_0x2a0b,0xe34a6));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a254_0x2a0b(){const _0x465c82=['production','2QLuPXE','daily','3271585FySPoo','2914968AzPIuA','27774jMBhLE','149100GVgteQ','183036NOahLq','username','email','699377RQUGfy','76AiDxYr','tenant_code','4423584UdxlPB','1071SVwWeQ'];a254_0x2a0b=function(){return _0x465c82;};return a254_0x2a0b();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a254_0x543d(_0x485e22,_0x21ffc6){_0x485e22=_0x485e22-0x15e;const _0x2a0b72=a254_0x2a0b();let _0x543d8c=_0x2a0b72[_0x485e22];return _0x543d8c;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x508609=a254_0x543d,_0x5c5281=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x40cfcc=_0x5c5281?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x508609(0x162):_0x508609(0x160))}),setUserContext({'id':_0x40cfcc?.['id'],'username':_0x40cfcc?.[_0x508609(0x168)],'nickname':_0x40cfcc?.['nickname'],'email':_0x40cfcc?.[_0x508609(0x169)],'tenantCode':_0x40cfcc?.['tenant']?.[_0x508609(0x16c)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5c5281;}
1
+ function a266_0x15b3(_0x3a024a,_0x3f2958){_0x3a024a=_0x3a024a-0x1ea;const _0x40d415=a266_0x40d4();let _0x15b3ad=_0x40d415[_0x3a024a];return _0x15b3ad;}(function(_0x3f9581,_0x221717){const _0x175d6b=a266_0x15b3,_0x25e97a=_0x3f9581();while(!![]){try{const _0x879cc3=-parseInt(_0x175d6b(0x1eb))/0x1+parseInt(_0x175d6b(0x1f6))/0x2*(parseInt(_0x175d6b(0x1f7))/0x3)+parseInt(_0x175d6b(0x1ef))/0x4*(parseInt(_0x175d6b(0x1f9))/0x5)+-parseInt(_0x175d6b(0x1f1))/0x6+parseInt(_0x175d6b(0x1ea))/0x7*(parseInt(_0x175d6b(0x1f8))/0x8)+parseInt(_0x175d6b(0x1f0))/0x9+parseInt(_0x175d6b(0x1ed))/0xa*(-parseInt(_0x175d6b(0x1fa))/0xb);if(_0x879cc3===_0x221717)break;else _0x25e97a['push'](_0x25e97a['shift']());}catch(_0x319712){_0x25e97a['push'](_0x25e97a['shift']());}}}(a266_0x40d4,0x37e5a));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a266_0x40d4(){const _0x55ab0f=['507MWfpqG','216472NvfQvH','5XilWIv','11RkDrVy','7viEwCe','95890vfENeP','nickname','2152250CqxvWp','unknown','160516MzLJWr','3758724lgPXxH','1412610UaQkcJ','tenant_code','email','username','user','3440gZrCjM'];a266_0x40d4=function(){return _0x55ab0f;};return a266_0x40d4();}export async function ensureCliOtelTraceConfig(){const _0x44241d=a266_0x15b3,_0x384f49=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x464565=_0x384f49?.[_0x44241d(0x1f5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x44241d(0x1ee)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':'production')}),setUserContext({'id':_0x464565?.['id'],'username':_0x464565?.[_0x44241d(0x1f4)],'nickname':_0x464565?.[_0x44241d(0x1ec)],'email':_0x464565?.[_0x44241d(0x1f3)],'tenantCode':_0x464565?.['tenant']?.[_0x44241d(0x1f2)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x384f49;}
@@ -1 +1 @@
1
- (function(_0x193a31,_0x3ec521){const _0x17e601=a255_0x5513,_0x2734ca=_0x193a31();while(!![]){try{const _0x3b02f3=-parseInt(_0x17e601(0xc9))/0x1+-parseInt(_0x17e601(0xce))/0x2*(-parseInt(_0x17e601(0xc6))/0x3)+parseInt(_0x17e601(0xc3))/0x4*(parseInt(_0x17e601(0xc5))/0x5)+-parseInt(_0x17e601(0xc8))/0x6+-parseInt(_0x17e601(0xd3))/0x7*(parseInt(_0x17e601(0xc7))/0x8)+parseInt(_0x17e601(0xd2))/0x9+-parseInt(_0x17e601(0xcd))/0xa*(-parseInt(_0x17e601(0xd1))/0xb);if(_0x3b02f3===_0x3ec521)break;else _0x2734ca['push'](_0x2734ca['shift']());}catch(_0x36882f){_0x2734ca['push'](_0x2734ca['shift']());}}}(a255_0x1d8c,0x8c1f1));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a255_0x5513(_0xde4e49,_0xcf8aac){_0xde4e49=_0xde4e49-0xc3;const _0x1d8cbe=a255_0x1d8c();let _0x5513d4=_0x1d8cbe[_0xde4e49];return _0x5513d4;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a255_0x1d8c(){const _0xb3dcfe=['2480255UyVJHp','3BqCROE','7880VUohcw','5183364KRjJZk','371041gwpzfP','beforeExit','once','SIGINT','1170700bUxfbc','1217694sKYuuB','exit','SIGTERM','88rMWetC','8128071OASTwa','8071HfBFJm','4UGpgAQ','then'];a255_0x1d8c=function(){return _0xb3dcfe;};return a255_0x1d8c();}export function registerOtelShutdownOnExit(){const _0x4ff895=a255_0x5513;process[_0x4ff895(0xcb)](_0x4ff895(0xca),()=>{void flushOtelNodeIfUsed();});const _0x2a357f=()=>{const _0x498080=_0x4ff895;void flushOtelNodeIfUsed()[_0x498080(0xc4)](()=>process[_0x498080(0xcf)](0x0));};process[_0x4ff895(0xcb)](_0x4ff895(0xcc),_0x2a357f),process[_0x4ff895(0xcb)](_0x4ff895(0xd0),_0x2a357f);}export async function exitWithOtelShutdown(_0x41f6f7){const _0x5b9301=a255_0x5513;await flushOtelNodeIfUsed(),process[_0x5b9301(0xcf)](_0x41f6f7);}
1
+ (function(_0x21eabf,_0x272570){const _0x3ac712=a267_0x2b87,_0x3858a3=_0x21eabf();while(!![]){try{const _0x54f992=parseInt(_0x3ac712(0x16d))/0x1*(-parseInt(_0x3ac712(0x16f))/0x2)+parseInt(_0x3ac712(0x17c))/0x3*(parseInt(_0x3ac712(0x173))/0x4)+-parseInt(_0x3ac712(0x172))/0x5*(parseInt(_0x3ac712(0x17b))/0x6)+-parseInt(_0x3ac712(0x17a))/0x7*(-parseInt(_0x3ac712(0x17d))/0x8)+-parseInt(_0x3ac712(0x171))/0x9*(parseInt(_0x3ac712(0x174))/0xa)+-parseInt(_0x3ac712(0x16b))/0xb*(parseInt(_0x3ac712(0x170))/0xc)+parseInt(_0x3ac712(0x176))/0xd;if(_0x54f992===_0x272570)break;else _0x3858a3['push'](_0x3858a3['shift']());}catch(_0x146ebd){_0x3858a3['push'](_0x3858a3['shift']());}}}(a267_0x3cbe,0xd4151));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 _0x60a50c=a267_0x2b87;process[_0x60a50c(0x177)](_0x60a50c(0x178),()=>{void flushOtelNodeIfUsed();});const _0x3cf2cd=()=>{const _0x4e2bd8=_0x60a50c;void flushOtelNodeIfUsed()[_0x4e2bd8(0x179)](()=>process[_0x4e2bd8(0x16e)](0x0));};process[_0x60a50c(0x177)](_0x60a50c(0x175),_0x3cf2cd),process[_0x60a50c(0x177)](_0x60a50c(0x16c),_0x3cf2cd);}function a267_0x2b87(_0x468f0b,_0xd03888){_0x468f0b=_0x468f0b-0x16b;const _0x3cbe54=a267_0x3cbe();let _0x2b87df=_0x3cbe54[_0x468f0b];return _0x2b87df;}export async function exitWithOtelShutdown(_0x2e1d52){const _0x5c48f8=a267_0x2b87;await flushOtelNodeIfUsed(),process[_0x5c48f8(0x16e)](_0x2e1d52);}function a267_0x3cbe(){const _0x502d3b=['20jrjAKe','15544310vGosyW','SIGINT','46582718Wqwjyx','once','beforeExit','then','1491KDBtlj','48mPnUmc','50793IjhigW','40952DZSqHO','16935149CYocES','SIGTERM','1dLoIza','exit','1489634inpyhY','12eaIiBz','9JxuLPz','31745SHDCfk'];a267_0x3cbe=function(){return _0x502d3b;};return a267_0x3cbe();}
@@ -1 +1 @@
1
- const a256_0x38617b=a256_0x1b43;function a256_0xc8c5(){const _0x3ea9ff=['10732sJAAUs','manual','version','1050864czOYiC','16083fwISpu','spanName','678cClyiG','traceparent','1227350mbBfLS','759493xIqkfZ','18SYTmsD','35965liQAHF','logData','234mDoEln','rabetbase-cli','24GUYuxi','10499593FZASFt','4cBLQLz','44tJQMaz'];a256_0xc8c5=function(){return _0x3ea9ff;};return a256_0xc8c5();}(function(_0x115ee9,_0x3b18da){const _0x26dbe1=a256_0x1b43,_0x44c428=_0x115ee9();while(!![]){try{const _0x10966a=parseInt(_0x26dbe1(0x13b))/0x1*(parseInt(_0x26dbe1(0x135))/0x2)+-parseInt(_0x26dbe1(0x144))/0x3*(-parseInt(_0x26dbe1(0x137))/0x4)+parseInt(_0x26dbe1(0x142))/0x5*(parseInt(_0x26dbe1(0x13d))/0x6)+-parseInt(_0x26dbe1(0x140))/0x7*(parseInt(_0x26dbe1(0x133))/0x8)+parseInt(_0x26dbe1(0x141))/0x9*(parseInt(_0x26dbe1(0x13f))/0xa)+parseInt(_0x26dbe1(0x136))/0xb*(parseInt(_0x26dbe1(0x13a))/0xc)+-parseInt(_0x26dbe1(0x134))/0xd;if(_0x10966a===_0x3b18da)break;else _0x44c428['push'](_0x44c428['shift']());}catch(_0x41c450){_0x44c428['push'](_0x44c428['shift']());}}}(a256_0xc8c5,0x7e2f1));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a256_0x1b43(_0x2be728,_0x51177f){_0x2be728=_0x2be728-0x132;const _0xc8c53f=a256_0xc8c5();let _0x1b43af=_0xc8c53f[_0x2be728];return _0x1b43af;}const DEFAULT_TRACE_NAME=a256_0x38617b(0x132);export async function sendCliTraceLog(_0x4fae69){const _0xc38ea2=a256_0x38617b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4fae69['traceName']??DEFAULT_TRACE_NAME,'version':_0x4fae69[_0xc38ea2(0x139)]??getCliVersion(),'spanName':_0x4fae69[_0xc38ea2(0x13c)],'eventType':_0xc38ea2(0x138),'logData':_0x4fae69[_0xc38ea2(0x143)],..._0x4fae69[_0xc38ea2(0x13e)]&&{'traceparent':_0x4fae69[_0xc38ea2(0x13e)]}});}
1
+ const a268_0x4d3ad9=a268_0x46c0;(function(_0x325fcd,_0x2b690d){const _0x6d62c6=a268_0x46c0,_0x3387e7=_0x325fcd();while(!![]){try{const _0x424f7e=parseInt(_0x6d62c6(0x6b))/0x1+-parseInt(_0x6d62c6(0x72))/0x2+parseInt(_0x6d62c6(0x71))/0x3+-parseInt(_0x6d62c6(0x76))/0x4+parseInt(_0x6d62c6(0x6d))/0x5*(-parseInt(_0x6d62c6(0x70))/0x6)+parseInt(_0x6d62c6(0x6f))/0x7+-parseInt(_0x6d62c6(0x74))/0x8*(-parseInt(_0x6d62c6(0x77))/0x9);if(_0x424f7e===_0x2b690d)break;else _0x3387e7['push'](_0x3387e7['shift']());}catch(_0x3b746d){_0x3387e7['push'](_0x3387e7['shift']());}}}(a268_0x2bb1,0x9a7b2));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a268_0x46c0(_0x5d9f1f,_0xa762b8){_0x5d9f1f=_0x5d9f1f-0x6b;const _0x2bb197=a268_0x2bb1();let _0x46c094=_0x2bb197[_0x5d9f1f];return _0x46c094;}function a268_0x2bb1(){const _0x42cec1=['6PkAVYf','2949870vVcEOU','2328614IJtkzG','traceName','8jIgsqV','rabetbase-cli','48056gnjDSX','4120821jGgPJn','logData','926599SUBPxB','version','3752820ktxjuB','traceparent','1343167xVGQEG'];a268_0x2bb1=function(){return _0x42cec1;};return a268_0x2bb1();}const DEFAULT_TRACE_NAME=a268_0x4d3ad9(0x75);export async function sendCliTraceLog(_0x54a51e){const _0x3874e3=a268_0x4d3ad9;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x54a51e[_0x3874e3(0x73)]??DEFAULT_TRACE_NAME,'version':_0x54a51e[_0x3874e3(0x6c)]??getCliVersion(),'spanName':_0x54a51e['spanName'],'eventType':'manual','logData':_0x54a51e[_0x3874e3(0x78)],..._0x54a51e['traceparent']&&{'traceparent':_0x54a51e[_0x3874e3(0x6e)]}});}
@@ -1 +1 @@
1
- function a257_0x5cd9(_0x28f036,_0x49ce0e){_0x28f036=_0x28f036-0x130;const _0x5541bc=a257_0x5541();let _0x5cd964=_0x5541bc[_0x28f036];return _0x5cd964;}function a257_0x5541(){const _0x3d3c61=['issue.log.collect','sanitize','redactionCount','12569784AIahKe','1972524NgeOFS','12845NosNKI','2590974wAjpAi','616aehLtO','440568bqPrTy','description','467196lpNxHX','6632836pISekP','platform-issue-log-collect'];a257_0x5541=function(){return _0x3d3c61;};return a257_0x5541();}const a257_0x1d1526=a257_0x5cd9;(function(_0x2e798c,_0x4c5158){const _0x33b9bd=a257_0x5cd9,_0x70bbe2=_0x2e798c();while(!![]){try{const _0x51f3e2=-parseInt(_0x33b9bd(0x133))/0x1+parseInt(_0x33b9bd(0x135))/0x2+-parseInt(_0x33b9bd(0x13c))/0x3+-parseInt(_0x33b9bd(0x132))/0x4*(-parseInt(_0x33b9bd(0x130))/0x5)+parseInt(_0x33b9bd(0x131))/0x6+-parseInt(_0x33b9bd(0x136))/0x7+parseInt(_0x33b9bd(0x13b))/0x8;if(_0x51f3e2===_0x4c5158)break;else _0x70bbe2['push'](_0x70bbe2['shift']());}catch(_0x5c15b2){_0x70bbe2['push'](_0x70bbe2['shift']());}}}(a257_0x5541,0x8f39c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a257_0x1d1526(0x137);export const PLATFORM_ISSUE_SPAN_NAME=a257_0x1d1526(0x138);export async function sendPlatformIssueCollectLog(_0x342631){const _0x404989=a257_0x1d1526;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x342631['title'],'issue.description':_0x342631[_0x404989(0x134)],..._0x342631['sanitize']?{'issue.description_original_bytes':_0x342631[_0x404989(0x139)]['originalBytes'],'issue.description_truncated':_0x342631[_0x404989(0x139)]['truncated'],'issue.description_redactions':_0x342631[_0x404989(0x139)][_0x404989(0x13a)],'issue.description_redaction_kinds':_0x342631[_0x404989(0x139)]['redactionKinds']['join'](',')}:{}}});}
1
+ const a269_0x333070=a269_0x4bd4;function a269_0x4bd4(_0x5703fb,_0x120308){_0x5703fb=_0x5703fb-0x1af;const _0x25c226=a269_0x25c2();let _0x4bd41a=_0x25c226[_0x5703fb];return _0x4bd41a;}(function(_0x1b689a,_0x10f7ca){const _0x92d1c=a269_0x4bd4,_0x1a2525=_0x1b689a();while(!![]){try{const _0x2caeaf=parseInt(_0x92d1c(0x1b6))/0x1*(-parseInt(_0x92d1c(0x1bf))/0x2)+-parseInt(_0x92d1c(0x1b2))/0x3*(parseInt(_0x92d1c(0x1bc))/0x4)+parseInt(_0x92d1c(0x1bd))/0x5+-parseInt(_0x92d1c(0x1c0))/0x6+-parseInt(_0x92d1c(0x1b1))/0x7+-parseInt(_0x92d1c(0x1b7))/0x8*(-parseInt(_0x92d1c(0x1c2))/0x9)+-parseInt(_0x92d1c(0x1bb))/0xa*(-parseInt(_0x92d1c(0x1b4))/0xb);if(_0x2caeaf===_0x10f7ca)break;else _0x1a2525['push'](_0x1a2525['shift']());}catch(_0x380306){_0x1a2525['push'](_0x1a2525['shift']());}}}(a269_0x25c2,0x76272));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a269_0x25c2(){const _0x59e677=['5045Kwbjxn','291864qYbvYW','join','redactionCount','originalBytes','10NCjGZK','475420MzKUkd','2628625etNSrN','sanitize','126hVlIeV','5230020QYzDPR','platform-issue-log-collect','72bYkasT','issue.log.collect','description','3649016uZzufQ','9fqSppq','redactionKinds','19070953vcqSoW','title'];a269_0x25c2=function(){return _0x59e677;};return a269_0x25c2();}export const PLATFORM_ISSUE_TRACE_NAME=a269_0x333070(0x1c1);export const PLATFORM_ISSUE_SPAN_NAME=a269_0x333070(0x1af);export async function sendPlatformIssueCollectLog(_0x48d483){const _0x5248e9=a269_0x333070;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x48d483[_0x5248e9(0x1b5)],'issue.description':_0x48d483[_0x5248e9(0x1b0)],..._0x48d483['sanitize']?{'issue.description_original_bytes':_0x48d483[_0x5248e9(0x1be)][_0x5248e9(0x1ba)],'issue.description_truncated':_0x48d483['sanitize']['truncated'],'issue.description_redactions':_0x48d483[_0x5248e9(0x1be)][_0x5248e9(0x1b9)],'issue.description_redaction_kinds':_0x48d483[_0x5248e9(0x1be)][_0x5248e9(0x1b3)][_0x5248e9(0x1b8)](',')}:{}}});}
@@ -1 +1 @@
1
- const a259_0xb74096=a259_0x4edb;function a259_0x4edb(_0x5a0b14,_0xc16e49){_0x5a0b14=_0x5a0b14-0xfb;const _0x3cfaf8=a259_0x3cfa();let _0x4edbd3=_0x3cfaf8[_0x5a0b14];return _0x4edbd3;}(function(_0x20a183,_0x4b9311){const _0x24006a=a259_0x4edb,_0x19c560=_0x20a183();while(!![]){try{const _0x518994=-parseInt(_0x24006a(0x129))/0x1*(-parseInt(_0x24006a(0x12e))/0x2)+parseInt(_0x24006a(0xfb))/0x3*(parseInt(_0x24006a(0x124))/0x4)+parseInt(_0x24006a(0x100))/0x5*(parseInt(_0x24006a(0x137))/0x6)+parseInt(_0x24006a(0x125))/0x7+-parseInt(_0x24006a(0x12f))/0x8*(-parseInt(_0x24006a(0x11f))/0x9)+-parseInt(_0x24006a(0x102))/0xa+-parseInt(_0x24006a(0xff))/0xb*(parseInt(_0x24006a(0x119))/0xc);if(_0x518994===_0x4b9311)break;else _0x19c560['push'](_0x19c560['shift']());}catch(_0x8d444e){_0x19c560['push'](_0x19c560['shift']());}}}(a259_0x3cfa,0xc1f47));function a259_0x3cfa(){const _0x51139b=['Cursor','18FQQqhw','36qGYNcH','OpenCode','Trae','file','847pLIjrU','88735CJSWsj','.cursor','11962150CHSKjp','Windsurf\x20IDE','.cursorrules','Qoder\x20IDE','Claude\x20Code','Cursor\x20IDE','qoder','codex','Codex\x20IDE','.agent/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.codex','cursor','antigravity','.trae/skills/lovrabet/SKILL.md','.opencode','.qoder/rules/rabetbase.md','claude','.codebuddy/skills/lovrabet/SKILL.md','cline','.windsurf/workflows/rabetbase.md','.agent','201324MvssPn','windsurf','.cline/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.qoder','.codex/skills/lovrabet/SKILL.md','149211ZSDxcY','SKILL.md.tpl','.codebuddy','.cursor/skills/rabetbase.md','CodeBuddy','391440ckrcyu','8191526nWwyVE','Cline\x20IDE','agent','.claude','1IjxavM','OpenCode\x20IDE','opencode','.opencode/skills/lovrabet/SKILL.md','.cline','973616OqaRiw','192hIXTsd','codebuddy','Codex','trae','.qoder/skills/lovrabet/SKILL.md','Trae\x20IDE','Qoder'];a259_0x3cfa=function(){return _0x51139b;};return a259_0x3cfa();}export const CORE_IDE_CONFIGS={'cursor':{'name':a259_0xb74096(0x136),'description':a259_0xb74096(0x107),'folders':[a259_0xb74096(0x104),a259_0xb74096(0x101)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x122),'template':a259_0xb74096(0x120)}]},'windsurf':{'name':'Windsurf','description':a259_0xb74096(0x103),'folders':['.windsurf'],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x117),'template':'SKILL.md.tpl'}]},'claude':{'name':a259_0xb74096(0x106),'description':'Claude\x20Code','folders':[a259_0xb74096(0x128)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x10c),'template':a259_0xb74096(0x120)}]},'cline':{'name':'Cline','description':a259_0xb74096(0x126),'folders':[a259_0xb74096(0x12d)],'files':[{'type':'file','path':a259_0xb74096(0x11b),'template':a259_0xb74096(0x120)}]},'codex':{'name':a259_0xb74096(0x131),'description':a259_0xb74096(0x10a),'folders':[a259_0xb74096(0x10e)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x11e),'template':a259_0xb74096(0x120)}]},'opencode':{'name':a259_0xb74096(0xfc),'description':a259_0xb74096(0x12a),'folders':[a259_0xb74096(0x112)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x12c),'template':a259_0xb74096(0x120)}]},'qoder':{'name':a259_0xb74096(0x135),'description':a259_0xb74096(0x105),'folders':[a259_0xb74096(0x11d)],'files':[{'type':'file','path':a259_0xb74096(0x113),'template':a259_0xb74096(0x120)},{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x133),'template':a259_0xb74096(0x120)}]},'codebuddy':{'name':a259_0xb74096(0x123),'description':'CodeBuddy\x20IDE','folders':[a259_0xb74096(0x121)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x115),'template':a259_0xb74096(0x120)}]},'trae':{'name':a259_0xb74096(0xfd),'description':a259_0xb74096(0x134),'folders':['.trae'],'files':[{'type':'file','path':a259_0xb74096(0x111),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a259_0xb74096(0x10d),'folders':[a259_0xb74096(0x118)],'files':[{'type':'file','path':a259_0xb74096(0x10b),'template':a259_0xb74096(0x120)}]},'antigravity':{'name':'Antigravity','description':a259_0xb74096(0x11c),'folders':[a259_0xb74096(0x118)],'files':[{'type':a259_0xb74096(0xfe),'path':a259_0xb74096(0x10b),'template':a259_0xb74096(0x120)}]}};export const CORE_IDE_LIST=[a259_0xb74096(0x114),'cline',a259_0xb74096(0x130),a259_0xb74096(0x109),'cursor',a259_0xb74096(0x12b),'qoder','trae',a259_0xb74096(0x11a)];export const IDE_LIST=[a259_0xb74096(0x110),a259_0xb74096(0x114),a259_0xb74096(0x116),a259_0xb74096(0x130),a259_0xb74096(0x109),a259_0xb74096(0x10f),a259_0xb74096(0x12b),a259_0xb74096(0x108),a259_0xb74096(0x132),a259_0xb74096(0x11a),a259_0xb74096(0x127)];export const ALL_CORE_IDES=['cursor','windsurf',a259_0xb74096(0x114),a259_0xb74096(0x116),a259_0xb74096(0x109),'opencode',a259_0xb74096(0x108),a259_0xb74096(0x130),a259_0xb74096(0x132)];
1
+ const a271_0x4719eb=a271_0x499e;(function(_0x559ba1,_0x12ddba){const _0x117865=a271_0x499e,_0x1ed541=_0x559ba1();while(!![]){try{const _0x42a21=parseInt(_0x117865(0x1e4))/0x1+parseInt(_0x117865(0x21e))/0x2*(-parseInt(_0x117865(0x1e6))/0x3)+parseInt(_0x117865(0x202))/0x4+-parseInt(_0x117865(0x20e))/0x5*(parseInt(_0x117865(0x1eb))/0x6)+parseInt(_0x117865(0x209))/0x7+parseInt(_0x117865(0x203))/0x8+parseInt(_0x117865(0x1f8))/0x9*(parseInt(_0x117865(0x213))/0xa);if(_0x42a21===_0x12ddba)break;else _0x1ed541['push'](_0x1ed541['shift']());}catch(_0x2ce521){_0x1ed541['push'](_0x1ed541['shift']());}}}(a271_0x5c85,0xc63ad));export const CORE_IDE_CONFIGS={'cursor':{'name':a271_0x4719eb(0x21b),'description':a271_0x4719eb(0x1fc),'folders':['.cursorrules',a271_0x4719eb(0x201)],'files':[{'type':'file','path':a271_0x4719eb(0x212),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a271_0x4719eb(0x1ea),'description':a271_0x4719eb(0x1f6),'folders':[a271_0x4719eb(0x1f7)],'files':[{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x216),'template':'SKILL.md.tpl'}]},'claude':{'name':a271_0x4719eb(0x1e9),'description':a271_0x4719eb(0x1e9),'folders':[a271_0x4719eb(0x1ff)],'files':[{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x1fe),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a271_0x4719eb(0x20f),'folders':[a271_0x4719eb(0x206)],'files':[{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x1e8),'template':'SKILL.md.tpl'}]},'codex':{'name':a271_0x4719eb(0x1fd),'description':a271_0x4719eb(0x1ee),'folders':[a271_0x4719eb(0x218)],'files':[{'type':'file','path':a271_0x4719eb(0x215),'template':a271_0x4719eb(0x1e7)}]},'opencode':{'name':'OpenCode','description':'OpenCode\x20IDE','folders':[a271_0x4719eb(0x1fb)],'files':[{'type':a271_0x4719eb(0x1f1),'path':'.opencode/skills/lovrabet/SKILL.md','template':a271_0x4719eb(0x1e7)}]},'qoder':{'name':a271_0x4719eb(0x219),'description':a271_0x4719eb(0x208),'folders':[a271_0x4719eb(0x1f9)],'files':[{'type':a271_0x4719eb(0x1f1),'path':'.qoder/rules/rabetbase.md','template':a271_0x4719eb(0x1e7)},{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x200),'template':a271_0x4719eb(0x1e7)}]},'codebuddy':{'name':a271_0x4719eb(0x210),'description':a271_0x4719eb(0x1f2),'folders':[a271_0x4719eb(0x1f3)],'files':[{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x1f0),'template':a271_0x4719eb(0x1e7)}]},'trae':{'name':a271_0x4719eb(0x20b),'description':a271_0x4719eb(0x1e5),'folders':['.trae'],'files':[{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x204),'template':a271_0x4719eb(0x1e7)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a271_0x4719eb(0x1f4),'description':a271_0x4719eb(0x1f5),'folders':['.agent'],'files':[{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x21d),'template':a271_0x4719eb(0x1e7)}]},'antigravity':{'name':a271_0x4719eb(0x20a),'description':a271_0x4719eb(0x207),'folders':[a271_0x4719eb(0x20c)],'files':[{'type':a271_0x4719eb(0x1f1),'path':a271_0x4719eb(0x21d),'template':a271_0x4719eb(0x1e7)}]}};function a271_0x499e(_0x27b7ed,_0x205f99){_0x27b7ed=_0x27b7ed-0x1e4;const _0x5c8538=a271_0x5c85();let _0x499e1b=_0x5c8538[_0x27b7ed];return _0x499e1b;}export const CORE_IDE_LIST=[a271_0x4719eb(0x1fa),'cline','codebuddy','codex',a271_0x4719eb(0x21a),'opencode',a271_0x4719eb(0x1ec),a271_0x4719eb(0x20d),a271_0x4719eb(0x205)];export const IDE_LIST=[a271_0x4719eb(0x1ed),'claude',a271_0x4719eb(0x211),a271_0x4719eb(0x214),'codex','cursor',a271_0x4719eb(0x21c),a271_0x4719eb(0x1ec),'trae','windsurf',a271_0x4719eb(0x1ef)];function a271_0x5c85(){const _0x2024ee=['.opencode','Cursor\x20IDE','Codex','.claude/skills/lovrabet/SKILL.md','.claude','.qoder/skills/lovrabet/SKILL.md','.cursor','1915452eTcctj','2020192wbFHbM','.trae/skills/lovrabet/SKILL.md','windsurf','.cline','Antigravity\x20IDE','Qoder\x20IDE','165830NuekaR','Antigravity','Trae','.agent','trae','20uDJfuX','Cline\x20IDE','CodeBuddy','cline','.cursor/skills/rabetbase.md','24915130zBFDVP','codebuddy','.codex/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','codex','.codex','Qoder','cursor','Cursor','opencode','.agent/skills/lovrabet/SKILL.md','4142mrJGKK','524612kYNAoN','Trae\x20IDE','2325HQQsEZ','SKILL.md.tpl','.cline/skills/lovrabet/SKILL.md','Claude\x20Code','Windsurf','2031342QmpKNb','qoder','antigravity','Codex\x20IDE','agent','.codebuddy/skills/lovrabet/SKILL.md','file','CodeBuddy\x20IDE','.codebuddy','其他\x20(通用模板)','通用模板\x20-\x20兜底方案','Windsurf\x20IDE','.windsurf','9tkHQxf','.qoder','claude'];a271_0x5c85=function(){return _0x2024ee;};return a271_0x5c85();}export const ALL_CORE_IDES=[a271_0x4719eb(0x21a),a271_0x4719eb(0x205),a271_0x4719eb(0x1fa),a271_0x4719eb(0x211),a271_0x4719eb(0x217),a271_0x4719eb(0x21c),'qoder',a271_0x4719eb(0x214),a271_0x4719eb(0x20d)];
@@ -1 +1 @@
1
- (function(_0xe4712a,_0x12a6ec){const _0x472097=a260_0x4d46,_0x6de633=_0xe4712a();while(!![]){try{const _0x5d8c8c=-parseInt(_0x472097(0x103))/0x1+-parseInt(_0x472097(0x102))/0x2*(parseInt(_0x472097(0x105))/0x3)+parseInt(_0x472097(0x10b))/0x4*(parseInt(_0x472097(0x107))/0x5)+parseInt(_0x472097(0x108))/0x6+parseInt(_0x472097(0x10a))/0x7*(parseInt(_0x472097(0x106))/0x8)+-parseInt(_0x472097(0x104))/0x9+parseInt(_0x472097(0x109))/0xa;if(_0x5d8c8c===_0x12a6ec)break;else _0x6de633['push'](_0x6de633['shift']());}catch(_0x195f57){_0x6de633['push'](_0x6de633['shift']());}}}(a260_0x3518,0x21364));function a260_0x4d46(_0x4a861f,_0x194814){_0x4a861f=_0x4a861f-0x102;const _0x35182f=a260_0x3518();let _0x4d46be=_0x35182f[_0x4a861f];return _0x4d46be;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a260_0x3518(){const _0x305b87=['4UmeQCC','2HJVIKi','201880BhBHYS','988029bnKOeV','560712uEVxMK','8RCclje','611555TiAJWs','1456626oFJFUy','489660OrwGud','1543871NrVyPQ'];a260_0x3518=function(){return _0x305b87;};return a260_0x3518();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0xa7624c,_0x1519c2){const _0x5f137b=a272_0x1839,_0x285953=_0xa7624c();while(!![]){try{const _0x4547fd=parseInt(_0x5f137b(0xf4))/0x1*(-parseInt(_0x5f137b(0xf9))/0x2)+parseInt(_0x5f137b(0xf7))/0x3+-parseInt(_0x5f137b(0xf3))/0x4+-parseInt(_0x5f137b(0xf8))/0x5*(-parseInt(_0x5f137b(0xf1))/0x6)+-parseInt(_0x5f137b(0xf5))/0x7*(parseInt(_0x5f137b(0xf6))/0x8)+-parseInt(_0x5f137b(0xf2))/0x9+parseInt(_0x5f137b(0xf0))/0xa;if(_0x4547fd===_0x1519c2)break;else _0x285953['push'](_0x285953['shift']());}catch(_0x54f00c){_0x285953['push'](_0x285953['shift']());}}}(a272_0x2f5e,0x3ee32));function a272_0x1839(_0x430977,_0x1a9814){_0x430977=_0x430977-0xf0;const _0x2f5e0e=a272_0x2f5e();let _0x183942=_0x2f5e0e[_0x430977];return _0x183942;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a272_0x2f5e(){const _0x152b45=['7cUZGEI','416168LcNflR','21726vHeeIU','15bmJyMX','416IrUuKd','10643830sOMYKY','13998QFvdPK','2357226ByBgbD','451772NHmpFX','1895QIGrPl'];a272_0x2f5e=function(){return _0x152b45;};return a272_0x2f5e();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a261_0x219f(_0x56b5bd,_0x30181f){_0x56b5bd=_0x56b5bd-0x16d;const _0x23d97b=a261_0x23d9();let _0x219f63=_0x23d97b[_0x56b5bd];return _0x219f63;}(function(_0x4a7c43,_0x31696f){const _0x4e5997=a261_0x219f,_0x247a1=_0x4a7c43();while(!![]){try{const _0xacbe15=-parseInt(_0x4e5997(0x176))/0x1+parseInt(_0x4e5997(0x17a))/0x2+-parseInt(_0x4e5997(0x171))/0x3*(parseInt(_0x4e5997(0x178))/0x4)+parseInt(_0x4e5997(0x16d))/0x5+-parseInt(_0x4e5997(0x179))/0x6*(-parseInt(_0x4e5997(0x17d))/0x7)+-parseInt(_0x4e5997(0x172))/0x8+parseInt(_0x4e5997(0x173))/0x9*(-parseInt(_0x4e5997(0x16e))/0xa);if(_0xacbe15===_0x31696f)break;else _0x247a1['push'](_0x247a1['shift']());}catch(_0x51ef07){_0x247a1['push'](_0x247a1['shift']());}}}(a261_0x23d9,0xc2a5b));import{getTemplateBaseUrl}from'../utils/config.js';function a261_0x23d9(){const _0x47d104=['4UoJpgC','5730990aJCnlj','1553750BXCsYK','now','application/json','7qsZOzT','/config/index.json','5897940fLOzwa','10SBVHmk','node','sdk','3125091XRQRNz','2295632CdTbGg','2865384ObGCDA','cli','json','467326ChlKUD','stableVersion'];a261_0x23d9=function(){return _0x47d104;};return a261_0x23d9();}export async function fetchCdnConfig(){const _0x2a3d44=a261_0x219f,_0x2222eb=getTemplateBaseUrl(),_0x1c20f3=[_0x2222eb+'/config.json',_0x2222eb+_0x2a3d44(0x17e)];for(const _0x3b65c2 of _0x1c20f3){try{const _0x5a5b0b=await fetch(_0x3b65c2,{'headers':{'Accept':_0x2a3d44(0x17c)}});if(!_0x5a5b0b['ok'])continue;const _0x5c72c5=await _0x5a5b0b[_0x2a3d44(0x175)]();if(!_0x5c72c5[_0x2a3d44(0x174)]?.[_0x2a3d44(0x177)]||!_0x5c72c5[_0x2a3d44(0x170)]?.[_0x2a3d44(0x16f)]?.[_0x2a3d44(0x177)])continue;return _0x5c72c5;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x52e47f=a261_0x219f,_0x48a99f=Date[_0x52e47f(0x17b)]();if(hasCachedConfig){const _0x3ab182=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x48a99f-cacheTime<_0x3ab182)return cachedConfig;}const _0x817806=await fetchCdnConfig();return cachedConfig=_0x817806,cacheTime=_0x48a99f,hasCachedConfig=!![],_0x817806;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x4fa06e,_0x33e2a4){const _0x530f77=a273_0x2d1d,_0x9568fc=_0x4fa06e();while(!![]){try{const _0x50c635=-parseInt(_0x530f77(0xd1))/0x1*(-parseInt(_0x530f77(0xc9))/0x2)+parseInt(_0x530f77(0xcf))/0x3+-parseInt(_0x530f77(0xda))/0x4*(-parseInt(_0x530f77(0xd8))/0x5)+parseInt(_0x530f77(0xd9))/0x6*(parseInt(_0x530f77(0xcd))/0x7)+-parseInt(_0x530f77(0xca))/0x8*(parseInt(_0x530f77(0xd2))/0x9)+-parseInt(_0x530f77(0xce))/0xa+-parseInt(_0x530f77(0xd0))/0xb*(parseInt(_0x530f77(0xd3))/0xc);if(_0x50c635===_0x33e2a4)break;else _0x9568fc['push'](_0x9568fc['shift']());}catch(_0x500511){_0x9568fc['push'](_0x9568fc['shift']());}}}(a273_0x1b68,0x4e14e));import{getTemplateBaseUrl}from'../utils/config.js';function a273_0x1b68(){const _0x2e14cb=['application/json','now','2978493zymoFn','1069740KhkkhL','389187mCIjUg','11gRsdEM','584946xAMDUs','4623921SKSjFe','7869684oQmWxa','stableVersion','/config/index.json','json','node','760330KntjWq','6yBbHVp','12KRvHlJ','2jmntRE','8VRCUIF'];a273_0x1b68=function(){return _0x2e14cb;};return a273_0x1b68();}export async function fetchCdnConfig(){const _0x552731=a273_0x2d1d,_0x43b1d3=getTemplateBaseUrl(),_0x1a0107=[_0x43b1d3+'/config.json',_0x43b1d3+_0x552731(0xd5)];for(const _0x3016d3 of _0x1a0107){try{const _0x412a0f=await fetch(_0x3016d3,{'headers':{'Accept':_0x552731(0xcb)}});if(!_0x412a0f['ok'])continue;const _0x39d84e=await _0x412a0f[_0x552731(0xd6)]();if(!_0x39d84e['cli']?.['stableVersion']||!_0x39d84e['sdk']?.[_0x552731(0xd7)]?.[_0x552731(0xd4)])continue;return _0x39d84e;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x36242b=a273_0x2d1d,_0x210e12=Date[_0x36242b(0xcc)]();if(hasCachedConfig){const _0xe33486=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x210e12-cacheTime<_0xe33486)return cachedConfig;}const _0x16d257=await fetchCdnConfig();return cachedConfig=_0x16d257,cacheTime=_0x210e12,hasCachedConfig=!![],_0x16d257;}function a273_0x2d1d(_0x638ecd,_0x63d87d){_0x638ecd=_0x638ecd-0xc9;const _0x1b6848=a273_0x1b68();let _0x2d1df1=_0x1b6848[_0x638ecd];return _0x2d1df1;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x599c3d,_0x149907){const _0x1397f9=a262_0x58d7,_0x2800bb=_0x599c3d();while(!![]){try{const _0x66c097=parseInt(_0x1397f9(0xb9))/0x1*(parseInt(_0x1397f9(0xb1))/0x2)+parseInt(_0x1397f9(0xbf))/0x3+parseInt(_0x1397f9(0xcb))/0x4*(-parseInt(_0x1397f9(0xc2))/0x5)+-parseInt(_0x1397f9(0xbe))/0x6*(parseInt(_0x1397f9(0xd4))/0x7)+-parseInt(_0x1397f9(0xb6))/0x8*(parseInt(_0x1397f9(0xcf))/0x9)+parseInt(_0x1397f9(0xbb))/0xa+parseInt(_0x1397f9(0xd0))/0xb;if(_0x66c097===_0x149907)break;else _0x2800bb['push'](_0x2800bb['shift']());}catch(_0xe8b62d){_0x2800bb['push'](_0x2800bb['shift']());}}}(a262_0x2fae,0x2442d));function a262_0x2fae(){const _0x447add=['\x1b[33m','test','86JlnpLl','minVersion','\x20\x20\x20Stable\x20version:\x20','node_modules','coerce','392GNsVry','\x20\x20\x20Current\x20version:\x20','sdk','1591xMBqCF','parse','1432000UOsFLr','stableVersion','devDependencies','6TfHDtu','185163zTcvXp','log','dependencies','25660kXPQix','all','package.json','readFileSync','@lovrabet/sdk','existsSync','\x1b[0m','latest','npm\x20install\x20','64lDxivy','\x20\x20\x20Upgrade\x20command:\x20','join','\x1b[1m','41247QnFCux','4387119xNmdQV','utf8','packageName','version','1518713AGBrNj','↪\x20SDK\x20update\x20available','utf-8','node'];a262_0x2fae=function(){return _0x447add;};return a262_0x2fae();}import a262_0x5694a4 from'node:fs';function a262_0x58d7(_0xe0c50,_0x59d6df){_0xe0c50=_0xe0c50-0xaf;const _0x2fae80=a262_0x2fae();let _0x58d79b=_0x2fae80[_0xe0c50];return _0x58d79b;}import a262_0x340d22 from'node:path';import a262_0xd5e0d2 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1c1ca1){const _0x30459b=a262_0x58d7,_0x2be287=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2be287['some'](_0xb561e7=>_0xb561e7[_0x30459b(0xb0)](_0x1c1ca1));}function getInstalledVersion(_0x20a0c2,_0x3c2002){const _0x29c6d0=a262_0x58d7;try{const _0xfad651=a262_0x340d22[_0x29c6d0(0xcd)](_0x20a0c2,_0x29c6d0(0xb4),_0x3c2002,_0x29c6d0(0xc4));if(a262_0x5694a4[_0x29c6d0(0xc7)](_0xfad651)){const _0x4b396c=JSON[_0x29c6d0(0xba)](a262_0x5694a4['readFileSync'](_0xfad651,_0x29c6d0(0xd6)));return _0x4b396c[_0x29c6d0(0xd3)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3cb301=a262_0x58d7;try{const _0x548fdb=await getCdnConfig();return _0x548fdb?.[_0x3cb301(0xb8)]?.[_0x3cb301(0xd7)]?.[_0x3cb301(0xbc)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3df39b=a262_0x58d7;try{const _0x1fbb36=await getCdnConfig();return _0x1fbb36?.['sdk']?.[_0x3df39b(0xd7)]?.[_0x3df39b(0xd2)]||_0x3df39b(0xc6);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x150af7){const _0x256b33=a262_0x58d7,_0x359527=a262_0x340d22[_0x256b33(0xcd)](_0x150af7,_0x256b33(0xc4)),[_0x5bea50,_0x4d0af2]=await Promise[_0x256b33(0xc3)]([getSdkStableVersion(),getSdkPackageName()]),_0x55f6ec=_0x5bea50||FALLBACK_MIN_SDK_VERSION;if(!a262_0x5694a4[_0x256b33(0xc7)](_0x359527))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};try{const _0x299731=JSON[_0x256b33(0xba)](a262_0x5694a4[_0x256b33(0xc5)](_0x359527,'utf8')),_0x227823=_0x299731[_0x256b33(0xc1)]||{},_0x2eec5b=_0x299731[_0x256b33(0xbd)]||{},_0x2bc220=_0x227823[_0x4d0af2]||_0x2eec5b[_0x4d0af2];if(!_0x2bc220)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};let _0x303d8f=getInstalledVersion(_0x150af7,_0x4d0af2);!_0x303d8f&&(_0x303d8f=_0x2bc220);if(isNonNumericVersion(_0x2bc220))return{'installed':!![],'version':_0x303d8f,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};const _0x47b7c3=a262_0xd5e0d2[_0x256b33(0xb5)](_0x303d8f),_0x1a1925=a262_0xd5e0d2[_0x256b33(0xb5)](_0x55f6ec),_0x3ce5f2=_0x47b7c3&&_0x1a1925?a262_0xd5e0d2['lt'](_0x47b7c3,_0x1a1925):![];return{'installed':!![],'version':_0x303d8f,'needsUpgrade':_0x3ce5f2,'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x55f6ec,'packageName':_0x4d0af2,'stableVersion':_0x5bea50};}}export function checkSdkVersionSync(_0x269f27){const _0x319c0a=a262_0x58d7,_0x554c0d=a262_0x340d22[_0x319c0a(0xcd)](_0x269f27,_0x319c0a(0xc4)),_0x3b2ab2=_0x319c0a(0xc6);if(!a262_0x5694a4[_0x319c0a(0xc7)](_0x554c0d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};try{const _0x5d02f2=JSON[_0x319c0a(0xba)](a262_0x5694a4[_0x319c0a(0xc5)](_0x554c0d,_0x319c0a(0xd1))),_0x16bc69=_0x5d02f2[_0x319c0a(0xc1)]||{},_0x2d0442=_0x5d02f2[_0x319c0a(0xbd)]||{},_0x14b7db=_0x16bc69[_0x3b2ab2]||_0x2d0442[_0x3b2ab2];if(!_0x14b7db)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};let _0x29306f=getInstalledVersion(_0x269f27,_0x3b2ab2);!_0x29306f&&(_0x29306f=_0x14b7db);if(isNonNumericVersion(_0x14b7db))return{'installed':!![],'version':_0x29306f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};const _0x816a42=a262_0xd5e0d2[_0x319c0a(0xb5)](_0x29306f),_0xcbf5ac=_0x816a42?a262_0xd5e0d2['lt'](_0x816a42,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x29306f,'needsUpgrade':_0xcbf5ac,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3b2ab2,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x784df2){const _0x4405b4=a262_0x58d7;if(!_0x784df2['needsUpgrade'])return;const _0x2b5743=_0x4405b4(0xaf),_0x234313=_0x4405b4(0xc8),_0x29586f=_0x4405b4(0xce),_0x31772b=_0x784df2[_0x4405b4(0xd2)]||_0x4405b4(0xc6),_0x3d85e7=_0x784df2[_0x4405b4(0xbc)]||_0x784df2[_0x4405b4(0xb2)],_0x206e0c=_0x4405b4(0xca)+_0x31772b+'@'+(_0x3d85e7||_0x4405b4(0xc9));console[_0x4405b4(0xc0)](),console[_0x4405b4(0xc0)](''+_0x2b5743+_0x29586f+_0x4405b4(0xd5)+_0x234313),console[_0x4405b4(0xc0)](_0x2b5743+_0x4405b4(0xb7)+_0x31772b+'@'+_0x784df2[_0x4405b4(0xd3)]+_0x234313),console[_0x4405b4(0xc0)](_0x2b5743+_0x4405b4(0xb3)+_0x3d85e7+_0x234313),console[_0x4405b4(0xc0)](_0x2b5743+_0x4405b4(0xcc)+_0x206e0c+_0x234313),console[_0x4405b4(0xc0)]();}
1
+ (function(_0x2deb4f,_0x3135ef){const _0x41dcea=a274_0x586d,_0x4f62dc=_0x2deb4f();while(!![]){try{const _0x2e3561=parseInt(_0x41dcea(0x14f))/0x1+-parseInt(_0x41dcea(0x15f))/0x2+parseInt(_0x41dcea(0x14d))/0x3*(-parseInt(_0x41dcea(0x157))/0x4)+-parseInt(_0x41dcea(0x166))/0x5*(-parseInt(_0x41dcea(0x15b))/0x6)+parseInt(_0x41dcea(0x15d))/0x7+parseInt(_0x41dcea(0x16e))/0x8+parseInt(_0x41dcea(0x15e))/0x9*(-parseInt(_0x41dcea(0x158))/0xa);if(_0x2e3561===_0x3135ef)break;else _0x4f62dc['push'](_0x4f62dc['shift']());}catch(_0x3c9fe7){_0x4f62dc['push'](_0x4f62dc['shift']());}}}(a274_0x78e2,0x915d4));function a274_0x586d(_0x12b76f,_0x33a6a7){_0x12b76f=_0x12b76f-0x14c;const _0x78e2bf=a274_0x78e2();let _0x586d13=_0x78e2bf[_0x12b76f];return _0x586d13;}import a274_0x18a259 from'node:fs';function a274_0x78e2(){const _0x580e51=['utf-8','parse','1449384ftcyUS','join','package.json','readFileSync','some','1202043RUUKxf','packageName','193144QzaDqa','\x20\x20\x20Stable\x20version:\x20','devDependencies','@lovrabet/sdk','dependencies','\x20\x20\x20Current\x20version:\x20','node_modules','version','4hmgowm','3090910ssttha','\x1b[1m','stableVersion','62316bbmnUr','log','3617005LiIhUs','9yPfmgS','293384cawsZU','coerce','existsSync','↪\x20SDK\x20update\x20available','\x1b[0m','\x20\x20\x20Upgrade\x20command:\x20','node','270mdjaot','utf8','minVersion','needsUpgrade','sdk','latest'];a274_0x78e2=function(){return _0x580e51;};return a274_0x78e2();}import a274_0x29008a from'node:path';import a274_0x141db9 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x4cdfef){const _0x1a46f5=a274_0x586d,_0x76ca3c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x76ca3c[_0x1a46f5(0x14c)](_0x4edad2=>_0x4edad2['test'](_0x4cdfef));}function getInstalledVersion(_0x41cc0a,_0x4e5497){const _0x4c79f5=a274_0x586d;try{const _0x342a77=a274_0x29008a[_0x4c79f5(0x16f)](_0x41cc0a,_0x4c79f5(0x155),_0x4e5497,_0x4c79f5(0x170));if(a274_0x18a259[_0x4c79f5(0x161)](_0x342a77)){const _0x57b348=JSON[_0x4c79f5(0x16d)](a274_0x18a259['readFileSync'](_0x342a77,_0x4c79f5(0x16c)));return _0x57b348[_0x4c79f5(0x156)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x191463=a274_0x586d;try{const _0xaf113=await getCdnConfig();return _0xaf113?.[_0x191463(0x16a)]?.[_0x191463(0x165)]?.[_0x191463(0x15a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x209509=a274_0x586d;try{const _0x4065ae=await getCdnConfig();return _0x4065ae?.[_0x209509(0x16a)]?.[_0x209509(0x165)]?.[_0x209509(0x14e)]||_0x209509(0x152);}catch{return _0x209509(0x152);}}export async function checkSdkVersion(_0x1dfceb){const _0x4f2946=a274_0x586d,_0x54b030=a274_0x29008a[_0x4f2946(0x16f)](_0x1dfceb,'package.json'),[_0x241edf,_0x36d1e5]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x1c9951=_0x241edf||FALLBACK_MIN_SDK_VERSION;if(!a274_0x18a259['existsSync'](_0x54b030))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};try{const _0x442998=JSON[_0x4f2946(0x16d)](a274_0x18a259[_0x4f2946(0x171)](_0x54b030,_0x4f2946(0x167))),_0x5a3524=_0x442998['dependencies']||{},_0x1258c1=_0x442998[_0x4f2946(0x151)]||{},_0x59ff55=_0x5a3524[_0x36d1e5]||_0x1258c1[_0x36d1e5];if(!_0x59ff55)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};let _0x107654=getInstalledVersion(_0x1dfceb,_0x36d1e5);!_0x107654&&(_0x107654=_0x59ff55);if(isNonNumericVersion(_0x59ff55))return{'installed':!![],'version':_0x107654,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};const _0x5c80af=a274_0x141db9[_0x4f2946(0x160)](_0x107654),_0x356bac=a274_0x141db9[_0x4f2946(0x160)](_0x1c9951),_0x36189e=_0x5c80af&&_0x356bac?a274_0x141db9['lt'](_0x5c80af,_0x356bac):![];return{'installed':!![],'version':_0x107654,'needsUpgrade':_0x36189e,'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1c9951,'packageName':_0x36d1e5,'stableVersion':_0x241edf};}}export function checkSdkVersionSync(_0x13f37d){const _0x2d2248=a274_0x586d,_0xa6ce8a=a274_0x29008a[_0x2d2248(0x16f)](_0x13f37d,_0x2d2248(0x170)),_0x2a19ea=_0x2d2248(0x152);if(!a274_0x18a259[_0x2d2248(0x161)](_0xa6ce8a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};try{const _0x5a8045=JSON[_0x2d2248(0x16d)](a274_0x18a259[_0x2d2248(0x171)](_0xa6ce8a,_0x2d2248(0x167))),_0x5850a2=_0x5a8045[_0x2d2248(0x153)]||{},_0x3af155=_0x5a8045[_0x2d2248(0x151)]||{},_0x38b478=_0x5850a2[_0x2a19ea]||_0x3af155[_0x2a19ea];if(!_0x38b478)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};let _0x21e231=getInstalledVersion(_0x13f37d,_0x2a19ea);!_0x21e231&&(_0x21e231=_0x38b478);if(isNonNumericVersion(_0x38b478))return{'installed':!![],'version':_0x21e231,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};const _0x4717c2=a274_0x141db9['coerce'](_0x21e231),_0x22917f=_0x4717c2?a274_0x141db9['lt'](_0x4717c2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x21e231,'needsUpgrade':_0x22917f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2a19ea,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x529e46){const _0x2767e7=a274_0x586d;if(!_0x529e46[_0x2767e7(0x169)])return;const _0x2d60db='\x1b[33m',_0x55ee4d=_0x2767e7(0x163),_0x2d710d=_0x2767e7(0x159),_0x6bd2e1=_0x529e46[_0x2767e7(0x14e)]||_0x2767e7(0x152),_0x43f710=_0x529e46[_0x2767e7(0x15a)]||_0x529e46[_0x2767e7(0x168)],_0x3f18ac='npm\x20install\x20'+_0x6bd2e1+'@'+(_0x43f710||_0x2767e7(0x16b));console[_0x2767e7(0x15c)](),console[_0x2767e7(0x15c)](''+_0x2d60db+_0x2d710d+_0x2767e7(0x162)+_0x55ee4d),console[_0x2767e7(0x15c)](_0x2d60db+_0x2767e7(0x154)+_0x6bd2e1+'@'+_0x529e46['version']+_0x55ee4d),console[_0x2767e7(0x15c)](_0x2d60db+_0x2767e7(0x150)+_0x43f710+_0x55ee4d),console[_0x2767e7(0x15c)](_0x2d60db+_0x2767e7(0x164)+_0x3f18ac+_0x55ee4d),console[_0x2767e7(0x15c)]();}
@@ -1 +1 @@
1
- (function(_0x5f79c8,_0x5a646d){const _0x597f0d=a263_0x19fb,_0xf8ded8=_0x5f79c8();while(!![]){try{const _0x4b1562=-parseInt(_0x597f0d(0x10b))/0x1+parseInt(_0x597f0d(0x118))/0x2+parseInt(_0x597f0d(0x113))/0x3+parseInt(_0x597f0d(0x105))/0x4*(-parseInt(_0x597f0d(0x107))/0x5)+parseInt(_0x597f0d(0xfb))/0x6+-parseInt(_0x597f0d(0x100))/0x7*(parseInt(_0x597f0d(0x109))/0x8)+parseInt(_0x597f0d(0x11a))/0x9;if(_0x4b1562===_0x5a646d)break;else _0xf8ded8['push'](_0xf8ded8['shift']());}catch(_0x510e75){_0xf8ded8['push'](_0xf8ded8['shift']());}}}(a263_0x5426,0x38e71));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a263_0x4b6dea from'semver';function a263_0x5426(){const _0xef538=['\x1b[33m','log','719418IgmsUo','stableVersion','utf-8','version','coerce','490427BbYTjf','minimumVersionMessage','package.json','upgradeMessage','\x20\x20\x20Recommended\x20stable:\x20','24SaUSCj','\x1b[0m','193130rdugVf','\x20\x20\x20Minimum\x20supported:\x20','40suIXxy','latest','127556jPYxCn','minimumVersion','Current\x20version:\x20','filter','parse','\x20\x20\x20Upgrade\x20command:\x20','join','\x20\x20\x20Stable\x20version:\x20','231291iMcGmf','currentVersion','Minimum\x20supported:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20','793452MqwgZB','npm\x20install\x20-g\x20','3140676uMbfjG','1.0.0','\x1b[1m','\x1b[31m','belowMinimum','validation','\x20\x20\x20Current\x20CLI\x20version:\x20','↪\x20New\x20version\x20available'];a263_0x5426=function(){return _0xef538;};return a263_0x5426();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2d1d93){const _0x5ad54f=a263_0x19fb,_0xaf317=_0x2d1d93[_0x5ad54f(0xfc)]||_0x5ad54f(0x10a);return _0x5ad54f(0x119)+NPM_PACKAGE_NAME+'@'+_0xaf317;}function getCurrentCliVersion(){const _0x2ee613=a263_0x19fb;try{const _0x49a58a=fileURLToPath(import.meta.url),_0x49ebb6=resolve(dirname(_0x49a58a),'../..'),_0x5da1ca=resolve(_0x49ebb6,_0x2ee613(0x102)),_0x433fba=JSON[_0x2ee613(0x10f)](readFileSync(_0x5da1ca,_0x2ee613(0xfd)));return _0x433fba[_0x2ee613(0xfe)]||_0x2ee613(0x11b);}catch{return _0x2ee613(0x11b);}}export async function checkCliVersion(){const _0xe7d4d4=a263_0x19fb,_0x25f539=getCurrentCliVersion(),_0x12bb89=await getCliVersionPolicy(),_0x1d4650=_0x12bb89?.['stableVersion']||null,_0xf1e0f2=_0x12bb89?.['minimumVersion']||null;let _0x5156de=![],_0x487ef4=![];const _0x540c29=a263_0x4b6dea[_0xe7d4d4(0xff)](_0x25f539);if(_0x540c29&&_0x1d4650)try{const _0x303675=a263_0x4b6dea[_0xe7d4d4(0xff)](_0x1d4650);if(_0x303675)_0x5156de=a263_0x4b6dea['lt'](_0x540c29,_0x303675);}catch{}if(_0x540c29&&_0xf1e0f2)try{const _0x1931bf=a263_0x4b6dea['coerce'](_0xf1e0f2);if(_0x1931bf)_0x487ef4=a263_0x4b6dea['lt'](_0x540c29,_0x1931bf);}catch{}return _0x487ef4&&(_0x5156de=!![]),{'currentVersion':_0x25f539,'stableVersion':_0x1d4650,'minimumVersion':_0xf1e0f2,'needsUpgrade':_0x5156de,'belowMinimum':_0x487ef4,'isPreRelease':![],'upgradeMessage':_0x12bb89?.['upgradeMessage'],'minimumVersionMessage':_0x12bb89?.['minimumVersionMessage']};}function a263_0x19fb(_0x1a9aa5,_0x59428d){_0x1a9aa5=_0x1a9aa5-0xfa;const _0x5426bb=a263_0x5426();let _0x19fbb0=_0x5426bb[_0x1a9aa5];return _0x19fbb0;}export function printCliUpgradeWarning(_0x46da46){const _0x5c49b1=a263_0x19fb;if(!_0x46da46['needsUpgrade']&&!_0x46da46['belowMinimum'])return;const _0x413c0d=_0x5c49b1(0x11d),_0x2b4984=_0x5c49b1(0x122),_0x2439b9=_0x5c49b1(0x106),_0x59ba38=_0x5c49b1(0x11c),_0x5c05d6=getCliUpgradeCommand(_0x46da46);console[_0x5c49b1(0xfa)](),_0x46da46[_0x5c49b1(0x11e)]?(console[_0x5c49b1(0xfa)](''+_0x413c0d+_0x59ba38+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x2439b9),console[_0x5c49b1(0xfa)](_0x413c0d+_0x5c49b1(0x120)+_0x46da46[_0x5c49b1(0x114)]+_0x2439b9),_0x46da46[_0x5c49b1(0x10c)]&&console['log'](_0x413c0d+_0x5c49b1(0x108)+_0x46da46[_0x5c49b1(0x10c)]+_0x2439b9),_0x46da46[_0x5c49b1(0xfc)]&&_0x46da46['stableVersion']!==_0x46da46[_0x5c49b1(0x10c)]&&console['log'](_0x413c0d+_0x5c49b1(0x104)+_0x46da46[_0x5c49b1(0xfc)]+_0x2439b9),_0x46da46[_0x5c49b1(0x101)]&&console['log'](_0x413c0d+_0x5c49b1(0x117)+_0x46da46[_0x5c49b1(0x101)]+_0x2439b9),console[_0x5c49b1(0xfa)](_0x413c0d+_0x5c49b1(0x110)+_0x5c05d6+_0x2439b9)):(console['log'](''+_0x2b4984+_0x59ba38+_0x5c49b1(0x121)+_0x2439b9),console[_0x5c49b1(0xfa)](_0x2b4984+_0x5c49b1(0x120)+_0x46da46[_0x5c49b1(0x114)]+_0x2439b9),console['log'](_0x2b4984+_0x5c49b1(0x112)+_0x46da46[_0x5c49b1(0xfc)]+_0x2439b9),_0x46da46[_0x5c49b1(0x103)]&&console[_0x5c49b1(0xfa)](_0x2b4984+_0x5c49b1(0x117)+_0x46da46[_0x5c49b1(0x103)]+_0x2439b9),console[_0x5c49b1(0xfa)](_0x2b4984+_0x5c49b1(0x110)+_0x5c05d6+_0x2439b9)),console[_0x5c49b1(0xfa)]();}export function assertCliVersionSupported(_0x15f740){const _0xb54eba=a263_0x19fb;if(!_0x15f740[_0xb54eba(0x11e)])return;const _0xf27145=[_0x15f740[_0xb54eba(0x101)],_0xb54eba(0x10d)+_0x15f740['currentVersion'],_0x15f740[_0xb54eba(0x10c)]?_0xb54eba(0x115)+_0x15f740[_0xb54eba(0x10c)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x15f740)][_0xb54eba(0x10e)](Boolean)[_0xb54eba(0x111)]('\x0a');throw CliErrors[_0xb54eba(0x11f)](_0xb54eba(0x116),_0xf27145);}
1
+ (function(_0x26a236,_0x56d1a9){const _0x14636e=a275_0x179c,_0x4733cf=_0x26a236();while(!![]){try{const _0x1a88b6=parseInt(_0x14636e(0x1be))/0x1*(-parseInt(_0x14636e(0x1af))/0x2)+parseInt(_0x14636e(0x1c0))/0x3*(parseInt(_0x14636e(0x1c3))/0x4)+-parseInt(_0x14636e(0x1bd))/0x5*(parseInt(_0x14636e(0x1b5))/0x6)+-parseInt(_0x14636e(0x1a8))/0x7+parseInt(_0x14636e(0x1c1))/0x8*(parseInt(_0x14636e(0x1ad))/0x9)+-parseInt(_0x14636e(0x1b0))/0xa+parseInt(_0x14636e(0x1cc))/0xb;if(_0x1a88b6===_0x56d1a9)break;else _0x4733cf['push'](_0x4733cf['shift']());}catch(_0x2c5bee){_0x4733cf['push'](_0x4733cf['shift']());}}}(a275_0x47d8,0x80495));function a275_0x47d8(){const _0x1124ca=['parse','4JZIGCl','\x20\x20\x20Upgrade\x20command:\x20','needsUpgrade','↪\x20New\x20version\x20available','validation','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','../..','\x1b[0m','25312705RLxVwE','utf-8','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','stableVersion','Minimum\x20supported:\x20','1.0.0','package.json','535108nLkmPO','\x1b[1m','version','log','\x20\x20\x20Stable\x20version:\x20','479943uHyKCC','\x1b[31m','1574TLcuKs','8829040vbUEUy','minimumVersion','\x1b[33m','minimumVersionMessage','Upgrade\x20command:\x20','294GsDBJt','belowMinimum','join','npm\x20install\x20-g\x20','coerce','latest','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Recommended\x20stable:\x20','96445wGXAbu','1291ASgUBf','\x20\x20\x20','2954553AULTqW','24acKOlh'];a275_0x47d8=function(){return _0x1124ca;};return a275_0x47d8();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a275_0x18cc96 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(_0x52c532){const _0x2fe8fb=a275_0x179c,_0x577a1c=_0x52c532[_0x2fe8fb(0x1a4)]||_0x2fe8fb(0x1ba);return _0x2fe8fb(0x1b8)+NPM_PACKAGE_NAME+'@'+_0x577a1c;}function getCurrentCliVersion(){const _0x24524b=a275_0x179c;try{const _0x37fa31=fileURLToPath(import.meta.url),_0x514158=resolve(dirname(_0x37fa31),_0x24524b(0x1ca)),_0x363c9a=resolve(_0x514158,_0x24524b(0x1a7)),_0x34bd22=JSON[_0x24524b(0x1c2)](readFileSync(_0x363c9a,_0x24524b(0x1cd)));return _0x34bd22[_0x24524b(0x1aa)]||_0x24524b(0x1a6);}catch{return'1.0.0';}}function a275_0x179c(_0x164105,_0x3e95b8){_0x164105=_0x164105-0x1a4;const _0x47d87c=a275_0x47d8();let _0x179cf6=_0x47d87c[_0x164105];return _0x179cf6;}export async function checkCliVersion(){const _0x49ae50=a275_0x179c,_0x5111bb=getCurrentCliVersion(),_0x22ee65=await getCliVersionPolicy(),_0x154f60=_0x22ee65?.[_0x49ae50(0x1a4)]||null,_0x373e03=_0x22ee65?.[_0x49ae50(0x1b1)]||null;let _0x5bedda=![],_0x5e55b6=![];const _0x4b5eca=a275_0x18cc96[_0x49ae50(0x1b9)](_0x5111bb);if(_0x4b5eca&&_0x154f60)try{const _0x28bbe9=a275_0x18cc96[_0x49ae50(0x1b9)](_0x154f60);if(_0x28bbe9)_0x5bedda=a275_0x18cc96['lt'](_0x4b5eca,_0x28bbe9);}catch{}if(_0x4b5eca&&_0x373e03)try{const _0x300a08=a275_0x18cc96[_0x49ae50(0x1b9)](_0x373e03);if(_0x300a08)_0x5e55b6=a275_0x18cc96['lt'](_0x4b5eca,_0x300a08);}catch{}return _0x5e55b6&&(_0x5bedda=!![]),{'currentVersion':_0x5111bb,'stableVersion':_0x154f60,'minimumVersion':_0x373e03,'needsUpgrade':_0x5bedda,'belowMinimum':_0x5e55b6,'isPreRelease':![],'upgradeMessage':_0x22ee65?.[_0x49ae50(0x1c9)],'minimumVersionMessage':_0x22ee65?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x25174c){const _0x588dc9=a275_0x179c;if(!_0x25174c[_0x588dc9(0x1c5)]&&!_0x25174c[_0x588dc9(0x1b6)])return;const _0x217d73=_0x588dc9(0x1ae),_0x15896a=_0x588dc9(0x1b2),_0x518d9a=_0x588dc9(0x1cb),_0x2cb75d=_0x588dc9(0x1a9),_0x196e6c=getCliUpgradeCommand(_0x25174c);console[_0x588dc9(0x1ab)](),_0x25174c[_0x588dc9(0x1b6)]?(console[_0x588dc9(0x1ab)](''+_0x217d73+_0x2cb75d+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x518d9a),console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1c8)+_0x25174c['currentVersion']+_0x518d9a),_0x25174c[_0x588dc9(0x1b1)]&&console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1bb)+_0x25174c[_0x588dc9(0x1b1)]+_0x518d9a),_0x25174c[_0x588dc9(0x1a4)]&&_0x25174c[_0x588dc9(0x1a4)]!==_0x25174c[_0x588dc9(0x1b1)]&&console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1bc)+_0x25174c[_0x588dc9(0x1a4)]+_0x518d9a),_0x25174c[_0x588dc9(0x1b3)]&&console[_0x588dc9(0x1ab)](_0x217d73+'\x20\x20\x20'+_0x25174c[_0x588dc9(0x1b3)]+_0x518d9a),console[_0x588dc9(0x1ab)](_0x217d73+_0x588dc9(0x1c4)+_0x196e6c+_0x518d9a)):(console[_0x588dc9(0x1ab)](''+_0x15896a+_0x2cb75d+_0x588dc9(0x1c6)+_0x518d9a),console['log'](_0x15896a+_0x588dc9(0x1c8)+_0x25174c['currentVersion']+_0x518d9a),console[_0x588dc9(0x1ab)](_0x15896a+_0x588dc9(0x1ac)+_0x25174c[_0x588dc9(0x1a4)]+_0x518d9a),_0x25174c['upgradeMessage']&&console[_0x588dc9(0x1ab)](_0x15896a+_0x588dc9(0x1bf)+_0x25174c['upgradeMessage']+_0x518d9a),console[_0x588dc9(0x1ab)](_0x15896a+_0x588dc9(0x1c4)+_0x196e6c+_0x518d9a)),console['log']();}export function assertCliVersionSupported(_0x29b1ed){const _0x45b8fa=a275_0x179c;if(!_0x29b1ed['belowMinimum'])return;const _0x2bedd4=[_0x29b1ed[_0x45b8fa(0x1b3)],'Current\x20version:\x20'+_0x29b1ed['currentVersion'],_0x29b1ed[_0x45b8fa(0x1b1)]?_0x45b8fa(0x1a5)+_0x29b1ed[_0x45b8fa(0x1b1)]:null,_0x45b8fa(0x1b4)+getCliUpgradeCommand(_0x29b1ed)]['filter'](Boolean)[_0x45b8fa(0x1b7)]('\x0a');throw CliErrors[_0x45b8fa(0x1c7)](_0x45b8fa(0x1ce),_0x2bedd4);}
@@ -1 +1 @@
1
- (function(_0x2227cb,_0x15a275){const _0x212fcd=a264_0x8a54,_0x1dc337=_0x2227cb();while(!![]){try{const _0x2b9961=parseInt(_0x212fcd(0x128))/0x1*(-parseInt(_0x212fcd(0x132))/0x2)+parseInt(_0x212fcd(0x130))/0x3+-parseInt(_0x212fcd(0x120))/0x4+parseInt(_0x212fcd(0x12e))/0x5*(-parseInt(_0x212fcd(0x121))/0x6)+parseInt(_0x212fcd(0x133))/0x7*(-parseInt(_0x212fcd(0x125))/0x8)+parseInt(_0x212fcd(0x136))/0x9+parseInt(_0x212fcd(0x12a))/0xa*(parseInt(_0x212fcd(0x12d))/0xb);if(_0x2b9961===_0x15a275)break;else _0x1dc337['push'](_0x1dc337['shift']());}catch(_0x229102){_0x1dc337['push'](_0x1dc337['shift']());}}}(a264_0xb65e,0x92496));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 a264_0x8a54(_0x540f87,_0x445616){_0x540f87=_0x540f87-0x11e;const _0xb65ed8=a264_0xb65e();let _0x8a54c2=_0xb65ed8[_0x540f87];return _0x8a54c2;}function pickString(_0x43403b){const _0x1305f4=a264_0x8a54;return typeof _0x43403b===_0x1305f4(0x11e)&&_0x43403b[_0x1305f4(0x131)]()[_0x1305f4(0x12f)]>0x0?_0x43403b['trim']():null;}function normalizeCliVersionPolicy(_0x4fca5b){const _0xff00af=a264_0x8a54;if(!_0x4fca5b||typeof _0x4fca5b!==_0xff00af(0x135))return null;const _0x405212=_0x4fca5b,_0x7d23e1=_0x405212[_0xff00af(0x126)]&&typeof _0x405212[_0xff00af(0x126)]==='object'?_0x405212['cli']:_0x405212,_0x53b417=pickString(_0x7d23e1['stableVersion'])||pickString(_0x7d23e1[_0xff00af(0x134)])||pickString(_0x7d23e1[_0xff00af(0x12b)]),_0x1040c1=pickString(_0x7d23e1[_0xff00af(0x12c)])||pickString(_0x7d23e1[_0xff00af(0x129)]);if(!_0x53b417&&!_0x1040c1)return null;return{'stableVersion':_0x53b417,'minimumVersion':_0x1040c1,'upgradeMessage':pickString(_0x7d23e1['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x7d23e1[_0xff00af(0x11f)])||undefined};}export async function fetchCliVersionPolicy(){const _0x199d3e=a264_0x8a54,_0x1e8153=new AbortController(),_0x2383c7=setTimeout(()=>_0x1e8153[_0x199d3e(0x124)](),FETCH_TIMEOUT_MS);try{const _0x3ebb17=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x1e8153[_0x199d3e(0x127)]});if(!_0x3ebb17['ok'])return null;const _0x3667dd=await _0x3ebb17[_0x199d3e(0x123)]();return normalizeCliVersionPolicy(_0x3667dd);}catch{return null;}finally{clearTimeout(_0x2383c7);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3af2a6=a264_0x8a54,_0x2f0e9a=Date[_0x3af2a6(0x122)]();if(hasCachedPolicy){const _0x2a3c72=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f0e9a-cacheTime<_0x2a3c72)return cachedPolicy;}const _0x52e527=await fetchCliVersionPolicy();return cachedPolicy=_0x52e527,cacheTime=_0x2f0e9a,hasCachedPolicy=!![],_0x52e527;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a264_0xb65e(){const _0x265845=['75976wxdUdK','cli','signal','813kCEBvb','minVersion','9303130nxiter','recommendedVersion','minimumVersion','11QiwVad','205EWPtHz','length','1518267LyVGYH','trim','66EsgWEp','329MqapHF','latestVersion','object','8633007mhoqJw','string','minimumVersionMessage','2296544JbJhqD','109626SVobzG','now','json','abort'];a264_0xb65e=function(){return _0x265845;};return a264_0xb65e();}
1
+ (function(_0x37b1f9,_0x3e89fc){const _0x3810c3=a276_0x1c0b,_0x3b017b=_0x37b1f9();while(!![]){try{const _0x5ca040=parseInt(_0x3810c3(0x181))/0x1+parseInt(_0x3810c3(0x191))/0x2+-parseInt(_0x3810c3(0x187))/0x3*(-parseInt(_0x3810c3(0x189))/0x4)+parseInt(_0x3810c3(0x182))/0x5+parseInt(_0x3810c3(0x17e))/0x6*(parseInt(_0x3810c3(0x18b))/0x7)+parseInt(_0x3810c3(0x186))/0x8+-parseInt(_0x3810c3(0x185))/0x9;if(_0x5ca040===_0x3e89fc)break;else _0x3b017b['push'](_0x3b017b['shift']());}catch(_0x148775){_0x3b017b['push'](_0x3b017b['shift']());}}}(a276_0x3082,0x60ac9));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a276_0x3082(){const _0x5a7f56=['cli','application/json','latestVersion','18askSuP','abort','minimumVersion','427204VMErQG','1964500BOYBYA','trim','now','13667499AsxFRp','2335808hJmvhV','1695723unAmqt','minimumVersionMessage','4ONxYNZ','length','462987yDWWmq','string','stableVersion','object','signal','minVersion','77688gldSnC'];a276_0x3082=function(){return _0x5a7f56;};return a276_0x3082();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x44a66a){const _0x2b6397=a276_0x1c0b;return typeof _0x44a66a===_0x2b6397(0x18c)&&_0x44a66a['trim']()[_0x2b6397(0x18a)]>0x0?_0x44a66a[_0x2b6397(0x183)]():null;}function normalizeCliVersionPolicy(_0x514b04){const _0x29a1b0=a276_0x1c0b;if(!_0x514b04||typeof _0x514b04!=='object')return null;const _0x134222=_0x514b04,_0x2d4962=_0x134222[_0x29a1b0(0x192)]&&typeof _0x134222[_0x29a1b0(0x192)]===_0x29a1b0(0x18e)?_0x134222['cli']:_0x134222,_0xec6bda=pickString(_0x2d4962[_0x29a1b0(0x18d)])||pickString(_0x2d4962[_0x29a1b0(0x194)])||pickString(_0x2d4962['recommendedVersion']),_0x6a2b1b=pickString(_0x2d4962[_0x29a1b0(0x180)])||pickString(_0x2d4962[_0x29a1b0(0x190)]);if(!_0xec6bda&&!_0x6a2b1b)return null;return{'stableVersion':_0xec6bda,'minimumVersion':_0x6a2b1b,'upgradeMessage':pickString(_0x2d4962['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x2d4962[_0x29a1b0(0x188)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1b5523=a276_0x1c0b,_0x243240=new AbortController(),_0x45c7d9=setTimeout(()=>_0x243240[_0x1b5523(0x17f)](),FETCH_TIMEOUT_MS);try{const _0x1475ab=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1b5523(0x193)},'signal':_0x243240[_0x1b5523(0x18f)]});if(!_0x1475ab['ok'])return null;const _0x477b25=await _0x1475ab['json']();return normalizeCliVersionPolicy(_0x477b25);}catch{return null;}finally{clearTimeout(_0x45c7d9);}}function a276_0x1c0b(_0x564f0b,_0x4dde99){_0x564f0b=_0x564f0b-0x17e;const _0x3082e5=a276_0x3082();let _0x1c0bfc=_0x3082e5[_0x564f0b];return _0x1c0bfc;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x31df51=a276_0x1c0b,_0x3cb1d8=Date[_0x31df51(0x184)]();if(hasCachedPolicy){const _0x1a9059=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3cb1d8-cacheTime<_0x1a9059)return cachedPolicy;}const _0x81e7ec=await fetchCliVersionPolicy();return cachedPolicy=_0x81e7ec,cacheTime=_0x3cb1d8,hasCachedPolicy=!![],_0x81e7ec;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a265_0x6facbc=a265_0x4959;(function(_0x4ce800,_0x5f382a){const _0x498918=a265_0x4959,_0x253f0=_0x4ce800();while(!![]){try{const _0x108f91=parseInt(_0x498918(0xc1))/0x1+parseInt(_0x498918(0xb7))/0x2*(-parseInt(_0x498918(0xb4))/0x3)+parseInt(_0x498918(0xbf))/0x4*(parseInt(_0x498918(0xbb))/0x5)+-parseInt(_0x498918(0xba))/0x6*(parseInt(_0x498918(0xbc))/0x7)+parseInt(_0x498918(0xc0))/0x8+parseInt(_0x498918(0xb6))/0x9*(parseInt(_0x498918(0xb8))/0xa)+parseInt(_0x498918(0xbd))/0xb*(parseInt(_0x498918(0xb9))/0xc);if(_0x108f91===_0x5f382a)break;else _0x253f0['push'](_0x253f0['shift']());}catch(_0x28af5b){_0x253f0['push'](_0x253f0['shift']());}}}(a265_0x2d05,0xa7b85));import{initEnv}from'../constant/env.js';function a265_0x2d05(){const _0x2a56b2=['60RochGg','6468AENuDn','376140TifAub','5sTfRAZ','119Mjbkxc','209zghvhn','env','4405636vcwvyD','603208aCDPMU','555219AecScO','3fBVBHc','project','891972kLggcp','1168414sYWHaV'];a265_0x2d05=function(){return _0x2a56b2;};return a265_0x2d05();}import{readRawConfig,getConfigAppCode as a265_0x2f979c,getMultiAppConfigs as a265_0x476226,getTemplateBaseUrl as a265_0x55019b}from'../context.js';function a265_0x4959(_0x5e0c39,_0x2d7f3f){_0x5e0c39=_0x5e0c39-0xb4;const _0x2d05ec=a265_0x2d05();let _0x49596b=_0x2d05ec[_0x5e0c39];return _0x49596b;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0xc60f82){const _0x58b570=a265_0x4959,_0x3bce06=readRawConfig(_0xc60f82);return _0x3bce06[_0x58b570(0xbe)]&&typeof _0x3bce06[_0x58b570(0xbe)]==='string'&&initEnv(_0x3bce06[_0x58b570(0xbe)]),_0x3bce06;}export function getConfigAppCode(){return a265_0x2f979c();}export function getMultiAppConfigs(_0x219d86=a265_0x6facbc(0xb5)){return a265_0x476226(_0x219d86);}export function getTemplateBaseUrl(){return a265_0x55019b();}
1
+ (function(_0x11ef80,_0x5217f0){const _0x41336c=a277_0x2e17,_0x3a6ac6=_0x11ef80();while(!![]){try{const _0x5584e5=parseInt(_0x41336c(0x1f0))/0x1*(parseInt(_0x41336c(0x1ee))/0x2)+parseInt(_0x41336c(0x1f7))/0x3+-parseInt(_0x41336c(0x1f2))/0x4*(-parseInt(_0x41336c(0x1ef))/0x5)+parseInt(_0x41336c(0x1f6))/0x6+-parseInt(_0x41336c(0x1f5))/0x7*(-parseInt(_0x41336c(0x1f1))/0x8)+parseInt(_0x41336c(0x1f4))/0x9+parseInt(_0x41336c(0x1ed))/0xa*(-parseInt(_0x41336c(0x1f3))/0xb);if(_0x5584e5===_0x5217f0)break;else _0x3a6ac6['push'](_0x3a6ac6['shift']());}catch(_0x41ef81){_0x3a6ac6['push'](_0x3a6ac6['shift']());}}}(a277_0x5982,0x78f6f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x1c16d1,getMultiAppConfigs as a277_0x512f10,getTemplateBaseUrl as a277_0x5028ad}from'../context.js';function a277_0x5982(){const _0x2a664d=['33MzJgJV','189171ymLiyk','6298607QcGejU','3419784xaxHUJ','899736ShKsNj','env','8082220zENYCx','658390KwpOWv','45nTUknl','2PjmOZI','8UdzrNk','209356VPsBEr'];a277_0x5982=function(){return _0x2a664d;};return a277_0x5982();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a277_0x2e17(_0x171557,_0x3cf6ba){_0x171557=_0x171557-0x1ec;const _0x59826c=a277_0x5982();let _0x2e1746=_0x59826c[_0x171557];return _0x2e1746;}export function readConfig(_0x42b61b){const _0x22b791=a277_0x2e17,_0x38bde6=readRawConfig(_0x42b61b);return _0x38bde6[_0x22b791(0x1ec)]&&typeof _0x38bde6[_0x22b791(0x1ec)]==='string'&&initEnv(_0x38bde6[_0x22b791(0x1ec)]),_0x38bde6;}export function getConfigAppCode(){return a277_0x1c16d1();}export function getMultiAppConfigs(_0x303a20='project'){return a277_0x512f10(_0x303a20);}export function getTemplateBaseUrl(){return a277_0x5028ad();}
@@ -1 +1 @@
1
- (function(_0x34a0e5,_0x13f977){const _0x23c49c=a266_0x59d2,_0x246841=_0x34a0e5();while(!![]){try{const _0x4dfa7c=parseInt(_0x23c49c(0x1d6))/0x1*(parseInt(_0x23c49c(0x1d9))/0x2)+-parseInt(_0x23c49c(0x1d5))/0x3*(-parseInt(_0x23c49c(0x1e1))/0x4)+parseInt(_0x23c49c(0x1cf))/0x5*(parseInt(_0x23c49c(0x1d1))/0x6)+-parseInt(_0x23c49c(0x1d0))/0x7*(parseInt(_0x23c49c(0x1e0))/0x8)+-parseInt(_0x23c49c(0x1dc))/0x9+-parseInt(_0x23c49c(0x1de))/0xa*(parseInt(_0x23c49c(0x1d4))/0xb)+parseInt(_0x23c49c(0x1d3))/0xc;if(_0x4dfa7c===_0x13f977)break;else _0x246841['push'](_0x246841['shift']());}catch(_0x1a992e){_0x246841['push'](_0x246841['shift']());}}}(a266_0x3d2a,0xbed65));import a266_0x24b4ca from'node:path';function a266_0x59d2(_0x2536fe,_0x11f40f){_0x2536fe=_0x2536fe-0x1ce;const _0x3d2a65=a266_0x3d2a();let _0x59d2a8=_0x3d2a65[_0x2536fe];return _0x59d2a8;}import a266_0x50c490 from'node:fs';function a266_0x3d2a(){const _0x3ca96d=['mkdirSync','4BdUvJb','isDirectory','name','4294116rLXBaH','readdirSync','2570hEsbEZ','error','8sUNWha','77816AHEjcL','join','5iQhPiK','1256962BVsrzS','4805490oEGWDS','复制目录时出错:','3699900ewHIMl','45199ghpYxY','96XRVMOa','381302tPibEu','copyFileSync'];a266_0x3d2a=function(){return _0x3ca96d;};return a266_0x3d2a();}export async function copyDirectory(_0x51921a,_0x407593){const _0x910dc1=a266_0x59d2;try{const _0x98d195=a266_0x50c490[_0x910dc1(0x1dd)](_0x51921a,{'withFileTypes':!![]});a266_0x50c490[_0x910dc1(0x1d8)](_0x407593,{'recursive':!![]});for(const _0x3c91b9 of _0x98d195){const _0x2001cc=a266_0x24b4ca['join'](_0x51921a,_0x3c91b9[_0x910dc1(0x1db)]),_0x502115=a266_0x24b4ca[_0x910dc1(0x1ce)](_0x407593,_0x3c91b9['name']);_0x3c91b9[_0x910dc1(0x1da)]()?await copyDirectory(_0x2001cc,_0x502115):a266_0x50c490[_0x910dc1(0x1d7)](_0x2001cc,_0x502115);}}catch(_0x2e62fb){console[_0x910dc1(0x1df)](_0x910dc1(0x1d2),_0x2e62fb);}}
1
+ function a278_0x1a13(_0x3227a1,_0x5543d7){_0x3227a1=_0x3227a1-0x1d4;const _0x26a7c0=a278_0x26a7();let _0x1a133c=_0x26a7c0[_0x3227a1];return _0x1a133c;}function a278_0x26a7(){const _0x4ed93b=['2779jzLPhc','11tmhQcO','2388952wmlxrl','mkdirSync','15800rLdCgG','7545564bGowgK','error','name','1676WiAsMg','31565740vEQTvg','readdirSync','18FzOxlV','copyFileSync','1544550fvqdte','1887vLvfkq','isDirectory','803225jKICaT','join'];a278_0x26a7=function(){return _0x4ed93b;};return a278_0x26a7();}(function(_0xe5d4c2,_0x59d9ba){const _0x446687=a278_0x1a13,_0xe0f07=_0xe5d4c2();while(!![]){try{const _0x165c29=-parseInt(_0x446687(0x1d4))/0x1+-parseInt(_0x446687(0x1d8))/0x2+parseInt(_0x446687(0x1e4))/0x3*(parseInt(_0x446687(0x1de))/0x4)+-parseInt(_0x446687(0x1e3))/0x5*(-parseInt(_0x446687(0x1e1))/0x6)+-parseInt(_0x446687(0x1d6))/0x7*(parseInt(_0x446687(0x1da))/0x8)+-parseInt(_0x446687(0x1db))/0x9+-parseInt(_0x446687(0x1df))/0xa*(-parseInt(_0x446687(0x1d7))/0xb);if(_0x165c29===_0x59d9ba)break;else _0xe0f07['push'](_0xe0f07['shift']());}catch(_0x51cec2){_0xe0f07['push'](_0xe0f07['shift']());}}}(a278_0x26a7,0xb169b));import a278_0x759e4a from'node:path';import a278_0x24a797 from'node:fs';export async function copyDirectory(_0xcdff99,_0x3245b0){const _0x38a10f=a278_0x1a13;try{const _0x1028ed=a278_0x24a797[_0x38a10f(0x1e0)](_0xcdff99,{'withFileTypes':!![]});a278_0x24a797[_0x38a10f(0x1d9)](_0x3245b0,{'recursive':!![]});for(const _0x139200 of _0x1028ed){const _0x3470c1=a278_0x759e4a['join'](_0xcdff99,_0x139200[_0x38a10f(0x1dd)]),_0x1624a9=a278_0x759e4a[_0x38a10f(0x1d5)](_0x3245b0,_0x139200[_0x38a10f(0x1dd)]);_0x139200[_0x38a10f(0x1e5)]()?await copyDirectory(_0x3470c1,_0x1624a9):a278_0x24a797[_0x38a10f(0x1e2)](_0x3470c1,_0x1624a9);}}catch(_0x329737){console[_0x38a10f(0x1dc)]('复制目录时出错:',_0x329737);}}
@@ -1 +1 @@
1
- (function(_0x20ef05,_0x5f1d96){const _0x1b9685=a267_0xb213,_0x53cbbe=_0x20ef05();while(!![]){try{const _0x5b2897=-parseInt(_0x1b9685(0x13e))/0x1*(parseInt(_0x1b9685(0x141))/0x2)+-parseInt(_0x1b9685(0x13a))/0x3+-parseInt(_0x1b9685(0x139))/0x4*(-parseInt(_0x1b9685(0x138))/0x5)+parseInt(_0x1b9685(0x13b))/0x6+parseInt(_0x1b9685(0x143))/0x7*(-parseInt(_0x1b9685(0x140))/0x8)+-parseInt(_0x1b9685(0x13c))/0x9+parseInt(_0x1b9685(0x144))/0xa;if(_0x5b2897===_0x5f1d96)break;else _0x53cbbe['push'](_0x53cbbe['shift']());}catch(_0x41399e){_0x53cbbe['push'](_0x53cbbe['shift']());}}}(a267_0x2601,0x4ec44));function toFiniteNumber(_0xc9f3d1){const _0x2d69f3=a267_0xb213;if(typeof _0xc9f3d1==='number'&&Number[_0x2d69f3(0x142)](_0xc9f3d1))return _0xc9f3d1;if(typeof _0xc9f3d1===_0x2d69f3(0x137)){const _0x44ceb3=_0xc9f3d1[_0x2d69f3(0x13d)]();if(!_0x44ceb3)return undefined;const _0x3c9eea=Number(_0x44ceb3);if(Number[_0x2d69f3(0x142)](_0x3c9eea))return _0x3c9eea;}return undefined;}function a267_0x2601(){const _0x3a4fb5=['931278VSNUcm','1804614Odawqz','3575493nLwOub','trim','2GRaJoK','object','260312SekLwW','126352KRYczA','isFinite','14cCAUfF','6626460XXyxZq','string','1291730hKlfNc','4WogprH'];a267_0x2601=function(){return _0x3a4fb5;};return a267_0x2601();}function a267_0xb213(_0x3b0e7f,_0xaeb220){_0x3b0e7f=_0x3b0e7f-0x137;const _0x2601e4=a267_0x2601();let _0xb2135c=_0x2601e4[_0x3b0e7f];return _0xb2135c;}export function normalizeEntityWithIdResponse(_0x310a3c){const _0x37b930=a267_0xb213,_0x1d12ac=toFiniteNumber(_0x310a3c);if(_0x1d12ac!==undefined)return{'id':_0x1d12ac,'entity':{'id':_0x1d12ac}};if(!_0x310a3c||typeof _0x310a3c!==_0x37b930(0x13f))return{'id':undefined,'entity':{}};const _0x51bb17={..._0x310a3c},_0x50af55=toFiniteNumber(_0x51bb17['id']);return _0x50af55!==undefined&&(_0x51bb17['id']=_0x50af55),{'id':_0x50af55,'entity':_0x51bb17};}
1
+ (function(_0x3ddfce,_0x33b663){const _0x468a8e=a279_0x5608,_0x4b1590=_0x3ddfce();while(!![]){try{const _0x5df9ec=-parseInt(_0x468a8e(0x102))/0x1+parseInt(_0x468a8e(0x106))/0x2+-parseInt(_0x468a8e(0x10b))/0x3*(-parseInt(_0x468a8e(0x109))/0x4)+-parseInt(_0x468a8e(0x107))/0x5*(-parseInt(_0x468a8e(0x105))/0x6)+parseInt(_0x468a8e(0x108))/0x7*(-parseInt(_0x468a8e(0x101))/0x8)+-parseInt(_0x468a8e(0x103))/0x9*(parseInt(_0x468a8e(0x10e))/0xa)+parseInt(_0x468a8e(0x104))/0xb;if(_0x5df9ec===_0x33b663)break;else _0x4b1590['push'](_0x4b1590['shift']());}catch(_0x3860c3){_0x4b1590['push'](_0x4b1590['shift']());}}}(a279_0x11e4,0xcd771));function toFiniteNumber(_0x2c17e3){const _0x3e345a=a279_0x5608;if(typeof _0x2c17e3===_0x3e345a(0x10d)&&Number[_0x3e345a(0x10c)](_0x2c17e3))return _0x2c17e3;if(typeof _0x2c17e3==='string'){const _0x5caf88=_0x2c17e3[_0x3e345a(0x10a)]();if(!_0x5caf88)return undefined;const _0xbfdf27=Number(_0x5caf88);if(Number['isFinite'](_0xbfdf27))return _0xbfdf27;}return undefined;}function a279_0x5608(_0x13f55e,_0x369cc5){_0x13f55e=_0x13f55e-0x101;const _0x11e4da=a279_0x11e4();let _0x560848=_0x11e4da[_0x13f55e];return _0x560848;}export function normalizeEntityWithIdResponse(_0x57aebd){const _0x587e69=toFiniteNumber(_0x57aebd);if(_0x587e69!==undefined)return{'id':_0x587e69,'entity':{'id':_0x587e69}};if(!_0x57aebd||typeof _0x57aebd!=='object')return{'id':undefined,'entity':{}};const _0x3e2080={..._0x57aebd},_0x6c8250=toFiniteNumber(_0x3e2080['id']);return _0x6c8250!==undefined&&(_0x3e2080['id']=_0x6c8250),{'id':_0x6c8250,'entity':_0x3e2080};}function a279_0x11e4(){const _0x407e76=['152rKzdmZ','1324039massGN','9xxCPiv','16756377NNUUaQ','30KKshkP','2462196NhCGQX','9335CVQsDx','334516DiXKXt','10284VmZqRc','trim','771qdwNIE','isFinite','number','3508910ZkFbZR'];a279_0x11e4=function(){return _0x407e76;};return a279_0x11e4();}
@@ -1 +1 @@
1
- function a268_0x2ca2(_0x100597,_0x11027e){_0x100597=_0x100597-0x1cf;const _0x53fe35=a268_0x53fe();let _0x2ca287=_0x53fe35[_0x100597];return _0x2ca287;}(function(_0x33510b,_0x26fb8a){const _0x4b66d1=a268_0x2ca2,_0x17fa57=_0x33510b();while(!![]){try{const _0x3b5278=parseInt(_0x4b66d1(0x1d4))/0x1*(-parseInt(_0x4b66d1(0x1db))/0x2)+parseInt(_0x4b66d1(0x1d6))/0x3*(parseInt(_0x4b66d1(0x1da))/0x4)+-parseInt(_0x4b66d1(0x1d3))/0x5+-parseInt(_0x4b66d1(0x1d1))/0x6*(parseInt(_0x4b66d1(0x1d0))/0x7)+parseInt(_0x4b66d1(0x1d5))/0x8*(-parseInt(_0x4b66d1(0x1d9))/0x9)+parseInt(_0x4b66d1(0x1d2))/0xa*(-parseInt(_0x4b66d1(0x1d8))/0xb)+parseInt(_0x4b66d1(0x1d7))/0xc;if(_0x3b5278===_0x26fb8a)break;else _0x17fa57['push'](_0x17fa57['shift']());}catch(_0x4b6dff){_0x17fa57['push'](_0x17fa57['shift']());}}}(a268_0x53fe,0x954c7));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x2ac5bc,_0x3b00a4){const _0x5d894d=a268_0x2ca2,_0x21c54c=statSync(_0x2ac5bc);if(_0x21c54c[_0x5d894d(0x1cf)]()){!existsSync(_0x3b00a4)&&mkdirSync(_0x3b00a4,{'recursive':!![]});const _0x1fa5d4=readdirSync(_0x2ac5bc);for(const _0x1f1206 of _0x1fa5d4){await copyDir(join(_0x2ac5bc,_0x1f1206),join(_0x3b00a4,_0x1f1206));}}else copyFileSync(_0x2ac5bc,_0x3b00a4);}export function ensureDir(_0x384e19){!existsSync(_0x384e19)&&mkdirSync(_0x384e19,{'recursive':!![]});}export function pathExists(_0x45ebf5){return existsSync(_0x45ebf5);}function a268_0x53fe(){const _0x2f6dbf=['233KPKtwG','1704GhIACf','2622ATbTBT','9450900xtZxSS','110tKONIF','3708bbmjIV','4028YWZLLA','1076njufxl','isDirectory','626878Rwrihe','6ccykBt','8810pGmVam','3723460SbTdyY'];a268_0x53fe=function(){return _0x2f6dbf;};return a268_0x53fe();}
1
+ (function(_0x98308e,_0x281b80){const _0x527fe6=a280_0xc831,_0x1ca993=_0x98308e();while(!![]){try{const _0x322b26=-parseInt(_0x527fe6(0x72))/0x1+parseInt(_0x527fe6(0x70))/0x2+-parseInt(_0x527fe6(0x6f))/0x3+-parseInt(_0x527fe6(0x71))/0x4+-parseInt(_0x527fe6(0x73))/0x5*(-parseInt(_0x527fe6(0x6b))/0x6)+parseInt(_0x527fe6(0x6e))/0x7+parseInt(_0x527fe6(0x6d))/0x8;if(_0x322b26===_0x281b80)break;else _0x1ca993['push'](_0x1ca993['shift']());}catch(_0x1b8476){_0x1ca993['push'](_0x1ca993['shift']());}}}(a280_0x3545,0x8cd52));function a280_0x3545(){const _0x92dcb0=['952300YjLkOf','569940AEXPQw','25ZhsjJB','444372umqJFy','isDirectory','7583088pHiWAT','224539lhMLPJ','334902udJEkz','292452KlEoip'];a280_0x3545=function(){return _0x92dcb0;};return a280_0x3545();}function a280_0xc831(_0x3c00cc,_0x5e474c){_0x3c00cc=_0x3c00cc-0x6b;const _0x354575=a280_0x3545();let _0xc8319a=_0x354575[_0x3c00cc];return _0xc8319a;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4da26f,_0x5a9efb){const _0x79c01e=a280_0xc831,_0x572917=statSync(_0x4da26f);if(_0x572917[_0x79c01e(0x6c)]()){!existsSync(_0x5a9efb)&&mkdirSync(_0x5a9efb,{'recursive':!![]});const _0x33b1e4=readdirSync(_0x4da26f);for(const _0x1dad9c of _0x33b1e4){await copyDir(join(_0x4da26f,_0x1dad9c),join(_0x5a9efb,_0x1dad9c));}}else copyFileSync(_0x4da26f,_0x5a9efb);}export function ensureDir(_0x53e470){!existsSync(_0x53e470)&&mkdirSync(_0x53e470,{'recursive':!![]});}export function pathExists(_0x4953f9){return existsSync(_0x4953f9);}
@@ -1 +1 @@
1
- const a269_0x35c502=a269_0xeaaa;(function(_0x4fd623,_0x101b60){const _0x16c4f9=a269_0xeaaa,_0x4b4a68=_0x4fd623();while(!![]){try{const _0x1bf118=-parseInt(_0x16c4f9(0xf1))/0x1*(parseInt(_0x16c4f9(0xf3))/0x2)+parseInt(_0x16c4f9(0xf6))/0x3+parseInt(_0x16c4f9(0xeb))/0x4*(parseInt(_0x16c4f9(0xe2))/0x5)+-parseInt(_0x16c4f9(0xea))/0x6*(-parseInt(_0x16c4f9(0xe3))/0x7)+-parseInt(_0x16c4f9(0xe1))/0x8+parseInt(_0x16c4f9(0xf7))/0x9+parseInt(_0x16c4f9(0xf4))/0xa*(parseInt(_0x16c4f9(0xe0))/0xb);if(_0x1bf118===_0x101b60)break;else _0x4b4a68['push'](_0x4b4a68['shift']());}catch(_0x34d2ac){_0x4b4a68['push'](_0x4b4a68['shift']());}}}(a269_0xccf9,0xdd699));import{mkdirSync,writeFileSync}from'node:fs';function a269_0xccf9(){const _0x2cf5f9=['8wYHbXs','object','join','extendContent','status','application/json','235mmyIcZ','CDN\x20请求失败:\x20','9658WsAhUW','270ejoqeM','guides','35199QGKRuX','192303DmYxvO','.lovrabet/skill/guides','replace','content','length','\x0a\x0a>更新时间:','json','path','trimEnd','utf-8','CDN\x20数据中缺少\x20skillTemplate','.md','entries','297924pAEphf','5622320RKTetz','2342105wqxzls','1825775AWoVAO','push','skillTemplate','lastUpdated','map','title','cache','24myKCwP'];a269_0xccf9=function(){return _0x2cf5f9;};return a269_0xccf9();}import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x25a113=getTemplateBaseUrl();return _0x25a113+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a269_0x35c502(0xe9));function a269_0xeaaa(_0x38fa8c,_0xb9077a){_0x38fa8c=_0x38fa8c-0xd7;const _0xccf944=a269_0xccf9();let _0xeaaa77=_0xccf944[_0x38fa8c];return _0xeaaa77;}export async function fetchGuidesFromCDN(){const _0x1110a0=a269_0x35c502,_0x33af94=getGuidesCdnUrl(),_0x117ee7=await fetch(_0x33af94,{'headers':{'Accept':_0x1110a0(0xf0)}});if(!_0x117ee7['ok'])throw new Error(_0x1110a0(0xf2)+_0x117ee7[_0x1110a0(0xef)]+'\x20'+_0x117ee7['statusText']);const _0xe65a5d=await _0x117ee7[_0x1110a0(0xd9)]();if(!_0xe65a5d['guides']||typeof _0xe65a5d[_0x1110a0(0xf5)]!==_0x1110a0(0xec))throw new Error('CDN\x20返回数据格式错误');return _0xe65a5d;}export function writeGuidesToProject(_0x588f23,_0x495507,_0x124380=a269_0x35c502(0xf8),_0x2bb853){const _0x10fb6c=a269_0x35c502,_0x1c00f1=join(_0x495507,_0x124380);mkdirSync(_0x1c00f1,{'recursive':!![]});for(const [_0x2ce33b,_0x3cc48c]of Object[_0x10fb6c(0xdf)](_0x588f23[_0x10fb6c(0xf5)])){let _0x5a8f57=_0x3cc48c[_0x10fb6c(0xfa)];_0x3cc48c[_0x10fb6c(0xe6)]&&(_0x5a8f57=appendUpdateTime(_0x5a8f57,_0x3cc48c[_0x10fb6c(0xe6)])),writeFileSync(join(_0x1c00f1,_0x2ce33b+_0x10fb6c(0xde)),_0x5a8f57,_0x10fb6c(0xdc));}}export function appendUpdateTime(_0xa18cac,_0x48c473){const _0x27885f=a269_0x35c502;return _0xa18cac=_0xa18cac['replace'](/\n*>更新时间:.*$/m,''),_0xa18cac[_0x27885f(0xdb)]()+(_0x27885f(0xd8)+_0x48c473);}export function getSkillTemplate(_0x45d530){const _0x1ed907=a269_0x35c502;return _0x45d530[_0x1ed907(0xe5)]?.[_0x1ed907(0xfa)]||'';}export function appendExtendContents(_0x2a4ad1,_0x38c80e,_0x50a838){const _0x9ae907=a269_0x35c502,_0x3a2388=[];for(const [,_0x3b2ec6]of Object['entries'](_0x38c80e['guides'])){_0x3b2ec6[_0x9ae907(0xee)]&&_0x3a2388[_0x9ae907(0xe4)](_0x3b2ec6['extendContent'][_0x9ae907(0xdb)]());}if(_0x3a2388[_0x9ae907(0xd7)]===0x0)return _0x2a4ad1;return _0x2a4ad1[_0x9ae907(0xdb)]()+'\x0a\x0a'+_0x3a2388[_0x9ae907(0xed)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5a93d3,_0x12f2f4,_0x218390){const _0x27d2a9=a269_0x35c502,_0x31e9fa=getSkillTemplate(_0x5a93d3);if(!_0x31e9fa)throw new Error(_0x27d2a9(0xdd));const _0x17d1e9=dirname(_0x12f2f4);mkdirSync(_0x17d1e9,{'recursive':!![]});let _0x10006f=_0x31e9fa[_0x27d2a9(0xf9)](/\{\{IDE_NAME\}\}/g,_0x218390);_0x10006f=appendExtendContents(_0x10006f,_0x5a93d3),_0x5a93d3[_0x27d2a9(0xe5)]['lastUpdated']&&(_0x10006f=appendUpdateTime(_0x10006f,_0x5a93d3[_0x27d2a9(0xe5)][_0x27d2a9(0xe6)])),writeFileSync(_0x12f2f4,_0x10006f,_0x27d2a9(0xdc));}export async function installGuides(_0x5c8ecf){const _0x56cf37=a269_0x35c502,_0x37a650=await fetchGuidesFromCDN();return writeGuidesToProject(_0x37a650,_0x5c8ecf),Object['keys'](_0x37a650[_0x56cf37(0xf5)])[_0x56cf37(0xd7)];}export function getGuidesSummary(_0x3f4681){const _0x2cc5e7=a269_0x35c502;return Object[_0x2cc5e7(0xdf)](_0x3f4681[_0x2cc5e7(0xf5)])[_0x2cc5e7(0xe7)](([_0x8fb187,_0x23b41c])=>({'key':_0x8fb187,'title':_0x23b41c[_0x2cc5e7(0xe8)],'path':_0x23b41c[_0x2cc5e7(0xda)]}));}
1
+ const a281_0x3aa3f8=a281_0x1cbf;(function(_0x2db1d6,_0x54311e){const _0x4ad283=a281_0x1cbf,_0x2f5cd2=_0x2db1d6();while(!![]){try{const _0x208c5b=parseInt(_0x4ad283(0x133))/0x1+parseInt(_0x4ad283(0x11e))/0x2*(parseInt(_0x4ad283(0x119))/0x3)+-parseInt(_0x4ad283(0x11c))/0x4+-parseInt(_0x4ad283(0x12c))/0x5+parseInt(_0x4ad283(0x130))/0x6*(-parseInt(_0x4ad283(0x11d))/0x7)+parseInt(_0x4ad283(0x13b))/0x8*(-parseInt(_0x4ad283(0x127))/0x9)+parseInt(_0x4ad283(0x126))/0xa*(parseInt(_0x4ad283(0x125))/0xb);if(_0x208c5b===_0x54311e)break;else _0x2f5cd2['push'](_0x2f5cd2['shift']());}catch(_0x1ec3f5){_0x2f5cd2['push'](_0x2f5cd2['shift']());}}}(a281_0x43bb,0x9d69a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a281_0x43bb(){const _0x245a97=['guides','.lovrabet/skill/guides','605816XmYBGW','cache','1455SRYjEF','status','length','4979324aeuMkM','571627GVyOfs','316GhwMOV','keys','trimEnd','replace','join','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','3601334obhCoi','40EIqvev','9QJLAtC','object','statusText','extendContent','entries','912995RoQAVq','content','utf-8','.md','36UYzqaa','lastUpdated','push','1251679aylFbh','skillTemplate','CDN\x20数据中缺少\x20skillTemplate','map','/skills/guides.json','.lovrabet'];a281_0x43bb=function(){return _0x245a97;};return a281_0x43bb();}function a281_0x1cbf(_0x2f8388,_0x464511){_0x2f8388=_0x2f8388-0x119;const _0x43bbec=a281_0x43bb();let _0x1cbf59=_0x43bbec[_0x2f8388];return _0x1cbf59;}function getGuidesCdnUrl(){const _0xfddbe2=a281_0x1cbf,_0x3c1062=getTemplateBaseUrl();return _0x3c1062+_0xfddbe2(0x137);}const CACHE_DIR=join(homedir(),a281_0x3aa3f8(0x138),a281_0x3aa3f8(0x13c));export async function fetchGuidesFromCDN(){const _0x18c226=a281_0x3aa3f8,_0x1861a2=getGuidesCdnUrl(),_0x103610=await fetch(_0x1861a2,{'headers':{'Accept':'application/json'}});if(!_0x103610['ok'])throw new Error(_0x18c226(0x124)+_0x103610[_0x18c226(0x11a)]+'\x20'+_0x103610[_0x18c226(0x129)]);const _0x1236e1=await _0x103610['json']();if(!_0x1236e1[_0x18c226(0x139)]||typeof _0x1236e1[_0x18c226(0x139)]!==_0x18c226(0x128))throw new Error(_0x18c226(0x123));return _0x1236e1;}export function writeGuidesToProject(_0xb16d86,_0x1f8f72,_0x1568f6=a281_0x3aa3f8(0x13a),_0x1362a1){const _0x22deb4=a281_0x3aa3f8,_0x1f0b4c=join(_0x1f8f72,_0x1568f6);mkdirSync(_0x1f0b4c,{'recursive':!![]});for(const [_0x5e5025,_0x426087]of Object[_0x22deb4(0x12b)](_0xb16d86['guides'])){let _0x488083=_0x426087[_0x22deb4(0x12d)];_0x426087['lastUpdated']&&(_0x488083=appendUpdateTime(_0x488083,_0x426087[_0x22deb4(0x131)])),writeFileSync(join(_0x1f0b4c,_0x5e5025+_0x22deb4(0x12f)),_0x488083,'utf-8');}}export function appendUpdateTime(_0x18e9d9,_0x1fb873){const _0x12addb=a281_0x3aa3f8;return _0x18e9d9=_0x18e9d9[_0x12addb(0x121)](/\n*>更新时间:.*$/m,''),_0x18e9d9[_0x12addb(0x120)]()+('\x0a\x0a>更新时间:'+_0x1fb873);}export function getSkillTemplate(_0x4f0693){const _0x2ae8e4=a281_0x3aa3f8;return _0x4f0693[_0x2ae8e4(0x134)]?.[_0x2ae8e4(0x12d)]||'';}export function appendExtendContents(_0x3ae1b6,_0x2a5c6d,_0x5469a9){const _0x460b3d=a281_0x3aa3f8,_0x2600d9=[];for(const [,_0x1a07ee]of Object[_0x460b3d(0x12b)](_0x2a5c6d[_0x460b3d(0x139)])){_0x1a07ee[_0x460b3d(0x12a)]&&_0x2600d9[_0x460b3d(0x132)](_0x1a07ee[_0x460b3d(0x12a)][_0x460b3d(0x120)]());}if(_0x2600d9['length']===0x0)return _0x3ae1b6;return _0x3ae1b6[_0x460b3d(0x120)]()+'\x0a\x0a'+_0x2600d9[_0x460b3d(0x122)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x329776,_0x2424c5,_0xe833d3){const _0x412c81=a281_0x3aa3f8,_0x15be80=getSkillTemplate(_0x329776);if(!_0x15be80)throw new Error(_0x412c81(0x135));const _0x532213=dirname(_0x2424c5);mkdirSync(_0x532213,{'recursive':!![]});let _0xb02a67=_0x15be80['replace'](/\{\{IDE_NAME\}\}/g,_0xe833d3);_0xb02a67=appendExtendContents(_0xb02a67,_0x329776),_0x329776[_0x412c81(0x134)][_0x412c81(0x131)]&&(_0xb02a67=appendUpdateTime(_0xb02a67,_0x329776[_0x412c81(0x134)]['lastUpdated'])),writeFileSync(_0x2424c5,_0xb02a67,_0x412c81(0x12e));}export async function installGuides(_0x435c2d){const _0x479727=a281_0x3aa3f8,_0x22a6e5=await fetchGuidesFromCDN();return writeGuidesToProject(_0x22a6e5,_0x435c2d),Object[_0x479727(0x11f)](_0x22a6e5['guides'])[_0x479727(0x11b)];}export function getGuidesSummary(_0x5016c3){const _0xa4fee4=a281_0x3aa3f8;return Object[_0xa4fee4(0x12b)](_0x5016c3[_0xa4fee4(0x139)])[_0xa4fee4(0x136)](([_0x277c4b,_0x1356d7])=>({'key':_0x277c4b,'title':_0x1356d7['title'],'path':_0x1356d7['path']}));}
@@ -1 +1 @@
1
- (function(_0x353c68,_0x4a5cd6){const _0x579df3=a270_0x30a7,_0x257e9f=_0x353c68();while(!![]){try{const _0x1c13ae=-parseInt(_0x579df3(0x136))/0x1+-parseInt(_0x579df3(0x12c))/0x2+parseInt(_0x579df3(0x12e))/0x3+-parseInt(_0x579df3(0x12d))/0x4*(-parseInt(_0x579df3(0x147))/0x5)+parseInt(_0x579df3(0x12f))/0x6*(-parseInt(_0x579df3(0x139))/0x7)+parseInt(_0x579df3(0x12a))/0x8+parseInt(_0x579df3(0x137))/0x9;if(_0x1c13ae===_0x4a5cd6)break;else _0x257e9f['push'](_0x257e9f['shift']());}catch(_0x4618b8){_0x257e9f['push'](_0x257e9f['shift']());}}}(a270_0x5466,0xabcdc));function a270_0x30a7(_0x25907d,_0x2d1e4e){_0x25907d=_0x25907d-0x12a;const _0x5466d7=a270_0x5466();let _0x30a7ba=_0x5466d7[_0x25907d];return _0x30a7ba;}function a270_0x5466(){const _0x327fd6=['headers','text','1296035QeNmOa','5092168ncabDo','ENOTFOUND','2076940eGlTNx','4LaNSkL','66264ujKBjD','5549922GZSUpb','json','message','Request\x20failed','includes','log','name','884434wOzzKA','23704047hUAOIx','ECONNRESET','7EbcWWR','TypeError','fetch','url','AbortError','abort','signal','ms\x20后进行第\x20','status','content-type','statusText','\x20次重试...'];a270_0x5466=function(){return _0x327fd6;};return a270_0x5466();}export async function httpRequest(_0x56a424,_0x791206={}){const _0x4f7979=a270_0x30a7,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x791206;let _0x172e94=null;for(let _0xa69002=0x0;_0xa69002<=retries;_0xa69002++){try{const _0x3ced45=new AbortController(),_0x487bec=setTimeout(()=>_0x3ced45[_0x4f7979(0x13e)](),timeout),_0x56456a=await fetch(_0x56a424,{'headers':headers,'signal':_0x3ced45[_0x4f7979(0x13f)]});clearTimeout(_0x487bec);let _0x43c2b6;const _0x32c0d6=_0x56456a['headers']['get'](_0x4f7979(0x142));return _0x32c0d6?.[_0x4f7979(0x133)]('application/json')?_0x43c2b6=await _0x56456a[_0x4f7979(0x130)]():_0x43c2b6=await _0x56456a[_0x4f7979(0x146)](),{'ok':_0x56456a['ok'],'status':_0x56456a[_0x4f7979(0x141)],'statusText':_0x56456a[_0x4f7979(0x143)],'data':_0x43c2b6,'headers':_0x56456a[_0x4f7979(0x145)],'url':_0x56456a[_0x4f7979(0x13c)],'text':()=>_0x56456a[_0x4f7979(0x146)]()};}catch(_0x40a30b){_0x172e94=_0x40a30b instanceof Error?_0x40a30b:new Error(String(_0x40a30b));if(_0xa69002===retries)break;if(shouldRetry(_0x40a30b)){console[_0x4f7979(0x134)]('*\x20请求失败,'+retryDelay+_0x4f7979(0x140)+(_0xa69002+0x1)+_0x4f7979(0x144)),await sleep(retryDelay);continue;}else break;}}throw _0x172e94||new Error(_0x4f7979(0x132));}function shouldRetry(_0x4a5536){const _0x34f0c1=a270_0x30a7;if(_0x4a5536 instanceof Error){if(_0x4a5536[_0x34f0c1(0x135)]===_0x34f0c1(0x13d))return![];if(_0x4a5536[_0x34f0c1(0x135)]===_0x34f0c1(0x13a)&&_0x4a5536[_0x34f0c1(0x131)][_0x34f0c1(0x133)](_0x34f0c1(0x13b)))return!![];if(_0x4a5536['message'][_0x34f0c1(0x133)](_0x34f0c1(0x138)))return!![];if(_0x4a5536[_0x34f0c1(0x131)][_0x34f0c1(0x133)](_0x34f0c1(0x12b)))return![];}return![];}function sleep(_0x2a9703){return new Promise(_0x226f48=>setTimeout(_0x226f48,_0x2a9703));}export function validateUrl(_0x40ed6a){try{return new URL(_0x40ed6a),!![];}catch{return![];}}
1
+ (function(_0x55fc4c,_0x378890){const _0x5a6101=a282_0x2230,_0x39e0f6=_0x55fc4c();while(!![]){try{const _0x40ea3d=parseInt(_0x5a6101(0x9b))/0x1*(-parseInt(_0x5a6101(0x91))/0x2)+-parseInt(_0x5a6101(0x94))/0x3+parseInt(_0x5a6101(0xa5))/0x4*(parseInt(_0x5a6101(0x8b))/0x5)+-parseInt(_0x5a6101(0x97))/0x6+parseInt(_0x5a6101(0x9a))/0x7+parseInt(_0x5a6101(0xa2))/0x8+parseInt(_0x5a6101(0xa3))/0x9*(parseInt(_0x5a6101(0xa0))/0xa);if(_0x40ea3d===_0x378890)break;else _0x39e0f6['push'](_0x39e0f6['shift']());}catch(_0x7d8356){_0x39e0f6['push'](_0x39e0f6['shift']());}}}(a282_0x333d,0xbec3a));function a282_0x333d(){const _0x1548a4=['15058HGFdfG','AbortError','\x20次重试...','1939008xCWowR','TypeError','abort','5848362zvyUsA','signal','name','10178063FkwmIl','113hVRulA','includes','*\x20请求失败,','status','Request\x20failed','1730ZjeUZM','text','5148960HLFXKK','5274RVigwu','statusText','4PmrLVJ','headers','log','5271015gqwDoR','message','fetch','ms\x20后进行第\x20','ECONNRESET','ENOTFOUND'];a282_0x333d=function(){return _0x1548a4;};return a282_0x333d();}function a282_0x2230(_0x57cbd8,_0x5c35bc){_0x57cbd8=_0x57cbd8-0x89;const _0x333d7d=a282_0x333d();let _0x2230b4=_0x333d7d[_0x57cbd8];return _0x2230b4;}export async function httpRequest(_0x221a7c,_0x2cf375={}){const _0x302440=a282_0x2230,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2cf375;let _0x127004=null;for(let _0xb03302=0x0;_0xb03302<=retries;_0xb03302++){try{const _0x5bc927=new AbortController(),_0x39595e=setTimeout(()=>_0x5bc927[_0x302440(0x96)](),timeout),_0x491daf=await fetch(_0x221a7c,{'headers':headers,'signal':_0x5bc927[_0x302440(0x98)]});clearTimeout(_0x39595e);let _0x3c896f;const _0x55a6d8=_0x491daf[_0x302440(0x89)]['get']('content-type');return _0x55a6d8?.[_0x302440(0x9c)]('application/json')?_0x3c896f=await _0x491daf['json']():_0x3c896f=await _0x491daf['text'](),{'ok':_0x491daf['ok'],'status':_0x491daf[_0x302440(0x9e)],'statusText':_0x491daf[_0x302440(0xa4)],'data':_0x3c896f,'headers':_0x491daf[_0x302440(0x89)],'url':_0x491daf['url'],'text':()=>_0x491daf[_0x302440(0xa1)]()};}catch(_0x53fae8){_0x127004=_0x53fae8 instanceof Error?_0x53fae8:new Error(String(_0x53fae8));if(_0xb03302===retries)break;if(shouldRetry(_0x53fae8)){console[_0x302440(0x8a)](_0x302440(0x9d)+retryDelay+_0x302440(0x8e)+(_0xb03302+0x1)+_0x302440(0x93)),await sleep(retryDelay);continue;}else break;}}throw _0x127004||new Error(_0x302440(0x9f));}function shouldRetry(_0xc0318){const _0x232885=a282_0x2230;if(_0xc0318 instanceof Error){if(_0xc0318['name']===_0x232885(0x92))return![];if(_0xc0318[_0x232885(0x99)]===_0x232885(0x95)&&_0xc0318['message']['includes'](_0x232885(0x8d)))return!![];if(_0xc0318[_0x232885(0x8c)][_0x232885(0x9c)](_0x232885(0x8f)))return!![];if(_0xc0318['message'][_0x232885(0x9c)](_0x232885(0x90)))return![];}return![];}function sleep(_0x19d5fc){return new Promise(_0x4372c6=>setTimeout(_0x4372c6,_0x19d5fc));}export function validateUrl(_0x3c24b1){try{return new URL(_0x3c24b1),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x253961,_0x4d5ffb){const _0x159b6c=a271_0x7a7c,_0x372dee=_0x253961();while(!![]){try{const _0x513902=-parseInt(_0x159b6c(0xf6))/0x1+parseInt(_0x159b6c(0xf0))/0x2+-parseInt(_0x159b6c(0xf1))/0x3+-parseInt(_0x159b6c(0xfc))/0x4+-parseInt(_0x159b6c(0xf3))/0x5*(parseInt(_0x159b6c(0xf2))/0x6)+-parseInt(_0x159b6c(0xef))/0x7+parseInt(_0x159b6c(0xf4))/0x8*(parseInt(_0x159b6c(0xf5))/0x9);if(_0x513902===_0x4d5ffb)break;else _0x372dee['push'](_0x372dee['shift']());}catch(_0x21af7d){_0x372dee['push'](_0x372dee['shift']());}}}(a271_0x4c90,0xca3d3));function env(_0xc5bb6c){return process.env[`RABETBASE_${_0xc5bb6c}`]||process.env[`LOVRABET_${_0xc5bb6c}`]||undefined;}export function isNonInteractive(_0x39e28b){const _0x285c35=a271_0x7a7c;return!!(_0x39e28b['nonInteractive']||_0x39e28b['ci']||env('CI')===_0x285c35(0xf8)||process.env.CI==='true'||!process[_0x285c35(0xfa)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x475df1=a271_0x7a7c;if(!process[_0x475df1(0xee)][_0x475df1(0xf9)])return![];try{const _0x127a8c=process[_0x475df1(0xee)][_0x475df1(0xfb)];return process[_0x475df1(0xee)][_0x475df1(0xf7)](!![]),process['stdin'][_0x475df1(0xf7)](_0x127a8c??![]),!![];}catch{return![];}}function a271_0x7a7c(_0x461235,_0x2d0b3b){_0x461235=_0x461235-0xee;const _0x4c90ef=a271_0x4c90();let _0x7a7cdb=_0x4c90ef[_0x461235];return _0x7a7cdb;}function a271_0x4c90(){const _0x4a1d7c=['630185UgxQoi','1160VdBCZI','208782GTbMqb','269420PMqbfs','setRawMode','true','isTTY','stdout','isRaw','726440fSmzqL','stdin','5360838JzwoeV','1341314UxftFc','3698730VgQlYI','36yQkscO'];a271_0x4c90=function(){return _0x4a1d7c;};return a271_0x4c90();}
1
+ (function(_0x88c886,_0x5de8cc){const _0x27fdae=a283_0x5f2d,_0x5d7706=_0x88c886();while(!![]){try{const _0x4c80dd=-parseInt(_0x27fdae(0x83))/0x1*(-parseInt(_0x27fdae(0x88))/0x2)+parseInt(_0x27fdae(0x8c))/0x3+parseInt(_0x27fdae(0x89))/0x4+parseInt(_0x27fdae(0x90))/0x5+parseInt(_0x27fdae(0x91))/0x6*(-parseInt(_0x27fdae(0x8f))/0x7)+-parseInt(_0x27fdae(0x8e))/0x8+-parseInt(_0x27fdae(0x8b))/0x9*(parseInt(_0x27fdae(0x8d))/0xa);if(_0x4c80dd===_0x5de8cc)break;else _0x5d7706['push'](_0x5d7706['shift']());}catch(_0x4e9d68){_0x5d7706['push'](_0x5d7706['shift']());}}}(a283_0x2966,0x86a0c));function env(_0x57a99d){return process.env[`RABETBASE_${_0x57a99d}`]||process.env[`LOVRABET_${_0x57a99d}`]||undefined;}function a283_0x5f2d(_0x504108,_0x5ab37a){_0x504108=_0x504108-0x83;const _0x296628=a283_0x2966();let _0x5f2d41=_0x296628[_0x504108];return _0x5f2d41;}function a283_0x2966(){const _0x5ee2d7=['4wgIxGH','true','isRaw','setRawMode','isTTY','405178lHYwyq','3904988qABSnr','stdin','546300ktnbzC','1877889APSCdU','200Pvnfqx','1562392LjyMKG','364861BLdAPr','86380VHWBol','54oexNVI'];a283_0x2966=function(){return _0x5ee2d7;};return a283_0x2966();}export function isNonInteractive(_0x3a80f5){const _0x591a19=a283_0x5f2d;return!!(_0x3a80f5['nonInteractive']||_0x3a80f5['ci']||env('CI')===_0x591a19(0x84)||process.env.CI==='true'||!process['stdout'][_0x591a19(0x87)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3f60d6=a283_0x5f2d;if(!process[_0x3f60d6(0x8a)][_0x3f60d6(0x87)])return![];try{const _0x2fbe14=process[_0x3f60d6(0x8a)][_0x3f60d6(0x85)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x3f60d6(0x86)](_0x2fbe14??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a272_0x3ff418=a272_0x18ae;(function(_0x273326,_0x1bc671){const _0x27de58=a272_0x18ae,_0x2183a3=_0x273326();while(!![]){try{const _0x592a5c=parseInt(_0x27de58(0x109))/0x1*(-parseInt(_0x27de58(0x11d))/0x2)+-parseInt(_0x27de58(0x142))/0x3+parseInt(_0x27de58(0x110))/0x4*(-parseInt(_0x27de58(0x11b))/0x5)+-parseInt(_0x27de58(0x136))/0x6+parseInt(_0x27de58(0x143))/0x7*(-parseInt(_0x27de58(0x13f))/0x8)+parseInt(_0x27de58(0x12e))/0x9*(parseInt(_0x27de58(0x10e))/0xa)+parseInt(_0x27de58(0x13d))/0xb;if(_0x592a5c===_0x1bc671)break;else _0x2183a3['push'](_0x2183a3['shift']());}catch(_0x4dec1b){_0x2183a3['push'](_0x2183a3['shift']());}}}(a272_0x4c98,0xd53d2));function a272_0x4c98(){const _0x272e70=['dirname','message','parse','printf','utf8','green','setLogPath','warn','createLogger','315tboOWc','.lovrabet.log','error','command','info','Failed\x20to\x20read\x20logs:','map','setRawCommand','1116360itzcrn','yellow','errors','logTask','winstonLogger','transports','unknown','45453793MdQGVh','readFileSync','16nKzpUb','existsSync','完成:\x20','1919028Tszemy','3302516rDAjhv','details','1tNtcOZ','filter','blue','toISOString','level','162730vQHMAm','red','363532YkysuM','split','失败:\x20','addColors','now','combine','rawCommand','currentRawCommand','trim','clearLogs','timestamp','55QwpWjS','join','2118534WyMEyi','logFilePath','writeFileSync','success','format','mkdirSync','initWinstonLogger','Failed\x20to\x20clear\x20logs:'];a272_0x4c98=function(){return _0x272e70;};return a272_0x4c98();}import a272_0x1014f1 from'winston';import a272_0x3ff4e0 from'node:fs';import a272_0x3c68e8 from'node:path';class Logger{['winstonLogger'];[a272_0x3ff418(0x11e)];[a272_0x3ff418(0x117)]='';constructor(){const _0x4d7803=a272_0x3ff418;this[_0x4d7803(0x11e)]='';}[a272_0x3ff418(0x135)](_0x4dd7da){const _0x47944e=a272_0x3ff418;this[_0x47944e(0x117)]=_0x4dd7da;}[a272_0x3ff418(0x123)](){const _0x19913f=a272_0x3ff418,_0x20a64b=a272_0x3c68e8[_0x19913f(0x125)](this[_0x19913f(0x11e)]);!a272_0x3ff4e0[_0x19913f(0x140)](_0x20a64b)&&a272_0x3ff4e0[_0x19913f(0x122)](_0x20a64b,{'recursive':!![]});const _0x472153=a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x115)](a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x11a)](),a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x138)]({'stack':!![]}),a272_0x1014f1[_0x19913f(0x121)][_0x19913f(0x128)](_0x31e27d=>{const _0x244cb6=_0x19913f,_0x39183f={'timestamp':_0x31e27d[_0x244cb6(0x11a)]||new Date()[_0x244cb6(0x10c)](),'level':_0x31e27d[_0x244cb6(0x10d)]||_0x244cb6(0x132),'command':_0x31e27d[_0x244cb6(0x131)]||_0x244cb6(0x13c),'rawCommand':_0x31e27d[_0x244cb6(0x116)]||this['currentRawCommand']||undefined,'message':_0x31e27d[_0x244cb6(0x126)]||'','duration':_0x31e27d['duration']||undefined,'details':_0x31e27d[_0x244cb6(0x108)]||undefined};return JSON['stringify'](_0x39183f);}));this[_0x19913f(0x13a)]=a272_0x1014f1[_0x19913f(0x12d)]({'level':'info','format':_0x472153,'transports':[new a272_0x1014f1[(_0x19913f(0x13b))]['File']({'filename':this[_0x19913f(0x11e)],'level':_0x19913f(0x132)})],'silent':![]}),a272_0x1014f1[_0x19913f(0x113)]({'success':_0x19913f(0x12a),'error':_0x19913f(0x10f),'warn':_0x19913f(0x137),'info':_0x19913f(0x10b)});}[a272_0x3ff418(0x12b)](_0x3b099a){const _0x23fb51=a272_0x3ff418;this[_0x23fb51(0x11e)]=a272_0x3c68e8[_0x23fb51(0x11c)](_0x3b099a,_0x23fb51(0x12f)),this[_0x23fb51(0x13a)]&&this['winstonLogger']['clear'](),this[_0x23fb51(0x123)]();}[a272_0x3ff418(0x132)](_0x13febb,_0x3fb603,_0xb2dc1a){const _0x4a6ff9=a272_0x3ff418;if(!this[_0x4a6ff9(0x11e)]||!this[_0x4a6ff9(0x13a)])return;this[_0x4a6ff9(0x13a)]['info'](_0x3fb603,{'command':_0x13febb,'details':_0xb2dc1a});}[a272_0x3ff418(0x120)](_0x2f1349,_0x19cccd,_0x3eccf6,_0x52d0ba){const _0x540508=a272_0x3ff418;if(!this['logFilePath']||!this[_0x540508(0x13a)])return;this['winstonLogger']['log'](_0x540508(0x132),_0x19cccd,{'level':_0x540508(0x120),'command':_0x2f1349,'duration':_0x3eccf6,'details':_0x52d0ba});}[a272_0x3ff418(0x130)](_0x59d2e9,_0x4111fa,_0x48cca5){const _0x135d7c=a272_0x3ff418;if(!this[_0x135d7c(0x11e)]||!this[_0x135d7c(0x13a)])return;this[_0x135d7c(0x13a)][_0x135d7c(0x130)](_0x4111fa,{'command':_0x59d2e9,'details':_0x48cca5});}[a272_0x3ff418(0x12c)](_0xba5571,_0x3241b2,_0x3493ea){const _0x12166f=a272_0x3ff418;if(!this[_0x12166f(0x11e)]||!this['winstonLogger'])return;this['winstonLogger'][_0x12166f(0x12c)](_0x3241b2,{'command':_0xba5571,'details':_0x3493ea});}async[a272_0x3ff418(0x139)](_0x331750,_0x27e19c,_0x570845){const _0x349fb2=a272_0x3ff418,_0x8baa3c=Date[_0x349fb2(0x114)]();this[_0x349fb2(0x132)](_0x331750,'开始执行:\x20'+_0x27e19c);try{const _0x24397d=await _0x570845(),_0x5e4215=Date[_0x349fb2(0x114)]()-_0x8baa3c;return this[_0x349fb2(0x120)](_0x331750,_0x349fb2(0x141)+_0x27e19c,_0x5e4215),_0x24397d;}catch(_0x2360d6){const _0x11718b=Date[_0x349fb2(0x114)]()-_0x8baa3c;this['error'](_0x331750,_0x349fb2(0x112)+_0x27e19c,{'error':_0x2360d6 instanceof Error?_0x2360d6[_0x349fb2(0x126)]:String(_0x2360d6),'duration':_0x11718b});throw _0x2360d6;}}['readLogs'](){const _0x3aef85=a272_0x3ff418;try{if(!a272_0x3ff4e0[_0x3aef85(0x140)](this[_0x3aef85(0x11e)]))return[];const _0x3329da=a272_0x3ff4e0[_0x3aef85(0x13e)](this[_0x3aef85(0x11e)],_0x3aef85(0x129));return _0x3329da[_0x3aef85(0x111)]('\x0a')[_0x3aef85(0x10a)](_0x14b062=>_0x14b062[_0x3aef85(0x118)]())[_0x3aef85(0x134)](_0xc092f3=>JSON[_0x3aef85(0x127)](_0xc092f3));}catch(_0x8519e5){return console[_0x3aef85(0x12c)](_0x3aef85(0x133),_0x8519e5),[];}}[a272_0x3ff418(0x119)](){const _0x2ae39b=a272_0x3ff418;try{a272_0x3ff4e0['existsSync'](this[_0x2ae39b(0x11e)])&&a272_0x3ff4e0[_0x2ae39b(0x11f)](this[_0x2ae39b(0x11e)],'',_0x2ae39b(0x129));}catch(_0x1b5ae2){console[_0x2ae39b(0x12c)](_0x2ae39b(0x124),_0x1b5ae2);}}['getWinstonInstance'](){return this['winstonLogger'];}}function a272_0x18ae(_0x2d30b7,_0x2d7c88){_0x2d30b7=_0x2d30b7-0x108;const _0x4c98ad=a272_0x4c98();let _0x18ae5e=_0x4c98ad[_0x2d30b7];return _0x18ae5e;}export const logger=new Logger();
1
+ function a284_0x37d4(){const _0x386ac3=['writeFileSync','combine','message','clear','6546855kgusJZ','green','90568RZyTGv','warn','trim','initWinstonLogger','error','map','1398688fqWPgu','logFilePath','filter','format','mkdirSync','799677FuHCoG','currentRawCommand','setRawCommand','170xGMxzh','1172724Rxpjdh','7200168PJbaJa','Failed\x20to\x20read\x20logs:','printf','unknown','success','yellow','transports','utf8','timestamp','winstonLogger','clearLogs','readFileSync','logTask','147iNmNvl','info','details','readLogs','File','now','dirname','parse','blue','stringify','existsSync','command','createLogger','4BhVJnf','3168411HCBnQN','.lovrabet.log','getWinstonInstance'];a284_0x37d4=function(){return _0x386ac3;};return a284_0x37d4();}const a284_0x4deb51=a284_0x4d7b;function a284_0x4d7b(_0x16adc8,_0x24a249){_0x16adc8=_0x16adc8-0x19d;const _0x37d4d6=a284_0x37d4();let _0x4d7bc0=_0x37d4d6[_0x16adc8];return _0x4d7bc0;}(function(_0xf35f69,_0x130c90){const _0x12b906=a284_0x4d7b,_0x31b161=_0xf35f69();while(!![]){try{const _0x52976f=parseInt(_0x12b906(0x1c5))/0x1+-parseInt(_0x12b906(0x1ce))/0x2+parseInt(_0x12b906(0x1b6))/0x3+parseInt(_0x12b906(0x1b5))/0x4*(parseInt(_0x12b906(0x1bd))/0x5)+-parseInt(_0x12b906(0x1cf))/0x6+parseInt(_0x12b906(0x1a8))/0x7*(parseInt(_0x12b906(0x1bf))/0x8)+parseInt(_0x12b906(0x1ca))/0x9*(-parseInt(_0x12b906(0x1cd))/0xa);if(_0x52976f===_0x130c90)break;else _0x31b161['push'](_0x31b161['shift']());}catch(_0x5d6616){_0x31b161['push'](_0x31b161['shift']());}}}(a284_0x37d4,0xac216));import a284_0x3f063f from'winston';import a284_0x23a9d9 from'node:fs';import a284_0x1d45d8 from'node:path';class Logger{['winstonLogger'];[a284_0x4deb51(0x1c6)];[a284_0x4deb51(0x1cb)]='';constructor(){const _0x568136=a284_0x4deb51;this[_0x568136(0x1c6)]='';}[a284_0x4deb51(0x1cc)](_0x5b77fb){this['currentRawCommand']=_0x5b77fb;}['initWinstonLogger'](){const _0x394998=a284_0x4deb51,_0x376104=a284_0x1d45d8[_0x394998(0x1ae)](this[_0x394998(0x1c6)]);!a284_0x23a9d9['existsSync'](_0x376104)&&a284_0x23a9d9[_0x394998(0x1c9)](_0x376104,{'recursive':!![]});const _0x5b9ee9=a284_0x3f063f[_0x394998(0x1c8)][_0x394998(0x1ba)](a284_0x3f063f['format'][_0x394998(0x1a3)](),a284_0x3f063f[_0x394998(0x1c8)]['errors']({'stack':!![]}),a284_0x3f063f[_0x394998(0x1c8)][_0x394998(0x19d)](_0x9ff257=>{const _0x278c2d=_0x394998,_0x252e62={'timestamp':_0x9ff257[_0x278c2d(0x1a3)]||new Date()['toISOString'](),'level':_0x9ff257['level']||_0x278c2d(0x1a9),'command':_0x9ff257[_0x278c2d(0x1b3)]||_0x278c2d(0x19e),'rawCommand':_0x9ff257['rawCommand']||this[_0x278c2d(0x1cb)]||undefined,'message':_0x9ff257[_0x278c2d(0x1bb)]||'','duration':_0x9ff257['duration']||undefined,'details':_0x9ff257[_0x278c2d(0x1aa)]||undefined};return JSON[_0x278c2d(0x1b1)](_0x252e62);}));this[_0x394998(0x1a4)]=a284_0x3f063f[_0x394998(0x1b4)]({'level':_0x394998(0x1a9),'format':_0x5b9ee9,'transports':[new a284_0x3f063f[(_0x394998(0x1a1))][(_0x394998(0x1ac))]({'filename':this[_0x394998(0x1c6)],'level':'info'})],'silent':![]}),a284_0x3f063f['addColors']({'success':_0x394998(0x1be),'error':'red','warn':_0x394998(0x1a0),'info':_0x394998(0x1b0)});}['setLogPath'](_0x39140b){const _0x5419c3=a284_0x4deb51;this[_0x5419c3(0x1c6)]=a284_0x1d45d8['join'](_0x39140b,_0x5419c3(0x1b7)),this['winstonLogger']&&this[_0x5419c3(0x1a4)][_0x5419c3(0x1bc)](),this[_0x5419c3(0x1c2)]();}[a284_0x4deb51(0x1a9)](_0x574981,_0x3b77b6,_0x129c09){const _0x5e4db5=a284_0x4deb51;if(!this[_0x5e4db5(0x1c6)]||!this[_0x5e4db5(0x1a4)])return;this['winstonLogger']['info'](_0x3b77b6,{'command':_0x574981,'details':_0x129c09});}['success'](_0x210037,_0x4f5286,_0xf19317,_0x46487a){const _0x47c71e=a284_0x4deb51;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x47c71e(0x1a4)]['log'](_0x47c71e(0x1a9),_0x4f5286,{'level':_0x47c71e(0x19f),'command':_0x210037,'duration':_0xf19317,'details':_0x46487a});}[a284_0x4deb51(0x1c3)](_0x35818c,_0x2258ff,_0x4ef18e){const _0x57280c=a284_0x4deb51;if(!this[_0x57280c(0x1c6)]||!this[_0x57280c(0x1a4)])return;this[_0x57280c(0x1a4)][_0x57280c(0x1c3)](_0x2258ff,{'command':_0x35818c,'details':_0x4ef18e});}[a284_0x4deb51(0x1c0)](_0x59ce58,_0x8ad52c,_0x131d81){const _0x4b09d9=a284_0x4deb51;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x4b09d9(0x1a4)][_0x4b09d9(0x1c0)](_0x8ad52c,{'command':_0x59ce58,'details':_0x131d81});}async[a284_0x4deb51(0x1a7)](_0x3c278f,_0x3baeeb,_0x58b841){const _0x5765a9=a284_0x4deb51,_0x237a18=Date[_0x5765a9(0x1ad)]();this[_0x5765a9(0x1a9)](_0x3c278f,'开始执行:\x20'+_0x3baeeb);try{const _0x47d79f=await _0x58b841(),_0x45b834=Date[_0x5765a9(0x1ad)]()-_0x237a18;return this[_0x5765a9(0x19f)](_0x3c278f,'完成:\x20'+_0x3baeeb,_0x45b834),_0x47d79f;}catch(_0x1922fe){const _0x2b9e48=Date[_0x5765a9(0x1ad)]()-_0x237a18;this[_0x5765a9(0x1c3)](_0x3c278f,'失败:\x20'+_0x3baeeb,{'error':_0x1922fe instanceof Error?_0x1922fe[_0x5765a9(0x1bb)]:String(_0x1922fe),'duration':_0x2b9e48});throw _0x1922fe;}}[a284_0x4deb51(0x1ab)](){const _0x2f2f5f=a284_0x4deb51;try{if(!a284_0x23a9d9[_0x2f2f5f(0x1b2)](this[_0x2f2f5f(0x1c6)]))return[];const _0x5c2933=a284_0x23a9d9[_0x2f2f5f(0x1a6)](this[_0x2f2f5f(0x1c6)],_0x2f2f5f(0x1a2));return _0x5c2933['split']('\x0a')[_0x2f2f5f(0x1c7)](_0x2e8eeb=>_0x2e8eeb[_0x2f2f5f(0x1c1)]())[_0x2f2f5f(0x1c4)](_0x43dcbd=>JSON[_0x2f2f5f(0x1af)](_0x43dcbd));}catch(_0x35e204){return console[_0x2f2f5f(0x1c0)](_0x2f2f5f(0x1d0),_0x35e204),[];}}[a284_0x4deb51(0x1a5)](){const _0x416f63=a284_0x4deb51;try{a284_0x23a9d9[_0x416f63(0x1b2)](this[_0x416f63(0x1c6)])&&a284_0x23a9d9[_0x416f63(0x1b9)](this['logFilePath'],'','utf8');}catch(_0x15b2c3){console[_0x416f63(0x1c0)]('Failed\x20to\x20clear\x20logs:',_0x15b2c3);}}[a284_0x4deb51(0x1b8)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a273_0x5cce(){const _0x3f818e=['135QINauf','47UfwuWB','5077961HKEgkS','1218768ZhtuSt','parse','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','8576592GjvdAx','object','2134353iXpupM','23046MGaekH','5wyiELx','--params\x20must\x20be\x20a\x20JSON\x20object','33SIReoZ','213860JraIkJ','validation','3050660emszOT','6OESTOP'];a273_0x5cce=function(){return _0x3f818e;};return a273_0x5cce();}function a273_0x472a(_0x2c9626,_0x70be9d){_0x2c9626=_0x2c9626-0x13a;const _0x5ccee1=a273_0x5cce();let _0x472a7e=_0x5ccee1[_0x2c9626];return _0x472a7e;}(function(_0x302e15,_0x4c5a63){const _0x5b2f3d=a273_0x472a,_0x278604=_0x302e15();while(!![]){try{const _0x2776bc=parseInt(_0x5b2f3d(0x148))/0x1*(parseInt(_0x5b2f3d(0x13f))/0x2)+parseInt(_0x5b2f3d(0x13e))/0x3+parseInt(_0x5b2f3d(0x145))/0x4*(parseInt(_0x5b2f3d(0x140))/0x5)+-parseInt(_0x5b2f3d(0x146))/0x6*(-parseInt(_0x5b2f3d(0x149))/0x7)+parseInt(_0x5b2f3d(0x14a))/0x8+parseInt(_0x5b2f3d(0x147))/0x9*(-parseInt(_0x5b2f3d(0x143))/0xa)+-parseInt(_0x5b2f3d(0x142))/0xb*(parseInt(_0x5b2f3d(0x13c))/0xc);if(_0x2776bc===_0x4c5a63)break;else _0x278604['push'](_0x278604['shift']());}catch(_0x1933b9){_0x278604['push'](_0x278604['shift']());}}}(a273_0x5cce,0x689f0));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x544c00){const _0x3839fd=a273_0x472a;if(!_0x544c00)return undefined;let _0x145c31;try{_0x145c31=JSON[_0x3839fd(0x14b)](_0x544c00);}catch{throw CliErrors[_0x3839fd(0x144)](_0x3839fd(0x13b)+_0x544c00);}if(!_0x145c31||typeof _0x145c31!==_0x3839fd(0x13d)||Array['isArray'](_0x145c31))throw CliErrors[_0x3839fd(0x144)](_0x3839fd(0x141),_0x3839fd(0x13a));return _0x145c31;}
1
+ (function(_0x52b9f6,_0x32c42c){const _0x1c810f=a285_0x448f,_0x27b4ab=_0x52b9f6();while(!![]){try{const _0x3fcc13=parseInt(_0x1c810f(0x124))/0x1*(-parseInt(_0x1c810f(0x11a))/0x2)+parseInt(_0x1c810f(0x11f))/0x3*(parseInt(_0x1c810f(0x127))/0x4)+parseInt(_0x1c810f(0x11d))/0x5+parseInt(_0x1c810f(0x11e))/0x6+parseInt(_0x1c810f(0x119))/0x7+-parseInt(_0x1c810f(0x123))/0x8+-parseInt(_0x1c810f(0x125))/0x9;if(_0x3fcc13===_0x32c42c)break;else _0x27b4ab['push'](_0x27b4ab['shift']());}catch(_0x2e6e91){_0x27b4ab['push'](_0x27b4ab['shift']());}}}(a285_0x4fff,0x54cfd));function a285_0x4fff(){const _0x15de20=['2349445kuGtmr','1879596BfWSda','114KdpvHZ','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','validation','925384gEfOhw','456172rPPQFy','1472787tQPWvM','Invalid\x20JSON\x20for\x20--params:\x20','29188pJejOD','157052llDRuu','2SVjYBM','parse','isArray'];a285_0x4fff=function(){return _0x15de20;};return a285_0x4fff();}function a285_0x448f(_0x51c9c4,_0x4aa977){_0x51c9c4=_0x51c9c4-0x119;const _0x4fff91=a285_0x4fff();let _0x448f78=_0x4fff91[_0x51c9c4];return _0x448f78;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5441dc){const _0x4c286b=a285_0x448f;if(!_0x5441dc)return undefined;let _0x343d57;try{_0x343d57=JSON[_0x4c286b(0x11b)](_0x5441dc);}catch{throw CliErrors[_0x4c286b(0x122)](_0x4c286b(0x126)+_0x5441dc);}if(!_0x343d57||typeof _0x343d57!=='object'||Array[_0x4c286b(0x11c)](_0x343d57))throw CliErrors['validation'](_0x4c286b(0x121),_0x4c286b(0x120));return _0x343d57;}
@@ -1 +1 @@
1
- function a274_0x14c7(_0x5454c5,_0x1ed3bf){_0x5454c5=_0x5454c5-0x106;const _0x110e26=a274_0x110e();let _0x14c774=_0x110e26[_0x5454c5];return _0x14c774;}function a274_0x110e(){const _0x5097d4=['platform','4KyaGuW','274332UlxbzG','343857dMaCrz','win32','1729NxtPeP','6568263jJwvNw','6640260xaYMKK','5621955ycqrSN','848619ljDrio','50168YTHMfb'];a274_0x110e=function(){return _0x5097d4;};return a274_0x110e();}const a274_0x508c12=a274_0x14c7;(function(_0xff261c,_0xbe99f2){const _0x30e6d3=a274_0x14c7,_0x50d5d2=_0xff261c();while(!![]){try{const _0x36c041=parseInt(_0x30e6d3(0x110))/0x1+parseInt(_0x30e6d3(0x10e))/0x2*(parseInt(_0x30e6d3(0x10b))/0x3)+-parseInt(_0x30e6d3(0x10f))/0x4+parseInt(_0x30e6d3(0x10a))/0x5+parseInt(_0x30e6d3(0x109))/0x6+parseInt(_0x30e6d3(0x107))/0x7*(-parseInt(_0x30e6d3(0x10c))/0x8)+-parseInt(_0x30e6d3(0x108))/0x9;if(_0x36c041===_0xbe99f2)break;else _0x50d5d2['push'](_0x50d5d2['shift']());}catch(_0x4923ab){_0x50d5d2['push'](_0x50d5d2['shift']());}}}(a274_0x110e,0xc1b21));export const isWindows=process[a274_0x508c12(0x10d)]===a274_0x508c12(0x106);export function resolveNpmBin(_0x146ed1){return isWindows?_0x146ed1+'.cmd':_0x146ed1;}
1
+ const a286_0x5791ab=a286_0x21ba;function a286_0x21ba(_0x33b2da,_0x4e565a){_0x33b2da=_0x33b2da-0x13e;const _0x11163f=a286_0x1116();let _0x21ba15=_0x11163f[_0x33b2da];return _0x21ba15;}(function(_0x9d2d33,_0x463a58){const _0xf543ae=a286_0x21ba,_0x449039=_0x9d2d33();while(!![]){try{const _0x4f6341=parseInt(_0xf543ae(0x13f))/0x1*(-parseInt(_0xf543ae(0x148))/0x2)+-parseInt(_0xf543ae(0x149))/0x3*(-parseInt(_0xf543ae(0x146))/0x4)+-parseInt(_0xf543ae(0x14b))/0x5*(-parseInt(_0xf543ae(0x141))/0x6)+parseInt(_0xf543ae(0x140))/0x7*(parseInt(_0xf543ae(0x145))/0x8)+-parseInt(_0xf543ae(0x14a))/0x9+-parseInt(_0xf543ae(0x147))/0xa*(-parseInt(_0xf543ae(0x142))/0xb)+-parseInt(_0xf543ae(0x13e))/0xc;if(_0x4f6341===_0x463a58)break;else _0x449039['push'](_0x449039['shift']());}catch(_0x4df125){_0x449039['push'](_0x449039['shift']());}}}(a286_0x1116,0x54517));export const isWindows=process[a286_0x5791ab(0x143)]===a286_0x5791ab(0x144);export function resolveNpmBin(_0x18061d){const _0x1faed5=a286_0x5791ab;return isWindows?_0x18061d+_0x1faed5(0x14c):_0x18061d;}function a286_0x1116(){const _0x3dfd6e=['3089460xEhtUj','181pOexBD','1074486sEhqmY','186798awvXwB','57563EMLivm','platform','win32','8lJUyxw','12tvWekK','10Ifxhcp','5042IUqInB','404895tPJxUH','864270nJwvaW','95JFMgME','.cmd'];a286_0x1116=function(){return _0x3dfd6e;};return a286_0x1116();}