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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const apiList: CommandDefinition;
@@ -1 +1 @@
1
- const a15_0x216ca7=a15_0x1b95;function a15_0x260f(){const _0xb6516b=['4pPikPM','10591009CFOXUF','56DrYVjU','production','27JyUhUp','global','40IbItyZ','boolean','appCode','593048shOyGk','1753583ydKJkU','appcode','4722QMhBcX','name','push','isDefault','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','cookie','36ZbitCI','3959345TBhIAX','list','1121274YfvyMB','5565kxSzcW','map','166224ZokjRm','rawFlags'];a15_0x260f=function(){return _0xb6516b;};return a15_0x260f();}(function(_0x155cda,_0x6cd04c){const _0x2f4f69=a15_0x1b95,_0x567f73=_0x155cda();while(!![]){try{const _0x437bfb=parseInt(_0x2f4f69(0x129))/0x1+-parseInt(_0x2f4f69(0x121))/0x2*(-parseInt(_0x2f4f69(0x11d))/0x3)+parseInt(_0x2f4f69(0x11f))/0x4*(-parseInt(_0x2f4f69(0x118))/0x5)+parseInt(_0x2f4f69(0x12b))/0x6*(parseInt(_0x2f4f69(0x11b))/0x7)+-parseInt(_0x2f4f69(0x128))/0x8*(parseInt(_0x2f4f69(0x123))/0x9)+-parseInt(_0x2f4f69(0x125))/0xa*(-parseInt(_0x2f4f69(0x11a))/0xb)+parseInt(_0x2f4f69(0x117))/0xc*(-parseInt(_0x2f4f69(0x120))/0xd);if(_0x437bfb===_0x6cd04c)break;else _0x567f73['push'](_0x567f73['shift']());}catch(_0x343063){_0x567f73['push'](_0x567f73['shift']());}}}(a15_0x260f,0xd6dc3));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';function a15_0x1b95(_0x5c6f04,_0x8415f1){_0x5c6f04=_0x5c6f04-0x113;const _0x260f01=a15_0x260f();let _0x1b9556=_0x260f01[_0x5c6f04];return _0x1b9556;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':'api','command':a15_0x216ca7(0x119),'description':a15_0x216ca7(0x115),'risk':'read','requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x216ca7(0x124),'type':a15_0x216ca7(0x126),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x3ba30a){const _0x3c3d03=a15_0x216ca7,_0x1e9826=_0x3ba30a[_0x3c3d03(0x11e)][_0x3c3d03(0x12a)]?String(_0x3ba30a[_0x3c3d03(0x11e)]['appcode']):undefined,_0x405965=resolveTargetApps(_0x3ba30a,_0x1e9826);if(_0x405965){const _0x96a844=[];for(const _0xfafff0 of _0x405965){const _0x488296=_0xfafff0[_0x3c3d03(0x116)]||_0x3ba30a[_0x3c3d03(0x116)],_0x3abc63=_0xfafff0['env']||_0x3c3d03(0x122);initEnv(_0x3abc63);const {configArray:_0x1f0d25}=await fetchModelList(_0xfafff0[_0x3c3d03(0x12a)],_0x488296);_0x96a844[_0x3c3d03(0x113)](..._0x1f0d25[_0x3c3d03(0x11c)](_0x5c7e42=>({..._0x5c7e42,'_appName':_0xfafff0[_0x3c3d03(0x12c)],'_appCode':_0xfafff0['appcode'],'_env':_0x3abc63,'_isDefault':_0xfafff0[_0x3c3d03(0x114)]})));}return{'ok':!![],'data':_0x96a844};}const {configArray:_0x46ca76}=await fetchModelList(_0x3ba30a[_0x3c3d03(0x127)],_0x3ba30a['cookie']);return{'ok':!![],'data':_0x46ca76};}};
1
+ const a15_0x2b0ae7=a15_0x462e;(function(_0x219842,_0x497c68){const _0x2b31ba=a15_0x462e,_0x24be53=_0x219842();while(!![]){try{const _0xd39fbe=-parseInt(_0x2b31ba(0xc5))/0x1*(-parseInt(_0x2b31ba(0xc6))/0x2)+-parseInt(_0x2b31ba(0xc3))/0x3+parseInt(_0x2b31ba(0xc7))/0x4*(-parseInt(_0x2b31ba(0xcf))/0x5)+parseInt(_0x2b31ba(0xc0))/0x6*(parseInt(_0x2b31ba(0xce))/0x7)+-parseInt(_0x2b31ba(0xbe))/0x8+parseInt(_0x2b31ba(0xc8))/0x9*(parseInt(_0x2b31ba(0xca))/0xa)+-parseInt(_0x2b31ba(0xcd))/0xb*(-parseInt(_0x2b31ba(0xc9))/0xc);if(_0xd39fbe===_0x497c68)break;else _0x24be53['push'](_0x24be53['shift']());}catch(_0x47332e){_0x24be53['push'](_0x24be53['shift']());}}}(a15_0x3d6a,0x6fa2f));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';function a15_0x462e(_0x407cf4,_0x3c8fc0){_0x407cf4=_0x407cf4-0xb7;const _0x3d6a80=a15_0x3d6a();let _0x462e31=_0x3d6a80[_0x407cf4];return _0x462e31;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x2b0ae7(0xcc),'command':a15_0x2b0ae7(0xc1),'description':a15_0x2b0ae7(0xb9),'risk':'read','requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x2b0ae7(0xbf),'type':a15_0x2b0ae7(0xcb),'description':a15_0x2b0ae7(0xd0),'default':![]}],async 'execute'(_0x5dd57f){const _0x1b118a=a15_0x2b0ae7,_0x322f8f=_0x5dd57f['rawFlags'][_0x1b118a(0xc4)]?String(_0x5dd57f[_0x1b118a(0xb8)]['appcode']):undefined,_0x50263a=resolveTargetApps(_0x5dd57f,_0x322f8f);if(_0x50263a){const _0x3b9d80=[];for(const _0x5dcd8f of _0x50263a){const _0x3861f0=_0x5dcd8f[_0x1b118a(0xb7)]||_0x5dd57f[_0x1b118a(0xb7)],_0x5451fd=_0x5dcd8f['env']||_0x1b118a(0xc2);initEnv(_0x5451fd);const {configArray:_0x1de7ff}=await fetchModelList(_0x5dcd8f[_0x1b118a(0xc4)],_0x3861f0);_0x3b9d80['push'](..._0x1de7ff[_0x1b118a(0xbc)](_0x3abe99=>({..._0x3abe99,'_appName':_0x5dcd8f[_0x1b118a(0xbd)],'_appCode':_0x5dcd8f[_0x1b118a(0xc4)],'_env':_0x5451fd,'_isDefault':_0x5dcd8f[_0x1b118a(0xbb)]})));}return{'ok':!![],'data':_0x3b9d80};}const {configArray:_0x2018bc}=await fetchModelList(_0x5dd57f[_0x1b118a(0xba)],_0x5dd57f[_0x1b118a(0xb7)]);return{'ok':!![],'data':_0x2018bc};}};function a15_0x3d6a(){const _0x577eab=['710320imeFQc','global','6FHGoYt','list','production','671925lnSfUo','appcode','719911PqzwdS','2xLGGFV','359876RaEWEs','342YfSjMb','12QDXsEF','16460KXsTog','boolean','api','1104554yRxlcF','3618566PtWnkG','35GZMvzt','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','cookie','rawFlags','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','appCode','isDefault','map','name'];a15_0x3d6a=function(){return _0x577eab;};return a15_0x3d6a();}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const apiPull: CommandDefinition;
@@ -1 +1 @@
1
- const a16_0x2e8362=a16_0x2df0;(function(_0x4c5fc7,_0x514528){const _0x2dfed7=a16_0x2df0,_0x1ed786=_0x4c5fc7();while(!![]){try{const _0x3593bc=-parseInt(_0x2dfed7(0xb0))/0x1*(parseInt(_0x2dfed7(0x96))/0x2)+-parseInt(_0x2dfed7(0xbe))/0x3*(-parseInt(_0x2dfed7(0xbd))/0x4)+parseInt(_0x2dfed7(0xb4))/0x5*(parseInt(_0x2dfed7(0xaa))/0x6)+parseInt(_0x2dfed7(0xa6))/0x7*(parseInt(_0x2dfed7(0x98))/0x8)+parseInt(_0x2dfed7(0xb3))/0x9+parseInt(_0x2dfed7(0xa7))/0xa*(-parseInt(_0x2dfed7(0xaf))/0xb)+parseInt(_0x2dfed7(0xb5))/0xc;if(_0x3593bc===_0x514528)break;else _0x1ed786['push'](_0x1ed786['shift']());}catch(_0x43fcf0){_0x1ed786['push'](_0x1ed786['shift']());}}}(a16_0x57c6,0x1a957));import a16_0x1a9888 from'ora';import a16_0x4c594f from'node:path';function a16_0x2df0(_0x125a09,_0x1955cc){_0x125a09=_0x125a09-0x93;const _0x57c639=a16_0x57c6();let _0x2df0d2=_0x57c639[_0x125a09];return _0x2df0d2;}import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';import{generateApiFile}from'../../api/generate-api-file.js';function a16_0x57c6(){const _0xce0f68=['157653WaJxXG','rawFlags','client','split','fail','modelCount','\x20dataset(s)\x20→\x20','string','appcode','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','str','apiFilePath','message','11378hZtFyf','isDefault','843016dPImtp','name','Done:\x20','appCode','pull',')...','env','succeed','Output\x20directory\x20(default:\x20','clientFilePath','\x20\x20•\x20','.ts','Failed:\x20','join','7RDVwNI','488810BCVKQu','output','-api','25710SHPbUG','\x20failed','Pulled\x20','api','length','11urbRrH','11vGZbyA','apiDir','-client','71226PxUXxc','30cgZCeA','345540FEKXjT','cookie','\x20app(s)\x20failed','boolean','start','global','includes','slice','4NxiEAV'];a16_0x57c6=function(){return _0xce0f68;};return a16_0x57c6();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';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':a16_0x2e8362(0xad),'command':a16_0x2e8362(0x9c),'description':'Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20('+DEFAULT_API_DIR+'/)','risk':'read','requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':a16_0x2e8362(0xc5),'description':a16_0x2e8362(0xa0)+DEFAULT_API_DIR+'/)'},{'name':a16_0x2e8362(0xba),'type':a16_0x2e8362(0xb8),'description':a16_0x2e8362(0xc7),'default':![]}],async 'execute'(_0x41c955){const _0x48fc20=a16_0x2e8362,_0x2ac469=_0x41c955[_0x48fc20(0xbf)][_0x48fc20(0xc6)]?String(_0x41c955['rawFlags'][_0x48fc20(0xc6)]):undefined,_0x2c425b=_0x41c955[_0x48fc20(0x93)](_0x48fc20(0xa8))||undefined,_0x4801e4=resolveTargetApps(_0x41c955,_0x2ac469);if(_0x4801e4){let _0x2cbc12=0x0,_0x285af4=0x0;for(const _0x25ab0b of _0x4801e4){const _0x18e5d0=_0x25ab0b[_0x48fc20(0xb6)]||_0x41c955['cookie'],_0x1a3349=_0x25ab0b[_0x48fc20(0x9e)]||'production';initEnv(_0x1a3349);const _0x1d89fc=_0x25ab0b[_0x48fc20(0xb1)]||_0x2c425b||_0x41c955[_0x48fc20(0xb1)]||DEFAULT_API_DIR,_0x944ef1=_0x25ab0b[_0x48fc20(0x97)]?'':_0x25ab0b['name']||_0x25ab0b[_0x48fc20(0xc6)],_0x8ae7fd=a16_0x1a9888('Pulling\x20'+_0x25ab0b[_0x48fc20(0x99)]+'\x20('+_0x25ab0b['appcode']+_0x48fc20(0x9d))[_0x48fc20(0xb9)]();try{const {configArray:_0x59484d}=await fetchModelList(_0x25ab0b[_0x48fc20(0xc6)],_0x18e5d0),_0x10fcb7=await generateApiFile(_0x59484d,_0x944ef1,_0x25ab0b['appcode'],_0x25ab0b[_0x48fc20(0x97)],_0x1a3349,_0x1d89fc,_0x25ab0b[_0x48fc20(0x99)]);_0x8ae7fd[_0x48fc20(0x9f)](_0x25ab0b['name']+':\x20'+_0x59484d['length']+_0x48fc20(0xc4)+_0x10fcb7[_0x48fc20(0xc3)]+'\x20model(s)'),writeCliSideChannelLine(_0x48fc20(0xa2)+_0x10fcb7[_0x48fc20(0x94)]),writeCliSideChannelLine(_0x48fc20(0xa2)+_0x10fcb7[_0x48fc20(0xa1)]),_0x2cbc12++;}catch(_0x44854c){_0x8ae7fd['fail'](_0x25ab0b['name']+':\x20'+(_0x44854c instanceof Error?_0x44854c['message']:String(_0x44854c))),_0x285af4++;}}writeCliSideChannelLine('');if(_0x285af4>0x0)writeCliSideChannelLine('!\x20'+_0x285af4+_0x48fc20(0xb7));return{'ok':_0x285af4===0x0,'message':_0x48fc20(0x9a)+_0x2cbc12+'\x20succeeded,\x20'+_0x285af4+_0x48fc20(0xab)};}const _0xc41b2c=_0x2ac469&&_0x2ac469[_0x48fc20(0xbb)]('-')?_0x2ac469[_0x48fc20(0xc1)]('-')[_0x48fc20(0xbc)](0x1)[_0x48fc20(0xa5)]('-'):'',_0x3ed5e0=_0x2c425b||_0x41c955['apiDir']||DEFAULT_API_DIR,_0x13010b=!_0x2ac469,_0x4182e9=a16_0x1a9888('Pulling\x20API\x20config\x20for\x20'+_0x41c955[_0x48fc20(0x9b)]+'...')['start']();try{const {configArray:_0x4f46a4}=await fetchModelList(_0x41c955[_0x48fc20(0x9b)],_0x41c955[_0x48fc20(0xb6)]),_0x27b99b=await generateApiFile(_0x4f46a4,_0xc41b2c,_0x41c955[_0x48fc20(0x9b)],_0x13010b,getEnv(),_0x3ed5e0);_0x4182e9[_0x48fc20(0x9f)](_0x48fc20(0xac)+_0x4f46a4[_0x48fc20(0xae)]+'\x20dataset(s),\x20generated\x20'+_0x27b99b[_0x48fc20(0xc3)]+'\x20model(s)');const _0x1e1c3a=_0xc41b2c?_0xc41b2c+_0x48fc20(0xa9):_0x48fc20(0xad),_0x5924bc=_0xc41b2c?_0xc41b2c+_0x48fc20(0xb2):_0x48fc20(0xc0);return writeCliSideChannelLine(_0x48fc20(0xa2)+a16_0x4c594f[_0x48fc20(0xa5)](_0x3ed5e0,_0x1e1c3a+_0x48fc20(0xa3))),writeCliSideChannelLine(_0x48fc20(0xa2)+a16_0x4c594f[_0x48fc20(0xa5)](_0x3ed5e0,_0x5924bc+'.ts')),{'ok':!![],'data':{'datasetCount':_0x4f46a4[_0x48fc20(0xae)],'modelCount':_0x27b99b[_0x48fc20(0xc3)]}};}catch(_0x228ad5){_0x4182e9[_0x48fc20(0xc2)](_0x48fc20(0xa4)+(_0x228ad5 instanceof Error?_0x228ad5[_0x48fc20(0x95)]:String(_0x228ad5)));throw _0x228ad5;}}};
1
+ const a16_0x1f7ddf=a16_0x2f72;(function(_0x1bf5a6,_0x53252e){const _0x2b498c=a16_0x2f72,_0x37eb04=_0x1bf5a6();while(!![]){try{const _0x4bab0f=parseInt(_0x2b498c(0x1a2))/0x1+parseInt(_0x2b498c(0x1b9))/0x2*(-parseInt(_0x2b498c(0x1b4))/0x3)+-parseInt(_0x2b498c(0x19f))/0x4*(parseInt(_0x2b498c(0x18a))/0x5)+parseInt(_0x2b498c(0x189))/0x6*(parseInt(_0x2b498c(0x195))/0x7)+parseInt(_0x2b498c(0x1b1))/0x8*(-parseInt(_0x2b498c(0x1b3))/0x9)+-parseInt(_0x2b498c(0x193))/0xa*(parseInt(_0x2b498c(0x1bb))/0xb)+parseInt(_0x2b498c(0x1b5))/0xc*(parseInt(_0x2b498c(0x1a0))/0xd);if(_0x4bab0f===_0x53252e)break;else _0x37eb04['push'](_0x37eb04['shift']());}catch(_0x1244ad){_0x37eb04['push'](_0x37eb04['shift']());}}}(a16_0x349d,0x8cf23));function a16_0x2f72(_0x509a36,_0x39c0f4){_0x509a36=_0x509a36-0x188;const _0x349dab=a16_0x349d();let _0x2f723d=_0x349dab[_0x509a36];return _0x2f723d;}import a16_0x3a0f01 from'ora';import a16_0x2462f9 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_0x349d(){const _0x41dc0b=['1014LUtHZc','3682605KHmvJu','...','client','succeed','length','cookie','slice','production','\x20succeeded,\x20','10fCUOWN','appcode','36813SWhwMh','rawFlags','split','fail','apiDir','api','pull','env','join','\x20failed','4TnkuuB','1654211tPLRQh','Done:\x20','247048ZYjZhQ','Pulling\x20API\x20config\x20for\x20','\x20model(s)','-api','global','appCode','Pulling\x20','isDefault','boolean','string','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','\x20dataset(s)\x20→\x20','str','Failed:\x20','output','320136uNRTBF','read','81ahIZkl','78798zZdCXG','252CdsMMT','Pulled\x20','name','\x20\x20•\x20','86wucsyv','message','11050369mskrbW','-client','\x20app(s)\x20failed','modelCount'];a16_0x349d=function(){return _0x41dc0b;};return a16_0x349d();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';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':a16_0x1f7ddf(0x19a),'command':a16_0x1f7ddf(0x19b),'description':'Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20('+DEFAULT_API_DIR+'/)','risk':a16_0x1f7ddf(0x1b2),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x1f7ddf(0x1b0),'type':a16_0x1f7ddf(0x1ab),'description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':a16_0x1f7ddf(0x1a6),'type':a16_0x1f7ddf(0x1aa),'description':a16_0x1f7ddf(0x1ac),'default':![]}],async 'execute'(_0x5339f7){const _0x32d6ca=a16_0x1f7ddf,_0x4af56e=_0x5339f7[_0x32d6ca(0x196)][_0x32d6ca(0x194)]?String(_0x5339f7[_0x32d6ca(0x196)][_0x32d6ca(0x194)]):undefined,_0x251a77=_0x5339f7[_0x32d6ca(0x1ae)]('output')||undefined,_0x4126b2=resolveTargetApps(_0x5339f7,_0x4af56e);if(_0x4126b2){let _0x53c8c4=0x0,_0x58a40a=0x0;for(const _0x1d4bd2 of _0x4126b2){const _0x34a1b9=_0x1d4bd2[_0x32d6ca(0x18f)]||_0x5339f7[_0x32d6ca(0x18f)],_0x8f6cf6=_0x1d4bd2[_0x32d6ca(0x19c)]||_0x32d6ca(0x191);initEnv(_0x8f6cf6);const _0x5ab9cd=_0x1d4bd2[_0x32d6ca(0x199)]||_0x251a77||_0x5339f7['apiDir']||DEFAULT_API_DIR,_0x52958f=_0x1d4bd2[_0x32d6ca(0x1a9)]?'':_0x1d4bd2[_0x32d6ca(0x1b7)]||_0x1d4bd2['appcode'],_0x989596=a16_0x3a0f01(_0x32d6ca(0x1a8)+_0x1d4bd2[_0x32d6ca(0x1b7)]+'\x20('+_0x1d4bd2[_0x32d6ca(0x194)]+')...')['start']();try{const {configArray:_0x4d1a3c}=await fetchModelList(_0x1d4bd2[_0x32d6ca(0x194)],_0x34a1b9),_0x4bbe5c=await generateApiFile(_0x4d1a3c,_0x52958f,_0x1d4bd2[_0x32d6ca(0x194)],_0x1d4bd2[_0x32d6ca(0x1a9)],_0x8f6cf6,_0x5ab9cd,_0x1d4bd2[_0x32d6ca(0x1b7)]);_0x989596[_0x32d6ca(0x18d)](_0x1d4bd2[_0x32d6ca(0x1b7)]+':\x20'+_0x4d1a3c[_0x32d6ca(0x18e)]+_0x32d6ca(0x1ad)+_0x4bbe5c[_0x32d6ca(0x188)]+_0x32d6ca(0x1a4)),writeCliSideChannelLine(_0x32d6ca(0x1b8)+_0x4bbe5c['apiFilePath']),writeCliSideChannelLine(_0x32d6ca(0x1b8)+_0x4bbe5c['clientFilePath']),_0x53c8c4++;}catch(_0x2a41f9){_0x989596['fail'](_0x1d4bd2[_0x32d6ca(0x1b7)]+':\x20'+(_0x2a41f9 instanceof Error?_0x2a41f9[_0x32d6ca(0x1ba)]:String(_0x2a41f9))),_0x58a40a++;}}writeCliSideChannelLine('');if(_0x58a40a>0x0)writeCliSideChannelLine('!\x20'+_0x58a40a+_0x32d6ca(0x1bd));return{'ok':_0x58a40a===0x0,'message':_0x32d6ca(0x1a1)+_0x53c8c4+_0x32d6ca(0x192)+_0x58a40a+_0x32d6ca(0x19e)};}const _0x104823=_0x4af56e&&_0x4af56e['includes']('-')?_0x4af56e[_0x32d6ca(0x197)]('-')[_0x32d6ca(0x190)](0x1)[_0x32d6ca(0x19d)]('-'):'',_0x32298a=_0x251a77||_0x5339f7[_0x32d6ca(0x199)]||DEFAULT_API_DIR,_0x372b69=!_0x4af56e,_0x3785de=a16_0x3a0f01(_0x32d6ca(0x1a3)+_0x5339f7[_0x32d6ca(0x1a7)]+_0x32d6ca(0x18b))['start']();try{const {configArray:_0xbd4888}=await fetchModelList(_0x5339f7[_0x32d6ca(0x1a7)],_0x5339f7[_0x32d6ca(0x18f)]),_0x1606c0=await generateApiFile(_0xbd4888,_0x104823,_0x5339f7[_0x32d6ca(0x1a7)],_0x372b69,getEnv(),_0x32298a);_0x3785de[_0x32d6ca(0x18d)](_0x32d6ca(0x1b6)+_0xbd4888[_0x32d6ca(0x18e)]+'\x20dataset(s),\x20generated\x20'+_0x1606c0[_0x32d6ca(0x188)]+'\x20model(s)');const _0x207227=_0x104823?_0x104823+_0x32d6ca(0x1a5):'api',_0x7af869=_0x104823?_0x104823+_0x32d6ca(0x1bc):_0x32d6ca(0x18c);return writeCliSideChannelLine(_0x32d6ca(0x1b8)+a16_0x2462f9[_0x32d6ca(0x19d)](_0x32298a,_0x207227+'.ts')),writeCliSideChannelLine(_0x32d6ca(0x1b8)+a16_0x2462f9[_0x32d6ca(0x19d)](_0x32298a,_0x7af869+'.ts')),{'ok':!![],'data':{'datasetCount':_0xbd4888[_0x32d6ca(0x18e)],'modelCount':_0x1606c0['modelCount']}};}catch(_0x3f8355){_0x3785de[_0x32d6ca(0x198)](_0x32d6ca(0x1af)+(_0x3f8355 instanceof Error?_0x3f8355['message']:String(_0x3f8355)));throw _0x3f8355;}}};
@@ -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(_0x350cd7,_0x3a60dd){const _0x39b45c=a17_0x4d92,_0xa610=_0x350cd7();while(!![]){try{const _0x23ee84=-parseInt(_0x39b45c(0x111))/0x1*(parseInt(_0x39b45c(0x11f))/0x2)+-parseInt(_0x39b45c(0x11c))/0x3+parseInt(_0x39b45c(0x119))/0x4*(parseInt(_0x39b45c(0x117))/0x5)+-parseInt(_0x39b45c(0x114))/0x6*(-parseInt(_0x39b45c(0x118))/0x7)+parseInt(_0x39b45c(0x112))/0x8+-parseInt(_0x39b45c(0x115))/0x9*(parseInt(_0x39b45c(0x11a))/0xa)+-parseInt(_0x39b45c(0x11b))/0xb;if(_0x23ee84===_0x3a60dd)break;else _0xa610['push'](_0xa610['shift']());}catch(_0x3044a5){_0xa610['push'](_0xa610['shift']());}}}(a17_0x2b22,0xdc0e0));function a17_0x4d92(_0x510ddf,_0x1fc2fb){_0x510ddf=_0x510ddf-0x10c;const _0x2b220c=a17_0x2b22();let _0x4d92f0=_0x2b220c[_0x510ddf];return _0x4d92f0;}import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';function a17_0x2b22(){const _0x35a3c7=['10zFnlCU','23584671djLeun','773661WklYDq','name','filter','196330BXmcQl','project','validation','length','global','bool','merged','9sbBRms','10299592yDTCUI','join','6fDmRZy','2644407BuSxBt','selectedAppName','3965345bWPtIM','11249091uXcSzY','8wPWtfh'];a17_0x2b22=function(){return _0x35a3c7;};return a17_0x2b22();}export function resolveTargetApps(_0x77ceaf,_0x550597){const _0x184925=a17_0x4d92;if(_0x550597)return null;const _0x381cc8=_0x77ceaf[_0x184925(0x10f)](_0x184925(0x10e))?_0x184925(0x110):_0x184925(0x120);let _0x482f9f=getMultiAppConfigs(_0x381cc8);if(!_0x482f9f||_0x482f9f[_0x184925(0x10d)]===0x0)return null;if(_0x77ceaf[_0x184925(0x116)]){const _0x930b49=_0x482f9f[_0x184925(0x11e)](_0x4bf4be=>_0x4bf4be[_0x184925(0x11d)]===_0x77ceaf[_0x184925(0x116)]);if(_0x930b49[_0x184925(0x10d)]===0x0){const _0x3979d3=_0x482f9f['map'](_0x2c43b3=>_0x2c43b3[_0x184925(0x11d)])[_0x184925(0x113)](',\x20');throw CliErrors[_0x184925(0x10c)]('App\x20\x22'+_0x77ceaf['selectedAppName']+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x3979d3);}_0x482f9f=_0x930b49;}return _0x482f9f;}
1
+ (function(_0x265dea,_0x530f0d){const _0x1a9547=a17_0x1b51,_0x4f2916=_0x265dea();while(!![]){try{const _0x53bf2d=-parseInt(_0x1a9547(0xd0))/0x1+parseInt(_0x1a9547(0xcf))/0x2*(-parseInt(_0x1a9547(0xc3))/0x3)+parseInt(_0x1a9547(0xd2))/0x4+-parseInt(_0x1a9547(0xc0))/0x5*(-parseInt(_0x1a9547(0xd3))/0x6)+parseInt(_0x1a9547(0xce))/0x7*(parseInt(_0x1a9547(0xc1))/0x8)+parseInt(_0x1a9547(0xc5))/0x9+-parseInt(_0x1a9547(0xca))/0xa;if(_0x53bf2d===_0x530f0d)break;else _0x4f2916['push'](_0x4f2916['shift']());}catch(_0x3a1e8a){_0x4f2916['push'](_0x4f2916['shift']());}}}(a17_0x2a42,0x3e319));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x420a9f,_0x3f1456){const _0x555905=a17_0x1b51;if(_0x3f1456)return null;const _0x9de351=_0x420a9f[_0x555905(0xd1)](_0x555905(0xc8))?'merged':'project';let _0x76545e=getMultiAppConfigs(_0x9de351);if(!_0x76545e||_0x76545e[_0x555905(0xc6)]===0x0)return null;if(_0x420a9f[_0x555905(0xc9)]){const _0x26572d=_0x76545e[_0x555905(0xcb)](_0x54349f=>_0x54349f[_0x555905(0xcd)]===_0x420a9f[_0x555905(0xc9)]);if(_0x26572d[_0x555905(0xc6)]===0x0){const _0x41edeb=_0x76545e['map'](_0x50e16f=>_0x50e16f[_0x555905(0xcd)])[_0x555905(0xc7)](',\x20');throw CliErrors[_0x555905(0xc4)](_0x555905(0xcc)+_0x420a9f[_0x555905(0xc9)]+_0x555905(0xc2)+_0x41edeb);}_0x76545e=_0x26572d;}return _0x76545e;}function a17_0x1b51(_0x2eee5f,_0x190120){_0x2eee5f=_0x2eee5f-0xc0;const _0x2a42f1=a17_0x2a42();let _0x1b515f=_0x2a42f1[_0x2eee5f];return _0x1b515f;}function a17_0x2a42(){const _0x1b56d9=['115SOWiIF','8ubBsPa','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','3LtugJX','validation','4419630ieDCcu','length','join','global','selectedAppName','3175590fRfIEM','filter','App\x20\x22','name','512302AbJBFC','232082HiUTER','132038DaXVfw','bool','956152nCZcdV','4458AXXPZU'];a17_0x2a42=function(){return _0x1b56d9;};return a17_0x2a42();}
@@ -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(_0x4ecf5e,_0x3214cc){const _0x4d3743=a18_0x571d,_0x3fed0e=_0x4ecf5e();while(!![]){try{const _0x43ec9e=parseInt(_0x4d3743(0x170))/0x1+parseInt(_0x4d3743(0x168))/0x2+-parseInt(_0x4d3743(0x16f))/0x3+parseInt(_0x4d3743(0x16b))/0x4*(parseInt(_0x4d3743(0x16e))/0x5)+parseInt(_0x4d3743(0x16d))/0x6+parseInt(_0x4d3743(0x169))/0x7+-parseInt(_0x4d3743(0x16c))/0x8*(parseInt(_0x4d3743(0x16a))/0x9);if(_0x43ec9e===_0x3214cc)break;else _0x3fed0e['push'](_0x3fed0e['shift']());}catch(_0x25196d){_0x3fed0e['push'](_0x3fed0e['shift']());}}}(a18_0x16b5,0x8419a));function a18_0x571d(_0x57a8b5,_0x28a8e6){_0x57a8b5=_0x57a8b5-0x168;const _0x16b5f3=a18_0x16b5();let _0x571d13=_0x16b5f3[_0x57a8b5];return _0x571d13;}import{appListDefinition}from'../../commands/app/list.js';import{appMembersListDefinition}from'../../commands/app/members-list.js';function a18_0x16b5(){const _0x15b6a2=['443176HeKImB','1456658qSGLjR','1549071poqHLw','738216CDFrzl','8fQEaEi','524784MkhOFU','15PgHXAk','3193272LbjctI','706817QdWRjh'];a18_0x16b5=function(){return _0x15b6a2;};return a18_0x16b5();}export const appDefinitions=[appListDefinition,appMembersListDefinition];
1
+ (function(_0x444775,_0x48466a){const _0x56ee98=a18_0x2e21,_0x3bc447=_0x444775();while(!![]){try{const _0x2a1c14=parseInt(_0x56ee98(0x198))/0x1+parseInt(_0x56ee98(0x1a0))/0x2*(parseInt(_0x56ee98(0x19e))/0x3)+-parseInt(_0x56ee98(0x1a1))/0x4*(parseInt(_0x56ee98(0x199))/0x5)+parseInt(_0x56ee98(0x19a))/0x6*(-parseInt(_0x56ee98(0x196))/0x7)+-parseInt(_0x56ee98(0x197))/0x8*(parseInt(_0x56ee98(0x19f))/0x9)+parseInt(_0x56ee98(0x19d))/0xa+-parseInt(_0x56ee98(0x19c))/0xb*(-parseInt(_0x56ee98(0x19b))/0xc);if(_0x2a1c14===_0x48466a)break;else _0x3bc447['push'](_0x3bc447['shift']());}catch(_0x3d7e8d){_0x3bc447['push'](_0x3bc447['shift']());}}}(a18_0x292e,0xe8fc3));import{appListDefinition}from'../../commands/app/list.js';function a18_0x2e21(_0x2270d4,_0x1829bf){_0x2270d4=_0x2270d4-0x196;const _0x292e71=a18_0x292e();let _0x2e2158=_0x292e71[_0x2270d4];return _0x2e2158;}import{appMembersListDefinition}from'../../commands/app/members-list.js';export const appDefinitions=[appListDefinition,appMembersListDefinition];function a18_0x292e(){const _0x3ac3a5=['5ZMbZFN','4394262gxWZMo','444oNdVBC','450439OnTyeA','6968740SZlMkZ','1019457VYhleT','78723gRgbqc','6tsdNLy','7423364kYXVqb','7JOtLOc','888jQqGkc','1281998rwOaZV'];a18_0x292e=function(){return _0x3ac3a5;};return a18_0x292e();}
@@ -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_0x4bb9a2=a19_0x144b;(function(_0x2dfb07,_0x197715){const _0x638665=a19_0x144b,_0x2f58fa=_0x2dfb07();while(!![]){try{const _0x139340=-parseInt(_0x638665(0x20a))/0x1+parseInt(_0x638665(0x1f0))/0x2+parseInt(_0x638665(0x1fb))/0x3+parseInt(_0x638665(0x1fa))/0x4*(parseInt(_0x638665(0x1fd))/0x5)+-parseInt(_0x638665(0x1fe))/0x6+parseInt(_0x638665(0x1e7))/0x7+parseInt(_0x638665(0x20d))/0x8;if(_0x139340===_0x197715)break;else _0x2f58fa['push'](_0x2f58fa['shift']());}catch(_0x5db2f3){_0x2f58fa['push'](_0x2f58fa['shift']());}}}(a19_0x215a,0x2d88b));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_0x144b(_0xc89f19,_0x1616bd){_0xc89f19=_0xc89f19-0x1e7;const _0x215aa5=a19_0x215a();let _0x144b2a=_0x215aa5[_0xc89f19];return _0x144b2a;}import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function buildItemsFromLayer(_0x113b49,_0x6b5064){const _0xcb92b1=a19_0x144b,_0x1484df=[],_0x5e8c0f=_0x113b49[_0xcb92b1(0x1ea)]&&typeof _0x113b49[_0xcb92b1(0x1ea)]==='object'?_0x113b49[_0xcb92b1(0x1ea)]:{},_0x5ddc50=_0x113b49[_0xcb92b1(0x207)]||undefined;for(const [_0x838b7d,_0x4ec124]of Object[_0xcb92b1(0x20b)](_0x5e8c0f)){if(!_0x4ec124||typeof _0x4ec124!==_0xcb92b1(0x210)||!_0x4ec124[_0xcb92b1(0x1f1)])continue;_0x1484df['push']({'name':_0x838b7d,'appcode':_0x4ec124[_0xcb92b1(0x1f1)],'named':!![],'definedIn':_0x6b5064,'isDefault':_0x838b7d===_0x5ddc50,...buildAppProfileListFields(_0x4ec124)});}return _0x1484df;}function a19_0x215a(){const _0x2cc862=['app','1532216ERyQTv','projectConfig','\x20config','object','168728shbVlG','global','length','apps','bool','\x20in\x20','.\x20Use\x20`','list','mergedCli','73576PHHkyE','appcode','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','globalPath','projectPath','remote','boolean','read','map','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','64yALZzi','424845ngHTOo','isCurrent','53925zcWcOs','504324FLXVXo','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','project','No\x20apps\x20configured','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','merged','validation','defaultApp','inherit','globalConfig','296033XkCHMB','entries'];a19_0x215a=function(){return _0x2cc862;};return a19_0x215a();}function buildMergedItems(_0x56d6a3,_0x549cb5){const _0x1956cf=a19_0x144b,{apps:apps={},defaultApp:_0x11d122}=_0x56d6a3,_0x370aa4=_0x549cb5['globalConfig'][_0x1956cf(0x1ea)]&&typeof _0x549cb5[_0x1956cf(0x209)][_0x1956cf(0x1ea)]===_0x1956cf(0x210)?_0x549cb5[_0x1956cf(0x209)][_0x1956cf(0x1ea)]:{},_0x366dac=_0x549cb5[_0x1956cf(0x20e)]['apps']&&typeof _0x549cb5[_0x1956cf(0x20e)][_0x1956cf(0x1ea)]===_0x1956cf(0x210)?_0x549cb5[_0x1956cf(0x20e)][_0x1956cf(0x1ea)]:{},_0x11fdde=_0x549cb5[_0x1956cf(0x20e)][_0x1956cf(0x208)]===![],_0x4a9a1f=Object[_0x1956cf(0x20b)](apps),_0x484deb=_0x4a9a1f[_0x1956cf(0x1f8)](([_0x45b390,_0x11a325])=>({'name':_0x45b390,'appcode':_0x11a325['appcode'],'named':!![],'definedIn':appDefinedIn(_0x45b390,_0x370aa4,_0x366dac,_0x11fdde),'isDefault':_0x45b390===_0x11d122,...buildAppProfileListFields(_0x11a325)}));return _0x484deb;}function validateAppListFlags(_0x32523d){const _0x422de6=a19_0x144b;if(!_0x32523d['bool'](_0x422de6(0x1f5)))return;if(!_0x32523d[_0x422de6(0x1eb)](_0x422de6(0x1e8))&&!_0x32523d[_0x422de6(0x1eb)](_0x422de6(0x202)))return;throw CliErrors[_0x422de6(0x206)](_0x422de6(0x1f2),_0x422de6(0x1ff));}async function execute(_0x3781ba){const _0x4724eb=a19_0x144b;validateAppListFlags(_0x3781ba);if(_0x3781ba[_0x4724eb(0x1eb)]('remote'))return{'ok':!![],'data':await listRemoteAppDirectory(_0x3781ba)};const _0x39181b=_0x3781ba[_0x4724eb(0x1eb)](_0x4724eb(0x1e8)),_0x4d1714=_0x3781ba['bool']('project'),_0x5c5692=_0x39181b?'global':_0x4d1714?_0x4724eb(0x202):_0x4724eb(0x205),{config:_0xd552d4,layers:_0xfed0d4}=readRawConfigWithLayers(),_0x3af776=resolveDefaultAppSource(_0xfed0d4),{defaultApp:_0x468484}=_0xd552d4;let _0x4db60e,_0x47b7c5;switch(_0x5c5692){case _0x4724eb(0x1e8):_0x4db60e=buildItemsFromLayer(_0xfed0d4[_0x4724eb(0x209)],'global'),_0x47b7c5=_0xfed0d4[_0x4724eb(0x1f3)];break;case _0x4724eb(0x202):_0x4db60e=buildItemsFromLayer(_0xfed0d4[_0x4724eb(0x20e)],'project'),_0x47b7c5=_0xfed0d4[_0x4724eb(0x1f4)];break;default:_0x4db60e=buildMergedItems(_0xd552d4,_0xfed0d4);break;}enrichAppListItemsWithMergedSelection(_0x4db60e,_0x3781ba[_0x4724eb(0x1ef)]);if(_0x4db60e[_0x4724eb(0x1e9)]===0x0){const _0x1fd3a7=_0x5c5692===_0x4724eb(0x205)?'':_0x4724eb(0x1ec)+_0x5c5692+_0x4724eb(0x20f);return{'ok':!![],'data':[],'message':_0x4724eb(0x203)+_0x1fd3a7+_0x4724eb(0x1ed)+CLI_BIN_NAME+_0x4724eb(0x204)};}const _0x230f1e=_0x4db60e['find'](_0x505316=>_0x505316[_0x4724eb(0x1fc)]===!![]),_0x38e056=_0x468484??_0x230f1e?.[_0x4724eb(0x1f1)]??null,_0xcb8407=_0x5c5692==='merged'?{'globalPath':_0xfed0d4[_0x4724eb(0x1f3)]??null,'projectPath':_0xfed0d4[_0x4724eb(0x1f4)]??null,'defaultApp':_0x38e056,'defaultAppSource':_0x468484!=null?_0x3af776:null}:{'scope':_0x5c5692,'configPath':_0x47b7c5??null};return{'ok':!![],'data':{'items':_0x4db60e,'meta':_0xcb8407}};}export const appListDefinition={'service':a19_0x4bb9a2(0x20c),'command':a19_0x4bb9a2(0x1ee),'description':'List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','risk':a19_0x4bb9a2(0x1f7),'auth':'optional','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a19_0x4bb9a2(0x1f5),'type':a19_0x4bb9a2(0x1f6),'description':a19_0x4bb9a2(0x1f9),'default':![]},{'name':a19_0x4bb9a2(0x1e8),'type':a19_0x4bb9a2(0x1f6),'description':a19_0x4bb9a2(0x200),'default':![]},{'name':'project','type':'boolean','description':a19_0x4bb9a2(0x201),'default':![]}],async 'validate'(_0xf03274){validateAppListFlags(_0xf03274);},'execute':execute};
1
+ const a19_0x58df36=a19_0x1239;(function(_0x5900b7,_0x268d38){const _0x4556be=a19_0x1239,_0x21c0ed=_0x5900b7();while(!![]){try{const _0x5ab650=-parseInt(_0x4556be(0x1ef))/0x1+-parseInt(_0x4556be(0x1f1))/0x2*(parseInt(_0x4556be(0x1d4))/0x3)+-parseInt(_0x4556be(0x1ee))/0x4*(-parseInt(_0x4556be(0x1f0))/0x5)+parseInt(_0x4556be(0x1dc))/0x6*(-parseInt(_0x4556be(0x1e7))/0x7)+parseInt(_0x4556be(0x1ce))/0x8+parseInt(_0x4556be(0x1e2))/0x9+-parseInt(_0x4556be(0x1d7))/0xa*(parseInt(_0x4556be(0x1d1))/0xb);if(_0x5ab650===_0x268d38)break;else _0x21c0ed['push'](_0x21c0ed['shift']());}catch(_0x9e4f26){_0x21c0ed['push'](_0x21c0ed['shift']());}}}(a19_0x298f,0xd2cba));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a19_0x1239(_0x460c11,_0x28d4b6){_0x460c11=_0x460c11-0x1ce;const _0x298fe=a19_0x298f();let _0x1239ab=_0x298fe[_0x460c11];return _0x1239ab;}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(_0x4970f6,_0x4c7a2e){const _0xbe4327=a19_0x1239,_0x5a532d=[],_0x5591e4=_0x4970f6['apps']&&typeof _0x4970f6[_0xbe4327(0x1f2)]==='object'?_0x4970f6[_0xbe4327(0x1f2)]:{},_0x47cb27=_0x4970f6[_0xbe4327(0x1d6)]||undefined;for(const [_0x32f685,_0x3825fd]of Object['entries'](_0x5591e4)){if(!_0x3825fd||typeof _0x3825fd!=='object'||!_0x3825fd[_0xbe4327(0x1e6)])continue;_0x5a532d[_0xbe4327(0x1d5)]({'name':_0x32f685,'appcode':_0x3825fd[_0xbe4327(0x1e6)],'named':!![],'definedIn':_0x4c7a2e,'isDefault':_0x32f685===_0x47cb27,...buildAppProfileListFields(_0x3825fd)});}return _0x5a532d;}function a19_0x298f(){const _0x597585=['Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','boolean','merged','globalPath','6760816NPcgDj','1297287hnXWFK','5HalHTt','46966nXpGrU','apps','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','remote','mergedCli','\x20in\x20','globalConfig','4436072CRmtNe','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','No\x20apps\x20configured','22YRTiOc','bool','object','72qhyoJV','push','defaultApp','2217290eWcPKR','.\x20Use\x20`','read','inherit','global','3148014ygIlpW','length','projectConfig','app','isCurrent','find','13029399jpGxhx','projectPath','project','\x20config','appcode','7gLqVeL','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.'];a19_0x298f=function(){return _0x597585;};return a19_0x298f();}function buildMergedItems(_0x485058,_0x165052){const _0x2e3a81=a19_0x1239,{apps:apps={},defaultApp:_0x9bc468}=_0x485058,_0x518516=_0x165052[_0x2e3a81(0x1f7)][_0x2e3a81(0x1f2)]&&typeof _0x165052[_0x2e3a81(0x1f7)][_0x2e3a81(0x1f2)]===_0x2e3a81(0x1d3)?_0x165052[_0x2e3a81(0x1f7)]['apps']:{},_0x2dd6df=_0x165052[_0x2e3a81(0x1de)][_0x2e3a81(0x1f2)]&&typeof _0x165052[_0x2e3a81(0x1de)]['apps']===_0x2e3a81(0x1d3)?_0x165052[_0x2e3a81(0x1de)][_0x2e3a81(0x1f2)]:{},_0x401ef4=_0x165052[_0x2e3a81(0x1de)][_0x2e3a81(0x1da)]===![],_0x473662=Object['entries'](apps),_0xeb8b18=_0x473662['map'](([_0x325abc,_0x175bb8])=>({'name':_0x325abc,'appcode':_0x175bb8['appcode'],'named':!![],'definedIn':appDefinedIn(_0x325abc,_0x518516,_0x2dd6df,_0x401ef4),'isDefault':_0x325abc===_0x9bc468,...buildAppProfileListFields(_0x175bb8)}));return _0xeb8b18;}function validateAppListFlags(_0x286d7d){const _0x2566ef=a19_0x1239;if(!_0x286d7d['bool']('remote'))return;if(!_0x286d7d[_0x2566ef(0x1d2)](_0x2566ef(0x1db))&&!_0x286d7d[_0x2566ef(0x1d2)](_0x2566ef(0x1e4)))return;throw CliErrors['validation']('`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.');}async function execute(_0x2d382c){const _0x1c6018=a19_0x1239;validateAppListFlags(_0x2d382c);if(_0x2d382c[_0x1c6018(0x1d2)]('remote'))return{'ok':!![],'data':await listRemoteAppDirectory(_0x2d382c)};const _0x3225c5=_0x2d382c['bool']('global'),_0x18aa7c=_0x2d382c[_0x1c6018(0x1d2)](_0x1c6018(0x1e4)),_0x16482f=_0x3225c5?_0x1c6018(0x1db):_0x18aa7c?_0x1c6018(0x1e4):_0x1c6018(0x1ec),{config:_0x3bed19,layers:_0x1352cd}=readRawConfigWithLayers(),_0x50ee85=resolveDefaultAppSource(_0x1352cd),{defaultApp:_0x2f4fce}=_0x3bed19;let _0xdf719b,_0x450c77;switch(_0x16482f){case'global':_0xdf719b=buildItemsFromLayer(_0x1352cd[_0x1c6018(0x1f7)],_0x1c6018(0x1db)),_0x450c77=_0x1352cd[_0x1c6018(0x1ed)];break;case _0x1c6018(0x1e4):_0xdf719b=buildItemsFromLayer(_0x1352cd['projectConfig'],_0x1c6018(0x1e4)),_0x450c77=_0x1352cd[_0x1c6018(0x1e3)];break;default:_0xdf719b=buildMergedItems(_0x3bed19,_0x1352cd);break;}enrichAppListItemsWithMergedSelection(_0xdf719b,_0x2d382c[_0x1c6018(0x1f5)]);if(_0xdf719b[_0x1c6018(0x1dd)]===0x0){const _0x6a603b=_0x16482f===_0x1c6018(0x1ec)?'':_0x1c6018(0x1f6)+_0x16482f+_0x1c6018(0x1e5);return{'ok':!![],'data':[],'message':_0x1c6018(0x1d0)+_0x6a603b+_0x1c6018(0x1d8)+CLI_BIN_NAME+_0x1c6018(0x1e8)};}const _0x578da6=_0xdf719b[_0x1c6018(0x1e1)](_0x8327e1=>_0x8327e1[_0x1c6018(0x1e0)]===!![]),_0xdda7a5=_0x2f4fce??_0x578da6?.[_0x1c6018(0x1e6)]??null,_0x52e804=_0x16482f===_0x1c6018(0x1ec)?{'globalPath':_0x1352cd[_0x1c6018(0x1ed)]??null,'projectPath':_0x1352cd[_0x1c6018(0x1e3)]??null,'defaultApp':_0xdda7a5,'defaultAppSource':_0x2f4fce!=null?_0x50ee85:null}:{'scope':_0x16482f,'configPath':_0x450c77??null};return{'ok':!![],'data':{'items':_0xdf719b,'meta':_0x52e804}};}export const appListDefinition={'service':a19_0x58df36(0x1df),'command':'list','description':a19_0x58df36(0x1f3),'risk':a19_0x58df36(0x1d9),'auth':'optional','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a19_0x58df36(0x1f4),'type':a19_0x58df36(0x1eb),'description':a19_0x58df36(0x1ea),'default':![]},{'name':'global','type':a19_0x58df36(0x1eb),'description':a19_0x58df36(0x1e9),'default':![]},{'name':'project','type':a19_0x58df36(0x1eb),'description':a19_0x58df36(0x1cf),'default':![]}],async 'validate'(_0x3a5f67){validateAppListFlags(_0x3a5f67);},'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_0x4d02e4=a20_0x1863;(function(_0x4dfb47,_0x364212){const _0x47e038=a20_0x1863,_0x41ada8=_0x4dfb47();while(!![]){try{const _0x53c2e0=-parseInt(_0x47e038(0x10f))/0x1+-parseInt(_0x47e038(0x108))/0x2*(-parseInt(_0x47e038(0x10c))/0x3)+-parseInt(_0x47e038(0x10e))/0x4+-parseInt(_0x47e038(0x109))/0x5+parseInt(_0x47e038(0x107))/0x6+parseInt(_0x47e038(0x10a))/0x7+parseInt(_0x47e038(0x104))/0x8;if(_0x53c2e0===_0x364212)break;else _0x41ada8['push'](_0x41ada8['shift']());}catch(_0x3d31c0){_0x41ada8['push'](_0x41ada8['shift']());}}}(a20_0x419c,0x453ce));function a20_0x1863(_0x3d8d6c,_0x4f8a7a){_0x3d8d6c=_0x3d8d6c-0x104;const _0x419cc1=a20_0x419c();let _0x186317=_0x419cc1[_0x3d8d6c];return _0x186317;}function a20_0x419c(){const _0x5d2b8e=['2ASngqW','830210oilUNn','148533CxQWTK','length','1109187pxtLId','\x20application\x20member(s)','1744552sJbQWr','285326CqnTeL','List\x20application\x20members\x20with\x20their\x20role\x20memberships','Found\x20','2819256roVVUh','appCode','members-list','2566494ovHnTQ'];a20_0x419c=function(){return _0x5d2b8e;};return a20_0x419c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':'app','command':a20_0x4d02e4(0x106),'description':a20_0x4d02e4(0x110),'risk':'read','requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0xde949a){const _0x2aa320=a20_0x4d02e4,_0x24713e=projectAppMembers(await listRoleUsers(_0xde949a[_0x2aa320(0x105)]));return{'ok':!![],'data':{'appCode':_0xde949a['appCode'],'items':_0x24713e,'totalCount':_0x24713e[_0x2aa320(0x10b)]},'message':_0x2aa320(0x111)+_0x24713e[_0x2aa320(0x10b)]+_0x2aa320(0x10d)};}};
1
+ const a20_0x1cee4c=a20_0x2ab0;(function(_0x2c142d,_0x2aa22c){const _0x51fe26=a20_0x2ab0,_0x24da05=_0x2c142d();while(!![]){try{const _0x179bbc=parseInt(_0x51fe26(0x142))/0x1+-parseInt(_0x51fe26(0x13e))/0x2+parseInt(_0x51fe26(0x13d))/0x3*(parseInt(_0x51fe26(0x139))/0x4)+-parseInt(_0x51fe26(0x141))/0x5*(parseInt(_0x51fe26(0x140))/0x6)+-parseInt(_0x51fe26(0x135))/0x7+-parseInt(_0x51fe26(0x132))/0x8+parseInt(_0x51fe26(0x13c))/0x9*(parseInt(_0x51fe26(0x13a))/0xa);if(_0x179bbc===_0x2aa22c)break;else _0x24da05['push'](_0x24da05['shift']());}catch(_0x4dbd2b){_0x24da05['push'](_0x24da05['shift']());}}}(a20_0x161a,0x36e7a));function a20_0x161a(){const _0x3550fa=['members-list','158096OrYJjo','5177590jaJozv','Found\x20','9wMQuvN','15FErqSe','862960lgYWQR','length','24xyfnMH','39925VPlAdK','317513pTOmsU','read','2082928VkgkIH','\x20application\x20member(s)','appCode','589512KgpKib','List\x20application\x20members\x20with\x20their\x20role\x20memberships','app'];a20_0x161a=function(){return _0x3550fa;};return a20_0x161a();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';function a20_0x2ab0(_0x102476,_0x29f59b){_0x102476=_0x102476-0x131;const _0x161ab5=a20_0x161a();let _0x2ab0a3=_0x161ab5[_0x102476];return _0x2ab0a3;}import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':a20_0x1cee4c(0x137),'command':a20_0x1cee4c(0x138),'description':a20_0x1cee4c(0x136),'risk':a20_0x1cee4c(0x131),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1b9b7e){const _0x36e102=a20_0x1cee4c,_0x36f80c=projectAppMembers(await listRoleUsers(_0x1b9b7e[_0x36e102(0x134)]));return{'ok':!![],'data':{'appCode':_0x1b9b7e[_0x36e102(0x134)],'items':_0x36f80c,'totalCount':_0x36f80c[_0x36e102(0x13f)]},'message':_0x36e102(0x13b)+_0x36f80c[_0x36e102(0x13f)]+_0x36e102(0x133)};}};
@@ -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(_0xf138ad,_0x492bd5){const _0x2504e2=a21_0x59c0,_0x51618e=_0xf138ad();while(!![]){try{const _0x337d0b=parseInt(_0x2504e2(0x1f1))/0x1*(parseInt(_0x2504e2(0x1ef))/0x2)+-parseInt(_0x2504e2(0x1f2))/0x3+-parseInt(_0x2504e2(0x1f6))/0x4*(parseInt(_0x2504e2(0x1f7))/0x5)+-parseInt(_0x2504e2(0x1fa))/0x6*(parseInt(_0x2504e2(0x1f9))/0x7)+-parseInt(_0x2504e2(0x1f8))/0x8+-parseInt(_0x2504e2(0x1ed))/0x9+-parseInt(_0x2504e2(0x1f4))/0xa*(-parseInt(_0x2504e2(0x1fb))/0xb);if(_0x337d0b===_0x492bd5)break;else _0x51618e['push'](_0x51618e['shift']());}catch(_0x3b2cb4){_0x51618e['push'](_0x51618e['shift']());}}}(a21_0x130e,0xded47));import{listRemoteApps}from'../../core/api-client.js';function a21_0x59c0(_0x3eb590,_0x2b0a9f){_0x3eb590=_0x3eb590-0x1ed;const _0x130ef6=a21_0x130e();let _0x59c0e8=_0x130ef6[_0x3eb590];return _0x59c0e8;}import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x11524e){const _0x4e00e3=a21_0x59c0,_0x1a8184=_0x11524e[_0x4e00e3(0x1fd)]||getCookie();if(!_0x1a8184)throw CliErrors[_0x4e00e3(0x1f0)]();return _0x1a8184;}function a21_0x130e(){const _0x1f6d47=['9222672KeeJrS','210vnZwOv','362478awfjbg','61413374dHYCXT','platform','cookie','map','7180281YjjtoD','appCode','2194dBRIiA','authRequired','778FkvBGI','5162025EcAxhK','appName','10ByqoYy','appDesc','1076OPEKtA','745PJwqjj'];a21_0x130e=function(){return _0x1f6d47;};return a21_0x130e();}export async function listRemoteAppDirectory(_0x370568){const _0x39f4c1=a21_0x59c0,_0x347511=await withActiveCookie(resolveCookie(_0x370568),()=>listRemoteApps());return{'items':_0x347511[_0x39f4c1(0x1fe)](_0x5ac7d6=>({..._0x5ac7d6['id']!=null?{'id':_0x5ac7d6['id']}:{},'appCode':_0x5ac7d6[_0x39f4c1(0x1ee)],'appName':_0x5ac7d6[_0x39f4c1(0x1f3)],..._0x5ac7d6['appDesc']!=null?{'appDesc':_0x5ac7d6[_0x39f4c1(0x1f5)]}:{}})),'meta':{'source':_0x39f4c1(0x1fc)}};}
1
+ (function(_0x9bd474,_0x2d69cf){const _0x378d06=a21_0x2094,_0x53baef=_0x9bd474();while(!![]){try{const _0x542567=parseInt(_0x378d06(0xba))/0x1+parseInt(_0x378d06(0xbb))/0x2+-parseInt(_0x378d06(0xb3))/0x3+parseInt(_0x378d06(0xb2))/0x4+-parseInt(_0x378d06(0xb1))/0x5*(-parseInt(_0x378d06(0xb9))/0x6)+-parseInt(_0x378d06(0xb4))/0x7+-parseInt(_0x378d06(0xb6))/0x8*(parseInt(_0x378d06(0xbc))/0x9);if(_0x542567===_0x2d69cf)break;else _0x53baef['push'](_0x53baef['shift']());}catch(_0x11d92c){_0x53baef['push'](_0x53baef['shift']());}}}(a21_0x3480,0xab102));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_0x3480(){const _0x3046b5=['appName','appDesc','6bJFJko','1046185MKpUif','668920pofSTD','693IgwrSX','appCode','561505yoosGI','4596048hBLUIj','1620687iEAgCq','7867524lNHnwo','cookie','28792JlVoXS'];a21_0x3480=function(){return _0x3046b5;};return a21_0x3480();}function a21_0x2094(_0x29a279,_0x353def){_0x29a279=_0x29a279-0xb1;const _0x348007=a21_0x3480();let _0x209416=_0x348007[_0x29a279];return _0x209416;}function resolveCookie(_0x5e8103){const _0xd5ab0f=a21_0x2094,_0x2fa217=_0x5e8103[_0xd5ab0f(0xb5)]||getCookie();if(!_0x2fa217)throw CliErrors['authRequired']();return _0x2fa217;}export async function listRemoteAppDirectory(_0x3fcd08){const _0xc66df9=a21_0x2094,_0xbfd476=await withActiveCookie(resolveCookie(_0x3fcd08),()=>listRemoteApps());return{'items':_0xbfd476['map'](_0x2ed183=>({..._0x2ed183['id']!=null?{'id':_0x2ed183['id']}:{},'appCode':_0x2ed183[_0xc66df9(0xbd)],'appName':_0x2ed183[_0xc66df9(0xb7)],..._0x2ed183[_0xc66df9(0xb8)]!=null?{'appDesc':_0x2ed183[_0xc66df9(0xb8)]}:{}})),'meta':{'source':'platform'}};}
@@ -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(_0x81dacb,_0x4b7b1c){const _0xbe1a9a=a22_0x40df,_0x4613c7=_0x81dacb();while(!![]){try{const _0x1eb6dc=-parseInt(_0xbe1a9a(0xdd))/0x1*(-parseInt(_0xbe1a9a(0xca))/0x2)+parseInt(_0xbe1a9a(0xcd))/0x3*(parseInt(_0xbe1a9a(0xf2))/0x4)+-parseInt(_0xbe1a9a(0xe7))/0x5*(parseInt(_0xbe1a9a(0xea))/0x6)+-parseInt(_0xbe1a9a(0xf1))/0x7+-parseInt(_0xbe1a9a(0xe2))/0x8+parseInt(_0xbe1a9a(0xc7))/0x9*(parseInt(_0xbe1a9a(0xc3))/0xa)+parseInt(_0xbe1a9a(0xd0))/0xb;if(_0x1eb6dc===_0x4b7b1c)break;else _0x4613c7['push'](_0x4613c7['shift']());}catch(_0x3231de){_0x4613c7['push'](_0x4613c7['shift']());}}}(a22_0x3840,0xa9002));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x5e411c){const _0x49e5b8=a22_0x40df,_0x4a329e=_0x5e411c?.[_0x49e5b8(0xe4)]();return _0x4a329e?_0x4a329e:null;}export function projectAppMembers(_0x2506bb){const _0x2749b7=a22_0x40df,_0x4e637b=new Map(),_0x2248c2=[..._0x2506bb][_0x2749b7(0xd1)]((_0x34cd5d,_0x1b0197)=>_0x34cd5d['id']-_0x1b0197['id']),_0x158edc=(_0x489837,_0x1dec2d,_0x86dcca)=>{const _0x201c68=_0x2749b7;for(const _0x2a9608 of _0x1dec2d){const _0x2ac275=Number(_0x2a9608[_0x201c68(0xd8)]);if(!Number['isFinite'](_0x2ac275)||_0x2ac275<=0x0)continue;let _0xfae4d9=_0x4e637b['get'](_0x2ac275);if(!_0xfae4d9)_0xfae4d9={'userId':_0x2ac275,'username':nullableText(_0x2a9608['username']),'displayName':nullableText(_0x2a9608[_0x201c68(0xc4)]),'status':_0x86dcca,'roles':[],'roleKeys':new Set()},_0x4e637b[_0x201c68(0xeb)](_0x2ac275,_0xfae4d9);else{_0xfae4d9[_0x201c68(0xdf)]??=nullableText(_0x2a9608['username']),_0xfae4d9[_0x201c68(0xe9)]??=nullableText(_0x2a9608[_0x201c68(0xc4)]);if(_0x86dcca==='ACTIVE')_0xfae4d9[_0x201c68(0xd4)]=_0x201c68(0xc9);}const _0x397916=_0x489837['id']+':'+_0x86dcca;if(_0xfae4d9[_0x201c68(0xcf)]['has'](_0x397916))continue;_0xfae4d9[_0x201c68(0xcf)]['add'](_0x397916),_0xfae4d9[_0x201c68(0xc5)][_0x201c68(0xd5)]({'roleId':_0x489837['id'],'roleName':nullableText(_0x489837[_0x201c68(0xe0)]),'roleType':nullableText(_0x489837['roleType']),'membershipStatus':_0x86dcca});}};for(const _0x39e744 of _0x2248c2){_0x158edc(_0x39e744,_0x39e744[_0x2749b7(0xda)]??[],_0x2749b7(0xc9)),_0x158edc(_0x39e744,_0x39e744[_0x2749b7(0xc2)]??[],'PENDING');}return[..._0x4e637b[_0x2749b7(0xe3)]()][_0x2749b7(0xd9)](_0x27ffe7=>({'userId':_0x27ffe7[_0x2749b7(0xd8)],'username':_0x27ffe7[_0x2749b7(0xdf)],'displayName':_0x27ffe7[_0x2749b7(0xe9)],'status':_0x27ffe7[_0x2749b7(0xd4)],'roles':_0x27ffe7['roles'][_0x2749b7(0xd1)]((_0x47d753,_0x2ff55d)=>_0x47d753[_0x2749b7(0xde)]-_0x2ff55d[_0x2749b7(0xde)]||(_0x47d753[_0x2749b7(0xd2)]===_0x2ff55d['membershipStatus']?0x0:_0x47d753[_0x2749b7(0xd2)]===_0x2749b7(0xc9)?-0x1:0x1))}))[_0x2749b7(0xd1)]((_0x576d5d,_0x558125)=>_0x576d5d[_0x2749b7(0xd8)]-_0x558125['userId']);}export function enrichAppListItemsWithMergedSelection(_0x32a120,_0x5e147c){const _0x47f515=a22_0x40df;if(!_0x5e147c)return;const _0x32ea5c=_0x5e147c['apps']&&typeof _0x5e147c[_0x47f515(0xf0)]===_0x47f515(0xed)?_0x5e147c[_0x47f515(0xf0)]:{},_0x1ad9ad=Object[_0x47f515(0xe8)](_0x32ea5c)[_0x47f515(0xe6)]>0x0;for(const _0x5499a3 of _0x32a120){_0x5499a3[_0x47f515(0xc6)]=![];}const _0x34e194=_0x5e147c[_0x47f515(0xdc)]!=null?String(_0x5e147c[_0x47f515(0xdc)])[_0x47f515(0xe4)]():'';if(_0x1ad9ad){const _0x263ef9=_0x5e147c[_0x47f515(0xd6)]??_0x5e147c[_0x47f515(0xef)];if(_0x263ef9)for(const _0x21fd91 of _0x32a120){_0x21fd91[_0x47f515(0xec)]===!![]&&_0x21fd91[_0x47f515(0xe1)]===_0x263ef9&&(_0x21fd91[_0x47f515(0xc6)]=!![]);}for(const _0x480b75 of _0x32a120){if(_0x480b75['named']!==![])continue;if(_0x5e147c['defaultApp'])continue;_0x34e194&&String(_0x480b75['appcode']??'')[_0x47f515(0xe4)]()===_0x34e194&&(_0x480b75[_0x47f515(0xc6)]=!![]);}return;}if(!_0x34e194)return;for(const _0x2c9d47 of _0x32a120){String(_0x2c9d47[_0x47f515(0xdb)]??'')[_0x47f515(0xe4)]()===_0x34e194&&(_0x2c9d47[_0x47f515(0xc6)]=!![]);}}export function resolveAppScopeForWrite(_0x1f3ba2,_0x10a731,_0x213e94){const _0x1f9e8f=a22_0x40df;if(_0x10a731)return _0x1f9e8f(0xc8);const _0x1b493c=_0x213e94['projectConfig'][_0x1f9e8f(0xf0)]&&typeof _0x213e94[_0x1f9e8f(0xe5)][_0x1f9e8f(0xf0)]===_0x1f9e8f(0xed)?_0x213e94[_0x1f9e8f(0xe5)][_0x1f9e8f(0xf0)]:{},_0x4960df=_0x213e94[_0x1f9e8f(0xd7)]['apps']&&typeof _0x213e94[_0x1f9e8f(0xd7)][_0x1f9e8f(0xf0)]===_0x1f9e8f(0xed)?_0x213e94[_0x1f9e8f(0xd7)][_0x1f9e8f(0xf0)]:{};if(Object[_0x1f9e8f(0xcc)][_0x1f9e8f(0xd3)][_0x1f9e8f(0xce)](_0x1b493c,_0x1f3ba2))return _0x1f9e8f(0xcb);if(Object[_0x1f9e8f(0xcc)][_0x1f9e8f(0xd3)][_0x1f9e8f(0xce)](_0x4960df,_0x1f3ba2))return'global';return _0x1f9e8f(0xcb);}export function appDefinedIn(_0x10f533,_0x1045b7,_0x57163d,_0x3408b6){const _0x318bbb=a22_0x40df;if(_0x3408b6)return Object[_0x318bbb(0xcc)][_0x318bbb(0xd3)][_0x318bbb(0xce)](_0x57163d,_0x10f533)?_0x318bbb(0xcb):'global';const _0x1e6cba=Object['prototype'][_0x318bbb(0xd3)]['call'](_0x1045b7,_0x10f533),_0x42f675=Object['prototype'][_0x318bbb(0xd3)][_0x318bbb(0xce)](_0x57163d,_0x10f533);if(_0x1e6cba&&_0x42f675)return _0x318bbb(0xf4);if(_0x42f675)return _0x318bbb(0xcb);return _0x318bbb(0xc8);}export function resolveDefaultAppSource(_0x2dc5ac){const _0x3a4d43=a22_0x40df,_0x3430b5=_0x2dc5ac[_0x3a4d43(0xe5)][_0x3a4d43(0xf0)]&&typeof _0x2dc5ac[_0x3a4d43(0xe5)][_0x3a4d43(0xf0)]===_0x3a4d43(0xed)?_0x2dc5ac['projectConfig']['apps']:{};if(_0x3a4d43(0xef)in _0x2dc5ac[_0x3a4d43(0xe5)])return _0x3a4d43(0xcb);if(Object['keys'](_0x3430b5)[_0x3a4d43(0xe6)]>0x0)return _0x3a4d43(0xcb);if(_0x2dc5ac['projectConfig'][_0x3a4d43(0xf3)]===![])return null;if(_0x2dc5ac[_0x3a4d43(0xd7)][_0x3a4d43(0xef)])return _0x3a4d43(0xc8);return null;}export function getConfigPath(_0x4be729={}){const _0x20ccf4=a22_0x40df,_0x1e80b0=_0x4be729[_0x20ccf4(0xc8)]?_0x20ccf4(0xc8):_0x20ccf4(0xcb);return resolveWriteConfigPath(_0x1e80b0);}function a22_0x3840(){const _0x89346e=['appcode','appCode','899017XOIvOy','roleId','username','roleName','name','7880936yvuNaa','values','trim','projectConfig','length','22760tNDDMn','keys','displayName','1548QRXYHB','set','named','object','\x20(global)','defaultApp','apps','3441438nlOYBZ','1684eyheLd','inherit','both','applyUserList','8730NZAwMe','nickname','roles','isCurrent','1539qLrjec','global','ACTIVE','2dltvWA','project','prototype','327FDxtlx','call','roleKeys','24741244jTqorx','sort','membershipStatus','hasOwnProperty','status','push','currentApp','globalConfig','userId','map','userList'];a22_0x3840=function(){return _0x89346e;};return a22_0x3840();}function a22_0x40df(_0x4056e4,_0x34b32c){_0x4056e4=_0x4056e4-0xc2;const _0x384015=a22_0x3840();let _0x40df92=_0x384015[_0x4056e4];return _0x40df92;}export function readConfig(_0x245b0e={}){return readConfigFile(getConfigPath(_0x245b0e));}export function writeConfig(_0x1cdd8d,_0x1db04f={}){writeConfigFile(getConfigPath(_0x1db04f),_0x1cdd8d);}export function scopeLabel(_0xf3f5d0){const _0x40321c=a22_0x40df;return _0xf3f5d0[_0x40321c(0xc8)]?_0x40321c(0xee):'';}
1
+ function a22_0x2007(_0x5d05be,_0x63bf53){_0x5d05be=_0x5d05be-0x7b;const _0x59a766=a22_0x59a7();let _0x2007b7=_0x59a766[_0x5d05be];return _0x2007b7;}(function(_0x5cd895,_0x4b2c86){const _0x52d067=a22_0x2007,_0x55cf76=_0x5cd895();while(!![]){try{const _0x3760a9=parseInt(_0x52d067(0x86))/0x1*(-parseInt(_0x52d067(0xb2))/0x2)+parseInt(_0x52d067(0xa9))/0x3+parseInt(_0x52d067(0x99))/0x4*(parseInt(_0x52d067(0x83))/0x5)+-parseInt(_0x52d067(0xae))/0x6*(parseInt(_0x52d067(0x8d))/0x7)+parseInt(_0x52d067(0x9f))/0x8*(-parseInt(_0x52d067(0x7b))/0x9)+parseInt(_0x52d067(0x91))/0xa+-parseInt(_0x52d067(0x7c))/0xb*(-parseInt(_0x52d067(0xa8))/0xc);if(_0x3760a9===_0x4b2c86)break;else _0x55cf76['push'](_0x55cf76['shift']());}catch(_0x4ddbd4){_0x55cf76['push'](_0x55cf76['shift']());}}}(a22_0x59a7,0x262eb));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x1ae272){const _0x3b1467=a22_0x2007,_0x4ec8d4=_0x1ae272?.[_0x3b1467(0x89)]();return _0x4ec8d4?_0x4ec8d4:null;}export function projectAppMembers(_0xf72c96){const _0x42d73b=a22_0x2007,_0x4c588a=new Map(),_0x485b8e=[..._0xf72c96]['sort']((_0x3440a2,_0x16ea09)=>_0x3440a2['id']-_0x16ea09['id']),_0x23d15d=(_0x14baf0,_0x32ee1d,_0x36123d)=>{const _0x53c42b=a22_0x2007;for(const _0x377555 of _0x32ee1d){const _0x370f4f=Number(_0x377555[_0x53c42b(0x81)]);if(!Number[_0x53c42b(0x96)](_0x370f4f)||_0x370f4f<=0x0)continue;let _0x259890=_0x4c588a[_0x53c42b(0x7f)](_0x370f4f);if(!_0x259890)_0x259890={'userId':_0x370f4f,'username':nullableText(_0x377555[_0x53c42b(0x97)]),'displayName':nullableText(_0x377555[_0x53c42b(0x7d)]),'status':_0x36123d,'roles':[],'roleKeys':new Set()},_0x4c588a['set'](_0x370f4f,_0x259890);else{_0x259890['username']??=nullableText(_0x377555[_0x53c42b(0x97)]),_0x259890[_0x53c42b(0xa7)]??=nullableText(_0x377555[_0x53c42b(0x7d)]);if(_0x36123d==='ACTIVE')_0x259890[_0x53c42b(0x80)]='ACTIVE';}const _0x528c39=_0x14baf0['id']+':'+_0x36123d;if(_0x259890['roleKeys'][_0x53c42b(0x88)](_0x528c39))continue;_0x259890['roleKeys'][_0x53c42b(0xa2)](_0x528c39),_0x259890[_0x53c42b(0x8a)][_0x53c42b(0x90)]({'roleId':_0x14baf0['id'],'roleName':nullableText(_0x14baf0[_0x53c42b(0xb1)]),'roleType':nullableText(_0x14baf0[_0x53c42b(0xb0)]),'membershipStatus':_0x36123d});}};for(const _0x23949a of _0x485b8e){_0x23d15d(_0x23949a,_0x23949a[_0x42d73b(0xaf)]??[],'ACTIVE'),_0x23d15d(_0x23949a,_0x23949a[_0x42d73b(0x85)]??[],_0x42d73b(0xac));}return[..._0x4c588a[_0x42d73b(0xab)]()][_0x42d73b(0x98)](_0x573cd6=>({'userId':_0x573cd6[_0x42d73b(0x81)],'username':_0x573cd6[_0x42d73b(0x97)],'displayName':_0x573cd6[_0x42d73b(0xa7)],'status':_0x573cd6[_0x42d73b(0x80)],'roles':_0x573cd6[_0x42d73b(0x8a)][_0x42d73b(0xa1)]((_0x4ceeb1,_0x428a67)=>_0x4ceeb1[_0x42d73b(0x9b)]-_0x428a67[_0x42d73b(0x9b)]||(_0x4ceeb1[_0x42d73b(0x9c)]===_0x428a67['membershipStatus']?0x0:_0x4ceeb1[_0x42d73b(0x9c)]===_0x42d73b(0x8f)?-0x1:0x1))}))['sort']((_0x2928d8,_0x13f10d)=>_0x2928d8[_0x42d73b(0x81)]-_0x13f10d[_0x42d73b(0x81)]);}export function enrichAppListItemsWithMergedSelection(_0xd4f30f,_0x1ffeb2){const _0xc34c10=a22_0x2007;if(!_0x1ffeb2)return;const _0xb8b746=_0x1ffeb2[_0xc34c10(0xa5)]&&typeof _0x1ffeb2[_0xc34c10(0xa5)]==='object'?_0x1ffeb2[_0xc34c10(0xa5)]:{},_0x56a5f5=Object[_0xc34c10(0x92)](_0xb8b746)[_0xc34c10(0x87)]>0x0;for(const _0x5a53aa of _0xd4f30f){_0x5a53aa[_0xc34c10(0x9e)]=![];}const _0x5f4a28=_0x1ffeb2[_0xc34c10(0x82)]!=null?String(_0x1ffeb2['appCode'])[_0xc34c10(0x89)]():'';if(_0x56a5f5){const _0x578772=_0x1ffeb2[_0xc34c10(0x84)]??_0x1ffeb2[_0xc34c10(0x95)];if(_0x578772)for(const _0xd35c47 of _0xd4f30f){_0xd35c47['named']===!![]&&_0xd35c47[_0xc34c10(0x93)]===_0x578772&&(_0xd35c47['isCurrent']=!![]);}for(const _0xe315f3 of _0xd4f30f){if(_0xe315f3[_0xc34c10(0xaa)]!==![])continue;if(_0x1ffeb2[_0xc34c10(0x95)])continue;_0x5f4a28&&String(_0xe315f3[_0xc34c10(0xad)]??'')[_0xc34c10(0x89)]()===_0x5f4a28&&(_0xe315f3[_0xc34c10(0x9e)]=!![]);}return;}if(!_0x5f4a28)return;for(const _0xb9e8c0 of _0xd4f30f){String(_0xb9e8c0['appcode']??'')[_0xc34c10(0x89)]()===_0x5f4a28&&(_0xb9e8c0[_0xc34c10(0x9e)]=!![]);}}export function resolveAppScopeForWrite(_0x30cf7f,_0x4c4b4d,_0x83b36c){const _0x5a3abf=a22_0x2007;if(_0x4c4b4d)return _0x5a3abf(0x8c);const _0x2a35ba=_0x83b36c['projectConfig'][_0x5a3abf(0xa5)]&&typeof _0x83b36c[_0x5a3abf(0x9a)][_0x5a3abf(0xa5)]===_0x5a3abf(0xa4)?_0x83b36c[_0x5a3abf(0x9a)][_0x5a3abf(0xa5)]:{},_0x57f1f8=_0x83b36c[_0x5a3abf(0x94)]['apps']&&typeof _0x83b36c[_0x5a3abf(0x94)][_0x5a3abf(0xa5)]==='object'?_0x83b36c['globalConfig'][_0x5a3abf(0xa5)]:{};if(Object[_0x5a3abf(0xa6)]['hasOwnProperty'][_0x5a3abf(0x8e)](_0x2a35ba,_0x30cf7f))return _0x5a3abf(0x9d);if(Object[_0x5a3abf(0xa6)][_0x5a3abf(0x7e)][_0x5a3abf(0x8e)](_0x57f1f8,_0x30cf7f))return'global';return _0x5a3abf(0x9d);}function a22_0x59a7(){const _0xb1cd41=['appcode','611394NxcApH','userList','roleType','roleName','98ERSpYC','382383QNCUtJ','862499znDiIX','nickname','hasOwnProperty','get','status','userId','appCode','137650hZVyJT','currentApp','applyUserList','3974WXYVdD','length','has','trim','roles','both','global','7IoxdHd','call','ACTIVE','push','1648080qGqYLu','keys','name','globalConfig','defaultApp','isFinite','username','map','4nZZJzw','projectConfig','roleId','membershipStatus','project','isCurrent','8klKHSk','\x20(global)','sort','add','inherit','object','apps','prototype','displayName','12nHZlBn','674280XSGrll','named','values','PENDING'];a22_0x59a7=function(){return _0xb1cd41;};return a22_0x59a7();}export function appDefinedIn(_0x595535,_0x2240ea,_0x440267,_0x469ec6){const _0x1c3532=a22_0x2007;if(_0x469ec6)return Object[_0x1c3532(0xa6)][_0x1c3532(0x7e)][_0x1c3532(0x8e)](_0x440267,_0x595535)?_0x1c3532(0x9d):'global';const _0x13b747=Object[_0x1c3532(0xa6)][_0x1c3532(0x7e)][_0x1c3532(0x8e)](_0x2240ea,_0x595535),_0x21ff24=Object[_0x1c3532(0xa6)][_0x1c3532(0x7e)][_0x1c3532(0x8e)](_0x440267,_0x595535);if(_0x13b747&&_0x21ff24)return _0x1c3532(0x8b);if(_0x21ff24)return'project';return'global';}export function resolveDefaultAppSource(_0xd69537){const _0x2723bf=a22_0x2007,_0x22dd4b=_0xd69537[_0x2723bf(0x9a)][_0x2723bf(0xa5)]&&typeof _0xd69537[_0x2723bf(0x9a)][_0x2723bf(0xa5)]==='object'?_0xd69537[_0x2723bf(0x9a)]['apps']:{};if(_0x2723bf(0x95)in _0xd69537[_0x2723bf(0x9a)])return'project';if(Object[_0x2723bf(0x92)](_0x22dd4b)['length']>0x0)return _0x2723bf(0x9d);if(_0xd69537['projectConfig'][_0x2723bf(0xa3)]===![])return null;if(_0xd69537[_0x2723bf(0x94)]['defaultApp'])return'global';return null;}export function getConfigPath(_0x4263b0={}){const _0x36c37b=a22_0x2007,_0x5f2105=_0x4263b0['global']?_0x36c37b(0x8c):_0x36c37b(0x9d);return resolveWriteConfigPath(_0x5f2105);}export function readConfig(_0xf42bb1={}){return readConfigFile(getConfigPath(_0xf42bb1));}export function writeConfig(_0x4d562f,_0x106aab={}){writeConfigFile(getConfigPath(_0x106aab),_0x4d562f);}export function scopeLabel(_0x7e502e){const _0x2e13d6=a22_0x2007;return _0x7e502e[_0x2e13d6(0x8c)]?_0x2e13d6(0xa0):'';}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigDelete: CommandDefinition;
@@ -1 +1 @@
1
- const a23_0xa8717c=a23_0x44b2;function a23_0x44b2(_0x208ec9,_0x3a3dff){_0x208ec9=_0x208ec9-0x15d;const _0x29f012=a23_0x29f0();let _0x44b2c3=_0x29f012[_0x208ec9];return _0x44b2c3;}function a23_0x29f0(){const _0x179966=['get','3628404pezRkp','App\x20config\x20server\x20id\x20missing\x20for\x20key=','validation','appCode:\x20','/smartapi/app-config/delete','1747126VNcOWQ',',\x20appCode=','delete','high-risk-write','app-config','8586389HLXoqs','POST','Deleted\x20app\x20config\x20','8322978hDZdcK','868595Mlmeek','isFinite','4vUUltZ','Delete\x20one\x20runtime\x20app-config\x20key','24ijyDyX','appCode','App\x20config\x20key\x20not\x20found:\x20','3gAGDoV','number','13182300qvAlKC','616480iTMBOY'];a23_0x29f0=function(){return _0x179966;};return a23_0x29f0();}(function(_0x2c7e0d,_0x22e41a){const _0xa6628c=a23_0x44b2,_0x1af35b=_0x2c7e0d();while(!![]){try{const _0xca418b=-parseInt(_0xa6628c(0x16b))/0x1+-parseInt(_0xa6628c(0x172))/0x2*(parseInt(_0xa6628c(0x168))/0x3)+-parseInt(_0xa6628c(0x163))/0x4*(parseInt(_0xa6628c(0x161))/0x5)+-parseInt(_0xa6628c(0x160))/0x6+parseInt(_0xa6628c(0x15d))/0x7+-parseInt(_0xa6628c(0x165))/0x8*(-parseInt(_0xa6628c(0x16d))/0x9)+parseInt(_0xa6628c(0x16a))/0xa;if(_0xca418b===_0x22e41a)break;else _0x1af35b['push'](_0x1af35b['shift']());}catch(_0xa3d1df){_0x1af35b['push'](_0x1af35b['shift']());}}}(a23_0x29f0,0xabba8));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_0xa8717c(0x171);export const appConfigDelete={'service':a23_0xa8717c(0x176),'command':a23_0xa8717c(0x174),'description':a23_0xa8717c(0x164),'risk':a23_0xa8717c(0x175),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3bb3f9){readKeyArg(_0x3bb3f9);},async 'dryRun'(_0x235701){const _0x60ccdd=a23_0xa8717c,_0x157d21=readKeyArg(_0x235701),_0x5ed5e8=await mustGetByKey(_0x235701['appCode'],_0x157d21);return asAppConfigDryRunResult(buildMutationData({'operation':_0x60ccdd(0x174),'appCode':_0x235701[_0x60ccdd(0x166)],'key':_0x157d21,'before':projectAppConfig(_0x5ed5e8),'after':null,'dryRun':!![]}),{'method':_0x60ccdd(0x15e),'url':DELETE_PATH});},async 'execute'(_0x4f368c){const _0x5f2cc6=a23_0xa8717c,_0x44f484=readKeyArg(_0x4f368c),_0x6dda81=await mustGetByKey(_0x4f368c[_0x5f2cc6(0x166)],_0x44f484);return await withAppConfigApiBoundary(_0x5f2cc6(0x174),{'appCode':_0x4f368c[_0x5f2cc6(0x166)],'key':_0x44f484},()=>deleteAppConfig({'appCode':_0x4f368c[_0x5f2cc6(0x166)],'id':requireAppConfigId(_0x6dda81,_0x44f484,_0x4f368c['appCode'])})),{'ok':!![],'data':buildMutationData({'operation':_0x5f2cc6(0x174),'appCode':_0x4f368c['appCode'],'key':_0x44f484,'before':projectAppConfig(_0x6dda81),'after':null,'dryRun':![]}),'message':_0x5f2cc6(0x15f)+_0x44f484};}};async function mustGetByKey(_0x4db259,_0x1e9452){const _0x507f98=a23_0xa8717c,_0x332a60=await withAppConfigApiBoundary(_0x507f98(0x16c),{'appCode':_0x4db259,'key':_0x1e9452},()=>getAppConfigByKey(_0x4db259,_0x1e9452));if(!_0x332a60)throw CliErrors[_0x507f98(0x16f)](_0x507f98(0x167)+_0x1e9452,_0x507f98(0x170)+_0x4db259);return _0x332a60;}function requireAppConfigId(_0x53ff60,_0x646d0f,_0x302f4a){const _0x36a36a=a23_0xa8717c;if(typeof _0x53ff60['id']===_0x36a36a(0x169)&&Number[_0x36a36a(0x162)](_0x53ff60['id'])&&_0x53ff60['id']>0x0)return _0x53ff60['id'];throw CliErrors['apiError'](_0x36a36a(0x16e)+_0x646d0f+_0x36a36a(0x173)+_0x302f4a);}
1
+ const a23_0x6eed3b=a23_0x548d;(function(_0x19696f,_0x452430){const _0x52e5c3=a23_0x548d,_0x32d947=_0x19696f();while(!![]){try{const _0x354b68=-parseInt(_0x52e5c3(0x1f9))/0x1*(-parseInt(_0x52e5c3(0x1fb))/0x2)+-parseInt(_0x52e5c3(0x1fc))/0x3+-parseInt(_0x52e5c3(0x1f6))/0x4*(-parseInt(_0x52e5c3(0x1f5))/0x5)+parseInt(_0x52e5c3(0x1f1))/0x6*(-parseInt(_0x52e5c3(0x1ec))/0x7)+parseInt(_0x52e5c3(0x1f7))/0x8+parseInt(_0x52e5c3(0x201))/0x9*(-parseInt(_0x52e5c3(0x202))/0xa)+-parseInt(_0x52e5c3(0x1f2))/0xb*(parseInt(_0x52e5c3(0x200))/0xc);if(_0x354b68===_0x452430)break;else _0x32d947['push'](_0x32d947['shift']());}catch(_0x147639){_0x32d947['push'](_0x32d947['shift']());}}}(a23_0x2348,0x70931));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';function a23_0x548d(_0x57838d,_0x3c0467){_0x57838d=_0x57838d-0x1ec;const _0x2348c7=a23_0x2348();let _0x548d73=_0x2348c7[_0x57838d];return _0x548d73;}import{CliErrors}from'../../errors.js';function a23_0x2348(){const _0x4847eb=['5049LkLkUe','Deleted\x20app\x20config\x20','app-config','350065hssVSv','20TpYaAa','2568560OQPSay','validation','67447tSVlbK','get','26wvtNkw','484308gMzPOT','apiError','App\x20config\x20server\x20id\x20missing\x20for\x20key=','delete','1956bJTuTf','78669JAfVJs','340bTMeZx','isFinite','7qoeyEY','appCode:\x20','App\x20config\x20key\x20not\x20found:\x20','appCode','Delete\x20one\x20runtime\x20app-config\x20key','3320364RlqTEY'];a23_0x2348=function(){return _0x4847eb;};return a23_0x2348();}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='/smartapi/app-config/delete';export const appConfigDelete={'service':a23_0x6eed3b(0x1f4),'command':a23_0x6eed3b(0x1ff),'description':a23_0x6eed3b(0x1f0),'risk':'high-risk-write','args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc2d248){readKeyArg(_0xc2d248);},async 'dryRun'(_0x246428){const _0x5cf0e3=a23_0x6eed3b,_0x371a93=readKeyArg(_0x246428),_0x3f87be=await mustGetByKey(_0x246428[_0x5cf0e3(0x1ef)],_0x371a93);return asAppConfigDryRunResult(buildMutationData({'operation':_0x5cf0e3(0x1ff),'appCode':_0x246428[_0x5cf0e3(0x1ef)],'key':_0x371a93,'before':projectAppConfig(_0x3f87be),'after':null,'dryRun':!![]}),{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x17d621){const _0x3e1dcd=a23_0x6eed3b,_0x19a0f3=readKeyArg(_0x17d621),_0x4a2a4b=await mustGetByKey(_0x17d621[_0x3e1dcd(0x1ef)],_0x19a0f3);return await withAppConfigApiBoundary(_0x3e1dcd(0x1ff),{'appCode':_0x17d621[_0x3e1dcd(0x1ef)],'key':_0x19a0f3},()=>deleteAppConfig({'appCode':_0x17d621['appCode'],'id':requireAppConfigId(_0x4a2a4b,_0x19a0f3,_0x17d621[_0x3e1dcd(0x1ef)])})),{'ok':!![],'data':buildMutationData({'operation':_0x3e1dcd(0x1ff),'appCode':_0x17d621['appCode'],'key':_0x19a0f3,'before':projectAppConfig(_0x4a2a4b),'after':null,'dryRun':![]}),'message':_0x3e1dcd(0x1f3)+_0x19a0f3};}};async function mustGetByKey(_0x165f2c,_0xaf3ae1){const _0x571d66=a23_0x6eed3b,_0x1fe4fa=await withAppConfigApiBoundary(_0x571d66(0x1fa),{'appCode':_0x165f2c,'key':_0xaf3ae1},()=>getAppConfigByKey(_0x165f2c,_0xaf3ae1));if(!_0x1fe4fa)throw CliErrors[_0x571d66(0x1f8)](_0x571d66(0x1ee)+_0xaf3ae1,_0x571d66(0x1ed)+_0x165f2c);return _0x1fe4fa;}function requireAppConfigId(_0x2a7ba3,_0x179e1d,_0x1e5330){const _0x538be9=a23_0x6eed3b;if(typeof _0x2a7ba3['id']==='number'&&Number[_0x538be9(0x203)](_0x2a7ba3['id'])&&_0x2a7ba3['id']>0x0)return _0x2a7ba3['id'];throw CliErrors[_0x538be9(0x1fd)](_0x538be9(0x1fe)+_0x179e1d+',\x20appCode='+_0x1e5330);}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigGet: CommandDefinition;
@@ -1 +1 @@
1
- function a24_0x2576(){const _0x10ecce=['read','App\x20config\x20key\x20not\x20found:\x20','reveal','462988aUUeer','4pwamRu','7391616lHplmS','4177728tYuRWh','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','bool','245520kHdbvH','5239254FAMBVs','10YeVwDQ','Loaded\x20app\x20config\x20','appCode:\x20','7975527JydvXt','\x20with\x20value\x20revealed','\x20with\x20value\x20redacted','appCode','140YvJykR','419918KaJGNW'];a24_0x2576=function(){return _0x10ecce;};return a24_0x2576();}const a24_0x14da07=a24_0xaeb1;(function(_0x4346e6,_0x1467df){const _0xbdf9e9=a24_0xaeb1,_0x1de653=_0x4346e6();while(!![]){try{const _0x1e37fb=-parseInt(_0xbdf9e9(0x1d8))/0x1*(-parseInt(_0xbdf9e9(0x1dd))/0x2)+-parseInt(_0xbdf9e9(0x1df))/0x3+-parseInt(_0xbdf9e9(0x1dc))/0x4*(-parseInt(_0xbdf9e9(0x1d0))/0x5)+parseInt(_0xbdf9e9(0x1cf))/0x6+-parseInt(_0xbdf9e9(0x1d3))/0x7+parseInt(_0xbdf9e9(0x1de))/0x8+-parseInt(_0xbdf9e9(0x1ce))/0x9*(-parseInt(_0xbdf9e9(0x1d7))/0xa);if(_0x1e37fb===_0x1467df)break;else _0x1de653['push'](_0x1de653['shift']());}catch(_0x51834c){_0x1de653['push'](_0x1de653['shift']());}}}(a24_0x2576,0xaf68a));import{getAppConfigByKey}from'../../core/api-client.js';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';function a24_0xaeb1(_0x250d1e,_0x785cde){_0x250d1e=_0x250d1e-0x1cd;const _0x2576ce=a24_0x2576();let _0xaeb15f=_0x2576ce[_0x250d1e];return _0xaeb15f;}export const appConfigGet={'service':'app-config','command':'get','description':a24_0x14da07(0x1e0),'risk':a24_0x14da07(0x1d9),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x1313cf){readKeyArg(_0x1313cf);},async 'execute'(_0x5a96f7){const _0x5bcd4a=a24_0x14da07,_0xd8abeb=readKeyArg(_0x5a96f7),_0x488b0a=await withAppConfigApiBoundary('get',{'appCode':_0x5a96f7['appCode'],'key':_0xd8abeb},()=>getAppConfigByKey(_0x5a96f7[_0x5bcd4a(0x1d6)],_0xd8abeb));if(!_0x488b0a)throw CliErrors['validation'](_0x5bcd4a(0x1da)+_0xd8abeb,_0x5bcd4a(0x1d2)+_0x5a96f7[_0x5bcd4a(0x1d6)]);const _0x49df47=projectAppConfig(_0x488b0a,{'reveal':_0x5a96f7[_0x5bcd4a(0x1cd)](_0x5bcd4a(0x1db))});return{'ok':!![],'data':{'config':_0x49df47},'message':_0x5a96f7[_0x5bcd4a(0x1cd)](_0x5bcd4a(0x1db))?_0x5bcd4a(0x1d1)+_0xd8abeb+_0x5bcd4a(0x1d4):_0x5bcd4a(0x1d1)+_0xd8abeb+_0x5bcd4a(0x1d5)};}};
1
+ const a24_0x2029f3=a24_0x4ef7;function a24_0x42da(){const _0x3413df=['appCode:\x20','239244TPGMDl','app-config','Loaded\x20app\x20config\x20','35AXFZCz','78DDQqKC','\x20with\x20value\x20redacted','appCode','268Nwtpov','App\x20config\x20key\x20not\x20found:\x20','read','188iEcLdw','14403fJAMMX','13YokkQb','1830hREWWM','get','11UpyanD','2897415LWqAtt','106060QYZftR','validation','57496qfJehM','1403710NpmqDH','10hxIjhK','reveal','bool','\x20with\x20value\x20revealed'];a24_0x42da=function(){return _0x3413df;};return a24_0x42da();}(function(_0x44b9a9,_0x35cf6b){const _0x408bbb=a24_0x4ef7,_0x7b85af=_0x44b9a9();while(!![]){try{const _0x314931=-parseInt(_0x408bbb(0x9a))/0x1*(-parseInt(_0x408bbb(0xa0))/0x2)+parseInt(_0x408bbb(0x9e))/0x3*(-parseInt(_0x408bbb(0x9d))/0x4)+parseInt(_0x408bbb(0xa4))/0x5*(-parseInt(_0x408bbb(0xb1))/0x6)+-parseInt(_0x408bbb(0xb0))/0x7*(-parseInt(_0x408bbb(0xa6))/0x8)+parseInt(_0x408bbb(0xa3))/0x9*(parseInt(_0x408bbb(0xa8))/0xa)+-parseInt(_0x408bbb(0xa2))/0xb*(parseInt(_0x408bbb(0xad))/0xc)+parseInt(_0x408bbb(0x9f))/0xd*(parseInt(_0x408bbb(0xa7))/0xe);if(_0x314931===_0x35cf6b)break;else _0x7b85af['push'](_0x7b85af['shift']());}catch(_0x23ce01){_0x7b85af['push'](_0x7b85af['shift']());}}}(a24_0x42da,0x2c6ff));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a24_0x4ef7(_0x3a76da,_0x422c52){_0x3a76da=_0x3a76da-0x98;const _0x42daa5=a24_0x42da();let _0x4ef7e2=_0x42daa5[_0x3a76da];return _0x4ef7e2;}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a24_0x2029f3(0xae),'command':a24_0x2029f3(0xa1),'description':'Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','risk':a24_0x2029f3(0x9c),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x173822){readKeyArg(_0x173822);},async 'execute'(_0x36512a){const _0x35f3dd=a24_0x2029f3,_0x57cf1a=readKeyArg(_0x36512a),_0x188f53=await withAppConfigApiBoundary(_0x35f3dd(0xa1),{'appCode':_0x36512a['appCode'],'key':_0x57cf1a},()=>getAppConfigByKey(_0x36512a['appCode'],_0x57cf1a));if(!_0x188f53)throw CliErrors[_0x35f3dd(0xa5)](_0x35f3dd(0x9b)+_0x57cf1a,_0x35f3dd(0xac)+_0x36512a[_0x35f3dd(0x99)]);const _0x1904ce=projectAppConfig(_0x188f53,{'reveal':_0x36512a[_0x35f3dd(0xaa)](_0x35f3dd(0xa9))});return{'ok':!![],'data':{'config':_0x1904ce},'message':_0x36512a['bool']('reveal')?_0x35f3dd(0xaf)+_0x57cf1a+_0x35f3dd(0xab):_0x35f3dd(0xaf)+_0x57cf1a+_0x35f3dd(0x98)};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const appConfigDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- (function(_0x9d232e,_0x186b06){const _0x38e5ec=a25_0x1c44,_0x14233e=_0x9d232e();while(!![]){try{const _0x1f2058=-parseInt(_0x38e5ec(0x1de))/0x1*(parseInt(_0x38e5ec(0x1d9))/0x2)+parseInt(_0x38e5ec(0x1e2))/0x3+-parseInt(_0x38e5ec(0x1e3))/0x4+parseInt(_0x38e5ec(0x1da))/0x5*(parseInt(_0x38e5ec(0x1dd))/0x6)+parseInt(_0x38e5ec(0x1db))/0x7*(-parseInt(_0x38e5ec(0x1df))/0x8)+-parseInt(_0x38e5ec(0x1e0))/0x9*(-parseInt(_0x38e5ec(0x1e1))/0xa)+-parseInt(_0x38e5ec(0x1e4))/0xb*(-parseInt(_0x38e5ec(0x1dc))/0xc);if(_0x1f2058===_0x186b06)break;else _0x14233e['push'](_0x14233e['shift']());}catch(_0x51c328){_0x14233e['push'](_0x14233e['shift']());}}}(a25_0x5ee3,0xf2b4a));import{appConfigList}from'../../commands/app-config/list.js';function a25_0x5ee3(){const _0x5a08e0=['743419WAogQR','40LAWXxF','18TaKvti','1426190eXeXEl','2943273plFKRe','5343020LirDiy','30371kgBQDq','2ipeuUW','30OaZxpZ','2577610AeftbQ','10476szAhJR','1237764GrNGeE'];a25_0x5ee3=function(){return _0x5a08e0;};return a25_0x5ee3();}import{appConfigGet}from'../../commands/app-config/get.js';function a25_0x1c44(_0x49122c,_0x302513){_0x49122c=_0x49122c-0x1d9;const _0x5ee397=a25_0x5ee3();let _0x1c449e=_0x5ee397[_0x49122c];return _0x1c449e;}import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
1
+ function a25_0x575f(_0xbe31f3,_0x309500){_0xbe31f3=_0xbe31f3-0x173;const _0x8abf4=a25_0x8abf();let _0x575f66=_0x8abf4[_0xbe31f3];return _0x575f66;}(function(_0x51643d,_0x3ca9b0){const _0x495b51=a25_0x575f,_0x27f689=_0x51643d();while(!![]){try{const _0x32ac11=-parseInt(_0x495b51(0x173))/0x1+parseInt(_0x495b51(0x176))/0x2+-parseInt(_0x495b51(0x175))/0x3*(-parseInt(_0x495b51(0x17c))/0x4)+-parseInt(_0x495b51(0x178))/0x5+-parseInt(_0x495b51(0x17b))/0x6+-parseInt(_0x495b51(0x179))/0x7*(parseInt(_0x495b51(0x174))/0x8)+parseInt(_0x495b51(0x17a))/0x9*(parseInt(_0x495b51(0x177))/0xa);if(_0x32ac11===_0x3ca9b0)break;else _0x27f689['push'](_0x27f689['shift']());}catch(_0x334b32){_0x27f689['push'](_0x27f689['shift']());}}}(a25_0x8abf,0xa78c0));import{appConfigList}from'../../commands/app-config/list.js';import{appConfigGet}from'../../commands/app-config/get.js';import{appConfigSet}from'../../commands/app-config/set.js';function a25_0x8abf(){const _0x5e381d=['614197jWyVsV','61112msLfvY','16557NOSDTL','932264VXrjsb','7340tPBfeF','1089030AHuAqA','287yfnvzJ','16956tBBNyv','1131618kwWSOR','124GETQbq'];a25_0x8abf=function(){return _0x5e381d;};return a25_0x8abf();}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
- const a26_0xb3ed77=a26_0x127b;(function(_0x10e8b8,_0x17403a){const _0x3e6fd1=a26_0x127b,_0x1abd2a=_0x10e8b8();while(!![]){try{const _0x26fb83=-parseInt(_0x3e6fd1(0x11f))/0x1+-parseInt(_0x3e6fd1(0x11b))/0x2+parseInt(_0x3e6fd1(0x121))/0x3+parseInt(_0x3e6fd1(0x125))/0x4+parseInt(_0x3e6fd1(0x123))/0x5*(-parseInt(_0x3e6fd1(0x122))/0x6)+parseInt(_0x3e6fd1(0x119))/0x7*(parseInt(_0x3e6fd1(0x12a))/0x8)+-parseInt(_0x3e6fd1(0x127))/0x9*(parseInt(_0x3e6fd1(0x120))/0xa);if(_0x26fb83===_0x17403a)break;else _0x1abd2a['push'](_0x1abd2a['shift']());}catch(_0x2d0515){_0x1abd2a['push'](_0x1abd2a['shift']());}}}(a26_0x5844,0xb50d4));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_0xb3ed77(0x12b),'command':a26_0xb3ed77(0x12c),'description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'key','type':a26_0xb3ed77(0x11e),'description':'Filter\x20by\x20exact\x20config\x20key'},TAGS_FLAG],async 'validate'(_0x551ae5){const _0x2c37d4=a26_0xb3ed77,_0x131bff=_0x551ae5[_0x2c37d4(0x11c)](_0x2c37d4(0x11d))[_0x2c37d4(0x124)]();if(_0x131bff)validateKey(_0x131bff);readOptionalTags(_0x551ae5);},async 'execute'(_0x5626eb){const _0x11e346=a26_0xb3ed77,_0x4c8459=_0x5626eb[_0x11e346(0x11c)](_0x11e346(0x11d))['trim']()||undefined,_0x87f903=readOptionalTags(_0x5626eb),_0x1ef7cd=await withAppConfigApiBoundary('list',{'appCode':_0x5626eb[_0x11e346(0x128)]},()=>listAppConfigs(_0x5626eb['appCode'],{'key':_0x4c8459,'tags':_0x87f903})),_0x8cb499=_0x1ef7cd['map'](_0xa139a6=>projectAppConfig(_0xa139a6));return{'ok':!![],'data':{'appCode':_0x5626eb['appCode'],'count':_0x8cb499[_0x11e346(0x129)],'configs':_0x8cb499},'message':_0x11e346(0x11a)+_0x8cb499[_0x11e346(0x129)]+_0x11e346(0x126)};}};function a26_0x127b(_0x2488c1,_0x375ca1){_0x2488c1=_0x2488c1-0x119;const _0x5844aa=a26_0x5844();let _0x127bdf=_0x5844aa[_0x2488c1];return _0x127bdf;}function a26_0x5844(){const _0x2d293c=['list','203lYKzow','Found\x20','1286878DRGvJD','str','key','string','268909kwUljy','1435630MHyISV','3307761GRwgVM','1848606wuBcFq','10qYFNjD','trim','5215704UQcQhD','\x20app\x20config(s)','72nviKiW','appCode','length','279208lGnxWm','app-config'];a26_0x5844=function(){return _0x2d293c;};return a26_0x5844();}
1
+ function a26_0x5971(){const _0xb7dc1f=['key','601134NspiRj','780051bZvkQt','1PiZCoJ','appCode','length','string','564568DGiMTV','Filter\x20by\x20exact\x20config\x20key','328RCeCMD','read','14sbnEuo','2709948URzflm','list','map','250WcVWKK','Found\x20','trim','86823oJFraG','4sxIwhK','306805VIHmci','str','62217VvCHaZ','13wYHhGB'];a26_0x5971=function(){return _0xb7dc1f;};return a26_0x5971();}const a26_0x359ee3=a26_0x41fa;(function(_0x125f5d,_0xd2ee87){const _0x5412eb=a26_0x41fa,_0x180e31=_0x125f5d();while(!![]){try{const _0x4b7659=parseInt(_0x5412eb(0x1f8))/0x1*(parseInt(_0x5412eb(0x1fc))/0x2)+parseInt(_0x5412eb(0x1f7))/0x3*(-parseInt(_0x5412eb(0x208))/0x4)+parseInt(_0x5412eb(0x1f1))/0x5+-parseInt(_0x5412eb(0x1f6))/0x6*(-parseInt(_0x5412eb(0x200))/0x7)+-parseInt(_0x5412eb(0x1fe))/0x8*(-parseInt(_0x5412eb(0x1f3))/0x9)+parseInt(_0x5412eb(0x204))/0xa*(-parseInt(_0x5412eb(0x207))/0xb)+parseInt(_0x5412eb(0x201))/0xc*(-parseInt(_0x5412eb(0x1f4))/0xd);if(_0x4b7659===_0xd2ee87)break;else _0x180e31['push'](_0x180e31['shift']());}catch(_0x18c796){_0x180e31['push'](_0x180e31['shift']());}}}(a26_0x5971,0x2339d));import{listAppConfigs}from'../../core/api-client.js';function a26_0x41fa(_0x4761ed,_0xe5de09){_0x4761ed=_0x4761ed-0x1f1;const _0x597132=a26_0x5971();let _0x41fa33=_0x597132[_0x4761ed];return _0x41fa33;}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':a26_0x359ee3(0x202),'description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':a26_0x359ee3(0x1ff),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a26_0x359ee3(0x1f5),'type':a26_0x359ee3(0x1fb),'description':a26_0x359ee3(0x1fd)},TAGS_FLAG],async 'validate'(_0x5f1c28){const _0x5870ef=a26_0x359ee3,_0x42ee24=_0x5f1c28[_0x5870ef(0x1f2)](_0x5870ef(0x1f5))[_0x5870ef(0x206)]();if(_0x42ee24)validateKey(_0x42ee24);readOptionalTags(_0x5f1c28);},async 'execute'(_0x1e1bd1){const _0x41fe42=a26_0x359ee3,_0x4d5a74=_0x1e1bd1[_0x41fe42(0x1f2)]('key')[_0x41fe42(0x206)]()||undefined,_0x56b2c1=readOptionalTags(_0x1e1bd1),_0x5a34b0=await withAppConfigApiBoundary(_0x41fe42(0x202),{'appCode':_0x1e1bd1['appCode']},()=>listAppConfigs(_0x1e1bd1[_0x41fe42(0x1f9)],{'key':_0x4d5a74,'tags':_0x56b2c1})),_0x5cd41a=_0x5a34b0[_0x41fe42(0x203)](_0x4d3ba3=>projectAppConfig(_0x4d3ba3));return{'ok':!![],'data':{'appCode':_0x1e1bd1[_0x41fe42(0x1f9)],'count':_0x5cd41a[_0x41fe42(0x1fa)],'configs':_0x5cd41a},'message':_0x41fe42(0x205)+_0x5cd41a[_0x41fe42(0x1fa)]+'\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_0x45e000=a27_0x3786;(function(_0x41f96f,_0x2c1bc8){const _0xc5c21=a27_0x3786,_0x5756a4=_0x41f96f();while(!![]){try{const _0x11dde7=parseInt(_0xc5c21(0x1a8))/0x1+-parseInt(_0xc5c21(0x1b9))/0x2+-parseInt(_0xc5c21(0x1b5))/0x3*(-parseInt(_0xc5c21(0x1c4))/0x4)+-parseInt(_0xc5c21(0x1bb))/0x5+-parseInt(_0xc5c21(0x1bc))/0x6*(parseInt(_0xc5c21(0x1c0))/0x7)+-parseInt(_0xc5c21(0x1ab))/0x8*(parseInt(_0xc5c21(0x1c1))/0x9)+parseInt(_0xc5c21(0x1ba))/0xa*(parseInt(_0xc5c21(0x1b8))/0xb);if(_0x11dde7===_0x2c1bc8)break;else _0x5756a4['push'](_0x5756a4['shift']());}catch(_0x552b62){_0x5756a4['push'](_0x5756a4['shift']());}}}(a27_0x2028,0xbf4da));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_0x45e000(0x1aa),UPDATE_PATH=a27_0x45e000(0x1c2);export const appConfigSet={'service':a27_0x45e000(0x1b3),'command':'set','description':'Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','risk':a27_0x45e000(0x1bd),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a27_0x45e000(0x1bf),'type':a27_0x45e000(0x1af),'description':a27_0x45e000(0x1b6)}],async 'validate'(_0x258db5){readKeyArg(_0x258db5),readOptionalTags(_0x258db5),assertSingleValueSource(_0x258db5);},async 'dryRun'(_0x2ac68f){const _0x4daa9c=a27_0x45e000,_0x1d8d86=readKeyArg(_0x2ac68f),_0x994014=readOptionalTags(_0x2ac68f),_0x37cf6b=assertSingleValueSource(_0x2ac68f);await assertValueSourceReadable(_0x37cf6b);const _0xe8f27a=await withAppConfigApiBoundary(_0x4daa9c(0x1ad),{'appCode':_0x2ac68f[_0x4daa9c(0x1ac)],'key':_0x1d8d86},()=>getAppConfigByKey(_0x2ac68f['appCode'],_0x1d8d86)),_0xbfc128=_0xe8f27a?_0x4daa9c(0x1b1):_0x4daa9c(0x1be),_0x2bafef=_0xe8f27a?projectAppConfig(_0xe8f27a):null,_0xeadfd8=plannedAppConfig({'appCode':_0x2ac68f[_0x4daa9c(0x1ac)],'key':_0x1d8d86,'tags':_0x994014??_0xe8f27a?.['tags'],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0xbfc128,'appCode':_0x2ac68f[_0x4daa9c(0x1ac)],'key':_0x1d8d86,'before':_0x2bafef,'after':_0xeadfd8,'dryRun':!![]}),{'method':_0x4daa9c(0x1b2),'url':_0xbfc128===_0x4daa9c(0x1b1)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x3aa7b1){const _0x32a463=a27_0x45e000,_0x5c02a7=readKeyArg(_0x3aa7b1),_0x5a959c=readOptionalTags(_0x3aa7b1),_0xe35d2a=await withAppConfigApiBoundary(_0x32a463(0x1ad),{'appCode':_0x3aa7b1['appCode'],'key':_0x5c02a7},()=>getAppConfigByKey(_0x3aa7b1[_0x32a463(0x1ac)],_0x5c02a7)),_0x1a7ac2=_0xe35d2a?projectAppConfig(_0xe35d2a):null,_0x2586dc=_0xe35d2a?_0x32a463(0x1b1):_0x32a463(0x1be),{value:_0x614f85,warnings:_0x5b0305}=await readAppConfigValue(_0x3aa7b1),_0x48ff1a={'appCode':_0x3aa7b1[_0x32a463(0x1ac)],'key':_0x5c02a7,'value':_0x614f85,'tags':_0x5a959c??_0xe35d2a?.[_0x32a463(0x1a9)]??undefined};await withAppConfigApiBoundary(_0x2586dc,{'appCode':_0x3aa7b1['appCode'],'key':_0x5c02a7},async()=>{const _0x451bc5=_0x32a463;_0xe35d2a?await updateAppConfig({..._0x48ff1a,'id':requireAppConfigId(_0xe35d2a,_0x5c02a7,_0x3aa7b1[_0x451bc5(0x1ac)])}):await createAppConfig(_0x48ff1a);});const _0x3704e3=await withAppConfigApiBoundary(_0x32a463(0x1ad),{'appCode':_0x3aa7b1[_0x32a463(0x1ac)],'key':_0x5c02a7},()=>getAppConfigByKey(_0x3aa7b1[_0x32a463(0x1ac)],_0x5c02a7)),_0x1f3d70=_0x3704e3?projectAppConfig(_0x3704e3):plannedAppConfig({'appCode':_0x3aa7b1[_0x32a463(0x1ac)],'key':_0x5c02a7,'tags':_0x48ff1a[_0x32a463(0x1a9)],'hasValue':_0x614f85!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x2586dc,'appCode':_0x3aa7b1['appCode'],'key':_0x5c02a7,'before':_0x1a7ac2,'after':_0x1f3d70,'dryRun':![],'warnings':_0x5b0305}),'message':(_0x2586dc===_0x32a463(0x1b1)?'Updated':_0x32a463(0x1b7))+'\x20app\x20config\x20'+_0x5c02a7};}};function a27_0x2028(){const _0x321471=['update','POST','app-config',',\x20appCode=','52566PlUkfa','Read\x20config\x20value\x20from\x20file','Created','33jnCkAh','479284quShbT','6330010LJGqvc','3894925EFvmTD','3492396SyYCig','high-risk-write','create','file','14LDlcGb','18ybfIoG','/smartapi/app-config/update','App\x20config\x20server\x20id\x20missing\x20for\x20key=','164yKTsYJ','651694OwkOHQ','tags','/smartapi/app-config/create','1211048GTzjXZ','appCode','get','isFinite','string','number'];a27_0x2028=function(){return _0x321471;};return a27_0x2028();}function a27_0x3786(_0x3c8bb9,_0xec6d5d){_0x3c8bb9=_0x3c8bb9-0x1a8;const _0x2028dd=a27_0x2028();let _0x37863a=_0x2028dd[_0x3c8bb9];return _0x37863a;}function requireAppConfigId(_0x454633,_0x7657f7,_0x349bfa){const _0x19c660=a27_0x45e000;if(typeof _0x454633['id']===_0x19c660(0x1b0)&&Number[_0x19c660(0x1ae)](_0x454633['id'])&&_0x454633['id']>0x0)return _0x454633['id'];throw CliErrors['apiError'](_0x19c660(0x1c3)+_0x7657f7+_0x19c660(0x1b4)+_0x349bfa);}
1
+ const a27_0x3ee6ab=a27_0xb0b6;(function(_0x298ea5,_0x38c37c){const _0x46ce37=a27_0xb0b6,_0x3f82a8=_0x298ea5();while(!![]){try{const _0x52ea52=-parseInt(_0x46ce37(0xa2))/0x1+parseInt(_0x46ce37(0x8e))/0x2*(parseInt(_0x46ce37(0x91))/0x3)+-parseInt(_0x46ce37(0x9b))/0x4*(-parseInt(_0x46ce37(0x95))/0x5)+-parseInt(_0x46ce37(0x8d))/0x6+-parseInt(_0x46ce37(0x98))/0x7*(-parseInt(_0x46ce37(0x99))/0x8)+-parseInt(_0x46ce37(0x89))/0x9*(-parseInt(_0x46ce37(0x9e))/0xa)+-parseInt(_0x46ce37(0x92))/0xb*(parseInt(_0x46ce37(0x9a))/0xc);if(_0x52ea52===_0x38c37c)break;else _0x3f82a8['push'](_0x3f82a8['shift']());}catch(_0x5db083){_0x3f82a8['push'](_0x3f82a8['shift']());}}}(a27_0x3005,0xa4cf7));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';function a27_0xb0b6(_0x5748a1,_0xc72a24){_0x5748a1=_0x5748a1-0x85;const _0x300555=a27_0x3005();let _0xb0b617=_0x300555[_0x5748a1];return _0xb0b617;}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='/smartapi/app-config/create',UPDATE_PATH=a27_0x3ee6ab(0x8c);export const appConfigSet={'service':a27_0x3ee6ab(0x85),'command':a27_0x3ee6ab(0x8f),'description':a27_0x3ee6ab(0x9d),'risk':a27_0x3ee6ab(0x97),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a27_0x3ee6ab(0x90),'type':a27_0x3ee6ab(0x88),'description':a27_0x3ee6ab(0x8b)}],async 'validate'(_0x47f02a){readKeyArg(_0x47f02a),readOptionalTags(_0x47f02a),assertSingleValueSource(_0x47f02a);},async 'dryRun'(_0x1ce813){const _0x280fee=a27_0x3ee6ab,_0x13d074=readKeyArg(_0x1ce813),_0x494357=readOptionalTags(_0x1ce813),_0x5c485b=assertSingleValueSource(_0x1ce813);await assertValueSourceReadable(_0x5c485b);const _0x35203f=await withAppConfigApiBoundary(_0x280fee(0x86),{'appCode':_0x1ce813[_0x280fee(0x96)],'key':_0x13d074},()=>getAppConfigByKey(_0x1ce813[_0x280fee(0x96)],_0x13d074)),_0xab3cc=_0x35203f?_0x280fee(0x93):_0x280fee(0xa0),_0x3fcef7=_0x35203f?projectAppConfig(_0x35203f):null,_0x124768=plannedAppConfig({'appCode':_0x1ce813[_0x280fee(0x96)],'key':_0x13d074,'tags':_0x494357??_0x35203f?.[_0x280fee(0x94)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0xab3cc,'appCode':_0x1ce813[_0x280fee(0x96)],'key':_0x13d074,'before':_0x3fcef7,'after':_0x124768,'dryRun':!![]}),{'method':_0x280fee(0xa1),'url':_0xab3cc==='update'?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x48693e){const _0x30ff68=a27_0x3ee6ab,_0x4c65f1=readKeyArg(_0x48693e),_0xc1efb2=readOptionalTags(_0x48693e),_0x2b1557=await withAppConfigApiBoundary(_0x30ff68(0x86),{'appCode':_0x48693e[_0x30ff68(0x96)],'key':_0x4c65f1},()=>getAppConfigByKey(_0x48693e[_0x30ff68(0x96)],_0x4c65f1)),_0x1d3094=_0x2b1557?projectAppConfig(_0x2b1557):null,_0x1d7fa6=_0x2b1557?_0x30ff68(0x93):_0x30ff68(0xa0),{value:_0x4817d6,warnings:_0x264238}=await readAppConfigValue(_0x48693e),_0x44838e={'appCode':_0x48693e[_0x30ff68(0x96)],'key':_0x4c65f1,'value':_0x4817d6,'tags':_0xc1efb2??_0x2b1557?.['tags']??undefined};await withAppConfigApiBoundary(_0x1d7fa6,{'appCode':_0x48693e['appCode'],'key':_0x4c65f1},async()=>{_0x2b1557?await updateAppConfig({..._0x44838e,'id':requireAppConfigId(_0x2b1557,_0x4c65f1,_0x48693e['appCode'])}):await createAppConfig(_0x44838e);});const _0x494e39=await withAppConfigApiBoundary('get',{'appCode':_0x48693e[_0x30ff68(0x96)],'key':_0x4c65f1},()=>getAppConfigByKey(_0x48693e[_0x30ff68(0x96)],_0x4c65f1)),_0x519f1b=_0x494e39?projectAppConfig(_0x494e39):plannedAppConfig({'appCode':_0x48693e[_0x30ff68(0x96)],'key':_0x4c65f1,'tags':_0x44838e[_0x30ff68(0x94)],'hasValue':_0x4817d6!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x1d7fa6,'appCode':_0x48693e[_0x30ff68(0x96)],'key':_0x4c65f1,'before':_0x1d3094,'after':_0x519f1b,'dryRun':![],'warnings':_0x264238}),'message':(_0x1d7fa6===_0x30ff68(0x93)?_0x30ff68(0x8a):'Created')+'\x20app\x20config\x20'+_0x4c65f1};}};function requireAppConfigId(_0x3d8c2f,_0x3a65e1,_0x57bbde){const _0x29a75e=a27_0x3ee6ab;if(typeof _0x3d8c2f['id']==='number'&&Number[_0x29a75e(0x87)](_0x3d8c2f['id'])&&_0x3d8c2f['id']>0x0)return _0x3d8c2f['id'];throw CliErrors[_0x29a75e(0xa3)](_0x29a75e(0x9f)+_0x3a65e1+_0x29a75e(0x9c)+_0x57bbde);}function a27_0x3005(){const _0xf0c5d4=['7ICglad','7909000bTCarq','156EjAbLh','24472hlqUES',',\x20appCode=','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','6201990QGdrXK','App\x20config\x20server\x20id\x20missing\x20for\x20key=','create','POST','821200XORPwy','apiError','app-config','get','isFinite','string','9uQqlkq','Updated','Read\x20config\x20value\x20from\x20file','/smartapi/app-config/update','4660002Gaqbqw','30SgkCQw','set','file','259002fvqNIA','1248236ZvpXHV','update','tags','690YSyLiz','appCode','high-risk-write'];a27_0x3005=function(){return _0xf0c5d4;};return a27_0x3005();}