@lovrabet/rabetbase-cli 2.3.16-beta.3 → 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 (568) 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
  561. package/lib/commands/page/react/create.js +0 -1
  562. package/lib/commands/page/react/detail.js +0 -1
  563. package/lib/commands/page/react/list.js +0 -1
  564. package/lib/commands/page/react/publish.js +0 -1
  565. package/lib/commands/page/react/shared.js +0 -1
  566. package/lib/commands/page/react/syntax.js +0 -1
  567. package/lib/commands/page/react/template.js +0 -1
  568. package/lib/commands/page/react/update.js +0 -1
@@ -1 +1 @@
1
- function a257_0x521e(_0x32641c,_0x1d70e2){_0x32641c=_0x32641c-0x151;const _0x314215=a257_0x3142();let _0x521ece=_0x314215[_0x32641c];return _0x521ece;}(function(_0x5d563a,_0x2aafe0){const _0x5793ca=a257_0x521e,_0x25442c=_0x5d563a();while(!![]){try{const _0x23d158=parseInt(_0x5793ca(0x152))/0x1+-parseInt(_0x5793ca(0x15e))/0x2*(-parseInt(_0x5793ca(0x157))/0x3)+parseInt(_0x5793ca(0x155))/0x4+-parseInt(_0x5793ca(0x158))/0x5*(-parseInt(_0x5793ca(0x154))/0x6)+parseInt(_0x5793ca(0x151))/0x7+parseInt(_0x5793ca(0x156))/0x8*(parseInt(_0x5793ca(0x153))/0x9)+-parseInt(_0x5793ca(0x15c))/0xa*(parseInt(_0x5793ca(0x159))/0xb);if(_0x23d158===_0x2aafe0)break;else _0x25442c['push'](_0x25442c['shift']());}catch(_0x75dae4){_0x25442c['push'](_0x25442c['shift']());}}}(a257_0x3142,0xdcc96));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 _0x163625=a257_0x521e;process[_0x163625(0x15a)](_0x163625(0x15d),()=>{void flushOtelNodeIfUsed();});const _0x2b9981=()=>{const _0x5776bc=_0x163625;void flushOtelNodeIfUsed()[_0x5776bc(0x15b)](()=>process['exit'](0x0));};process['once'](_0x163625(0x15f),_0x2b9981),process[_0x163625(0x15a)]('SIGTERM',_0x2b9981);}export async function exitWithOtelShutdown(_0x8b4e85){await flushOtelNodeIfUsed(),process['exit'](_0x8b4e85);}function a257_0x3142(){const _0x3acb91=['beforeExit','273044bZEcEN','SIGINT','3663492vhZVdA','430732GguRqX','144DEAmTD','18czVvZD','6126368ANXsWm','902160RLCSVE','6ZZlbSa','1666735VklLtz','7513qgxPsY','once','then','68210DuDzoo'];a257_0x3142=function(){return _0x3acb91;};return a257_0x3142();}
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
- const a258_0x3f62f8=a258_0x257d;function a258_0x31ba(){const _0x43e267=['914200MLqABA','6lOdAEw','2Fircbq','439330vJCtDT','logData','version','8unwxRP','1282809kcoGbR','90LsSFlk','traceName','rabetbase-cli','12rdhkzN','spanName','952095cmbGbg','traceparent','7783153pBBFJm','6248555ccMCGK','313843GNzIhN'];a258_0x31ba=function(){return _0x43e267;};return a258_0x31ba();}(function(_0x3460cf,_0x158342){const _0x364c9f=a258_0x257d,_0x181d00=_0x3460cf();while(!![]){try{const _0x26fa11=parseInt(_0x364c9f(0x19a))/0x1*(parseInt(_0x364c9f(0x19d))/0x2)+parseInt(_0x364c9f(0x1a8))/0x3*(-parseInt(_0x364c9f(0x1a1))/0x4)+parseInt(_0x364c9f(0x1ab))/0x5*(parseInt(_0x364c9f(0x19c))/0x6)+-parseInt(_0x364c9f(0x1aa))/0x7+parseInt(_0x364c9f(0x19b))/0x8*(parseInt(_0x364c9f(0x1a3))/0x9)+-parseInt(_0x364c9f(0x19e))/0xa+parseInt(_0x364c9f(0x1a2))/0xb*(-parseInt(_0x364c9f(0x1a6))/0xc);if(_0x26fa11===_0x158342)break;else _0x181d00['push'](_0x181d00['shift']());}catch(_0x2410fa){_0x181d00['push'](_0x181d00['shift']());}}}(a258_0x31ba,0xc31a7));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a258_0x257d(_0x5b17bf,_0xe333a8){_0x5b17bf=_0x5b17bf-0x19a;const _0x31ba41=a258_0x31ba();let _0x257d78=_0x31ba41[_0x5b17bf];return _0x257d78;}const DEFAULT_TRACE_NAME=a258_0x3f62f8(0x1a5);export async function sendCliTraceLog(_0x36490b){const _0xf5b780=a258_0x3f62f8;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x36490b[_0xf5b780(0x1a4)]??DEFAULT_TRACE_NAME,'version':_0x36490b[_0xf5b780(0x1a0)]??getCliVersion(),'spanName':_0x36490b[_0xf5b780(0x1a7)],'eventType':'manual','logData':_0x36490b[_0xf5b780(0x19f)],..._0x36490b[_0xf5b780(0x1a9)]&&{'traceparent':_0x36490b[_0xf5b780(0x1a9)]}});}
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 a259_0x4327c1=a259_0x7650;function a259_0x7650(_0x5567c1,_0x5b92c1){_0x5567c1=_0x5567c1-0x122;const _0x31892e=a259_0x3189();let _0x76500e=_0x31892e[_0x5567c1];return _0x76500e;}(function(_0x1ce5de,_0x2fe20f){const _0x2101dc=a259_0x7650,_0x5cd074=_0x1ce5de();while(!![]){try{const _0x41b565=-parseInt(_0x2101dc(0x12c))/0x1+-parseInt(_0x2101dc(0x12b))/0x2*(parseInt(_0x2101dc(0x125))/0x3)+-parseInt(_0x2101dc(0x12f))/0x4+-parseInt(_0x2101dc(0x12a))/0x5+parseInt(_0x2101dc(0x12e))/0x6*(-parseInt(_0x2101dc(0x127))/0x7)+parseInt(_0x2101dc(0x128))/0x8+parseInt(_0x2101dc(0x124))/0x9;if(_0x41b565===_0x2fe20f)break;else _0x5cd074['push'](_0x5cd074['shift']());}catch(_0x304f61){_0x5cd074['push'](_0x5cd074['shift']());}}}(a259_0x3189,0x5af95));function a259_0x3189(){const _0x495e44=['originalBytes','2061095NWJQRy','112006xRRxvW','577639TGxvBC','join','12pPFcYo','487712hlZxeX','redactionCount','sanitize','description','platform-issue-log-collect','17975322esPtSv','9CmQbWi','truncated','1891862aTrvZx','1565584ptznfn'];a259_0x3189=function(){return _0x495e44;};return a259_0x3189();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a259_0x4327c1(0x123);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x3b20ed){const _0x109d1c=a259_0x4327c1;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3b20ed['title'],'issue.description':_0x3b20ed[_0x109d1c(0x122)],..._0x3b20ed[_0x109d1c(0x131)]?{'issue.description_original_bytes':_0x3b20ed['sanitize'][_0x109d1c(0x129)],'issue.description_truncated':_0x3b20ed['sanitize'][_0x109d1c(0x126)],'issue.description_redactions':_0x3b20ed[_0x109d1c(0x131)][_0x109d1c(0x130)],'issue.description_redaction_kinds':_0x3b20ed[_0x109d1c(0x131)]['redactionKinds'][_0x109d1c(0x12d)](',')}:{}}});}
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 a261_0x4ad43f=a261_0x5962;function a261_0x5962(_0x302e8a,_0x56e998){_0x302e8a=_0x302e8a-0x1b5;const _0x1101bc=a261_0x1101();let _0x596290=_0x1101bc[_0x302e8a];return _0x596290;}(function(_0x88032d,_0x86cc20){const _0x396944=a261_0x5962,_0x4b57b2=_0x88032d();while(!![]){try{const _0x55797f=parseInt(_0x396944(0x1ce))/0x1+parseInt(_0x396944(0x1d7))/0x2+-parseInt(_0x396944(0x1e7))/0x3+parseInt(_0x396944(0x1ed))/0x4+-parseInt(_0x396944(0x1e5))/0x5+parseInt(_0x396944(0x1cd))/0x6*(-parseInt(_0x396944(0x1eb))/0x7)+-parseInt(_0x396944(0x1e3))/0x8;if(_0x55797f===_0x86cc20)break;else _0x4b57b2['push'](_0x4b57b2['shift']());}catch(_0x38be12){_0x4b57b2['push'](_0x4b57b2['shift']());}}}(a261_0x1101,0x89dc0));export const CORE_IDE_CONFIGS={'cursor':{'name':a261_0x4ad43f(0x1b7),'description':a261_0x4ad43f(0x1c6),'folders':[a261_0x4ad43f(0x1d9),a261_0x4ad43f(0x1ba)],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1d8),'template':a261_0x4ad43f(0x1dd)}]},'windsurf':{'name':a261_0x4ad43f(0x1ec),'description':a261_0x4ad43f(0x1ca),'folders':['.windsurf'],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1c9),'template':'SKILL.md.tpl'}]},'claude':{'name':a261_0x4ad43f(0x1ee),'description':a261_0x4ad43f(0x1ee),'folders':[a261_0x4ad43f(0x1bb)],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1cb),'template':a261_0x4ad43f(0x1dd)}]},'cline':{'name':a261_0x4ad43f(0x1da),'description':a261_0x4ad43f(0x1e2),'folders':[a261_0x4ad43f(0x1b9)],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1cc),'template':a261_0x4ad43f(0x1dd)}]},'codex':{'name':a261_0x4ad43f(0x1e4),'description':a261_0x4ad43f(0x1bd),'folders':[a261_0x4ad43f(0x1dc)],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1d2),'template':a261_0x4ad43f(0x1dd)}]},'opencode':{'name':a261_0x4ad43f(0x1c2),'description':a261_0x4ad43f(0x1be),'folders':[a261_0x4ad43f(0x1c5)],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1b8),'template':'SKILL.md.tpl'}]},'qoder':{'name':a261_0x4ad43f(0x1c3),'description':'Qoder\x20IDE','folders':[a261_0x4ad43f(0x1d0)],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1d3),'template':a261_0x4ad43f(0x1dd)},{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1e9),'template':a261_0x4ad43f(0x1dd)}]},'codebuddy':{'name':a261_0x4ad43f(0x1d4),'description':a261_0x4ad43f(0x1db),'folders':[a261_0x4ad43f(0x1c4)],'files':[{'type':a261_0x4ad43f(0x1de),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a261_0x4ad43f(0x1dd)}]},'trae':{'name':a261_0x4ad43f(0x1d5),'description':a261_0x4ad43f(0x1b6),'folders':['.trae'],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1c1),'template':a261_0x4ad43f(0x1dd)}]}};function a261_0x1101(){const _0x365604=['qoder','Trae\x20IDE','Cursor','.opencode/skills/lovrabet/SKILL.md','.cline','.cursor','.claude','antigravity','Codex\x20IDE','OpenCode\x20IDE','其他\x20(通用模板)','windsurf','.trae/skills/lovrabet/SKILL.md','OpenCode','Qoder','.codebuddy','.opencode','Cursor\x20IDE','Antigravity\x20IDE','opencode','.windsurf/workflows/rabetbase.md','Windsurf\x20IDE','.claude/skills/lovrabet/SKILL.md','.cline/skills/lovrabet/SKILL.md','594474ZDgOZg','1032809XqlgPE','.agent','.qoder','.agent/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','CodeBuddy','Trae','codex','2251374IBxAea','.cursor/skills/rabetbase.md','.cursorrules','Cline','CodeBuddy\x20IDE','.codex','SKILL.md.tpl','file','Antigravity','trae','cursor','Cline\x20IDE','7049544dLtbJK','Codex','1387865XrCIAZ','cline','640536UBdoqX','codebuddy','.qoder/skills/lovrabet/SKILL.md','claude','28ljUfYr','Windsurf','699080MojvsY','Claude\x20Code'];a261_0x1101=function(){return _0x365604;};return a261_0x1101();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a261_0x4ad43f(0x1bf),'description':'通用模板\x20-\x20兜底方案','folders':[a261_0x4ad43f(0x1cf)],'files':[{'type':a261_0x4ad43f(0x1de),'path':a261_0x4ad43f(0x1d1),'template':a261_0x4ad43f(0x1dd)}]},'antigravity':{'name':a261_0x4ad43f(0x1df),'description':a261_0x4ad43f(0x1c7),'folders':[a261_0x4ad43f(0x1cf)],'files':[{'type':a261_0x4ad43f(0x1de),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a261_0x4ad43f(0x1ea),a261_0x4ad43f(0x1e6),a261_0x4ad43f(0x1e8),'codex',a261_0x4ad43f(0x1e1),a261_0x4ad43f(0x1c8),a261_0x4ad43f(0x1b5),a261_0x4ad43f(0x1e0),a261_0x4ad43f(0x1c0)];export const IDE_LIST=[a261_0x4ad43f(0x1bc),a261_0x4ad43f(0x1ea),a261_0x4ad43f(0x1e6),a261_0x4ad43f(0x1e8),a261_0x4ad43f(0x1d6),'cursor',a261_0x4ad43f(0x1c8),'qoder',a261_0x4ad43f(0x1e0),a261_0x4ad43f(0x1c0),'agent'];export const ALL_CORE_IDES=[a261_0x4ad43f(0x1e1),a261_0x4ad43f(0x1c0),a261_0x4ad43f(0x1ea),'cline',a261_0x4ad43f(0x1d6),'opencode','qoder','codebuddy',a261_0x4ad43f(0x1e0)];
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 a262_0x55de(_0x54a24b,_0x3d56be){_0x54a24b=_0x54a24b-0x1c5;const _0x2ffcce=a262_0x2ffc();let _0x55de4d=_0x2ffcce[_0x54a24b];return _0x55de4d;}function a262_0x2ffc(){const _0x2e9e8d=['7274480oraArx','1859790yHAsVW','3711104IVUiqX','14fFPQsi','3lbZbtb','219278cdWJUV','1866006SmZNYo','686161uaMecv','2489650AruDIg'];a262_0x2ffc=function(){return _0x2e9e8d;};return a262_0x2ffc();}(function(_0x75af1b,_0x4dff19){const _0xe91de1=a262_0x55de,_0x51ff2c=_0x75af1b();while(!![]){try{const _0x2a73cb=parseInt(_0xe91de1(0x1c9))/0x1+parseInt(_0xe91de1(0x1c7))/0x2*(parseInt(_0xe91de1(0x1c6))/0x3)+parseInt(_0xe91de1(0x1cd))/0x4+-parseInt(_0xe91de1(0x1ca))/0x5+-parseInt(_0xe91de1(0x1cc))/0x6*(-parseInt(_0xe91de1(0x1c5))/0x7)+-parseInt(_0xe91de1(0x1cb))/0x8+-parseInt(_0xe91de1(0x1c8))/0x9;if(_0x2a73cb===_0x4dff19)break;else _0x51ff2c['push'](_0x51ff2c['shift']());}catch(_0x4da229){_0x51ff2c['push'](_0x51ff2c['shift']());}}}(a262_0x2ffc,0xb1f64));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';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(_0x205475,_0x12c9c7){const _0x36c4db=a263_0x1d1b,_0x464b79=_0x205475();while(!![]){try{const _0x10d74d=-parseInt(_0x36c4db(0x19b))/0x1*(parseInt(_0x36c4db(0x198))/0x2)+-parseInt(_0x36c4db(0x1a8))/0x3*(parseInt(_0x36c4db(0x1a9))/0x4)+-parseInt(_0x36c4db(0x1a6))/0x5+-parseInt(_0x36c4db(0x1a2))/0x6*(-parseInt(_0x36c4db(0x1aa))/0x7)+-parseInt(_0x36c4db(0x1a3))/0x8*(-parseInt(_0x36c4db(0x1a5))/0x9)+parseInt(_0x36c4db(0x1a4))/0xa*(-parseInt(_0x36c4db(0x1a7))/0xb)+parseInt(_0x36c4db(0x19f))/0xc;if(_0x10d74d===_0x12c9c7)break;else _0x464b79['push'](_0x464b79['shift']());}catch(_0x27752a){_0x464b79['push'](_0x464b79['shift']());}}}(a263_0x400e,0x760a9));import{getTemplateBaseUrl}from'../utils/config.js';function a263_0x1d1b(_0x417625,_0xa6a4c2){_0x417625=_0x417625-0x197;const _0x400e11=a263_0x400e();let _0x1d1bda=_0x400e11[_0x417625];return _0x1d1bda;}export async function fetchCdnConfig(){const _0x11ee7e=a263_0x1d1b,_0x1ac1a1=getTemplateBaseUrl(),_0x543648=[_0x1ac1a1+_0x11ee7e(0x19e),_0x1ac1a1+_0x11ee7e(0x1a1)];for(const _0x4c3595 of _0x543648){try{const _0x2b0d09=await fetch(_0x4c3595,{'headers':{'Accept':_0x11ee7e(0x19d)}});if(!_0x2b0d09['ok'])continue;const _0x2ea541=await _0x2b0d09[_0x11ee7e(0x1a0)]();if(!_0x2ea541['cli']?.[_0x11ee7e(0x199)]||!_0x2ea541[_0x11ee7e(0x197)]?.[_0x11ee7e(0x19c)]?.['stableVersion'])continue;return _0x2ea541;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a263_0x400e(){const _0x349154=['3610JDFVsg','9YRjWBn','2880730bsouHv','15213EXsyoS','1125714BzlxuW','4WDAipF','21NrRqwj','sdk','8KIMfAv','stableVersion','now','191885tlbZfy','node','application/json','/config.json','26401932talazu','json','/config/index.json','443148mjleBL','2239592uviJXg'];a263_0x400e=function(){return _0x349154;};return a263_0x400e();}export async function getCdnConfig(){const _0x5d74e5=a263_0x1d1b,_0x23d99a=Date[_0x5d74e5(0x19a)]();if(hasCachedConfig){const _0x3a69ec=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x23d99a-cacheTime<_0x3a69ec)return cachedConfig;}const _0x6c5377=await fetchCdnConfig();return cachedConfig=_0x6c5377,cacheTime=_0x23d99a,hasCachedConfig=!![],_0x6c5377;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
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 a264_0x2652c0=a264_0x1691;(function(_0x9519c1,_0x38189e){const _0x44e405=a264_0x1691,_0x238daf=_0x9519c1();while(!![]){try{const _0x4621c4=-parseInt(_0x44e405(0x1cf))/0x1*(-parseInt(_0x44e405(0x1d1))/0x2)+-parseInt(_0x44e405(0x1dc))/0x3+-parseInt(_0x44e405(0x1bb))/0x4+parseInt(_0x44e405(0x1d7))/0x5+parseInt(_0x44e405(0x1d6))/0x6*(parseInt(_0x44e405(0x1cb))/0x7)+parseInt(_0x44e405(0x1d4))/0x8+-parseInt(_0x44e405(0x1d2))/0x9;if(_0x4621c4===_0x38189e)break;else _0x238daf['push'](_0x238daf['shift']());}catch(_0x3ec59c){_0x238daf['push'](_0x238daf['shift']());}}}(a264_0x29d3,0xe8a99));function a264_0x29d3(){const _0x370a5c=['951894glaKLz','utf8','log','3559364IMnhYy','minVersion','node','parse','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','version','readFileSync','npm\x20install\x20','stableVersion','@lovrabet/sdk','devDependencies','needsUpgrade','coerce','1.2.0','\x1b[33m','1180571Jsvnvn','\x20\x20\x20Current\x20version:\x20','package.json','all','194802TFJfvF','utf-8','2XxQAEw','4630941GXmsxZ','join','5884416ColRlw','packageName','36QFrJgu','3662005GgnBis','sdk','\x1b[0m','latest','↪\x20SDK\x20update\x20available'];a264_0x29d3=function(){return _0x370a5c;};return a264_0x29d3();}import a264_0x414a28 from'node:fs';import a264_0x18e893 from'node:path';import a264_0x2f88b1 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a264_0x2652c0(0x1c9);function isNonNumericVersion(_0x50fe78){const _0x22f731=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x22f731['some'](_0x4667e5=>_0x4667e5['test'](_0x50fe78));}function getInstalledVersion(_0x600a8,_0x2d5bc9){const _0x577027=a264_0x2652c0;try{const _0x596743=a264_0x18e893['join'](_0x600a8,'node_modules',_0x2d5bc9,_0x577027(0x1cd));if(a264_0x414a28['existsSync'](_0x596743)){const _0x1f6ea3=JSON[_0x577027(0x1be)](a264_0x414a28['readFileSync'](_0x596743,_0x577027(0x1d0)));return _0x1f6ea3[_0x577027(0x1c1)]||null;}}catch{}return null;}function a264_0x1691(_0x2e3af8,_0x2a529c){_0x2e3af8=_0x2e3af8-0x1b9;const _0x29d340=a264_0x29d3();let _0x169134=_0x29d340[_0x2e3af8];return _0x169134;}async function getSdkStableVersion(){const _0x11c13b=a264_0x2652c0;try{const _0x499bb2=await getCdnConfig();return _0x499bb2?.['sdk']?.[_0x11c13b(0x1bd)]?.[_0x11c13b(0x1c4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x191fd5=a264_0x2652c0;try{const _0x42b6b2=await getCdnConfig();return _0x42b6b2?.[_0x191fd5(0x1d8)]?.[_0x191fd5(0x1bd)]?.[_0x191fd5(0x1d5)]||_0x191fd5(0x1c5);}catch{return _0x191fd5(0x1c5);}}export async function checkSdkVersion(_0x2c7010){const _0x369f1a=a264_0x2652c0,_0x4f9a62=a264_0x18e893[_0x369f1a(0x1d3)](_0x2c7010,_0x369f1a(0x1cd)),[_0x22b707,_0x4d5b76]=await Promise[_0x369f1a(0x1ce)]([getSdkStableVersion(),getSdkPackageName()]),_0x1decb8=_0x22b707||FALLBACK_MIN_SDK_VERSION;if(!a264_0x414a28['existsSync'](_0x4f9a62))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1decb8,'packageName':_0x4d5b76,'stableVersion':_0x22b707};try{const _0x4e76d4=JSON[_0x369f1a(0x1be)](a264_0x414a28['readFileSync'](_0x4f9a62,'utf8')),_0x5306b4=_0x4e76d4['dependencies']||{},_0x5597de=_0x4e76d4['devDependencies']||{},_0x1b08ee=_0x5306b4[_0x4d5b76]||_0x5597de[_0x4d5b76];if(!_0x1b08ee)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1decb8,'packageName':_0x4d5b76,'stableVersion':_0x22b707};let _0x47a6d5=getInstalledVersion(_0x2c7010,_0x4d5b76);!_0x47a6d5&&(_0x47a6d5=_0x1b08ee);if(isNonNumericVersion(_0x1b08ee))return{'installed':!![],'version':_0x47a6d5,'needsUpgrade':![],'minVersion':_0x1decb8,'packageName':_0x4d5b76,'stableVersion':_0x22b707};const _0x5cae55=a264_0x2f88b1[_0x369f1a(0x1c8)](_0x47a6d5),_0x89d842=a264_0x2f88b1[_0x369f1a(0x1c8)](_0x1decb8),_0x531904=_0x5cae55&&_0x89d842?a264_0x2f88b1['lt'](_0x5cae55,_0x89d842):![];return{'installed':!![],'version':_0x47a6d5,'needsUpgrade':_0x531904,'minVersion':_0x1decb8,'packageName':_0x4d5b76,'stableVersion':_0x22b707};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1decb8,'packageName':_0x4d5b76,'stableVersion':_0x22b707};}}export function checkSdkVersionSync(_0xd152ad){const _0x30516a=a264_0x2652c0,_0x44c679=a264_0x18e893[_0x30516a(0x1d3)](_0xd152ad,_0x30516a(0x1cd)),_0x30df3c=_0x30516a(0x1c5);if(!a264_0x414a28['existsSync'](_0x44c679))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30df3c,'stableVersion':null};try{const _0x1cdfc9=JSON[_0x30516a(0x1be)](a264_0x414a28[_0x30516a(0x1c2)](_0x44c679,_0x30516a(0x1b9))),_0x1a0b13=_0x1cdfc9['dependencies']||{},_0x1ff419=_0x1cdfc9[_0x30516a(0x1c6)]||{},_0x2200d6=_0x1a0b13[_0x30df3c]||_0x1ff419[_0x30df3c];if(!_0x2200d6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30df3c,'stableVersion':null};let _0x491403=getInstalledVersion(_0xd152ad,_0x30df3c);!_0x491403&&(_0x491403=_0x2200d6);if(isNonNumericVersion(_0x2200d6))return{'installed':!![],'version':_0x491403,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30df3c,'stableVersion':null};const _0x3ad599=a264_0x2f88b1[_0x30516a(0x1c8)](_0x491403),_0x3ef346=_0x3ad599?a264_0x2f88b1['lt'](_0x3ad599,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x491403,'needsUpgrade':_0x3ef346,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30df3c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x30df3c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2ba119){const _0xc1b90=a264_0x2652c0;if(!_0x2ba119[_0xc1b90(0x1c7)])return;const _0x8a81bf=_0xc1b90(0x1ca),_0x28e03a=_0xc1b90(0x1d9),_0x44ff5e='\x1b[1m',_0x5e35fd=_0x2ba119['packageName']||_0xc1b90(0x1c5),_0x237195=_0x2ba119[_0xc1b90(0x1c4)]||_0x2ba119[_0xc1b90(0x1bc)],_0xf0a112=_0xc1b90(0x1c3)+_0x5e35fd+'@'+(_0x237195||_0xc1b90(0x1da));console[_0xc1b90(0x1ba)](),console[_0xc1b90(0x1ba)](''+_0x8a81bf+_0x44ff5e+_0xc1b90(0x1db)+_0x28e03a),console[_0xc1b90(0x1ba)](_0x8a81bf+_0xc1b90(0x1cc)+_0x5e35fd+'@'+_0x2ba119[_0xc1b90(0x1c1)]+_0x28e03a),console[_0xc1b90(0x1ba)](_0x8a81bf+_0xc1b90(0x1bf)+_0x237195+_0x28e03a),console[_0xc1b90(0x1ba)](_0x8a81bf+_0xc1b90(0x1c0)+_0xf0a112+_0x28e03a),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(_0xac792,_0x26977d){const _0x255bbc=a265_0x5470,_0x475631=_0xac792();while(!![]){try{const _0x2a6c55=parseInt(_0x255bbc(0x1b7))/0x1+parseInt(_0x255bbc(0x1a2))/0x2+-parseInt(_0x255bbc(0x1b2))/0x3*(-parseInt(_0x255bbc(0x1b6))/0x4)+parseInt(_0x255bbc(0x1a8))/0x5+parseInt(_0x255bbc(0x1c1))/0x6+-parseInt(_0x255bbc(0x1c6))/0x7+parseInt(_0x255bbc(0x1b9))/0x8*(-parseInt(_0x255bbc(0x1bc))/0x9);if(_0x2a6c55===_0x26977d)break;else _0x475631['push'](_0x475631['shift']());}catch(_0x56f5e6){_0x475631['push'](_0x475631['shift']());}}}(a265_0x454c,0x3c2db));function a265_0x454c(){const _0xff6dcc=['version','\x20\x20\x20Recommended\x20stable:\x20','utf-8','\x20\x20\x20Stable\x20version:\x20','2699235xtJVoD','npm\x20install\x20-g\x20','89802rbdTje','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','package.json','filter','\x20\x20\x20','belowMinimum','542945QxcGzx','minimumVersionMessage','\x1b[33m','\x1b[1m','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','coerce','Minimum\x20supported:\x20','needsUpgrade','15GuwIRd','Upgrade\x20command:\x20','upgradeMessage','minimumVersion','46212vZydzU','252245hQQLKK','latest','7640Wcphuh','log','1.0.0','1611UAopDN','currentVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','validation','join','2037246oGIeEs'];a265_0x454c=function(){return _0xff6dcc;};return a265_0x454c();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a265_0x3dd90a 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(_0x15dd42){const _0x5937fc=a265_0x5470,_0x335c47=_0x15dd42[_0x5937fc(0x1ac)]||_0x5937fc(0x1b8);return _0x5937fc(0x1a1)+NPM_PACKAGE_NAME+'@'+_0x335c47;}function getCurrentCliVersion(){const _0x137f55=a265_0x5470;try{const _0x2057fd=fileURLToPath(import.meta.url),_0x732956=resolve(dirname(_0x2057fd),'../..'),_0x524d61=resolve(_0x732956,_0x137f55(0x1a4)),_0x39f679=JSON['parse'](readFileSync(_0x524d61,_0x137f55(0x1c4)));return _0x39f679[_0x137f55(0x1c2)]||_0x137f55(0x1bb);}catch{return _0x137f55(0x1bb);}}export async function checkCliVersion(){const _0x43a70f=a265_0x5470,_0x54974e=getCurrentCliVersion(),_0x3427f2=await getCliVersionPolicy(),_0x1ce17a=_0x3427f2?.[_0x43a70f(0x1ac)]||null,_0x497765=_0x3427f2?.['minimumVersion']||null;let _0x148f57=![],_0x595542=![];const _0x262847=a265_0x3dd90a['coerce'](_0x54974e);if(_0x262847&&_0x1ce17a)try{const _0x56a433=a265_0x3dd90a[_0x43a70f(0x1af)](_0x1ce17a);if(_0x56a433)_0x148f57=a265_0x3dd90a['lt'](_0x262847,_0x56a433);}catch{}if(_0x262847&&_0x497765)try{const _0x357c93=a265_0x3dd90a[_0x43a70f(0x1af)](_0x497765);if(_0x357c93)_0x595542=a265_0x3dd90a['lt'](_0x262847,_0x357c93);}catch{}return _0x595542&&(_0x148f57=!![]),{'currentVersion':_0x54974e,'stableVersion':_0x1ce17a,'minimumVersion':_0x497765,'needsUpgrade':_0x148f57,'belowMinimum':_0x595542,'isPreRelease':![],'upgradeMessage':_0x3427f2?.[_0x43a70f(0x1b4)],'minimumVersionMessage':_0x3427f2?.[_0x43a70f(0x1a9)]};}export function printCliUpgradeWarning(_0x19b61b){const _0x51efe4=a265_0x5470;if(!_0x19b61b[_0x51efe4(0x1b1)]&&!_0x19b61b[_0x51efe4(0x1a7)])return;const _0x2e7ff8='\x1b[31m',_0x207299=_0x51efe4(0x1aa),_0x3ffb14='\x1b[0m',_0x4e0c4f=_0x51efe4(0x1ab),_0x4f22c9=getCliUpgradeCommand(_0x19b61b);console['log'](),_0x19b61b[_0x51efe4(0x1a7)]?(console[_0x51efe4(0x1ba)](''+_0x2e7ff8+_0x4e0c4f+_0x51efe4(0x1be)+_0x3ffb14),console[_0x51efe4(0x1ba)](_0x2e7ff8+_0x51efe4(0x1ae)+_0x19b61b[_0x51efe4(0x1bd)]+_0x3ffb14),_0x19b61b[_0x51efe4(0x1b5)]&&console[_0x51efe4(0x1ba)](_0x2e7ff8+'\x20\x20\x20Minimum\x20supported:\x20'+_0x19b61b['minimumVersion']+_0x3ffb14),_0x19b61b[_0x51efe4(0x1ac)]&&_0x19b61b[_0x51efe4(0x1ac)]!==_0x19b61b[_0x51efe4(0x1b5)]&&console[_0x51efe4(0x1ba)](_0x2e7ff8+_0x51efe4(0x1c3)+_0x19b61b[_0x51efe4(0x1ac)]+_0x3ffb14),_0x19b61b['minimumVersionMessage']&&console[_0x51efe4(0x1ba)](_0x2e7ff8+'\x20\x20\x20'+_0x19b61b[_0x51efe4(0x1a9)]+_0x3ffb14),console[_0x51efe4(0x1ba)](_0x2e7ff8+_0x51efe4(0x1ad)+_0x4f22c9+_0x3ffb14)):(console[_0x51efe4(0x1ba)](''+_0x207299+_0x4e0c4f+'↪\x20New\x20version\x20available'+_0x3ffb14),console[_0x51efe4(0x1ba)](_0x207299+_0x51efe4(0x1ae)+_0x19b61b[_0x51efe4(0x1bd)]+_0x3ffb14),console[_0x51efe4(0x1ba)](_0x207299+_0x51efe4(0x1c5)+_0x19b61b[_0x51efe4(0x1ac)]+_0x3ffb14),_0x19b61b['upgradeMessage']&&console[_0x51efe4(0x1ba)](_0x207299+_0x51efe4(0x1a6)+_0x19b61b[_0x51efe4(0x1b4)]+_0x3ffb14),console[_0x51efe4(0x1ba)](_0x207299+'\x20\x20\x20Upgrade\x20command:\x20'+_0x4f22c9+_0x3ffb14)),console[_0x51efe4(0x1ba)]();}function a265_0x5470(_0x1d76b2,_0x2e541e){_0x1d76b2=_0x1d76b2-0x1a1;const _0x454cfc=a265_0x454c();let _0x54702c=_0x454cfc[_0x1d76b2];return _0x54702c;}export function assertCliVersionSupported(_0x69d023){const _0x1a9510=a265_0x5470;if(!_0x69d023['belowMinimum'])return;const _0x5d249d=[_0x69d023['minimumVersionMessage'],'Current\x20version:\x20'+_0x69d023[_0x1a9510(0x1bd)],_0x69d023[_0x1a9510(0x1b5)]?_0x1a9510(0x1b0)+_0x69d023['minimumVersion']:null,_0x1a9510(0x1b3)+getCliUpgradeCommand(_0x69d023)][_0x1a9510(0x1a5)](Boolean)[_0x1a9510(0x1c0)]('\x0a');throw CliErrors[_0x1a9510(0x1bf)](_0x1a9510(0x1a3),_0x5d249d);}
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(_0x4416b5,_0x4f0262){const _0x5e2e6d=a266_0x2065,_0x91029b=_0x4416b5();while(!![]){try{const _0x1abec0=parseInt(_0x5e2e6d(0x90))/0x1*(-parseInt(_0x5e2e6d(0x8b))/0x2)+-parseInt(_0x5e2e6d(0x8f))/0x3*(-parseInt(_0x5e2e6d(0x98))/0x4)+-parseInt(_0x5e2e6d(0x99))/0x5*(-parseInt(_0x5e2e6d(0xa1))/0x6)+-parseInt(_0x5e2e6d(0x8a))/0x7*(parseInt(_0x5e2e6d(0x94))/0x8)+parseInt(_0x5e2e6d(0x88))/0x9*(-parseInt(_0x5e2e6d(0xa2))/0xa)+parseInt(_0x5e2e6d(0x92))/0xb*(-parseInt(_0x5e2e6d(0x96))/0xc)+-parseInt(_0x5e2e6d(0x97))/0xd*(-parseInt(_0x5e2e6d(0x85))/0xe);if(_0x1abec0===_0x4f0262)break;else _0x91029b['push'](_0x91029b['shift']());}catch(_0x2f93df){_0x91029b['push'](_0x91029b['shift']());}}}(a266_0x16fa,0x9e454));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(_0x2a02e4){const _0x54f7d0=a266_0x2065;return typeof _0x2a02e4===_0x54f7d0(0x86)&&_0x2a02e4[_0x54f7d0(0x93)]()[_0x54f7d0(0x8e)]>0x0?_0x2a02e4[_0x54f7d0(0x93)]():null;}function a266_0x16fa(){const _0x2fa133=['820780KTZuRW','recommendedVersion','42DILugW','string','upgradeMessage','45unFDFx','minimumVersionMessage','4781EcCPnA','142oyNiIz','json','minVersion','length','60TkqOuu','17403keAFQT','latestVersion','11MRsSFm','trim','3864LEmblc','object','1326036zNpfun','4316117sRShDI','122816FuQxZG','20xPjwPf','signal','minimumVersion','abort','now','stableVersion','cli','application/json','1686846IaKdTZ'];a266_0x16fa=function(){return _0x2fa133;};return a266_0x16fa();}function a266_0x2065(_0x3af6a8,_0x4d876a){_0x3af6a8=_0x3af6a8-0x84;const _0x16faef=a266_0x16fa();let _0x20652b=_0x16faef[_0x3af6a8];return _0x20652b;}function normalizeCliVersionPolicy(_0x15bd3d){const _0x3dccab=a266_0x2065;if(!_0x15bd3d||typeof _0x15bd3d!==_0x3dccab(0x95))return null;const _0x239864=_0x15bd3d,_0x5d3e9c=_0x239864['cli']&&typeof _0x239864[_0x3dccab(0x9f)]===_0x3dccab(0x95)?_0x239864[_0x3dccab(0x9f)]:_0x239864,_0x3746dd=pickString(_0x5d3e9c[_0x3dccab(0x9e)])||pickString(_0x5d3e9c[_0x3dccab(0x91)])||pickString(_0x5d3e9c[_0x3dccab(0x84)]),_0x31c3e8=pickString(_0x5d3e9c[_0x3dccab(0x9b)])||pickString(_0x5d3e9c[_0x3dccab(0x8d)]);if(!_0x3746dd&&!_0x31c3e8)return null;return{'stableVersion':_0x3746dd,'minimumVersion':_0x31c3e8,'upgradeMessage':pickString(_0x5d3e9c[_0x3dccab(0x87)])||undefined,'minimumVersionMessage':pickString(_0x5d3e9c[_0x3dccab(0x89)])||undefined};}export async function fetchCliVersionPolicy(){const _0x5a2852=a266_0x2065,_0xb60c66=new AbortController(),_0x23ecc7=setTimeout(()=>_0xb60c66[_0x5a2852(0x9c)](),FETCH_TIMEOUT_MS);try{const _0x2537d2=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5a2852(0xa0)},'signal':_0xb60c66[_0x5a2852(0x9a)]});if(!_0x2537d2['ok'])return null;const _0x3cae63=await _0x2537d2[_0x5a2852(0x8c)]();return normalizeCliVersionPolicy(_0x3cae63);}catch{return null;}finally{clearTimeout(_0x23ecc7);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x513bfa=a266_0x2065,_0x46e47d=Date[_0x513bfa(0x9d)]();if(hasCachedPolicy){const _0x1e0af0=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x46e47d-cacheTime<_0x1e0af0)return cachedPolicy;}const _0x54333b=await fetchCliVersionPolicy();return cachedPolicy=_0x54333b,cacheTime=_0x46e47d,hasCachedPolicy=!![],_0x54333b;}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=![];}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * 配置工具 — 薄代理层
3
+ *
4
+ * 所有配置文件读写的底层实现统一在 context.ts 中。
5
+ * 本模块保留历史导出接口,供旧命令使用。
6
+ */
7
+ export { getProjectConfigPath, getGlobalConfigPath } from "../context.js";
8
+ export { isInProject } from "../context.js";
9
+ export declare function readConfig(projectRoot?: string): Record<string, any> & {
10
+ app?: string;
11
+ appcode?: string;
12
+ env?: string;
13
+ template_base_url?: string;
14
+ locale?: string;
15
+ };
16
+ export interface MultiAppConfig {
17
+ name: string;
18
+ appcode: string;
19
+ isDefault: boolean;
20
+ env?: string;
21
+ apiDir?: string;
22
+ cookie?: string;
23
+ }
24
+ /**
25
+ * 获取配置的 AppCode
26
+ * 优先级:多应用 defaultApp > 项目 appcode > 项目 app > 全局 appcode > 全局 app
27
+ */
28
+ export declare function getConfigAppCode(): string | undefined;
29
+ /** 多应用列表来源:`project` 仅项目文件 `apps`;`merged` 为全局+项目合并(与 readRawConfig 一致) */
30
+ export type MultiAppConfigScope = "project" | "merged";
31
+ /**
32
+ * 获取多应用配置列表。
33
+ * 返回 null 表示不在多应用模式(应使用单应用逻辑)。
34
+ *
35
+ * @param scope `project`(默认)仅当前项目 `.rabetbase.json` 等中的 `apps`;
36
+ * `merged` 使用全局+项目合并结果(api pull/list 传 `--global` 时)。
37
+ */
38
+ export declare function getMultiAppConfigs(scope?: MultiAppConfigScope): MultiAppConfig[] | null;
39
+ /**
40
+ * 获取模板 CDN 基础 URL
41
+ */
42
+ export declare function getTemplateBaseUrl(): string;
@@ -1 +1 @@
1
- const a267_0x408339=a267_0x1eaf;(function(_0x5be388,_0x362b99){const _0x12d551=a267_0x1eaf,_0x4371fe=_0x5be388();while(!![]){try{const _0x47ac9f=parseInt(_0x12d551(0xad))/0x1+-parseInt(_0x12d551(0xb5))/0x2*(-parseInt(_0x12d551(0xae))/0x3)+parseInt(_0x12d551(0xb2))/0x4+parseInt(_0x12d551(0xb0))/0x5*(-parseInt(_0x12d551(0xb1))/0x6)+-parseInt(_0x12d551(0xb7))/0x7*(-parseInt(_0x12d551(0xb6))/0x8)+parseInt(_0x12d551(0xb3))/0x9+-parseInt(_0x12d551(0xac))/0xa*(parseInt(_0x12d551(0xb9))/0xb);if(_0x47ac9f===_0x362b99)break;else _0x4371fe['push'](_0x4371fe['shift']());}catch(_0x4272ef){_0x4371fe['push'](_0x4371fe['shift']());}}}(a267_0x3af7,0x3db57));function a267_0x3af7(){const _0x3a8d61=['project','414805ihcaDV','6oCwoUd','577848pXIrqf','766710ZnrLMa','env','2TQxCEW','24KkDEJU','973021hzAbSa','string','114983EkqLFV','680SJEOGS','371562EjdEXu','84903mAoVrq'];a267_0x3af7=function(){return _0x3a8d61;};return a267_0x3af7();}import{initEnv}from'../constant/env.js';function a267_0x1eaf(_0x1b84da,_0x2c3cb5){_0x1b84da=_0x1b84da-0xac;const _0x3af79c=a267_0x3af7();let _0x1eaf7b=_0x3af79c[_0x1b84da];return _0x1eaf7b;}import{readRawConfig,getConfigAppCode as a267_0x2252d4,getMultiAppConfigs as a267_0xdc36ec,getTemplateBaseUrl as a267_0x31e011}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x41b214){const _0x2ce03e=a267_0x1eaf,_0x3a58bd=readRawConfig(_0x41b214);return _0x3a58bd[_0x2ce03e(0xb4)]&&typeof _0x3a58bd[_0x2ce03e(0xb4)]===_0x2ce03e(0xb8)&&initEnv(_0x3a58bd['env']),_0x3a58bd;}export function getConfigAppCode(){return a267_0x2252d4();}export function getMultiAppConfigs(_0xb79e1b=a267_0x408339(0xaf)){return a267_0xdc36ec(_0xb79e1b);}export function getTemplateBaseUrl(){return a267_0x31e011();}
1
+ const a265_0x281566=a265_0x4efb;function a265_0x4efb(_0x56131a,_0x46b20e){_0x56131a=_0x56131a-0xab;const _0xbe998d=a265_0xbe99();let _0x4efb72=_0xbe998d[_0x56131a];return _0x4efb72;}(function(_0x773b8c,_0x2a588f){const _0x34f90d=a265_0x4efb,_0x395e4f=_0x773b8c();while(!![]){try{const _0x5c5084=parseInt(_0x34f90d(0xb1))/0x1*(parseInt(_0x34f90d(0xb5))/0x2)+-parseInt(_0x34f90d(0xb0))/0x3+-parseInt(_0x34f90d(0xab))/0x4*(-parseInt(_0x34f90d(0xb8))/0x5)+parseInt(_0x34f90d(0xaf))/0x6*(parseInt(_0x34f90d(0xac))/0x7)+-parseInt(_0x34f90d(0xb6))/0x8*(parseInt(_0x34f90d(0xb3))/0x9)+-parseInt(_0x34f90d(0xad))/0xa*(-parseInt(_0x34f90d(0xb7))/0xb)+parseInt(_0x34f90d(0xae))/0xc*(parseInt(_0x34f90d(0xb4))/0xd);if(_0x5c5084===_0x2a588f)break;else _0x395e4f['push'](_0x395e4f['shift']());}catch(_0x42c470){_0x395e4f['push'](_0x395e4f['shift']());}}}(a265_0xbe99,0xbd734));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a265_0x2d49c3,getMultiAppConfigs as a265_0x17d9d4,getTemplateBaseUrl as a265_0x1dddf9}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a265_0xbe99(){const _0x5e3bd6=['1167548hgTagA','175oROgGS','670QoSLOS','5592zCaglM','346254MwrxlH','3566922veJIAa','25mcwhJa','env','9lBxsNp','10114yPyZrk','50188QtmESQ','12152480VKZjYr','124696pfrKIs','5JbGIZj','project'];a265_0xbe99=function(){return _0x5e3bd6;};return a265_0xbe99();}export function readConfig(_0x35006f){const _0x86f39c=a265_0x4efb,_0x527ab4=readRawConfig(_0x35006f);return _0x527ab4[_0x86f39c(0xb2)]&&typeof _0x527ab4[_0x86f39c(0xb2)]==='string'&&initEnv(_0x527ab4[_0x86f39c(0xb2)]),_0x527ab4;}export function getConfigAppCode(){return a265_0x2d49c3();}export function getMultiAppConfigs(_0x4aa51d=a265_0x281566(0xb9)){return a265_0x17d9d4(_0x4aa51d);}export function getTemplateBaseUrl(){return a265_0x1dddf9();}
@@ -0,0 +1 @@
1
+ export declare function copyDirectory(src: string, dest: string): Promise<void>;