@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
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a214_0x51cb7=a214_0x17d5;(function(_0x1751a0,_0x5cbbee){const _0x3c8aae=a214_0x17d5,_0x328b40=_0x1751a0();while(!![]){try{const _0xf8a8c9=parseInt(_0x3c8aae(0x1ce))/0x1+-parseInt(_0x3c8aae(0x1d7))/0x2*(parseInt(_0x3c8aae(0x1d5))/0x3)+-parseInt(_0x3c8aae(0x1bb))/0x4+-parseInt(_0x3c8aae(0x1d8))/0x5+parseInt(_0x3c8aae(0x1d4))/0x6*(-parseInt(_0x3c8aae(0x1c2))/0x7)+parseInt(_0x3c8aae(0x1c3))/0x8+-parseInt(_0x3c8aae(0x1cc))/0x9*(-parseInt(_0x3c8aae(0x1dd))/0xa);if(_0xf8a8c9===_0x5cbbee)break;else _0x328b40['push'](_0x328b40['shift']());}catch(_0x57c4a1){_0x328b40['push'](_0x328b40['shift']());}}}(a214_0x113d,0xdfce3));import{resolve}from'node:path';function a214_0x113d(){const _0x19d4b0=['project','9hOmJro','keys','339689aLaqlV','merged','replace','runtimeDomain','appcode','template_base_url','1499670LFGlKv','54504IWxmnP','find','90JfmGbb','7632520WzfTvD','projectConfig','https://g.lovrabet.com/dist/lovrabet-skill','apps','env','41402560oKmVlf','./utils/is-non-interactive.js','./constant/env.js','defaultApp','map','6584752OLyhDS','apiDomain','./constant/domain.js','app','cookie','string','setLogPath','28ixTbtt','11414352EfubJZ','cwd','slice','object','globalConfig','trim','filter','entries'];a214_0x113d=function(){return _0x19d4b0;};return a214_0x113d();}import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0xde46f9){return process.env[`RABETBASE_${_0xde46f9}`]||process.env[`LOVRABET_${_0xde46f9}`]||undefined;}export async function createContext(_0x18b8b6){const _0x3d39ed=a214_0x17d5,{config:_0x4a48e2,layers:_0x5a8857}=readRawConfigWithLayers(),_0x1d86e9=buildConfig(_0x4a48e2,_0x18b8b6,_0x5a8857),{initEnv:_0x3d9663}=await import(_0x3d39ed(0x1b8));if(_0x1d86e9['env'])_0x3d9663(_0x1d86e9[_0x3d39ed(0x1dc)]);else _0x18b8b6[_0x3d39ed(0x1dc)]&&typeof _0x18b8b6['env']==='string'&&_0x3d9663(_0x18b8b6[_0x3d39ed(0x1dc)]);const {initDomains:_0x139717,getUserDomain:_0x420a57,getApiDomain:_0x4197c2}=await import(_0x3d39ed(0x1bd));_0x139717({'apiDomain':_0x4a48e2[_0x3d39ed(0x1bc)]||undefined,'userDomain':_0x4a48e2['userDomain']||undefined,'runtimeDomain':_0x4a48e2[_0x3d39ed(0x1d1)]||undefined});const _0x190d16={'apiDomain':_0x4197c2(),'userDomain':_0x420a57()},_0x3cd8ad=await buildAuth(_0x1d86e9);logger[_0x3d39ed(0x1c1)](process[_0x3d39ed(0x1c4)]());const _0x13b77b=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3d39ed(0x1c5)](0x2)['join']('\x20'))[_0x3d39ed(0x1c8)]();logger['setRawCommand'](_0x13b77b);const {isNonInteractive:_0x4c5f73}=await import(_0x3d39ed(0x1b7)),_0x1960df=_0x4c5f73(_0x18b8b6);return{'config':_0x1d86e9,'auth':_0x3cd8ad,'logger':logger,'env':_0x190d16,'nonInteractive':_0x1960df};}export function buildConfigFromFlags(_0x12c5da){const {config:_0x577e4,layers:_0x32ff03}=readRawConfigWithLayers();return buildConfig(_0x577e4,_0x12c5da,_0x32ff03);}export function getConfigAppCode(_0x443b4f){const _0x1349e8=a214_0x17d5,_0x3aef45=readRawConfig(_0x443b4f);if(_0x3aef45['apps']&&typeof _0x3aef45[_0x1349e8(0x1db)]==='object'){const _0x5a56f5=_0x3aef45[_0x1349e8(0x1b9)];if(_0x5a56f5&&_0x3aef45['apps'][_0x5a56f5]?.['appcode'])return String(_0x3aef45['apps'][_0x5a56f5][_0x1349e8(0x1d2)])['trim']();const _0x317d8e=Object['values'](_0x3aef45[_0x1349e8(0x1db)])[0x0];if(_0x317d8e?.[_0x1349e8(0x1d2)])return String(_0x317d8e[_0x1349e8(0x1d2)])['trim']();}const _0x3b548d=_0x3aef45[_0x1349e8(0x1d2)]||_0x3aef45[_0x1349e8(0x1be)];if(typeof _0x3b548d!==_0x1349e8(0x1c0)||_0x3b548d[_0x1349e8(0x1c8)]()==='')return undefined;return _0x3b548d[_0x1349e8(0x1c8)]();}export function getMultiAppConfigs(_0x9ff961=a214_0x51cb7(0x1cb),_0x41874d){const _0x2c4157=a214_0x51cb7,_0x2155b6=loadRawConfigLayers(_0x41874d);let _0x3e6f52,_0x4f23eb;if(_0x9ff961===_0x2c4157(0x1cf)){const _0x273677=_0x2155b6[_0x2c4157(0x1c7)][_0x2c4157(0x1db)]&&typeof _0x2155b6['globalConfig']['apps']===_0x2c4157(0x1c6)?_0x2155b6[_0x2c4157(0x1c7)][_0x2c4157(0x1db)]:{},_0x65a68f=_0x2155b6['projectConfig'][_0x2c4157(0x1db)]&&typeof _0x2155b6[_0x2c4157(0x1d9)]['apps']===_0x2c4157(0x1c6)?_0x2155b6[_0x2c4157(0x1d9)]['apps']:{};_0x3e6f52={..._0x273677,..._0x65a68f};const _0x383464=readRawConfig(_0x41874d);_0x4f23eb=_0x383464[_0x2c4157(0x1b9)];}else _0x3e6f52=_0x2155b6[_0x2c4157(0x1d9)][_0x2c4157(0x1db)],_0x4f23eb=_0x2155b6[_0x2c4157(0x1d9)][_0x2c4157(0x1b9)];if(!_0x3e6f52||typeof _0x3e6f52!=='object'||Object[_0x2c4157(0x1cd)](_0x3e6f52)['length']===0x0)return null;return Object[_0x2c4157(0x1ca)](_0x3e6f52)[_0x2c4157(0x1ba)](([_0x543c15,_0x4d88cf])=>({'name':_0x543c15,'appcode':_0x4d88cf?.['appcode']||'','isDefault':_0x543c15===_0x4f23eb,'env':_0x4d88cf?.[_0x2c4157(0x1dc)],'apiDir':_0x4d88cf?.['apiDir'],'cookie':_0x4d88cf?.[_0x2c4157(0x1bf)]||undefined}))[_0x2c4157(0x1c9)](_0x4e839e=>_0x4e839e[_0x2c4157(0x1d2)]);}function a214_0x17d5(_0x38f658,_0x1cf4cf){_0x38f658=_0x38f658-0x1b7;const _0x113da7=a214_0x113d();let _0x17d58e=_0x113da7[_0x38f658];return _0x17d58e;}export function getTemplateBaseUrl(_0x418781){const _0x4fd293=a214_0x51cb7,_0x454450=readRawConfig(_0x418781);if(_0x454450['template_base_url']&&typeof _0x454450['template_base_url']===_0x4fd293(0x1c0))return _0x454450[_0x4fd293(0x1d3)][_0x4fd293(0x1d0)](/\/$/,'');return _0x4fd293(0x1da);}function buildConfig(_0x5396b8,_0x29ff23,_0x482cec){return{...resolveAppConfig({'raw':_0x5396b8,'flags':_0x29ff23,'layers':_0x482cec,'readEnv':env}),'raw':_0x5396b8};}export function resolveApiFilePath(_0x450154,_0x441544){const _0x1e6b7c=a214_0x51cb7,_0x52164a=resolve(process[_0x1e6b7c(0x1c4)](),_0x450154),_0x5641fc=resolve(_0x52164a,'api.ts');if(!_0x441544)return _0x5641fc;const _0x74a493=readRawConfig(),_0x42e8a7=_0x74a493[_0x1e6b7c(0x1db)]&&typeof _0x74a493[_0x1e6b7c(0x1db)]===_0x1e6b7c(0x1c6)?_0x74a493['apps']:{},_0x173e62=Object[_0x1e6b7c(0x1ca)](_0x42e8a7)[_0x1e6b7c(0x1d6)](([,_0xca35a4])=>_0xca35a4?.[_0x1e6b7c(0x1d2)]===_0x441544);if(!_0x173e62)return _0x5641fc;const [_0x2098f7,_0x59c4e9]=_0x173e62,_0x26d785=typeof _0x74a493['defaultApp']===_0x1e6b7c(0x1c0)?_0x74a493[_0x1e6b7c(0x1b9)]:undefined;if(_0x59c4e9?.['apiDir'])return _0x5641fc;if(_0x26d785&&_0x2098f7!==_0x26d785)return resolve(_0x52164a,_0x2098f7+'-api.ts');return _0x5641fc;}
1
+ (function(_0x708a57,_0x20209e){const _0x3521d4=a206_0x1bce,_0x5b7467=_0x708a57();while(!![]){try{const _0x1f10e5=parseInt(_0x3521d4(0x158))/0x1*(parseInt(_0x3521d4(0x142))/0x2)+-parseInt(_0x3521d4(0x156))/0x3*(-parseInt(_0x3521d4(0x146))/0x4)+parseInt(_0x3521d4(0x162))/0x5*(parseInt(_0x3521d4(0x13f))/0x6)+parseInt(_0x3521d4(0x14e))/0x7*(parseInt(_0x3521d4(0x147))/0x8)+parseInt(_0x3521d4(0x14a))/0x9*(-parseInt(_0x3521d4(0x148))/0xa)+-parseInt(_0x3521d4(0x14b))/0xb*(-parseInt(_0x3521d4(0x15d))/0xc)+-parseInt(_0x3521d4(0x16a))/0xd*(parseInt(_0x3521d4(0x13e))/0xe);if(_0x1f10e5===_0x20209e)break;else _0x5b7467['push'](_0x5b7467['shift']());}catch(_0x15a5ef){_0x5b7467['push'](_0x5b7467['shift']());}}}(a206_0x59c4,0xe4cfe));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';function a206_0x59c4(){const _0x2a81f7=['replace','app','1952909RYxFHq','api.ts','globalConfig','https://g.lovrabet.com/dist/lovrabet-skill','setRawCommand','entries','merged','appcode','107523WkLpwE','./constant/domain.js','480934QMqtmy','keys','join','apps','argv','2055084egSEBO','find','projectConfig','defaultApp','apiDir','650685YQALSC','setLogPath','filter','string','userDomain','object','./constant/env.js','raw','71552Jnrryt','apiDomain','6006jtfCrl','6ghXscg','template_base_url','length','4mzePwp','trim','cwd','env','116ydzrfb','40rQRQDb','8846060oYsyyG','runtimeDomain','18qLBGwF','99OJGnEj'];a206_0x59c4=function(){return _0x2a81f7;};return a206_0x59c4();}export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x23cc89){return process.env[`RABETBASE_${_0x23cc89}`]||process.env[`LOVRABET_${_0x23cc89}`]||undefined;}function optionalString(_0x563c8c){const _0x1f11fb=a206_0x1bce;return typeof _0x563c8c===_0x1f11fb(0x165)&&_0x563c8c[_0x1f11fb(0x143)]()?_0x563c8c[_0x1f11fb(0x143)]():undefined;}export async function createContext(_0x150a4b){const _0x49938d=a206_0x1bce,{config:_0x7495cb,layers:_0x1e4157}=readRawConfigWithLayers(),_0x5a35ce=buildConfig(_0x7495cb,_0x150a4b,_0x1e4157);await initGlobalEnvironment(_0x5a35ce);const {getUserDomain:_0x37ce6f,getApiDomain:_0x269efc}=await import(_0x49938d(0x157)),_0x403ea8={'apiDomain':_0x269efc(),'userDomain':_0x37ce6f()},_0x35bb7a=await buildAuth(_0x5a35ce);logger[_0x49938d(0x163)](process[_0x49938d(0x144)]());const _0x174dea=(CLI_BIN_NAME+'\x20'+process[_0x49938d(0x15c)]['slice'](0x2)[_0x49938d(0x15a)]('\x20'))['trim']();logger[_0x49938d(0x152)](_0x174dea);const {isNonInteractive:_0x4457b4}=await import('./utils/is-non-interactive.js'),_0x19f376=_0x4457b4(_0x150a4b);return{'config':_0x5a35ce,'auth':_0x35bb7a,'logger':logger,'env':_0x403ea8,'nonInteractive':_0x19f376};}export function buildConfigFromFlags(_0x2ca677){const {config:_0x543785,layers:_0x3e42e4}=readRawConfigWithLayers();return buildConfig(_0x543785,_0x2ca677,_0x3e42e4);}export async function initGlobalEnvironment(_0x9db753){const _0x93b7dc=a206_0x1bce,{initEnv:_0x47b9b3}=await import(_0x93b7dc(0x168));_0x47b9b3(_0x9db753['env']);const {initDomains:_0x431427}=await import(_0x93b7dc(0x157));_0x431427({'apiDomain':optionalString(_0x9db753[_0x93b7dc(0x169)]?.[_0x93b7dc(0x13d)]),'userDomain':optionalString(_0x9db753[_0x93b7dc(0x169)]?.[_0x93b7dc(0x166)]),'runtimeDomain':optionalString(_0x9db753['raw']?.[_0x93b7dc(0x149)])});}export function getConfigAppCode(_0x2f40f4){const _0x48d1b1=a206_0x1bce,_0x3b4ed7=readRawConfig(_0x2f40f4);if(_0x3b4ed7[_0x48d1b1(0x15b)]&&typeof _0x3b4ed7[_0x48d1b1(0x15b)]===_0x48d1b1(0x167)){const _0x657fb6=_0x3b4ed7['defaultApp'];if(_0x657fb6&&_0x3b4ed7[_0x48d1b1(0x15b)][_0x657fb6]?.['appcode'])return String(_0x3b4ed7[_0x48d1b1(0x15b)][_0x657fb6][_0x48d1b1(0x155)])[_0x48d1b1(0x143)]();const _0x2c5d82=Object['values'](_0x3b4ed7['apps'])[0x0];if(_0x2c5d82?.[_0x48d1b1(0x155)])return String(_0x2c5d82[_0x48d1b1(0x155)])[_0x48d1b1(0x143)]();}const _0x155829=_0x3b4ed7[_0x48d1b1(0x155)]||_0x3b4ed7[_0x48d1b1(0x14d)];if(typeof _0x155829!=='string'||_0x155829[_0x48d1b1(0x143)]()==='')return undefined;return _0x155829[_0x48d1b1(0x143)]();}export function getMultiAppConfigs(_0xe88980='project',_0x2baa05){const _0x2c5488=a206_0x1bce,_0xea4f38=loadRawConfigLayers(_0x2baa05);let _0x342e90,_0x3e8ec1;if(_0xe88980===_0x2c5488(0x154)){const _0x3745a8=_0xea4f38['globalConfig'][_0x2c5488(0x15b)]&&typeof _0xea4f38[_0x2c5488(0x150)][_0x2c5488(0x15b)]===_0x2c5488(0x167)?_0xea4f38[_0x2c5488(0x150)][_0x2c5488(0x15b)]:{},_0x300636=_0xea4f38['projectConfig'][_0x2c5488(0x15b)]&&typeof _0xea4f38[_0x2c5488(0x15f)]['apps']===_0x2c5488(0x167)?_0xea4f38['projectConfig']['apps']:{};_0x342e90={..._0x3745a8,..._0x300636};const _0x1629dd=readRawConfig(_0x2baa05);_0x3e8ec1=_0x1629dd['defaultApp'];}else _0x342e90=_0xea4f38[_0x2c5488(0x15f)][_0x2c5488(0x15b)],_0x3e8ec1=_0xea4f38['projectConfig'][_0x2c5488(0x160)];if(!_0x342e90||typeof _0x342e90!==_0x2c5488(0x167)||Object[_0x2c5488(0x159)](_0x342e90)[_0x2c5488(0x141)]===0x0)return null;return Object[_0x2c5488(0x153)](_0x342e90)['map'](([_0x1007ac,_0x22410a])=>({'name':_0x1007ac,'appcode':_0x22410a?.[_0x2c5488(0x155)]||'','isDefault':_0x1007ac===_0x3e8ec1,'env':_0x22410a?.[_0x2c5488(0x145)],'apiDir':_0x22410a?.[_0x2c5488(0x161)],'cookie':_0x22410a?.['cookie']||undefined}))[_0x2c5488(0x164)](_0x3ec9bb=>_0x3ec9bb[_0x2c5488(0x155)]);}export function getTemplateBaseUrl(_0x224b53){const _0x4f2cc2=a206_0x1bce,_0x56a99b=readRawConfig(_0x224b53);if(_0x56a99b['template_base_url']&&typeof _0x56a99b[_0x4f2cc2(0x140)]===_0x4f2cc2(0x165))return _0x56a99b[_0x4f2cc2(0x140)][_0x4f2cc2(0x14c)](/\/$/,'');return _0x4f2cc2(0x151);}function a206_0x1bce(_0xf204b0,_0x3466d7){_0xf204b0=_0xf204b0-0x13d;const _0x59c4c3=a206_0x59c4();let _0x1bce10=_0x59c4c3[_0xf204b0];return _0x1bce10;}function buildConfig(_0xc2d34a,_0xd4b45a,_0x3d9ac1){return{...resolveAppConfig({'raw':_0xc2d34a,'flags':_0xd4b45a,'layers':_0x3d9ac1,'readEnv':env}),'raw':_0xc2d34a};}export function resolveApiFilePath(_0x101ea4,_0xb42734){const _0x5eb1fa=a206_0x1bce,_0x43f290=resolve(process[_0x5eb1fa(0x144)](),_0x101ea4),_0x3156c5=resolve(_0x43f290,_0x5eb1fa(0x14f));if(!_0xb42734)return _0x3156c5;const _0x5d42b4=readRawConfig(),_0x408984=_0x5d42b4['apps']&&typeof _0x5d42b4[_0x5eb1fa(0x15b)]===_0x5eb1fa(0x167)?_0x5d42b4[_0x5eb1fa(0x15b)]:{},_0x43e96=Object[_0x5eb1fa(0x153)](_0x408984)[_0x5eb1fa(0x15e)](([,_0x347ec1])=>_0x347ec1?.[_0x5eb1fa(0x155)]===_0xb42734);if(!_0x43e96)return _0x3156c5;const [_0x3a08df,_0x22dbdf]=_0x43e96,_0x5f5199=typeof _0x5d42b4[_0x5eb1fa(0x160)]===_0x5eb1fa(0x165)?_0x5d42b4[_0x5eb1fa(0x160)]:undefined;if(_0x22dbdf?.[_0x5eb1fa(0x161)])return _0x3156c5;if(_0x5f5199&&_0x3a08df!==_0x5f5199)return resolve(_0x43f290,_0x3a08df+'-api.ts');return _0x3156c5;}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * 通用数据集别名解析层
3
+ *
4
+ * 从 `rabetbase api pull` 生成的 api.ts 中提取 alias → datasetCode 映射。
5
+ * --alias 参数接受 api.ts 中定义的 alias 名称,解析为对应的 datasetCode。
6
+ *
7
+ * 无 api.ts 时(CI 环境未 pull)返回 undefined,由调用方报错。
8
+ */
9
+ export interface AliasEntry {
10
+ alias: string;
11
+ datasetCode: string;
12
+ tableName: string;
13
+ name: string;
14
+ }
15
+ /**
16
+ * 加载并缓存指定 api 文件的别名映射。
17
+ *
18
+ * @param apiDir api 目录(用于默认路径兜底)
19
+ * @param appCode (已废弃,保留签名兼容)不再用于内部路径解析
20
+ * @param resolvedFilePath 已解析好的 api.ts 绝对/相对路径;
21
+ * 多应用场景由调用方通过 resolveApiFilePath() 传入
22
+ */
23
+ export declare function loadAliasMap(apiDir: string, appCode?: string, resolvedFilePath?: string): AliasEntry[];
24
+ /**
25
+ * 通过 alias 名称解析 datasetCode。
26
+ */
27
+ export declare function resolveAlias(apiDir: string, alias: string, appCode?: string, resolvedFilePath?: string): string | undefined;
28
+ /**
29
+ * 列出所有可用的别名(用于 help、补全、错误提示等场景)
30
+ */
31
+ export declare function listAliases(apiDir: string, appCode?: string, resolvedFilePath?: string): AliasEntry[];
@@ -1 +1 @@
1
- (function(_0x57c682,_0x953aea){const _0x18979a=a215_0xfe55,_0x17cf8a=_0x57c682();while(!![]){try{const _0x1cafd5=parseInt(_0x18979a(0x140))/0x1+-parseInt(_0x18979a(0x143))/0x2+parseInt(_0x18979a(0x142))/0x3*(-parseInt(_0x18979a(0x144))/0x4)+parseInt(_0x18979a(0x14f))/0x5*(parseInt(_0x18979a(0x14e))/0x6)+parseInt(_0x18979a(0x14a))/0x7+parseInt(_0x18979a(0x13e))/0x8+-parseInt(_0x18979a(0x14c))/0x9*(-parseInt(_0x18979a(0x14b))/0xa);if(_0x1cafd5===_0x953aea)break;else _0x17cf8a['push'](_0x17cf8a['shift']());}catch(_0x56d5f0){_0x17cf8a['push'](_0x17cf8a['shift']());}}}(a215_0x1abd,0x5ba58));import{readFileSync,existsSync}from'node:fs';function a215_0xfe55(_0x7bda13,_0xa49d74){_0x7bda13=_0x7bda13-0x13d;const _0x1abd1f=a215_0x1abd();let _0xfe5573=_0x1abd1f[_0x7bda13];return _0xfe5573;}import{resolve}from'node:path';const cache=new Map();function a215_0x1abd(){const _0x5df85c=['578116AKeJIP','172IErgOv','datasetCode','utf-8','api.ts','alias','push','3968937XvMbMB','498720BpEmmI','18JlNHHw','set','6DpLHPX','2347460chwSHr','find','124392lwPokQ','get','104733gFBZaW','exec','41307FpMDYc'];a215_0x1abd=function(){return _0x5df85c;};return a215_0x1abd();}function parseApiFile(_0x507df9){const _0x3b0ba4=a215_0xfe55,_0x3d2826=[],_0x8122e7=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x56f40e;while((_0x56f40e=_0x8122e7[_0x3b0ba4(0x141)](_0x507df9))!==null){_0x3d2826[_0x3b0ba4(0x149)]({'datasetCode':_0x56f40e[0x1],'tableName':_0x56f40e[0x2],'name':_0x56f40e[0x3],'alias':_0x56f40e[0x4]});}return _0x3d2826;}export function loadAliasMap(_0x51f19d,_0x4b43bb,_0x5c8cb7){const _0x33cdf8=a215_0xfe55,_0x46724f=_0x5c8cb7??resolve(process['cwd'](),_0x51f19d,_0x33cdf8(0x147));if(cache['has'](_0x46724f))return cache[_0x33cdf8(0x13f)](_0x46724f);if(!existsSync(_0x46724f))return cache['set'](_0x46724f,[]),[];try{const _0x560cbe=readFileSync(_0x46724f,_0x33cdf8(0x146)),_0xff0b4=parseApiFile(_0x560cbe);return cache[_0x33cdf8(0x14d)](_0x46724f,_0xff0b4),_0xff0b4;}catch{return cache[_0x33cdf8(0x14d)](_0x46724f,[]),[];}}export function resolveAlias(_0x30f5f9,_0x1b8987,_0x2662fd,_0x44f32c){const _0x2fb1ec=a215_0xfe55;if(!_0x1b8987)return undefined;const _0x467adc=loadAliasMap(_0x30f5f9,_0x2662fd,_0x44f32c),_0x44e50a=_0x467adc[_0x2fb1ec(0x13d)](_0x1a0b98=>_0x1a0b98[_0x2fb1ec(0x148)]===_0x1b8987);return _0x44e50a?.[_0x2fb1ec(0x145)];}export function listAliases(_0x13b860,_0x2b0b3f,_0x30e49a){return loadAliasMap(_0x13b860,_0x2b0b3f,_0x30e49a);}
1
+ (function(_0x25d410,_0x9c0eb){const _0xc3821=a207_0x3a12,_0x51612a=_0x25d410();while(!![]){try{const _0x3bbb29=-parseInt(_0xc3821(0xd0))/0x1*(parseInt(_0xc3821(0xd6))/0x2)+parseInt(_0xc3821(0xd4))/0x3*(-parseInt(_0xc3821(0xcc))/0x4)+parseInt(_0xc3821(0xda))/0x5+-parseInt(_0xc3821(0xdb))/0x6+parseInt(_0xc3821(0xd3))/0x7+-parseInt(_0xc3821(0xce))/0x8+parseInt(_0xc3821(0xd1))/0x9;if(_0x3bbb29===_0x9c0eb)break;else _0x51612a['push'](_0x51612a['shift']());}catch(_0x463a37){_0x51612a['push'](_0x51612a['shift']());}}}(a207_0x2500,0x2422e));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x28c0e0){const _0x5b0d99=[],_0x3f7e00=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0xaea28b;while((_0xaea28b=_0x3f7e00['exec'](_0x28c0e0))!==null){_0x5b0d99['push']({'datasetCode':_0xaea28b[0x1],'tableName':_0xaea28b[0x2],'name':_0xaea28b[0x3],'alias':_0xaea28b[0x4]});}return _0x5b0d99;}export function loadAliasMap(_0x3fb164,_0x5f4bb9,_0x2922b8){const _0x46db57=a207_0x3a12,_0x2c2576=_0x2922b8??resolve(process[_0x46db57(0xd5)](),_0x3fb164,_0x46db57(0xcf));if(cache[_0x46db57(0xd7)](_0x2c2576))return cache['get'](_0x2c2576);if(!existsSync(_0x2c2576))return cache['set'](_0x2c2576,[]),[];try{const _0x4ccb3b=readFileSync(_0x2c2576,_0x46db57(0xcd)),_0x1f66f1=parseApiFile(_0x4ccb3b);return cache[_0x46db57(0xd9)](_0x2c2576,_0x1f66f1),_0x1f66f1;}catch{return cache[_0x46db57(0xd9)](_0x2c2576,[]),[];}}export function resolveAlias(_0x552dec,_0x4b0117,_0x159690,_0x20dfa8){const _0x1de4e4=a207_0x3a12;if(!_0x4b0117)return undefined;const _0x322040=loadAliasMap(_0x552dec,_0x159690,_0x20dfa8),_0x2ecabc=_0x322040[_0x1de4e4(0xd2)](_0x4f62e3=>_0x4f62e3[_0x1de4e4(0xd8)]===_0x4b0117);return _0x2ecabc?.['datasetCode'];}function a207_0x3a12(_0x21e64f,_0x56f0de){_0x21e64f=_0x21e64f-0xcc;const _0x250040=a207_0x2500();let _0x3a1277=_0x250040[_0x21e64f];return _0x3a1277;}export function listAliases(_0x1d96f2,_0x5955ab,_0x4eec2e){return loadAliasMap(_0x1d96f2,_0x5955ab,_0x4eec2e);}function a207_0x2500(){const _0x8015b3=['api.ts','1189weerjI','2059218DVtLiG','find','1039255QhHujE','12843xZxNPb','cwd','22jylutS','has','alias','set','1136375WZTdBS','124290fWosty','180dIeWUI','utf-8','1840712OoPjiH'];a207_0x2500=function(){return _0x8015b3;};return a207_0x2500();}