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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
  561. package/lib/commands/page/react/create.js +0 -1
  562. package/lib/commands/page/react/detail.js +0 -1
  563. package/lib/commands/page/react/list.js +0 -1
  564. package/lib/commands/page/react/publish.js +0 -1
  565. package/lib/commands/page/react/shared.js +0 -1
  566. package/lib/commands/page/react/syntax.js +0 -1
  567. package/lib/commands/page/react/template.js +0 -1
  568. package/lib/commands/page/react/update.js +0 -1
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const bffStatus: CommandDefinition;
@@ -1 +1 @@
1
- const a37_0x35db74=a37_0x2585;(function(_0x3d65c8,_0x20e235){const _0x3d854a=a37_0x2585,_0x6135f0=_0x3d65c8();while(!![]){try{const _0x99ff35=-parseInt(_0x3d854a(0x148))/0x1+parseInt(_0x3d854a(0x136))/0x2+parseInt(_0x3d854a(0x13e))/0x3*(-parseInt(_0x3d854a(0x146))/0x4)+-parseInt(_0x3d854a(0x14c))/0x5*(-parseInt(_0x3d854a(0x137))/0x6)+-parseInt(_0x3d854a(0x14f))/0x7+-parseInt(_0x3d854a(0x13b))/0x8*(-parseInt(_0x3d854a(0x14e))/0x9)+parseInt(_0x3d854a(0x13f))/0xa*(parseInt(_0x3d854a(0x14d))/0xb);if(_0x99ff35===_0x20e235)break;else _0x6135f0['push'](_0x6135f0['shift']());}catch(_0x3bbeee){_0x6135f0['push'](_0x6135f0['shift']());}}}(a37_0x2936,0x8385b));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_0x2936(){const _0x2f5302=['1413896ldXQBV','2547tKEWTl','1902166cIxuBz','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','push','All\x20BFF\x20scripts\x20are\x20in\x20sync.','remote','\x20remote-only','924524MdCpCS','18DVsYfX','apiDir','bool','scriptsRoot','8792XjYgsB','lockKey','functions','449457WMaJeA','60bnjbRD','bff','\x20added,\x20','filePath','status','\x20modified,\x20','read','12KriajB','appCode','508205ZQTvtQ','boolean','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','length','372700BWjLQN'];a37_0x2936=function(){return _0x2f5302;};return a37_0x2936();}import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a37_0x2585(_0x2849e9,_0x406d1b){_0x2849e9=_0x2849e9-0x131;const _0x29364a=a37_0x2936();let _0x2585d6=_0x29364a[_0x2849e9];return _0x2585d6;}export const bffStatus={'service':a37_0x35db74(0x140),'command':'status','description':a37_0x35db74(0x14a),'risk':a37_0x35db74(0x145),'flags':[{'name':a37_0x35db74(0x134),'type':a37_0x35db74(0x149),'description':a37_0x35db74(0x131)}],async 'execute'(_0x319cda){const _0x3c2959=a37_0x35db74,_0x1f1631=loadBffProjectConfig(_0x319cda['appCode']),_0x3e11b1=await readBffLockFile(_0x1f1631['lockFilePath']),{appLock:_0x1ed3da}=ensureLockScope(_0x3e11b1??createEmptyBffLock(),_0x319cda[_0x3c2959(0x147)],_0x1f1631[_0x3c2959(0x13a)],_0x3c2959(0x143)),_0x2dc850=await scanLocalBffFunctions(_0x1f1631),_0x15cf81=[],_0x2f3257=[],_0x490dc8=[];for(const _0x7e9290 of _0x2dc850){const _0x3b43c7=await computeFileHash(_0x7e9290[_0x3c2959(0x142)]),_0x58c253=_0x1ed3da['functions'][_0x7e9290['lockKey']];if(!_0x58c253)_0x15cf81[_0x3c2959(0x132)](_0x7e9290[_0x3c2959(0x13c)]);else _0x58c253['hash']!==_0x3b43c7?_0x2f3257['push'](_0x7e9290[_0x3c2959(0x13c)]):_0x490dc8[_0x3c2959(0x132)](_0x7e9290[_0x3c2959(0x13c)]);}const _0x1d8209=[];if(_0x319cda[_0x3c2959(0x139)]('remote')){const _0x26e283=loadAliasMap(_0x319cda[_0x3c2959(0x138)],undefined,resolveApiFilePath(_0x319cda[_0x3c2959(0x138)],_0x319cda[_0x3c2959(0x147)])),_0x1d9c69=new Map(_0x26e283['map'](_0x670ff4=>[_0x670ff4['datasetCode'],_0x670ff4['alias']])),[_0x4069fd,_0x3d93a3]=await Promise['all']([listBffScripts(_0x319cda[_0x3c2959(0x147)]),getBffScriptStatistics(_0x319cda[_0x3c2959(0x147)])]),_0x5a7a02=createHookLocationMap(_0x3d93a3),_0x398201=new Set(_0x2dc850['map'](_0x278d48=>_0x278d48[_0x3c2959(0x13c)]));for(const _0x103c3d of _0x4069fd){const _0x13528c=resolveRemoteScriptTarget(_0x1f1631,_0x103c3d,_0x5a7a02,_0x1ed3da[_0x3c2959(0x13d)],_0x1d9c69);_0x13528c&&!_0x398201['has'](_0x13528c[_0x3c2959(0x13c)])&&_0x1d8209['push'](_0x13528c[_0x3c2959(0x13c)]);}}const _0x6f8265=_0x15cf81[_0x3c2959(0x14b)]===0x0&&_0x2f3257[_0x3c2959(0x14b)]===0x0&&_0x1d8209['length']===0x0;return{'ok':!![],'data':{'added':_0x15cf81,'modified':_0x2f3257,'unchanged':_0x490dc8,'remoteOnly':_0x1d8209},'message':_0x6f8265?_0x3c2959(0x133):_0x15cf81[_0x3c2959(0x14b)]+_0x3c2959(0x141)+_0x2f3257[_0x3c2959(0x14b)]+_0x3c2959(0x144)+_0x490dc8[_0x3c2959(0x14b)]+'\x20unchanged'+(_0x1d8209[_0x3c2959(0x14b)]>0x0?',\x20'+_0x1d8209[_0x3c2959(0x14b)]+_0x3c2959(0x135):'')};}};
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_0x1960c7=a38_0x3534;(function(_0x4d6bab,_0x15810e){const _0x5584be=a38_0x3534,_0x1115c5=_0x4d6bab();while(!![]){try{const _0x1e3444=parseInt(_0x5584be(0x1da))/0x1*(-parseInt(_0x5584be(0x1e9))/0x2)+-parseInt(_0x5584be(0x1df))/0x3+parseInt(_0x5584be(0x1ea))/0x4+-parseInt(_0x5584be(0x1ec))/0x5+parseInt(_0x5584be(0x1e4))/0x6*(parseInt(_0x5584be(0x1dc))/0x7)+-parseInt(_0x5584be(0x1ef))/0x8*(-parseInt(_0x5584be(0x1de))/0x9)+parseInt(_0x5584be(0x1e7))/0xa;if(_0x1e3444===_0x15810e)break;else _0x1115c5['push'](_0x1115c5['shift']());}catch(_0x592b03){_0x1115c5['push'](_0x1115c5['shift']());}}}(a38_0x3024,0x41e03));function a38_0x3534(_0x543c5a,_0x3a1900){_0x543c5a=_0x543c5a-0x1d7;const _0x3024e9=a38_0x3024();let _0x353427=_0x3024e9[_0x543c5a];return _0x353427;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a38_0x1960c7(0x1dd),'description':a38_0x1960c7(0x1f0),'risk':a38_0x1960c7(0x1d8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1be428){const _0x171c96=a38_0x1960c7;logger['setLogPath'](process[_0x171c96(0x1f1)]()),logger['info'](_0x171c96(0x1e6),_0x171c96(0x1e3));const {NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE:_0x593f0f,RABETBASE_SKILL_SOURCE:_0x5d58e2,runNpxSkillsAddGlobal:_0x4450f0}=await import(_0x171c96(0x1db)),_0x1420d6=_0x1be428[_0x171c96(0x1e2)]?_0x171c96(0x1ee):_0x171c96(0x1e8);console[_0x171c96(0x1e0)](_0x171c96(0x1eb)+_0x593f0f+_0x171c96(0x1e5));const _0x28ba53=_0x4450f0(process[_0x171c96(0x1f1)](),_0x5d58e2,{'stdio':_0x1420d6});if(_0x28ba53[_0x171c96(0x1d9)])console[_0x171c96(0x1e0)](_0x171c96(0x1ed));else{if(_0x28ba53['ok'])console[_0x171c96(0x1e0)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors['apiError']('npx\x20skills\x20add\x20failed:\x20'+(_0x28ba53[_0x171c96(0x1e1)]||_0x171c96(0x1d7)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20'+_0x593f0f);}return{'ok':!![]};}}];function a38_0x3024(){const _0x77b301=['38eXxoLz','38580RNYLhJ','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(','1037870BCbsWn','Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','pipe','21832vCzfWp','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','cwd','unknown','write','skipped','18199IkkalU','../../skills/npx-skills-add.js','21oSpNPw','install','1557yCSZig','220596xLVuls','log','error','nonInteractive','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','23682gKrtwE',')...','cli-skill-install','4031110EBwrQw','inherit'];a38_0x3024=function(){return _0x77b301;};return a38_0x3024();}
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_0x5e80da=a39_0x1998;(function(_0x288495,_0x454783){const _0x56d203=a39_0x1998,_0x26f46d=_0x288495();while(!![]){try{const _0x264a54=-parseInt(_0x56d203(0x14b))/0x1*(-parseInt(_0x56d203(0x11e))/0x2)+parseInt(_0x56d203(0x11d))/0x3+-parseInt(_0x56d203(0x133))/0x4+-parseInt(_0x56d203(0x10f))/0x5+-parseInt(_0x56d203(0x118))/0x6+parseInt(_0x56d203(0x130))/0x7+-parseInt(_0x56d203(0x140))/0x8*(-parseInt(_0x56d203(0x147))/0x9);if(_0x264a54===_0x454783)break;else _0x26f46d['push'](_0x26f46d['shift']());}catch(_0x41732a){_0x26f46d['push'](_0x26f46d['shift']());}}}(a39_0x4846,0xe2316));import a39_0x20bacb from'chalk';import a39_0x1a6576 from'ora';import a39_0x4546d8 from'semver';import{execa}from'execa';function a39_0x4846(){const _0x75fbc6=['info','no-skills','11PZuPYf','boolean','\x20\x20Try\x20manually:\x20','valid','green','execPath','Install\x20a\x20specific\x20CLI\x20version','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','Update\x20failed','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','timeout','red','beta','Requested\x20version:\x20','trim','source','\x20cli-skill\x20install','string','update','8783430OSZaFz','entries','pipe','bool','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','...','filter','str','bun','1588818oSnVbu','slice','Current\x20version:\x20','skipped','log','4376670jlSDLl','188308JhNwmr','message','write','unknown','succeed','gray','Checking\x20CLI\x20Built-in\x20Skill...','Already\x20up\x20to\x20date\x20(v','validation','Update\x20available:\x20','npm','latest','yellow','length','Updated\x20to\x20v','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','run','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','7675710RbfOhD','map','flag','2766948nXHSUr','Version\x20comparison\x20failed','skills','Checking\x20for\x20updates...','fail','version','object','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','\x20install\x20-g\x20','Updating\x20via\x20','inherit','warn','@latest','16mrpGLL','toLowerCase','\x20→\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','cwd','nonInteractive','218691RwYyTl','https://registry.npmjs.org/-/package/'];a39_0x4846=function(){return _0x75fbc6;};return a39_0x4846();}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 _0xab1658=a39_0x1998;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xab1658(0x119)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x85eebb=a39_0x1998,_0x313730=process[_0x85eebb(0x150)][_0x85eebb(0x141)]();if(_0x313730['includes'](_0x85eebb(0x117)))return _0x85eebb(0x117);return _0x85eebb(0x128);}const updateFlags=[{'name':'beta','type':a39_0x5e80da(0x14c),'description':a39_0x5e80da(0x143),'default':![]},{'name':a39_0x5e80da(0x138),'type':'string','description':a39_0x5e80da(0x151)},{'name':a39_0x5e80da(0x14a),'type':'boolean','description':a39_0x5e80da(0x154),'default':![]},{'name':a39_0x5e80da(0x135),'type':a39_0x5e80da(0x14c),'description':a39_0x5e80da(0x12f),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x15f0bb){const _0xb7c21f=a39_0x5e80da;return _0x15f0bb[_0xb7c21f(0x116)](_0xb7c21f(0x138))[_0xb7c21f(0x159)]();}function shouldSkipCliSkill(_0x3c3ddb){const _0x41c27b=a39_0x5e80da;return _0x3c3ddb[_0x41c27b(0x112)](_0x41c27b(0x14a))||_0x3c3ddb[_0x41c27b(0x132)](_0x41c27b(0x135))===![];}async function validateUpdateFlags(_0x301a87){const _0x3d83f8=a39_0x5e80da,_0x5bbbfa=_0x301a87[_0x3d83f8(0x112)](_0x3d83f8(0x157)),_0x2c63fc=getRequestedVersion(_0x301a87);if(_0x5bbbfa&&_0x2c63fc)throw CliErrors[_0x3d83f8(0x126)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x2c63fc&&!a39_0x4546d8[_0x3d83f8(0x14e)](_0x2c63fc))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x2c63fc,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x2a3896=a39_0x5e80da;try{const _0x503b32=await fetch(_0x2a3896(0x148)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x2a3896(0x155)](0x2710)});if(!_0x503b32['ok'])return null;const _0x5dcb77=await _0x503b32['json']();if(!_0x5dcb77||typeof _0x5dcb77!==_0x2a3896(0x139))return null;return Object['fromEntries'](Object[_0x2a3896(0x110)](_0x5dcb77)[_0x2a3896(0x115)](([,_0x5f06c0])=>typeof _0x5f06c0===_0x2a3896(0x10d)&&_0x5f06c0['trim']()[_0x2a3896(0x12b)]>0x0)[_0x2a3896(0x131)](([_0x196a56,_0x1140fb])=>[_0x196a56,String(_0x1140fb)['trim']()]));}catch{return null;}}function a39_0x1998(_0x20af0e,_0x3de042){_0x20af0e=_0x20af0e-0x10b;const _0x48465c=a39_0x4846();let _0x19985b=_0x48465c[_0x20af0e];return _0x19985b;}async function fetchNpmDistTagVersion(_0x2b11c3){const _0x3fe0ae=await fetchNpmDistTags();return _0x3fe0ae?.[_0x2b11c3]??null;}async function fetchLatestVersion(){const _0x4d87fd=a39_0x5e80da;return fetchNpmDistTagVersion(_0x4d87fd(0x129));}async function resolveTargetVersion(_0x352f9a){const _0x1c4945=a39_0x5e80da,_0x1d9136=getRequestedVersion(_0x352f9a);if(_0x1d9136)return{'version':_0x1d9136,'source':_0x1c4945(0x138)};if(_0x352f9a['bool'](_0x1c4945(0x157))){const _0x3cd89f=await fetchNpmDistTagVersion(_0x1c4945(0x157));if(!_0x3cd89f)return null;return{'version':_0x3cd89f,'source':_0x1c4945(0x157)};}const _0x4805d2=await fetchLatestVersion();if(!_0x4805d2)return null;return{'version':_0x4805d2,'source':_0x1c4945(0x129)};}function shouldInstallTarget(_0x373b27,_0x288dc3){const _0x54a726=a39_0x5e80da;if(_0x288dc3['source']===_0x54a726(0x138)||_0x288dc3[_0x54a726(0x10b)]===_0x54a726(0x157))return!a39_0x4546d8['eq'](_0x373b27,_0x288dc3['version']);return a39_0x4546d8['lt'](_0x373b27,_0x288dc3['version']);}function getInstallPlanLabel(_0x1d2102,_0x5a7dbe){const _0x30a5b2=a39_0x5e80da;switch(_0x5a7dbe[_0x30a5b2(0x10b)]){case _0x30a5b2(0x157):return'Beta\x20version:\x20'+a39_0x20bacb[_0x30a5b2(0x12a)](_0x1d2102)+_0x30a5b2(0x142)+a39_0x20bacb['green'](_0x5a7dbe['version']);case _0x30a5b2(0x138):return _0x30a5b2(0x158)+a39_0x20bacb[_0x30a5b2(0x12a)](_0x1d2102)+_0x30a5b2(0x142)+a39_0x20bacb[_0x30a5b2(0x14f)](_0x5a7dbe['version']);case _0x30a5b2(0x129):default:return _0x30a5b2(0x127)+a39_0x20bacb[_0x30a5b2(0x12a)](_0x1d2102)+'\x20→\x20'+a39_0x20bacb[_0x30a5b2(0x14f)](_0x5a7dbe['version']);}}async function installCliSkill(_0x23ed2f){const _0x5e446c=a39_0x5e80da;console['log'](a39_0x20bacb[_0x5e446c(0x123)](_0x5e446c(0x124)));const _0x14f7df=runNpxSkillsAddGlobal(process[_0x5e446c(0x145)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x23ed2f?_0x5e446c(0x111):_0x5e446c(0x13d)});if(_0x14f7df[_0x5e446c(0x11b)]){console[_0x5e446c(0x11c)](a39_0x20bacb[_0x5e446c(0x123)](_0x5e446c(0x152)));return;}if(_0x14f7df['ok']){console[_0x5e446c(0x11c)](a39_0x20bacb['gray']('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.'));return;}console[_0x5e446c(0x13e)](a39_0x20bacb[_0x5e446c(0x12a)](_0x5e446c(0x144)+(_0x14f7df['error']||_0x5e446c(0x121)))),console['log'](a39_0x20bacb[_0x5e446c(0x123)]('\x20\x20Run\x20manually:\x20'+CLI_BIN_NAME+_0x5e446c(0x10c)));}async function execute(_0x4b4ce9){const _0x5267b1=a39_0x5e80da;await validateUpdateFlags(_0x4b4ce9);const _0x8c0980=getCurrentVersion();console[_0x5267b1(0x11c)](_0x5267b1(0x11a)+_0x8c0980);const _0x1ab517=a39_0x1a6576(_0x5267b1(0x136))['start'](),_0x5671f1=await resolveTargetVersion(_0x4b4ce9);if(!_0x5671f1){const _0x4f4fb6=_0x4b4ce9['bool'](_0x5267b1(0x157))?_0x5267b1(0x13a):_0x5267b1(0x113);return _0x1ab517['fail'](_0x4f4fb6),console[_0x5267b1(0x11c)](a39_0x20bacb[_0x5267b1(0x123)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x5267b1(0x13f))),{'ok':![],'message':_0x4f4fb6};}const _0x1e60de=a39_0x4546d8[_0x5267b1(0x14e)](VERSION),_0x103de3=a39_0x4546d8[_0x5267b1(0x14e)](_0x5671f1[_0x5267b1(0x138)]);if(!_0x1e60de||!_0x103de3)return _0x1ab517[_0x5267b1(0x137)](_0x5267b1(0x134)),{'ok':![],'message':_0x5267b1(0x134)};if(!shouldInstallTarget(_0x1e60de,_0x5671f1)){const _0x2af3df=_0x5671f1['source']===_0x5267b1(0x138)?'Already\x20on\x20requested\x20version\x20(v'+_0x5671f1[_0x5267b1(0x138)]+')':_0x5267b1(0x125)+_0x5671f1[_0x5267b1(0x138)]+')';return _0x1ab517[_0x5267b1(0x122)](_0x2af3df),shouldSkipCliSkill(_0x4b4ce9)?console['log'](a39_0x20bacb[_0x5267b1(0x123)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).')):await installCliSkill(_0x4b4ce9[_0x5267b1(0x146)]),{'ok':!![]};}_0x1ab517[_0x5267b1(0x149)](getInstallPlanLabel(_0x8c0980,_0x5671f1));const _0x4052e1=detectPackageManager(),_0x5e5a71=_0x4052e1==='npm'?resolveNpmBin(_0x5267b1(0x128)):_0x4052e1,_0x5d2099=a39_0x1a6576(_0x5267b1(0x13c)+_0x4052e1+_0x5267b1(0x114))['start']();try{return await execa(_0x5e5a71,['install','-g',NPM_PACKAGE_NAME+'@'+_0x5671f1['version']],{'stdio':_0x5267b1(0x111)}),_0x5d2099[_0x5267b1(0x122)](_0x5267b1(0x12c)+_0x5671f1[_0x5267b1(0x138)]),console['log'](a39_0x20bacb['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipCliSkill(_0x4b4ce9)?console[_0x5267b1(0x11c)](a39_0x20bacb['gray']('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).')):await installCliSkill(_0x4b4ce9[_0x5267b1(0x146)]),{'ok':!![]};}catch(_0x3da037){return _0x5d2099[_0x5267b1(0x137)](_0x5267b1(0x153)),console['error'](a39_0x20bacb[_0x5267b1(0x156)]('\x20\x20'+_0x3da037[_0x5267b1(0x11f)])),console[_0x5267b1(0x11c)](a39_0x20bacb['gray'](_0x5267b1(0x14d)+_0x4052e1+_0x5267b1(0x13b)+NPM_PACKAGE_NAME+'@'+_0x5671f1[_0x5267b1(0x138)])),{'ok':![],'message':_0x3da037['message']};}}export const updateDefinition={'service':a39_0x5e80da(0x10e),'command':a39_0x5e80da(0x12e),'description':a39_0x5e80da(0x12d),'risk':a39_0x5e80da(0x120),'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(_0x4bcd52,_0x3c9d29){const _0xde0fd=a40_0x4fb3,_0x1474ec=_0x4bcd52();while(!![]){try{const _0x1ee7a6=-parseInt(_0xde0fd(0x1a3))/0x1*(-parseInt(_0xde0fd(0x19e))/0x2)+parseInt(_0xde0fd(0x1a0))/0x3+-parseInt(_0xde0fd(0x19d))/0x4+-parseInt(_0xde0fd(0x1a1))/0x5+parseInt(_0xde0fd(0x19f))/0x6*(-parseInt(_0xde0fd(0x19b))/0x7)+parseInt(_0xde0fd(0x19c))/0x8+-parseInt(_0xde0fd(0x1a2))/0x9*(-parseInt(_0xde0fd(0x1a4))/0xa);if(_0x1ee7a6===_0x3c9d29)break;else _0x1474ec['push'](_0x1474ec['shift']());}catch(_0x4d23a7){_0x1474ec['push'](_0x1474ec['shift']());}}}(a40_0xf4f4,0x1a5a6));function a40_0x4fb3(_0x34cd6b,_0x1b2b83){_0x34cd6b=_0x34cd6b-0x19b;const _0xf4f4ef=a40_0xf4f4();let _0x4fb3b3=_0xf4f4ef[_0x34cd6b];return _0x4fb3b3;}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a40_0xf4f4(){const _0x213d65=['1SMhEPs','2110rTZcOe','7imjyHz','188832pLiqLz','758184BjQbiS','250702XyyBzP','669126GdiPSK','471159RGyxXR','1069605GlTINi','13518cdqnbD'];a40_0xf4f4=function(){return _0x213d65;};return a40_0xf4f4();}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
- const a41_0x21c806=a41_0x1301;(function(_0x4ef967,_0x5c509b){const _0x29a21b=a41_0x1301,_0x21ef0f=_0x4ef967();while(!![]){try{const _0xaf9a5e=parseInt(_0x29a21b(0x1ae))/0x1*(parseInt(_0x29a21b(0x1af))/0x2)+-parseInt(_0x29a21b(0x1b7))/0x3+parseInt(_0x29a21b(0x1ac))/0x4+-parseInt(_0x29a21b(0x1a1))/0x5+-parseInt(_0x29a21b(0x1a5))/0x6*(parseInt(_0x29a21b(0x1b8))/0x7)+-parseInt(_0x29a21b(0x1a7))/0x8*(-parseInt(_0x29a21b(0x1aa))/0x9)+-parseInt(_0x29a21b(0x1a2))/0xa*(-parseInt(_0x29a21b(0x1b1))/0xb);if(_0xaf9a5e===_0x5c509b)break;else _0x21ef0f['push'](_0x21ef0f['shift']());}catch(_0x3a5040){_0x21ef0f['push'](_0x21ef0f['shift']());}}}(a41_0x48b8,0x294a2));function a41_0x1301(_0x5af485,_0x125814){_0x5af485=_0x5af485-0x1a0;const _0x48b814=a41_0x48b8();let _0x130156=_0x48b814[_0x5af485];return _0x130156;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a41_0x48b8(){const _0x3f1f65=['codegen','read','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','101931qbIPwL','196ezfrGs','bool','530620cVUJkd','2080020ayWXTK','code','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','65862WLvHuG','boolean','30712nwojUK','operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','27jatozt','name','57932GCoqsn','tableName','6983oaQobC','50qvvwHU','str','22jWhPFO','appCode','skip-imports'];a41_0x48b8=function(){return _0x3f1f65;};return a41_0x48b8();}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a41_0x21c806(0x1b4),'command':'sdk','description':a41_0x21c806(0x1a4),'risk':a41_0x21c806(0x1b5),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a41_0x21c806(0x1a9)},{'name':'operation','type':'string','required':!![],'description':a41_0x21c806(0x1b6)},{'name':a41_0x21c806(0x1b3),'type':a41_0x21c806(0x1a6),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x4b3c4c){const _0x87d726=a41_0x21c806,{dataset:_0x794790,operation:_0x2c1bab}=await getOperationDetail(_0x4b3c4c[_0x87d726(0x1b2)],_0x4b3c4c['str'](_0x87d726(0x1a3)),_0x4b3c4c[_0x87d726(0x1b0)](_0x87d726(0x1a8))),_0x87f1ff=generateSdkCode(_0x794790,_0x2c1bab,{'includeImports':!_0x4b3c4c[_0x87d726(0x1a0)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x794790[_0x87d726(0x1ab)],'code':_0x794790[_0x87d726(0x1a3)],'tableName':_0x794790[_0x87d726(0x1ad)]},'operation':_0x4b3c4c['str']('operation'),'code':_0x87f1ff}};}};
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
- const a42_0x5374a7=a42_0xcfb0;(function(_0x326b60,_0x431f91){const _0x17341a=a42_0xcfb0,_0x1335ff=_0x326b60();while(!![]){try{const _0x4d5ab2=-parseInt(_0x17341a(0x1c8))/0x1+parseInt(_0x17341a(0x1c1))/0x2*(parseInt(_0x17341a(0x1b7))/0x3)+-parseInt(_0x17341a(0x1c5))/0x4*(parseInt(_0x17341a(0x1be))/0x5)+-parseInt(_0x17341a(0x1ba))/0x6+parseInt(_0x17341a(0x1cb))/0x7+parseInt(_0x17341a(0x1cc))/0x8+parseInt(_0x17341a(0x1bd))/0x9;if(_0x4d5ab2===_0x431f91)break;else _0x1335ff['push'](_0x1335ff['shift']());}catch(_0x4ffb76){_0x1335ff['push'](_0x1335ff['shift']());}}}(a42_0x2e84,0x26585));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a42_0xcfb0(_0x55ee3f,_0x207a8d){_0x55ee3f=_0x55ee3f-0x1b7;const _0x2e849c=a42_0x2e84();let _0xcfb0a0=_0x2e849c[_0x55ee3f];return _0xcfb0a0;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a42_0x2e84(){const _0x39e65c=['bool','2QNZvrZ','string','target','sqlName','268012GHiDiA','sql','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','179146aydEHo','appCode','boolean','2171057YwAFJU','540992qwZYkD','807273Nteuau','sdk','no-imports','1026612eLYrzL','codegen','read','553068eAvBco','15wdyCtJ','Omit\x20import\x20statements\x20from\x20generated\x20code'];a42_0x2e84=function(){return _0x39e65c;};return a42_0x2e84();}export const codegenSql={'service':a42_0x5374a7(0x1bb),'command':a42_0x5374a7(0x1c6),'description':a42_0x5374a7(0x1c7),'risk':a42_0x5374a7(0x1bc),'flags':[SQLCODE_FLAG,{'name':a42_0x5374a7(0x1c3),'type':a42_0x5374a7(0x1c2),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':'sdk','enum':['sdk','bff']},{'name':a42_0x5374a7(0x1b9),'type':a42_0x5374a7(0x1ca),'description':a42_0x5374a7(0x1bf)}],async 'execute'(_0x41efbc){const _0x209ab0=a42_0x5374a7,_0xf6cf1c=await getSqlQueryInfo(_0x41efbc[_0x209ab0(0x1c9)],_0x41efbc['str']('sqlcode')),_0x431807=_0x41efbc['str']('target')||_0x209ab0(0x1b8),_0x2bb061=generateSqlCodeTemplate(_0xf6cf1c,{'target':_0x431807,'includeImports':!_0x41efbc[_0x209ab0(0x1c0)](_0x209ab0(0x1b9))});return{'ok':!![],'data':{'sqlCode':_0xf6cf1c['sqlCode'],'sqlName':_0xf6cf1c[_0x209ab0(0x1c4)],'target':_0x431807,'code':_0x2bb061}};}};
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(_0x4a7b4c,_0x24f73d){const _0x11e0ea=a43_0x373c,_0x5a67ae=_0x4a7b4c();while(!![]){try{const _0x4f40c2=parseInt(_0x11e0ea(0xd7))/0x1*(-parseInt(_0x11e0ea(0xcf))/0x2)+parseInt(_0x11e0ea(0xe4))/0x3*(parseInt(_0x11e0ea(0xea))/0x4)+-parseInt(_0x11e0ea(0xd1))/0x5+-parseInt(_0x11e0ea(0xda))/0x6*(-parseInt(_0x11e0ea(0xc9))/0x7)+-parseInt(_0x11e0ea(0xe6))/0x8*(parseInt(_0x11e0ea(0xe1))/0x9)+parseInt(_0x11e0ea(0xbe))/0xa*(parseInt(_0x11e0ea(0xec))/0xb)+parseInt(_0x11e0ea(0xe3))/0xc;if(_0x4f40c2===_0x24f73d)break;else _0x5a67ae['push'](_0x5a67ae['shift']());}catch(_0x4139d3){_0x5a67ae['push'](_0x5a67ae['shift']());}}}(a43_0x2f14,0xf3c5d));import{CliErrors}from'../../errors.js';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';function a43_0x2f14(){const _0x3ef34e=['4191543BoSRKY','apps','15226284SHHNIg','5837559LHlAlW','defaultApp','24YiCPaQ','bool','App\x20\x22','appcode','4xnpJdN','length','165SZiIdv','342170NTzcBZ','\x20<name>\x20[--global]','inherit','\x20Default\x20app\x20changed\x20to\x20\x22','\x20<name>\x20--appcode\x20<code>','projectConfig','args','\x22\x20not\x20found.','both','global','Use\x20global\x20config\x20scope','36631GQUoGy','\x20Set\x20as\x20default\x20app.','globalConfig','project','object','validation','2HNUqTB','\x20app\x20\x22','7468710rMBFzu','Missing\x20app\x20name.','str','\x22\x20still\x20defined\x20in\x20','\x22\x20(appcode:\x20','Added','1240993zZidcT','keys','\x20config.','1608GVqlRY','boolean','\x20Note:\x20app\x20\x22','Usage:\x20','Updated','Removed\x20app\x20\x22','\x20<name>'];a43_0x2f14=function(){return _0x3ef34e;};return a43_0x2f14();}export function buildAppAddFlags(){const _0x257671=a43_0x373c;return[{'name':_0x257671(0xe9),'type':'string','description':'App\x20code','required':!![]},{'name':_0x257671(0xc7),'type':'boolean','description':_0x257671(0xc8),'default':![]},...getAppProfileFlagDefs()];}function a43_0x373c(_0xad0a0d,_0x468199){_0xad0a0d=_0xad0a0d-0xbe;const _0x2f147c=a43_0x2f14();let _0x373c47=_0x2f147c[_0xad0a0d];return _0x373c47;}export function buildAppRemoveFlags(){const _0x182978=a43_0x373c;return[{'name':_0x182978(0xc7),'type':_0x182978(0xdb),'description':'Use\x20global\x20config\x20scope','default':![]}];}export async function validateAppName(_0x26a861,_0x7fd2ae){const _0x54b63b=a43_0x373c,_0x2ea94b=_0x26a861[_0x54b63b(0xc4)][0x0]?.['trim']();if(!_0x2ea94b)throw CliErrors[_0x54b63b(0xce)](_0x54b63b(0xd2),_0x54b63b(0xdd)+CLI_BIN_NAME+'\x20'+_0x7fd2ae+_0x54b63b(0xe0));}export async function runAppAdd(_0x1cfe57,_0x15bfa9){const _0x40449d=a43_0x373c,_0x47faea=_0x1cfe57[_0x40449d(0xc4)][0x0]?.['trim']();if(!_0x47faea)throw CliErrors[_0x40449d(0xce)](_0x40449d(0xd2),_0x40449d(0xdd)+CLI_BIN_NAME+'\x20'+_0x15bfa9+_0x40449d(0xc2));const _0x575407=_0x1cfe57[_0x40449d(0xd3)]('appcode');if(!_0x575407)throw CliErrors['flagMissing'](_0x40449d(0xe9),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x15bfa9+_0x40449d(0xc2));const _0x211959={'global':_0x1cfe57[_0x40449d(0xe7)](_0x40449d(0xc7))},_0x482206=readConfig(_0x211959);if(!_0x482206[_0x40449d(0xe2)])_0x482206['apps']={};const _0x698921={'appcode':_0x575407,...collectAppProfileOverrides(_0x56455c=>_0x1cfe57[_0x40449d(0xd3)](_0x56455c))},_0x1b35e3=_0x482206['apps'],_0x51c966=!!_0x1b35e3[_0x47faea];_0x1b35e3[_0x47faea]=_0x698921;if(!_0x482206['defaultApp'])_0x482206['defaultApp']=_0x47faea;writeConfig(_0x482206,_0x211959);const _0x11e51e=!_0x51c966&&_0x482206['defaultApp']===_0x47faea?_0x40449d(0xca):'',_0x8a6b97=(_0x51c966?_0x40449d(0xde):_0x40449d(0xd6))+_0x40449d(0xd0)+_0x47faea+_0x40449d(0xd5)+_0x575407+')'+scopeLabel(_0x211959)+'.'+_0x11e51e;return{'ok':!![],'message':_0x8a6b97};}export async function runAppRemove(_0x1bcd95,_0x24abd2){const _0x54a271=a43_0x373c,_0x2e6f8e=_0x1bcd95[_0x54a271(0xc4)][0x0]?.['trim']();if(!_0x2e6f8e)throw CliErrors['validation'](_0x54a271(0xd2),_0x54a271(0xdd)+CLI_BIN_NAME+'\x20'+_0x24abd2+_0x54a271(0xbf));const _0x20b825=_0x1bcd95[_0x54a271(0xe7)](_0x54a271(0xc7)),{config:_0x5acd17,layers:_0xc552ab}=readRawConfigWithLayers(),_0x4d6f56=_0x5acd17[_0x54a271(0xe2)]??{};if(!_0x4d6f56[_0x2e6f8e])throw CliErrors[_0x54a271(0xce)](_0x54a271(0xe8)+_0x2e6f8e+_0x54a271(0xc5));const _0x3c4c42=_0xc552ab[_0x54a271(0xcb)][_0x54a271(0xe2)]&&typeof _0xc552ab['globalConfig'][_0x54a271(0xe2)]===_0x54a271(0xcd)?_0xc552ab['globalConfig'][_0x54a271(0xe2)]:{},_0x15b636=_0xc552ab[_0x54a271(0xc3)]['apps']&&typeof _0xc552ab['projectConfig'][_0x54a271(0xe2)]===_0x54a271(0xcd)?_0xc552ab['projectConfig'][_0x54a271(0xe2)]:{},_0x4989f9=appDefinedIn(_0x2e6f8e,_0x3c4c42,_0x15b636,_0xc552ab[_0x54a271(0xc3)][_0x54a271(0xc0)]===![]),_0x3b3399=resolveAppScopeForWrite(_0x2e6f8e,_0x20b825,_0xc552ab),_0x2dd0a7={'global':_0x3b3399===_0x54a271(0xc7)},_0x550b46=readConfig(_0x2dd0a7),_0x36e397=_0x550b46[_0x54a271(0xe2)];if(!_0x36e397||!_0x36e397[_0x2e6f8e])throw CliErrors[_0x54a271(0xce)](_0x54a271(0xe8)+_0x2e6f8e+_0x54a271(0xc5));delete _0x36e397[_0x2e6f8e];let _0x47f04f='';if(_0x550b46[_0x54a271(0xe5)]===_0x2e6f8e){const _0x31bb5c=Object['keys'](_0x36e397);_0x550b46[_0x54a271(0xe5)]=_0x31bb5c[_0x54a271(0xeb)]>0x0?_0x31bb5c[0x0]:undefined,_0x550b46[_0x54a271(0xe5)]?_0x47f04f=_0x54a271(0xc1)+_0x550b46[_0x54a271(0xe5)]+'\x22.':delete _0x550b46[_0x54a271(0xe5)];}Object[_0x54a271(0xd8)](_0x36e397)['length']===0x0&&(delete _0x550b46[_0x54a271(0xe2)],delete _0x550b46[_0x54a271(0xe5)]);writeConfig(_0x550b46,_0x2dd0a7);const _0xf99f01=_0x4989f9===_0x54a271(0xc6)?_0x54a271(0xdc)+_0x2e6f8e+_0x54a271(0xd4)+(_0x3b3399===_0x54a271(0xcc)?_0x54a271(0xc7):'project')+_0x54a271(0xd9):'';return{'ok':!![],'message':_0x54a271(0xdf)+_0x2e6f8e+'\x22'+scopeLabel(_0x2dd0a7)+'.'+_0x47f04f+_0xf99f01};}
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(_0x2a18a4,_0x2c2a4e){const _0x1f7449=a44_0x230b,_0x1169b6=_0x2a18a4();while(!![]){try{const _0x51a48f=parseInt(_0x1f7449(0x16d))/0x1+-parseInt(_0x1f7449(0x162))/0x2*(parseInt(_0x1f7449(0x16a))/0x3)+parseInt(_0x1f7449(0x161))/0x4*(-parseInt(_0x1f7449(0x17f))/0x5)+parseInt(_0x1f7449(0x169))/0x6+parseInt(_0x1f7449(0x170))/0x7*(-parseInt(_0x1f7449(0x180))/0x8)+parseInt(_0x1f7449(0x15e))/0x9+-parseInt(_0x1f7449(0x16c))/0xa*(parseInt(_0x1f7449(0x17b))/0xb);if(_0x51a48f===_0x2c2a4e)break;else _0x1169b6['push'](_0x1169b6['shift']());}catch(_0x12b7b9){_0x1169b6['push'](_0x1169b6['shift']());}}}(a44_0xf749,0x67b88));function a44_0xf749(){const _0x466d21=['cyan','无法获取远程应用列表,请手动输入。','\x20\x20(','\x0a无法获取远程应用列表,请手动输入。','4806090yteKEs','appName','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','24008jWjyld','10VoCTGB','message','正在获取可用应用列表...','skip','length','App\x20Code:','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','4474728adhdpH','83217fkVtWy','trim','136540atKpkw','776247pwGJUq','find','gray','1128302TNvqRc','Invalid\x20App\x20Code','map','custom','获取到\x20','includes','请输入\x20App\x20Code:','appCode','manual','\x0a未找到可用应用。','✎\x20自定义输入\x20appcode','330BQFhAv','(跳过,稍后配置)','yellow','未找到可用应用。','365bUSnJs','32prxvHa'];a44_0xf749=function(){return _0x466d21;};return a44_0xf749();}import{input,checkbox,select}from'@inquirer/prompts';import a44_0x5f3146 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 _0x1b5a3c=a44_0x230b,_0x5a0546=await input({'message':_0x1b5a3c(0x176),'validate':_0x5d5fa9=>{const _0x4db07c=_0x1b5a3c,_0xb6588b=validateAppcode(_0x5d5fa9[_0x4db07c(0x16b)]());return _0xb6588b['valid']||_0xb6588b[_0x4db07c(0x163)]||_0x4db07c(0x171);}});return _0x5a0546['trim']();}export async function promptAppSelection(_0x354654){const _0xe65608=a44_0x230b,_0x1ac901=[{'name':a44_0x5f3146[_0xe65608(0x17d)](_0xe65608(0x17a)),'value':-0x1},..._0x354654[_0xe65608(0x172)]((_0x5416e0,_0xfe97cf)=>({'name':_0x5416e0['appName']+'\x20\x20'+a44_0x5f3146['gray']('('+_0x5416e0[_0xe65608(0x177)]+')'),'value':_0xfe97cf}))],_0x3b3578=await checkbox({'message':_0xe65608(0x174)+a44_0x5f3146[_0xe65608(0x181)](_0x354654[_0xe65608(0x166)])+_0xe65608(0x168),'choices':_0x1ac901,'loop':![]});if(_0x3b3578[_0xe65608(0x175)](-0x1))return _0xe65608(0x173);if(_0x3b3578['length']===0x0)return'custom';return _0x3b3578['map'](_0x1f51ac=>_0x354654[_0x1f51ac]);}export async function promptSingleAppSelection(_0x48627f){const _0x58152e=a44_0x230b,_0x344bb9=[{'name':a44_0x5f3146['gray'](_0x58152e(0x160)),'value':'skip'},{'name':a44_0x5f3146['yellow'](_0x58152e(0x17a)),'value':_0x58152e(0x173)},..._0x48627f[_0x58152e(0x172)](_0xceb58d=>({'name':_0xceb58d[_0x58152e(0x15f)]+'\x20\x20'+a44_0x5f3146['gray']('('+_0xceb58d[_0x58152e(0x177)]+')'),'value':_0xceb58d[_0x58152e(0x177)]}))],_0x251ddf=await select({'message':'请选择要绑定的应用:','choices':_0x344bb9});if(_0x251ddf==='skip')return'skip';if(_0x251ddf==='custom')return _0x58152e(0x173);return _0x48627f[_0x58152e(0x16e)](_0x3fd2c4=>_0x3fd2c4['appCode']===_0x251ddf);}export async function selectSingleAppcode(_0x3cff63){const _0x476c7b=a44_0x230b;if(!_0x3cff63)return writeCliSideChannelLine(a44_0x5f3146[_0x476c7b(0x16f)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();writeCliSideChannelLine(_0x476c7b(0x164));let _0x15bb3f;try{_0x15bb3f=await withActiveCookie(_0x3cff63,()=>listRemoteApps());}catch(_0x3de2d9){writeCliSideChannelLine(a44_0x5f3146[_0x476c7b(0x17d)](_0x476c7b(0x15b)));if(_0x3de2d9 instanceof Error)writeCliSideChannelLine(a44_0x5f3146[_0x476c7b(0x16f)](_0x476c7b(0x15c)+_0x3de2d9[_0x476c7b(0x163)]+')'));return _fallbackOrSkip();}if(_0x15bb3f[_0x476c7b(0x166)]===0x0)return writeCliSideChannelLine(a44_0x5f3146['yellow'](_0x476c7b(0x17e))),_fallbackOrSkip();const _0x2601b7=await promptSingleAppSelection(_0x15bb3f);if(_0x2601b7===_0x476c7b(0x165))return'';if(_0x2601b7===_0x476c7b(0x173))return promptCustomAppcode();return _0x2601b7['appCode'];}function a44_0x230b(_0x500819,_0x12f61e){_0x500819=_0x500819-0x15b;const _0xf749df=a44_0xf749();let _0x230b0c=_0xf749df[_0x500819];return _0x230b0c;}export async function selectMultipleApps(_0x448a9f){const _0x55b88d=a44_0x230b;writeCliSideChannelLine(_0x55b88d(0x164));let _0x1b09dd;try{_0x1b09dd=await withActiveCookie(_0x448a9f,()=>listRemoteApps());}catch(_0x172919){writeCliSideChannelLine(_0x55b88d(0x15d));if(_0x172919 instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x172919[_0x55b88d(0x163)]+')');return'custom';}if(_0x1b09dd['length']===0x0)return writeCliSideChannelLine(_0x55b88d(0x179)),_0x55b88d(0x173);return promptAppSelection(_0x1b09dd);}async function _fallbackOrSkip(){const _0x1cae1f=a44_0x230b,_0x2256c9=await select({'message':_0x1cae1f(0x167),'choices':[{'name':a44_0x5f3146[_0x1cae1f(0x16f)](_0x1cae1f(0x17c)),'value':'skip'},{'name':a44_0x5f3146['yellow']('✎\x20手动输入'),'value':_0x1cae1f(0x178)}]});if(_0x2256c9==='skip')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_0x54cf90=a45_0x3415;(function(_0x535630,_0x412dfe){const _0x117130=a45_0x3415,_0x30ec00=_0x535630();while(!![]){try{const _0x268610=-parseInt(_0x117130(0x1cb))/0x1*(-parseInt(_0x117130(0x1b6))/0x2)+parseInt(_0x117130(0x1b0))/0x3+parseInt(_0x117130(0x1bb))/0x4+-parseInt(_0x117130(0x1c2))/0x5*(parseInt(_0x117130(0x1c9))/0x6)+-parseInt(_0x117130(0x1c8))/0x7*(parseInt(_0x117130(0x1be))/0x8)+parseInt(_0x117130(0x1b4))/0x9+-parseInt(_0x117130(0x1ca))/0xa;if(_0x268610===_0x412dfe)break;else _0x30ec00['push'](_0x30ec00['shift']());}catch(_0x3a4dba){_0x30ec00['push'](_0x30ec00['shift']());}}}(a45_0x4450,0x7964b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a45_0x3415(_0x36bc8a,_0x4dc860){_0x36bc8a=_0x36bc8a-0x1ad;const _0x445032=a45_0x4450();let _0x3415ee=_0x445032[_0x36bc8a];return _0x3415ee;}const TERMINAL_STATUSES=new Set([a45_0x54cf90(0x1bc),a45_0x54cf90(0x1cc)]),NON_TERMINAL_STATUSES=new Set([a45_0x54cf90(0x1b3),'PROCESSING']);export function normalizeAsyncTask(_0x49e605){const _0x26c4c3=a45_0x54cf90,_0x4bfdf1=typeof _0x49e605?.[_0x26c4c3(0x1c1)]===_0x26c4c3(0x1cd)?_0x49e605['taskId']['trim']():'';if(!_0x4bfdf1)throw CliErrors[_0x26c4c3(0x1c5)](_0x26c4c3(0x1c7));const _0x3d54ec=typeof _0x49e605[_0x26c4c3(0x1b8)]===_0x26c4c3(0x1cd)?_0x49e605[_0x26c4c3(0x1b8)]['trim']()[_0x26c4c3(0x1c0)]():'';if(!_0x3d54ec)throw CliErrors[_0x26c4c3(0x1c5)](_0x26c4c3(0x1b5)+_0x4bfdf1+_0x26c4c3(0x1b7));return{'taskId':_0x4bfdf1,'status':_0x3d54ec,'errorMessage':typeof _0x49e605['errorMessage']===_0x26c4c3(0x1cd)&&_0x49e605[_0x26c4c3(0x1ae)][_0x26c4c3(0x1c3)]()?_0x49e605['errorMessage'][_0x26c4c3(0x1c3)]():null,'isTerminal':TERMINAL_STATUSES[_0x26c4c3(0x1ad)](_0x3d54ec),'knownStatus':TERMINAL_STATUSES[_0x26c4c3(0x1ad)](_0x3d54ec)||NON_TERMINAL_STATUSES[_0x26c4c3(0x1ad)](_0x3d54ec)};}export function buildAsyncTaskStatusCommand(_0x1c9bb0,_0xf53638){const _0x4e2652=a45_0x54cf90;return CLI_BIN_NAME+_0x4e2652(0x1b2)+quoteShellArg(_0x1c9bb0)+_0x4e2652(0x1bd)+quoteShellArg(_0xf53638)+_0x4e2652(0x1c4);}export function asyncTaskMessage(_0x3cedb9){const _0x3f9820=a45_0x54cf90;switch(_0x3cedb9['status']){case _0x3f9820(0x1b3):return'Task\x20'+_0x3cedb9['taskId']+'\x20is\x20pending.';case _0x3f9820(0x1bf):return'Task\x20'+_0x3cedb9[_0x3f9820(0x1c1)]+'\x20is\x20processing.';case _0x3f9820(0x1bc):return'Task\x20'+_0x3cedb9[_0x3f9820(0x1c1)]+_0x3f9820(0x1c6);case'FAILED':return _0x3cedb9['errorMessage']?_0x3f9820(0x1af)+_0x3cedb9['taskId']+_0x3f9820(0x1b1)+_0x3cedb9[_0x3f9820(0x1ae)]:_0x3f9820(0x1af)+_0x3cedb9[_0x3f9820(0x1c1)]+'\x20failed.';default:return _0x3f9820(0x1af)+_0x3cedb9[_0x3f9820(0x1c1)]+'\x20returned\x20unknown\x20status\x20'+_0x3cedb9[_0x3f9820(0x1b8)]+'.';}}function quoteShellArg(_0x4c144d){const _0x4473b2=a45_0x54cf90;return'\x27'+_0x4c144d[_0x4473b2(0x1b9)](/'/g,_0x4473b2(0x1ba))+'\x27';}function a45_0x4450(){const _0x2146b6=['\x27\x5c\x27\x27','1462532ixjVeO','SUCCESS','\x20--appcode\x20','3896mxlpWN','PROCESSING','toUpperCase','taskId','240mUKNQB','trim','\x20--format\x20compress','apiError','\x20completed\x20successfully.','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','6419SrSMAr','15222kqkJOx','8846780irkYwt','305569zGIHbf','FAILED','string','has','errorMessage','Task\x20','2611347RatHAL','\x20failed:\x20','\x20task\x20status\x20--task-id\x20','PENDING','3677481HanDVQ','Async\x20task\x20','2ZXjSuh','\x20response\x20did\x20not\x20contain\x20a\x20status.','status','replace'];a45_0x4450=function(){return _0x2146b6;};return a45_0x4450();}
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 a46_0x182c(_0x462f82,_0x5336a6){_0x462f82=_0x462f82-0xf1;var _0x125847=a46_0x1258();var _0x182cb2=_0x125847[_0x462f82];return _0x182cb2;}function a46_0x1258(){var _0x24551c=['924848EbTCwk','352376fkhpdQ','3GyjkVx','method','3813834rorYCn','279eiiWtH','954938DzutLN','4011512hMtIPa','7cIFAxy','3158785RMeHYP','28010ECYWCx','defineProperties','description'];a46_0x1258=function(){return _0x24551c;};return a46_0x1258();}(function(_0x53996a,_0x147221){var _0x1d91ed=a46_0x182c,_0x4f3a6f=_0x53996a();while(!![]){try{var _0x46be92=parseInt(_0x1d91ed(0xf5))/0x1+-parseInt(_0x1d91ed(0xfc))/0x2*(-parseInt(_0x1d91ed(0xf1))/0x3)+-parseInt(_0x1d91ed(0xf6))/0x4+-parseInt(_0x1d91ed(0xf8))/0x5+parseInt(_0x1d91ed(0xf3))/0x6*(parseInt(_0x1d91ed(0xf7))/0x7)+parseInt(_0x1d91ed(0xfd))/0x8+parseInt(_0x1d91ed(0xf4))/0x9*(parseInt(_0x1d91ed(0xf9))/0xa);if(_0x46be92===_0x147221)break;else _0x4f3a6f['push'](_0x4f3a6f['shift']());}catch(_0xa68705){_0x4f3a6f['push'](_0x4f3a6f['shift']());}}}(a46_0x1258,0x8617c));export function asDryRunResult(_0x33f071,_0x3d4c2f){var _0x23ab4c=a46_0x182c;return Object[_0x23ab4c(0xfa)](_0x33f071,{'method':{'value':_0x3d4c2f[_0x23ab4c(0xf2)],'enumerable':![]},'url':{'value':_0x3d4c2f['url'],'enumerable':![]},..._0x3d4c2f[_0x23ab4c(0xfb)]?{'description':{'value':_0x3d4c2f[_0x23ab4c(0xfb)],'enumerable':![]}}:{}});}
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_0x3ade13=a47_0x15ee;(function(_0x462805,_0x326163){const _0x5be6d5=a47_0x15ee,_0x311d79=_0x462805();while(!![]){try{const _0x447615=parseInt(_0x5be6d5(0x17e))/0x1+-parseInt(_0x5be6d5(0x17b))/0x2*(parseInt(_0x5be6d5(0x177))/0x3)+parseInt(_0x5be6d5(0x173))/0x4+parseInt(_0x5be6d5(0x182))/0x5*(-parseInt(_0x5be6d5(0x178))/0x6)+-parseInt(_0x5be6d5(0x174))/0x7*(-parseInt(_0x5be6d5(0x172))/0x8)+-parseInt(_0x5be6d5(0x186))/0x9*(parseInt(_0x5be6d5(0x181))/0xa)+-parseInt(_0x5be6d5(0x180))/0xb*(parseInt(_0x5be6d5(0x17a))/0xc);if(_0x447615===_0x326163)break;else _0x311d79['push'](_0x311d79['shift']());}catch(_0x4d7d81){_0x311d79['push'](_0x311d79['shift']());}}}(a47_0x54aa,0xa7b33));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a47_0x3ade13(0x18a)};export const CODE_FLAG={'name':a47_0x3ade13(0x185),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a47_0x15ee(_0x494b5d,_0x34254d){_0x494b5d=_0x494b5d-0x172;const _0x54aa84=a47_0x54aa();let _0x15eec3=_0x54aa84[_0x494b5d];return _0x15eec3;}export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a47_0x3ade13(0x176),'description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)'};export const SQLCODE_FLAG={'name':a47_0x3ade13(0x17c),'type':a47_0x3ade13(0x184),'required':!![],'description':a47_0x3ade13(0x187),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a47_0x3ade13(0x188)}};export const APPCODE_FLAG_OPTIONAL={'name':a47_0x3ade13(0x17f),'type':a47_0x3ade13(0x184),'required':![],'description':a47_0x3ade13(0x179)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a47_0x3ade13(0x189)};function a47_0x54aa(){const _0xaffb7f=['2094hrhFuy','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','12uzymbw','1313490PMPpRE','sqlcode','number','906397VzdWpL','appcode','12136289ceyQSs','1138190LqjiKl','4105hHyDOz','dbtype','string','code','45IMFvoq','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','App\x20code\x20(e.g.\x20app-xxxxx)','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','1554744EQJsye','4920448TaCauu','42iGJolE','Database\x20product\x20type','datasetcode','3QfhthJ'];a47_0x54aa=function(){return _0xaffb7f;};return a47_0x54aa();}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a47_0x3ade13(0x17d),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':a47_0x3ade13(0x183),'type':a47_0x3ade13(0x184),'required':!![],'description':a47_0x3ade13(0x175),'enum':['MYSQL','POSTGRESQL']};
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(_0x51da6c,_0x259ccf){const _0x3c59bc=a48_0xe003,_0x50e279=_0x51da6c();while(!![]){try{const _0x5c32a1=parseInt(_0x3c59bc(0xe9))/0x1*(parseInt(_0x3c59bc(0xde))/0x2)+-parseInt(_0x3c59bc(0xe5))/0x3+parseInt(_0x3c59bc(0xec))/0x4*(parseInt(_0x3c59bc(0xef))/0x5)+-parseInt(_0x3c59bc(0xe2))/0x6*(parseInt(_0x3c59bc(0xe4))/0x7)+parseInt(_0x3c59bc(0xe8))/0x8*(-parseInt(_0x3c59bc(0xe0))/0x9)+-parseInt(_0x3c59bc(0xe6))/0xa+parseInt(_0x3c59bc(0xeb))/0xb*(parseInt(_0x3c59bc(0xf1))/0xc);if(_0x5c32a1===_0x259ccf)break;else _0x50e279['push'](_0x50e279['shift']());}catch(_0x30f74c){_0x50e279['push'](_0x50e279['shift']());}}}(a48_0x3399,0xb2608));import{existsSync,statSync}from'node:fs';function a48_0x3399(){const _0x4e17fc=['File\x20is\x20not\x20a\x20regular\x20file:\x20','968ERphVw','16kjhJde','ceil','5027oKcDPn','4OjcakH','trim','\x20MB','5566950VKJxkp','size','63012Snkgcj','validation','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','151518LkHwCc','\x20path\x20is\x20required.','62388EirCOb','File\x20not\x20found:\x20','2204562TIpwsL','isFile','21ycOWXQ','3602508jdIGqH','8527200lsQWkh'];a48_0x3399=function(){return _0x4e17fc;};return a48_0x3399();}function a48_0xe003(_0x334c6d,_0x25f5fe){_0x334c6d=_0x334c6d-0xdd;const _0x339996=a48_0x3399();let _0xe003be=_0x339996[_0x334c6d];return _0xe003be;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x4c0e9b){const _0x25cb07=a48_0xe003;if(_0x4c0e9b>=BYTES_PER_MB){const _0x30a2ec=Math[_0x25cb07(0xea)](_0x4c0e9b/BYTES_PER_MB*0x64)/0x64;return _0x30a2ec['toFixed'](0x2)+_0x25cb07(0xee);}return _0x4c0e9b+'\x20B';}export function requireDevelopmentUploadFile(_0x3df460,_0xfc52a7){const _0x1ba95f=a48_0xe003,_0x55e2ef=_0x3df460[_0x1ba95f(0xed)]();if(!_0x55e2ef)throw CliErrors[_0x1ba95f(0xf2)](_0xfc52a7+_0x1ba95f(0xdf));if(!existsSync(_0x55e2ef))throw CliErrors[_0x1ba95f(0xf2)](_0x1ba95f(0xe1)+_0x55e2ef);const _0x5ad70d=statSync(_0x55e2ef);if(!_0x5ad70d[_0x1ba95f(0xe3)]())throw CliErrors[_0x1ba95f(0xf2)](_0x1ba95f(0xe7)+_0x55e2ef);if(_0x5ad70d['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x1ba95f(0xf2)](_0x1ba95f(0xdd)+_0x55e2ef+'\x20('+formatBytes(_0x5ad70d[_0x1ba95f(0xf0)])+')');return{'path':_0x55e2ef,'size':_0x5ad70d[_0x1ba95f(0xf0)]};}
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_0xc823(_0x7fca3d,_0xe0edbb){_0x7fca3d=_0x7fca3d-0x1c8;const _0x5788f7=a49_0x5788();let _0xc8238=_0x5788f7[_0x7fca3d];return _0xc8238;}(function(_0xfd2769,_0x417ed3){const _0x254184=a49_0xc823,_0x69affb=_0xfd2769();while(!![]){try{const _0x25486a=parseInt(_0x254184(0x1c8))/0x1+-parseInt(_0x254184(0x1cb))/0x2+-parseInt(_0x254184(0x1d4))/0x3+parseInt(_0x254184(0x1d1))/0x4+-parseInt(_0x254184(0x1d2))/0x5*(-parseInt(_0x254184(0x1ce))/0x6)+-parseInt(_0x254184(0x1cc))/0x7*(-parseInt(_0x254184(0x1cf))/0x8)+-parseInt(_0x254184(0x1cd))/0x9;if(_0x25486a===_0x417ed3)break;else _0x69affb['push'](_0x69affb['shift']());}catch(_0x13ec8a){_0x69affb['push'](_0x69affb['shift']());}}}(a49_0x5788,0xe6990));export function validateAppcode(_0x35bd14){const _0x2b6a66=a49_0xc823,_0x9fdef8=_0x35bd14['trim']();if(!_0x9fdef8)return{'valid':![],'message':_0x2b6a66(0x1ca)};if(_0x9fdef8['length']>0x64)return{'valid':![],'message':_0x2b6a66(0x1c9)};if(!/^[A-Za-z0-9_-]+$/[_0x2b6a66(0x1d3)](_0x9fdef8))return{'valid':![],'message':_0x2b6a66(0x1d0)};return{'valid':!![]};}function a49_0x5788(){const _0x454eca=['1088556GlluOu','24HJDUYP','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','7014032nGiomr','50jYlFyH','test','821616VjvIGH','657312YzeQmH','App\x20Code\x20cannot\x20exceed\x20100\x20characters','App\x20Code\x20cannot\x20be\x20empty','3474300aBhUXy','1096011CDzfrm','15653241tAZTCa'];a49_0x5788=function(){return _0x454eca;};return a49_0x5788();}
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_0x2142(){const _0xb732ad=['object','678AadrqP','Missing\x20key.','277670GHfRLG','key','2452422kATVDj','validation','Key\x20not\x20found:\x20','519431fzCCjo','get','config','read','Usage:\x20','478662EPiqdV','Get\x20a\x20config\x20value\x20by\x20key','6699240eghFPK','8dsAbiG','str','9umyfdo','8477bUpAbS','5604740ftEKTC','1frOadV'];a50_0x2142=function(){return _0xb732ad;};return a50_0x2142();}function a50_0x1983(_0x1a894b,_0x57bd72){_0x1a894b=_0x1a894b-0x13a;const _0x2142e2=a50_0x2142();let _0x198371=_0x2142e2[_0x1a894b];return _0x198371;}const a50_0x1ab2fd=a50_0x1983;(function(_0x2cb979,_0x32ed45){const _0x14431c=a50_0x1983,_0x5882e7=_0x2cb979();while(!![]){try{const _0x503c19=parseInt(_0x14431c(0x143))/0x1*(parseInt(_0x14431c(0x13b))/0x2)+-parseInt(_0x14431c(0x149))/0x3+-parseInt(_0x14431c(0x13e))/0x4*(-parseInt(_0x14431c(0x147))/0x5)+parseInt(_0x14431c(0x145))/0x6*(-parseInt(_0x14431c(0x141))/0x7)+parseInt(_0x14431c(0x13d))/0x8+parseInt(_0x14431c(0x140))/0x9*(parseInt(_0x14431c(0x142))/0xa)+parseInt(_0x14431c(0x14c))/0xb;if(_0x503c19===_0x32ed45)break;else _0x5882e7['push'](_0x5882e7['shift']());}catch(_0xab250b){_0x5882e7['push'](_0x5882e7['shift']());}}}(a50_0x2142,0xcd5de));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(_0xf8a5c2){const _0x4188aa=a50_0x1983,_0x53fb77=_0xf8a5c2[_0x4188aa(0x13f)](_0x4188aa(0x148));if(!_0x53fb77)throw CliErrors[_0x4188aa(0x14a)](_0x4188aa(0x146),_0x4188aa(0x13a)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x46acfd=readConfig(),_0x1158b4=_0x53fb77==='app'?'appcode':_0x53fb77,_0x22006f=_0x46acfd[_0x1158b4];if(_0x22006f===undefined)throw CliErrors[_0x4188aa(0x14a)](_0x4188aa(0x14b)+_0x53fb77);return{'ok':!![],'data':typeof _0x22006f===_0x4188aa(0x144)?_0x22006f:{[_0x1158b4]:_0x22006f},'message':typeof _0x22006f===_0x4188aa(0x144)?undefined:String(_0x22006f)};}export const configGetDefinition={'service':a50_0x1ab2fd(0x14e),'command':a50_0x1ab2fd(0x14d),'description':a50_0x1ab2fd(0x13c),'risk':a50_0x1ab2fd(0x14f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x1ab2fd(0x148),'type':'string','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[];