@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
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const apiList: CommandDefinition;
@@ -1 +1 @@
1
- function a15_0x45bc(){const _0x5618b5=['24vvClmd','513cxOwyu','225374LPVTAy','8839690bftAme','11240xtMvmw','name','15933654HZvjMX','api','223304WbVXNx','84socaip','push','production','appcode','appCode','boolean','1254355xgYptV','env','2350KjyTZj','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','20676ZKmHhH','isDefault','rawFlags'];a15_0x45bc=function(){return _0x5618b5;};return a15_0x45bc();}function a15_0x14e6(_0x38869a,_0x4fdd49){_0x38869a=_0x38869a-0x1c4;const _0x45bc07=a15_0x45bc();let _0x14e6a2=_0x45bc07[_0x38869a];return _0x14e6a2;}const a15_0x4d8451=a15_0x14e6;(function(_0xba3d36,_0x27419e){const _0x20f437=a15_0x14e6,_0x1bf2d0=_0xba3d36();while(!![]){try{const _0x249dc4=parseInt(_0x20f437(0x1cb))/0x1+parseInt(_0x20f437(0x1d4))/0x2*(-parseInt(_0x20f437(0x1d2))/0x3)+-parseInt(_0x20f437(0x1d6))/0x4*(-parseInt(_0x20f437(0x1cd))/0x5)+-parseInt(_0x20f437(0x1cf))/0x6*(-parseInt(_0x20f437(0x1c5))/0x7)+-parseInt(_0x20f437(0x1c4))/0x8*(-parseInt(_0x20f437(0x1d3))/0x9)+-parseInt(_0x20f437(0x1d5))/0xa+-parseInt(_0x20f437(0x1d8))/0xb;if(_0x249dc4===_0x27419e)break;else _0x1bf2d0['push'](_0x1bf2d0['shift']());}catch(_0x13ebf8){_0x1bf2d0['push'](_0x1bf2d0['shift']());}}}(a15_0x45bc,0xeda9d));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x4d8451(0x1d9),'command':'list','description':a15_0x4d8451(0x1ce),'risk':'read','requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'global','type':a15_0x4d8451(0x1ca),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x59290e){const _0x30331a=a15_0x4d8451,_0x1bdbbd=_0x59290e[_0x30331a(0x1d1)][_0x30331a(0x1c8)]?String(_0x59290e[_0x30331a(0x1d1)]['appcode']):undefined,_0x37d823=resolveTargetApps(_0x59290e,_0x1bdbbd);if(_0x37d823){const _0x231814=[];for(const _0x16675e of _0x37d823){const _0x744703=_0x16675e['cookie']||_0x59290e['cookie'],_0xa075ae=_0x16675e[_0x30331a(0x1cc)]||_0x30331a(0x1c7);initEnv(_0xa075ae);const {configArray:_0x2f1596}=await fetchModelList(_0x16675e[_0x30331a(0x1c8)],_0x744703);_0x231814[_0x30331a(0x1c6)](..._0x2f1596['map'](_0x158e24=>({..._0x158e24,'_appName':_0x16675e[_0x30331a(0x1d7)],'_appCode':_0x16675e[_0x30331a(0x1c8)],'_env':_0xa075ae,'_isDefault':_0x16675e[_0x30331a(0x1d0)]})));}return{'ok':!![],'data':_0x231814};}const {configArray:_0x52978a}=await fetchModelList(_0x59290e[_0x30331a(0x1c9)],_0x59290e['cookie']);return{'ok':!![],'data':_0x52978a};}};
1
+ const a15_0x1f4f75=a15_0x5632;function a15_0x5632(_0x194d1c,_0x56f30e){_0x194d1c=_0x194d1c-0x141;const _0x14bbc9=a15_0x14bb();let _0x56328e=_0x14bbc9[_0x194d1c];return _0x56328e;}function a15_0x14bb(){const _0x27e9b4=['global','name','12ltEHba','read','cookie','isDefault','133STiTMR','rawFlags','29278ukEJmt','189308HKaklS','12QzFRWe','appcode','2mJupTA','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','1730juquwJ','3700367rKUmDt','1717136sLOjUQ','boolean','1557okQgBe','map','69144Mtxapy','production','1441100otUKYN'];a15_0x14bb=function(){return _0x27e9b4;};return a15_0x14bb();}(function(_0x23692f,_0x5656ca){const _0x357b61=a15_0x5632,_0x348623=_0x23692f();while(!![]){try{const _0x3e9f56=-parseInt(_0x357b61(0x147))/0x1*(parseInt(_0x357b61(0x143))/0x2)+parseInt(_0x357b61(0x154))/0x3*(parseInt(_0x357b61(0x144))/0x4)+-parseInt(_0x357b61(0x151))/0x5+parseInt(_0x357b61(0x14f))/0x6*(-parseInt(_0x357b61(0x141))/0x7)+parseInt(_0x357b61(0x14b))/0x8+parseInt(_0x357b61(0x14d))/0x9*(-parseInt(_0x357b61(0x149))/0xa)+parseInt(_0x357b61(0x14a))/0xb*(parseInt(_0x357b61(0x145))/0xc);if(_0x3e9f56===_0x5656ca)break;else _0x348623['push'](_0x348623['shift']());}catch(_0x1b4012){_0x348623['push'](_0x348623['shift']());}}}(a15_0x14bb,0x2a78c));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':'api','command':'list','description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':a15_0x1f4f75(0x155),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x1f4f75(0x152),'type':a15_0x1f4f75(0x14c),'description':a15_0x1f4f75(0x148),'default':![]}],async 'execute'(_0x48287a){const _0x57e4f0=a15_0x1f4f75,_0x11a476=_0x48287a[_0x57e4f0(0x142)]['appcode']?String(_0x48287a['rawFlags'][_0x57e4f0(0x146)]):undefined,_0x2618af=resolveTargetApps(_0x48287a,_0x11a476);if(_0x2618af){const _0x2c2e7e=[];for(const _0x17bfa6 of _0x2618af){const _0x580bca=_0x17bfa6[_0x57e4f0(0x156)]||_0x48287a[_0x57e4f0(0x156)],_0x2b4d3d=_0x17bfa6['env']||_0x57e4f0(0x150);initEnv(_0x2b4d3d);const {configArray:_0x44e02b}=await fetchModelList(_0x17bfa6[_0x57e4f0(0x146)],_0x580bca);_0x2c2e7e['push'](..._0x44e02b[_0x57e4f0(0x14e)](_0x21afea=>({..._0x21afea,'_appName':_0x17bfa6[_0x57e4f0(0x153)],'_appCode':_0x17bfa6[_0x57e4f0(0x146)],'_env':_0x2b4d3d,'_isDefault':_0x17bfa6[_0x57e4f0(0x157)]})));}return{'ok':!![],'data':_0x2c2e7e};}const {configArray:_0x230d0d}=await fetchModelList(_0x48287a['appCode'],_0x48287a[_0x57e4f0(0x156)]);return{'ok':!![],'data':_0x230d0d};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const apiPull: CommandDefinition;
@@ -1 +1 @@
1
- const a16_0x5efb17=a16_0x7a93;(function(_0x50346c,_0x460536){const _0x26997a=a16_0x7a93,_0x6907a3=_0x50346c();while(!![]){try{const _0xb94ef7=parseInt(_0x26997a(0x1e1))/0x1+-parseInt(_0x26997a(0x1ff))/0x2+parseInt(_0x26997a(0x1f1))/0x3+parseInt(_0x26997a(0x1e9))/0x4+parseInt(_0x26997a(0x1d7))/0x5*(-parseInt(_0x26997a(0x1f8))/0x6)+-parseInt(_0x26997a(0x1fb))/0x7+parseInt(_0x26997a(0x1d0))/0x8;if(_0xb94ef7===_0x460536)break;else _0x6907a3['push'](_0x6907a3['shift']());}catch(_0x23b139){_0x6907a3['push'](_0x6907a3['shift']());}}}(a16_0x3818,0x3f59e));import a16_0x4cacb7 from'ora';import a16_0x48b1ac from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';import{generateApiFile}from'../../api/generate-api-file.js';function a16_0x7a93(_0xa9536a,_0x103235){_0xa9536a=_0xa9536a-0x1ce;const _0x3818b0=a16_0x3818();let _0x7a93d3=_0x3818b0[_0xa9536a];return _0x7a93d3;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a16_0x3818(){const _0x4cef24=['\x20succeeded,\x20','client','Pulling\x20API\x20config\x20for\x20','output','cookie','apiDir','modelCount','101019MjsrVc','Output\x20directory\x20(default:\x20','join','write','Pulling\x20','message','succeed','30zcfiBZ','\x20dataset(s),\x20generated\x20',')...','2600647cPVHIJ','rawFlags','fail','.ts','689790nNPFAP','\x20\x20•\x20','\x20model(s)','7344576SGccdb','str','isDefault','name','string','length','\x20dataset(s)\x20→\x20','198080FAFsSW','appCode','production','-api','api','split','Failed:\x20','includes','Done:\x20','global','202915atnGtc','boolean','start','env','appcode','Pulled\x20','...','slice','77288qOnHzs'];a16_0x3818=function(){return _0x4cef24;};return a16_0x3818();}import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiPull={'service':'api','command':'pull','description':'Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20('+DEFAULT_API_DIR+'/)','risk':a16_0x5efb17(0x1f4),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x5efb17(0x1ed),'type':a16_0x5efb17(0x1d4),'description':a16_0x5efb17(0x1f2)+DEFAULT_API_DIR+'/)'},{'name':a16_0x5efb17(0x1e0),'type':a16_0x5efb17(0x1e2),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x322147){const _0x4a68b4=a16_0x5efb17,_0x1c0b84=_0x322147[_0x4a68b4(0x1fc)]['appcode']?String(_0x322147['rawFlags'][_0x4a68b4(0x1e5)]):undefined,_0x4d9d64=_0x322147[_0x4a68b4(0x1d1)](_0x4a68b4(0x1ed))||undefined,_0x149277=resolveTargetApps(_0x322147,_0x1c0b84);if(_0x149277){let _0x3145ca=0x0,_0x168a3f=0x0;for(const _0x149c6b of _0x149277){const _0x19dbd7=_0x149c6b[_0x4a68b4(0x1ee)]||_0x322147[_0x4a68b4(0x1ee)],_0x1f85a2=_0x149c6b[_0x4a68b4(0x1e4)]||_0x4a68b4(0x1d9);initEnv(_0x1f85a2);const _0xe83e38=_0x149c6b['apiDir']||_0x4d9d64||_0x322147['apiDir']||DEFAULT_API_DIR,_0x31d702=_0x149c6b[_0x4a68b4(0x1d2)]?'':_0x149c6b['name']||_0x149c6b['appcode'],_0x279cd7=a16_0x4cacb7(_0x4a68b4(0x1f5)+_0x149c6b[_0x4a68b4(0x1d3)]+'\x20('+_0x149c6b[_0x4a68b4(0x1e5)]+_0x4a68b4(0x1fa))['start']();try{const {configArray:_0x20c062}=await fetchModelList(_0x149c6b['appcode'],_0x19dbd7),_0x3a317a=await generateApiFile(_0x20c062,_0x31d702,_0x149c6b[_0x4a68b4(0x1e5)],_0x149c6b[_0x4a68b4(0x1d2)],_0x1f85a2,_0xe83e38,_0x149c6b['name']);_0x279cd7[_0x4a68b4(0x1f7)](_0x149c6b['name']+':\x20'+_0x20c062[_0x4a68b4(0x1d5)]+_0x4a68b4(0x1d6)+_0x3a317a['modelCount']+_0x4a68b4(0x1cf)),writeCliSideChannelLine(_0x4a68b4(0x1ce)+_0x3a317a['apiFilePath']),writeCliSideChannelLine(_0x4a68b4(0x1ce)+_0x3a317a['clientFilePath']),_0x3145ca++;}catch(_0x45a7a1){_0x279cd7[_0x4a68b4(0x1fd)](_0x149c6b[_0x4a68b4(0x1d3)]+':\x20'+(_0x45a7a1 instanceof Error?_0x45a7a1['message']:String(_0x45a7a1))),_0x168a3f++;}}writeCliSideChannelLine('');if(_0x168a3f>0x0)writeCliSideChannelLine('!\x20'+_0x168a3f+'\x20app(s)\x20failed');return{'ok':_0x168a3f===0x0,'message':_0x4a68b4(0x1df)+_0x3145ca+_0x4a68b4(0x1ea)+_0x168a3f+'\x20failed'};}const _0x2fa0a2=_0x1c0b84&&_0x1c0b84[_0x4a68b4(0x1de)]('-')?_0x1c0b84[_0x4a68b4(0x1dc)]('-')[_0x4a68b4(0x1e8)](0x1)[_0x4a68b4(0x1f3)]('-'):'',_0x33ac6e=_0x4d9d64||_0x322147[_0x4a68b4(0x1ef)]||DEFAULT_API_DIR,_0x5cdbae=!_0x1c0b84,_0x503f83=a16_0x4cacb7(_0x4a68b4(0x1ec)+_0x322147['appCode']+_0x4a68b4(0x1e7))[_0x4a68b4(0x1e3)]();try{const {configArray:_0x501311}=await fetchModelList(_0x322147[_0x4a68b4(0x1d8)],_0x322147[_0x4a68b4(0x1ee)]),_0x4b0c60=await generateApiFile(_0x501311,_0x2fa0a2,_0x322147['appCode'],_0x5cdbae,getEnv(),_0x33ac6e);_0x503f83['succeed'](_0x4a68b4(0x1e6)+_0x501311['length']+_0x4a68b4(0x1f9)+_0x4b0c60[_0x4a68b4(0x1f0)]+_0x4a68b4(0x1cf));const _0x5c8fc3=_0x2fa0a2?_0x2fa0a2+_0x4a68b4(0x1da):_0x4a68b4(0x1db),_0x5db445=_0x2fa0a2?_0x2fa0a2+'-client':_0x4a68b4(0x1eb);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x48b1ac[_0x4a68b4(0x1f3)](_0x33ac6e,_0x5c8fc3+'.ts')),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x48b1ac['join'](_0x33ac6e,_0x5db445+_0x4a68b4(0x1fe))),{'ok':!![],'data':{'datasetCount':_0x501311['length'],'modelCount':_0x4b0c60[_0x4a68b4(0x1f0)]}};}catch(_0xbe5c40){_0x503f83['fail'](_0x4a68b4(0x1dd)+(_0xbe5c40 instanceof Error?_0xbe5c40[_0x4a68b4(0x1f6)]:String(_0xbe5c40)));throw _0xbe5c40;}}};
1
+ const a16_0x467610=a16_0x1d2f;(function(_0x197aed,_0x496720){const _0x13de54=a16_0x1d2f,_0x47ba10=_0x197aed();while(!![]){try{const _0xcb3f2c=parseInt(_0x13de54(0xbe))/0x1+-parseInt(_0x13de54(0xbd))/0x2+-parseInt(_0x13de54(0xc5))/0x3+parseInt(_0x13de54(0xc3))/0x4*(parseInt(_0x13de54(0xa7))/0x5)+parseInt(_0x13de54(0xba))/0x6*(parseInt(_0x13de54(0xb3))/0x7)+-parseInt(_0x13de54(0xde))/0x8*(-parseInt(_0x13de54(0xca))/0x9)+-parseInt(_0x13de54(0xc2))/0xa;if(_0xcb3f2c===_0x496720)break;else _0x47ba10['push'](_0x47ba10['shift']());}catch(_0x490be5){_0x47ba10['push'](_0x47ba10['shift']());}}}(a16_0x3e6c,0x5eda9));import a16_0x235458 from'ora';import a16_0x3b1c9c from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';function a16_0x3e6c(){const _0x58a8e7=['9vButmS','appCode','modelCount','cookie','apiDir','...','appcode','-api','Done:\x20','Output\x20directory\x20(default:\x20','production','\x20dataset(s),\x20generated\x20','\x20model(s)','rawFlags','-client','\x20dataset(s)\x20→\x20','\x20app(s)\x20failed','clientFilePath','output','name','4903008dxXhxm','2943445cJgijQ','length','split','\x20failed','isDefault','start','Failed:\x20','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','\x20succeeded,\x20','fail',')...','includes','1715gGtttr','api','succeed','Pulling\x20API\x20config\x20for\x20','boolean','\x20\x20•\x20','client','3606iQHUkw','Pulled\x20','pull','999810MqYRPM','318296pdZXFN','str','Pulling\x20','global','6392640lgJdKE','4nFcxxM','join','418248Maaepr','apiFilePath','string','read','.ts'];a16_0x3e6c=function(){return _0x58a8e7;};return a16_0x3e6c();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a16_0x1d2f(_0x2feb4c,_0x371c56){_0x2feb4c=_0x2feb4c-0xa7;const _0x3e6c94=a16_0x3e6c();let _0x1d2ff9=_0x3e6c94[_0x2feb4c];return _0x1d2ff9;}export const apiPull={'service':a16_0x467610(0xb4),'command':a16_0x467610(0xbc),'description':a16_0x467610(0xae)+DEFAULT_API_DIR+'/)','risk':a16_0x467610(0xc8),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x467610(0xdc),'type':a16_0x467610(0xc7),'description':a16_0x467610(0xd3)+DEFAULT_API_DIR+'/)'},{'name':a16_0x467610(0xc1),'type':a16_0x467610(0xb7),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x42c6a7){const _0x2714b9=a16_0x467610,_0x5b921c=_0x42c6a7[_0x2714b9(0xd7)][_0x2714b9(0xd0)]?String(_0x42c6a7[_0x2714b9(0xd7)]['appcode']):undefined,_0x148c44=_0x42c6a7[_0x2714b9(0xbf)]('output')||undefined,_0xb14941=resolveTargetApps(_0x42c6a7,_0x5b921c);if(_0xb14941){let _0x37cbf6=0x0,_0x5c3394=0x0;for(const _0x5b1374 of _0xb14941){const _0xef44ee=_0x5b1374['cookie']||_0x42c6a7[_0x2714b9(0xcd)],_0x4c1dc8=_0x5b1374['env']||_0x2714b9(0xd4);initEnv(_0x4c1dc8);const _0x98f587=_0x5b1374[_0x2714b9(0xce)]||_0x148c44||_0x42c6a7[_0x2714b9(0xce)]||DEFAULT_API_DIR,_0x555827=_0x5b1374[_0x2714b9(0xab)]?'':_0x5b1374['name']||_0x5b1374[_0x2714b9(0xd0)],_0x20d9fc=a16_0x235458(_0x2714b9(0xc0)+_0x5b1374[_0x2714b9(0xdd)]+'\x20('+_0x5b1374[_0x2714b9(0xd0)]+_0x2714b9(0xb1))[_0x2714b9(0xac)]();try{const {configArray:_0x451239}=await fetchModelList(_0x5b1374['appcode'],_0xef44ee),_0x1ef340=await generateApiFile(_0x451239,_0x555827,_0x5b1374[_0x2714b9(0xd0)],_0x5b1374[_0x2714b9(0xab)],_0x4c1dc8,_0x98f587,_0x5b1374[_0x2714b9(0xdd)]);_0x20d9fc[_0x2714b9(0xb5)](_0x5b1374[_0x2714b9(0xdd)]+':\x20'+_0x451239[_0x2714b9(0xa8)]+_0x2714b9(0xd9)+_0x1ef340[_0x2714b9(0xcc)]+'\x20model(s)'),writeCliSideChannelLine(_0x2714b9(0xb8)+_0x1ef340[_0x2714b9(0xc6)]),writeCliSideChannelLine(_0x2714b9(0xb8)+_0x1ef340[_0x2714b9(0xdb)]),_0x37cbf6++;}catch(_0x38cb25){_0x20d9fc['fail'](_0x5b1374[_0x2714b9(0xdd)]+':\x20'+(_0x38cb25 instanceof Error?_0x38cb25['message']:String(_0x38cb25))),_0x5c3394++;}}writeCliSideChannelLine('');if(_0x5c3394>0x0)writeCliSideChannelLine('!\x20'+_0x5c3394+_0x2714b9(0xda));return{'ok':_0x5c3394===0x0,'message':_0x2714b9(0xd2)+_0x37cbf6+_0x2714b9(0xaf)+_0x5c3394+_0x2714b9(0xaa)};}const _0x5ce469=_0x5b921c&&_0x5b921c[_0x2714b9(0xb2)]('-')?_0x5b921c[_0x2714b9(0xa9)]('-')['slice'](0x1)[_0x2714b9(0xc4)]('-'):'',_0x448f8f=_0x148c44||_0x42c6a7['apiDir']||DEFAULT_API_DIR,_0x510d09=!_0x5b921c,_0x985011=a16_0x235458(_0x2714b9(0xb6)+_0x42c6a7['appCode']+_0x2714b9(0xcf))[_0x2714b9(0xac)]();try{const {configArray:_0x3011e9}=await fetchModelList(_0x42c6a7[_0x2714b9(0xcb)],_0x42c6a7['cookie']),_0x567db6=await generateApiFile(_0x3011e9,_0x5ce469,_0x42c6a7[_0x2714b9(0xcb)],_0x510d09,getEnv(),_0x448f8f);_0x985011[_0x2714b9(0xb5)](_0x2714b9(0xbb)+_0x3011e9[_0x2714b9(0xa8)]+_0x2714b9(0xd5)+_0x567db6[_0x2714b9(0xcc)]+_0x2714b9(0xd6));const _0x4ce34a=_0x5ce469?_0x5ce469+_0x2714b9(0xd1):_0x2714b9(0xb4),_0x5b464d=_0x5ce469?_0x5ce469+_0x2714b9(0xd8):_0x2714b9(0xb9);return writeCliSideChannelLine(_0x2714b9(0xb8)+a16_0x3b1c9c[_0x2714b9(0xc4)](_0x448f8f,_0x4ce34a+_0x2714b9(0xc9))),writeCliSideChannelLine('\x20\x20•\x20'+a16_0x3b1c9c[_0x2714b9(0xc4)](_0x448f8f,_0x5b464d+_0x2714b9(0xc9))),{'ok':!![],'data':{'datasetCount':_0x3011e9[_0x2714b9(0xa8)],'modelCount':_0x567db6[_0x2714b9(0xcc)]}};}catch(_0x5855f8){_0x985011[_0x2714b9(0xb0)](_0x2714b9(0xad)+(_0x5855f8 instanceof Error?_0x5855f8['message']:String(_0x5855f8)));throw _0x5855f8;}}};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * api 子命令共享逻辑
3
+ *
4
+ * resolveTargetApps:从 RuntimeContext 解析多应用配置,
5
+ * api list / api pull 共用,避免重复实现过滤 + 校验。
6
+ */
7
+ import type { RuntimeContext } from "../../framework/types.js";
8
+ import { type MultiAppConfig } from "../../utils/config.js";
9
+ /**
10
+ * 解析执行目标应用列表。
11
+ *
12
+ * - 有显式 --appcode → 返回 null(调用方走单应用逻辑)
13
+ * - 多应用模式 → 过滤 selectedAppName → 返回应用列表
14
+ * - 否则 → 返回 null(走单应用逻辑)
15
+ *
16
+ * 多应用 `apps` 来源:`--global` 为合并(全局+项目);默认仅项目级 `apps`。
17
+ */
18
+ export declare function resolveTargetApps(ctx: RuntimeContext, explicitAppcode: string | undefined): MultiAppConfig[] | null;
@@ -1 +1 @@
1
- (function(_0x35d9d0,_0x5e8c28){const _0x536929=a17_0x53b4,_0x570e60=_0x35d9d0();while(!![]){try{const _0x390966=-parseInt(_0x536929(0xa0))/0x1*(-parseInt(_0x536929(0x9d))/0x2)+parseInt(_0x536929(0x98))/0x3+-parseInt(_0x536929(0x92))/0x4+-parseInt(_0x536929(0x96))/0x5+-parseInt(_0x536929(0xa1))/0x6+-parseInt(_0x536929(0x94))/0x7*(-parseInt(_0x536929(0x99))/0x8)+-parseInt(_0x536929(0x9f))/0x9*(-parseInt(_0x536929(0x9c))/0xa);if(_0x390966===_0x5e8c28)break;else _0x570e60['push'](_0x570e60['shift']());}catch(_0x1e1fff){_0x570e60['push'](_0x570e60['shift']());}}}(a17_0x144d,0x70699));import{getMultiAppConfigs}from'../../utils/config.js';function a17_0x53b4(_0x305135,_0x442aa4){_0x305135=_0x305135-0x91;const _0x144dfc=a17_0x144d();let _0x53b422=_0x144dfc[_0x305135];return _0x53b422;}function a17_0x144d(){const _0xc5718e=['selectedAppName','2466486pgPxRQ','8067gIazhE','2923878psqKYJ','name','2655844QdYWoT','bool','257131MKDzlM','length','2004130IFyGxN','filter','1342056qzPpnU','16TVbxGf','global','project','30OGoDoG','166QqJMNd'];a17_0x144d=function(){return _0xc5718e;};return a17_0x144d();}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x56c057,_0x3fca80){const _0x4bb682=a17_0x53b4;if(_0x3fca80)return null;const _0x434470=_0x56c057[_0x4bb682(0x93)](_0x4bb682(0x9a))?'merged':_0x4bb682(0x9b);let _0x5d24af=getMultiAppConfigs(_0x434470);if(!_0x5d24af||_0x5d24af['length']===0x0)return null;if(_0x56c057[_0x4bb682(0x9e)]){const _0x526a34=_0x5d24af[_0x4bb682(0x97)](_0x49f826=>_0x49f826[_0x4bb682(0x91)]===_0x56c057[_0x4bb682(0x9e)]);if(_0x526a34[_0x4bb682(0x95)]===0x0){const _0x4552b5=_0x5d24af['map'](_0x3281a1=>_0x3281a1[_0x4bb682(0x91)])['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x56c057[_0x4bb682(0x9e)]+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x4552b5);}_0x5d24af=_0x526a34;}return _0x5d24af;}
1
+ (function(_0xd5eb5,_0x213975){const _0x4b7030=a17_0x45c7,_0x194d35=_0xd5eb5();while(!![]){try{const _0x220272=parseInt(_0x4b7030(0x131))/0x1+parseInt(_0x4b7030(0x12a))/0x2*(-parseInt(_0x4b7030(0x11d))/0x3)+-parseInt(_0x4b7030(0x127))/0x4*(parseInt(_0x4b7030(0x12c))/0x5)+parseInt(_0x4b7030(0x129))/0x6+parseInt(_0x4b7030(0x12b))/0x7*(parseInt(_0x4b7030(0x128))/0x8)+parseInt(_0x4b7030(0x121))/0x9*(parseInt(_0x4b7030(0x123))/0xa)+parseInt(_0x4b7030(0x126))/0xb*(-parseInt(_0x4b7030(0x120))/0xc);if(_0x220272===_0x213975)break;else _0x194d35['push'](_0x194d35['shift']());}catch(_0x48a929){_0x194d35['push'](_0x194d35['shift']());}}}(a17_0x3f4a,0xa7670));import{getMultiAppConfigs}from'../../utils/config.js';function a17_0x3f4a(){const _0x256138=['join','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','737124GyvLgE','map','6uwBslz','selectedAppName','validation','2964xmYMbC','36MkFsfg','length','669140rakRNL','name','global','35827pvRhbA','1688536uXQEIX','196496ZqlRVa','840450csWyQt','190480uyBbzu','273zdqxSD','5BLYkqL','App\x20\x22','bool'];a17_0x3f4a=function(){return _0x256138;};return a17_0x3f4a();}function a17_0x45c7(_0x18ae32,_0x1565f9){_0x18ae32=_0x18ae32-0x11c;const _0x3f4a4f=a17_0x3f4a();let _0x45c71a=_0x3f4a4f[_0x18ae32];return _0x45c71a;}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x251585,_0x35c626){const _0xadfd79=a17_0x45c7;if(_0x35c626)return null;const _0x2b4b56=_0x251585[_0xadfd79(0x12e)](_0xadfd79(0x125))?'merged':'project';let _0x3bb748=getMultiAppConfigs(_0x2b4b56);if(!_0x3bb748||_0x3bb748['length']===0x0)return null;if(_0x251585[_0xadfd79(0x11e)]){const _0x18a758=_0x3bb748['filter'](_0x257143=>_0x257143[_0xadfd79(0x124)]===_0x251585[_0xadfd79(0x11e)]);if(_0x18a758[_0xadfd79(0x122)]===0x0){const _0xa45511=_0x3bb748[_0xadfd79(0x11c)](_0x2813b1=>_0x2813b1['name'])[_0xadfd79(0x12f)](',\x20');throw CliErrors[_0xadfd79(0x11f)](_0xadfd79(0x12d)+_0x251585[_0xadfd79(0x11e)]+_0xadfd79(0x130)+_0xa45511);}_0x3bb748=_0x18a758;}return _0x3bb748;}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * app 子命令 Declarative 定义统一导出
3
+ */
4
+ import type { CommandDefinition } from "../../framework/types.js";
5
+ export declare const appDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- (function(_0x4c1431,_0x42f31a){const _0x4d2fd4=a18_0x20fe,_0x4be3e6=_0x4c1431();while(!![]){try{const _0x2b316d=parseInt(_0x4d2fd4(0xf2))/0x1+parseInt(_0x4d2fd4(0xef))/0x2+-parseInt(_0x4d2fd4(0xee))/0x3+parseInt(_0x4d2fd4(0xf1))/0x4+parseInt(_0x4d2fd4(0xf3))/0x5*(parseInt(_0x4d2fd4(0xf0))/0x6)+-parseInt(_0x4d2fd4(0xec))/0x7+-parseInt(_0x4d2fd4(0xeb))/0x8*(parseInt(_0x4d2fd4(0xed))/0x9);if(_0x2b316d===_0x42f31a)break;else _0x4be3e6['push'](_0x4be3e6['shift']());}catch(_0x20a6c6){_0x4be3e6['push'](_0x4be3e6['shift']());}}}(a18_0x1987,0x6456c));import{appListDefinition}from'../../commands/app/list.js';function a18_0x20fe(_0x5d19e9,_0x741a3d){_0x5d19e9=_0x5d19e9-0xeb;const _0x198754=a18_0x1987();let _0x20fefe=_0x198754[_0x5d19e9];return _0x20fefe;}import{appMembersListDefinition}from'../../commands/app/members-list.js';export const appDefinitions=[appListDefinition,appMembersListDefinition];function a18_0x1987(){const _0x4f416b=['1464018NFKPEK','2188792OuJMZM','747934LjrBVz','10ywMgpb','3688iHumSH','1595671yhDxcd','16497yUseeh','1556682NGVBpi','439420Jerkdl'];a18_0x1987=function(){return _0x4f416b;};return a18_0x1987();}
1
+ (function(_0x1d64fb,_0x589fe9){const _0x1773a6=a18_0x1f4c,_0x737967=_0x1d64fb();while(!![]){try{const _0x516aa2=parseInt(_0x1773a6(0x154))/0x1+parseInt(_0x1773a6(0x157))/0x2+parseInt(_0x1773a6(0x15b))/0x3*(-parseInt(_0x1773a6(0x156))/0x4)+parseInt(_0x1773a6(0x15c))/0x5+parseInt(_0x1773a6(0x159))/0x6+-parseInt(_0x1773a6(0x158))/0x7+-parseInt(_0x1773a6(0x155))/0x8*(parseInt(_0x1773a6(0x15a))/0x9);if(_0x516aa2===_0x589fe9)break;else _0x737967['push'](_0x737967['shift']());}catch(_0x1a6345){_0x737967['push'](_0x737967['shift']());}}}(a18_0xf556,0x9763d));import{appListDefinition}from'../../commands/app/list.js';import{appMembersListDefinition}from'../../commands/app/members-list.js';function a18_0x1f4c(_0x485518,_0x3945d5){_0x485518=_0x485518-0x154;const _0xf55609=a18_0xf556();let _0x1f4c82=_0xf55609[_0x485518];return _0x1f4c82;}export const appDefinitions=[appListDefinition,appMembersListDefinition];function a18_0xf556(){const _0x24cd4c=['3Lluqqb','5340180sfPyal','1239132bUjZLv','101784Bftrse','273356YhdFzQ','1650420KdimYM','2236493RfiaaT','5650776jTyENE','2169zNMVPy'];a18_0xf556=function(){return _0x24cd4c;};return a18_0xf556();}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * rabetbase app list — 列出本地已配置应用,或用 --remote 查询平台目录
3
+ *
4
+ * 无 flag → 合并后的完整视图(global + project)
5
+ * --global → 仅全局 ~/.rabetbase.json 中的应用
6
+ * --project → 仅项目 .rabetbase.json 中的应用
7
+ * --remote → 当前登录账号在平台上可访问的应用目录
8
+ */
9
+ import type { CommandDefinition } from "../../framework/types.js";
10
+ export declare const appListDefinition: CommandDefinition;
@@ -1 +1 @@
1
- const a19_0x59ef08=a19_0x165c;(function(_0x497c6d,_0x55baf3){const _0x39ffdb=a19_0x165c,_0x4fa01e=_0x497c6d();while(!![]){try{const _0x4b1176=-parseInt(_0x39ffdb(0x144))/0x1*(parseInt(_0x39ffdb(0x13f))/0x2)+parseInt(_0x39ffdb(0x162))/0x3+-parseInt(_0x39ffdb(0x153))/0x4*(-parseInt(_0x39ffdb(0x142))/0x5)+parseInt(_0x39ffdb(0x13c))/0x6*(-parseInt(_0x39ffdb(0x14b))/0x7)+parseInt(_0x39ffdb(0x141))/0x8+-parseInt(_0x39ffdb(0x148))/0x9*(parseInt(_0x39ffdb(0x14e))/0xa)+-parseInt(_0x39ffdb(0x158))/0xb*(parseInt(_0x39ffdb(0x15f))/0xc);if(_0x4b1176===_0x55baf3)break;else _0x4fa01e['push'](_0x4fa01e['shift']());}catch(_0x97fb98){_0x4fa01e['push'](_0x4fa01e['shift']());}}}(a19_0x5477,0xc3941));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{buildAppProfileListFields}from'../../config/schema.js';import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function buildItemsFromLayer(_0x4ac953,_0x4075c3){const _0x5b5f8c=a19_0x165c,_0x53a1d2=[],_0x1a33ba=_0x4ac953['apps']&&typeof _0x4ac953[_0x5b5f8c(0x15e)]==='object'?_0x4ac953[_0x5b5f8c(0x15e)]:{},_0x2312bb=_0x4ac953[_0x5b5f8c(0x13d)]||undefined;for(const [_0x536499,_0x5d36dc]of Object[_0x5b5f8c(0x14d)](_0x1a33ba)){if(!_0x5d36dc||typeof _0x5d36dc!==_0x5b5f8c(0x157)||!_0x5d36dc[_0x5b5f8c(0x14a)])continue;_0x53a1d2[_0x5b5f8c(0x15d)]({'name':_0x536499,'appcode':_0x5d36dc[_0x5b5f8c(0x14a)],'named':!![],'definedIn':_0x4075c3,'isDefault':_0x536499===_0x2312bb,...buildAppProfileListFields(_0x5d36dc)});}return _0x53a1d2;}function buildMergedItems(_0x450c09,_0x1ca86e){const _0x23cdfc=a19_0x165c,{apps:apps={},defaultApp:_0x20c3e3}=_0x450c09,_0x3b2db7=_0x1ca86e[_0x23cdfc(0x165)][_0x23cdfc(0x15e)]&&typeof _0x1ca86e[_0x23cdfc(0x165)][_0x23cdfc(0x15e)]===_0x23cdfc(0x157)?_0x1ca86e[_0x23cdfc(0x165)][_0x23cdfc(0x15e)]:{},_0x116320=_0x1ca86e[_0x23cdfc(0x15b)][_0x23cdfc(0x15e)]&&typeof _0x1ca86e[_0x23cdfc(0x15b)][_0x23cdfc(0x15e)]===_0x23cdfc(0x157)?_0x1ca86e['projectConfig'][_0x23cdfc(0x15e)]:{},_0x1d6bad=_0x1ca86e[_0x23cdfc(0x15b)]['inherit']===![],_0x23a7c2=Object[_0x23cdfc(0x14d)](apps),_0x44e346=_0x23a7c2[_0x23cdfc(0x13e)](([_0x26878d,_0x257293])=>({'name':_0x26878d,'appcode':_0x257293[_0x23cdfc(0x14a)],'named':!![],'definedIn':appDefinedIn(_0x26878d,_0x3b2db7,_0x116320,_0x1d6bad),'isDefault':_0x26878d===_0x20c3e3,...buildAppProfileListFields(_0x257293)}));return _0x44e346;}function a19_0x5477(){const _0x238a50=['List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','\x20in\x20','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','object','301477AcKnYk','globalPath','project','projectConfig','global','push','apps','228aijRfz','isCurrent','find','395343bLavim','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','globalConfig','boolean','18odInhZ','defaultApp','map','1402RQHOCQ','validation','11614792YvfeJZ','795OCWuGs','merged','1432IWMkfg','No\x20apps\x20configured','remote','projectPath','307143uKDjoJ','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','appcode','1424542VnCPqs','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','entries','70paoKBr','optional','read','bool','.\x20Use\x20`','40036sjfxvu'];a19_0x5477=function(){return _0x238a50;};return a19_0x5477();}function validateAppListFlags(_0x85f6f4){const _0x1d8fef=a19_0x165c;if(!_0x85f6f4[_0x1d8fef(0x151)]('remote'))return;if(!_0x85f6f4[_0x1d8fef(0x151)](_0x1d8fef(0x15c))&&!_0x85f6f4[_0x1d8fef(0x151)](_0x1d8fef(0x15a)))return;throw CliErrors[_0x1d8fef(0x140)](_0x1d8fef(0x164),_0x1d8fef(0x14c));}function a19_0x165c(_0x1b730a,_0x3484a1){_0x1b730a=_0x1b730a-0x13b;const _0x5477af=a19_0x5477();let _0x165c6c=_0x5477af[_0x1b730a];return _0x165c6c;}async function execute(_0x2b03ed){const _0x1442ca=a19_0x165c;validateAppListFlags(_0x2b03ed);if(_0x2b03ed[_0x1442ca(0x151)](_0x1442ca(0x146)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x2b03ed)};const _0xecbdc=_0x2b03ed[_0x1442ca(0x151)](_0x1442ca(0x15c)),_0x3c3371=_0x2b03ed['bool'](_0x1442ca(0x15a)),_0x309d01=_0xecbdc?'global':_0x3c3371?'project':_0x1442ca(0x143),{config:_0x17187e,layers:_0x33bf16}=readRawConfigWithLayers(),_0x5bf5d6=resolveDefaultAppSource(_0x33bf16),{defaultApp:_0x35d69d}=_0x17187e;let _0x405510,_0x39496c;switch(_0x309d01){case'global':_0x405510=buildItemsFromLayer(_0x33bf16[_0x1442ca(0x165)],_0x1442ca(0x15c)),_0x39496c=_0x33bf16['globalPath'];break;case _0x1442ca(0x15a):_0x405510=buildItemsFromLayer(_0x33bf16[_0x1442ca(0x15b)],_0x1442ca(0x15a)),_0x39496c=_0x33bf16[_0x1442ca(0x147)];break;default:_0x405510=buildMergedItems(_0x17187e,_0x33bf16);break;}enrichAppListItemsWithMergedSelection(_0x405510,_0x2b03ed['mergedCli']);if(_0x405510['length']===0x0){const _0x5726c1=_0x309d01===_0x1442ca(0x143)?'':_0x1442ca(0x155)+_0x309d01+'\x20config';return{'ok':!![],'data':[],'message':_0x1442ca(0x145)+_0x5726c1+_0x1442ca(0x152)+CLI_BIN_NAME+_0x1442ca(0x149)};}const _0x53b421=_0x405510[_0x1442ca(0x161)](_0xdc9922=>_0xdc9922[_0x1442ca(0x160)]===!![]),_0x48dfa1=_0x35d69d??_0x53b421?.[_0x1442ca(0x14a)]??null,_0x4cf98b=_0x309d01==='merged'?{'globalPath':_0x33bf16[_0x1442ca(0x159)]??null,'projectPath':_0x33bf16[_0x1442ca(0x147)]??null,'defaultApp':_0x48dfa1,'defaultAppSource':_0x35d69d!=null?_0x5bf5d6:null}:{'scope':_0x309d01,'configPath':_0x39496c??null};return{'ok':!![],'data':{'items':_0x405510,'meta':_0x4cf98b}};}export const appListDefinition={'service':'app','command':'list','description':a19_0x59ef08(0x154),'risk':a19_0x59ef08(0x150),'auth':a19_0x59ef08(0x14f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a19_0x59ef08(0x146),'type':a19_0x59ef08(0x13b),'description':'List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','default':![]},{'name':a19_0x59ef08(0x15c),'type':a19_0x59ef08(0x13b),'description':a19_0x59ef08(0x156),'default':![]},{'name':a19_0x59ef08(0x15a),'type':a19_0x59ef08(0x13b),'description':a19_0x59ef08(0x163),'default':![]}],async 'validate'(_0x46448a){validateAppListFlags(_0x46448a);},'execute':execute};
1
+ const a19_0x388ae0=a19_0x42bd;(function(_0xb485fb,_0xc4da96){const _0x5afd40=a19_0x42bd,_0x13dba5=_0xb485fb();while(!![]){try{const _0x26b019=parseInt(_0x5afd40(0xf4))/0x1+-parseInt(_0x5afd40(0xe7))/0x2*(-parseInt(_0x5afd40(0xde))/0x3)+-parseInt(_0x5afd40(0xf3))/0x4+parseInt(_0x5afd40(0xf0))/0x5*(parseInt(_0x5afd40(0xf8))/0x6)+parseInt(_0x5afd40(0xfc))/0x7+-parseInt(_0x5afd40(0xee))/0x8+-parseInt(_0x5afd40(0xf9))/0x9;if(_0x26b019===_0xc4da96)break;else _0x13dba5['push'](_0x13dba5['shift']());}catch(_0x303f0d){_0x13dba5['push'](_0x13dba5['shift']());}}}(a19_0x363b,0xeda70));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{buildAppProfileListFields}from'../../config/schema.js';function a19_0x42bd(_0x172b6f,_0x42ec9e){_0x172b6f=_0x172b6f-0xdd;const _0x363b0b=a19_0x363b();let _0x42bdbe=_0x363b0b[_0x172b6f];return _0x42bdbe;}import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';function a19_0x363b(){const _0x2b2878=['map','optional','globalConfig','14881936DoviVK','\x20config','3918290yFPNMX','remote','merged','2845812CCAoNU','1509725gqLpeg','isCurrent','globalPath','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','6sdrmbF','14892237FotCHW','app','boolean','10260894yeaeAI','projectPath','read','inherit','find','list','mergedCli','apps','validation','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','bool','object','4321761yyseAX','global','push','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','No\x20apps\x20configured','projectConfig','defaultApp','project','2cLbwvt','appcode','entries','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.'];a19_0x363b=function(){return _0x2b2878;};return a19_0x363b();}import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function buildItemsFromLayer(_0x145b99,_0x52a6fb){const _0x19dc27=a19_0x42bd,_0x5243f0=[],_0x23e0ad=_0x145b99['apps']&&typeof _0x145b99[_0x19dc27(0x103)]===_0x19dc27(0xdd)?_0x145b99['apps']:{},_0x230470=_0x145b99[_0x19dc27(0xe5)]||undefined;for(const [_0x2c0c71,_0x225164]of Object[_0x19dc27(0xe9)](_0x23e0ad)){if(!_0x225164||typeof _0x225164!==_0x19dc27(0xdd)||!_0x225164[_0x19dc27(0xe8)])continue;_0x5243f0[_0x19dc27(0xe0)]({'name':_0x2c0c71,'appcode':_0x225164['appcode'],'named':!![],'definedIn':_0x52a6fb,'isDefault':_0x2c0c71===_0x230470,...buildAppProfileListFields(_0x225164)});}return _0x5243f0;}function buildMergedItems(_0x2e9dc3,_0x58e19d){const _0x53cd05=a19_0x42bd,{apps:apps={},defaultApp:_0x13fb09}=_0x2e9dc3,_0x349fb5=_0x58e19d[_0x53cd05(0xed)][_0x53cd05(0x103)]&&typeof _0x58e19d[_0x53cd05(0xed)][_0x53cd05(0x103)]===_0x53cd05(0xdd)?_0x58e19d[_0x53cd05(0xed)][_0x53cd05(0x103)]:{},_0x15ea8b=_0x58e19d[_0x53cd05(0xe4)][_0x53cd05(0x103)]&&typeof _0x58e19d[_0x53cd05(0xe4)][_0x53cd05(0x103)]==='object'?_0x58e19d['projectConfig'][_0x53cd05(0x103)]:{},_0x31a869=_0x58e19d[_0x53cd05(0xe4)][_0x53cd05(0xff)]===![],_0x568c1a=Object['entries'](apps),_0x3d9fb0=_0x568c1a[_0x53cd05(0xeb)](([_0x24bb6d,_0x5a0542])=>({'name':_0x24bb6d,'appcode':_0x5a0542[_0x53cd05(0xe8)],'named':!![],'definedIn':appDefinedIn(_0x24bb6d,_0x349fb5,_0x15ea8b,_0x31a869),'isDefault':_0x24bb6d===_0x13fb09,...buildAppProfileListFields(_0x5a0542)}));return _0x3d9fb0;}function validateAppListFlags(_0x2c8c56){const _0x4bf03f=a19_0x42bd;if(!_0x2c8c56['bool'](_0x4bf03f(0xf1)))return;if(!_0x2c8c56[_0x4bf03f(0x106)](_0x4bf03f(0xdf))&&!_0x2c8c56['bool']('project'))return;throw CliErrors[_0x4bf03f(0x104)](_0x4bf03f(0xea),_0x4bf03f(0xe2));}async function execute(_0xae1744){const _0x126d46=a19_0x42bd;validateAppListFlags(_0xae1744);if(_0xae1744[_0x126d46(0x106)](_0x126d46(0xf1)))return{'ok':!![],'data':await listRemoteAppDirectory(_0xae1744)};const _0xc96107=_0xae1744[_0x126d46(0x106)](_0x126d46(0xdf)),_0x2f5c7c=_0xae1744[_0x126d46(0x106)]('project'),_0x432187=_0xc96107?_0x126d46(0xdf):_0x2f5c7c?_0x126d46(0xe6):_0x126d46(0xf2),{config:_0xc634a4,layers:_0x4b1a6b}=readRawConfigWithLayers(),_0x2210c4=resolveDefaultAppSource(_0x4b1a6b),{defaultApp:_0x12a83a}=_0xc634a4;let _0x35627b,_0x54396d;switch(_0x432187){case _0x126d46(0xdf):_0x35627b=buildItemsFromLayer(_0x4b1a6b[_0x126d46(0xed)],_0x126d46(0xdf)),_0x54396d=_0x4b1a6b[_0x126d46(0xf6)];break;case _0x126d46(0xe6):_0x35627b=buildItemsFromLayer(_0x4b1a6b[_0x126d46(0xe4)],'project'),_0x54396d=_0x4b1a6b[_0x126d46(0xfd)];break;default:_0x35627b=buildMergedItems(_0xc634a4,_0x4b1a6b);break;}enrichAppListItemsWithMergedSelection(_0x35627b,_0xae1744[_0x126d46(0x102)]);if(_0x35627b['length']===0x0){const _0x1ce102=_0x432187===_0x126d46(0xf2)?'':'\x20in\x20'+_0x432187+_0x126d46(0xef);return{'ok':!![],'data':[],'message':_0x126d46(0xe3)+_0x1ce102+'.\x20Use\x20`'+CLI_BIN_NAME+_0x126d46(0x105)};}const _0x2f5c82=_0x35627b[_0x126d46(0x100)](_0x419d16=>_0x419d16[_0x126d46(0xf5)]===!![]),_0x2c2f44=_0x12a83a??_0x2f5c82?.[_0x126d46(0xe8)]??null,_0x2af7eb=_0x432187===_0x126d46(0xf2)?{'globalPath':_0x4b1a6b[_0x126d46(0xf6)]??null,'projectPath':_0x4b1a6b['projectPath']??null,'defaultApp':_0x2c2f44,'defaultAppSource':_0x12a83a!=null?_0x2210c4:null}:{'scope':_0x432187,'configPath':_0x54396d??null};return{'ok':!![],'data':{'items':_0x35627b,'meta':_0x2af7eb}};}export const appListDefinition={'service':a19_0x388ae0(0xfa),'command':a19_0x388ae0(0x101),'description':'List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','risk':a19_0x388ae0(0xfe),'auth':a19_0x388ae0(0xec),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a19_0x388ae0(0xf1),'type':a19_0x388ae0(0xfb),'description':'List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','default':![]},{'name':a19_0x388ae0(0xdf),'type':a19_0x388ae0(0xfb),'description':a19_0x388ae0(0xf7),'default':![]},{'name':a19_0x388ae0(0xe6),'type':a19_0x388ae0(0xfb),'description':a19_0x388ae0(0xe1),'default':![]}],async 'validate'(_0x4d6f09){validateAppListFlags(_0x4d6f09);},'execute':execute};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appMembersListDefinition: CommandDefinition;
@@ -1 +1 @@
1
- const a20_0x23e95c=a20_0x39e3;function a20_0x39e3(_0x3ea95e,_0x3ec0cc){_0x3ea95e=_0x3ea95e-0xa7;const _0x6c555a=a20_0x6c55();let _0x39e3e=_0x6c555a[_0x3ea95e];return _0x39e3e;}(function(_0x2c00f4,_0x140f6f){const _0x300d5c=a20_0x39e3,_0xe63596=_0x2c00f4();while(!![]){try{const _0x5e8b40=-parseInt(_0x300d5c(0xa9))/0x1*(parseInt(_0x300d5c(0xa8))/0x2)+parseInt(_0x300d5c(0xb0))/0x3+-parseInt(_0x300d5c(0xab))/0x4+parseInt(_0x300d5c(0xb6))/0x5*(-parseInt(_0x300d5c(0xaa))/0x6)+-parseInt(_0x300d5c(0xae))/0x7+parseInt(_0x300d5c(0xb1))/0x8*(parseInt(_0x300d5c(0xad))/0x9)+parseInt(_0x300d5c(0xb7))/0xa;if(_0x5e8b40===_0x140f6f)break;else _0xe63596['push'](_0xe63596['shift']());}catch(_0x55e63e){_0xe63596['push'](_0xe63596['shift']());}}}(a20_0x6c55,0x39e7c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';function a20_0x6c55(){const _0x12c68c=['1070730dHmynQ','30928yZXjdg','members-list','length','read','Found\x20','202090kZfdPD','5457780qfspIK','\x20application\x20member(s)','13654ICfNwA','4QdyWap','18QnQKSR','1549200ikOeaD','List\x20application\x20members\x20with\x20their\x20role\x20memberships','135fADgrb','1313452fhHSJy','app'];a20_0x6c55=function(){return _0x12c68c;};return a20_0x6c55();}import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':a20_0x23e95c(0xaf),'command':a20_0x23e95c(0xb2),'description':a20_0x23e95c(0xac),'risk':a20_0x23e95c(0xb4),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2fdaf3){const _0x46b01c=a20_0x23e95c,_0x30501b=projectAppMembers(await listRoleUsers(_0x2fdaf3['appCode']));return{'ok':!![],'data':{'appCode':_0x2fdaf3['appCode'],'items':_0x30501b,'totalCount':_0x30501b[_0x46b01c(0xb3)]},'message':_0x46b01c(0xb5)+_0x30501b['length']+_0x46b01c(0xa7)};}};
1
+ const a20_0x4b85cd=a20_0x3c7c;(function(_0x5bd71d,_0x5c645a){const _0x566861=a20_0x3c7c,_0x118797=_0x5bd71d();while(!![]){try{const _0x27896a=-parseInt(_0x566861(0x1ea))/0x1*(parseInt(_0x566861(0x1e4))/0x2)+parseInt(_0x566861(0x1e1))/0x3*(parseInt(_0x566861(0x1e5))/0x4)+-parseInt(_0x566861(0x1e3))/0x5+-parseInt(_0x566861(0x1e8))/0x6+parseInt(_0x566861(0x1e6))/0x7*(-parseInt(_0x566861(0x1ed))/0x8)+parseInt(_0x566861(0x1ef))/0x9*(-parseInt(_0x566861(0x1ec))/0xa)+parseInt(_0x566861(0x1e2))/0xb*(parseInt(_0x566861(0x1ee))/0xc);if(_0x27896a===_0x5c645a)break;else _0x118797['push'](_0x118797['shift']());}catch(_0x31c343){_0x118797['push'](_0x118797['shift']());}}}(a20_0x285a,0xd64e0));function a20_0x3c7c(_0x2643b2,_0x107b53){_0x2643b2=_0x2643b2-0x1e1;const _0x285ad7=a20_0x285a();let _0x3c7c13=_0x285ad7[_0x2643b2];return _0x3c7c13;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a20_0x285a(){const _0x578b6b=['60cwnMwu','280DvAiyg','1924308YdbtJh','1991817hUCmfI','81kDWyYS','418QwLOpq','3253260LRenHJ','100ecAdHW','86372CuFfyp','250138uFrhXM','List\x20application\x20members\x20with\x20their\x20role\x20memberships','9818946TxKIYU','\x20application\x20member(s)','18663YDufeP','members-list'];a20_0x285a=function(){return _0x578b6b;};return a20_0x285a();}import{projectAppMembers}from'../../commands/app/shared.js';import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':'app','command':a20_0x4b85cd(0x1eb),'description':a20_0x4b85cd(0x1e7),'risk':'read','requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x15fd9b){const _0x386d76=a20_0x4b85cd,_0x33cbed=projectAppMembers(await listRoleUsers(_0x15fd9b['appCode']));return{'ok':!![],'data':{'appCode':_0x15fd9b['appCode'],'items':_0x33cbed,'totalCount':_0x33cbed['length']},'message':'Found\x20'+_0x33cbed['length']+_0x386d76(0x1e9)};}};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Remote app directory lookup used by `rabetbase app list --remote`.
3
+ */
4
+ import type { RuntimeContext } from "../../framework/types.js";
5
+ export interface RemoteAppListData {
6
+ items: Record<string, unknown>[];
7
+ meta: {
8
+ source: "platform";
9
+ };
10
+ }
11
+ export declare function listRemoteAppDirectory(ctx: RuntimeContext): Promise<RemoteAppListData>;
@@ -1 +1 @@
1
- (function(_0x1979eb,_0xfd7c48){const _0x7cb447=a21_0x1e02,_0x1ceb0c=_0x1979eb();while(!![]){try{const _0x57cdfe=parseInt(_0x7cb447(0x85))/0x1*(-parseInt(_0x7cb447(0x88))/0x2)+parseInt(_0x7cb447(0x81))/0x3+parseInt(_0x7cb447(0x86))/0x4+parseInt(_0x7cb447(0x7f))/0x5*(-parseInt(_0x7cb447(0x7d))/0x6)+-parseInt(_0x7cb447(0x87))/0x7+parseInt(_0x7cb447(0x83))/0x8*(-parseInt(_0x7cb447(0x7e))/0x9)+parseInt(_0x7cb447(0x80))/0xa*(parseInt(_0x7cb447(0x8b))/0xb);if(_0x57cdfe===_0xfd7c48)break;else _0x1ceb0c['push'](_0x1ceb0c['shift']());}catch(_0x3f3423){_0x1ceb0c['push'](_0x1ceb0c['shift']());}}}(a21_0x3de6,0xacc4c));import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a21_0x3de6(){const _0x12ebc8=['cookie','8qVnXjW','appDesc','762122XDNCls','2720536kclTPG','6806114tOlkbH','2fBrOXh','map','appCode','11XdXMMw','platform','132OKgaqd','5190894iAZsqT','85615zrcllU','22368270zMFECn','1435785ujejbB'];a21_0x3de6=function(){return _0x12ebc8;};return a21_0x3de6();}function resolveCookie(_0x35e9ff){const _0x5c09b9=a21_0x1e02,_0x1c9e60=_0x35e9ff[_0x5c09b9(0x82)]||getCookie();if(!_0x1c9e60)throw CliErrors['authRequired']();return _0x1c9e60;}function a21_0x1e02(_0x3f2f45,_0x3cc9bf){_0x3f2f45=_0x3f2f45-0x7d;const _0x3de6a4=a21_0x3de6();let _0x1e0264=_0x3de6a4[_0x3f2f45];return _0x1e0264;}export async function listRemoteAppDirectory(_0x2c5215){const _0x530189=a21_0x1e02,_0x412534=await withActiveCookie(resolveCookie(_0x2c5215),()=>listRemoteApps());return{'items':_0x412534[_0x530189(0x89)](_0x364042=>({..._0x364042['id']!=null?{'id':_0x364042['id']}:{},'appCode':_0x364042[_0x530189(0x8a)],'appName':_0x364042['appName'],..._0x364042[_0x530189(0x84)]!=null?{'appDesc':_0x364042['appDesc']}:{}})),'meta':{'source':_0x530189(0x8c)}};}
1
+ (function(_0x1883ca,_0x28cb97){const _0x7d22c2=a21_0x2b99,_0x283c44=_0x1883ca();while(!![]){try{const _0x87181d=-parseInt(_0x7d22c2(0xc9))/0x1+parseInt(_0x7d22c2(0xcf))/0x2+parseInt(_0x7d22c2(0xc6))/0x3+-parseInt(_0x7d22c2(0xd1))/0x4*(-parseInt(_0x7d22c2(0xd0))/0x5)+parseInt(_0x7d22c2(0xca))/0x6*(-parseInt(_0x7d22c2(0xcb))/0x7)+-parseInt(_0x7d22c2(0xc8))/0x8+-parseInt(_0x7d22c2(0xcc))/0x9;if(_0x87181d===_0x28cb97)break;else _0x283c44['push'](_0x283c44['shift']());}catch(_0x779c56){_0x283c44['push'](_0x283c44['shift']());}}}(a21_0x3ce7,0xc4b37));function a21_0x2b99(_0x55c1f0,_0x33a525){_0x55c1f0=_0x55c1f0-0xc5;const _0x3ce77e=a21_0x3ce7();let _0x2b99fa=_0x3ce77e[_0x55c1f0];return _0x2b99fa;}import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x3ccd2e){const _0x5c94f7=a21_0x2b99,_0x58a6ea=_0x3ccd2e[_0x5c94f7(0xce)]||getCookie();if(!_0x58a6ea)throw CliErrors[_0x5c94f7(0xc5)]();return _0x58a6ea;}export async function listRemoteAppDirectory(_0x453167){const _0x14d306=a21_0x2b99,_0x53c468=await withActiveCookie(resolveCookie(_0x453167),()=>listRemoteApps());return{'items':_0x53c468[_0x14d306(0xc7)](_0x4435de=>({..._0x4435de['id']!=null?{'id':_0x4435de['id']}:{},'appCode':_0x4435de['appCode'],'appName':_0x4435de[_0x14d306(0xd2)],..._0x4435de['appDesc']!=null?{'appDesc':_0x4435de['appDesc']}:{}})),'meta':{'source':_0x14d306(0xcd)}};}function a21_0x3ce7(){const _0x36b4dd=['2224330puAAQV','1405rpXFIY','12668rWNoIr','appName','authRequired','2542269xNVDKE','map','398928FbtMzs','709787GcDLnQ','6pPGlSk','518854AhZraT','10890477qSnjrf','platform','cookie'];a21_0x3ce7=function(){return _0x36b4dd;};return a21_0x3ce7();}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * app 子命令共享工具
3
+ *
4
+ * 配置读写辅助、legacy 迁移逻辑,供 list / add / remove 复用。
5
+ */
6
+ import { type RawConfigLayers } from "../../context.js";
7
+ import type { RoleUsers } from "../../core/api-client.js";
8
+ import type { MergedCliSnapshot } from "../../framework/types.js";
9
+ export type AppMembershipStatus = "ACTIVE" | "PENDING";
10
+ export interface AppMemberRoleProjection {
11
+ roleId: number;
12
+ roleName: string | null;
13
+ roleType: string | null;
14
+ membershipStatus: AppMembershipStatus;
15
+ }
16
+ export interface AppMemberProjection {
17
+ userId: number;
18
+ username: string | null;
19
+ displayName: string | null;
20
+ status: AppMembershipStatus;
21
+ roles: AppMemberRoleProjection[];
22
+ }
23
+ export declare function projectAppMembers(groups: RoleUsers[]): AppMemberProjection[];
24
+ /**
25
+ * 用入口 `buildConfigFromFlags` 的 merged 快照标注 `isCurrent`,与 `--global` / `--project` / 合并视图一致。
26
+ */
27
+ export declare function enrichAppListItemsWithMergedSelection(items: Record<string, unknown>[], merged: MergedCliSnapshot | undefined): void;
28
+ /**
29
+ * 与 lovrabet-runtime-cli 对齐:决定 `defaultApp` / 改 apps 应写入项目还是全局。
30
+ * --global 为 true 时始终写全局;否则项目 apps 含该名 → 项目优先;否则仅全局含该名 → 全局。
31
+ */
32
+ export declare function resolveAppScopeForWrite(name: string, explicitGlobal: boolean, layers: RawConfigLayers): "project" | "global";
33
+ /**
34
+ * app 定义在哪一层配置文件中。
35
+ * `ignoreGlobalMerge`:项目 `inherit: false` 时传 `true`,不把全局 apps 参与「both」判定。
36
+ */
37
+ export declare function appDefinedIn(name: string, globalApps: Record<string, unknown>, projectApps: Record<string, unknown>, ignoreGlobalMerge?: boolean): "global" | "project" | "both";
38
+ /**
39
+ * defaultApp 解析来源:与 mergeRawConfigLayers 中 defaultApp 策略一致。
40
+ * 供 app list / workspace use 标注写盘位置参考。
41
+ */
42
+ export declare function resolveDefaultAppSource(layers: RawConfigLayers): "project" | "global" | null;
43
+ export declare function getConfigPath(flags?: Record<string, any>): string;
44
+ export declare function readConfig(flags?: Record<string, any>): Record<string, any>;
45
+ export declare function writeConfig(config: Record<string, any>, flags?: Record<string, any>): void;
46
+ export declare function scopeLabel(flags: Record<string, any>): string;
@@ -1 +1 @@
1
- (function(_0x658017,_0x940b4b){const _0x3d0a21=a22_0x376e,_0x3f5ee4=_0x658017();while(!![]){try{const _0xdbb67e=-parseInt(_0x3d0a21(0x1bb))/0x1+-parseInt(_0x3d0a21(0x1d6))/0x2*(parseInt(_0x3d0a21(0x1da))/0x3)+-parseInt(_0x3d0a21(0x1d0))/0x4+parseInt(_0x3d0a21(0x1c8))/0x5+parseInt(_0x3d0a21(0x1cb))/0x6*(parseInt(_0x3d0a21(0x1af))/0x7)+-parseInt(_0x3d0a21(0x1b9))/0x8+parseInt(_0x3d0a21(0x1ba))/0x9*(parseInt(_0x3d0a21(0x1d9))/0xa);if(_0xdbb67e===_0x940b4b)break;else _0x3f5ee4['push'](_0x3f5ee4['shift']());}catch(_0x2c1b66){_0x3f5ee4['push'](_0x3f5ee4['shift']());}}}(a22_0x1705,0x40f48));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x8c9913){const _0x712564=a22_0x376e,_0x1ace57=_0x8c9913?.[_0x712564(0x1c9)]();return _0x1ace57?_0x1ace57:null;}function a22_0x376e(_0x574d42,_0x47a16c){_0x574d42=_0x574d42-0x1ae;const _0x1705c3=a22_0x1705();let _0x376e36=_0x1705c3[_0x574d42];return _0x376e36;}export function projectAppMembers(_0x1adb19){const _0x2ba8b5=a22_0x376e,_0x1580bd=new Map(),_0x5684b8=[..._0x1adb19][_0x2ba8b5(0x1b7)]((_0x40fe44,_0x135d27)=>_0x40fe44['id']-_0x135d27['id']),_0x374549=(_0x25f781,_0x3f7d96,_0x565caa)=>{const _0x8f7928=_0x2ba8b5;for(const _0x4e79e2 of _0x3f7d96){const _0x42d88a=Number(_0x4e79e2[_0x8f7928(0x1b1)]);if(!Number['isFinite'](_0x42d88a)||_0x42d88a<=0x0)continue;let _0x584aea=_0x1580bd[_0x8f7928(0x1cc)](_0x42d88a);if(!_0x584aea)_0x584aea={'userId':_0x42d88a,'username':nullableText(_0x4e79e2[_0x8f7928(0x1de)]),'displayName':nullableText(_0x4e79e2[_0x8f7928(0x1ca)]),'status':_0x565caa,'roles':[],'roleKeys':new Set()},_0x1580bd['set'](_0x42d88a,_0x584aea);else{_0x584aea[_0x8f7928(0x1de)]??=nullableText(_0x4e79e2['username']),_0x584aea['displayName']??=nullableText(_0x4e79e2[_0x8f7928(0x1ca)]);if(_0x565caa===_0x8f7928(0x1c6))_0x584aea[_0x8f7928(0x1c7)]=_0x8f7928(0x1c6);}const _0x428955=_0x25f781['id']+':'+_0x565caa;if(_0x584aea[_0x8f7928(0x1cf)]['has'](_0x428955))continue;_0x584aea['roleKeys'][_0x8f7928(0x1b4)](_0x428955),_0x584aea[_0x8f7928(0x1be)][_0x8f7928(0x1c0)]({'roleId':_0x25f781['id'],'roleName':nullableText(_0x25f781[_0x8f7928(0x1c2)]),'roleType':nullableText(_0x25f781[_0x8f7928(0x1ce)]),'membershipStatus':_0x565caa});}};for(const _0x2f7e98 of _0x5684b8){_0x374549(_0x2f7e98,_0x2f7e98['userList']??[],_0x2ba8b5(0x1c6)),_0x374549(_0x2f7e98,_0x2f7e98[_0x2ba8b5(0x1c4)]??[],_0x2ba8b5(0x1b3));}return[..._0x1580bd[_0x2ba8b5(0x1d7)]()][_0x2ba8b5(0x1b6)](_0x1e7a5d=>({'userId':_0x1e7a5d[_0x2ba8b5(0x1b1)],'username':_0x1e7a5d['username'],'displayName':_0x1e7a5d[_0x2ba8b5(0x1b2)],'status':_0x1e7a5d[_0x2ba8b5(0x1c7)],'roles':_0x1e7a5d[_0x2ba8b5(0x1be)][_0x2ba8b5(0x1b7)]((_0x3a892e,_0x277bc3)=>_0x3a892e[_0x2ba8b5(0x1d2)]-_0x277bc3['roleId']||(_0x3a892e['membershipStatus']===_0x277bc3['membershipStatus']?0x0:_0x3a892e[_0x2ba8b5(0x1d1)]===_0x2ba8b5(0x1c6)?-0x1:0x1))}))[_0x2ba8b5(0x1b7)]((_0x4d5535,_0x122b7f)=>_0x4d5535[_0x2ba8b5(0x1b1)]-_0x122b7f[_0x2ba8b5(0x1b1)]);}export function enrichAppListItemsWithMergedSelection(_0x550370,_0x4bd086){const _0x57dc37=a22_0x376e;if(!_0x4bd086)return;const _0x32152d=_0x4bd086[_0x57dc37(0x1ae)]&&typeof _0x4bd086[_0x57dc37(0x1ae)]===_0x57dc37(0x1d5)?_0x4bd086[_0x57dc37(0x1ae)]:{},_0x554753=Object['keys'](_0x32152d)[_0x57dc37(0x1b5)]>0x0;for(const _0x39cc9f of _0x550370){_0x39cc9f[_0x57dc37(0x1db)]=![];}const _0x349f81=_0x4bd086['appCode']!=null?String(_0x4bd086[_0x57dc37(0x1cd)])[_0x57dc37(0x1c9)]():'';if(_0x554753){const _0x365e03=_0x4bd086[_0x57dc37(0x1c3)]??_0x4bd086['defaultApp'];if(_0x365e03)for(const _0x569803 of _0x550370){_0x569803['named']===!![]&&_0x569803['name']===_0x365e03&&(_0x569803[_0x57dc37(0x1db)]=!![]);}for(const _0x1655c6 of _0x550370){if(_0x1655c6[_0x57dc37(0x1bf)]!==![])continue;if(_0x4bd086['defaultApp'])continue;_0x349f81&&String(_0x1655c6['appcode']??'')['trim']()===_0x349f81&&(_0x1655c6['isCurrent']=!![]);}return;}if(!_0x349f81)return;for(const _0x239788 of _0x550370){String(_0x239788['appcode']??'')['trim']()===_0x349f81&&(_0x239788['isCurrent']=!![]);}}export function resolveAppScopeForWrite(_0x56747f,_0x303d16,_0x184fdc){const _0x47ca8b=a22_0x376e;if(_0x303d16)return _0x47ca8b(0x1b8);const _0x4e2fe9=_0x184fdc[_0x47ca8b(0x1d3)][_0x47ca8b(0x1ae)]&&typeof _0x184fdc[_0x47ca8b(0x1d3)][_0x47ca8b(0x1ae)]===_0x47ca8b(0x1d5)?_0x184fdc[_0x47ca8b(0x1d3)][_0x47ca8b(0x1ae)]:{},_0x598654=_0x184fdc[_0x47ca8b(0x1dc)][_0x47ca8b(0x1ae)]&&typeof _0x184fdc['globalConfig'][_0x47ca8b(0x1ae)]===_0x47ca8b(0x1d5)?_0x184fdc[_0x47ca8b(0x1dc)][_0x47ca8b(0x1ae)]:{};if(Object[_0x47ca8b(0x1b0)][_0x47ca8b(0x1bd)]['call'](_0x4e2fe9,_0x56747f))return _0x47ca8b(0x1c1);if(Object[_0x47ca8b(0x1b0)][_0x47ca8b(0x1bd)][_0x47ca8b(0x1d4)](_0x598654,_0x56747f))return _0x47ca8b(0x1b8);return _0x47ca8b(0x1c1);}function a22_0x1705(){const _0x118def=['roleId','projectConfig','call','object','2KUijia','values','defaultApp','359110xmRcHP','1174626oMHWGI','isCurrent','globalConfig','\x20(global)','username','apps','11963nanXOX','prototype','userId','displayName','PENDING','add','length','map','sort','global','833608wpAdgS','45WBlbQQ','10533OPkWIX','keys','hasOwnProperty','roles','named','push','project','roleName','currentApp','applyUserList','both','ACTIVE','status','2287890WsfQLg','trim','nickname','708LfegtT','get','appCode','roleType','roleKeys','265852YbIdBD','membershipStatus'];a22_0x1705=function(){return _0x118def;};return a22_0x1705();}export function appDefinedIn(_0x196a8d,_0x59c883,_0x30c0ab,_0x5680e6){const _0x4c73fd=a22_0x376e;if(_0x5680e6)return Object[_0x4c73fd(0x1b0)][_0x4c73fd(0x1bd)][_0x4c73fd(0x1d4)](_0x30c0ab,_0x196a8d)?_0x4c73fd(0x1c1):_0x4c73fd(0x1b8);const _0xe46d8b=Object[_0x4c73fd(0x1b0)][_0x4c73fd(0x1bd)]['call'](_0x59c883,_0x196a8d),_0x2fc77b=Object[_0x4c73fd(0x1b0)][_0x4c73fd(0x1bd)][_0x4c73fd(0x1d4)](_0x30c0ab,_0x196a8d);if(_0xe46d8b&&_0x2fc77b)return _0x4c73fd(0x1c5);if(_0x2fc77b)return _0x4c73fd(0x1c1);return _0x4c73fd(0x1b8);}export function resolveDefaultAppSource(_0x5bc3e9){const _0x5c6d2f=a22_0x376e,_0x5ce280=_0x5bc3e9[_0x5c6d2f(0x1d3)][_0x5c6d2f(0x1ae)]&&typeof _0x5bc3e9[_0x5c6d2f(0x1d3)][_0x5c6d2f(0x1ae)]===_0x5c6d2f(0x1d5)?_0x5bc3e9['projectConfig'][_0x5c6d2f(0x1ae)]:{};if('defaultApp'in _0x5bc3e9['projectConfig'])return _0x5c6d2f(0x1c1);if(Object[_0x5c6d2f(0x1bc)](_0x5ce280)['length']>0x0)return _0x5c6d2f(0x1c1);if(_0x5bc3e9[_0x5c6d2f(0x1d3)]['inherit']===![])return null;if(_0x5bc3e9['globalConfig'][_0x5c6d2f(0x1d8)])return _0x5c6d2f(0x1b8);return null;}export function getConfigPath(_0x5d44f3={}){const _0x420c95=a22_0x376e,_0x5112ad=_0x5d44f3[_0x420c95(0x1b8)]?_0x420c95(0x1b8):'project';return resolveWriteConfigPath(_0x5112ad);}export function readConfig(_0x5484ab={}){return readConfigFile(getConfigPath(_0x5484ab));}export function writeConfig(_0x1c7679,_0x280606={}){writeConfigFile(getConfigPath(_0x280606),_0x1c7679);}export function scopeLabel(_0x5cb008){const _0x418e28=a22_0x376e;return _0x5cb008[_0x418e28(0x1b8)]?_0x418e28(0x1dd):'';}
1
+ (function(_0x17ef24,_0x5f0d68){const _0x36fa48=a22_0x3f37,_0x4f74de=_0x17ef24();while(!![]){try{const _0x108182=-parseInt(_0x36fa48(0x178))/0x1+-parseInt(_0x36fa48(0x18e))/0x2+-parseInt(_0x36fa48(0x185))/0x3+parseInt(_0x36fa48(0x182))/0x4+-parseInt(_0x36fa48(0x168))/0x5+parseInt(_0x36fa48(0x162))/0x6*(parseInt(_0x36fa48(0x17f))/0x7)+parseInt(_0x36fa48(0x18f))/0x8*(parseInt(_0x36fa48(0x16b))/0x9);if(_0x108182===_0x5f0d68)break;else _0x4f74de['push'](_0x4f74de['shift']());}catch(_0x2b4350){_0x4f74de['push'](_0x4f74de['shift']());}}}(a22_0x4ac2,0xc70eb));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x1236d9){const _0x19fb07=_0x1236d9?.['trim']();return _0x19fb07?_0x19fb07:null;}export function projectAppMembers(_0x5e604b){const _0x246614=a22_0x3f37,_0x5cafa8=new Map(),_0x47ab07=[..._0x5e604b]['sort']((_0x21544b,_0x4ed7e2)=>_0x21544b['id']-_0x4ed7e2['id']),_0x1c83fa=(_0x341060,_0x54e3f5,_0x9870e0)=>{const _0x5bc9d8=a22_0x3f37;for(const _0x5e1644 of _0x54e3f5){const _0x2f569f=Number(_0x5e1644[_0x5bc9d8(0x18a)]);if(!Number[_0x5bc9d8(0x165)](_0x2f569f)||_0x2f569f<=0x0)continue;let _0x174859=_0x5cafa8['get'](_0x2f569f);if(!_0x174859)_0x174859={'userId':_0x2f569f,'username':nullableText(_0x5e1644['username']),'displayName':nullableText(_0x5e1644[_0x5bc9d8(0x17c)]),'status':_0x9870e0,'roles':[],'roleKeys':new Set()},_0x5cafa8[_0x5bc9d8(0x175)](_0x2f569f,_0x174859);else{_0x174859['username']??=nullableText(_0x5e1644[_0x5bc9d8(0x17b)]),_0x174859[_0x5bc9d8(0x177)]??=nullableText(_0x5e1644[_0x5bc9d8(0x17c)]);if(_0x9870e0===_0x5bc9d8(0x190))_0x174859[_0x5bc9d8(0x16e)]=_0x5bc9d8(0x190);}const _0x164242=_0x341060['id']+':'+_0x9870e0;if(_0x174859['roleKeys'][_0x5bc9d8(0x170)](_0x164242))continue;_0x174859[_0x5bc9d8(0x18d)][_0x5bc9d8(0x18b)](_0x164242),_0x174859['roles'][_0x5bc9d8(0x174)]({'roleId':_0x341060['id'],'roleName':nullableText(_0x341060[_0x5bc9d8(0x17e)]),'roleType':nullableText(_0x341060['roleType']),'membershipStatus':_0x9870e0});}};for(const _0x5ab682 of _0x47ab07){_0x1c83fa(_0x5ab682,_0x5ab682['userList']??[],_0x246614(0x190)),_0x1c83fa(_0x5ab682,_0x5ab682[_0x246614(0x169)]??[],_0x246614(0x16d));}return[..._0x5cafa8[_0x246614(0x17d)]()][_0x246614(0x181)](_0x325523=>({'userId':_0x325523[_0x246614(0x18a)],'username':_0x325523[_0x246614(0x17b)],'displayName':_0x325523[_0x246614(0x177)],'status':_0x325523[_0x246614(0x16e)],'roles':_0x325523['roles'][_0x246614(0x16a)]((_0x2e05e1,_0x320a45)=>_0x2e05e1[_0x246614(0x172)]-_0x320a45['roleId']||(_0x2e05e1[_0x246614(0x186)]===_0x320a45[_0x246614(0x186)]?0x0:_0x2e05e1[_0x246614(0x186)]===_0x246614(0x190)?-0x1:0x1))}))[_0x246614(0x16a)]((_0xc457be,_0x342003)=>_0xc457be[_0x246614(0x18a)]-_0x342003[_0x246614(0x18a)]);}export function enrichAppListItemsWithMergedSelection(_0xb55bfe,_0x1b014d){const _0x59bd0d=a22_0x3f37;if(!_0x1b014d)return;const _0x328124=_0x1b014d[_0x59bd0d(0x173)]&&typeof _0x1b014d[_0x59bd0d(0x173)]===_0x59bd0d(0x18c)?_0x1b014d['apps']:{},_0x9f26cb=Object[_0x59bd0d(0x164)](_0x328124)['length']>0x0;for(const _0x1bd2bf of _0xb55bfe){_0x1bd2bf[_0x59bd0d(0x184)]=![];}const _0x484148=_0x1b014d[_0x59bd0d(0x17a)]!=null?String(_0x1b014d['appCode'])[_0x59bd0d(0x176)]():'';if(_0x9f26cb){const _0x1855a1=_0x1b014d[_0x59bd0d(0x189)]??_0x1b014d['defaultApp'];if(_0x1855a1)for(const _0x21ba09 of _0xb55bfe){_0x21ba09[_0x59bd0d(0x183)]===!![]&&_0x21ba09['name']===_0x1855a1&&(_0x21ba09['isCurrent']=!![]);}for(const _0x566696 of _0xb55bfe){if(_0x566696[_0x59bd0d(0x183)]!==![])continue;if(_0x1b014d[_0x59bd0d(0x166)])continue;_0x484148&&String(_0x566696[_0x59bd0d(0x179)]??'')[_0x59bd0d(0x176)]()===_0x484148&&(_0x566696[_0x59bd0d(0x184)]=!![]);}return;}if(!_0x484148)return;for(const _0x46cd86 of _0xb55bfe){String(_0x46cd86['appcode']??'')[_0x59bd0d(0x176)]()===_0x484148&&(_0x46cd86[_0x59bd0d(0x184)]=!![]);}}export function resolveAppScopeForWrite(_0x417ec2,_0x3d85a4,_0x9e0d86){const _0x555e2e=a22_0x3f37;if(_0x3d85a4)return _0x555e2e(0x187);const _0x26a374=_0x9e0d86[_0x555e2e(0x188)]['apps']&&typeof _0x9e0d86[_0x555e2e(0x188)][_0x555e2e(0x173)]===_0x555e2e(0x18c)?_0x9e0d86[_0x555e2e(0x188)][_0x555e2e(0x173)]:{},_0x445ab3=_0x9e0d86[_0x555e2e(0x161)][_0x555e2e(0x173)]&&typeof _0x9e0d86[_0x555e2e(0x161)]['apps']===_0x555e2e(0x18c)?_0x9e0d86['globalConfig'][_0x555e2e(0x173)]:{};if(Object['prototype'][_0x555e2e(0x167)]['call'](_0x26a374,_0x417ec2))return _0x555e2e(0x180);if(Object[_0x555e2e(0x171)]['hasOwnProperty']['call'](_0x445ab3,_0x417ec2))return _0x555e2e(0x187);return _0x555e2e(0x180);}export function appDefinedIn(_0x4b616f,_0x4c5133,_0x59dcce,_0x5ea2ba){const _0x1ffc80=a22_0x3f37;if(_0x5ea2ba)return Object['prototype'][_0x1ffc80(0x167)][_0x1ffc80(0x16c)](_0x59dcce,_0x4b616f)?_0x1ffc80(0x180):_0x1ffc80(0x187);const _0x140b00=Object['prototype'][_0x1ffc80(0x167)][_0x1ffc80(0x16c)](_0x4c5133,_0x4b616f),_0x5c00c8=Object[_0x1ffc80(0x171)][_0x1ffc80(0x167)]['call'](_0x59dcce,_0x4b616f);if(_0x140b00&&_0x5c00c8)return'both';if(_0x5c00c8)return'project';return _0x1ffc80(0x187);}function a22_0x4ac2(){const _0x283f7d=['ACTIVE','length','globalConfig','70506weVHie','\x20(global)','keys','isFinite','defaultApp','hasOwnProperty','6596230sNHVrV','applyUserList','sort','31510089OegNXW','call','PENDING','status','inherit','has','prototype','roleId','apps','push','set','trim','displayName','1524502nCGVYi','appcode','appCode','username','nickname','values','roleName','399htGTev','project','map','4607616uFRBVU','named','isCurrent','4794729cTYkTu','membershipStatus','global','projectConfig','currentApp','userId','add','object','roleKeys','131004OTxHOj','8qSaavz'];a22_0x4ac2=function(){return _0x283f7d;};return a22_0x4ac2();}function a22_0x3f37(_0x54c3cd,_0x4ebcd9){_0x54c3cd=_0x54c3cd-0x161;const _0x4ac232=a22_0x4ac2();let _0x3f374a=_0x4ac232[_0x54c3cd];return _0x3f374a;}export function resolveDefaultAppSource(_0x5be162){const _0x99ba44=a22_0x3f37,_0x4c3b18=_0x5be162['projectConfig']['apps']&&typeof _0x5be162[_0x99ba44(0x188)][_0x99ba44(0x173)]===_0x99ba44(0x18c)?_0x5be162[_0x99ba44(0x188)][_0x99ba44(0x173)]:{};if(_0x99ba44(0x166)in _0x5be162['projectConfig'])return _0x99ba44(0x180);if(Object[_0x99ba44(0x164)](_0x4c3b18)[_0x99ba44(0x191)]>0x0)return _0x99ba44(0x180);if(_0x5be162[_0x99ba44(0x188)][_0x99ba44(0x16f)]===![])return null;if(_0x5be162[_0x99ba44(0x161)][_0x99ba44(0x166)])return _0x99ba44(0x187);return null;}export function getConfigPath(_0x2ccef6={}){const _0x8516c7=a22_0x3f37,_0x571144=_0x2ccef6[_0x8516c7(0x187)]?_0x8516c7(0x187):_0x8516c7(0x180);return resolveWriteConfigPath(_0x571144);}export function readConfig(_0x2b2014={}){return readConfigFile(getConfigPath(_0x2b2014));}export function writeConfig(_0x9749b4,_0xc36c6={}){writeConfigFile(getConfigPath(_0xc36c6),_0x9749b4);}export function scopeLabel(_0xc032b){const _0x4522be=a22_0x3f37;return _0xc032b[_0x4522be(0x187)]?_0x4522be(0x163):'';}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigDelete: CommandDefinition;
@@ -1 +1 @@
1
- const a23_0x3645ad=a23_0x3bc6;function a23_0x4972(){const _0x319ac3=['43672KprOqm','App\x20config\x20server\x20id\x20missing\x20for\x20key=','Delete\x20one\x20runtime\x20app-config\x20key','apiError','1755971EMWzsV','appCode:\x20','validation','isFinite','186452NZVeUX','App\x20config\x20key\x20not\x20found:\x20','780EcdTvO','/smartapi/app-config/delete','690wRSuJu','appCode','1659776PLgRIa','app-config','high-risk-write','1114218CetTdc','642SPvGDH','number','Deleted\x20app\x20config\x20','1955NBgKtm'];a23_0x4972=function(){return _0x319ac3;};return a23_0x4972();}function a23_0x3bc6(_0x54eb01,_0x261baf){_0x54eb01=_0x54eb01-0x150;const _0x4972cc=a23_0x4972();let _0x3bc677=_0x4972cc[_0x54eb01];return _0x3bc677;}(function(_0x360f1a,_0x16beae){const _0xc950ed=a23_0x3bc6,_0x4cfdbd=_0x360f1a();while(!![]){try{const _0x5c03c1=-parseInt(_0xc950ed(0x158))/0x1+parseInt(_0xc950ed(0x160))/0x2+parseInt(_0xc950ed(0x154))/0x3*(-parseInt(_0xc950ed(0x162))/0x4)+-parseInt(_0xc950ed(0x157))/0x5*(parseInt(_0xc950ed(0x164))/0x6)+parseInt(_0xc950ed(0x15c))/0x7+-parseInt(_0xc950ed(0x150))/0x8+parseInt(_0xc950ed(0x153))/0x9;if(_0x5c03c1===_0x16beae)break;else _0x4cfdbd['push'](_0x4cfdbd['shift']());}catch(_0xa2d167){_0x4cfdbd['push'](_0x4cfdbd['shift']());}}}(a23_0x4972,0x1fbfa));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const DELETE_PATH=a23_0x3645ad(0x163);export const appConfigDelete={'service':a23_0x3645ad(0x151),'command':'delete','description':a23_0x3645ad(0x15a),'risk':a23_0x3645ad(0x152),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54b78c){readKeyArg(_0x54b78c);},async 'dryRun'(_0x220929){const _0x5564e0=a23_0x3645ad,_0x39844f=readKeyArg(_0x220929),_0x3c76d2=await mustGetByKey(_0x220929[_0x5564e0(0x165)],_0x39844f);return asAppConfigDryRunResult(buildMutationData({'operation':'delete','appCode':_0x220929[_0x5564e0(0x165)],'key':_0x39844f,'before':projectAppConfig(_0x3c76d2),'after':null,'dryRun':!![]}),{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x55b25b){const _0x4f32b8=a23_0x3645ad,_0x455176=readKeyArg(_0x55b25b),_0x2b1509=await mustGetByKey(_0x55b25b['appCode'],_0x455176);return await withAppConfigApiBoundary('delete',{'appCode':_0x55b25b['appCode'],'key':_0x455176},()=>deleteAppConfig({'appCode':_0x55b25b[_0x4f32b8(0x165)],'id':requireAppConfigId(_0x2b1509,_0x455176,_0x55b25b['appCode'])})),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x55b25b[_0x4f32b8(0x165)],'key':_0x455176,'before':projectAppConfig(_0x2b1509),'after':null,'dryRun':![]}),'message':_0x4f32b8(0x156)+_0x455176};}};async function mustGetByKey(_0x53b107,_0x4c6e8d){const _0x36b44e=a23_0x3645ad,_0x584a53=await withAppConfigApiBoundary('get',{'appCode':_0x53b107,'key':_0x4c6e8d},()=>getAppConfigByKey(_0x53b107,_0x4c6e8d));if(!_0x584a53)throw CliErrors[_0x36b44e(0x15e)](_0x36b44e(0x161)+_0x4c6e8d,_0x36b44e(0x15d)+_0x53b107);return _0x584a53;}function requireAppConfigId(_0x388128,_0xbd9db4,_0x27d491){const _0x35970b=a23_0x3645ad;if(typeof _0x388128['id']===_0x35970b(0x155)&&Number[_0x35970b(0x15f)](_0x388128['id'])&&_0x388128['id']>0x0)return _0x388128['id'];throw CliErrors[_0x35970b(0x15b)](_0x35970b(0x159)+_0xbd9db4+',\x20appCode='+_0x27d491);}
1
+ const a23_0x376bda=a23_0x2b12;(function(_0x6e5c68,_0x35f963){const _0xa2476=a23_0x2b12,_0xe1fca5=_0x6e5c68();while(!![]){try{const _0x39b037=parseInt(_0xa2476(0x168))/0x1*(-parseInt(_0xa2476(0x16e))/0x2)+parseInt(_0xa2476(0x164))/0x3+-parseInt(_0xa2476(0x178))/0x4*(-parseInt(_0xa2476(0x171))/0x5)+parseInt(_0xa2476(0x163))/0x6*(-parseInt(_0xa2476(0x162))/0x7)+-parseInt(_0xa2476(0x170))/0x8+-parseInt(_0xa2476(0x167))/0x9+parseInt(_0xa2476(0x175))/0xa;if(_0x39b037===_0x35f963)break;else _0xe1fca5['push'](_0xe1fca5['shift']());}catch(_0x753b0f){_0xe1fca5['push'](_0xe1fca5['shift']());}}}(a23_0xa691,0xecbcc));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';function a23_0x2b12(_0x56fcf1,_0x58baf1){_0x56fcf1=_0x56fcf1-0x162;const _0xa691bd=a23_0xa691();let _0x2b12b4=_0xa691bd[_0x56fcf1];return _0x2b12b4;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const DELETE_PATH=a23_0x376bda(0x16d);export const appConfigDelete={'service':a23_0x376bda(0x177),'command':a23_0x376bda(0x176),'description':a23_0x376bda(0x16c),'risk':a23_0x376bda(0x174),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x45e83b){readKeyArg(_0x45e83b);},async 'dryRun'(_0x351d1a){const _0x4b5f6c=a23_0x376bda,_0xcd61a4=readKeyArg(_0x351d1a),_0x19830b=await mustGetByKey(_0x351d1a[_0x4b5f6c(0x166)],_0xcd61a4);return asAppConfigDryRunResult(buildMutationData({'operation':_0x4b5f6c(0x176),'appCode':_0x351d1a[_0x4b5f6c(0x166)],'key':_0xcd61a4,'before':projectAppConfig(_0x19830b),'after':null,'dryRun':!![]}),{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x5b1c2b){const _0x26445b=a23_0x376bda,_0x323e56=readKeyArg(_0x5b1c2b),_0x29c07b=await mustGetByKey(_0x5b1c2b[_0x26445b(0x166)],_0x323e56);return await withAppConfigApiBoundary(_0x26445b(0x176),{'appCode':_0x5b1c2b[_0x26445b(0x166)],'key':_0x323e56},()=>deleteAppConfig({'appCode':_0x5b1c2b['appCode'],'id':requireAppConfigId(_0x29c07b,_0x323e56,_0x5b1c2b[_0x26445b(0x166)])})),{'ok':!![],'data':buildMutationData({'operation':_0x26445b(0x176),'appCode':_0x5b1c2b[_0x26445b(0x166)],'key':_0x323e56,'before':projectAppConfig(_0x29c07b),'after':null,'dryRun':![]}),'message':_0x26445b(0x16b)+_0x323e56};}};function a23_0xa691(){const _0x6e84f7=['Deleted\x20app\x20config\x20','Delete\x20one\x20runtime\x20app-config\x20key','/smartapi/app-config/delete','10pSHqoL','apiError','4851560OwiSpU','8020725tDeiWB','App\x20config\x20server\x20id\x20missing\x20for\x20key=','appCode:\x20','high-risk-write','13671250PamjcU','delete','app-config','4hxeFXO','App\x20config\x20key\x20not\x20found:\x20','6355531loQHDv','6vGBKBo','1989285CtyKSj','get','appCode','7911189OlVFxj','54258xFEjnx','validation','number'];a23_0xa691=function(){return _0x6e84f7;};return a23_0xa691();}async function mustGetByKey(_0x18be71,_0x5481b6){const _0x1ef8c0=a23_0x376bda,_0x239088=await withAppConfigApiBoundary(_0x1ef8c0(0x165),{'appCode':_0x18be71,'key':_0x5481b6},()=>getAppConfigByKey(_0x18be71,_0x5481b6));if(!_0x239088)throw CliErrors[_0x1ef8c0(0x169)](_0x1ef8c0(0x179)+_0x5481b6,_0x1ef8c0(0x173)+_0x18be71);return _0x239088;}function requireAppConfigId(_0x113374,_0x3ef24c,_0x11f6de){const _0x558fd6=a23_0x376bda;if(typeof _0x113374['id']===_0x558fd6(0x16a)&&Number['isFinite'](_0x113374['id'])&&_0x113374['id']>0x0)return _0x113374['id'];throw CliErrors[_0x558fd6(0x16f)](_0x558fd6(0x172)+_0x3ef24c+',\x20appCode='+_0x11f6de);}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigGet: CommandDefinition;
@@ -1 +1 @@
1
- const a24_0x37c650=a24_0x41e4;(function(_0x1ec105,_0x57ab43){const _0x395bc5=a24_0x41e4,_0x11fa55=_0x1ec105();while(!![]){try{const _0x3f1d45=parseInt(_0x395bc5(0xe1))/0x1*(-parseInt(_0x395bc5(0xe6))/0x2)+-parseInt(_0x395bc5(0xe4))/0x3+-parseInt(_0x395bc5(0xd8))/0x4*(parseInt(_0x395bc5(0xdc))/0x5)+parseInt(_0x395bc5(0xe3))/0x6+-parseInt(_0x395bc5(0xdf))/0x7+parseInt(_0x395bc5(0xe2))/0x8+parseInt(_0x395bc5(0xd9))/0x9;if(_0x3f1d45===_0x57ab43)break;else _0x11fa55['push'](_0x11fa55['shift']());}catch(_0x227de0){_0x11fa55['push'](_0x11fa55['shift']());}}}(a24_0x502e,0xf1336));function a24_0x41e4(_0x39711d,_0x3fad4d){_0x39711d=_0x39711d-0xd6;const _0x502e4f=a24_0x502e();let _0x41e4e8=_0x502e4f[_0x39711d];return _0x41e4e8;}import{getAppConfigByKey}from'../../core/api-client.js';function a24_0x502e(){const _0x41845b=['1229952UmVSyK','reveal','634940EdkRll','get','appCode:\x20','validation','appCode','\x20with\x20value\x20redacted','\x20with\x20value\x20revealed','Loaded\x20app\x20config\x20','5720900fSfbSA','32893740WpndoA','app-config','App\x20config\x20key\x20not\x20found:\x20','5FrnYxU','read','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','5044200lRNeLe','bool','6hCUJMZ','7199816WRhpao','5392500icrIIN'];a24_0x502e=function(){return _0x41845b;};return a24_0x502e();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a24_0x37c650(0xda),'command':'get','description':a24_0x37c650(0xde),'risk':a24_0x37c650(0xdd),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x2cd37f){readKeyArg(_0x2cd37f);},async 'execute'(_0x2dbbcd){const _0x2c9bea=a24_0x37c650,_0x56049a=readKeyArg(_0x2dbbcd),_0x30b5ee=await withAppConfigApiBoundary(_0x2c9bea(0xe7),{'appCode':_0x2dbbcd[_0x2c9bea(0xea)],'key':_0x56049a},()=>getAppConfigByKey(_0x2dbbcd['appCode'],_0x56049a));if(!_0x30b5ee)throw CliErrors[_0x2c9bea(0xe9)](_0x2c9bea(0xdb)+_0x56049a,_0x2c9bea(0xe8)+_0x2dbbcd[_0x2c9bea(0xea)]);const _0x30d820=projectAppConfig(_0x30b5ee,{'reveal':_0x2dbbcd[_0x2c9bea(0xe0)](_0x2c9bea(0xe5))});return{'ok':!![],'data':{'config':_0x30d820},'message':_0x2dbbcd['bool'](_0x2c9bea(0xe5))?_0x2c9bea(0xd7)+_0x56049a+_0x2c9bea(0xd6):'Loaded\x20app\x20config\x20'+_0x56049a+_0x2c9bea(0xeb)};}};
1
+ const a24_0x8ed9a4=a24_0x2e95;(function(_0x404475,_0x339071){const _0x4fad19=a24_0x2e95,_0x43acd1=_0x404475();while(!![]){try{const _0x54327d=parseInt(_0x4fad19(0x1bb))/0x1+parseInt(_0x4fad19(0x1b4))/0x2*(parseInt(_0x4fad19(0x1c3))/0x3)+-parseInt(_0x4fad19(0x1bd))/0x4*(-parseInt(_0x4fad19(0x1b6))/0x5)+-parseInt(_0x4fad19(0x1b0))/0x6*(-parseInt(_0x4fad19(0x1ba))/0x7)+parseInt(_0x4fad19(0x1c4))/0x8*(parseInt(_0x4fad19(0x1b3))/0x9)+parseInt(_0x4fad19(0x1b2))/0xa+-parseInt(_0x4fad19(0x1c1))/0xb*(parseInt(_0x4fad19(0x1b7))/0xc);if(_0x54327d===_0x339071)break;else _0x43acd1['push'](_0x43acd1['shift']());}catch(_0x399b3b){_0x43acd1['push'](_0x43acd1['shift']());}}}(a24_0x4ed7,0x981c6));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a24_0x2e95(_0x756f43,_0x127bcc){_0x756f43=_0x756f43-0x1af;const _0x4ed7d3=a24_0x4ed7();let _0x2e95f6=_0x4ed7d3[_0x756f43];return _0x2e95f6;}function a24_0x4ed7(){const _0x341143=['256836sjIUtj','read','4501770yQIlEn','5033817Lljdin','2hkeFpJ','appCode','15Mrbxdj','93360zfRhSt','reveal','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','147wotDPD','772084HMvoqp','get','1297460ZpdVWF','\x20with\x20value\x20revealed','bool','App\x20config\x20key\x20not\x20found:\x20','5225UxYYFX','\x20with\x20value\x20redacted','1994853XsrIZW','8ZJiLiq','Loaded\x20app\x20config\x20'];a24_0x4ed7=function(){return _0x341143;};return a24_0x4ed7();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':'app-config','command':'get','description':a24_0x8ed9a4(0x1b9),'risk':a24_0x8ed9a4(0x1b1),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x20212c){readKeyArg(_0x20212c);},async 'execute'(_0x270e55){const _0x78bd93=a24_0x8ed9a4,_0x2dceaa=readKeyArg(_0x270e55),_0xf4c5d7=await withAppConfigApiBoundary(_0x78bd93(0x1bc),{'appCode':_0x270e55[_0x78bd93(0x1b5)],'key':_0x2dceaa},()=>getAppConfigByKey(_0x270e55[_0x78bd93(0x1b5)],_0x2dceaa));if(!_0xf4c5d7)throw CliErrors['validation'](_0x78bd93(0x1c0)+_0x2dceaa,'appCode:\x20'+_0x270e55[_0x78bd93(0x1b5)]);const _0x3af71e=projectAppConfig(_0xf4c5d7,{'reveal':_0x270e55[_0x78bd93(0x1bf)]('reveal')});return{'ok':!![],'data':{'config':_0x3af71e},'message':_0x270e55[_0x78bd93(0x1bf)](_0x78bd93(0x1b8))?_0x78bd93(0x1af)+_0x2dceaa+_0x78bd93(0x1be):'Loaded\x20app\x20config\x20'+_0x2dceaa+_0x78bd93(0x1c2)};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- (function(_0x5930bf,_0x4728c0){const _0x24c1e3=a25_0xfd86,_0x13577a=_0x5930bf();while(!![]){try{const _0x19bb83=-parseInt(_0x24c1e3(0x160))/0x1+parseInt(_0x24c1e3(0x15f))/0x2+-parseInt(_0x24c1e3(0x162))/0x3*(parseInt(_0x24c1e3(0x15c))/0x4)+parseInt(_0x24c1e3(0x161))/0x5*(-parseInt(_0x24c1e3(0x15d))/0x6)+-parseInt(_0x24c1e3(0x15e))/0x7+-parseInt(_0x24c1e3(0x163))/0x8+parseInt(_0x24c1e3(0x164))/0x9;if(_0x19bb83===_0x4728c0)break;else _0x13577a['push'](_0x13577a['shift']());}catch(_0x4fbc61){_0x13577a['push'](_0x13577a['shift']());}}}(a25_0x1708,0x19d06));import{appConfigList}from'../../commands/app-config/list.js';function a25_0xfd86(_0x2c618d,_0x5066a8){_0x2c618d=_0x2c618d-0x15c;const _0x17082e=a25_0x1708();let _0xfd8685=_0x17082e[_0x2c618d];return _0xfd8685;}import{appConfigGet}from'../../commands/app-config/get.js';import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];function a25_0x1708(){const _0x264da6=['1988424AVdmOk','53616wBbeip','606Mwnoji','1241562ksaady','402288FUsoEp','9475OpfZEI','1215iLnGOe','18TDGZRY','196304wAOkpT'];a25_0x1708=function(){return _0x264da6;};return a25_0x1708();}
1
+ function a25_0x4825(_0x5a01f4,_0x22f097){_0x5a01f4=_0x5a01f4-0x184;const _0x298bca=a25_0x298b();let _0x482504=_0x298bca[_0x5a01f4];return _0x482504;}(function(_0x50a88b,_0x53a5a8){const _0x205519=a25_0x4825,_0x3c143d=_0x50a88b();while(!![]){try{const _0x27b566=-parseInt(_0x205519(0x189))/0x1*(-parseInt(_0x205519(0x18c))/0x2)+-parseInt(_0x205519(0x188))/0x3+parseInt(_0x205519(0x184))/0x4*(-parseInt(_0x205519(0x185))/0x5)+-parseInt(_0x205519(0x18b))/0x6+parseInt(_0x205519(0x187))/0x7+-parseInt(_0x205519(0x18a))/0x8+parseInt(_0x205519(0x186))/0x9;if(_0x27b566===_0x53a5a8)break;else _0x3c143d['push'](_0x3c143d['shift']());}catch(_0x210933){_0x3c143d['push'](_0x3c143d['shift']());}}}(a25_0x298b,0x800e3));function a25_0x298b(){const _0x391e4d=['5728aiMQqr','100AzMUds','12138885FFoamP','4980976IZQDac','2277630VQNtmg','1SuizEW','3422000fedGMG','2220114ZpjtRr','99602BSNGLz'];a25_0x298b=function(){return _0x391e4d;};return a25_0x298b();}import{appConfigList}from'../../commands/app-config/list.js';import{appConfigGet}from'../../commands/app-config/get.js';import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigList: CommandDefinition;
@@ -1 +1 @@
1
- function a26_0x4b4d(_0x3f53aa,_0x561500){_0x3f53aa=_0x3f53aa-0x93;const _0x54a906=a26_0x54a9();let _0x4b4d15=_0x54a906[_0x3f53aa];return _0x4b4d15;}const a26_0x1d90a9=a26_0x4b4d;function a26_0x54a9(){const _0x4b2e34=['540945rcFSXi','32816RuuRUb','5382yfKNyC','3uhBRzZ','\x20app\x20config(s)','list','appCode','7BWZEzx','24241BGFWiD','str','trim','1308444QCPPSY','58076iVMoPD','key','117360jWPgFK','3850420qmDYpd','Filter\x20by\x20exact\x20config\x20key','app-config','360Msadqo','11QLLZHS','read','24URuDWF','string','9RsZuFU'];a26_0x54a9=function(){return _0x4b2e34;};return a26_0x54a9();}(function(_0x2bbf99,_0x4e25f4){const _0xc8d6df=a26_0x4b4d,_0x20f4f9=_0x2bbf99();while(!![]){try{const _0x24965e=-parseInt(_0xc8d6df(0xaa))/0x1*(parseInt(_0xc8d6df(0x99))/0x2)+-parseInt(_0xc8d6df(0xa6))/0x3*(-parseInt(_0xc8d6df(0x97))/0x4)+-parseInt(_0xc8d6df(0xa3))/0x5*(parseInt(_0xc8d6df(0xa0))/0x6)+parseInt(_0xc8d6df(0x93))/0x7*(-parseInt(_0xc8d6df(0x9d))/0x8)+parseInt(_0xc8d6df(0xa2))/0x9*(parseInt(_0xc8d6df(0x9a))/0xa)+parseInt(_0xc8d6df(0x9e))/0xb*(-parseInt(_0xc8d6df(0x96))/0xc)+parseInt(_0xc8d6df(0xa5))/0xd*(parseInt(_0xc8d6df(0xa4))/0xe);if(_0x24965e===_0x4e25f4)break;else _0x20f4f9['push'](_0x20f4f9['shift']());}catch(_0x57946c){_0x20f4f9['push'](_0x20f4f9['shift']());}}}(a26_0x54a9,0x3fdd5));import{listAppConfigs}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppConfig,readOptionalTags,TAGS_FLAG,validateKey,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigList={'service':a26_0x1d90a9(0x9c),'command':a26_0x1d90a9(0xa8),'description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':a26_0x1d90a9(0x9f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a26_0x1d90a9(0x98),'type':a26_0x1d90a9(0xa1),'description':a26_0x1d90a9(0x9b)},TAGS_FLAG],async 'validate'(_0x30a80b){const _0xb00cac=a26_0x1d90a9,_0x3cc269=_0x30a80b[_0xb00cac(0x94)](_0xb00cac(0x98))[_0xb00cac(0x95)]();if(_0x3cc269)validateKey(_0x3cc269);readOptionalTags(_0x30a80b);},async 'execute'(_0x2549c3){const _0x3bb5b5=a26_0x1d90a9,_0xe189f5=_0x2549c3[_0x3bb5b5(0x94)](_0x3bb5b5(0x98))[_0x3bb5b5(0x95)]()||undefined,_0x1ef624=readOptionalTags(_0x2549c3),_0xbcd161=await withAppConfigApiBoundary(_0x3bb5b5(0xa8),{'appCode':_0x2549c3[_0x3bb5b5(0xa9)]},()=>listAppConfigs(_0x2549c3[_0x3bb5b5(0xa9)],{'key':_0xe189f5,'tags':_0x1ef624})),_0x3223b6=_0xbcd161['map'](_0x3f56a2=>projectAppConfig(_0x3f56a2));return{'ok':!![],'data':{'appCode':_0x2549c3['appCode'],'count':_0x3223b6['length'],'configs':_0x3223b6},'message':'Found\x20'+_0x3223b6['length']+_0x3bb5b5(0xa7)};}};
1
+ const a26_0xb8ba22=a26_0x302b;function a26_0x31dd(){const _0x3669fc=['7EQYCoB','appCode','Filter\x20by\x20exact\x20config\x20key','5848617SaikYa','map','str','read','length','7256305sCvUjj','Found\x20','20790936dVloQQ','306279rlsBzr','key','5621232TuRnov','2023300doknuS','4535916hsIFcI','trim'];a26_0x31dd=function(){return _0x3669fc;};return a26_0x31dd();}function a26_0x302b(_0x414cdb,_0x444aaf){_0x414cdb=_0x414cdb-0xb5;const _0x31dd3b=a26_0x31dd();let _0x302bc6=_0x31dd3b[_0x414cdb];return _0x302bc6;}(function(_0xb193e4,_0x1dac8f){const _0x1d0686=a26_0x302b,_0x2a1323=_0xb193e4();while(!![]){try{const _0x559ab5=-parseInt(_0x1d0686(0xb8))/0x1+-parseInt(_0x1d0686(0xbb))/0x2+-parseInt(_0x1d0686(0xc1))/0x3+parseInt(_0x1d0686(0xbc))/0x4+parseInt(_0x1d0686(0xb5))/0x5+-parseInt(_0x1d0686(0xba))/0x6*(parseInt(_0x1d0686(0xbe))/0x7)+parseInt(_0x1d0686(0xb7))/0x8;if(_0x559ab5===_0x1dac8f)break;else _0x2a1323['push'](_0x2a1323['shift']());}catch(_0x50de3e){_0x2a1323['push'](_0x2a1323['shift']());}}}(a26_0x31dd,0xef337));import{listAppConfigs}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppConfig,readOptionalTags,TAGS_FLAG,validateKey,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigList={'service':'app-config','command':'list','description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':a26_0xb8ba22(0xc4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a26_0xb8ba22(0xb9),'type':'string','description':a26_0xb8ba22(0xc0)},TAGS_FLAG],async 'validate'(_0x1a7447){const _0x410c0b=a26_0xb8ba22,_0x124273=_0x1a7447[_0x410c0b(0xc3)]('key')[_0x410c0b(0xbd)]();if(_0x124273)validateKey(_0x124273);readOptionalTags(_0x1a7447);},async 'execute'(_0x46e94f){const _0x5d56db=a26_0xb8ba22,_0x215e1f=_0x46e94f['str']('key')['trim']()||undefined,_0x3094fd=readOptionalTags(_0x46e94f),_0x44398f=await withAppConfigApiBoundary('list',{'appCode':_0x46e94f[_0x5d56db(0xbf)]},()=>listAppConfigs(_0x46e94f['appCode'],{'key':_0x215e1f,'tags':_0x3094fd})),_0x5c1afa=_0x44398f[_0x5d56db(0xc2)](_0xa02f15=>projectAppConfig(_0xa02f15));return{'ok':!![],'data':{'appCode':_0x46e94f[_0x5d56db(0xbf)],'count':_0x5c1afa[_0x5d56db(0xc5)],'configs':_0x5c1afa},'message':_0x5d56db(0xb6)+_0x5c1afa[_0x5d56db(0xc5)]+'\x20app\x20config(s)'};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigSet: CommandDefinition;
@@ -1 +1 @@
1
- const a27_0x2a05ba=a27_0x282a;function a27_0x282a(_0x4c33ec,_0x39e958){_0x4c33ec=_0x4c33ec-0xd8;const _0x49327d=a27_0x4932();let _0x282a71=_0x49327d[_0x4c33ec];return _0x282a71;}(function(_0x2a4151,_0x4cb24d){const _0xeebacc=a27_0x282a,_0x313def=_0x2a4151();while(!![]){try{const _0x2cb3f1=parseInt(_0xeebacc(0xe1))/0x1+-parseInt(_0xeebacc(0xdd))/0x2*(parseInt(_0xeebacc(0xe6))/0x3)+-parseInt(_0xeebacc(0xf2))/0x4+-parseInt(_0xeebacc(0xeb))/0x5+-parseInt(_0xeebacc(0xe4))/0x6+-parseInt(_0xeebacc(0xdb))/0x7*(parseInt(_0xeebacc(0xee))/0x8)+parseInt(_0xeebacc(0xef))/0x9;if(_0x2cb3f1===_0x4cb24d)break;else _0x313def['push'](_0x313def['shift']());}catch(_0x1c7ced){_0x313def['push'](_0x313def['shift']());}}}(a27_0x4932,0x574ab));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a27_0x4932(){const _0x371b75=['1512938RsoGbT','string','2KqtHzL','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','Read\x20config\x20value\x20from\x20file','\x20app\x20config\x20','565896efPkif','isFinite','POST','3261222vVViSp','update','1637619LkmNsW','set','create','get','Updated','1848900dUGieI','file','app-config','16JqwXdX','17921655jGWArk','tags','appCode','1232744dYVLfR','App\x20config\x20server\x20id\x20missing\x20for\x20key=','Created','number'];a27_0x4932=function(){return _0x371b75;};return a27_0x4932();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH='/smartapi/app-config/create',UPDATE_PATH='/smartapi/app-config/update';export const appConfigSet={'service':a27_0x2a05ba(0xed),'command':a27_0x2a05ba(0xe7),'description':a27_0x2a05ba(0xde),'risk':'high-risk-write','args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a27_0x2a05ba(0xec),'type':a27_0x2a05ba(0xdc),'description':a27_0x2a05ba(0xdf)}],async 'validate'(_0x3588ad){readKeyArg(_0x3588ad),readOptionalTags(_0x3588ad),assertSingleValueSource(_0x3588ad);},async 'dryRun'(_0x386f0d){const _0x28bf38=a27_0x2a05ba,_0xaf7d48=readKeyArg(_0x386f0d),_0x272ab3=readOptionalTags(_0x386f0d),_0x54defc=assertSingleValueSource(_0x386f0d);await assertValueSourceReadable(_0x54defc);const _0xf03d0b=await withAppConfigApiBoundary('get',{'appCode':_0x386f0d[_0x28bf38(0xf1)],'key':_0xaf7d48},()=>getAppConfigByKey(_0x386f0d[_0x28bf38(0xf1)],_0xaf7d48)),_0x3212da=_0xf03d0b?_0x28bf38(0xe5):_0x28bf38(0xe8),_0xbaf7f6=_0xf03d0b?projectAppConfig(_0xf03d0b):null,_0x24bc72=plannedAppConfig({'appCode':_0x386f0d[_0x28bf38(0xf1)],'key':_0xaf7d48,'tags':_0x272ab3??_0xf03d0b?.[_0x28bf38(0xf0)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x3212da,'appCode':_0x386f0d['appCode'],'key':_0xaf7d48,'before':_0xbaf7f6,'after':_0x24bc72,'dryRun':!![]}),{'method':_0x28bf38(0xe3),'url':_0x3212da==='update'?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0xcb56e5){const _0x5c800e=a27_0x2a05ba,_0x52ad4f=readKeyArg(_0xcb56e5),_0xce3fad=readOptionalTags(_0xcb56e5),_0x158807=await withAppConfigApiBoundary('get',{'appCode':_0xcb56e5[_0x5c800e(0xf1)],'key':_0x52ad4f},()=>getAppConfigByKey(_0xcb56e5['appCode'],_0x52ad4f)),_0x17bde9=_0x158807?projectAppConfig(_0x158807):null,_0x5d534d=_0x158807?'update':_0x5c800e(0xe8),{value:_0x30b897,warnings:_0x362c85}=await readAppConfigValue(_0xcb56e5),_0x1804ae={'appCode':_0xcb56e5[_0x5c800e(0xf1)],'key':_0x52ad4f,'value':_0x30b897,'tags':_0xce3fad??_0x158807?.[_0x5c800e(0xf0)]??undefined};await withAppConfigApiBoundary(_0x5d534d,{'appCode':_0xcb56e5['appCode'],'key':_0x52ad4f},async()=>{const _0xa1295f=_0x5c800e;_0x158807?await updateAppConfig({..._0x1804ae,'id':requireAppConfigId(_0x158807,_0x52ad4f,_0xcb56e5[_0xa1295f(0xf1)])}):await createAppConfig(_0x1804ae);});const _0x34f59b=await withAppConfigApiBoundary(_0x5c800e(0xe9),{'appCode':_0xcb56e5[_0x5c800e(0xf1)],'key':_0x52ad4f},()=>getAppConfigByKey(_0xcb56e5[_0x5c800e(0xf1)],_0x52ad4f)),_0x23509e=_0x34f59b?projectAppConfig(_0x34f59b):plannedAppConfig({'appCode':_0xcb56e5[_0x5c800e(0xf1)],'key':_0x52ad4f,'tags':_0x1804ae[_0x5c800e(0xf0)],'hasValue':_0x30b897!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x5d534d,'appCode':_0xcb56e5['appCode'],'key':_0x52ad4f,'before':_0x17bde9,'after':_0x23509e,'dryRun':![],'warnings':_0x362c85}),'message':(_0x5d534d==='update'?_0x5c800e(0xea):_0x5c800e(0xd9))+_0x5c800e(0xe0)+_0x52ad4f};}};function requireAppConfigId(_0x1eff57,_0x53eae4,_0x2b2631){const _0x5b1e44=a27_0x2a05ba;if(typeof _0x1eff57['id']===_0x5b1e44(0xda)&&Number[_0x5b1e44(0xe2)](_0x1eff57['id'])&&_0x1eff57['id']>0x0)return _0x1eff57['id'];throw CliErrors['apiError'](_0x5b1e44(0xd8)+_0x53eae4+',\x20appCode='+_0x2b2631);}
1
+ const a27_0x3bac98=a27_0x2726;(function(_0x23443e,_0x285a97){const _0x3399bf=a27_0x2726,_0xfd755d=_0x23443e();while(!![]){try{const _0x473486=parseInt(_0x3399bf(0x1bf))/0x1*(parseInt(_0x3399bf(0x1d0))/0x2)+-parseInt(_0x3399bf(0x1c1))/0x3+-parseInt(_0x3399bf(0x1d2))/0x4*(parseInt(_0x3399bf(0x1ce))/0x5)+-parseInt(_0x3399bf(0x1c3))/0x6*(-parseInt(_0x3399bf(0x1d8))/0x7)+-parseInt(_0x3399bf(0x1cd))/0x8*(parseInt(_0x3399bf(0x1d5))/0x9)+-parseInt(_0x3399bf(0x1ca))/0xa*(-parseInt(_0x3399bf(0x1d1))/0xb)+parseInt(_0x3399bf(0x1d7))/0xc*(parseInt(_0x3399bf(0x1d4))/0xd);if(_0x473486===_0x285a97)break;else _0xfd755d['push'](_0xfd755d['shift']());}catch(_0xd8daa3){_0xfd755d['push'](_0xfd755d['shift']());}}}(a27_0x1a2e,0xe049c));function a27_0x1a2e(){const _0x3eeaeb=[',\x20appCode=','Updated','203663MKEBvu','update','4998618DJHuEu','Created','4594332sKqhTi','tags','string','high-risk-write','get','isFinite','POST','57190eoRvLX','create','/smartapi/app-config/create','8sVSBCT','250igPENa','appCode','14FiOjsP','2596UndBfc','119192gFfaFJ','/smartapi/app-config/update','13ujDCov','6726033NdmFqn','set','6184296QroyKg','14TqSstb','number','apiError'];a27_0x1a2e=function(){return _0x3eeaeb;};return a27_0x1a2e();}import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH=a27_0x3bac98(0x1cc),UPDATE_PATH=a27_0x3bac98(0x1d3);function a27_0x2726(_0x56da5d,_0x17a443){_0x56da5d=_0x56da5d-0x1be;const _0x1a2eec=a27_0x1a2e();let _0x27264d=_0x1a2eec[_0x56da5d];return _0x27264d;}export const appConfigSet={'service':'app-config','command':a27_0x3bac98(0x1d6),'description':'Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','risk':a27_0x3bac98(0x1c6),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':'file','type':a27_0x3bac98(0x1c5),'description':'Read\x20config\x20value\x20from\x20file'}],async 'validate'(_0x3e7da3){readKeyArg(_0x3e7da3),readOptionalTags(_0x3e7da3),assertSingleValueSource(_0x3e7da3);},async 'dryRun'(_0x3fc062){const _0x4dd44c=a27_0x3bac98,_0x4e19d9=readKeyArg(_0x3fc062),_0x253d6a=readOptionalTags(_0x3fc062),_0x31b501=assertSingleValueSource(_0x3fc062);await assertValueSourceReadable(_0x31b501);const _0xe258e9=await withAppConfigApiBoundary('get',{'appCode':_0x3fc062['appCode'],'key':_0x4e19d9},()=>getAppConfigByKey(_0x3fc062[_0x4dd44c(0x1cf)],_0x4e19d9)),_0x2afac8=_0xe258e9?_0x4dd44c(0x1c0):_0x4dd44c(0x1cb),_0x509c9c=_0xe258e9?projectAppConfig(_0xe258e9):null,_0x4ba735=plannedAppConfig({'appCode':_0x3fc062['appCode'],'key':_0x4e19d9,'tags':_0x253d6a??_0xe258e9?.[_0x4dd44c(0x1c4)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x2afac8,'appCode':_0x3fc062[_0x4dd44c(0x1cf)],'key':_0x4e19d9,'before':_0x509c9c,'after':_0x4ba735,'dryRun':!![]}),{'method':_0x4dd44c(0x1c9),'url':_0x2afac8==='update'?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x1758a5){const _0x1b3d67=a27_0x3bac98,_0x420c82=readKeyArg(_0x1758a5),_0x161e27=readOptionalTags(_0x1758a5),_0x1eff6a=await withAppConfigApiBoundary(_0x1b3d67(0x1c7),{'appCode':_0x1758a5[_0x1b3d67(0x1cf)],'key':_0x420c82},()=>getAppConfigByKey(_0x1758a5[_0x1b3d67(0x1cf)],_0x420c82)),_0x187f4e=_0x1eff6a?projectAppConfig(_0x1eff6a):null,_0x3dbe58=_0x1eff6a?_0x1b3d67(0x1c0):_0x1b3d67(0x1cb),{value:_0x450e8f,warnings:_0x1b18a0}=await readAppConfigValue(_0x1758a5),_0x52f99a={'appCode':_0x1758a5['appCode'],'key':_0x420c82,'value':_0x450e8f,'tags':_0x161e27??_0x1eff6a?.['tags']??undefined};await withAppConfigApiBoundary(_0x3dbe58,{'appCode':_0x1758a5[_0x1b3d67(0x1cf)],'key':_0x420c82},async()=>{const _0x35913f=_0x1b3d67;_0x1eff6a?await updateAppConfig({..._0x52f99a,'id':requireAppConfigId(_0x1eff6a,_0x420c82,_0x1758a5[_0x35913f(0x1cf)])}):await createAppConfig(_0x52f99a);});const _0x4561b8=await withAppConfigApiBoundary(_0x1b3d67(0x1c7),{'appCode':_0x1758a5[_0x1b3d67(0x1cf)],'key':_0x420c82},()=>getAppConfigByKey(_0x1758a5[_0x1b3d67(0x1cf)],_0x420c82)),_0x38fe63=_0x4561b8?projectAppConfig(_0x4561b8):plannedAppConfig({'appCode':_0x1758a5[_0x1b3d67(0x1cf)],'key':_0x420c82,'tags':_0x52f99a[_0x1b3d67(0x1c4)],'hasValue':_0x450e8f!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x3dbe58,'appCode':_0x1758a5[_0x1b3d67(0x1cf)],'key':_0x420c82,'before':_0x187f4e,'after':_0x38fe63,'dryRun':![],'warnings':_0x1b18a0}),'message':(_0x3dbe58===_0x1b3d67(0x1c0)?_0x1b3d67(0x1be):_0x1b3d67(0x1c2))+'\x20app\x20config\x20'+_0x420c82};}};function requireAppConfigId(_0x432602,_0x5be529,_0x105a8f){const _0x4d5c6b=a27_0x3bac98;if(typeof _0x432602['id']===_0x4d5c6b(0x1d9)&&Number[_0x4d5c6b(0x1c8)](_0x432602['id'])&&_0x432602['id']>0x0)return _0x432602['id'];throw CliErrors[_0x4d5c6b(0x1da)]('App\x20config\x20server\x20id\x20missing\x20for\x20key='+_0x5be529+_0x4d5c6b(0x1db)+_0x105a8f);}