@lovrabet/rabetbase-cli 2.3.16-beta.4 → 2.3.16-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
@@ -1 +1 @@
1
- function a247_0xe929(_0x5ef621,_0xe09150){_0x5ef621=_0x5ef621-0x1b0;var _0x16b1bd=a247_0x16b1();var _0xe929a0=_0x16b1bd[_0x5ef621];return _0xe929a0;}(function(_0x72ee3e,_0x12f807){var _0x2417f0=a247_0xe929,_0x15bb2e=_0x72ee3e();while(!![]){try{var _0x443b29=parseInt(_0x2417f0(0x1b4))/0x1+parseInt(_0x2417f0(0x1b2))/0x2+parseInt(_0x2417f0(0x1bb))/0x3*(parseInt(_0x2417f0(0x1bc))/0x4)+parseInt(_0x2417f0(0x1b8))/0x5*(parseInt(_0x2417f0(0x1b6))/0x6)+parseInt(_0x2417f0(0x1b9))/0x7*(parseInt(_0x2417f0(0x1b0))/0x8)+parseInt(_0x2417f0(0x1b7))/0x9+-parseInt(_0x2417f0(0x1b1))/0xa*(parseInt(_0x2417f0(0x1ba))/0xb);if(_0x443b29===_0x12f807)break;else _0x15bb2e['push'](_0x15bb2e['shift']());}catch(_0x3427f0){_0x15bb2e['push'](_0x15bb2e['shift']());}}}(a247_0x16b1,0x20f7b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a247_0x16b1(){var _0x38cd90=['2045943dtOYaR','263665ZVRfPr','42CNhTlN','11TPddwd','262296kmCyPJ','8uFLbbI','error','166456zNbQUO','7086560JkmeMp','268898jORqZa','cli.help','24010HXLtnL','service','18vABEnj'];a247_0x16b1=function(){return _0x38cd90;};return a247_0x16b1();}export async function reportCliHelpTrace(_0x141385,_0xefee7b){var _0x250e65=a247_0xe929;try{await sendCliTraceLog({'spanName':_0x250e65(0x1b3),'logData':{'rabetbase.help.kind':_0x141385,..._0xefee7b?.['service']&&{'rabetbase.help.service':_0xefee7b[_0x250e65(0x1b5)]}}});}catch(_0x43ba22){console[_0x250e65(0x1bd)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x43ba22);}}
1
+ (function(_0x3884e9,_0x256baa){var _0x2da24e=a253_0x2b90,_0x358ad3=_0x3884e9();while(!![]){try{var _0x519768=-parseInt(_0x2da24e(0x12e))/0x1+parseInt(_0x2da24e(0x133))/0x2+parseInt(_0x2da24e(0x12d))/0x3*(-parseInt(_0x2da24e(0x136))/0x4)+parseInt(_0x2da24e(0x12b))/0x5*(parseInt(_0x2da24e(0x129))/0x6)+-parseInt(_0x2da24e(0x12a))/0x7+-parseInt(_0x2da24e(0x130))/0x8*(parseInt(_0x2da24e(0x12f))/0x9)+parseInt(_0x2da24e(0x134))/0xa;if(_0x519768===_0x256baa)break;else _0x358ad3['push'](_0x358ad3['shift']());}catch(_0x43e5ae){_0x358ad3['push'](_0x358ad3['shift']());}}}(a253_0x1079,0xb093c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a253_0x2b90(_0x15bbd2,_0x37fbd2){_0x15bbd2=_0x15bbd2-0x129;var _0x107937=a253_0x1079();var _0x2b90eb=_0x107937[_0x15bbd2];return _0x2b90eb;}export async function reportCliHelpTrace(_0x1902f7,_0x1c21e8){var _0x38c79a=a253_0x2b90;try{await sendCliTraceLog({'spanName':_0x38c79a(0x131),'logData':{'rabetbase.help.kind':_0x1902f7,..._0x1c21e8?.[_0x38c79a(0x12c)]&&{'rabetbase.help.service':_0x1c21e8[_0x38c79a(0x12c)]}}});}catch(_0x5367da){console[_0x38c79a(0x132)](_0x38c79a(0x135),_0x5367da);}}function a253_0x1079(){var _0x479f19=['1010wbXlZr','service','299391MzbxFa','747489vSWadJ','36162kPAKUY','2568oxlbPj','cli.help','error','92928Smwemu','35278570eqXJfJ','Failed\x20to\x20report\x20CLI\x20help\x20trace:','4rRHJjK','21174BLxPvv','9987985JSQMCR'];a253_0x1079=function(){return _0x479f19;};return a253_0x1079();}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 拉取当前会话;仅在进程内首次写入 service/user context,后续 `sendTraceLog` 复用同一进程级上下文。
3
+ * 每次仍会请求 get-session(用于 span 上的 userid 等),若需极致减少请求可再缓存 session。
4
+ * 这里只负责宿主级公共字段,不承载单次 issue 的业务正文。
5
+ */
6
+ export declare function ensureCliOtelTraceConfig(): Promise<import("../auth/get-session-user.js").AuthSessionUserResponse | null>;
@@ -1 +1 @@
1
- (function(_0x155195,_0x34053a){const _0x291852=a248_0xfbb6,_0x2b3073=_0x155195();while(!![]){try{const _0x1b7d28=-parseInt(_0x291852(0x1c8))/0x1+parseInt(_0x291852(0x1d1))/0x2*(-parseInt(_0x291852(0x1d5))/0x3)+parseInt(_0x291852(0x1c7))/0x4+-parseInt(_0x291852(0x1ce))/0x5+parseInt(_0x291852(0x1cb))/0x6*(-parseInt(_0x291852(0x1d4))/0x7)+parseInt(_0x291852(0x1d3))/0x8+parseInt(_0x291852(0x1d0))/0x9;if(_0x1b7d28===_0x34053a)break;else _0x2b3073['push'](_0x2b3073['shift']());}catch(_0x5ee66d){_0x2b3073['push'](_0x2b3073['shift']());}}}(a248_0x2a20,0xdc61f));function a248_0x2a20(){const _0x586b9a=['499670cJBLKp','tenant','username','1080UCwFQe','production','user','1238415bFWcrX','nickname','15461127xvNHyY','1224152EbAwNJ','email','7483728wVhBqH','65261fxwPog','3AckRTl','5147548oEErmV'];a248_0x2a20=function(){return _0x586b9a;};return a248_0x2a20();}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';function a248_0xfbb6(_0x306075,_0x176781){_0x306075=_0x306075-0x1c7;const _0x2a202f=a248_0x2a20();let _0xfbb68b=_0x2a202f[_0x306075];return _0xfbb68b;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5cb885=a248_0xfbb6,_0x35ed58=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2ac7e5=_0x35ed58?.[_0x5cb885(0x1cd)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x5cb885(0x1cc))}),setUserContext({'id':_0x2ac7e5?.['id'],'username':_0x2ac7e5?.[_0x5cb885(0x1ca)],'nickname':_0x2ac7e5?.[_0x5cb885(0x1cf)],'email':_0x2ac7e5?.[_0x5cb885(0x1d2)],'tenantCode':_0x2ac7e5?.[_0x5cb885(0x1c9)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x35ed58;}
1
+ (function(_0xea1005,_0xe0c7d4){const _0xd3faaa=a254_0x1387,_0x34c337=_0xea1005();while(!![]){try{const _0x203603=parseInt(_0xd3faaa(0xf6))/0x1*(-parseInt(_0xd3faaa(0xff))/0x2)+parseInt(_0xd3faaa(0xf5))/0x3+parseInt(_0xd3faaa(0xf3))/0x4*(-parseInt(_0xd3faaa(0xfe))/0x5)+-parseInt(_0xd3faaa(0xfc))/0x6+-parseInt(_0xd3faaa(0xfa))/0x7+parseInt(_0xd3faaa(0x100))/0x8+parseInt(_0xd3faaa(0xf4))/0x9;if(_0x203603===_0xe0c7d4)break;else _0x34c337['push'](_0x34c337['shift']());}catch(_0x4060f9){_0x34c337['push'](_0x34c337['shift']());}}}(a254_0x416c,0xa0f3c));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a254_0x1387(_0x51a057,_0x4f0c89){_0x51a057=_0x51a057-0xf3;const _0x416ce0=a254_0x416c();let _0x138735=_0x416ce0[_0x51a057];return _0x138735;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a254_0x416c(){const _0x15118e=['22503825PSrRmv','1974381vOAvWG','1VrFful','nickname','production','username','9214072EVYdug','user','325692upxxWZ','daily','4081090VhIuXi','1802074JcqCOi','4708328FzjCFv','email','4pEFuJj'];a254_0x416c=function(){return _0x15118e;};return a254_0x416c();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x57d194=a254_0x1387,_0x45a305=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x110a07=_0x45a305?.[_0x57d194(0xfb)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x57d194(0xfd):_0x57d194(0xf8))}),setUserContext({'id':_0x110a07?.['id'],'username':_0x110a07?.[_0x57d194(0xf9)],'nickname':_0x110a07?.[_0x57d194(0xf7)],'email':_0x110a07?.[_0x57d194(0x101)],'tenantCode':_0x110a07?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x45a305;}
@@ -0,0 +1,3 @@
1
+ export declare function flushOtelNodeIfUsed(): Promise<void>;
2
+ export declare function registerOtelShutdownOnExit(): void;
3
+ export declare function exitWithOtelShutdown(exitCode: number): Promise<never>;
@@ -1 +1 @@
1
- function a249_0x2b05(){const _0x4fa2ae=['exit','SIGINT','3429923mLgufo','102VvRXZe','672FHiUKl','183999FzKBsy','beforeExit','SIGTERM','192TRlmzm','8241840CaJvhv','5580460CnEueq','328695SmOALq','22vifcng','2166712FQIxHu','once','10iNJogy','then'];a249_0x2b05=function(){return _0x4fa2ae;};return a249_0x2b05();}function a249_0x5353(_0x4b9007,_0x3d2445){_0x4b9007=_0x4b9007-0xf8;const _0x2b05ba=a249_0x2b05();let _0x535375=_0x2b05ba[_0x4b9007];return _0x535375;}(function(_0x493f78,_0x2e4ddd){const _0x1905d3=a249_0x5353,_0x3720a2=_0x493f78();while(!![]){try{const _0x88e0f2=-parseInt(_0x1905d3(0x102))/0x1*(parseInt(_0x1905d3(0xfb))/0x2)+-parseInt(_0x1905d3(0x105))/0x3*(parseInt(_0x1905d3(0x101))/0x4)+parseInt(_0x1905d3(0x108))/0x5*(parseInt(_0x1905d3(0x100))/0x6)+parseInt(_0x1905d3(0xff))/0x7+-parseInt(_0x1905d3(0xf9))/0x8+-parseInt(_0x1905d3(0x106))/0x9+-parseInt(_0x1905d3(0x107))/0xa*(-parseInt(_0x1905d3(0xf8))/0xb);if(_0x88e0f2===_0x2e4ddd)break;else _0x3720a2['push'](_0x3720a2['shift']());}catch(_0x252645){_0x3720a2['push'](_0x3720a2['shift']());}}}(a249_0x2b05,0x9405a));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 _0x4082d2=a249_0x5353;process[_0x4082d2(0xfa)](_0x4082d2(0x103),()=>{void flushOtelNodeIfUsed();});const _0x2bdb3c=()=>{const _0x2d616e=_0x4082d2;void flushOtelNodeIfUsed()[_0x2d616e(0xfc)](()=>process[_0x2d616e(0xfd)](0x0));};process['once'](_0x4082d2(0xfe),_0x2bdb3c),process['once'](_0x4082d2(0x104),_0x2bdb3c);}export async function exitWithOtelShutdown(_0x4f4b3b){const _0x33d9b0=a249_0x5353;await flushOtelNodeIfUsed(),process[_0x33d9b0(0xfd)](_0x4f4b3b);}
1
+ function a255_0x5c92(){const _0x406153=['22lyvGfe','SIGTERM','36806uyXxAd','once','exit','1664676eGNRFy','5615916sznmYF','then','5028792DFAAmR','SIGINT','4xJtmum','97EjTIFu','16rLmnHH','322994dRqWvN','874525EVstqf','27488030kLDQKJ'];a255_0x5c92=function(){return _0x406153;};return a255_0x5c92();}(function(_0x59ad5a,_0xb395fe){const _0x4886ce=a255_0x1c9c,_0x5b07d0=_0x59ad5a();while(!![]){try{const _0x516437=-parseInt(_0x4886ce(0x8a))/0x1*(parseInt(_0x4886ce(0x81))/0x2)+-parseInt(_0x4886ce(0x87))/0x3+parseInt(_0x4886ce(0x89))/0x4*(parseInt(_0x4886ce(0x8d))/0x5)+-parseInt(_0x4886ce(0x85))/0x6+-parseInt(_0x4886ce(0x8c))/0x7*(parseInt(_0x4886ce(0x8b))/0x8)+-parseInt(_0x4886ce(0x84))/0x9+parseInt(_0x4886ce(0x8e))/0xa*(parseInt(_0x4886ce(0x7f))/0xb);if(_0x516437===_0xb395fe)break;else _0x5b07d0['push'](_0x5b07d0['shift']());}catch(_0x495707){_0x5b07d0['push'](_0x5b07d0['shift']());}}}(a255_0x5c92,0xf3a22));function a255_0x1c9c(_0xd7c9ef,_0x1bfad9){_0xd7c9ef=_0xd7c9ef-0x7f;const _0x5c92c3=a255_0x5c92();let _0x1c9cc8=_0x5c92c3[_0xd7c9ef];return _0x1c9cc8;}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 _0x44d287=a255_0x1c9c;process[_0x44d287(0x82)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x29be7c=()=>{const _0x244e84=_0x44d287;void flushOtelNodeIfUsed()[_0x244e84(0x86)](()=>process[_0x244e84(0x83)](0x0));};process[_0x44d287(0x82)](_0x44d287(0x88),_0x29be7c),process[_0x44d287(0x82)](_0x44d287(0x80),_0x29be7c);}export async function exitWithOtelShutdown(_0x26d89b){const _0x3b44e4=a255_0x1c9c;await flushOtelNodeIfUsed(),process[_0x3b44e4(0x83)](_0x26d89b);}
@@ -0,0 +1,17 @@
1
+ import type { Attributes } from "@opentelemetry/api";
2
+ export type SendCliTraceLogParams = {
3
+ /** 默认 `rabetbase-cli` */
4
+ traceName?: string;
5
+ /** 默认当前 CLI `package.json` 的 `version` */
6
+ version?: string;
7
+ spanName: string;
8
+ logData?: Attributes;
9
+ /** 与上游延续 trace,可选 */
10
+ traceparent?: string;
11
+ };
12
+ /**
13
+ * 对 {@link sendTraceLog} 的 CLI 封装:先 {@link ensureCliOtelTraceConfig},再带上默认 traceName / version。
14
+ * `eventType` 固定为 `manual`(Node CLI,无浏览器 click/expose)。
15
+ * CLI 侧业务 helper 应统一走这层宿主 adapter,不要各自重复调用 `ensureCliOtelTraceConfig()`。
16
+ */
17
+ export declare function sendCliTraceLog(params: SendCliTraceLogParams): Promise<void>;
@@ -1 +1 @@
1
- function a250_0x57c4(){const _0x5c91a8=['1402158PlOWip','959679JZmfmO','9maAryP','133736gLSevi','traceName','manual','642480LmAUAm','34975fgBopR','1HCSksq','429eJhihJ','12nLMikK','6927790yuUIFc','spanName','77JKAEiO','traceparent','2128764kWttLN','logData'];a250_0x57c4=function(){return _0x5c91a8;};return a250_0x57c4();}(function(_0x27565f,_0x39d891){const _0x389853=a250_0x250f,_0x439de0=_0x27565f();while(!![]){try{const _0xeeac8e=parseInt(_0x389853(0xfd))/0x1*(parseInt(_0x389853(0x106))/0x2)+parseInt(_0x389853(0x107))/0x3+parseInt(_0x389853(0x104))/0x4+parseInt(_0x389853(0x10d))/0x5*(parseInt(_0x389853(0xff))/0x6)+-parseInt(_0x389853(0x102))/0x7*(-parseInt(_0x389853(0x109))/0x8)+parseInt(_0x389853(0x108))/0x9*(parseInt(_0x389853(0x100))/0xa)+parseInt(_0x389853(0xfe))/0xb*(-parseInt(_0x389853(0x10c))/0xc);if(_0xeeac8e===_0x39d891)break;else _0x439de0['push'](_0x439de0['shift']());}catch(_0x1f3cfe){_0x439de0['push'](_0x439de0['shift']());}}}(a250_0x57c4,0x56daf));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a250_0x250f(_0x16383c,_0x1cf45c){_0x16383c=_0x16383c-0xfd;const _0x57c4c3=a250_0x57c4();let _0x250f10=_0x57c4c3[_0x16383c];return _0x250f10;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x3299cc){const _0x34b6eb=a250_0x250f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3299cc[_0x34b6eb(0x10a)]??DEFAULT_TRACE_NAME,'version':_0x3299cc['version']??getCliVersion(),'spanName':_0x3299cc[_0x34b6eb(0x101)],'eventType':_0x34b6eb(0x10b),'logData':_0x3299cc[_0x34b6eb(0x105)],..._0x3299cc['traceparent']&&{'traceparent':_0x3299cc[_0x34b6eb(0x103)]}});}
1
+ const a256_0x1a34ca=a256_0x183a;function a256_0x183a(_0x11356b,_0x3c15e0){_0x11356b=_0x11356b-0x1b2;const _0x26539c=a256_0x2653();let _0x183ab9=_0x26539c[_0x11356b];return _0x183ab9;}(function(_0x2e6d64,_0x33e5be){const _0x711219=a256_0x183a,_0x356aa7=_0x2e6d64();while(!![]){try{const _0x2a3eca=-parseInt(_0x711219(0x1b6))/0x1*(parseInt(_0x711219(0x1be))/0x2)+-parseInt(_0x711219(0x1b8))/0x3*(parseInt(_0x711219(0x1c0))/0x4)+-parseInt(_0x711219(0x1c1))/0x5*(-parseInt(_0x711219(0x1bd))/0x6)+-parseInt(_0x711219(0x1bf))/0x7+-parseInt(_0x711219(0x1b9))/0x8+-parseInt(_0x711219(0x1ba))/0x9*(-parseInt(_0x711219(0x1bc))/0xa)+-parseInt(_0x711219(0x1c2))/0xb*(-parseInt(_0x711219(0x1b4))/0xc);if(_0x2a3eca===_0x33e5be)break;else _0x356aa7['push'](_0x356aa7['shift']());}catch(_0x3910bd){_0x356aa7['push'](_0x356aa7['shift']());}}}(a256_0x2653,0xf0452));import{sendTraceLog}from'@lovrabet/otel-logger';function a256_0x2653(){const _0x219554=['9287844shJiNc','spanName','80YEOGWg','version','3adlHxO','1218000PNcNHU','54bUwuwv','traceparent','410140DmcdKM','6cQYAzN','37738PAfzAc','1737435XtoYwu','5694724ITBvPE','8748785jbtaIB','33eZjxwf','logData','traceName','rabetbase-cli'];a256_0x2653=function(){return _0x219554;};return a256_0x2653();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a256_0x1a34ca(0x1b3);export async function sendCliTraceLog(_0x4510c0){const _0x1b6427=a256_0x1a34ca;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4510c0[_0x1b6427(0x1b2)]??DEFAULT_TRACE_NAME,'version':_0x4510c0[_0x1b6427(0x1b7)]??getCliVersion(),'spanName':_0x4510c0[_0x1b6427(0x1b5)],'eventType':'manual','logData':_0x4510c0[_0x1b6427(0x1c3)],..._0x4510c0[_0x1b6427(0x1bb)]&&{'traceparent':_0x4510c0[_0x1b6427(0x1bb)]}});}
@@ -0,0 +1,26 @@
1
+ export declare const PLATFORM_ISSUE_TRACE_NAME = "platform-issue-log-collect";
2
+ export declare const PLATFORM_ISSUE_SPAN_NAME = "issue.log.collect";
3
+ export type PlatformIssueReport = {
4
+ title: string;
5
+ description: string;
6
+ /**
7
+ * 描述卫生处理后的元信息(可选)。命令层应先用 `sanitizeIssueDescription`
8
+ * 处理 `description` 文本,再把结果中的 truncated / redactionCount / redactionKinds
9
+ * 透传到这里,作为 `issue.description_*` attribute 上报,供运维统计。
10
+ */
11
+ sanitize?: {
12
+ originalBytes: number;
13
+ truncated: boolean;
14
+ redactionCount: number;
15
+ redactionKinds: string[];
16
+ };
17
+ };
18
+ /**
19
+ * 发送平台 issue 采集日志;宿主身份、环境、用户等上下文字段由 `setServiceConfig()` / `setUserContext()` 负责。
20
+ * 这里通过 `sendCliTraceLog()` 间接完成 `ensureCliOtelTraceConfig()`,不再重复直连初始化。
21
+ * 这个 helper 只负责 issue 事件自身的业务载荷,不重复写 service/user/env 等宿主公共字段。
22
+ *
23
+ * 调用约定:`description` 必须由调用方先经 `sanitizeIssueDescription` 清洗;
24
+ * helper 不再做体积/敏感保护,避免双重处理与统计漂移。
25
+ */
26
+ export declare function sendPlatformIssueCollectLog(report: PlatformIssueReport): Promise<void>;
@@ -1 +1 @@
1
- const a251_0x421ce0=a251_0x351f;(function(_0x2af454,_0x426898){const _0x5889a0=a251_0x351f,_0x395e11=_0x2af454();while(!![]){try{const _0x1b6cb5=parseInt(_0x5889a0(0x9d))/0x1*(-parseInt(_0x5889a0(0xa5))/0x2)+-parseInt(_0x5889a0(0xa0))/0x3+-parseInt(_0x5889a0(0xa3))/0x4*(-parseInt(_0x5889a0(0x9a))/0x5)+parseInt(_0x5889a0(0xa2))/0x6*(-parseInt(_0x5889a0(0x98))/0x7)+parseInt(_0x5889a0(0x9b))/0x8+parseInt(_0x5889a0(0xa1))/0x9+parseInt(_0x5889a0(0xa8))/0xa*(parseInt(_0x5889a0(0x99))/0xb);if(_0x1b6cb5===_0x426898)break;else _0x395e11['push'](_0x395e11['shift']());}catch(_0x3fa9ae){_0x395e11['push'](_0x395e11['shift']());}}}(a251_0x5dc8,0x8ccca));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a251_0x5dc8(){const _0x37a86b=['33qxejbk','5644965NAehRs','3839248xfuOOr','join','14169iNAYrp','sanitize','title','3458742KqGntd','2417490MXKZjI','303204XlLTfk','4smMNop','platform-issue-log-collect','152fjxUUC','redactionKinds','description','3264990xugGVw','redactionCount','7aQuzGP'];a251_0x5dc8=function(){return _0x37a86b;};return a251_0x5dc8();}export const PLATFORM_ISSUE_TRACE_NAME=a251_0x421ce0(0xa4);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a251_0x351f(_0x52d99e,_0x2698b7){_0x52d99e=_0x52d99e-0x98;const _0x5dc8b3=a251_0x5dc8();let _0x351fa5=_0x5dc8b3[_0x52d99e];return _0x351fa5;}export async function sendPlatformIssueCollectLog(_0x4204f7){const _0x1c65d4=a251_0x421ce0;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4204f7[_0x1c65d4(0x9f)],'issue.description':_0x4204f7[_0x1c65d4(0xa7)],..._0x4204f7['sanitize']?{'issue.description_original_bytes':_0x4204f7[_0x1c65d4(0x9e)]['originalBytes'],'issue.description_truncated':_0x4204f7[_0x1c65d4(0x9e)]['truncated'],'issue.description_redactions':_0x4204f7[_0x1c65d4(0x9e)][_0x1c65d4(0xa9)],'issue.description_redaction_kinds':_0x4204f7[_0x1c65d4(0x9e)][_0x1c65d4(0xa6)][_0x1c65d4(0x9c)](',')}:{}}});}
1
+ const a257_0x368c5b=a257_0x4b99;function a257_0x2e70(){const _0x3d6c11=['originalBytes','join','324371sXwbwU','redactionKinds','948114JnTyzq','platform-issue-log-collect','description','2946840DJPMCS','redactionCount','4349118KVNxCB','sanitize','2228196YtxQAh','9433445SHJSpX','4416720zcSjBG','issue.log.collect','truncated'];a257_0x2e70=function(){return _0x3d6c11;};return a257_0x2e70();}(function(_0x4bd38f,_0xdbfe52){const _0xb694fb=a257_0x4b99,_0x3d9417=_0x4bd38f();while(!![]){try{const _0x4c9fd0=-parseInt(_0xb694fb(0x1b5))/0x1+parseInt(_0xb694fb(0x1ae))/0x2+parseInt(_0xb694fb(0x1a7))/0x3+parseInt(_0xb694fb(0x1b0))/0x4+parseInt(_0xb694fb(0x1aa))/0x5+-parseInt(_0xb694fb(0x1ac))/0x6+-parseInt(_0xb694fb(0x1af))/0x7;if(_0x4c9fd0===_0xdbfe52)break;else _0x3d9417['push'](_0x3d9417['shift']());}catch(_0x2289f8){_0x3d9417['push'](_0x3d9417['shift']());}}}(a257_0x2e70,0xb1729));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a257_0x4b99(_0x5b1396,_0x21a816){_0x5b1396=_0x5b1396-0x1a6;const _0x2e70a9=a257_0x2e70();let _0x4b9962=_0x2e70a9[_0x5b1396];return _0x4b9962;}export const PLATFORM_ISSUE_TRACE_NAME=a257_0x368c5b(0x1a8);export const PLATFORM_ISSUE_SPAN_NAME=a257_0x368c5b(0x1b1);export async function sendPlatformIssueCollectLog(_0x462deb){const _0x35e7d3=a257_0x368c5b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x462deb['title'],'issue.description':_0x462deb[_0x35e7d3(0x1a9)],..._0x462deb['sanitize']?{'issue.description_original_bytes':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1b3)],'issue.description_truncated':_0x462deb['sanitize'][_0x35e7d3(0x1b2)],'issue.description_redactions':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1ab)],'issue.description_redaction_kinds':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1a6)][_0x35e7d3(0x1b4)](',')}:{}}});}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Lovrabet CLI 类型定义
3
+ * 集中管理所有公共类型
4
+ */
5
+ /**
6
+ * 服务端 model-list 接口返回的数组项
7
+ */
8
+ export interface ModelListItem {
9
+ key: string;
10
+ tableName: string;
11
+ datasetCode: string;
12
+ name: string;
13
+ id: number;
14
+ alias?: string;
15
+ dbName?: string;
16
+ }
17
+ /**
18
+ * registerModels 的 models 数组项类型
19
+ * 用于生成 api.ts 中的模型配置
20
+ */
21
+ export interface RegisterModelConfig {
22
+ datasetCode: string;
23
+ tableName: string;
24
+ name: string;
25
+ alias?: string;
26
+ dbName?: string;
27
+ }
28
+ /**
29
+ * 获取模型列表的响应结果
30
+ */
31
+ export interface FetchModelListResult {
32
+ configArray: ModelListItem[];
33
+ count: number;
34
+ }
35
+ /**
36
+ * 生成 API 文件的结果
37
+ */
38
+ export interface GenerateApiFileResult {
39
+ modelCount: number;
40
+ apiFilePath: string;
41
+ clientFilePath: string;
42
+ configName: string;
43
+ }
44
+ /**
45
+ * 获取文档的选项
46
+ */
47
+ export interface FetchDocOptions {
48
+ appCode: string;
49
+ cookie: string;
50
+ datasetCode: string;
51
+ datasetId: number;
52
+ enableAI?: boolean;
53
+ extraParams?: Record<string, any>;
54
+ }
55
+ /**
56
+ * 生成文档的结果
57
+ */
58
+ export interface GenerateDocResult {
59
+ datasetCode: string;
60
+ datasetName: string;
61
+ filePath: string;
62
+ success: boolean;
63
+ error?: string;
64
+ }
65
+ /**
66
+ * HTTP 请求选项
67
+ */
68
+ export interface RequestOptions {
69
+ method?: "GET" | "POST" | "PUT" | "DELETE";
70
+ headers?: Record<string, string>;
71
+ body?: any;
72
+ timeout?: number;
73
+ }
74
+ /**
75
+ * HTTP 响应
76
+ */
77
+ export interface HttpResponse<T = any> {
78
+ success: boolean;
79
+ data?: T;
80
+ error?: string;
81
+ status?: number;
82
+ }
83
+ /**
84
+ * 日志条目
85
+ */
86
+ export interface LogEntry {
87
+ timestamp: string;
88
+ level: "info" | "warn" | "error" | "success";
89
+ category: string;
90
+ message: string;
91
+ duration?: number;
92
+ metadata?: Record<string, any>;
93
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * AI IDE 配置 - 单一数据源
3
+ *
4
+ * 用于 skill install 和 create 时选择 IDE
5
+ */
6
+ /**
7
+ * 核心支持的 IDE 类型
8
+ */
9
+ export type CoreIDEType = "cursor" | "windsurf" | "claude" | "cline" | "codex" | "opencode" | "qoder" | "codebuddy" | "trae";
10
+ /**
11
+ * 扩展 IDE 类型(包括通用模板)
12
+ */
13
+ export type IDEType = CoreIDEType | "agent" | "antigravity";
14
+ export interface IDEConfig {
15
+ name: string;
16
+ description: string;
17
+ /** 文件列表(目录自动创建) */
18
+ files?: IDEDirectory[];
19
+ /** 兼容旧版:文件夹列表 */
20
+ folders?: string[];
21
+ }
22
+ /** IDE 目录配置 */
23
+ export interface IDEDirectory {
24
+ type: "file";
25
+ path: string;
26
+ template?: string;
27
+ }
28
+ /**
29
+ * 核心 IDE 配置
30
+ */
31
+ export declare const CORE_IDE_CONFIGS: Record<CoreIDEType, IDEConfig>;
32
+ /**
33
+ * 完整 IDE 配置(包含通用模板)
34
+ */
35
+ export declare const IDE_CONFIGS: Record<IDEType, IDEConfig>;
36
+ /**
37
+ * 核心 IDE 列表(按字母排序)
38
+ */
39
+ export declare const CORE_IDE_LIST: CoreIDEType[];
40
+ /**
41
+ * 完整 IDE 列表(包含通用模板)
42
+ */
43
+ export declare const IDE_LIST: IDEType[];
44
+ /**
45
+ * 所有核心 IDE(用于 --all 选项)
46
+ */
47
+ export declare const ALL_CORE_IDES: CoreIDEType[];
@@ -1 +1 @@
1
- const a253_0x3f9b5c=a253_0x4aa6;(function(_0x40b25f,_0x577466){const _0x4e3270=a253_0x4aa6,_0x40b14c=_0x40b25f();while(!![]){try{const _0x20b782=parseInt(_0x4e3270(0x141))/0x1*(parseInt(_0x4e3270(0x132))/0x2)+parseInt(_0x4e3270(0x140))/0x3*(parseInt(_0x4e3270(0x120))/0x4)+-parseInt(_0x4e3270(0x113))/0x5*(parseInt(_0x4e3270(0x134))/0x6)+-parseInt(_0x4e3270(0x118))/0x7+-parseInt(_0x4e3270(0x133))/0x8*(parseInt(_0x4e3270(0x12f))/0x9)+-parseInt(_0x4e3270(0x11d))/0xa+-parseInt(_0x4e3270(0x116))/0xb*(-parseInt(_0x4e3270(0x119))/0xc);if(_0x20b782===_0x577466)break;else _0x40b14c['push'](_0x40b14c['shift']());}catch(_0x51e299){_0x40b14c['push'](_0x40b14c['shift']());}}}(a253_0xc508,0x5cfdc));function a253_0xc508(){const _0x41b15a=['9wtZIrd','windsurf','.qoder/skills/lovrabet/SKILL.md','1602ziUTbX','1904248iEXGrg','240xAwASy','Antigravity','Claude\x20Code','CodeBuddy','.codex','opencode','.cline','qoder','cline','Codex','.cursor/skills/rabetbase.md','claude','78KxMGhP','512TGQrKx','Windsurf\x20IDE','.trae/skills/lovrabet/SKILL.md','OpenCode','Cursor','SKILL.md.tpl','Trae','.agent','24205WBnpZm','.claude/skills/lovrabet/SKILL.md','Cursor\x20IDE','539DGmbdY','codebuddy','772611tcDMpa','178884EfvYsh','file','Windsurf','codex','4248390GARvIH','.qoder/rules/rabetbase.md','OpenCode\x20IDE','31880fBpicK','.trae','trae','.codex/skills/lovrabet/SKILL.md','Qoder','.windsurf/workflows/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','cursor','其他\x20(通用模板)','agent','Cline','Codex\x20IDE','Antigravity\x20IDE','.claude'];a253_0xc508=function(){return _0x41b15a;};return a253_0xc508();}export const CORE_IDE_CONFIGS={'cursor':{'name':a253_0x3f9b5c(0x10f),'description':a253_0x3f9b5c(0x115),'folders':['.cursorrules','.cursor'],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x13e),'template':a253_0x3f9b5c(0x110)}]},'windsurf':{'name':a253_0x3f9b5c(0x11b),'description':a253_0x3f9b5c(0x10c),'folders':['.windsurf'],'files':[{'type':'file','path':a253_0x3f9b5c(0x125),'template':a253_0x3f9b5c(0x110)}]},'claude':{'name':'Claude\x20Code','description':a253_0x3f9b5c(0x136),'folders':[a253_0x3f9b5c(0x12e)],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x114),'template':a253_0x3f9b5c(0x110)}]},'cline':{'name':a253_0x3f9b5c(0x12b),'description':'Cline\x20IDE','folders':[a253_0x3f9b5c(0x13a)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]},'codex':{'name':a253_0x3f9b5c(0x13d),'description':a253_0x3f9b5c(0x12c),'folders':[a253_0x3f9b5c(0x138)],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x123),'template':'SKILL.md.tpl'}]},'opencode':{'name':a253_0x3f9b5c(0x10e),'description':a253_0x3f9b5c(0x11f),'folders':['.opencode'],'files':[{'type':a253_0x3f9b5c(0x11a),'path':'.opencode/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]},'qoder':{'name':a253_0x3f9b5c(0x124),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a253_0x3f9b5c(0x11e),'template':a253_0x3f9b5c(0x110)},{'type':'file','path':a253_0x3f9b5c(0x131),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a253_0x3f9b5c(0x137),'description':a253_0x3f9b5c(0x127),'folders':['.codebuddy'],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x126),'template':a253_0x3f9b5c(0x110)}]},'trae':{'name':a253_0x3f9b5c(0x111),'description':'Trae\x20IDE','folders':[a253_0x3f9b5c(0x121)],'files':[{'type':'file','path':a253_0x3f9b5c(0x10d),'template':a253_0x3f9b5c(0x110)}]}};function a253_0x4aa6(_0x4ebdcb,_0x25ab0e){_0x4ebdcb=_0x4ebdcb-0x10c;const _0xc50883=a253_0xc508();let _0x4aa6a5=_0xc50883[_0x4ebdcb];return _0x4aa6a5;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a253_0x3f9b5c(0x129),'description':'通用模板\x20-\x20兜底方案','folders':[a253_0x3f9b5c(0x112)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]},'antigravity':{'name':a253_0x3f9b5c(0x135),'description':a253_0x3f9b5c(0x12d),'folders':[a253_0x3f9b5c(0x112)],'files':[{'type':a253_0x3f9b5c(0x11a),'path':'.agent/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]}};export const CORE_IDE_LIST=[a253_0x3f9b5c(0x13f),a253_0x3f9b5c(0x13c),a253_0x3f9b5c(0x117),a253_0x3f9b5c(0x11c),a253_0x3f9b5c(0x128),'opencode',a253_0x3f9b5c(0x13b),a253_0x3f9b5c(0x122),a253_0x3f9b5c(0x130)];export const IDE_LIST=['antigravity','claude',a253_0x3f9b5c(0x13c),a253_0x3f9b5c(0x117),a253_0x3f9b5c(0x11c),a253_0x3f9b5c(0x128),a253_0x3f9b5c(0x139),'qoder',a253_0x3f9b5c(0x122),a253_0x3f9b5c(0x130),a253_0x3f9b5c(0x12a)];export const ALL_CORE_IDES=[a253_0x3f9b5c(0x128),a253_0x3f9b5c(0x130),'claude',a253_0x3f9b5c(0x13c),a253_0x3f9b5c(0x11c),a253_0x3f9b5c(0x139),a253_0x3f9b5c(0x13b),'codebuddy',a253_0x3f9b5c(0x122)];
1
+ const a259_0x16df02=a259_0x503a;(function(_0x47b73a,_0x595543){const _0xe84da3=a259_0x503a,_0x23297a=_0x47b73a();while(!![]){try{const _0x4dfa1c=parseInt(_0xe84da3(0x1e5))/0x1+parseInt(_0xe84da3(0x1f0))/0x2+-parseInt(_0xe84da3(0x1ed))/0x3*(parseInt(_0xe84da3(0x20d))/0x4)+parseInt(_0xe84da3(0x1fd))/0x5+-parseInt(_0xe84da3(0x1df))/0x6+parseInt(_0xe84da3(0x1e7))/0x7*(parseInt(_0xe84da3(0x20e))/0x8)+parseInt(_0xe84da3(0x1e3))/0x9*(-parseInt(_0xe84da3(0x206))/0xa);if(_0x4dfa1c===_0x595543)break;else _0x23297a['push'](_0x23297a['shift']());}catch(_0x301d20){_0x23297a['push'](_0x23297a['shift']());}}}(a259_0x14c6,0xe084d));export const CORE_IDE_CONFIGS={'cursor':{'name':a259_0x16df02(0x214),'description':'Cursor\x20IDE','folders':[a259_0x16df02(0x1ff),a259_0x16df02(0x20b)],'files':[{'type':'file','path':a259_0x16df02(0x20a),'template':a259_0x16df02(0x1fe)}]},'windsurf':{'name':'Windsurf','description':a259_0x16df02(0x1e8),'folders':[a259_0x16df02(0x1fb)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1ea),'template':'SKILL.md.tpl'}]},'claude':{'name':a259_0x16df02(0x1ef),'description':a259_0x16df02(0x1ef),'folders':[a259_0x16df02(0x1ee)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fa),'template':a259_0x16df02(0x1fe)}]},'cline':{'name':a259_0x16df02(0x1e0),'description':'Cline\x20IDE','folders':[a259_0x16df02(0x208)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1f1),'template':a259_0x16df02(0x1fe)}]},'codex':{'name':a259_0x16df02(0x212),'description':a259_0x16df02(0x1e1),'folders':[a259_0x16df02(0x203)],'files':[{'type':'file','path':a259_0x16df02(0x205),'template':a259_0x16df02(0x1fe)}]},'opencode':{'name':'OpenCode','description':a259_0x16df02(0x1f7),'folders':[a259_0x16df02(0x204)],'files':[{'type':'file','path':a259_0x16df02(0x1dd),'template':a259_0x16df02(0x1fe)}]},'qoder':{'name':a259_0x16df02(0x1de),'description':'Qoder\x20IDE','folders':[a259_0x16df02(0x1eb)],'files':[{'type':'file','path':a259_0x16df02(0x213),'template':a259_0x16df02(0x1fe)},{'type':a259_0x16df02(0x1f2),'path':'.qoder/skills/lovrabet/SKILL.md','template':a259_0x16df02(0x1fe)}]},'codebuddy':{'name':a259_0x16df02(0x1e2),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1ec),'template':'SKILL.md.tpl'}]},'trae':{'name':a259_0x16df02(0x20f),'description':'Trae\x20IDE','folders':[a259_0x16df02(0x1f4)],'files':[{'type':'file','path':a259_0x16df02(0x1f8),'template':a259_0x16df02(0x1fe)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a259_0x16df02(0x202),'description':a259_0x16df02(0x201),'folders':[a259_0x16df02(0x1e6)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fc),'template':a259_0x16df02(0x1fe)}]},'antigravity':{'name':a259_0x16df02(0x1f9),'description':a259_0x16df02(0x20c),'folders':[a259_0x16df02(0x1e6)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fc),'template':a259_0x16df02(0x1fe)}]}};export const CORE_IDE_LIST=[a259_0x16df02(0x1e4),a259_0x16df02(0x1f5),a259_0x16df02(0x209),'codex',a259_0x16df02(0x207),a259_0x16df02(0x1e9),a259_0x16df02(0x211),a259_0x16df02(0x1f6),a259_0x16df02(0x210)];function a259_0x503a(_0x126b3e,_0x184ffb){_0x126b3e=_0x126b3e-0x1dd;const _0x14c676=a259_0x14c6();let _0x503afa=_0x14c676[_0x126b3e];return _0x503afa;}function a259_0x14c6(){const _0x5d65f8=['.qoder','.codebuddy/skills/lovrabet/SKILL.md','216GaLtkT','.claude','Claude\x20Code','3639544QIiqXf','.cline/skills/lovrabet/SKILL.md','file','codex','.trae','cline','trae','OpenCode\x20IDE','.trae/skills/lovrabet/SKILL.md','Antigravity','.claude/skills/lovrabet/SKILL.md','.windsurf','.agent/skills/lovrabet/SKILL.md','5234840oliIYK','SKILL.md.tpl','.cursorrules','antigravity','通用模板\x20-\x20兜底方案','其他\x20(通用模板)','.codex','.opencode','.codex/skills/lovrabet/SKILL.md','10qAOfxg','cursor','.cline','codebuddy','.cursor/skills/rabetbase.md','.cursor','Antigravity\x20IDE','4500Tgpwno','192736ebbQzD','Trae','windsurf','qoder','Codex','.qoder/rules/rabetbase.md','Cursor','.opencode/skills/lovrabet/SKILL.md','Qoder','106872JixZPn','Cline','Codex\x20IDE','CodeBuddy','37823796XkqHaz','claude','1511125tYfEtJ','.agent','245xXXvzO','Windsurf\x20IDE','opencode','.windsurf/workflows/rabetbase.md'];a259_0x14c6=function(){return _0x5d65f8;};return a259_0x14c6();}export const IDE_LIST=[a259_0x16df02(0x200),a259_0x16df02(0x1e4),a259_0x16df02(0x1f5),a259_0x16df02(0x209),a259_0x16df02(0x1f3),a259_0x16df02(0x207),'opencode',a259_0x16df02(0x211),a259_0x16df02(0x1f6),a259_0x16df02(0x210),'agent'];export const ALL_CORE_IDES=[a259_0x16df02(0x207),'windsurf',a259_0x16df02(0x1e4),'cline',a259_0x16df02(0x1f3),a259_0x16df02(0x1e9),a259_0x16df02(0x211),a259_0x16df02(0x209),a259_0x16df02(0x1f6)];
@@ -0,0 +1 @@
1
+ export declare const applyJqFilter: (jsonInput: string, expr: string) => string;
@@ -1 +1 @@
1
- (function(_0x1ad1e1,_0x174ecb){const _0x4d1920=a254_0x4b80,_0x1d5b46=_0x1ad1e1();while(!![]){try{const _0xe7f9fa=parseInt(_0x4d1920(0xfe))/0x1*(-parseInt(_0x4d1920(0xf9))/0x2)+parseInt(_0x4d1920(0x101))/0x3+-parseInt(_0x4d1920(0xfc))/0x4+-parseInt(_0x4d1920(0xff))/0x5+-parseInt(_0x4d1920(0xfb))/0x6+parseInt(_0x4d1920(0xfa))/0x7*(parseInt(_0x4d1920(0xfd))/0x8)+-parseInt(_0x4d1920(0x102))/0x9*(-parseInt(_0x4d1920(0x100))/0xa);if(_0xe7f9fa===_0x174ecb)break;else _0x1d5b46['push'](_0x1d5b46['shift']());}catch(_0x3ab26d){_0x1d5b46['push'](_0x1d5b46['shift']());}}}(a254_0x1b4a,0xe5a83));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a254_0x4b80(_0x4c3946,_0x4fb7c0){_0x4c3946=_0x4c3946-0xf9;const _0x1b4a3b=a254_0x1b4a();let _0x4b8088=_0x1b4a3b[_0x4c3946];return _0x4b8088;}import{CliErrors}from'../errors.js';function a254_0x1b4a(){const _0x1bb861=['11241KXBKgp','154MJIwjO','1747403GburDq','4882530FfyzHI','7003152HpquLi','32GFqKpp','13933mZqVdD','1283610OGCirI','26700kBgdHY','1504305ybTOMx'];a254_0x1b4a=function(){return _0x1bb861;};return a254_0x1b4a();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x2a2e8c,_0x5abb68){const _0x3fb885=a260_0x3c95,_0x3ec347=_0x2a2e8c();while(!![]){try{const _0x4eabee=parseInt(_0x3fb885(0x94))/0x1*(-parseInt(_0x3fb885(0x93))/0x2)+-parseInt(_0x3fb885(0x98))/0x3*(-parseInt(_0x3fb885(0x96))/0x4)+-parseInt(_0x3fb885(0x97))/0x5*(-parseInt(_0x3fb885(0x9c))/0x6)+-parseInt(_0x3fb885(0x91))/0x7+-parseInt(_0x3fb885(0x95))/0x8+parseInt(_0x3fb885(0x9a))/0x9*(-parseInt(_0x3fb885(0x92))/0xa)+parseInt(_0x3fb885(0x9b))/0xb*(parseInt(_0x3fb885(0x99))/0xc);if(_0x4eabee===_0x5abb68)break;else _0x3ec347['push'](_0x3ec347['shift']());}catch(_0x24a06a){_0x3ec347['push'](_0x3ec347['shift']());}}}(a260_0x1504,0xb4899));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a260_0x3c95(_0x2e2b3a,_0x289065){_0x2e2b3a=_0x2e2b3a-0x91;const _0x150414=a260_0x1504();let _0x3c951d=_0x150414[_0x2e2b3a];return _0x3c951d;}function a260_0x1504(){const _0x21794c=['219uxhLpr','252cssbuE','27ETfTll','775423CKJAPG','990LdoXvX','6141527IERrcA','1439310wOdcoh','6UVYAGW','55885qWKSWF','6641208wUlymT','6604lcLabZ','43805rIGuGr'];a260_0x1504=function(){return _0x21794c;};return a260_0x1504();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -0,0 +1,42 @@
1
+ /**
2
+ * CDN Config 工具
3
+ *
4
+ * 从 CDN 拉取配置。
5
+ *
6
+ * 为兼容历史发布结构,会依次尝试:
7
+ * 1. <baseUrl>/config.json
8
+ * 2. <baseUrl>/config/index.json
9
+ */
10
+ /**
11
+ * CDN 配置数据结构
12
+ */
13
+ export interface CdnConfig {
14
+ $schema?: string;
15
+ version: string;
16
+ cli: {
17
+ stableVersion: string;
18
+ };
19
+ sdk: {
20
+ node: {
21
+ stableVersion: string;
22
+ packageName: string;
23
+ };
24
+ };
25
+ mcp: {
26
+ stableVersion: string;
27
+ packageName: string;
28
+ };
29
+ _meta?: {
30
+ buildTime: string;
31
+ lastUpdated: string;
32
+ };
33
+ }
34
+ /**
35
+ * 从 CDN 拉取配置
36
+ */
37
+ export declare function fetchCdnConfig(): Promise<CdnConfig | null>;
38
+ export declare function getCdnConfig(): Promise<CdnConfig | null>;
39
+ /**
40
+ * 清除配置缓存
41
+ */
42
+ export declare function clearCdnConfigCache(): void;
@@ -1 +1 @@
1
- (function(_0x417e52,_0x9b1b1f){const _0x454eaf=a255_0x3d58,_0x1811bf=_0x417e52();while(!![]){try{const _0x52c4cb=-parseInt(_0x454eaf(0xb7))/0x1+-parseInt(_0x454eaf(0xb3))/0x2+-parseInt(_0x454eaf(0xad))/0x3*(parseInt(_0x454eaf(0xb5))/0x4)+-parseInt(_0x454eaf(0xb2))/0x5*(parseInt(_0x454eaf(0xb6))/0x6)+-parseInt(_0x454eaf(0xb1))/0x7*(parseInt(_0x454eaf(0xb0))/0x8)+parseInt(_0x454eaf(0xae))/0x9*(parseInt(_0x454eaf(0xa6))/0xa)+-parseInt(_0x454eaf(0xab))/0xb*(-parseInt(_0x454eaf(0xac))/0xc);if(_0x52c4cb===_0x9b1b1f)break;else _0x1811bf['push'](_0x1811bf['shift']());}catch(_0x57ddbb){_0x1811bf['push'](_0x1811bf['shift']());}}}(a255_0x517f,0x7238f));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x47d79a=a255_0x3d58,_0x4463a6=getTemplateBaseUrl(),_0x5e94fa=[_0x4463a6+_0x47d79a(0xa7),_0x4463a6+_0x47d79a(0xa9)];for(const _0x37ef99 of _0x5e94fa){try{const _0x4ca876=await fetch(_0x37ef99,{'headers':{'Accept':_0x47d79a(0xaf)}});if(!_0x4ca876['ok'])continue;const _0xcb069b=await _0x4ca876['json']();if(!_0xcb069b['cli']?.['stableVersion']||!_0xcb069b[_0x47d79a(0xa8)]?.['node']?.[_0x47d79a(0xaa)])continue;return _0xcb069b;}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 _0x472384=a255_0x3d58,_0x3d2a98=Date[_0x472384(0xb4)]();if(hasCachedConfig){const _0x5d689b=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3d2a98-cacheTime<_0x5d689b)return cachedConfig;}const _0x121fac=await fetchCdnConfig();return cachedConfig=_0x121fac,cacheTime=_0x3d2a98,hasCachedConfig=!![],_0x121fac;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a255_0x3d58(_0x58cc6d,_0x1cfd7b){_0x58cc6d=_0x58cc6d-0xa6;const _0x517fb3=a255_0x517f();let _0x3d58cd=_0x517fb3[_0x58cc6d];return _0x3d58cd;}function a255_0x517f(){const _0x1d3e5b=['/config.json','sdk','/config/index.json','stableVersion','27364469sNbmqY','12Ppxiqf','3sRenxp','1035udtAjk','application/json','4924888FJcDsu','7BzuXLA','5epXhXL','390622iIIaSl','now','627412oZYLRy','3947736nIjxGm','908258RFnBmh','44710WYGmhw'];a255_0x517f=function(){return _0x1d3e5b;};return a255_0x517f();}
1
+ function a261_0x50d5(_0xed82d9,_0x384f5e){_0xed82d9=_0xed82d9-0x137;const _0x3b77b7=a261_0x3b77();let _0x50d571=_0x3b77b7[_0xed82d9];return _0x50d571;}(function(_0x11cdb7,_0xa6161b){const _0x981c32=a261_0x50d5,_0x475378=_0x11cdb7();while(!![]){try{const _0x5146f9=-parseInt(_0x981c32(0x13a))/0x1*(-parseInt(_0x981c32(0x147))/0x2)+-parseInt(_0x981c32(0x138))/0x3+-parseInt(_0x981c32(0x142))/0x4+parseInt(_0x981c32(0x139))/0x5+-parseInt(_0x981c32(0x13b))/0x6*(parseInt(_0x981c32(0x146))/0x7)+parseInt(_0x981c32(0x140))/0x8*(parseInt(_0x981c32(0x143))/0x9)+-parseInt(_0x981c32(0x13c))/0xa*(parseInt(_0x981c32(0x141))/0xb);if(_0x5146f9===_0xa6161b)break;else _0x475378['push'](_0x475378['shift']());}catch(_0x36488f){_0x475378['push'](_0x475378['shift']());}}}(a261_0x3b77,0x5dc42));import{getTemplateBaseUrl}from'../utils/config.js';function a261_0x3b77(){const _0x18c311=['115157OOcQSG','2WMRytx','node','stableVersion','now','317205osoCWU','1189505eWGIEq','752543kUDiOu','36yXbHbT','2009510VomDiM','json','/config/index.json','/config.json','8UDzSjw','11OynjpX','1081892wowSEk','625383TfOLKR','application/json','sdk'];a261_0x3b77=function(){return _0x18c311;};return a261_0x3b77();}export async function fetchCdnConfig(){const _0x55c000=a261_0x50d5,_0x2dbe92=getTemplateBaseUrl(),_0x5a7a4b=[_0x2dbe92+_0x55c000(0x13f),_0x2dbe92+_0x55c000(0x13e)];for(const _0x341cc2 of _0x5a7a4b){try{const _0x33a47c=await fetch(_0x341cc2,{'headers':{'Accept':_0x55c000(0x144)}});if(!_0x33a47c['ok'])continue;const _0x1fccb3=await _0x33a47c[_0x55c000(0x13d)]();if(!_0x1fccb3['cli']?.['stableVersion']||!_0x1fccb3[_0x55c000(0x145)]?.[_0x55c000(0x148)]?.[_0x55c000(0x149)])continue;return _0x1fccb3;}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 _0x2cbdf9=a261_0x50d5,_0xf2ccfa=Date[_0x2cbdf9(0x137)]();if(hasCachedConfig){const _0x4d61e8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf2ccfa-cacheTime<_0x4d61e8)return cachedConfig;}const _0x696842=await fetchCdnConfig();return cachedConfig=_0x696842,cacheTime=_0xf2ccfa,hasCachedConfig=!![],_0x696842;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -0,0 +1,23 @@
1
+ export interface SdkVersionCheckResult {
2
+ installed: boolean;
3
+ version: string | null;
4
+ needsUpgrade: boolean;
5
+ minVersion: string;
6
+ packageName: string;
7
+ stableVersion: string | null;
8
+ }
9
+ /**
10
+ * 检查用户项目的 SDK 版本
11
+ * @param projectPath 用户项目路径
12
+ * @returns 版本检查结果
13
+ */
14
+ export declare function checkSdkVersion(projectPath: string): Promise<SdkVersionCheckResult>;
15
+ /**
16
+ * 同步版本的 SDK 版本检查(向下兼容)
17
+ * @deprecated 使用 checkSdkVersion() 代替
18
+ */
19
+ export declare function checkSdkVersionSync(projectPath: string): SdkVersionCheckResult;
20
+ /**
21
+ * 打印 SDK 版本升级警告
22
+ */
23
+ export declare function printSdkUpgradeWarning(result: SdkVersionCheckResult): void;
@@ -1 +1 @@
1
- const a256_0x3a5983=a256_0x7cfe;(function(_0x364c2a,_0x2b57e9){const _0x59937b=a256_0x7cfe,_0x13b026=_0x364c2a();while(!![]){try{const _0x421075=parseInt(_0x59937b(0x8d))/0x1*(-parseInt(_0x59937b(0x6d))/0x2)+parseInt(_0x59937b(0x6f))/0x3*(parseInt(_0x59937b(0x6e))/0x4)+parseInt(_0x59937b(0x6c))/0x5*(-parseInt(_0x59937b(0x7d))/0x6)+parseInt(_0x59937b(0x7f))/0x7*(parseInt(_0x59937b(0x8a))/0x8)+parseInt(_0x59937b(0x70))/0x9*(parseInt(_0x59937b(0x71))/0xa)+parseInt(_0x59937b(0x74))/0xb+parseInt(_0x59937b(0x78))/0xc*(-parseInt(_0x59937b(0x7a))/0xd);if(_0x421075===_0x2b57e9)break;else _0x13b026['push'](_0x13b026['shift']());}catch(_0xc84b8b){_0x13b026['push'](_0x13b026['shift']());}}}(a256_0x102c,0x3b92d));import a256_0xeea591 from'node:fs';import a256_0x4442dc from'node:path';import a256_0x30045c from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a256_0x3a5983(0x84);function a256_0x7cfe(_0x1781f8,_0x55cf48){_0x1781f8=_0x1781f8-0x67;const _0x102c4b=a256_0x102c();let _0x7cfee3=_0x102c4b[_0x1781f8];return _0x7cfee3;}function isNonNumericVersion(_0x2e58f6){const _0x5954c1=a256_0x3a5983,_0x52846d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x52846d['some'](_0xe4cf98=>_0xe4cf98[_0x5954c1(0x89)](_0x2e58f6));}function getInstalledVersion(_0x4f8e1a,_0x4c39e6){const _0x106fcd=a256_0x3a5983;try{const _0x367199=a256_0x4442dc[_0x106fcd(0x76)](_0x4f8e1a,_0x106fcd(0x68),_0x4c39e6,_0x106fcd(0x87));if(a256_0xeea591['existsSync'](_0x367199)){const _0x82fd21=JSON[_0x106fcd(0x73)](a256_0xeea591[_0x106fcd(0x8e)](_0x367199,'utf-8'));return _0x82fd21['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x28538a=a256_0x3a5983;try{const _0xac9d3c=await getCdnConfig();return _0xac9d3c?.[_0x28538a(0x77)]?.[_0x28538a(0x83)]?.[_0x28538a(0x88)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x52cf72=a256_0x3a5983;try{const _0x1082fb=await getCdnConfig();return _0x1082fb?.[_0x52cf72(0x77)]?.[_0x52cf72(0x83)]?.[_0x52cf72(0x72)]||_0x52cf72(0x79);}catch{return _0x52cf72(0x79);}}function a256_0x102c(){const _0x1641f9=['2YxlYZt','12qlotzM','32868vseRNV','279AWYKqw','114340mYSAkb','packageName','parse','2669194CCagoR','dependencies','join','sdk','2292mhRpoy','@lovrabet/sdk','12259DJSkJd','\x1b[1m','\x1b[0m','18JrjTnh','devDependencies','63wCogRl','latest','npm\x20install\x20','utf8','node','1.2.0','minVersion','existsSync','package.json','stableVersion','test','221608XalGMz','\x20\x20\x20Stable\x20version:\x20','↪\x20SDK\x20update\x20available','86249MZyRwp','readFileSync','version','\x1b[33m','node_modules','log','needsUpgrade','coerce','614850ISekgX'];a256_0x102c=function(){return _0x1641f9;};return a256_0x102c();}export async function checkSdkVersion(_0x2a023a){const _0x401952=a256_0x3a5983,_0x3352b8=a256_0x4442dc[_0x401952(0x76)](_0x2a023a,'package.json'),[_0x4760a1,_0x11d844]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x37dcdc=_0x4760a1||FALLBACK_MIN_SDK_VERSION;if(!a256_0xeea591[_0x401952(0x86)](_0x3352b8))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x37dcdc,'packageName':_0x11d844,'stableVersion':_0x4760a1};try{const _0x5459ae=JSON[_0x401952(0x73)](a256_0xeea591[_0x401952(0x8e)](_0x3352b8,_0x401952(0x82))),_0x7fead9=_0x5459ae[_0x401952(0x75)]||{},_0x3b73a9=_0x5459ae['devDependencies']||{},_0x19afd6=_0x7fead9[_0x11d844]||_0x3b73a9[_0x11d844];if(!_0x19afd6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x37dcdc,'packageName':_0x11d844,'stableVersion':_0x4760a1};let _0x2ae41c=getInstalledVersion(_0x2a023a,_0x11d844);!_0x2ae41c&&(_0x2ae41c=_0x19afd6);if(isNonNumericVersion(_0x19afd6))return{'installed':!![],'version':_0x2ae41c,'needsUpgrade':![],'minVersion':_0x37dcdc,'packageName':_0x11d844,'stableVersion':_0x4760a1};const _0x1e0e78=a256_0x30045c[_0x401952(0x6b)](_0x2ae41c),_0x39a7e1=a256_0x30045c['coerce'](_0x37dcdc),_0x31c128=_0x1e0e78&&_0x39a7e1?a256_0x30045c['lt'](_0x1e0e78,_0x39a7e1):![];return{'installed':!![],'version':_0x2ae41c,'needsUpgrade':_0x31c128,'minVersion':_0x37dcdc,'packageName':_0x11d844,'stableVersion':_0x4760a1};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x37dcdc,'packageName':_0x11d844,'stableVersion':_0x4760a1};}}export function checkSdkVersionSync(_0x4c0d85){const _0xf98209=a256_0x3a5983,_0x27a777=a256_0x4442dc[_0xf98209(0x76)](_0x4c0d85,_0xf98209(0x87)),_0xd8ba8c=_0xf98209(0x79);if(!a256_0xeea591[_0xf98209(0x86)](_0x27a777))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8ba8c,'stableVersion':null};try{const _0x27a3a1=JSON[_0xf98209(0x73)](a256_0xeea591[_0xf98209(0x8e)](_0x27a777,'utf8')),_0x5cfaed=_0x27a3a1['dependencies']||{},_0x3e7e12=_0x27a3a1[_0xf98209(0x7e)]||{},_0x2fcd1f=_0x5cfaed[_0xd8ba8c]||_0x3e7e12[_0xd8ba8c];if(!_0x2fcd1f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8ba8c,'stableVersion':null};let _0x5a7e41=getInstalledVersion(_0x4c0d85,_0xd8ba8c);!_0x5a7e41&&(_0x5a7e41=_0x2fcd1f);if(isNonNumericVersion(_0x2fcd1f))return{'installed':!![],'version':_0x5a7e41,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8ba8c,'stableVersion':null};const _0x23ca63=a256_0x30045c['coerce'](_0x5a7e41),_0x3c8844=_0x23ca63?a256_0x30045c['lt'](_0x23ca63,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x5a7e41,'needsUpgrade':_0x3c8844,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8ba8c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xd8ba8c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x472659){const _0x2315d4=a256_0x3a5983;if(!_0x472659[_0x2315d4(0x6a)])return;const _0x391f01=_0x2315d4(0x67),_0x26d386=_0x2315d4(0x7c),_0x24dbf9=_0x2315d4(0x7b),_0x403491=_0x472659['packageName']||'@lovrabet/sdk',_0x3419e6=_0x472659[_0x2315d4(0x88)]||_0x472659[_0x2315d4(0x85)],_0x406820=_0x2315d4(0x81)+_0x403491+'@'+(_0x3419e6||_0x2315d4(0x80));console[_0x2315d4(0x69)](),console[_0x2315d4(0x69)](''+_0x391f01+_0x24dbf9+_0x2315d4(0x8c)+_0x26d386),console[_0x2315d4(0x69)](_0x391f01+'\x20\x20\x20Current\x20version:\x20'+_0x403491+'@'+_0x472659[_0x2315d4(0x8f)]+_0x26d386),console[_0x2315d4(0x69)](_0x391f01+_0x2315d4(0x8b)+_0x3419e6+_0x26d386),console[_0x2315d4(0x69)](_0x391f01+'\x20\x20\x20Upgrade\x20command:\x20'+_0x406820+_0x26d386),console['log']();}
1
+ const a262_0x5ea00c=a262_0x4a15;(function(_0xc48df1,_0x358975){const _0x234101=a262_0x4a15,_0x3282ce=_0xc48df1();while(!![]){try{const _0x341bc4=-parseInt(_0x234101(0xa1))/0x1*(parseInt(_0x234101(0x93))/0x2)+-parseInt(_0x234101(0x81))/0x3+-parseInt(_0x234101(0xa2))/0x4+parseInt(_0x234101(0x9a))/0x5*(parseInt(_0x234101(0x8f))/0x6)+parseInt(_0x234101(0x9b))/0x7+parseInt(_0x234101(0x92))/0x8+parseInt(_0x234101(0x9c))/0x9;if(_0x341bc4===_0x358975)break;else _0x3282ce['push'](_0x3282ce['shift']());}catch(_0x3917cf){_0x3282ce['push'](_0x3282ce['shift']());}}}(a262_0x1d1c,0xf095c));import a262_0x3b6b9e from'node:fs';import a262_0x384dff from'node:path';import a262_0x289812 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a262_0x5ea00c(0x9d);function a262_0x4a15(_0x39157f,_0x1d70d5){_0x39157f=_0x39157f-0x81;const _0x1d1cff=a262_0x1d1c();let _0x4a1503=_0x1d1cff[_0x39157f];return _0x4a1503;}function isNonNumericVersion(_0x3d6bfd){const _0x59bcd=a262_0x5ea00c,_0x53fe62=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x53fe62[_0x59bcd(0x98)](_0x367f75=>_0x367f75['test'](_0x3d6bfd));}function getInstalledVersion(_0x27c185,_0x1e83b6){const _0x45aa29=a262_0x5ea00c;try{const _0x2c9ece=a262_0x384dff['join'](_0x27c185,_0x45aa29(0xa7),_0x1e83b6,'package.json');if(a262_0x3b6b9e[_0x45aa29(0xa3)](_0x2c9ece)){const _0x248fbe=JSON[_0x45aa29(0xa5)](a262_0x3b6b9e[_0x45aa29(0x82)](_0x2c9ece,_0x45aa29(0xa0)));return _0x248fbe[_0x45aa29(0x95)]||null;}}catch{}return null;}function a262_0x1d1c(){const _0x4faa7d=['6ygtdKi','\x20\x20\x20Current\x20version:\x20','↪\x20SDK\x20update\x20available','14780664IwuyIZ','18dLhYts','package.json','version','join','\x20\x20\x20Upgrade\x20command:\x20','some','\x1b[33m','3363805vmIFPV','9224642xSVxrD','973494QXhgOG','1.2.0','@lovrabet/sdk','dependencies','utf-8','77358zXmLkg','5443424mwszcF','existsSync','coerce','parse','node','node_modules','2711406lFpEdo','readFileSync','\x1b[1m','\x1b[0m','log','stableVersion','latest','devDependencies','needsUpgrade','\x20\x20\x20Stable\x20version:\x20','sdk','packageName','utf8','minVersion'];a262_0x1d1c=function(){return _0x4faa7d;};return a262_0x1d1c();}async function getSdkStableVersion(){const _0x58cd84=a262_0x5ea00c;try{const _0x1d2736=await getCdnConfig();return _0x1d2736?.[_0x58cd84(0x8b)]?.[_0x58cd84(0xa6)]?.[_0x58cd84(0x86)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x269fed=a262_0x5ea00c;try{const _0x388037=await getCdnConfig();return _0x388037?.[_0x269fed(0x8b)]?.[_0x269fed(0xa6)]?.[_0x269fed(0x8c)]||_0x269fed(0x9e);}catch{return _0x269fed(0x9e);}}export async function checkSdkVersion(_0x273106){const _0x22898c=a262_0x5ea00c,_0x4baba9=a262_0x384dff[_0x22898c(0x96)](_0x273106,_0x22898c(0x94)),[_0x12bbed,_0x19345a]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x48de68=_0x12bbed||FALLBACK_MIN_SDK_VERSION;if(!a262_0x3b6b9e[_0x22898c(0xa3)](_0x4baba9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};try{const _0x49cf73=JSON[_0x22898c(0xa5)](a262_0x3b6b9e[_0x22898c(0x82)](_0x4baba9,_0x22898c(0x8d))),_0x45d01c=_0x49cf73[_0x22898c(0x9f)]||{},_0x2ba784=_0x49cf73[_0x22898c(0x88)]||{},_0x50a03c=_0x45d01c[_0x19345a]||_0x2ba784[_0x19345a];if(!_0x50a03c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};let _0x2ff704=getInstalledVersion(_0x273106,_0x19345a);!_0x2ff704&&(_0x2ff704=_0x50a03c);if(isNonNumericVersion(_0x50a03c))return{'installed':!![],'version':_0x2ff704,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};const _0x8635eb=a262_0x289812[_0x22898c(0xa4)](_0x2ff704),_0x1ac557=a262_0x289812[_0x22898c(0xa4)](_0x48de68),_0x45a345=_0x8635eb&&_0x1ac557?a262_0x289812['lt'](_0x8635eb,_0x1ac557):![];return{'installed':!![],'version':_0x2ff704,'needsUpgrade':_0x45a345,'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};}}export function checkSdkVersionSync(_0x363498){const _0x599391=a262_0x5ea00c,_0x3ca2ef=a262_0x384dff['join'](_0x363498,_0x599391(0x94)),_0x293f28='@lovrabet/sdk';if(!a262_0x3b6b9e[_0x599391(0xa3)](_0x3ca2ef))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};try{const _0x8f7d5=JSON[_0x599391(0xa5)](a262_0x3b6b9e['readFileSync'](_0x3ca2ef,'utf8')),_0x3d079b=_0x8f7d5[_0x599391(0x9f)]||{},_0x52ae21=_0x8f7d5['devDependencies']||{},_0x410ea3=_0x3d079b[_0x293f28]||_0x52ae21[_0x293f28];if(!_0x410ea3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};let _0x2d92da=getInstalledVersion(_0x363498,_0x293f28);!_0x2d92da&&(_0x2d92da=_0x410ea3);if(isNonNumericVersion(_0x410ea3))return{'installed':!![],'version':_0x2d92da,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};const _0x49ea70=a262_0x289812[_0x599391(0xa4)](_0x2d92da),_0xa99fa6=_0x49ea70?a262_0x289812['lt'](_0x49ea70,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2d92da,'needsUpgrade':_0xa99fa6,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x474e6f){const _0x227005=a262_0x5ea00c;if(!_0x474e6f[_0x227005(0x89)])return;const _0x555881=_0x227005(0x99),_0xcf1d1=_0x227005(0x84),_0x35d684=_0x227005(0x83),_0x559633=_0x474e6f['packageName']||_0x227005(0x9e),_0x445282=_0x474e6f[_0x227005(0x86)]||_0x474e6f[_0x227005(0x8e)],_0x57b490='npm\x20install\x20'+_0x559633+'@'+(_0x445282||_0x227005(0x87));console[_0x227005(0x85)](),console[_0x227005(0x85)](''+_0x555881+_0x35d684+_0x227005(0x91)+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x90)+_0x559633+'@'+_0x474e6f[_0x227005(0x95)]+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x8a)+_0x445282+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x97)+_0x57b490+_0xcf1d1),console[_0x227005(0x85)]();}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * CLI 版本检测工具
3
+ *
4
+ * 检测 CLI 本身版本是否低于 CDN 配置的稳定版本
5
+ */
6
+ export interface CliVersionCheckResult {
7
+ currentVersion: string;
8
+ stableVersion: string | null;
9
+ minimumVersion: string | null;
10
+ needsUpgrade: boolean;
11
+ belowMinimum: boolean;
12
+ isPreRelease: boolean;
13
+ upgradeMessage?: string;
14
+ minimumVersionMessage?: string;
15
+ }
16
+ /**
17
+ * Build the npm upgrade command for the checked CLI version result.
18
+ *
19
+ * @param result - Version check result that may include the stable version.
20
+ * @returns The recommended npm global install command.
21
+ */
22
+ export declare function getCliUpgradeCommand(result: Pick<CliVersionCheckResult, "stableVersion">): string;
23
+ /**
24
+ * 检查 CLI 版本是否需要升级
25
+ */
26
+ export declare function checkCliVersion(): Promise<CliVersionCheckResult>;
27
+ /**
28
+ * 打印 CLI 版本升级提示
29
+ */
30
+ export declare function printCliUpgradeWarning(result: CliVersionCheckResult): void;
31
+ /**
32
+ * Throw a validation error when the current CLI version is below the service compatibility line.
33
+ *
34
+ * @param result - Version check result produced by {@link checkCliVersion}.
35
+ * @throws {CliError} Thrown when the current version is below the service compatibility line.
36
+ */
37
+ export declare function assertCliVersionSupported(result: CliVersionCheckResult): void;
@@ -1 +1 @@
1
- (function(_0x1b0ba0,_0x573151){const _0x4cc529=a257_0x4c75,_0x4b81dd=_0x1b0ba0();while(!![]){try{const _0x27de69=-parseInt(_0x4cc529(0x1c4))/0x1+-parseInt(_0x4cc529(0x1ac))/0x2+-parseInt(_0x4cc529(0x1af))/0x3+-parseInt(_0x4cc529(0x1bc))/0x4+parseInt(_0x4cc529(0x1b7))/0x5*(-parseInt(_0x4cc529(0x1be))/0x6)+parseInt(_0x4cc529(0x1b6))/0x7+-parseInt(_0x4cc529(0x1c0))/0x8*(-parseInt(_0x4cc529(0x1b5))/0x9);if(_0x27de69===_0x573151)break;else _0x4b81dd['push'](_0x4b81dd['shift']());}catch(_0x31d7a1){_0x4b81dd['push'](_0x4b81dd['shift']());}}}(a257_0x51c0,0xb54de));import{readFileSync}from'node:fs';function a257_0x51c0(){const _0x251046=['coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[31m','latest','../..','stableVersion','1957174owZEpR','currentVersion','validation','1708749HfMcRK','belowMinimum','package.json','upgradeMessage','minimumVersionMessage','Minimum\x20supported:\x20','681039LeVFdo','9429049jYPhUa','1797805nbDCxl','\x20\x20\x20','↪\x20New\x20version\x20available','log','\x1b[33m','2413572xdinSc','Current\x20version:\x20','12VRooSs','\x1b[0m','272pjKsia','join','minimumVersion','parse','306514uvKqPx','filter','1.0.0'];a257_0x51c0=function(){return _0x251046;};return a257_0x51c0();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a257_0x36bc5a from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a257_0x4c75(_0x20e002,_0x5e5e8f){_0x20e002=_0x20e002-0x1a6;const _0x51c0e0=a257_0x51c0();let _0x4c759b=_0x51c0e0[_0x20e002];return _0x4c759b;}export function getCliUpgradeCommand(_0x5812db){const _0x3d2669=a257_0x4c75,_0x10263c=_0x5812db[_0x3d2669(0x1ab)]||_0x3d2669(0x1a9);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x10263c;}function getCurrentCliVersion(){const _0x1ee303=a257_0x4c75;try{const _0x41fb66=fileURLToPath(import.meta.url),_0x17924a=resolve(dirname(_0x41fb66),_0x1ee303(0x1aa)),_0x34a1be=resolve(_0x17924a,_0x1ee303(0x1b1)),_0x5115f5=JSON[_0x1ee303(0x1c3)](readFileSync(_0x34a1be,'utf-8'));return _0x5115f5['version']||'1.0.0';}catch{return _0x1ee303(0x1c6);}}export async function checkCliVersion(){const _0x3321d4=a257_0x4c75,_0x126c6b=getCurrentCliVersion(),_0x172473=await getCliVersionPolicy(),_0x49a2a4=_0x172473?.[_0x3321d4(0x1ab)]||null,_0x22d880=_0x172473?.[_0x3321d4(0x1c2)]||null;let _0x113f40=![],_0x2e35c2=![];const _0x28b35e=a257_0x36bc5a[_0x3321d4(0x1a6)](_0x126c6b);if(_0x28b35e&&_0x49a2a4)try{const _0x1d6bbb=a257_0x36bc5a['coerce'](_0x49a2a4);if(_0x1d6bbb)_0x113f40=a257_0x36bc5a['lt'](_0x28b35e,_0x1d6bbb);}catch{}if(_0x28b35e&&_0x22d880)try{const _0x1a096a=a257_0x36bc5a['coerce'](_0x22d880);if(_0x1a096a)_0x2e35c2=a257_0x36bc5a['lt'](_0x28b35e,_0x1a096a);}catch{}return _0x2e35c2&&(_0x113f40=!![]),{'currentVersion':_0x126c6b,'stableVersion':_0x49a2a4,'minimumVersion':_0x22d880,'needsUpgrade':_0x113f40,'belowMinimum':_0x2e35c2,'isPreRelease':![],'upgradeMessage':_0x172473?.['upgradeMessage'],'minimumVersionMessage':_0x172473?.[_0x3321d4(0x1b3)]};}export function printCliUpgradeWarning(_0x1565d8){const _0x2636e4=a257_0x4c75;if(!_0x1565d8['needsUpgrade']&&!_0x1565d8[_0x2636e4(0x1b0)])return;const _0x3b0728=_0x2636e4(0x1a8),_0x1c27b1=_0x2636e4(0x1bb),_0x2ef976=_0x2636e4(0x1bf),_0x128da6='\x1b[1m',_0xc27aa=getCliUpgradeCommand(_0x1565d8);console['log'](),_0x1565d8[_0x2636e4(0x1b0)]?(console[_0x2636e4(0x1ba)](''+_0x3b0728+_0x128da6+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x2ef976),console[_0x2636e4(0x1ba)](_0x3b0728+_0x2636e4(0x1a7)+_0x1565d8[_0x2636e4(0x1ad)]+_0x2ef976),_0x1565d8[_0x2636e4(0x1c2)]&&console[_0x2636e4(0x1ba)](_0x3b0728+'\x20\x20\x20Minimum\x20supported:\x20'+_0x1565d8[_0x2636e4(0x1c2)]+_0x2ef976),_0x1565d8['stableVersion']&&_0x1565d8[_0x2636e4(0x1ab)]!==_0x1565d8['minimumVersion']&&console[_0x2636e4(0x1ba)](_0x3b0728+'\x20\x20\x20Recommended\x20stable:\x20'+_0x1565d8[_0x2636e4(0x1ab)]+_0x2ef976),_0x1565d8[_0x2636e4(0x1b3)]&&console[_0x2636e4(0x1ba)](_0x3b0728+_0x2636e4(0x1b8)+_0x1565d8[_0x2636e4(0x1b3)]+_0x2ef976),console['log'](_0x3b0728+'\x20\x20\x20Upgrade\x20command:\x20'+_0xc27aa+_0x2ef976)):(console['log'](''+_0x1c27b1+_0x128da6+_0x2636e4(0x1b9)+_0x2ef976),console['log'](_0x1c27b1+_0x2636e4(0x1a7)+_0x1565d8[_0x2636e4(0x1ad)]+_0x2ef976),console['log'](_0x1c27b1+'\x20\x20\x20Stable\x20version:\x20'+_0x1565d8[_0x2636e4(0x1ab)]+_0x2ef976),_0x1565d8[_0x2636e4(0x1b2)]&&console[_0x2636e4(0x1ba)](_0x1c27b1+_0x2636e4(0x1b8)+_0x1565d8['upgradeMessage']+_0x2ef976),console[_0x2636e4(0x1ba)](_0x1c27b1+'\x20\x20\x20Upgrade\x20command:\x20'+_0xc27aa+_0x2ef976)),console[_0x2636e4(0x1ba)]();}export function assertCliVersionSupported(_0x24c813){const _0x40912a=a257_0x4c75;if(!_0x24c813[_0x40912a(0x1b0)])return;const _0x3ec886=[_0x24c813[_0x40912a(0x1b3)],_0x40912a(0x1bd)+_0x24c813[_0x40912a(0x1ad)],_0x24c813[_0x40912a(0x1c2)]?_0x40912a(0x1b4)+_0x24c813[_0x40912a(0x1c2)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x24c813)][_0x40912a(0x1c5)](Boolean)[_0x40912a(0x1c1)]('\x0a');throw CliErrors[_0x40912a(0x1ae)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x3ec886);}
1
+ (function(_0x264e21,_0x122b28){const _0x2525e2=a263_0x3f70,_0x3d629f=_0x264e21();while(!![]){try{const _0x926b1a=-parseInt(_0x2525e2(0x14a))/0x1+-parseInt(_0x2525e2(0x158))/0x2*(parseInt(_0x2525e2(0x148))/0x3)+parseInt(_0x2525e2(0x154))/0x4*(parseInt(_0x2525e2(0x15a))/0x5)+-parseInt(_0x2525e2(0x152))/0x6*(parseInt(_0x2525e2(0x15e))/0x7)+parseInt(_0x2525e2(0x15f))/0x8+parseInt(_0x2525e2(0x15b))/0x9+parseInt(_0x2525e2(0x16a))/0xa;if(_0x926b1a===_0x122b28)break;else _0x3d629f['push'](_0x3d629f['shift']());}catch(_0x221a6f){_0x3d629f['push'](_0x3d629f['shift']());}}}(a263_0x65e2,0x34f4b));function a263_0x3f70(_0x1bf5af,_0x5052c5){_0x1bf5af=_0x1bf5af-0x146;const _0x65e2e8=a263_0x65e2();let _0x3f7081=_0x65e2e8[_0x1bf5af];return _0x3f7081;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a263_0x2ec24b 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(_0x368735){const _0x59b774=a263_0x3f70,_0x24be60=_0x368735[_0x59b774(0x168)]||_0x59b774(0x150);return _0x59b774(0x14c)+NPM_PACKAGE_NAME+'@'+_0x24be60;}function getCurrentCliVersion(){const _0x43c431=a263_0x3f70;try{const _0x29abdd=fileURLToPath(import.meta.url),_0x59e314=resolve(dirname(_0x29abdd),_0x43c431(0x16e)),_0x350ed1=resolve(_0x59e314,_0x43c431(0x14e)),_0x1ae9b4=JSON[_0x43c431(0x166)](readFileSync(_0x350ed1,_0x43c431(0x146)));return _0x1ae9b4['version']||_0x43c431(0x16b);}catch{return _0x43c431(0x16b);}}export async function checkCliVersion(){const _0x1326b0=a263_0x3f70,_0x202404=getCurrentCliVersion(),_0x485b69=await getCliVersionPolicy(),_0x4b075a=_0x485b69?.['stableVersion']||null,_0x2507d1=_0x485b69?.[_0x1326b0(0x163)]||null;let _0x297d14=![],_0x355d99=![];const _0x175ca7=a263_0x2ec24b[_0x1326b0(0x14b)](_0x202404);if(_0x175ca7&&_0x4b075a)try{const _0x2174e5=a263_0x2ec24b[_0x1326b0(0x14b)](_0x4b075a);if(_0x2174e5)_0x297d14=a263_0x2ec24b['lt'](_0x175ca7,_0x2174e5);}catch{}if(_0x175ca7&&_0x2507d1)try{const _0x27b45c=a263_0x2ec24b[_0x1326b0(0x14b)](_0x2507d1);if(_0x27b45c)_0x355d99=a263_0x2ec24b['lt'](_0x175ca7,_0x27b45c);}catch{}return _0x355d99&&(_0x297d14=!![]),{'currentVersion':_0x202404,'stableVersion':_0x4b075a,'minimumVersion':_0x2507d1,'needsUpgrade':_0x297d14,'belowMinimum':_0x355d99,'isPreRelease':![],'upgradeMessage':_0x485b69?.['upgradeMessage'],'minimumVersionMessage':_0x485b69?.[_0x1326b0(0x16d)]};}function a263_0x65e2(){const _0x23df06=['\x1b[1m','package.json','log','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','66tZLoRi','Minimum\x20supported:\x20','12JyqwIm','\x1b[31m','belowMinimum','Upgrade\x20command:\x20','120XgeTBa','needsUpgrade','225365IuQOUe','2528964THFNDD','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','141827fcbCTQ','3438232TNSEia','upgradeMessage','currentVersion','validation','minimumVersion','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','parse','\x1b[33m','stableVersion','join','2003080nEHdyX','1.0.0','Current\x20version:\x20','minimumVersionMessage','../..','utf-8','filter','16782SDzSUF','\x20\x20\x20Stable\x20version:\x20','270884fjvVBf','coerce','npm\x20install\x20-g\x20'];a263_0x65e2=function(){return _0x23df06;};return a263_0x65e2();}export function printCliUpgradeWarning(_0x32db1e){const _0x4aa11c=a263_0x3f70;if(!_0x32db1e[_0x4aa11c(0x159)]&&!_0x32db1e[_0x4aa11c(0x156)])return;const _0xf6338a=_0x4aa11c(0x155),_0x5276a6=_0x4aa11c(0x167),_0xd3db85='\x1b[0m',_0x24c86c=_0x4aa11c(0x14d),_0x26cbaa=getCliUpgradeCommand(_0x32db1e);console[_0x4aa11c(0x14f)](),_0x32db1e[_0x4aa11c(0x156)]?(console['log'](''+_0xf6338a+_0x24c86c+_0x4aa11c(0x165)+_0xd3db85),console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x151)+_0x32db1e[_0x4aa11c(0x161)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x163)]&&console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x15c)+_0x32db1e['minimumVersion']+_0xd3db85),_0x32db1e[_0x4aa11c(0x168)]&&_0x32db1e[_0x4aa11c(0x168)]!==_0x32db1e['minimumVersion']&&console[_0x4aa11c(0x14f)](_0xf6338a+'\x20\x20\x20Recommended\x20stable:\x20'+_0x32db1e[_0x4aa11c(0x168)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x16d)]&&console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x164)+_0x32db1e[_0x4aa11c(0x16d)]+_0xd3db85),console['log'](_0xf6338a+_0x4aa11c(0x15d)+_0x26cbaa+_0xd3db85)):(console['log'](''+_0x5276a6+_0x24c86c+'↪\x20New\x20version\x20available'+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x151)+_0x32db1e[_0x4aa11c(0x161)]+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x149)+_0x32db1e[_0x4aa11c(0x168)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x160)]&&console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x164)+_0x32db1e['upgradeMessage']+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x15d)+_0x26cbaa+_0xd3db85)),console[_0x4aa11c(0x14f)]();}export function assertCliVersionSupported(_0x1bec83){const _0x447772=a263_0x3f70;if(!_0x1bec83[_0x447772(0x156)])return;const _0x31b9c8=[_0x1bec83[_0x447772(0x16d)],_0x447772(0x16c)+_0x1bec83[_0x447772(0x161)],_0x1bec83['minimumVersion']?_0x447772(0x153)+_0x1bec83[_0x447772(0x163)]:null,_0x447772(0x157)+getCliUpgradeCommand(_0x1bec83)][_0x447772(0x147)](Boolean)[_0x447772(0x169)]('\x0a');throw CliErrors[_0x447772(0x162)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x31b9c8);}
@@ -0,0 +1,9 @@
1
+ export interface CliVersionPolicy {
2
+ stableVersion: string | null;
3
+ minimumVersion: string | null;
4
+ upgradeMessage?: string;
5
+ minimumVersionMessage?: string;
6
+ }
7
+ export declare function fetchCliVersionPolicy(): Promise<CliVersionPolicy | null>;
8
+ export declare function getCliVersionPolicy(): Promise<CliVersionPolicy | null>;
9
+ export declare function clearCliVersionPolicyCache(): void;
@@ -1 +1 @@
1
- (function(_0x404036,_0x56b6e0){const _0x1a1b30=a258_0x4c3d,_0x144a41=_0x404036();while(!![]){try{const _0x5e9ad0=parseInt(_0x1a1b30(0x83))/0x1*(parseInt(_0x1a1b30(0x90))/0x2)+parseInt(_0x1a1b30(0x8d))/0x3*(parseInt(_0x1a1b30(0x8f))/0x4)+-parseInt(_0x1a1b30(0x85))/0x5+-parseInt(_0x1a1b30(0x84))/0x6+-parseInt(_0x1a1b30(0x96))/0x7+-parseInt(_0x1a1b30(0x8a))/0x8*(parseInt(_0x1a1b30(0x92))/0x9)+-parseInt(_0x1a1b30(0x91))/0xa*(-parseInt(_0x1a1b30(0x8e))/0xb);if(_0x5e9ad0===_0x56b6e0)break;else _0x144a41['push'](_0x144a41['shift']());}catch(_0x50b0d5){_0x144a41['push'](_0x144a41['shift']());}}}(a258_0x265d,0xaa3b4));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x1406e7){const _0x242abf=a258_0x4c3d;return typeof _0x1406e7==='string'&&_0x1406e7[_0x242abf(0x94)]()[_0x242abf(0x89)]>0x0?_0x1406e7[_0x242abf(0x94)]():null;}function normalizeCliVersionPolicy(_0xfc2a77){const _0x4ff85e=a258_0x4c3d;if(!_0xfc2a77||typeof _0xfc2a77!==_0x4ff85e(0x97))return null;const _0x347d40=_0xfc2a77,_0x396b01=_0x347d40[_0x4ff85e(0x88)]&&typeof _0x347d40[_0x4ff85e(0x88)]==='object'?_0x347d40[_0x4ff85e(0x88)]:_0x347d40,_0x2048c7=pickString(_0x396b01[_0x4ff85e(0x95)])||pickString(_0x396b01[_0x4ff85e(0x8b)])||pickString(_0x396b01[_0x4ff85e(0x86)]),_0x317cb1=pickString(_0x396b01['minimumVersion'])||pickString(_0x396b01[_0x4ff85e(0x81)]);if(!_0x2048c7&&!_0x317cb1)return null;return{'stableVersion':_0x2048c7,'minimumVersion':_0x317cb1,'upgradeMessage':pickString(_0x396b01['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x396b01['minimumVersionMessage'])||undefined};}function a258_0x4c3d(_0x252af2,_0x1e334a){_0x252af2=_0x252af2-0x81;const _0x265de3=a258_0x265d();let _0x4c3d0d=_0x265de3[_0x252af2];return _0x4c3d0d;}export async function fetchCliVersionPolicy(){const _0x9991c2=a258_0x4c3d,_0x321608=new AbortController(),_0x14d497=setTimeout(()=>_0x321608[_0x9991c2(0x82)](),FETCH_TIMEOUT_MS);try{const _0x5b5fbf=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x9991c2(0x93)},'signal':_0x321608['signal']});if(!_0x5b5fbf['ok'])return null;const _0x5d8175=await _0x5b5fbf[_0x9991c2(0x8c)]();return normalizeCliVersionPolicy(_0x5d8175);}catch{return null;}finally{clearTimeout(_0x14d497);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x232dc2=a258_0x4c3d,_0x434bdd=Date[_0x232dc2(0x87)]();if(hasCachedPolicy){const _0xe55f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x434bdd-cacheTime<_0xe55f)return cachedPolicy;}const _0xc6d35d=await fetchCliVersionPolicy();return cachedPolicy=_0xc6d35d,cacheTime=_0x434bdd,hasCachedPolicy=!![],_0xc6d35d;}function a258_0x265d(){const _0x3db82c=['json','508857njqxFq','11rpQxsW','20MaMZFk','366334PVcccR','17593610bezjwY','2277261jLTiRg','application/json','trim','stableVersion','2293697YtKBYj','object','minVersion','abort','3uZhFrW','7069464NDpcQB','973435UObVrF','recommendedVersion','now','cli','length','24cVNqYY','latestVersion'];a258_0x265d=function(){return _0x3db82c;};return a258_0x265d();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x545331,_0x34024b){const _0x36a451=a264_0x1cff,_0x401164=_0x545331();while(!![]){try{const _0x42498e=parseInt(_0x36a451(0xf0))/0x1*(-parseInt(_0x36a451(0xf8))/0x2)+-parseInt(_0x36a451(0xf4))/0x3+-parseInt(_0x36a451(0xf5))/0x4+-parseInt(_0x36a451(0xfb))/0x5*(-parseInt(_0x36a451(0xf1))/0x6)+parseInt(_0x36a451(0xf2))/0x7+parseInt(_0x36a451(0xfa))/0x8+parseInt(_0x36a451(0xf6))/0x9;if(_0x42498e===_0x34024b)break;else _0x401164['push'](_0x401164['shift']());}catch(_0x4b3ad1){_0x401164['push'](_0x401164['shift']());}}}(a264_0x31e2,0x7cb2b));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a264_0x1cff(_0x5ed2fc,_0x555a10){_0x5ed2fc=_0x5ed2fc-0xe6;const _0x31e21c=a264_0x31e2();let _0x1cffb3=_0x31e21c[_0x5ed2fc];return _0x1cffb3;}function a264_0x31e2(){const _0x536d2f=['string','json','trim','latestVersion','length','now','object','4lGuFax','366bnMHtJ','5140898PwMNLU','upgradeMessage','95364azzesL','2334104jxnHMH','1680642jCjnkJ','recommendedVersion','253366MoezXb','signal','2610560VwzesA','31585AmOCJX','cli','minVersion','abort','minimumVersion','minimumVersionMessage','application/json','stableVersion'];a264_0x31e2=function(){return _0x536d2f;};return a264_0x31e2();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x6e7579){const _0x2cba6d=a264_0x1cff;return typeof _0x6e7579===_0x2cba6d(0xe9)&&_0x6e7579[_0x2cba6d(0xeb)]()[_0x2cba6d(0xed)]>0x0?_0x6e7579[_0x2cba6d(0xeb)]():null;}function normalizeCliVersionPolicy(_0x4aa6ec){const _0x4d50f6=a264_0x1cff;if(!_0x4aa6ec||typeof _0x4aa6ec!==_0x4d50f6(0xef))return null;const _0x9f138e=_0x4aa6ec,_0xdf0cf9=_0x9f138e[_0x4d50f6(0xfc)]&&typeof _0x9f138e[_0x4d50f6(0xfc)]===_0x4d50f6(0xef)?_0x9f138e[_0x4d50f6(0xfc)]:_0x9f138e,_0x3abd3a=pickString(_0xdf0cf9[_0x4d50f6(0xe8)])||pickString(_0xdf0cf9[_0x4d50f6(0xec)])||pickString(_0xdf0cf9[_0x4d50f6(0xf7)]),_0x335d9a=pickString(_0xdf0cf9[_0x4d50f6(0xff)])||pickString(_0xdf0cf9[_0x4d50f6(0xfd)]);if(!_0x3abd3a&&!_0x335d9a)return null;return{'stableVersion':_0x3abd3a,'minimumVersion':_0x335d9a,'upgradeMessage':pickString(_0xdf0cf9[_0x4d50f6(0xf3)])||undefined,'minimumVersionMessage':pickString(_0xdf0cf9[_0x4d50f6(0xe6)])||undefined};}export async function fetchCliVersionPolicy(){const _0x512275=a264_0x1cff,_0x58c8aa=new AbortController(),_0x3a13c6=setTimeout(()=>_0x58c8aa[_0x512275(0xfe)](),FETCH_TIMEOUT_MS);try{const _0x3dcebc=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x512275(0xe7)},'signal':_0x58c8aa[_0x512275(0xf9)]});if(!_0x3dcebc['ok'])return null;const _0xb7b9a8=await _0x3dcebc[_0x512275(0xea)]();return normalizeCliVersionPolicy(_0xb7b9a8);}catch{return null;}finally{clearTimeout(_0x3a13c6);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x25b967=a264_0x1cff,_0x2f61b2=Date[_0x25b967(0xee)]();if(hasCachedPolicy){const _0x528e1f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f61b2-cacheTime<_0x528e1f)return cachedPolicy;}const _0x303479=await fetchCliVersionPolicy();return cachedPolicy=_0x303479,cacheTime=_0x2f61b2,hasCachedPolicy=!![],_0x303479;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}