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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const bffStatus: CommandDefinition;
@@ -1 +1 @@
1
- const a37_0x3fb8b5=a37_0x13be;function a37_0x58d5(){const _0xd0f0ee=['201450WMlGLl','read','boolean','apiDir','filePath','appCode','\x20added,\x20','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','push','lockKey','scriptsRoot','map','3778943idsUDi','functions','bool','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','\x20unchanged','hash','744546JEpnfv','208928mVrIWn','All\x20BFF\x20scripts\x20are\x20in\x20sync.','alias','bff','189sxauBG','182202xyJyzk','2667615dnWEmh','1181670bMzgsD','\x20modified,\x20','4dgsduu','datasetCode','remote','has','lockFilePath','status','803XsktDD','1kUouZN','all','length'];a37_0x58d5=function(){return _0xd0f0ee;};return a37_0x58d5();}(function(_0x444785,_0x395557){const _0x430932=a37_0x13be,_0x42ab8c=_0x444785();while(!![]){try{const _0x36ac84=-parseInt(_0x430932(0xf5))/0x1*(parseInt(_0x430932(0x110))/0x2)+parseInt(_0x430932(0x112))/0x3+-parseInt(_0x430932(0x114))/0x4*(parseInt(_0x430932(0x111))/0x5)+parseInt(_0x430932(0x10a))/0x6+-parseInt(_0x430932(0x104))/0x7+-parseInt(_0x430932(0x10b))/0x8*(parseInt(_0x430932(0x10f))/0x9)+-parseInt(_0x430932(0xf8))/0xa*(-parseInt(_0x430932(0x11a))/0xb);if(_0x36ac84===_0x395557)break;else _0x42ab8c['push'](_0x42ab8c['shift']());}catch(_0x2d83e1){_0x42ab8c['push'](_0x42ab8c['shift']());}}}(a37_0x58d5,0x434c9));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a37_0x13be(_0x2c191b,_0x473c8e){_0x2c191b=_0x2c191b-0xf5;const _0x58d5aa=a37_0x58d5();let _0x13bef6=_0x58d5aa[_0x2c191b];return _0x13bef6;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a37_0x3fb8b5(0x10e),'command':a37_0x3fb8b5(0x119),'description':a37_0x3fb8b5(0x107),'risk':a37_0x3fb8b5(0xf9),'flags':[{'name':a37_0x3fb8b5(0x116),'type':a37_0x3fb8b5(0xfa),'description':a37_0x3fb8b5(0xff)}],async 'execute'(_0xc106fb){const _0x1773cb=a37_0x3fb8b5,_0x5ca886=loadBffProjectConfig(_0xc106fb[_0x1773cb(0xfd)]),_0x55b367=await readBffLockFile(_0x5ca886[_0x1773cb(0x118)]),{appLock:_0x33d01e}=ensureLockScope(_0x55b367??createEmptyBffLock(),_0xc106fb[_0x1773cb(0xfd)],_0x5ca886[_0x1773cb(0x102)],_0x1773cb(0x119)),_0x5f2596=await scanLocalBffFunctions(_0x5ca886),_0x3bca41=[],_0x263340=[],_0x47cb8f=[];for(const _0x3b18d5 of _0x5f2596){const _0x10a1d7=await computeFileHash(_0x3b18d5[_0x1773cb(0xfc)]),_0x29fb5f=_0x33d01e['functions'][_0x3b18d5['lockKey']];if(!_0x29fb5f)_0x3bca41[_0x1773cb(0x100)](_0x3b18d5[_0x1773cb(0x101)]);else _0x29fb5f[_0x1773cb(0x109)]!==_0x10a1d7?_0x263340[_0x1773cb(0x100)](_0x3b18d5[_0x1773cb(0x101)]):_0x47cb8f[_0x1773cb(0x100)](_0x3b18d5[_0x1773cb(0x101)]);}const _0x56af4b=[];if(_0xc106fb[_0x1773cb(0x106)](_0x1773cb(0x116))){const _0x29b07f=loadAliasMap(_0xc106fb[_0x1773cb(0xfb)],undefined,resolveApiFilePath(_0xc106fb['apiDir'],_0xc106fb[_0x1773cb(0xfd)])),_0x246ae9=new Map(_0x29b07f[_0x1773cb(0x103)](_0x5a6e68=>[_0x5a6e68[_0x1773cb(0x115)],_0x5a6e68[_0x1773cb(0x10d)]])),[_0x3fcc94,_0x2d28df]=await Promise[_0x1773cb(0xf6)]([listBffScripts(_0xc106fb[_0x1773cb(0xfd)]),getBffScriptStatistics(_0xc106fb[_0x1773cb(0xfd)])]),_0x4e6090=createHookLocationMap(_0x2d28df),_0x21401a=new Set(_0x5f2596[_0x1773cb(0x103)](_0x30fb6a=>_0x30fb6a[_0x1773cb(0x101)]));for(const _0x3e8cd3 of _0x3fcc94){const _0x562d0e=resolveRemoteScriptTarget(_0x5ca886,_0x3e8cd3,_0x4e6090,_0x33d01e[_0x1773cb(0x105)],_0x246ae9);_0x562d0e&&!_0x21401a[_0x1773cb(0x117)](_0x562d0e['lockKey'])&&_0x56af4b[_0x1773cb(0x100)](_0x562d0e[_0x1773cb(0x101)]);}}const _0x3fd684=_0x3bca41[_0x1773cb(0xf7)]===0x0&&_0x263340[_0x1773cb(0xf7)]===0x0&&_0x56af4b['length']===0x0;return{'ok':!![],'data':{'added':_0x3bca41,'modified':_0x263340,'unchanged':_0x47cb8f,'remoteOnly':_0x56af4b},'message':_0x3fd684?_0x1773cb(0x10c):_0x3bca41[_0x1773cb(0xf7)]+_0x1773cb(0xfe)+_0x263340[_0x1773cb(0xf7)]+_0x1773cb(0x113)+_0x47cb8f[_0x1773cb(0xf7)]+_0x1773cb(0x108)+(_0x56af4b[_0x1773cb(0xf7)]>0x0?',\x20'+_0x56af4b['length']+'\x20remote-only':'')};}};
1
+ function a37_0x4a88(){const _0x4e45ca=['291054cEFTjl','2416672BQPHoG','map','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','\x20added,\x20','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','push','6422tmmuBI','status','\x20remote-only','hash','length','lockFilePath','\x20unchanged','remote','837598ZkkrEt','apiDir','All\x20BFF\x20scripts\x20are\x20in\x20sync.','functions','datasetCode','has','boolean','scriptsRoot','2224684XYlDGB','appCode','filePath','9RNSOrt','20LOJmRP','read','68qTSvee','all','345QVSpqI','lockKey','11957qztJZt','\x20modified,\x20','231895zBPVQm'];a37_0x4a88=function(){return _0x4e45ca;};return a37_0x4a88();}const a37_0x30da18=a37_0x1566;(function(_0x30e616,_0x111d7c){const _0x143072=a37_0x1566,_0x4ed76b=_0x30e616();while(!![]){try{const _0x3489a1=parseInt(_0x143072(0x1f1))/0x1+-parseInt(_0x143072(0x20d))/0x2*(-parseInt(_0x143072(0x201))/0x3)+parseInt(_0x143072(0x1ff))/0x4*(-parseInt(_0x143072(0x205))/0x5)+parseInt(_0x143072(0x206))/0x6+parseInt(_0x143072(0x1f9))/0x7+-parseInt(_0x143072(0x207))/0x8*(parseInt(_0x143072(0x1fc))/0x9)+parseInt(_0x143072(0x1fd))/0xa*(-parseInt(_0x143072(0x203))/0xb);if(_0x3489a1===_0x111d7c)break;else _0x4ed76b['push'](_0x4ed76b['shift']());}catch(_0x1fd660){_0x4ed76b['push'](_0x4ed76b['shift']());}}}(a37_0x4a88,0x754e3));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';function a37_0x1566(_0x1cd08c,_0x4e5b3b){_0x1cd08c=_0x1cd08c-0x1ec;const _0x4a880c=a37_0x4a88();let _0x156643=_0x4a880c[_0x1cd08c];return _0x156643;}import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':'bff','command':a37_0x30da18(0x20e),'description':a37_0x30da18(0x20b),'risk':a37_0x30da18(0x1fe),'flags':[{'name':a37_0x30da18(0x1f0),'type':a37_0x30da18(0x1f7),'description':a37_0x30da18(0x209)}],async 'execute'(_0x588668){const _0x41bc86=a37_0x30da18,_0x53587b=loadBffProjectConfig(_0x588668['appCode']),_0x40b216=await readBffLockFile(_0x53587b[_0x41bc86(0x1ee)]),{appLock:_0x36706e}=ensureLockScope(_0x40b216??createEmptyBffLock(),_0x588668[_0x41bc86(0x1fa)],_0x53587b[_0x41bc86(0x1f8)],_0x41bc86(0x20e)),_0x418215=await scanLocalBffFunctions(_0x53587b),_0x316fa7=[],_0x5a2844=[],_0x5e9a5a=[];for(const _0x2d4f5d of _0x418215){const _0x40faaa=await computeFileHash(_0x2d4f5d[_0x41bc86(0x1fb)]),_0x3837d1=_0x36706e[_0x41bc86(0x1f4)][_0x2d4f5d[_0x41bc86(0x202)]];if(!_0x3837d1)_0x316fa7[_0x41bc86(0x20c)](_0x2d4f5d[_0x41bc86(0x202)]);else _0x3837d1[_0x41bc86(0x1ec)]!==_0x40faaa?_0x5a2844[_0x41bc86(0x20c)](_0x2d4f5d[_0x41bc86(0x202)]):_0x5e9a5a[_0x41bc86(0x20c)](_0x2d4f5d[_0x41bc86(0x202)]);}const _0x24a617=[];if(_0x588668['bool'](_0x41bc86(0x1f0))){const _0x5989fc=loadAliasMap(_0x588668['apiDir'],undefined,resolveApiFilePath(_0x588668[_0x41bc86(0x1f2)],_0x588668[_0x41bc86(0x1fa)])),_0x111326=new Map(_0x5989fc[_0x41bc86(0x208)](_0x5b38c7=>[_0x5b38c7[_0x41bc86(0x1f5)],_0x5b38c7['alias']])),[_0x23397d,_0x442a89]=await Promise[_0x41bc86(0x200)]([listBffScripts(_0x588668[_0x41bc86(0x1fa)]),getBffScriptStatistics(_0x588668[_0x41bc86(0x1fa)])]),_0x3fab6c=createHookLocationMap(_0x442a89),_0x19e366=new Set(_0x418215['map'](_0x4134ed=>_0x4134ed[_0x41bc86(0x202)]));for(const _0x55773d of _0x23397d){const _0x3e4690=resolveRemoteScriptTarget(_0x53587b,_0x55773d,_0x3fab6c,_0x36706e[_0x41bc86(0x1f4)],_0x111326);_0x3e4690&&!_0x19e366[_0x41bc86(0x1f6)](_0x3e4690['lockKey'])&&_0x24a617[_0x41bc86(0x20c)](_0x3e4690[_0x41bc86(0x202)]);}}const _0x368641=_0x316fa7[_0x41bc86(0x1ed)]===0x0&&_0x5a2844[_0x41bc86(0x1ed)]===0x0&&_0x24a617[_0x41bc86(0x1ed)]===0x0;return{'ok':!![],'data':{'added':_0x316fa7,'modified':_0x5a2844,'unchanged':_0x5e9a5a,'remoteOnly':_0x24a617},'message':_0x368641?_0x41bc86(0x1f3):_0x316fa7['length']+_0x41bc86(0x20a)+_0x5a2844['length']+_0x41bc86(0x204)+_0x5e9a5a[_0x41bc86(0x1ed)]+_0x41bc86(0x1ef)+(_0x24a617[_0x41bc86(0x1ed)]>0x0?',\x20'+_0x24a617[_0x41bc86(0x1ed)]+_0x41bc86(0x20f):'')};}};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI Built-in Skill commands.
3
+ *
4
+ * This service owns the rabetbase CLI maintenance Skill installation path.
5
+ * Business Skill installation belongs to the lovrabet runtime CLI.
6
+ */
7
+ import type { CommandDefinition } from "../../framework/types.js";
8
+ export declare const cliSkillDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- const a38_0xe570d2=a38_0x126a;(function(_0xf66a5,_0x33804a){const _0x5b9f62=a38_0x126a,_0x434b6c=_0xf66a5();while(!![]){try{const _0x419206=-parseInt(_0x5b9f62(0x185))/0x1+-parseInt(_0x5b9f62(0x17f))/0x2*(-parseInt(_0x5b9f62(0x184))/0x3)+-parseInt(_0x5b9f62(0x182))/0x4*(parseInt(_0x5b9f62(0x18c))/0x5)+parseInt(_0x5b9f62(0x190))/0x6+parseInt(_0x5b9f62(0x186))/0x7+parseInt(_0x5b9f62(0x18b))/0x8+-parseInt(_0x5b9f62(0x189))/0x9*(parseInt(_0x5b9f62(0x193))/0xa);if(_0x419206===_0x33804a)break;else _0x434b6c['push'](_0x434b6c['shift']());}catch(_0x55348f){_0x434b6c['push'](_0x434b6c['shift']());}}}(a38_0x2c51,0x845e8));import{CliErrors}from'../../errors.js';function a38_0x126a(_0x3db6ca,_0x5bcc3b){_0x3db6ca=_0x3db6ca-0x17d;const _0x2c51f4=a38_0x2c51();let _0x126a13=_0x2c51f4[_0x3db6ca];return _0x126a13;}import{logger}from'../../utils/logger.js';function a38_0x2c51(){const _0x44c4dd=['unknown','2967OnUASm','463812uWUmDd','2481374LhZCBU','nonInteractive','setLogPath','968067iUunrM','error','8123688yOFdZt','10vLpqhm','apiError','cwd','info','3064926TdeFuz','skipped','log','90oyvtoB','read','inherit',')...','1818ptxFDS','cli-skill','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','1611404WONAax'];a38_0x2c51=function(){return _0x44c4dd;};return a38_0x2c51();}export const cliSkillDefinitions=[{'service':a38_0xe570d2(0x180),'command':'install','description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a38_0xe570d2(0x194),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xb71a7b){const _0x5bf8d7=a38_0xe570d2;logger[_0x5bf8d7(0x188)](process['cwd']()),logger[_0x5bf8d7(0x18f)]('cli-skill-install',_0x5bf8d7(0x181));const {NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE:_0x2a428e,RABETBASE_SKILL_SOURCE:_0x456301,runNpxSkillsAddGlobal:_0x340ed5}=await import('../../skills/npx-skills-add.js'),_0x1ec1c6=_0xb71a7b[_0x5bf8d7(0x187)]?'pipe':_0x5bf8d7(0x17d);console[_0x5bf8d7(0x192)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20('+_0x2a428e+_0x5bf8d7(0x17e));const _0x1dcd3a=_0x340ed5(process[_0x5bf8d7(0x18e)](),_0x456301,{'stdio':_0x1ec1c6});if(_0x1dcd3a[_0x5bf8d7(0x191)])console['log']('Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x1dcd3a['ok'])console['log']('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x5bf8d7(0x18d)]('npx\x20skills\x20add\x20failed:\x20'+(_0x1dcd3a[_0x5bf8d7(0x18a)]||_0x5bf8d7(0x183)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20'+_0x2a428e);}return{'ok':!![]};}}];
1
+ const a38_0x4cc3ee=a38_0x2dfb;(function(_0x25946a,_0x53c819){const _0x14f2d9=a38_0x2dfb,_0xae0755=_0x25946a();while(!![]){try{const _0x4a4c45=-parseInt(_0x14f2d9(0x1a4))/0x1*(parseInt(_0x14f2d9(0x1a5))/0x2)+parseInt(_0x14f2d9(0x195))/0x3+-parseInt(_0x14f2d9(0x194))/0x4*(parseInt(_0x14f2d9(0x193))/0x5)+parseInt(_0x14f2d9(0x1a9))/0x6*(parseInt(_0x14f2d9(0x1a1))/0x7)+parseInt(_0x14f2d9(0x199))/0x8+-parseInt(_0x14f2d9(0x19c))/0x9*(-parseInt(_0x14f2d9(0x19f))/0xa)+-parseInt(_0x14f2d9(0x1a0))/0xb;if(_0x4a4c45===_0x53c819)break;else _0xae0755['push'](_0xae0755['shift']());}catch(_0x8c48a0){_0xae0755['push'](_0xae0755['shift']());}}}(a38_0x18c3,0xa3ce6));function a38_0x18c3(){const _0x1d5fdf=['5XWdQDH','2955748ZtoQcO','15072wmshdo','info','CLI\x20Built-in\x20Skill\x20installed','cli-skill','4190040kaFwJm','log','install','8149221wMmEik','cli-skill-install','pipe','10cyZcaV','402688nLqPBd','7rRUjrB','cwd','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','15443sCvqvn','12ewHxVm','inherit','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(','629430SLtiNT','unknown','error','Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','nonInteractive'];a38_0x18c3=function(){return _0x1d5fdf;};return a38_0x18c3();}import{CliErrors}from'../../errors.js';function a38_0x2dfb(_0xd91514,_0x2946dc){_0xd91514=_0xd91514-0x193;const _0x18c31b=a38_0x18c3();let _0x2dfbd1=_0x18c31b[_0xd91514];return _0x2dfbd1;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a38_0x4cc3ee(0x198),'command':a38_0x4cc3ee(0x19b),'description':a38_0x4cc3ee(0x1a3),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2f1e3a){const _0x27430b=a38_0x4cc3ee;logger['setLogPath'](process[_0x27430b(0x1a2)]()),logger[_0x27430b(0x196)](_0x27430b(0x19d),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE:_0x4ed896,RABETBASE_SKILL_SOURCE:_0x31e70d,runNpxSkillsAddGlobal:_0x111ebb}=await import('../../skills/npx-skills-add.js'),_0x3f16da=_0x2f1e3a[_0x27430b(0x1ad)]?_0x27430b(0x19e):_0x27430b(0x1a6);console[_0x27430b(0x19a)](_0x27430b(0x1a8)+_0x4ed896+')...');const _0x567a3b=_0x111ebb(process['cwd'](),_0x31e70d,{'stdio':_0x3f16da});if(_0x567a3b['skipped'])console[_0x27430b(0x19a)](_0x27430b(0x1ac));else{if(_0x567a3b['ok'])console[_0x27430b(0x19a)](_0x27430b(0x197));else throw CliErrors['apiError']('npx\x20skills\x20add\x20failed:\x20'+(_0x567a3b[_0x27430b(0x1ab)]||_0x27430b(0x1aa)),_0x27430b(0x1a7)+_0x4ed896);}return{'ok':!![]};}}];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../framework/types.js";
2
+ export declare const updateDefinition: CommandDefinition;
@@ -1 +1 @@
1
- const a39_0x104a08=a39_0x48a1;(function(_0x4c43be,_0x3484b3){const _0x2f9696=a39_0x48a1,_0x5a80a1=_0x4c43be();while(!![]){try{const _0x224857=parseInt(_0x2f9696(0xf6))/0x1+parseInt(_0x2f9696(0x138))/0x2+-parseInt(_0x2f9696(0x129))/0x3+-parseInt(_0x2f9696(0x108))/0x4*(parseInt(_0x2f9696(0x118))/0x5)+parseInt(_0x2f9696(0x130))/0x6+-parseInt(_0x2f9696(0xef))/0x7*(parseInt(_0x2f9696(0x12c))/0x8)+-parseInt(_0x2f9696(0x112))/0x9;if(_0x224857===_0x3484b3)break;else _0x5a80a1['push'](_0x5a80a1['shift']());}catch(_0x30cfac){_0x5a80a1['push'](_0x5a80a1['shift']());}}}(a39_0x57bd,0x99eaf));import a39_0x32a3f6 from'chalk';import a39_0x2d0a03 from'ora';import a39_0x3a1e4b from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x40fd90=a39_0x48a1;return GIT_COMMIT!==_0x40fd90(0x117)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function a39_0x48a1(_0x667e1e,_0x392652){_0x667e1e=_0x667e1e-0xed;const _0x57bd17=a39_0x57bd();let _0x48a176=_0x57bd17[_0x667e1e];return _0x48a176;}function a39_0x57bd(){const _0x368c6e=['Version\x20comparison\x20failed','1067074VgIDkA','yellow','Update\x20available:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','valid','read','bun','install','Checking\x20for\x20updates...','Current\x20version:\x20','/dist-tags','\x20→\x20','skills','pipe','Updating\x20via\x20','green','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','version','20eWXeWt','filter','execPath','skipped','source','string','https://registry.npmjs.org/-/package/','includes','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Invalid\x20version:\x20','2535156GPtbMk','Install\x20a\x20specific\x20CLI\x20version','cwd','red','info','unknown','238250NMHzMr','beta','Update\x20failed','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','map','gray','bool','\x20cli-skill\x20install','fail','Already\x20on\x20requested\x20version\x20(v','error','toLowerCase','trim','\x20install\x20-g\x20','npm','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','\x20\x20Try\x20manually:\x20','301440aikPIC','entries','object','1163888AjVywA','boolean','succeed','Checking\x20CLI\x20Built-in\x20Skill...','5986440jgjFiL','json','...','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','timeout','validation','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','length','408898QtTfgC','start','fromEntries','warn','\x20\x20Run\x20manually:\x20','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','Beta\x20version:\x20','no-skills','message','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','log','49ULQGIE','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','latest','inherit','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','nonInteractive'];a39_0x57bd=function(){return _0x368c6e;};return a39_0x57bd();}function detectPackageManager(){const _0x36c663=a39_0x48a1,_0x3aa434=process[_0x36c663(0x10a)][_0x36c663(0x123)]();if(_0x3aa434[_0x36c663(0x10f)](_0x36c663(0xfc)))return _0x36c663(0xfc);return _0x36c663(0x126);}const updateFlags=[{'name':a39_0x104a08(0x119),'type':'boolean','description':a39_0x104a08(0xf0),'default':![]},{'name':'version','type':a39_0x104a08(0x10d),'description':a39_0x104a08(0x113)},{'name':a39_0x104a08(0x13f),'type':a39_0x104a08(0x12d),'description':a39_0x104a08(0xed),'default':![]},{'name':a39_0x104a08(0x102),'type':a39_0x104a08(0x12d),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function getRequestedVersion(_0xc1618d){const _0x7f4d9c=a39_0x104a08;return _0xc1618d['str'](_0x7f4d9c(0x107))[_0x7f4d9c(0x124)]();}function shouldSkipCliSkill(_0x5d6835){const _0x2483d2=a39_0x104a08;return _0x5d6835['bool'](_0x2483d2(0x13f))||_0x5d6835['flag'](_0x2483d2(0x102))===![];}async function validateUpdateFlags(_0x46a1f0){const _0x1d8f13=a39_0x104a08,_0x5bbe2d=_0x46a1f0[_0x1d8f13(0x11e)]('beta'),_0x56c259=getRequestedVersion(_0x46a1f0);if(_0x5bbe2d&&_0x56c259)throw CliErrors[_0x1d8f13(0x135)](_0x1d8f13(0x133),_0x1d8f13(0x13d));if(_0x56c259&&!a39_0x3a1e4b[_0x1d8f13(0xfa)](_0x56c259))throw CliErrors['validation'](_0x1d8f13(0x111)+_0x56c259,_0x1d8f13(0x11b));}async function fetchNpmDistTags(){const _0x298c92=a39_0x104a08;try{const _0x588b3a=await fetch(_0x298c92(0x10e)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x298c92(0x100),{'signal':AbortSignal[_0x298c92(0x134)](0x2710)});if(!_0x588b3a['ok'])return null;const _0x5d38e0=await _0x588b3a[_0x298c92(0x131)]();if(!_0x5d38e0||typeof _0x5d38e0!==_0x298c92(0x12b))return null;return Object[_0x298c92(0x13a)](Object[_0x298c92(0x12a)](_0x5d38e0)[_0x298c92(0x109)](([,_0x746aa])=>typeof _0x746aa===_0x298c92(0x10d)&&_0x746aa['trim']()[_0x298c92(0x137)]>0x0)[_0x298c92(0x11c)](([_0x5afb6e,_0x2ea07d])=>[_0x5afb6e,String(_0x2ea07d)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x1dd06b){const _0x23e070=await fetchNpmDistTags();return _0x23e070?.[_0x1dd06b]??null;}async function fetchLatestVersion(){return fetchNpmDistTagVersion('latest');}async function resolveTargetVersion(_0x4a7563){const _0x486b52=a39_0x104a08,_0x2ce451=getRequestedVersion(_0x4a7563);if(_0x2ce451)return{'version':_0x2ce451,'source':_0x486b52(0x107)};if(_0x4a7563['bool'](_0x486b52(0x119))){const _0x1b2308=await fetchNpmDistTagVersion(_0x486b52(0x119));if(!_0x1b2308)return null;return{'version':_0x1b2308,'source':_0x486b52(0x119)};}const _0x478f4b=await fetchLatestVersion();if(!_0x478f4b)return null;return{'version':_0x478f4b,'source':_0x486b52(0xf1)};}function shouldInstallTarget(_0x880bbc,_0x50da80){const _0x5b2e40=a39_0x104a08;if(_0x50da80[_0x5b2e40(0x10c)]==='version'||_0x50da80[_0x5b2e40(0x10c)]===_0x5b2e40(0x119))return!a39_0x3a1e4b['eq'](_0x880bbc,_0x50da80[_0x5b2e40(0x107)]);return a39_0x3a1e4b['lt'](_0x880bbc,_0x50da80[_0x5b2e40(0x107)]);}function getInstallPlanLabel(_0x4bdf99,_0x32242a){const _0x56608b=a39_0x104a08;switch(_0x32242a[_0x56608b(0x10c)]){case _0x56608b(0x119):return _0x56608b(0x13e)+a39_0x32a3f6[_0x56608b(0xf7)](_0x4bdf99)+_0x56608b(0x101)+a39_0x32a3f6[_0x56608b(0x105)](_0x32242a[_0x56608b(0x107)]);case _0x56608b(0x107):return'Requested\x20version:\x20'+a39_0x32a3f6[_0x56608b(0xf7)](_0x4bdf99)+_0x56608b(0x101)+a39_0x32a3f6['green'](_0x32242a[_0x56608b(0x107)]);case _0x56608b(0xf1):default:return _0x56608b(0xf8)+a39_0x32a3f6[_0x56608b(0xf7)](_0x4bdf99)+_0x56608b(0x101)+a39_0x32a3f6[_0x56608b(0x105)](_0x32242a['version']);}}async function installCliSkill(_0x2edc4c){const _0x212c23=a39_0x104a08;console['log'](a39_0x32a3f6['gray'](_0x212c23(0x12f)));const _0x3ad3aa=runNpxSkillsAddGlobal(process[_0x212c23(0x114)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x2edc4c?_0x212c23(0x103):_0x212c23(0xf2)});if(_0x3ad3aa[_0x212c23(0x10b)]){console[_0x212c23(0xee)](a39_0x32a3f6[_0x212c23(0x11d)](_0x212c23(0x106)));return;}if(_0x3ad3aa['ok']){console[_0x212c23(0xee)](a39_0x32a3f6[_0x212c23(0x11d)](_0x212c23(0x141)));return;}console[_0x212c23(0x13b)](a39_0x32a3f6[_0x212c23(0xf7)](_0x212c23(0xf9)+(_0x3ad3aa['error']||_0x212c23(0x117)))),console[_0x212c23(0xee)](a39_0x32a3f6[_0x212c23(0x11d)](_0x212c23(0x13c)+CLI_BIN_NAME+_0x212c23(0x11f)));}async function execute(_0x5ab5bf){const _0x5f5141=a39_0x104a08;await validateUpdateFlags(_0x5ab5bf);const _0x2d6ad1=getCurrentVersion();console[_0x5f5141(0xee)](_0x5f5141(0xff)+_0x2d6ad1);const _0x5080c8=a39_0x2d0a03(_0x5f5141(0xfe))[_0x5f5141(0x139)](),_0x1d33bc=await resolveTargetVersion(_0x5ab5bf);if(!_0x1d33bc){const _0x5bd3ca=_0x5ab5bf['bool'](_0x5f5141(0x119))?_0x5f5141(0x136):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x5080c8['fail'](_0x5bd3ca),console[_0x5f5141(0xee)](a39_0x32a3f6[_0x5f5141(0x11d)](_0x5f5141(0xf3)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x5bd3ca};}const _0x198162=a39_0x3a1e4b[_0x5f5141(0xfa)](VERSION),_0x4f5dbc=a39_0x3a1e4b[_0x5f5141(0xfa)](_0x1d33bc[_0x5f5141(0x107)]);if(!_0x198162||!_0x4f5dbc)return _0x5080c8[_0x5f5141(0x120)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x5f5141(0xf5)};if(!shouldInstallTarget(_0x198162,_0x1d33bc)){const _0x3ce873=_0x1d33bc[_0x5f5141(0x10c)]===_0x5f5141(0x107)?_0x5f5141(0x121)+_0x1d33bc[_0x5f5141(0x107)]+')':'Already\x20up\x20to\x20date\x20(v'+_0x1d33bc['version']+')';return _0x5080c8[_0x5f5141(0x12e)](_0x3ce873),shouldSkipCliSkill(_0x5ab5bf)?console['log'](a39_0x32a3f6[_0x5f5141(0x11d)](_0x5f5141(0x127))):await installCliSkill(_0x5ab5bf[_0x5f5141(0xf4)]),{'ok':!![]};}_0x5080c8[_0x5f5141(0x116)](getInstallPlanLabel(_0x2d6ad1,_0x1d33bc));const _0x4ab332=detectPackageManager(),_0x5cfe22=_0x4ab332==='npm'?resolveNpmBin(_0x5f5141(0x126)):_0x4ab332,_0x10d183=a39_0x2d0a03(_0x5f5141(0x104)+_0x4ab332+_0x5f5141(0x132))[_0x5f5141(0x139)]();try{return await execa(_0x5cfe22,[_0x5f5141(0xfd),'-g',NPM_PACKAGE_NAME+'@'+_0x1d33bc[_0x5f5141(0x107)]],{'stdio':'pipe'}),_0x10d183['succeed']('Updated\x20to\x20v'+_0x1d33bc[_0x5f5141(0x107)]),console[_0x5f5141(0xee)](a39_0x32a3f6[_0x5f5141(0x11d)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipCliSkill(_0x5ab5bf)?console[_0x5f5141(0xee)](a39_0x32a3f6[_0x5f5141(0x11d)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).')):await installCliSkill(_0x5ab5bf['nonInteractive']),{'ok':!![]};}catch(_0xa4aa8f){return _0x10d183[_0x5f5141(0x120)](_0x5f5141(0x11a)),console[_0x5f5141(0x122)](a39_0x32a3f6[_0x5f5141(0x115)]('\x20\x20'+_0xa4aa8f[_0x5f5141(0x140)])),console[_0x5f5141(0xee)](a39_0x32a3f6['gray'](_0x5f5141(0x128)+_0x4ab332+_0x5f5141(0x125)+NPM_PACKAGE_NAME+'@'+_0x1d33bc[_0x5f5141(0x107)])),{'ok':![],'message':_0xa4aa8f['message']};}}export const updateDefinition={'service':'update','command':'run','description':a39_0x104a08(0x110),'risk':a39_0x104a08(0xfb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a39_0x20e17d=a39_0x18f4;(function(_0x13489a,_0x413e3e){const _0x40faaa=a39_0x18f4,_0x764862=_0x13489a();while(!![]){try{const _0x17a50f=parseInt(_0x40faaa(0x1e6))/0x1+-parseInt(_0x40faaa(0x1ba))/0x2*(parseInt(_0x40faaa(0x1ed))/0x3)+parseInt(_0x40faaa(0x1b4))/0x4*(parseInt(_0x40faaa(0x1b3))/0x5)+parseInt(_0x40faaa(0x1da))/0x6*(-parseInt(_0x40faaa(0x1ab))/0x7)+parseInt(_0x40faaa(0x197))/0x8*(-parseInt(_0x40faaa(0x1bd))/0x9)+-parseInt(_0x40faaa(0x1c7))/0xa+-parseInt(_0x40faaa(0x19a))/0xb*(-parseInt(_0x40faaa(0x1b2))/0xc);if(_0x17a50f===_0x413e3e)break;else _0x764862['push'](_0x764862['shift']());}catch(_0x5d4b6){_0x764862['push'](_0x764862['shift']());}}}(a39_0x4911,0x3e2b7));import a39_0x282ed9 from'chalk';import a39_0x38ed2e from'ora';import a39_0xf06534 from'semver';function a39_0x18f4(_0x5bdae3,_0x4429ca){_0x5bdae3=_0x5bdae3-0x196;const _0x4911a8=a39_0x4911();let _0x18f4b4=_0x4911a8[_0x5bdae3];return _0x18f4b4;}import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x40cb2a=a39_0x18f4;return GIT_COMMIT!==_0x40cb2a(0x1b7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x40cb2a(0x1ec)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3cb061=a39_0x18f4,_0x9b1595=process[_0x3cb061(0x1a9)]['toLowerCase']();if(_0x9b1595['includes']('bun'))return'bun';return _0x3cb061(0x1a3);}const updateFlags=[{'name':a39_0x20e17d(0x1d4),'type':a39_0x20e17d(0x1e8),'description':a39_0x20e17d(0x1ac),'default':![]},{'name':a39_0x20e17d(0x19d),'type':a39_0x20e17d(0x1c2),'description':a39_0x20e17d(0x1e2)},{'name':'no-skills','type':a39_0x20e17d(0x1e8),'description':a39_0x20e17d(0x1be),'default':![]},{'name':a39_0x20e17d(0x1cf),'type':a39_0x20e17d(0x1e8),'description':a39_0x20e17d(0x1a5),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x461eeb){const _0x493b51=a39_0x20e17d;return _0x461eeb['str']('version')[_0x493b51(0x19c)]();}function shouldSkipCliSkill(_0xe8d04f){const _0x107d9b=a39_0x20e17d;return _0xe8d04f[_0x107d9b(0x1db)](_0x107d9b(0x1d9))||_0xe8d04f[_0x107d9b(0x1d5)](_0x107d9b(0x1cf))===![];}async function validateUpdateFlags(_0x1fe773){const _0x4268e3=a39_0x20e17d,_0x4457bd=_0x1fe773[_0x4268e3(0x1db)](_0x4268e3(0x1d4)),_0x617aa0=getRequestedVersion(_0x1fe773);if(_0x4457bd&&_0x617aa0)throw CliErrors[_0x4268e3(0x1cb)](_0x4268e3(0x1a7),_0x4268e3(0x1d3));if(_0x617aa0&&!a39_0xf06534[_0x4268e3(0x1a2)](_0x617aa0))throw CliErrors[_0x4268e3(0x1cb)](_0x4268e3(0x19b)+_0x617aa0,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x21d456=a39_0x20e17d;try{const _0x5d3e52=await fetch(_0x21d456(0x1c5)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x21d456(0x1af),{'signal':AbortSignal[_0x21d456(0x199)](0x2710)});if(!_0x5d3e52['ok'])return null;const _0x8132f9=await _0x5d3e52[_0x21d456(0x196)]();if(!_0x8132f9||typeof _0x8132f9!==_0x21d456(0x1ae))return null;return Object[_0x21d456(0x1cc)](Object['entries'](_0x8132f9)[_0x21d456(0x1d6)](([,_0x39b22e])=>typeof _0x39b22e===_0x21d456(0x1c2)&&_0x39b22e['trim']()[_0x21d456(0x1e0)]>0x0)[_0x21d456(0x1a6)](([_0x41a19c,_0x33e229])=>[_0x41a19c,String(_0x33e229)[_0x21d456(0x19c)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x1ce867){const _0x3d647d=await fetchNpmDistTags();return _0x3d647d?.[_0x1ce867]??null;}async function fetchLatestVersion(){return fetchNpmDistTagVersion('latest');}async function resolveTargetVersion(_0x345f84){const _0x54f60c=a39_0x20e17d,_0x245419=getRequestedVersion(_0x345f84);if(_0x245419)return{'version':_0x245419,'source':_0x54f60c(0x19d)};if(_0x345f84[_0x54f60c(0x1db)](_0x54f60c(0x1d4))){const _0x5760c7=await fetchNpmDistTagVersion(_0x54f60c(0x1d4));if(!_0x5760c7)return null;return{'version':_0x5760c7,'source':_0x54f60c(0x1d4)};}const _0x17dd60=await fetchLatestVersion();if(!_0x17dd60)return null;return{'version':_0x17dd60,'source':'latest'};}function shouldInstallTarget(_0x3dd1ce,_0x4d24b9){const _0x31145e=a39_0x20e17d;if(_0x4d24b9['source']===_0x31145e(0x19d)||_0x4d24b9[_0x31145e(0x1b8)]===_0x31145e(0x1d4))return!a39_0xf06534['eq'](_0x3dd1ce,_0x4d24b9['version']);return a39_0xf06534['lt'](_0x3dd1ce,_0x4d24b9['version']);}function a39_0x4911(){const _0x2f0e88=['warn','\x20install\x20-g\x20','https://registry.npmjs.org/-/package/','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','3069170hHhdEC','inherit','\x20\x20Try\x20manually:\x20','skipped','validation','fromEntries','Updating\x20via\x20','message','skills','update','log','run','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','beta','flag','filter','cwd','Version\x20comparison\x20failed','no-skills','1774554pAAQNO','bool','succeed','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','\x20\x20Run\x20manually:\x20','latest','length','error','Install\x20a\x20specific\x20CLI\x20version','nonInteractive','@latest','Beta\x20version:\x20','192482tbyCsM','Already\x20up\x20to\x20date\x20(v','boolean','gray','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','fail','slice','3QEoXAF','json','2848FbLtUW','Updated\x20to\x20v','timeout','44mWMDxa','Invalid\x20version:\x20','trim','version','pipe','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Already\x20on\x20requested\x20version\x20(v','info','valid','npm','install','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','map','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','\x20cli-skill\x20install','execPath','yellow','7oVqXLX','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','green','object','/dist-tags','Current\x20version:\x20','Update\x20failed','3172728UkMWDx','174290nuYceS','4EuKgXk','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Checking\x20for\x20updates...','unknown','source','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','366042uXkOOM','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','...','6183zrAVly','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','start','\x20→\x20','red','string'];a39_0x4911=function(){return _0x2f0e88;};return a39_0x4911();}function getInstallPlanLabel(_0x3bab12,_0x5e5020){const _0x164e77=a39_0x20e17d;switch(_0x5e5020[_0x164e77(0x1b8)]){case'beta':return _0x164e77(0x1e5)+a39_0x282ed9[_0x164e77(0x1aa)](_0x3bab12)+_0x164e77(0x1c0)+a39_0x282ed9[_0x164e77(0x1ad)](_0x5e5020[_0x164e77(0x19d)]);case _0x164e77(0x19d):return'Requested\x20version:\x20'+a39_0x282ed9[_0x164e77(0x1aa)](_0x3bab12)+'\x20→\x20'+a39_0x282ed9['green'](_0x5e5020[_0x164e77(0x19d)]);case _0x164e77(0x1df):default:return'Update\x20available:\x20'+a39_0x282ed9['yellow'](_0x3bab12)+'\x20→\x20'+a39_0x282ed9['green'](_0x5e5020[_0x164e77(0x19d)]);}}async function installCliSkill(_0x41f0ae){const _0x287d96=a39_0x20e17d;console[_0x287d96(0x1d1)](a39_0x282ed9[_0x287d96(0x1e9)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0x43d691=runNpxSkillsAddGlobal(process[_0x287d96(0x1d7)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x41f0ae?_0x287d96(0x19e):_0x287d96(0x1c8)});if(_0x43d691[_0x287d96(0x1ca)]){console[_0x287d96(0x1d1)](a39_0x282ed9[_0x287d96(0x1e9)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).'));return;}if(_0x43d691['ok']){console[_0x287d96(0x1d1)](a39_0x282ed9[_0x287d96(0x1e9)](_0x287d96(0x1b9)));return;}console[_0x287d96(0x1c3)](a39_0x282ed9[_0x287d96(0x1aa)](_0x287d96(0x1bb)+(_0x43d691[_0x287d96(0x1e1)]||_0x287d96(0x1b7)))),console[_0x287d96(0x1d1)](a39_0x282ed9[_0x287d96(0x1e9)](_0x287d96(0x1de)+CLI_BIN_NAME+_0x287d96(0x1a8)));}async function execute(_0x429548){const _0x1fceae=a39_0x20e17d;await validateUpdateFlags(_0x429548);const _0x4988d2=getCurrentVersion();console[_0x1fceae(0x1d1)](_0x1fceae(0x1b0)+_0x4988d2);const _0x36ef59=a39_0x38ed2e(_0x1fceae(0x1b6))[_0x1fceae(0x1bf)](),_0x112e5f=await resolveTargetVersion(_0x429548);if(!_0x112e5f){const _0x4c3340=_0x429548[_0x1fceae(0x1db)](_0x1fceae(0x1d4))?_0x1fceae(0x1ea):_0x1fceae(0x1dd);return _0x36ef59['fail'](_0x4c3340),console['log'](a39_0x282ed9[_0x1fceae(0x1e9)](_0x1fceae(0x1c6)+NPM_PACKAGE_NAME+_0x1fceae(0x1e4))),{'ok':![],'message':_0x4c3340};}const _0x26fa9b=a39_0xf06534[_0x1fceae(0x1a2)](VERSION),_0x3f4eaf=a39_0xf06534[_0x1fceae(0x1a2)](_0x112e5f[_0x1fceae(0x19d)]);if(!_0x26fa9b||!_0x3f4eaf)return _0x36ef59[_0x1fceae(0x1eb)](_0x1fceae(0x1d8)),{'ok':![],'message':_0x1fceae(0x1d8)};if(!shouldInstallTarget(_0x26fa9b,_0x112e5f)){const _0x2e9262=_0x112e5f[_0x1fceae(0x1b8)]==='version'?_0x1fceae(0x1a0)+_0x112e5f[_0x1fceae(0x19d)]+')':_0x1fceae(0x1e7)+_0x112e5f[_0x1fceae(0x19d)]+')';return _0x36ef59[_0x1fceae(0x1dc)](_0x2e9262),shouldSkipCliSkill(_0x429548)?console[_0x1fceae(0x1d1)](a39_0x282ed9[_0x1fceae(0x1e9)](_0x1fceae(0x19f))):await installCliSkill(_0x429548[_0x1fceae(0x1e3)]),{'ok':!![]};}_0x36ef59[_0x1fceae(0x1a1)](getInstallPlanLabel(_0x4988d2,_0x112e5f));const _0x2075bc=detectPackageManager(),_0x115b2a=_0x2075bc===_0x1fceae(0x1a3)?resolveNpmBin(_0x1fceae(0x1a3)):_0x2075bc,_0x500860=a39_0x38ed2e(_0x1fceae(0x1cd)+_0x2075bc+_0x1fceae(0x1bc))['start']();try{return await execa(_0x115b2a,[_0x1fceae(0x1a4),'-g',NPM_PACKAGE_NAME+'@'+_0x112e5f[_0x1fceae(0x19d)]],{'stdio':'pipe'}),_0x500860[_0x1fceae(0x1dc)](_0x1fceae(0x198)+_0x112e5f[_0x1fceae(0x19d)]),console['log'](a39_0x282ed9[_0x1fceae(0x1e9)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipCliSkill(_0x429548)?console[_0x1fceae(0x1d1)](a39_0x282ed9['gray'](_0x1fceae(0x19f))):await installCliSkill(_0x429548[_0x1fceae(0x1e3)]),{'ok':!![]};}catch(_0x257da5){return _0x500860['fail'](_0x1fceae(0x1b1)),console[_0x1fceae(0x1e1)](a39_0x282ed9[_0x1fceae(0x1c1)]('\x20\x20'+_0x257da5[_0x1fceae(0x1ce)])),console[_0x1fceae(0x1d1)](a39_0x282ed9[_0x1fceae(0x1e9)](_0x1fceae(0x1c9)+_0x2075bc+_0x1fceae(0x1c4)+NPM_PACKAGE_NAME+'@'+_0x112e5f[_0x1fceae(0x19d)])),{'ok':![],'message':_0x257da5[_0x1fceae(0x1ce)]};}}export const updateDefinition={'service':a39_0x20e17d(0x1d0),'command':a39_0x20e17d(0x1d2),'description':a39_0x20e17d(0x1b5),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const codegenDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- function a40_0x51d2(){const _0x2e0b4d=['3308850QdwJdr','808396RCFEsY','72440DbBLbX','6083413wfyMdi','342jFtiBM','975821sJiOtf','3BPfzco','2476842YvgKix','2123396guWvmp'];a40_0x51d2=function(){return _0x2e0b4d;};return a40_0x51d2();}(function(_0x4a0af0,_0x4cc10a){const _0x477037=a40_0x229e,_0x1d9219=_0x4a0af0();while(!![]){try{const _0x17573c=parseInt(_0x477037(0x10b))/0x1+-parseInt(_0x477037(0x110))/0x2+-parseInt(_0x477037(0x10c))/0x3*(-parseInt(_0x477037(0x10e))/0x4)+-parseInt(_0x477037(0x10f))/0x5+-parseInt(_0x477037(0x10d))/0x6+parseInt(_0x477037(0x112))/0x7+-parseInt(_0x477037(0x111))/0x8*(parseInt(_0x477037(0x113))/0x9);if(_0x17573c===_0x4cc10a)break;else _0x1d9219['push'](_0x1d9219['shift']());}catch(_0x12658f){_0x1d9219['push'](_0x1d9219['shift']());}}}(a40_0x51d2,0x86fa0));import{codegenSdk}from'../../commands/codegen/sdk.js';function a40_0x229e(_0x4b0e82,_0x4a4cdc){_0x4b0e82=_0x4b0e82-0x10b;const _0x51d2fb=a40_0x51d2();let _0x229e5d=_0x51d2fb[_0x4b0e82];return _0x229e5d;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x2be995,_0x4bdb03){const _0x3d4c80=a40_0x1d57,_0x292a76=_0x2be995();while(!![]){try{const _0x2eb208=-parseInt(_0x3d4c80(0xf5))/0x1*(parseInt(_0x3d4c80(0xf8))/0x2)+-parseInt(_0x3d4c80(0xf1))/0x3+-parseInt(_0x3d4c80(0xf3))/0x4+-parseInt(_0x3d4c80(0xf2))/0x5+-parseInt(_0x3d4c80(0xf0))/0x6+-parseInt(_0x3d4c80(0xf7))/0x7+-parseInt(_0x3d4c80(0xf6))/0x8*(-parseInt(_0x3d4c80(0xf4))/0x9);if(_0x2eb208===_0x4bdb03)break;else _0x292a76['push'](_0x292a76['shift']());}catch(_0x41d3d8){_0x292a76['push'](_0x292a76['shift']());}}}(a40_0x1813,0x893c1));import{codegenSdk}from'../../commands/codegen/sdk.js';function a40_0x1813(){const _0x219b7a=['1105049spShFo','8rYmuyl','851277pDUiEA','2qoktzs','2597232XuqDAy','3026004BmLZXl','3284815reNfDh','3671492fNcVBQ','43246341HiCWZK'];a40_0x1813=function(){return _0x219b7a;};return a40_0x1813();}import{codegenSql}from'../../commands/codegen/sql.js';function a40_0x1d57(_0x2d73de,_0x82440b){_0x2d73de=_0x2d73de-0xf0;const _0x1813ce=a40_0x1813();let _0x1d57f9=_0x1813ce[_0x2d73de];return _0x1d57f9;}export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const codegenSdk: CommandDefinition;
@@ -1 +1 @@
1
- function a41_0x1292(){const _0x5cdae9=['1614368xQnnLd','140uobzxD','alias','1gLOMuS','714050HIBBGj','418eFzyVm','9864ZxILXL','codegen','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','4uqxYCo','3171875VjNjxH','boolean','read','str','501594qnvrqP','bool','659432WbHaRG','name','8158779QXqSgh','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','operation','skip-imports','code','string'];a41_0x1292=function(){return _0x5cdae9;};return a41_0x1292();}const a41_0x408665=a41_0x48ea;(function(_0x3cb01f,_0x141946){const _0x54f004=a41_0x48ea,_0x191e54=_0x3cb01f();while(!![]){try{const _0x2ad733=-parseInt(_0x54f004(0x8d))/0x1*(parseInt(_0x54f004(0x8a))/0x2)+-parseInt(_0x54f004(0x98))/0x3*(parseInt(_0x54f004(0x93))/0x4)+-parseInt(_0x54f004(0x8b))/0x5*(-parseInt(_0x54f004(0x90))/0x6)+-parseInt(_0x54f004(0x94))/0x7+parseInt(_0x54f004(0x9a))/0x8+-parseInt(_0x54f004(0x9c))/0x9+-parseInt(_0x54f004(0x8e))/0xa*(-parseInt(_0x54f004(0x8f))/0xb);if(_0x2ad733===_0x141946)break;else _0x191e54['push'](_0x191e54['shift']());}catch(_0x3e20f6){_0x191e54['push'](_0x191e54['shift']());}}}(a41_0x1292,0x7bfa5));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a41_0x48ea(_0x3e732e,_0x5309a9){_0x3e732e=_0x3e732e-0x88;const _0x1292e9=a41_0x1292();let _0x48ead3=_0x1292e9[_0x3e732e];return _0x48ead3;}export const codegenSdk={'service':a41_0x408665(0x91),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a41_0x408665(0x96),'flags':[CODE_FLAG_OPTIONAL,{'name':a41_0x408665(0x8c),'type':'string','description':a41_0x408665(0x92)},{'name':a41_0x408665(0x9e),'type':a41_0x408665(0x89),'required':!![],'description':a41_0x408665(0x9d)},{'name':a41_0x408665(0x9f),'type':a41_0x408665(0x95),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x231fac){const _0x28078a=a41_0x408665,{dataset:_0x25fa7f,operation:_0x5516e4}=await getOperationDetail(_0x231fac['appCode'],_0x231fac[_0x28078a(0x97)](_0x28078a(0x88)),_0x231fac[_0x28078a(0x97)]('operation')),_0x27b54f=generateSdkCode(_0x25fa7f,_0x5516e4,{'includeImports':!_0x231fac[_0x28078a(0x99)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x25fa7f[_0x28078a(0x9b)],'code':_0x25fa7f[_0x28078a(0x88)],'tableName':_0x25fa7f['tableName']},'operation':_0x231fac[_0x28078a(0x97)](_0x28078a(0x9e)),'code':_0x27b54f}};}};
1
+ const a41_0x1bb7ed=a41_0x4855;(function(_0x48f029,_0x3e3c91){const _0x47e1eb=a41_0x4855,_0x1fce85=_0x48f029();while(!![]){try{const _0x486616=parseInt(_0x47e1eb(0x7d))/0x1*(parseInt(_0x47e1eb(0x6d))/0x2)+-parseInt(_0x47e1eb(0x6c))/0x3+-parseInt(_0x47e1eb(0x6f))/0x4+parseInt(_0x47e1eb(0x7c))/0x5+parseInt(_0x47e1eb(0x73))/0x6*(parseInt(_0x47e1eb(0x70))/0x7)+parseInt(_0x47e1eb(0x74))/0x8+-parseInt(_0x47e1eb(0x7b))/0x9;if(_0x486616===_0x3e3c91)break;else _0x1fce85['push'](_0x1fce85['shift']());}catch(_0x132652){_0x1fce85['push'](_0x1fce85['shift']());}}}(a41_0x1671,0x731cf));function a41_0x1671(){const _0x5d2b70=['str','bool','12918861oXdtnT','1766730toTSXx','75147wvkezG','appCode','boolean','Omit\x20import\x20statements\x20from\x20generated\x20code','skip-imports','66669KINUoi','22lHZIXe','code','3481012hrqTKp','5007499QQbPxi','operation','alias','6wBfrEt','7232704IRyQFS','read','tableName','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','name'];a41_0x1671=function(){return _0x5d2b70;};return a41_0x1671();}function a41_0x4855(_0x2c6673,_0x19478d){_0x2c6673=_0x2c6673-0x69;const _0x1671fc=a41_0x1671();let _0x485524=_0x1671fc[_0x2c6673];return _0x485524;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a41_0x1bb7ed(0x75),'flags':[CODE_FLAG_OPTIONAL,{'name':a41_0x1bb7ed(0x72),'type':'string','description':a41_0x1bb7ed(0x77)},{'name':a41_0x1bb7ed(0x71),'type':'string','required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a41_0x1bb7ed(0x6b),'type':a41_0x1bb7ed(0x69),'description':a41_0x1bb7ed(0x6a)}],async 'execute'(_0x45b537){const _0x4281a0=a41_0x1bb7ed,{dataset:_0x282750,operation:_0x42419c}=await getOperationDetail(_0x45b537[_0x4281a0(0x7e)],_0x45b537['str']('code'),_0x45b537[_0x4281a0(0x79)](_0x4281a0(0x71))),_0x4dae4c=generateSdkCode(_0x282750,_0x42419c,{'includeImports':!_0x45b537[_0x4281a0(0x7a)](_0x4281a0(0x6b))});return{'ok':!![],'data':{'dataset':{'name':_0x282750[_0x4281a0(0x78)],'code':_0x282750[_0x4281a0(0x6e)],'tableName':_0x282750[_0x4281a0(0x76)]},'operation':_0x45b537[_0x4281a0(0x79)](_0x4281a0(0x71)),'code':_0x4dae4c}};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const codegenSql: CommandDefinition;
@@ -1 +1 @@
1
- function a42_0x287a(){const _0x49d8f3=['sqlCode','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sdk','11336562NReBbN','sql','bool','110736MIYZvE','bff','read','sqlcode','target','1606266mCRqLM','108028htDPlz','840zjgEVx','no-imports','9609248lYDiNM','7mbHpws','407avlUQn','appCode','3ZDaCtk','codegen','boolean','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','523265UUbGGq','265WEfVGX','321684IKAokr','sqlName','Omit\x20import\x20statements\x20from\x20generated\x20code','str'];a42_0x287a=function(){return _0x49d8f3;};return a42_0x287a();}const a42_0x255b82=a42_0x125b;(function(_0x5bac8a,_0x464159){const _0x4fc47a=a42_0x125b,_0x4a3eb6=_0x5bac8a();while(!![]){try{const _0x2bfe87=parseInt(_0x4fc47a(0x157))/0x1+parseInt(_0x4fc47a(0x14b))/0x2*(parseInt(_0x4fc47a(0x153))/0x3)+parseInt(_0x4fc47a(0x14c))/0x4*(-parseInt(_0x4fc47a(0x158))/0x5)+parseInt(_0x4fc47a(0x160))/0x6+parseInt(_0x4fc47a(0x150))/0x7*(parseInt(_0x4fc47a(0x14f))/0x8)+-parseInt(_0x4fc47a(0x163))/0x9*(parseInt(_0x4fc47a(0x14d))/0xa)+-parseInt(_0x4fc47a(0x151))/0xb*(parseInt(_0x4fc47a(0x159))/0xc);if(_0x2bfe87===_0x464159)break;else _0x4a3eb6['push'](_0x4a3eb6['shift']());}catch(_0xc3b336){_0x4a3eb6['push'](_0x4a3eb6['shift']());}}}(a42_0x287a,0xea6d7));function a42_0x125b(_0xcc6d1b,_0x420a09){_0xcc6d1b=_0xcc6d1b-0x147;const _0x287aed=a42_0x287a();let _0x125b7f=_0x287aed[_0xcc6d1b];return _0x125b7f;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a42_0x255b82(0x154),'command':a42_0x255b82(0x161),'description':a42_0x255b82(0x156),'risk':a42_0x255b82(0x148),'flags':[SQLCODE_FLAG,{'name':a42_0x255b82(0x14a),'type':'string','description':a42_0x255b82(0x15e),'default':a42_0x255b82(0x15f),'enum':['sdk',a42_0x255b82(0x147)]},{'name':a42_0x255b82(0x14e),'type':a42_0x255b82(0x155),'description':a42_0x255b82(0x15b)}],async 'execute'(_0x3fad52){const _0x7fb53b=a42_0x255b82,_0xe16c47=await getSqlQueryInfo(_0x3fad52[_0x7fb53b(0x152)],_0x3fad52[_0x7fb53b(0x15c)](_0x7fb53b(0x149))),_0x5a93a0=_0x3fad52[_0x7fb53b(0x15c)](_0x7fb53b(0x14a))||_0x7fb53b(0x15f),_0x49dbcd=generateSqlCodeTemplate(_0xe16c47,{'target':_0x5a93a0,'includeImports':!_0x3fad52[_0x7fb53b(0x162)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0xe16c47[_0x7fb53b(0x15d)],'sqlName':_0xe16c47[_0x7fb53b(0x15a)],'target':_0x5a93a0,'code':_0x49dbcd}};}};
1
+ const a42_0x5333dc=a42_0x4d4a;(function(_0x151f49,_0x157f64){const _0x3e7a4f=a42_0x4d4a,_0x330455=_0x151f49();while(!![]){try{const _0x52a623=-parseInt(_0x3e7a4f(0x16c))/0x1*(parseInt(_0x3e7a4f(0x16f))/0x2)+-parseInt(_0x3e7a4f(0x169))/0x3+parseInt(_0x3e7a4f(0x175))/0x4+-parseInt(_0x3e7a4f(0x167))/0x5+parseInt(_0x3e7a4f(0x176))/0x6+-parseInt(_0x3e7a4f(0x173))/0x7*(-parseInt(_0x3e7a4f(0x164))/0x8)+parseInt(_0x3e7a4f(0x168))/0x9;if(_0x52a623===_0x157f64)break;else _0x330455['push'](_0x330455['shift']());}catch(_0x3c7ce9){_0x330455['push'](_0x330455['shift']());}}}(a42_0x407a,0x5fbe7));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a42_0x407a(){const _0x276b57=['string','sdk','Omit\x20import\x20statements\x20from\x20generated\x20code','7DFFONy','sql','292920mMYHFZ','2840988rdMcCB','target','sqlName','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','5000480fjCkvP','str','appCode','3078330DcyMKM','8689860ubwKAz','1706316WrDFgv','boolean','codegen','67tCrvcK','read','bool','16738PZhroW'];a42_0x407a=function(){return _0x276b57;};return a42_0x407a();}function a42_0x4d4a(_0x6faf1d,_0x2f2a1f){_0x6faf1d=_0x6faf1d-0x163;const _0x407af5=a42_0x407a();let _0x4d4aff=_0x407af5[_0x6faf1d];return _0x4d4aff;}export const codegenSql={'service':a42_0x5333dc(0x16b),'command':a42_0x5333dc(0x174),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a42_0x5333dc(0x16d),'flags':[SQLCODE_FLAG,{'name':a42_0x5333dc(0x177),'type':a42_0x5333dc(0x170),'description':a42_0x5333dc(0x163),'default':a42_0x5333dc(0x171),'enum':['sdk','bff']},{'name':'no-imports','type':a42_0x5333dc(0x16a),'description':a42_0x5333dc(0x172)}],async 'execute'(_0x15afd3){const _0x5cefbc=a42_0x5333dc,_0x1b859c=await getSqlQueryInfo(_0x15afd3[_0x5cefbc(0x166)],_0x15afd3[_0x5cefbc(0x165)]('sqlcode')),_0x1ee98c=_0x15afd3['str'](_0x5cefbc(0x177))||_0x5cefbc(0x171),_0x17ffeb=generateSqlCodeTemplate(_0x1b859c,{'target':_0x1ee98c,'includeImports':!_0x15afd3[_0x5cefbc(0x16e)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x1b859c['sqlCode'],'sqlName':_0x1b859c[_0x5cefbc(0x178)],'target':_0x1ee98c,'code':_0x17ffeb}};}};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 应用清单(apps registry)增删的共享逻辑
3
+ *
4
+ * 供 canonical 的 `workspace add` / `workspace remove` 复用。
5
+ *
6
+ * 边界:`add` / `remove` 是「配置我的工作环境用哪些 app」的写操作,
7
+ * 默认写当前项目,`--global` 写全局(全局视作一个大工作空间)。
8
+ * 纯事实查询「我有哪些 app」仍在 `app list`。
9
+ */
10
+ import type { CommandResult, FlagDef, RuntimeContext } from "../../framework/types.js";
11
+ export declare function buildAppAddFlags(): FlagDef[];
12
+ export declare function buildAppRemoveFlags(): FlagDef[];
13
+ /** 校验位置参数 <name> 是否提供,供 add / remove 的 validate 钩子复用。 */
14
+ export declare function validateAppName(ctx: RuntimeContext, usageCmd: string): Promise<void>;
15
+ /** `usageCmd` 是不含 bin 的命令片段,如 `"workspace add"`,用于错误提示。 */
16
+ export declare function runAppAdd(ctx: RuntimeContext, usageCmd: string): Promise<CommandResult>;
17
+ export declare function runAppRemove(ctx: RuntimeContext, usageCmd: string): Promise<CommandResult>;
@@ -1 +1 @@
1
- (function(_0x121832,_0x274b66){const _0x126d90=a43_0x3c5d,_0x4560ad=_0x121832();while(!![]){try{const _0x2aabbc=-parseInt(_0x126d90(0x122))/0x1*(parseInt(_0x126d90(0x121))/0x2)+-parseInt(_0x126d90(0x11f))/0x3*(parseInt(_0x126d90(0x123))/0x4)+parseInt(_0x126d90(0x116))/0x5+-parseInt(_0x126d90(0x133))/0x6*(-parseInt(_0x126d90(0x11a))/0x7)+parseInt(_0x126d90(0x138))/0x8*(parseInt(_0x126d90(0x128))/0x9)+-parseInt(_0x126d90(0x10e))/0xa+-parseInt(_0x126d90(0x12e))/0xb*(-parseInt(_0x126d90(0x137))/0xc);if(_0x2aabbc===_0x274b66)break;else _0x4560ad['push'](_0x4560ad['shift']());}catch(_0x5d19f6){_0x4560ad['push'](_0x4560ad['shift']());}}}(a43_0x1e4f,0xf0b59));import{CliErrors}from'../../errors.js';function a43_0x3c5d(_0x3e6272,_0xe90e3f){_0x3e6272=_0x3e6272-0x10c;const _0x1e4f8f=a43_0x1e4f();let _0x3c5dcf=_0x1e4f8f[_0x3e6272];return _0x3c5dcf;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x86b455=a43_0x3c5d;return[{'name':_0x86b455(0x127),'type':'string','description':_0x86b455(0x10c),'required':!![]},{'name':_0x86b455(0x110),'type':'boolean','description':_0x86b455(0x120),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x24d4cb=a43_0x3c5d;return[{'name':_0x24d4cb(0x110),'type':_0x24d4cb(0x12d),'description':_0x24d4cb(0x120),'default':![]}];}export async function validateAppName(_0x3284ff,_0x314227){const _0x5de9b2=a43_0x3c5d,_0x219ef4=_0x3284ff[_0x5de9b2(0x11c)][0x0]?.[_0x5de9b2(0x10d)]();if(!_0x219ef4)throw CliErrors['validation'](_0x5de9b2(0x12b),_0x5de9b2(0x12c)+CLI_BIN_NAME+'\x20'+_0x314227+_0x5de9b2(0x132));}export async function runAppAdd(_0x5a5448,_0x2a53fd){const _0x316c0e=a43_0x3c5d,_0x4e11a5=_0x5a5448[_0x316c0e(0x11c)][0x0]?.['trim']();if(!_0x4e11a5)throw CliErrors[_0x316c0e(0x114)](_0x316c0e(0x12b),_0x316c0e(0x12c)+CLI_BIN_NAME+'\x20'+_0x2a53fd+'\x20<name>\x20--appcode\x20<code>');const _0x40ba12=_0x5a5448[_0x316c0e(0x139)](_0x316c0e(0x127));if(!_0x40ba12)throw CliErrors[_0x316c0e(0x117)](_0x316c0e(0x127),_0x316c0e(0x12c)+CLI_BIN_NAME+'\x20'+_0x2a53fd+_0x316c0e(0x111));const _0x3e20b4={'global':_0x5a5448[_0x316c0e(0x119)](_0x316c0e(0x110))},_0x3ace6b=readConfig(_0x3e20b4);if(!_0x3ace6b[_0x316c0e(0x115)])_0x3ace6b[_0x316c0e(0x115)]={};const _0x50b2f8={'appcode':_0x40ba12,...collectAppProfileOverrides(_0xad1ca9=>_0x5a5448[_0x316c0e(0x139)](_0xad1ca9))},_0x5ceffc=_0x3ace6b[_0x316c0e(0x115)],_0x5e2da2=!!_0x5ceffc[_0x4e11a5];_0x5ceffc[_0x4e11a5]=_0x50b2f8;if(!_0x3ace6b['defaultApp'])_0x3ace6b['defaultApp']=_0x4e11a5;writeConfig(_0x3ace6b,_0x3e20b4);const _0x28a3f3=!_0x5e2da2&&_0x3ace6b[_0x316c0e(0x135)]===_0x4e11a5?_0x316c0e(0x118):'',_0x25c822=(_0x5e2da2?_0x316c0e(0x129):'Added')+_0x316c0e(0x134)+_0x4e11a5+'\x22\x20(appcode:\x20'+_0x40ba12+')'+scopeLabel(_0x3e20b4)+'.'+_0x28a3f3;return{'ok':!![],'message':_0x25c822};}export async function runAppRemove(_0x249e87,_0x3e99d8){const _0x4dd7c3=a43_0x3c5d,_0x582ca7=_0x249e87['args'][0x0]?.[_0x4dd7c3(0x10d)]();if(!_0x582ca7)throw CliErrors[_0x4dd7c3(0x114)](_0x4dd7c3(0x12b),_0x4dd7c3(0x12c)+CLI_BIN_NAME+'\x20'+_0x3e99d8+_0x4dd7c3(0x11d));const _0x3843d7=_0x249e87['bool']('global'),{config:_0x43af82,layers:_0x3c818d}=readRawConfigWithLayers(),_0x4bb05d=_0x43af82['apps']??{};if(!_0x4bb05d[_0x582ca7])throw CliErrors[_0x4dd7c3(0x114)](_0x4dd7c3(0x12f)+_0x582ca7+_0x4dd7c3(0x11b));const _0x3adaca=_0x3c818d[_0x4dd7c3(0x136)][_0x4dd7c3(0x115)]&&typeof _0x3c818d['globalConfig'][_0x4dd7c3(0x115)]===_0x4dd7c3(0x124)?_0x3c818d['globalConfig'][_0x4dd7c3(0x115)]:{},_0xabfcac=_0x3c818d[_0x4dd7c3(0x12a)][_0x4dd7c3(0x115)]&&typeof _0x3c818d['projectConfig'][_0x4dd7c3(0x115)]==='object'?_0x3c818d[_0x4dd7c3(0x12a)]['apps']:{},_0x319892=appDefinedIn(_0x582ca7,_0x3adaca,_0xabfcac,_0x3c818d[_0x4dd7c3(0x12a)]['inherit']===![]),_0x5744e9=resolveAppScopeForWrite(_0x582ca7,_0x3843d7,_0x3c818d),_0x47d5b2={'global':_0x5744e9===_0x4dd7c3(0x110)},_0x5130c6=readConfig(_0x47d5b2),_0x13beec=_0x5130c6[_0x4dd7c3(0x115)];if(!_0x13beec||!_0x13beec[_0x582ca7])throw CliErrors[_0x4dd7c3(0x114)](_0x4dd7c3(0x12f)+_0x582ca7+_0x4dd7c3(0x11b));delete _0x13beec[_0x582ca7];let _0x1e9731='';if(_0x5130c6[_0x4dd7c3(0x135)]===_0x582ca7){const _0x2cac40=Object[_0x4dd7c3(0x10f)](_0x13beec);_0x5130c6[_0x4dd7c3(0x135)]=_0x2cac40[_0x4dd7c3(0x126)]>0x0?_0x2cac40[0x0]:undefined,_0x5130c6['defaultApp']?_0x1e9731=_0x4dd7c3(0x125)+_0x5130c6[_0x4dd7c3(0x135)]+'\x22.':delete _0x5130c6[_0x4dd7c3(0x135)];}Object[_0x4dd7c3(0x10f)](_0x13beec)[_0x4dd7c3(0x126)]===0x0&&(delete _0x5130c6['apps'],delete _0x5130c6[_0x4dd7c3(0x135)]);writeConfig(_0x5130c6,_0x47d5b2);const _0x369a22=_0x319892===_0x4dd7c3(0x130)?_0x4dd7c3(0x112)+_0x582ca7+_0x4dd7c3(0x113)+(_0x5744e9==='project'?_0x4dd7c3(0x110):'project')+_0x4dd7c3(0x131):'';return{'ok':!![],'message':_0x4dd7c3(0x11e)+_0x582ca7+'\x22'+scopeLabel(_0x47d5b2)+'.'+_0x1e9731+_0x369a22};}function a43_0x1e4f(){const _0x2a06ad=['args','\x20<name>\x20[--global]','Removed\x20app\x20\x22','1283592Lyjake','Use\x20global\x20config\x20scope','578HQfyVS','1441hGbpFO','16XIfJWH','object','\x20Default\x20app\x20changed\x20to\x20\x22','length','appcode','233622FeuGQM','Updated','projectConfig','Missing\x20app\x20name.','Usage:\x20','boolean','24946163xFDVWm','App\x20\x22','both','\x20config.','\x20<name>','6jfJZoc','\x20app\x20\x22','defaultApp','globalConfig','12JkyHnI','392FcJLYr','str','App\x20code','trim','8311000chQQlZ','keys','global','\x20<name>\x20--appcode\x20<code>','\x20Note:\x20app\x20\x22','\x22\x20still\x20defined\x20in\x20','validation','apps','348400PzOXZi','flagMissing','\x20Set\x20as\x20default\x20app.','bool','2348465VVdzld','\x22\x20not\x20found.'];a43_0x1e4f=function(){return _0x2a06ad;};return a43_0x1e4f();}
1
+ (function(_0xbd4b0,_0x1dbe4d){const _0x5105cb=a43_0x4133,_0x29adea=_0xbd4b0();while(!![]){try{const _0x3b36b8=-parseInt(_0x5105cb(0x1f2))/0x1+parseInt(_0x5105cb(0x1d7))/0x2*(parseInt(_0x5105cb(0x1d6))/0x3)+-parseInt(_0x5105cb(0x1ef))/0x4*(parseInt(_0x5105cb(0x1e6))/0x5)+-parseInt(_0x5105cb(0x1f8))/0x6+-parseInt(_0x5105cb(0x1dd))/0x7+-parseInt(_0x5105cb(0x1d9))/0x8*(parseInt(_0x5105cb(0x1ed))/0x9)+-parseInt(_0x5105cb(0x1f3))/0xa*(-parseInt(_0x5105cb(0x1e3))/0xb);if(_0x3b36b8===_0x1dbe4d)break;else _0x29adea['push'](_0x29adea['shift']());}catch(_0x557a11){_0x29adea['push'](_0x29adea['shift']());}}}(a43_0x2f12,0x941a3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';function a43_0x4133(_0x2d2a31,_0x59d1ea){_0x2d2a31=_0x2d2a31-0x1cc;const _0x2f12c4=a43_0x2f12();let _0x413345=_0x2f12c4[_0x2d2a31];return _0x413345;}import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x57abb8=a43_0x4133;return[{'name':_0x57abb8(0x1eb),'type':'string','description':_0x57abb8(0x1d3),'required':!![]},{'name':'global','type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x4304cc=a43_0x4133;return[{'name':_0x4304cc(0x1e5),'type':_0x4304cc(0x1f1),'description':_0x4304cc(0x1d5),'default':![]}];}function a43_0x2f12(){const _0x4b819a=['252NfVfjL','validation','8BbAyxE','App\x20\x22','boolean','218071HKfuvd','50tjSGvE','keys','Updated','\x22\x20not\x20found.','args','1860012ncNzTj','\x22\x20(appcode:\x20','project','Usage:\x20','inherit','both','flagMissing','\x20Set\x20as\x20default\x20app.','\x20<name>\x20[--global]','Added','App\x20code','\x20config.','Use\x20global\x20config\x20scope','3odoxwR','1117726SkCmnQ','projectConfig','285696iSmJMc','object','\x20Default\x20app\x20changed\x20to\x20\x22','globalConfig','6028365uPVFGh','str','trim','\x20app\x20\x22','\x20Note:\x20app\x20\x22','Missing\x20app\x20name.','7570750CqOneh','Removed\x20app\x20\x22','global','2510705rjOJMV','apps','length','bool','defaultApp','appcode','\x20<name>\x20--appcode\x20<code>'];a43_0x2f12=function(){return _0x4b819a;};return a43_0x2f12();}export async function validateAppName(_0x139e5e,_0x1c02d5){const _0x4950a4=a43_0x4133,_0x2e5791=_0x139e5e[_0x4950a4(0x1f7)][0x0]?.[_0x4950a4(0x1df)]();if(!_0x2e5791)throw CliErrors[_0x4950a4(0x1ee)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x1c02d5+'\x20<name>');}export async function runAppAdd(_0x5b9cd0,_0x3ca393){const _0x2d2f61=a43_0x4133,_0x26a6c1=_0x5b9cd0[_0x2d2f61(0x1f7)][0x0]?.[_0x2d2f61(0x1df)]();if(!_0x26a6c1)throw CliErrors['validation'](_0x2d2f61(0x1e2),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x3ca393+_0x2d2f61(0x1ec));const _0x3ca3d2=_0x5b9cd0['str']('appcode');if(!_0x3ca3d2)throw CliErrors[_0x2d2f61(0x1cf)](_0x2d2f61(0x1eb),_0x2d2f61(0x1cc)+CLI_BIN_NAME+'\x20'+_0x3ca393+_0x2d2f61(0x1ec));const _0x3480f0={'global':_0x5b9cd0['bool'](_0x2d2f61(0x1e5))},_0x5b68c9=readConfig(_0x3480f0);if(!_0x5b68c9[_0x2d2f61(0x1e7)])_0x5b68c9[_0x2d2f61(0x1e7)]={};const _0x23299d={'appcode':_0x3ca3d2,...collectAppProfileOverrides(_0x4384e7=>_0x5b9cd0[_0x2d2f61(0x1de)](_0x4384e7))},_0x3158cd=_0x5b68c9['apps'],_0x13a606=!!_0x3158cd[_0x26a6c1];_0x3158cd[_0x26a6c1]=_0x23299d;if(!_0x5b68c9[_0x2d2f61(0x1ea)])_0x5b68c9[_0x2d2f61(0x1ea)]=_0x26a6c1;writeConfig(_0x5b68c9,_0x3480f0);const _0x42a7c1=!_0x13a606&&_0x5b68c9[_0x2d2f61(0x1ea)]===_0x26a6c1?_0x2d2f61(0x1d0):'',_0x11300f=(_0x13a606?_0x2d2f61(0x1f5):_0x2d2f61(0x1d2))+_0x2d2f61(0x1e0)+_0x26a6c1+_0x2d2f61(0x1f9)+_0x3ca3d2+')'+scopeLabel(_0x3480f0)+'.'+_0x42a7c1;return{'ok':!![],'message':_0x11300f};}export async function runAppRemove(_0x3f64fa,_0x11da34){const _0x2f4398=a43_0x4133,_0xe01f12=_0x3f64fa[_0x2f4398(0x1f7)][0x0]?.[_0x2f4398(0x1df)]();if(!_0xe01f12)throw CliErrors[_0x2f4398(0x1ee)]('Missing\x20app\x20name.',_0x2f4398(0x1cc)+CLI_BIN_NAME+'\x20'+_0x11da34+_0x2f4398(0x1d1));const _0x3bc1b8=_0x3f64fa[_0x2f4398(0x1e9)](_0x2f4398(0x1e5)),{config:_0x1f7ebf,layers:_0x2c18d3}=readRawConfigWithLayers(),_0xeec228=_0x1f7ebf[_0x2f4398(0x1e7)]??{};if(!_0xeec228[_0xe01f12])throw CliErrors[_0x2f4398(0x1ee)](_0x2f4398(0x1f0)+_0xe01f12+_0x2f4398(0x1f6));const _0x813a4e=_0x2c18d3[_0x2f4398(0x1dc)]['apps']&&typeof _0x2c18d3[_0x2f4398(0x1dc)]['apps']==='object'?_0x2c18d3['globalConfig'][_0x2f4398(0x1e7)]:{},_0x548667=_0x2c18d3[_0x2f4398(0x1d8)]['apps']&&typeof _0x2c18d3[_0x2f4398(0x1d8)][_0x2f4398(0x1e7)]===_0x2f4398(0x1da)?_0x2c18d3[_0x2f4398(0x1d8)][_0x2f4398(0x1e7)]:{},_0x419217=appDefinedIn(_0xe01f12,_0x813a4e,_0x548667,_0x2c18d3[_0x2f4398(0x1d8)][_0x2f4398(0x1cd)]===![]),_0x2cda4a=resolveAppScopeForWrite(_0xe01f12,_0x3bc1b8,_0x2c18d3),_0x5c3295={'global':_0x2cda4a===_0x2f4398(0x1e5)},_0x541f02=readConfig(_0x5c3295),_0x808443=_0x541f02[_0x2f4398(0x1e7)];if(!_0x808443||!_0x808443[_0xe01f12])throw CliErrors[_0x2f4398(0x1ee)](_0x2f4398(0x1f0)+_0xe01f12+_0x2f4398(0x1f6));delete _0x808443[_0xe01f12];let _0x5b01d6='';if(_0x541f02['defaultApp']===_0xe01f12){const _0x287ba8=Object[_0x2f4398(0x1f4)](_0x808443);_0x541f02[_0x2f4398(0x1ea)]=_0x287ba8[_0x2f4398(0x1e8)]>0x0?_0x287ba8[0x0]:undefined,_0x541f02[_0x2f4398(0x1ea)]?_0x5b01d6=_0x2f4398(0x1db)+_0x541f02[_0x2f4398(0x1ea)]+'\x22.':delete _0x541f02[_0x2f4398(0x1ea)];}Object[_0x2f4398(0x1f4)](_0x808443)['length']===0x0&&(delete _0x541f02[_0x2f4398(0x1e7)],delete _0x541f02['defaultApp']);writeConfig(_0x541f02,_0x5c3295);const _0x12f0b5=_0x419217===_0x2f4398(0x1ce)?_0x2f4398(0x1e1)+_0xe01f12+'\x22\x20still\x20defined\x20in\x20'+(_0x2cda4a===_0x2f4398(0x1fa)?'global':_0x2f4398(0x1fa))+_0x2f4398(0x1d4):'';return{'ok':!![],'message':_0x2f4398(0x1e4)+_0xe01f12+'\x22'+scopeLabel(_0x5c3295)+'.'+_0x5b01d6+_0x12f0b5};}
@@ -0,0 +1,17 @@
1
+ import { type RemoteApp } from "../../core/api-client.js";
2
+ export type { RemoteApp };
3
+ export declare function promptCustomAppcode(): Promise<string>;
4
+ export declare function promptAppSelection(apps: RemoteApp[]): Promise<RemoteApp[] | "custom">;
5
+ export declare function promptSingleAppSelection(apps: RemoteApp[]): Promise<RemoteApp | "custom" | "skip">;
6
+ /**
7
+ * 供 project create 使用。
8
+ * 拉取远程应用列表并展示单选 UI;用户可跳过或自定义输入。
9
+ * 返回选中的 appcode,空字符串表示跳过。
10
+ */
11
+ export declare function selectSingleAppcode(cookie?: string): Promise<string>;
12
+ /**
13
+ * 供 init 使用。
14
+ * 拉取远程应用列表并展示多选 UI。
15
+ * 返回 RemoteApp[] 或 "custom"(降级到手动输入)。
16
+ */
17
+ export declare function selectMultipleApps(cookie: string): Promise<RemoteApp[] | "custom">;
@@ -1 +1 @@
1
- (function(_0x5c451e,_0x996aae){const _0x4743af=a44_0x355e,_0x299fd9=_0x5c451e();while(!![]){try{const _0x324f81=parseInt(_0x4743af(0x19a))/0x1+-parseInt(_0x4743af(0x19b))/0x2*(parseInt(_0x4743af(0x17c))/0x3)+-parseInt(_0x4743af(0x181))/0x4+parseInt(_0x4743af(0x191))/0x5*(-parseInt(_0x4743af(0x195))/0x6)+parseInt(_0x4743af(0x18e))/0x7*(-parseInt(_0x4743af(0x19d))/0x8)+parseInt(_0x4743af(0x17e))/0x9*(-parseInt(_0x4743af(0x18a))/0xa)+parseInt(_0x4743af(0x192))/0xb;if(_0x324f81===_0x996aae)break;else _0x299fd9['push'](_0x299fd9['shift']());}catch(_0x420e0b){_0x299fd9['push'](_0x299fd9['shift']());}}}(a44_0x2ccc,0x9ebee));function a44_0x355e(_0x457aef,_0x1ec046){_0x457aef=_0x457aef-0x17b;const _0x2ccc76=a44_0x2ccc();let _0x355eb0=_0x2ccc76[_0x457aef];return _0x355eb0;}function a44_0x2ccc(){const _0x2480c2=['818nZqBzV','yellow','24TWigrM','请输入\x20App\x20Code:','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','custom','✎\x20手动输入','(跳过,稍后配置)','length','99UorswR','appName','27aqhiQk','valid','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','3344464WbSuNe','manual','gray','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','includes','\x20\x20(','appCode','获取到\x20','Invalid\x20App\x20Code','723830uBgCkd','message','✎\x20自定义输入\x20appcode','无法获取远程应用列表,请手动输入。','542325fEzoRt','trim','\x0a未找到可用应用。','4153165nHpeWt','20533073iGEQWS','skip','\x0a无法获取远程应用列表,请手动输入。','6HmmhHo','cyan','map','App\x20Code:','正在获取可用应用列表...','913399BYfaca'];a44_0x2ccc=function(){return _0x2480c2;};return a44_0x2ccc();}import{input,checkbox,select}from'@inquirer/prompts';import a44_0x4b90b0 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x46982b=a44_0x355e,_0x16347a=await input({'message':_0x46982b(0x19e),'validate':_0x274674=>{const _0x30dc98=_0x46982b,_0x1d4785=validateAppcode(_0x274674[_0x30dc98(0x18f)]());return _0x1d4785[_0x30dc98(0x17f)]||_0x1d4785[_0x30dc98(0x18b)]||_0x30dc98(0x189);}});return _0x16347a[_0x46982b(0x18f)]();}export async function promptAppSelection(_0x586c1b){const _0x5a1b58=a44_0x355e,_0xe8611c=[{'name':a44_0x4b90b0['yellow'](_0x5a1b58(0x18c)),'value':-0x1},..._0x586c1b['map']((_0x478368,_0x368828)=>({'name':_0x478368[_0x5a1b58(0x17d)]+'\x20\x20'+a44_0x4b90b0[_0x5a1b58(0x183)]('('+_0x478368[_0x5a1b58(0x187)]+')'),'value':_0x368828}))],_0x32f74d=await checkbox({'message':_0x5a1b58(0x188)+a44_0x4b90b0[_0x5a1b58(0x196)](_0x586c1b[_0x5a1b58(0x17b)])+_0x5a1b58(0x19f),'choices':_0xe8611c,'loop':![]});if(_0x32f74d[_0x5a1b58(0x185)](-0x1))return _0x5a1b58(0x1a0);if(_0x32f74d['length']===0x0)return _0x5a1b58(0x1a0);return _0x32f74d[_0x5a1b58(0x197)](_0x47ef1e=>_0x586c1b[_0x47ef1e]);}export async function promptSingleAppSelection(_0x2f3ea9){const _0x3a048a=a44_0x355e,_0x329692=[{'name':a44_0x4b90b0[_0x3a048a(0x183)](_0x3a048a(0x180)),'value':_0x3a048a(0x193)},{'name':a44_0x4b90b0['yellow']('✎\x20自定义输入\x20appcode'),'value':_0x3a048a(0x1a0)},..._0x2f3ea9[_0x3a048a(0x197)](_0x5af23f=>({'name':_0x5af23f[_0x3a048a(0x17d)]+'\x20\x20'+a44_0x4b90b0[_0x3a048a(0x183)]('('+_0x5af23f[_0x3a048a(0x187)]+')'),'value':_0x5af23f['appCode']}))],_0x3c33c7=await select({'message':'请选择要绑定的应用:','choices':_0x329692});if(_0x3c33c7==='skip')return _0x3a048a(0x193);if(_0x3c33c7===_0x3a048a(0x1a0))return'custom';return _0x2f3ea9['find'](_0x13961e=>_0x13961e[_0x3a048a(0x187)]===_0x3c33c7);}export async function selectSingleAppcode(_0x83635b){const _0x4494e8=a44_0x355e;if(!_0x83635b)return writeCliSideChannelLine(a44_0x4b90b0['gray'](_0x4494e8(0x184))),_fallbackOrSkip();writeCliSideChannelLine(_0x4494e8(0x199));let _0x4807f7;try{_0x4807f7=await withActiveCookie(_0x83635b,()=>listRemoteApps());}catch(_0x43f5c6){writeCliSideChannelLine(a44_0x4b90b0[_0x4494e8(0x19c)](_0x4494e8(0x18d)));if(_0x43f5c6 instanceof Error)writeCliSideChannelLine(a44_0x4b90b0['gray'](_0x4494e8(0x186)+_0x43f5c6[_0x4494e8(0x18b)]+')'));return _fallbackOrSkip();}if(_0x4807f7[_0x4494e8(0x17b)]===0x0)return writeCliSideChannelLine(a44_0x4b90b0[_0x4494e8(0x19c)]('未找到可用应用。')),_fallbackOrSkip();const _0xbdd299=await promptSingleAppSelection(_0x4807f7);if(_0xbdd299===_0x4494e8(0x193))return'';if(_0xbdd299===_0x4494e8(0x1a0))return promptCustomAppcode();return _0xbdd299['appCode'];}export async function selectMultipleApps(_0x25b513){const _0x5d686c=a44_0x355e;writeCliSideChannelLine(_0x5d686c(0x199));let _0x16991f;try{_0x16991f=await withActiveCookie(_0x25b513,()=>listRemoteApps());}catch(_0x1a99df){writeCliSideChannelLine(_0x5d686c(0x194));if(_0x1a99df instanceof Error)writeCliSideChannelLine(_0x5d686c(0x186)+_0x1a99df[_0x5d686c(0x18b)]+')');return _0x5d686c(0x1a0);}if(_0x16991f[_0x5d686c(0x17b)]===0x0)return writeCliSideChannelLine(_0x5d686c(0x190)),_0x5d686c(0x1a0);return promptAppSelection(_0x16991f);}async function _fallbackOrSkip(){const _0x240178=a44_0x355e,_0x26ed24=await select({'message':_0x240178(0x198),'choices':[{'name':a44_0x4b90b0['gray'](_0x240178(0x1a2)),'value':_0x240178(0x193)},{'name':a44_0x4b90b0[_0x240178(0x19c)](_0x240178(0x1a1)),'value':_0x240178(0x182)}]});if(_0x26ed24===_0x240178(0x193))return'';return promptCustomAppcode();}
1
+ (function(_0x1952af,_0x1a3321){const _0x5ed25c=a44_0x49d8,_0x567d10=_0x1952af();while(!![]){try{const _0x483503=-parseInt(_0x5ed25c(0x1dd))/0x1+parseInt(_0x5ed25c(0x1de))/0x2*(-parseInt(_0x5ed25c(0x1df))/0x3)+parseInt(_0x5ed25c(0x1da))/0x4*(parseInt(_0x5ed25c(0x1e1))/0x5)+-parseInt(_0x5ed25c(0x1d1))/0x6*(-parseInt(_0x5ed25c(0x1cf))/0x7)+-parseInt(_0x5ed25c(0x1eb))/0x8*(parseInt(_0x5ed25c(0x1d5))/0x9)+parseInt(_0x5ed25c(0x1c7))/0xa*(parseInt(_0x5ed25c(0x1cb))/0xb)+-parseInt(_0x5ed25c(0x1c8))/0xc*(-parseInt(_0x5ed25c(0x1e5))/0xd);if(_0x483503===_0x1a3321)break;else _0x567d10['push'](_0x567d10['shift']());}catch(_0xf7fac6){_0x567d10['push'](_0x567d10['shift']());}}}(a44_0x2e29,0xc21cc));import{input,checkbox,select}from'@inquirer/prompts';import a44_0x275162 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a44_0x2e29(){const _0x1f355f=['15031354PxZjek','valid','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','\x20\x20(','yellow','includes','4384pNMXvz','appName','map','appCode','length','825830nEOcvl','12sFtkMp','manual','正在获取可用应用列表...','55oQQyxn','App\x20Code:','find','✎\x20手动输入','298914UOMUVe','\x0a无法获取远程应用列表,请手动输入。','210DWLPEo','未找到可用应用。','trim','✎\x20自定义输入\x20appcode','19575NEBAPj','Invalid\x20App\x20Code','(跳过,稍后配置)','无法获取远程应用列表,请手动输入。','cyan','27268oSkVon','获取到\x20','skip','1304588OpeOen','109790WBiGfh','33geXvgO','gray','610BAEEZq','message','请输入\x20App\x20Code:','custom'];a44_0x2e29=function(){return _0x1f355f;};return a44_0x2e29();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0xdff64=a44_0x49d8,_0x57bfc9=await input({'message':_0xdff64(0x1e3),'validate':_0x4e7666=>{const _0x2cfaf7=_0xdff64,_0x1c04a6=validateAppcode(_0x4e7666[_0x2cfaf7(0x1d3)]());return _0x1c04a6[_0x2cfaf7(0x1e6)]||_0x1c04a6['message']||_0x2cfaf7(0x1d6);}});return _0x57bfc9[_0xdff64(0x1d3)]();}export async function promptAppSelection(_0x531668){const _0x17fb0c=a44_0x49d8,_0x14a18f=[{'name':a44_0x275162[_0x17fb0c(0x1e9)](_0x17fb0c(0x1d4)),'value':-0x1},..._0x531668[_0x17fb0c(0x1c4)]((_0x2580da,_0x1c09ff)=>({'name':_0x2580da[_0x17fb0c(0x1c3)]+'\x20\x20'+a44_0x275162[_0x17fb0c(0x1e0)]('('+_0x2580da[_0x17fb0c(0x1c5)]+')'),'value':_0x1c09ff}))],_0x2d28a8=await checkbox({'message':_0x17fb0c(0x1db)+a44_0x275162[_0x17fb0c(0x1d9)](_0x531668[_0x17fb0c(0x1c6)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x14a18f,'loop':![]});if(_0x2d28a8[_0x17fb0c(0x1ea)](-0x1))return _0x17fb0c(0x1e4);if(_0x2d28a8[_0x17fb0c(0x1c6)]===0x0)return'custom';return _0x2d28a8[_0x17fb0c(0x1c4)](_0x9d706b=>_0x531668[_0x9d706b]);}export async function promptSingleAppSelection(_0x303fdf){const _0x3dd1bb=a44_0x49d8,_0x3416dc=[{'name':a44_0x275162[_0x3dd1bb(0x1e0)](_0x3dd1bb(0x1e7)),'value':_0x3dd1bb(0x1dc)},{'name':a44_0x275162['yellow']('✎\x20自定义输入\x20appcode'),'value':_0x3dd1bb(0x1e4)},..._0x303fdf[_0x3dd1bb(0x1c4)](_0x1b16fd=>({'name':_0x1b16fd[_0x3dd1bb(0x1c3)]+'\x20\x20'+a44_0x275162['gray']('('+_0x1b16fd[_0x3dd1bb(0x1c5)]+')'),'value':_0x1b16fd[_0x3dd1bb(0x1c5)]}))],_0x461ac1=await select({'message':'请选择要绑定的应用:','choices':_0x3416dc});if(_0x461ac1==='skip')return'skip';if(_0x461ac1===_0x3dd1bb(0x1e4))return _0x3dd1bb(0x1e4);return _0x303fdf[_0x3dd1bb(0x1cd)](_0x1f6c52=>_0x1f6c52['appCode']===_0x461ac1);}export async function selectSingleAppcode(_0x4ada78){const _0x16440c=a44_0x49d8;if(!_0x4ada78)return writeCliSideChannelLine(a44_0x275162[_0x16440c(0x1e0)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();writeCliSideChannelLine(_0x16440c(0x1ca));let _0xcf0550;try{_0xcf0550=await withActiveCookie(_0x4ada78,()=>listRemoteApps());}catch(_0x560b83){writeCliSideChannelLine(a44_0x275162[_0x16440c(0x1e9)](_0x16440c(0x1d8)));if(_0x560b83 instanceof Error)writeCliSideChannelLine(a44_0x275162[_0x16440c(0x1e0)](_0x16440c(0x1e8)+_0x560b83[_0x16440c(0x1e2)]+')'));return _fallbackOrSkip();}if(_0xcf0550[_0x16440c(0x1c6)]===0x0)return writeCliSideChannelLine(a44_0x275162[_0x16440c(0x1e9)](_0x16440c(0x1d2))),_fallbackOrSkip();const _0x46df3b=await promptSingleAppSelection(_0xcf0550);if(_0x46df3b===_0x16440c(0x1dc))return'';if(_0x46df3b===_0x16440c(0x1e4))return promptCustomAppcode();return _0x46df3b['appCode'];}export async function selectMultipleApps(_0x5d00e0){const _0x1b9cfa=a44_0x49d8;writeCliSideChannelLine(_0x1b9cfa(0x1ca));let _0x2f73fa;try{_0x2f73fa=await withActiveCookie(_0x5d00e0,()=>listRemoteApps());}catch(_0x5dd6e8){writeCliSideChannelLine(_0x1b9cfa(0x1d0));if(_0x5dd6e8 instanceof Error)writeCliSideChannelLine(_0x1b9cfa(0x1e8)+_0x5dd6e8[_0x1b9cfa(0x1e2)]+')');return _0x1b9cfa(0x1e4);}if(_0x2f73fa[_0x1b9cfa(0x1c6)]===0x0)return writeCliSideChannelLine('\x0a未找到可用应用。'),_0x1b9cfa(0x1e4);return promptAppSelection(_0x2f73fa);}function a44_0x49d8(_0x4f0a5a,_0x2bc7a5){_0x4f0a5a=_0x4f0a5a-0x1c3;const _0x2e2972=a44_0x2e29();let _0x49d807=_0x2e2972[_0x4f0a5a];return _0x49d807;}async function _fallbackOrSkip(){const _0x4c0eba=a44_0x49d8,_0x2bc19e=await select({'message':_0x4c0eba(0x1cc),'choices':[{'name':a44_0x275162[_0x4c0eba(0x1e0)](_0x4c0eba(0x1d7)),'value':'skip'},{'name':a44_0x275162[_0x4c0eba(0x1e9)](_0x4c0eba(0x1ce)),'value':_0x4c0eba(0x1c9)}]});if(_0x2bc19e==='skip')return'';return promptCustomAppcode();}
@@ -0,0 +1,11 @@
1
+ import type { AsyncTaskStatusRecord } from "../../core/api-client.js";
2
+ export interface AsyncTaskSummary {
3
+ taskId: string;
4
+ status: string;
5
+ errorMessage: string | null;
6
+ isTerminal: boolean;
7
+ knownStatus: boolean;
8
+ }
9
+ export declare function normalizeAsyncTask(task: AsyncTaskStatusRecord): AsyncTaskSummary;
10
+ export declare function buildAsyncTaskStatusCommand(taskId: string, appCode: string): string;
11
+ export declare function asyncTaskMessage(task: AsyncTaskSummary): string;
@@ -1 +1 @@
1
- const a45_0x31cb4a=a45_0x42fe;function a45_0x42fe(_0x13ae12,_0x5d07eb){_0x13ae12=_0x13ae12-0x196;const _0x45185b=a45_0x4518();let _0x42fe36=_0x45185b[_0x13ae12];return _0x42fe36;}(function(_0x11bdee,_0x3212d7){const _0x5ac600=a45_0x42fe,_0x3cd16b=_0x11bdee();while(!![]){try{const _0x420376=parseInt(_0x5ac600(0x1ab))/0x1+-parseInt(_0x5ac600(0x1b8))/0x2+parseInt(_0x5ac600(0x19e))/0x3*(-parseInt(_0x5ac600(0x1b2))/0x4)+parseInt(_0x5ac600(0x196))/0x5+parseInt(_0x5ac600(0x1ad))/0x6+parseInt(_0x5ac600(0x1a2))/0x7*(-parseInt(_0x5ac600(0x1b0))/0x8)+-parseInt(_0x5ac600(0x19a))/0x9*(parseInt(_0x5ac600(0x19b))/0xa);if(_0x420376===_0x3212d7)break;else _0x3cd16b['push'](_0x3cd16b['shift']());}catch(_0x51f903){_0x3cd16b['push'](_0x3cd16b['shift']());}}}(a45_0x4518,0x27c4d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a45_0x31cb4a(0x1b7)]),NON_TERMINAL_STATUSES=new Set(['PENDING','PROCESSING']);function a45_0x4518(){const _0x4ebad4=['\x20is\x20pending.','9RrivDI','166820WwSfPI','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','\x20--appcode\x20','6jbTEKR','status','apiError','\x20returned\x20unknown\x20status\x20','1187669IndOBY','\x20response\x20did\x20not\x20contain\x20a\x20status.','has','toUpperCase','string','\x20failed.','Async\x20task\x20','errorMessage','trim','70832HdHhFe','\x20task\x20status\x20--task-id\x20','1596246FuPPwN','\x20is\x20processing.','replace','8bwqUNC','Task\x20','123244BIbwhp','\x20completed\x20successfully.','PENDING','PROCESSING','taskId','FAILED','453210azSixM','1502980cQrqxi','\x20failed:\x20','\x27\x5c\x27\x27'];a45_0x4518=function(){return _0x4ebad4;};return a45_0x4518();}export function normalizeAsyncTask(_0x48a450){const _0x3e885f=a45_0x31cb4a,_0xf0fb=typeof _0x48a450?.[_0x3e885f(0x1b6)]===_0x3e885f(0x1a6)?_0x48a450['taskId'][_0x3e885f(0x1aa)]():'';if(!_0xf0fb)throw CliErrors[_0x3e885f(0x1a0)](_0x3e885f(0x19c));const _0x36d7c2=typeof _0x48a450[_0x3e885f(0x19f)]===_0x3e885f(0x1a6)?_0x48a450[_0x3e885f(0x19f)][_0x3e885f(0x1aa)]()[_0x3e885f(0x1a5)]():'';if(!_0x36d7c2)throw CliErrors['apiError'](_0x3e885f(0x1a8)+_0xf0fb+_0x3e885f(0x1a3));return{'taskId':_0xf0fb,'status':_0x36d7c2,'errorMessage':typeof _0x48a450[_0x3e885f(0x1a9)]===_0x3e885f(0x1a6)&&_0x48a450[_0x3e885f(0x1a9)][_0x3e885f(0x1aa)]()?_0x48a450[_0x3e885f(0x1a9)][_0x3e885f(0x1aa)]():null,'isTerminal':TERMINAL_STATUSES['has'](_0x36d7c2),'knownStatus':TERMINAL_STATUSES[_0x3e885f(0x1a4)](_0x36d7c2)||NON_TERMINAL_STATUSES[_0x3e885f(0x1a4)](_0x36d7c2)};}export function buildAsyncTaskStatusCommand(_0x355a70,_0x2ece21){const _0x1ff48f=a45_0x31cb4a;return CLI_BIN_NAME+_0x1ff48f(0x1ac)+quoteShellArg(_0x355a70)+_0x1ff48f(0x19d)+quoteShellArg(_0x2ece21)+'\x20--format\x20compress';}export function asyncTaskMessage(_0x2bcb00){const _0x21b191=a45_0x31cb4a;switch(_0x2bcb00[_0x21b191(0x19f)]){case _0x21b191(0x1b4):return _0x21b191(0x1b1)+_0x2bcb00[_0x21b191(0x1b6)]+_0x21b191(0x199);case _0x21b191(0x1b5):return _0x21b191(0x1b1)+_0x2bcb00[_0x21b191(0x1b6)]+_0x21b191(0x1ae);case'SUCCESS':return _0x21b191(0x1b1)+_0x2bcb00[_0x21b191(0x1b6)]+_0x21b191(0x1b3);case _0x21b191(0x1b7):return _0x2bcb00[_0x21b191(0x1a9)]?_0x21b191(0x1b1)+_0x2bcb00['taskId']+_0x21b191(0x197)+_0x2bcb00[_0x21b191(0x1a9)]:_0x21b191(0x1b1)+_0x2bcb00['taskId']+_0x21b191(0x1a7);default:return _0x21b191(0x1b1)+_0x2bcb00[_0x21b191(0x1b6)]+_0x21b191(0x1a1)+_0x2bcb00[_0x21b191(0x19f)]+'.';}}function quoteShellArg(_0x12e914){const _0x184c0f=a45_0x31cb4a;return'\x27'+_0x12e914[_0x184c0f(0x1af)](/'/g,_0x184c0f(0x198))+'\x27';}
1
+ const a45_0x2cd4db=a45_0x36da;(function(_0x2be307,_0x23d44c){const _0x8d3803=a45_0x36da,_0x49688e=_0x2be307();while(!![]){try{const _0x59ae28=-parseInt(_0x8d3803(0x205))/0x1+parseInt(_0x8d3803(0x202))/0x2+parseInt(_0x8d3803(0x1fa))/0x3+parseInt(_0x8d3803(0x203))/0x4*(-parseInt(_0x8d3803(0x1f6))/0x5)+parseInt(_0x8d3803(0x20c))/0x6*(parseInt(_0x8d3803(0x1fc))/0x7)+parseInt(_0x8d3803(0x200))/0x8*(parseInt(_0x8d3803(0x211))/0x9)+-parseInt(_0x8d3803(0x20e))/0xa;if(_0x59ae28===_0x23d44c)break;else _0x49688e['push'](_0x49688e['shift']());}catch(_0x3015f9){_0x49688e['push'](_0x49688e['shift']());}}}(a45_0xc3bc,0x7fffb));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a45_0x2cd4db(0x1fe)]),NON_TERMINAL_STATUSES=new Set(['PENDING',a45_0x2cd4db(0x208)]);export function normalizeAsyncTask(_0x1b33cd){const _0x803f22=a45_0x2cd4db,_0xb1c8a4=typeof _0x1b33cd?.['taskId']===_0x803f22(0x204)?_0x1b33cd[_0x803f22(0x209)][_0x803f22(0x20d)]():'';if(!_0xb1c8a4)throw CliErrors[_0x803f22(0x20a)](_0x803f22(0x207));const _0x1e21e4=typeof _0x1b33cd[_0x803f22(0x201)]===_0x803f22(0x204)?_0x1b33cd[_0x803f22(0x201)][_0x803f22(0x20d)]()[_0x803f22(0x1f8)]():'';if(!_0x1e21e4)throw CliErrors['apiError'](_0x803f22(0x20b)+_0xb1c8a4+_0x803f22(0x210));return{'taskId':_0xb1c8a4,'status':_0x1e21e4,'errorMessage':typeof _0x1b33cd[_0x803f22(0x1f7)]===_0x803f22(0x204)&&_0x1b33cd[_0x803f22(0x1f7)][_0x803f22(0x20d)]()?_0x1b33cd[_0x803f22(0x1f7)][_0x803f22(0x20d)]():null,'isTerminal':TERMINAL_STATUSES['has'](_0x1e21e4),'knownStatus':TERMINAL_STATUSES[_0x803f22(0x206)](_0x1e21e4)||NON_TERMINAL_STATUSES[_0x803f22(0x206)](_0x1e21e4)};}export function buildAsyncTaskStatusCommand(_0x2c1d44,_0x3bd74b){const _0x480c2b=a45_0x2cd4db;return CLI_BIN_NAME+_0x480c2b(0x1f9)+quoteShellArg(_0x2c1d44)+'\x20--appcode\x20'+quoteShellArg(_0x3bd74b)+'\x20--format\x20compress';}function a45_0x36da(_0x4e8895,_0x5da3a9){_0x4e8895=_0x4e8895-0x1f3;const _0xc3bcec=a45_0xc3bc();let _0x36dae0=_0xc3bcec[_0x4e8895];return _0x36dae0;}export function asyncTaskMessage(_0x280b5a){const _0x346f4c=a45_0x2cd4db;switch(_0x280b5a[_0x346f4c(0x201)]){case _0x346f4c(0x1ff):return _0x346f4c(0x1f3)+_0x280b5a[_0x346f4c(0x209)]+_0x346f4c(0x1f5);case _0x346f4c(0x208):return _0x346f4c(0x1f3)+_0x280b5a[_0x346f4c(0x209)]+'\x20is\x20processing.';case _0x346f4c(0x1fd):return _0x346f4c(0x1f3)+_0x280b5a[_0x346f4c(0x209)]+'\x20completed\x20successfully.';case'FAILED':return _0x280b5a[_0x346f4c(0x1f7)]?'Task\x20'+_0x280b5a[_0x346f4c(0x209)]+_0x346f4c(0x1f4)+_0x280b5a['errorMessage']:_0x346f4c(0x1f3)+_0x280b5a['taskId']+'\x20failed.';default:return _0x346f4c(0x1f3)+_0x280b5a[_0x346f4c(0x209)]+'\x20returned\x20unknown\x20status\x20'+_0x280b5a[_0x346f4c(0x201)]+'.';}}function quoteShellArg(_0x3023e4){const _0x564ca4=a45_0x2cd4db;return'\x27'+_0x3023e4[_0x564ca4(0x20f)](/'/g,_0x564ca4(0x1fb))+'\x27';}function a45_0xc3bc(){const _0x2731c2=['8tHknyf','status','1533214bBOIQr','2076OuOWYe','string','837206gggaSm','has','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','PROCESSING','taskId','apiError','Async\x20task\x20','6FrIELT','trim','356620MejCgo','replace','\x20response\x20did\x20not\x20contain\x20a\x20status.','5218317nngeJo','Task\x20','\x20failed:\x20','\x20is\x20pending.','9110utDFiz','errorMessage','toUpperCase','\x20task\x20status\x20--task-id\x20','1980960JsatzQ','\x27\x5c\x27\x27','2352203SAmnAQ','SUCCESS','FAILED','PENDING'];a45_0xc3bc=function(){return _0x2731c2;};return a45_0xc3bc();}
@@ -0,0 +1,12 @@
1
+ import type { DryRunResult } from "../../framework/types.js";
2
+ /**
3
+ * 把结构化的 mutation 信封(operation/selector/before/after/dryRun/backend/warnings)
4
+ * 包装为 DryRunResult:附加 framework 需要的 method/url(不可枚举,避免污染 data 输出)。
5
+ *
6
+ * 与 app-config/shared.ts 的 asAppConfigDryRunResult 同构,供 role / permit 等写命令复用。
7
+ */
8
+ export declare function asDryRunResult<T extends object>(data: T, backend: {
9
+ method: "GET" | "POST";
10
+ url: string;
11
+ description?: string;
12
+ }): DryRunResult & T;
@@ -1 +1 @@
1
- (function(_0x25c752,_0x305a48){var _0x2f7cdd=a46_0x354e,_0x5aa899=_0x25c752();while(!![]){try{var _0xf131bc=parseInt(_0x2f7cdd(0x13d))/0x1+-parseInt(_0x2f7cdd(0x13a))/0x2*(-parseInt(_0x2f7cdd(0x141))/0x3)+parseInt(_0x2f7cdd(0x13b))/0x4+parseInt(_0x2f7cdd(0x13f))/0x5*(-parseInt(_0x2f7cdd(0x135))/0x6)+-parseInt(_0x2f7cdd(0x138))/0x7+-parseInt(_0x2f7cdd(0x137))/0x8+parseInt(_0x2f7cdd(0x136))/0x9*(parseInt(_0x2f7cdd(0x140))/0xa);if(_0xf131bc===_0x305a48)break;else _0x5aa899['push'](_0x5aa899['shift']());}catch(_0x4d0f8d){_0x5aa899['push'](_0x5aa899['shift']());}}}(a46_0x44c2,0x35611));function a46_0x354e(_0x2d1620,_0x40f85d){_0x2d1620=_0x2d1620-0x135;var _0x44c2ef=a46_0x44c2();var _0x354ea9=_0x44c2ef[_0x2d1620];return _0x354ea9;}export function asDryRunResult(_0x350d19,_0x485794){var _0x3ff4d6=a46_0x354e;return Object[_0x3ff4d6(0x13c)](_0x350d19,{'method':{'value':_0x485794[_0x3ff4d6(0x139)],'enumerable':![]},'url':{'value':_0x485794[_0x3ff4d6(0x13e)],'enumerable':![]},..._0x485794['description']?{'description':{'value':_0x485794['description'],'enumerable':![]}}:{}});}function a46_0x44c2(){var _0x3606d0=['178983kFDTyf','7938DUYePW','9oSGoic','2623696IYxAoE','311437BeQmvo','method','6isBusN','414880GljsFJ','defineProperties','382213FiztIT','url','305UbcAXD','68810tAHAHl'];a46_0x44c2=function(){return _0x3606d0;};return a46_0x44c2();}
1
+ function a46_0x4a8c(){var _0x2c7fdc=['4RwUyqH','10VNzyNI','10428888PJFPjo','11366404VZdKAf','48WNFbXX','19026029KBfYIY','defineProperties','description','10mgeQjf','3602442WahTmR','31184fqFXJP','1923399Avdmdb','url','67zWTIwl','method','1783653XsiWsm'];a46_0x4a8c=function(){return _0x2c7fdc;};return a46_0x4a8c();}function a46_0x349c(_0x321ac5,_0xa3e84f){_0x321ac5=_0x321ac5-0x143;var _0x4a8cc1=a46_0x4a8c();var _0x349c85=_0x4a8cc1[_0x321ac5];return _0x349c85;}(function(_0x30bdad,_0x33f27c){var _0x4f5409=a46_0x349c,_0x52a7b8=_0x30bdad();while(!![]){try{var _0x5d2aa2=parseInt(_0x4f5409(0x148))/0x1*(parseInt(_0x4f5409(0x145))/0x2)+-parseInt(_0x4f5409(0x14a))/0x3*(-parseInt(_0x4f5409(0x14b))/0x4)+-parseInt(_0x4f5409(0x14c))/0x5*(parseInt(_0x4f5409(0x144))/0x6)+-parseInt(_0x4f5409(0x14e))/0x7+parseInt(_0x4f5409(0x14f))/0x8*(parseInt(_0x4f5409(0x146))/0x9)+-parseInt(_0x4f5409(0x143))/0xa*(-parseInt(_0x4f5409(0x150))/0xb)+-parseInt(_0x4f5409(0x14d))/0xc;if(_0x5d2aa2===_0x33f27c)break;else _0x52a7b8['push'](_0x52a7b8['shift']());}catch(_0x3dbcac){_0x52a7b8['push'](_0x52a7b8['shift']());}}}(a46_0x4a8c,0xe9c14));export function asDryRunResult(_0x1e70fd,_0x459772){var _0x7b93fb=a46_0x349c;return Object[_0x7b93fb(0x151)](_0x1e70fd,{'method':{'value':_0x459772[_0x7b93fb(0x149)],'enumerable':![]},'url':{'value':_0x459772[_0x7b93fb(0x147)],'enumerable':![]},..._0x459772[_0x7b93fb(0x152)]?{'description':{'value':_0x459772[_0x7b93fb(0x152)],'enumerable':![]}}:{}});}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 跨命令复用的 flag 定义常量
3
+ *
4
+ * 所有命令引用这里定义的常量,而非各自重复定义,
5
+ * 确保 pattern / description / required 等元数据保持一致。
6
+ */
7
+ import type { FlagDef } from "../../framework/types.js";
8
+ export declare const DATASET_CODE_PATTERN: NonNullable<FlagDef["pattern"]>;
9
+ /** Dataset --code:32 位十六进制 UUID,用于 dataset / data 等命令 */
10
+ export declare const CODE_FLAG: FlagDef;
11
+ /** Dataset --code(可选,用于过滤/查询) */
12
+ export declare const CODE_FLAG_OPTIONAL: FlagDef;
13
+ /** Dataset --datasetcode(可选,常用于 page / bff / sql 等跨资源命令) */
14
+ export declare const DATASETCODE_FLAG_OPTIONAL: FlagDef;
15
+ /** SQL/BFF --sqlcode:xxxxxxxx-xxxxxxxx 格式 */
16
+ export declare const SQLCODE_FLAG: FlagDef;
17
+ /** --appcode:显式指定应用 code(覆盖配置文件,用于 dataset 命令) */
18
+ export declare const APPCODE_FLAG_OPTIONAL: FlagDef;
19
+ /** --appcode:必须显式指定应用 code */
20
+ export declare const APPCODE_FLAG: FlagDef;
21
+ /** SQL --sqlcode(可选,用于过滤) */
22
+ export declare const SQLCODE_FLAG_OPTIONAL: FlagDef;
23
+ /** 数据库连接 ID(dblink id,来自 db list) */
24
+ export declare const DBLINK_ID_FLAG: FlagDef;
25
+ /** 创建连接时的数据库产品类型(与研发态工作台一致) */
26
+ export declare const DB_TYPE_FLAG: FlagDef;
@@ -1 +1 @@
1
- const a47_0x5e2805=a47_0x3bb5;(function(_0x507c9a,_0x390ddf){const _0x2347ce=a47_0x3bb5,_0x2f0ad2=_0x507c9a();while(!![]){try{const _0x3f7e57=parseInt(_0x2347ce(0xf1))/0x1*(parseInt(_0x2347ce(0xfe))/0x2)+parseInt(_0x2347ce(0xea))/0x3*(parseInt(_0x2347ce(0xfc))/0x4)+parseInt(_0x2347ce(0xeb))/0x5*(-parseInt(_0x2347ce(0xf9))/0x6)+parseInt(_0x2347ce(0xf2))/0x7+-parseInt(_0x2347ce(0xed))/0x8+-parseInt(_0x2347ce(0xf8))/0x9*(parseInt(_0x2347ce(0x100))/0xa)+parseInt(_0x2347ce(0xfb))/0xb*(-parseInt(_0x2347ce(0xf5))/0xc);if(_0x3f7e57===_0x390ddf)break;else _0x2f0ad2['push'](_0x2f0ad2['shift']());}catch(_0x4ab43a){_0x2f0ad2['push'](_0x2f0ad2['shift']());}}}(a47_0xfbd5,0xf2ab5));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a47_0x5e2805(0xe7)};export const CODE_FLAG={'name':a47_0x5e2805(0xe6),'type':a47_0x5e2805(0xe8),'required':!![],'description':a47_0x5e2805(0xfa),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a47_0x5e2805(0xfa)};export const SQLCODE_FLAG={'name':a47_0x5e2805(0xf4),'type':'string','required':!![],'description':a47_0x5e2805(0xf7),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a47_0x5e2805(0xee)}};export const APPCODE_FLAG_OPTIONAL={'name':a47_0x5e2805(0xf6),'type':a47_0x5e2805(0xe8),'required':![],'description':a47_0x5e2805(0xf0)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a47_0x5e2805(0xff)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a47_0x5e2805(0xf3),'required':!![],'description':a47_0x5e2805(0xfd)};function a47_0xfbd5(){const _0x55747e=['string','dbtype','103152lwpDWb','2224550CjmplP','MYSQL','2005952TFxXpV','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','POSTGRESQL','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','1iwvxKg','7085778DtIIyk','number','sqlcode','7427928plozLf','appcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','1027593gmZYwl','6KzhDix','Dataset\x20code\x20(32-char\x20hex\x20UUID)','44NTdHnG','212EHgxya','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','3118702SiCCWw','App\x20code\x20(e.g.\x20app-xxxxx)','20pWApox','code','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'];a47_0xfbd5=function(){return _0x55747e;};return a47_0xfbd5();}function a47_0x3bb5(_0x4669f5,_0x54cfa8){_0x4669f5=_0x4669f5-0xe6;const _0xfbd5da=a47_0xfbd5();let _0x3bb543=_0xfbd5da[_0x4669f5];return _0x3bb543;}export const DB_TYPE_FLAG={'name':a47_0x5e2805(0xe9),'type':a47_0x5e2805(0xe8),'required':!![],'description':'Database\x20product\x20type','enum':[a47_0x5e2805(0xec),a47_0x5e2805(0xef)]};
1
+ const a47_0x35eec4=a47_0x4b06;(function(_0x167798,_0x12b8ce){const _0x417fd4=a47_0x4b06,_0x31461c=_0x167798();while(!![]){try{const _0xe906e8=-parseInt(_0x417fd4(0x117))/0x1*(-parseInt(_0x417fd4(0x11f))/0x2)+-parseInt(_0x417fd4(0x11b))/0x3+-parseInt(_0x417fd4(0x11a))/0x4*(parseInt(_0x417fd4(0x11d))/0x5)+parseInt(_0x417fd4(0x119))/0x6+-parseInt(_0x417fd4(0x112))/0x7*(parseInt(_0x417fd4(0x121))/0x8)+-parseInt(_0x417fd4(0x110))/0x9+parseInt(_0x417fd4(0x115))/0xa*(parseInt(_0x417fd4(0x10b))/0xb);if(_0xe906e8===_0x12b8ce)break;else _0x31461c['push'](_0x31461c['shift']());}catch(_0x28afaf){_0x31461c['push'](_0x31461c['shift']());}}}(a47_0x5788,0xbba76));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a47_0x35eec4(0x107)};export const CODE_FLAG={'name':a47_0x35eec4(0x10a),'type':a47_0x35eec4(0x114),'required':!![],'description':a47_0x35eec4(0x10f),'pattern':DATASET_CODE_PATTERN};function a47_0x5788(){const _0x457ca9=['Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','code','11AsHpMy','appcode','MYSQL','datasetcode','Dataset\x20code\x20(32-char\x20hex\x20UUID)','8452629kpLuha','Database\x20product\x20type','294DkKAlc','number','string','33121870wYFHOE','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1250hQIXls','App\x20code\x20(e.g.\x20app-xxxxx)','5222142DirWpV','5288AEacih','3305529ztzOSA','sqlcode','4585EiYUJn','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','1060HJDwSa','dbtype','156784dUzMpc','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'];a47_0x5788=function(){return _0x457ca9;};return a47_0x5788();}function a47_0x4b06(_0x520375,_0x5b5f04){_0x520375=_0x520375-0x107;const _0x57885a=a47_0x5788();let _0x4b0688=_0x57885a[_0x520375];return _0x4b0688;}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a47_0x35eec4(0x10e),'description':a47_0x35eec4(0x10f)};export const SQLCODE_FLAG={'name':a47_0x35eec4(0x11c),'type':a47_0x35eec4(0x114),'required':!![],'description':a47_0x35eec4(0x11e),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a47_0x35eec4(0x116)}};export const APPCODE_FLAG_OPTIONAL={'name':a47_0x35eec4(0x10c),'type':a47_0x35eec4(0x114),'required':![],'description':a47_0x35eec4(0x108)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a47_0x35eec4(0x118)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a47_0x35eec4(0x113),'required':!![],'description':a47_0x35eec4(0x109)};export const DB_TYPE_FLAG={'name':a47_0x35eec4(0x120),'type':'string','required':!![],'description':a47_0x35eec4(0x111),'enum':[a47_0x35eec4(0x10d),'POSTGRESQL']};
@@ -0,0 +1,6 @@
1
+ export declare const DEVELOPMENT_UPLOAD_MAX_BYTES: number;
2
+ export interface DevelopmentUploadFile {
3
+ path: string;
4
+ size: number;
5
+ }
6
+ export declare function requireDevelopmentUploadFile(filePath: string, label: string): DevelopmentUploadFile;
@@ -1 +1 @@
1
- (function(_0x2cae50,_0x4536c5){const _0x538646=a48_0x502e,_0x27aafa=_0x2cae50();while(!![]){try{const _0x1021db=parseInt(_0x538646(0x11d))/0x1*(parseInt(_0x538646(0x119))/0x2)+parseInt(_0x538646(0x11c))/0x3*(parseInt(_0x538646(0x123))/0x4)+-parseInt(_0x538646(0x125))/0x5+parseInt(_0x538646(0x11f))/0x6*(parseInt(_0x538646(0x127))/0x7)+parseInt(_0x538646(0x118))/0x8+parseInt(_0x538646(0x122))/0x9*(-parseInt(_0x538646(0x121))/0xa)+-parseInt(_0x538646(0x116))/0xb*(-parseInt(_0x538646(0x11a))/0xc);if(_0x1021db===_0x4536c5)break;else _0x27aafa['push'](_0x27aafa['shift']());}catch(_0x1268f7){_0x27aafa['push'](_0x27aafa['shift']());}}}(a48_0xc110,0x1c0e0));function a48_0xc110(){const _0x3247d9=['20cvMTuB','550404DycnPn','1580ajdGNv','validation','773675xAkqkv','\x20MB','87521hjjDok','isFile','ceil','2828309JHNZmw','\x20path\x20is\x20required.','159328SoerbA','34lGpBmM','12zNYMVq','trim','81fytOan','3191lRMANo','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','24RSTOVU','size'];a48_0xc110=function(){return _0x3247d9;};return a48_0xc110();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x9125df){const _0x5a2cc1=a48_0x502e;if(_0x9125df>=BYTES_PER_MB){const _0x2cb156=Math[_0x5a2cc1(0x129)](_0x9125df/BYTES_PER_MB*0x64)/0x64;return _0x2cb156['toFixed'](0x2)+_0x5a2cc1(0x126);}return _0x9125df+'\x20B';}function a48_0x502e(_0x2677fa,_0x279273){_0x2677fa=_0x2677fa-0x116;const _0xc110d=a48_0xc110();let _0x502e26=_0xc110d[_0x2677fa];return _0x502e26;}export function requireDevelopmentUploadFile(_0x3c1068,_0x578ef0){const _0x28842f=a48_0x502e,_0x23dc64=_0x3c1068[_0x28842f(0x11b)]();if(!_0x23dc64)throw CliErrors[_0x28842f(0x124)](_0x578ef0+_0x28842f(0x117));if(!existsSync(_0x23dc64))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x23dc64);const _0x57911a=statSync(_0x23dc64);if(!_0x57911a[_0x28842f(0x128)]())throw CliErrors[_0x28842f(0x124)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x23dc64);if(_0x57911a[_0x28842f(0x120)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x28842f(0x124)](_0x28842f(0x11e)+_0x23dc64+'\x20('+formatBytes(_0x57911a[_0x28842f(0x120)])+')');return{'path':_0x23dc64,'size':_0x57911a[_0x28842f(0x120)]};}
1
+ (function(_0x19906a,_0x5380ab){const _0x493b56=a48_0x5ddb,_0x3b8487=_0x19906a();while(!![]){try{const _0xfaeefc=parseInt(_0x493b56(0x151))/0x1*(parseInt(_0x493b56(0x14e))/0x2)+parseInt(_0x493b56(0x14b))/0x3+-parseInt(_0x493b56(0x150))/0x4+-parseInt(_0x493b56(0x14a))/0x5+-parseInt(_0x493b56(0x158))/0x6+parseInt(_0x493b56(0x146))/0x7*(-parseInt(_0x493b56(0x14c))/0x8)+-parseInt(_0x493b56(0x147))/0x9*(-parseInt(_0x493b56(0x14d))/0xa);if(_0xfaeefc===_0x5380ab)break;else _0x3b8487['push'](_0x3b8487['shift']());}catch(_0x39c4d3){_0x3b8487['push'](_0x3b8487['shift']());}}}(a48_0x5d75,0x8ea09));function a48_0x5ddb(_0x131774,_0x57f1e4){_0x131774=_0x131774-0x146;const _0x5d75d8=a48_0x5d75();let _0x5ddb33=_0x5d75d8[_0x131774];return _0x5ddb33;}import{existsSync,statSync}from'node:fs';function a48_0x5d75(){const _0x37a6cf=['\x20MB','File\x20not\x20found:\x20','ceil','4363404OcsHdF','size','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','119SDXada','99549XMheop','trim','validation','5593240mormUS','1483647bgUJFb','59224rGZivg','1110kKhiuc','2LoORBN','toFixed','622560TnkVtb','989254llhbme','\x20path\x20is\x20required.','isFile','File\x20is\x20not\x20a\x20regular\x20file:\x20'];a48_0x5d75=function(){return _0x37a6cf;};return a48_0x5d75();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x2da2ef){const _0x5ad6be=a48_0x5ddb;if(_0x2da2ef>=BYTES_PER_MB){const _0x326554=Math[_0x5ad6be(0x157)](_0x2da2ef/BYTES_PER_MB*0x64)/0x64;return _0x326554[_0x5ad6be(0x14f)](0x2)+_0x5ad6be(0x155);}return _0x2da2ef+'\x20B';}export function requireDevelopmentUploadFile(_0x55e877,_0x41d0b6){const _0x4dfba3=a48_0x5ddb,_0x18a52d=_0x55e877[_0x4dfba3(0x148)]();if(!_0x18a52d)throw CliErrors[_0x4dfba3(0x149)](_0x41d0b6+_0x4dfba3(0x152));if(!existsSync(_0x18a52d))throw CliErrors[_0x4dfba3(0x149)](_0x4dfba3(0x156)+_0x18a52d);const _0x559658=statSync(_0x18a52d);if(!_0x559658[_0x4dfba3(0x153)]())throw CliErrors[_0x4dfba3(0x149)](_0x4dfba3(0x154)+_0x18a52d);if(_0x559658['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x4dfba3(0x149)](_0x4dfba3(0x15a)+_0x18a52d+'\x20('+formatBytes(_0x559658[_0x4dfba3(0x159)])+')');return{'path':_0x18a52d,'size':_0x559658['size']};}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 跨命令复用的校验函数
3
+ */
4
+ /**
5
+ * 校验 App Code 格式
6
+ *
7
+ * 规则:非空、不超过 100 字符、仅允许字母/数字/连字符/下划线。
8
+ * 与 init/main.tsx 的规则保持一致。
9
+ */
10
+ export declare function validateAppcode(code: string): {
11
+ valid: boolean;
12
+ message?: string;
13
+ };
@@ -1 +1 @@
1
- function a49_0x150f(){const _0x56f811=['length','test','4766142zRFrJJ','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','trim','1062528akxkVT','26379QcxDcg','10344hyjcTN','23613bThJgD','726690OGRitX','348INfGPv','1558710cYxVoN','9504803OSWwWw','App\x20Code\x20cannot\x20be\x20empty'];a49_0x150f=function(){return _0x56f811;};return a49_0x150f();}(function(_0x241a04,_0x528878){const _0x4a1157=a49_0x354d,_0x421a79=_0x241a04();while(!![]){try{const _0x5be611=-parseInt(_0x4a1157(0xc7))/0x1+-parseInt(_0x4a1157(0xbd))/0x2+-parseInt(_0x4a1157(0xbc))/0x3*(parseInt(_0x4a1157(0xbe))/0x4)+-parseInt(_0x4a1157(0xbf))/0x5+parseInt(_0x4a1157(0xc4))/0x6+-parseInt(_0x4a1157(0xc0))/0x7+parseInt(_0x4a1157(0xbb))/0x8*(parseInt(_0x4a1157(0xba))/0x9);if(_0x5be611===_0x528878)break;else _0x421a79['push'](_0x421a79['shift']());}catch(_0x372c55){_0x421a79['push'](_0x421a79['shift']());}}}(a49_0x150f,0xc444f));function a49_0x354d(_0x5cd274,_0x45a55b){_0x5cd274=_0x5cd274-0xba;const _0x150f82=a49_0x150f();let _0x354dc8=_0x150f82[_0x5cd274];return _0x354dc8;}export function validateAppcode(_0x20a26a){const _0x4700a4=a49_0x354d,_0x58a49b=_0x20a26a[_0x4700a4(0xc6)]();if(!_0x58a49b)return{'valid':![],'message':_0x4700a4(0xc1)};if(_0x58a49b[_0x4700a4(0xc2)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x4700a4(0xc3)](_0x58a49b))return{'valid':![],'message':_0x4700a4(0xc5)};return{'valid':!![]};}
1
+ (function(_0x523a6b,_0x32c2fe){const _0x577dc9=a49_0x5206,_0x3246b1=_0x523a6b();while(!![]){try{const _0x474938=parseInt(_0x577dc9(0x1c4))/0x1+parseInt(_0x577dc9(0x1b7))/0x2+parseInt(_0x577dc9(0x1ba))/0x3+-parseInt(_0x577dc9(0x1b8))/0x4+parseInt(_0x577dc9(0x1c1))/0x5*(-parseInt(_0x577dc9(0x1bc))/0x6)+-parseInt(_0x577dc9(0x1c0))/0x7*(-parseInt(_0x577dc9(0x1b9))/0x8)+parseInt(_0x577dc9(0x1be))/0x9;if(_0x474938===_0x32c2fe)break;else _0x3246b1['push'](_0x3246b1['shift']());}catch(_0x3b384f){_0x3246b1['push'](_0x3246b1['shift']());}}}(a49_0x1b59,0xcb904));function a49_0x5206(_0x19afeb,_0x54a56d){_0x19afeb=_0x19afeb-0x1b7;const _0x1b591e=a49_0x1b59();let _0x520684=_0x1b591e[_0x19afeb];return _0x520684;}export function validateAppcode(_0xa01c03){const _0x1ad243=a49_0x5206,_0x4e90a6=_0xa01c03[_0x1ad243(0x1c3)]();if(!_0x4e90a6)return{'valid':![],'message':_0x1ad243(0x1bf)};if(_0x4e90a6[_0x1ad243(0x1c2)]>0x64)return{'valid':![],'message':_0x1ad243(0x1bd)};if(!/^[A-Za-z0-9_-]+$/[_0x1ad243(0x1c5)](_0x4e90a6))return{'valid':![],'message':_0x1ad243(0x1bb)};return{'valid':!![]};}function a49_0x1b59(){const _0x1b6a24=['4138512ewgfqg','6840840sDybiD','4324545NoDtse','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','12GFMqdf','App\x20Code\x20cannot\x20exceed\x20100\x20characters','2059938YQltnB','App\x20Code\x20cannot\x20be\x20empty','7LHrdrq','3116980hfIUFl','length','trim','222668xmczVU','test','734092QpKzUh'];a49_0x1b59=function(){return _0x1b6a24;};return a49_0x1b59();}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * rabetbase config get --key <key> — 读取配置项
3
+ */
4
+ import type { CommandDefinition } from "../../framework/types.js";
5
+ export declare const configGetDefinition: CommandDefinition;
@@ -1 +1 @@
1
- function a50_0x1087(_0xcfd28a,_0x51da95){_0xcfd28a=_0xcfd28a-0x11b;const _0x5c7292=a50_0x5c72();let _0x1087b2=_0x5c7292[_0xcfd28a];return _0x1087b2;}const a50_0x3cf459=a50_0x1087;(function(_0xebe486,_0x28a03d){const _0x722f28=a50_0x1087,_0x18fce9=_0xebe486();while(!![]){try{const _0x970dd9=parseInt(_0x722f28(0x121))/0x1*(-parseInt(_0x722f28(0x11d))/0x2)+parseInt(_0x722f28(0x11f))/0x3*(parseInt(_0x722f28(0x12c))/0x4)+parseInt(_0x722f28(0x12a))/0x5*(-parseInt(_0x722f28(0x130))/0x6)+-parseInt(_0x722f28(0x133))/0x7+parseInt(_0x722f28(0x125))/0x8*(parseInt(_0x722f28(0x126))/0x9)+-parseInt(_0x722f28(0x11e))/0xa*(parseInt(_0x722f28(0x131))/0xb)+parseInt(_0x722f28(0x123))/0xc;if(_0x970dd9===_0x28a03d)break;else _0x18fce9['push'](_0x18fce9['shift']());}catch(_0x1b740c){_0x18fce9['push'](_0x18fce9['shift']());}}}(a50_0x5c72,0x566f9));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x5798a7){const _0x1e2ffe=a50_0x1087,_0x5ad1c1=_0x5798a7['str']('key');if(!_0x5ad1c1)throw CliErrors[_0x1e2ffe(0x128)](_0x1e2ffe(0x129),_0x1e2ffe(0x122)+CLI_BIN_NAME+_0x1e2ffe(0x127));const _0x1094df=readConfig(),_0x1024da=_0x5ad1c1===_0x1e2ffe(0x124)?_0x1e2ffe(0x12e):_0x5ad1c1,_0x15715c=_0x1094df[_0x1024da];if(_0x15715c===undefined)throw CliErrors[_0x1e2ffe(0x128)](_0x1e2ffe(0x11c)+_0x5ad1c1);return{'ok':!![],'data':typeof _0x15715c===_0x1e2ffe(0x11b)?_0x15715c:{[_0x1024da]:_0x15715c},'message':typeof _0x15715c===_0x1e2ffe(0x11b)?undefined:String(_0x15715c)};}function a50_0x5c72(){const _0x3608f8=['9oBtWyb','\x20config\x20get\x20--key\x20<key>','validation','Missing\x20key.','48955mGTXll','config','4ssIHWb','get','appcode','string','66QeRbda','11bsuoBc','read','2130786MSPfzQ','object','Key\x20not\x20found:\x20','4114NqeKIq','1442810IHAqoT','1277391NinnGF','Get\x20a\x20config\x20value\x20by\x20key','27bPKMZb','Usage:\x20','1199904LtecFw','app','3521368phUEsZ'];a50_0x5c72=function(){return _0x3608f8;};return a50_0x5c72();}export const configGetDefinition={'service':a50_0x3cf459(0x12b),'command':a50_0x3cf459(0x12d),'description':a50_0x3cf459(0x120),'risk':a50_0x3cf459(0x132),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a50_0x3cf459(0x12f),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a50_0x2c9279=a50_0x341f;(function(_0x594977,_0x2037b8){const _0x45728b=a50_0x341f,_0x4c9f1a=_0x594977();while(!![]){try{const _0x1b2c06=-parseInt(_0x45728b(0x171))/0x1+-parseInt(_0x45728b(0x16a))/0x2*(-parseInt(_0x45728b(0x16b))/0x3)+parseInt(_0x45728b(0x165))/0x4*(-parseInt(_0x45728b(0x16e))/0x5)+-parseInt(_0x45728b(0x16d))/0x6+parseInt(_0x45728b(0x16f))/0x7+parseInt(_0x45728b(0x162))/0x8*(-parseInt(_0x45728b(0x163))/0x9)+parseInt(_0x45728b(0x170))/0xa*(parseInt(_0x45728b(0x173))/0xb);if(_0x1b2c06===_0x2037b8)break;else _0x4c9f1a['push'](_0x4c9f1a['shift']());}catch(_0x145c1a){_0x4c9f1a['push'](_0x4c9f1a['shift']());}}}(a50_0x47fd,0x85d88));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a50_0x341f(_0x331a11,_0x1d5186){_0x331a11=_0x331a11-0x15d;const _0x47fd1b=a50_0x47fd();let _0x341fb3=_0x47fd1b[_0x331a11];return _0x341fb3;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a50_0x47fd(){const _0x383782=['9iyYJPf','Key\x20not\x20found:\x20','4KwPoKO','key','config','Usage:\x20','read','494878MivGAn','6HIPbJB','string','3161958xgwHDj','892615cPwipA','4681362ynnSam','760910xozpfR','318078pDMdFz','get','143LlUjsT','object','str','validation','appcode','Get\x20a\x20config\x20value\x20by\x20key','4648008wtbwRI'];a50_0x47fd=function(){return _0x383782;};return a50_0x47fd();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x116356){const _0x1474fc=a50_0x341f,_0x40d4f4=_0x116356[_0x1474fc(0x15e)](_0x1474fc(0x166));if(!_0x40d4f4)throw CliErrors[_0x1474fc(0x15f)]('Missing\x20key.',_0x1474fc(0x168)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x24dcee=readConfig(),_0x3e772e=_0x40d4f4==='app'?_0x1474fc(0x160):_0x40d4f4,_0x5abb35=_0x24dcee[_0x3e772e];if(_0x5abb35===undefined)throw CliErrors[_0x1474fc(0x15f)](_0x1474fc(0x164)+_0x40d4f4);return{'ok':!![],'data':typeof _0x5abb35===_0x1474fc(0x15d)?_0x5abb35:{[_0x3e772e]:_0x5abb35},'message':typeof _0x5abb35===_0x1474fc(0x15d)?undefined:String(_0x5abb35)};}export const configGetDefinition={'service':a50_0x2c9279(0x167),'command':a50_0x2c9279(0x172),'description':a50_0x2c9279(0x161),'risk':a50_0x2c9279(0x169),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x2c9279(0x166),'type':a50_0x2c9279(0x16c),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * config 子命令 Declarative 定义统一导出
3
+ */
4
+ import type { CommandDefinition } from "../../framework/types.js";
5
+ export declare const configDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- function a51_0x50a5(_0xf10d9a,_0x5a138d){_0xf10d9a=_0xf10d9a-0xad;const _0x11703=a51_0x1170();let _0x50a566=_0x11703[_0xf10d9a];return _0x50a566;}(function(_0x92fb4b,_0x5cdd16){const _0x3fbfbc=a51_0x50a5,_0x4c1ca3=_0x92fb4b();while(!![]){try{const _0x4994ae=-parseInt(_0x3fbfbc(0xb3))/0x1+-parseInt(_0x3fbfbc(0xb0))/0x2+-parseInt(_0x3fbfbc(0xb1))/0x3+parseInt(_0x3fbfbc(0xb4))/0x4*(-parseInt(_0x3fbfbc(0xaf))/0x5)+-parseInt(_0x3fbfbc(0xb6))/0x6*(parseInt(_0x3fbfbc(0xb2))/0x7)+-parseInt(_0x3fbfbc(0xad))/0x8+parseInt(_0x3fbfbc(0xae))/0x9*(parseInt(_0x3fbfbc(0xb5))/0xa);if(_0x4994ae===_0x5cdd16)break;else _0x4c1ca3['push'](_0x4c1ca3['shift']());}catch(_0x1447d0){_0x4c1ca3['push'](_0x4c1ca3['shift']());}}}(a51_0x1170,0x6f8ce));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a51_0x1170(){const _0x10d1fe=['3159008FFfpOZ','7000839GAIEKd','5rsvzqy','297634Uvymoh','2132250GWaXfg','7JqWcuC','898069weMNSk','3551176jyGcok','50ovthhF','2352834MzzezL'];a51_0x1170=function(){return _0x10d1fe;};return a51_0x1170();}
1
+ (function(_0x44130a,_0x13c994){const _0x3b91dc=a51_0x26d8,_0x120d9e=_0x44130a();while(!![]){try{const _0x3ccd59=parseInt(_0x3b91dc(0x14a))/0x1+-parseInt(_0x3b91dc(0x14f))/0x2*(parseInt(_0x3b91dc(0x150))/0x3)+parseInt(_0x3b91dc(0x151))/0x4+-parseInt(_0x3b91dc(0x14b))/0x5*(-parseInt(_0x3b91dc(0x152))/0x6)+parseInt(_0x3b91dc(0x14e))/0x7+parseInt(_0x3b91dc(0x14c))/0x8+-parseInt(_0x3b91dc(0x14d))/0x9;if(_0x3ccd59===_0x13c994)break;else _0x120d9e['push'](_0x120d9e['shift']());}catch(_0x3c54aa){_0x120d9e['push'](_0x120d9e['shift']());}}}(a51_0x25d3,0x37394));function a51_0x25d3(){const _0x4898f5=['1803900lyaseF','18suCYoP','89300jAncDL','456965lZJplE','5744VunYIl','5408352uhHouM','413693tMcAfD','94294BhbGvh','3eecIRJ'];a51_0x25d3=function(){return _0x4898f5;};return a51_0x25d3();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a51_0x26d8(_0x12010f,_0x5325b6){_0x12010f=_0x12010f-0x14a;const _0x25d3c9=a51_0x25d3();let _0x26d807=_0x25d3c9[_0x12010f];return _0x26d807;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];