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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
@@ -1 +1 @@
1
- export function sleep(_0x41e6fa){return new Promise(_0x604646=>setTimeout(_0x604646,_0x41e6fa));}
1
+ export function sleep(_0x2d09ec){return new Promise(_0x3f0707=>setTimeout(_0x3f0707,_0x2d09ec));}
@@ -0,0 +1,55 @@
1
+ import type { RegisterModelConfig } from "../types/index.js";
2
+ /**
3
+ * 模板内容替换器 - 将模板中的占位符替换为实际值
4
+ */
5
+ export declare class TemplateReplacer {
6
+ private static pad;
7
+ private static formatLocalTimestamp;
8
+ /**
9
+ * 将页面路径转换为组件名称 (PascalCase)
10
+ * 只使用路径的最后一段
11
+ */
12
+ static toComponentName(pageName: string): string;
13
+ /**
14
+ * 将页面路径转换为显示标题
15
+ * 只使用路径的最后一段
16
+ */
17
+ static toDisplayTitle(pageName: string): string;
18
+ /**
19
+ * 替换文件内容中的占位符
20
+ * 支持的标签:
21
+ * - {CliVersion}: CLI 版本号 (如 1.2.5-beta.2)
22
+ * - {ComponentName}: PascalCase 组件名 (如 UserProfile)
23
+ * - {DisplayTitle}: 显示标题 (如 User Profile)
24
+ * - {PageName}: 原始页面名 (如 user-profile)
25
+ * - {TemplateName}: 模板名称 (如 blank)
26
+ * - {CreatedAt}: 本地时间格式 (如 2024-09-14 15:30:45)
27
+ * - {CreatedDate}: 创建日期 (如 2024-09-14)
28
+ * - {CreatedTime}: 创建时间 (如 15:30:45)
29
+ */
30
+ static replaceContent(content: string, pageName: string, templateName: string): string;
31
+ /**
32
+ * 替换 API 生成模板中的占位符
33
+ * 支持的标签:
34
+ * - {AppCode}: 应用AppCode
35
+ * - {ModelConfigs}: 模型配置数组 JSON 字符串
36
+ * - {ExampleModelName}: 示例模型名称(用于注释中的示例)
37
+ * - {ApiFileName}: API 配置文件名(不含扩展名)
38
+ * - {ConfigName}: 注册配置名称
39
+ * - {ClientConfigParam}: createClient 的参数
40
+ * - {CreatedAt}: ISO 时间戳格式
41
+ */
42
+ static replaceApiContent(content: string, appCode: string, modelConfigs: RegisterModelConfig[], exampleModelName?: string, apiFileName?: string, configName?: string, clientConfigParam?: string, varPrefix?: string): string;
43
+ /**
44
+ * 处理整个模板目录,复制并替换内容
45
+ */
46
+ static processTemplate(templatePath: string, targetPath: string, pageName: string, templateName: string, enableLogging?: boolean): Promise<void>;
47
+ /**
48
+ * 递归处理目录中的文件
49
+ */
50
+ private static processDirectory;
51
+ /**
52
+ * 处理单个文件
53
+ */
54
+ private static processFile;
55
+ }
@@ -1 +1 @@
1
- const a271_0x419c36=a271_0x4d53;function a271_0x4d53(_0x47fb7a,_0x42da51){_0x47fb7a=_0x47fb7a-0x1f1;const _0xc39812=a271_0xc398();let _0x4d53e3=_0xc39812[_0x47fb7a];return _0x4d53e3;}(function(_0x1f3deb,_0x3fe2b7){const _0x1dc8ec=a271_0x4d53,_0x545d72=_0x1f3deb();while(!![]){try{const _0x2d8ab3=parseInt(_0x1dc8ec(0x217))/0x1+-parseInt(_0x1dc8ec(0x1f5))/0x2*(parseInt(_0x1dc8ec(0x22e))/0x3)+parseInt(_0x1dc8ec(0x22c))/0x4*(parseInt(_0x1dc8ec(0x1f6))/0x5)+parseInt(_0x1dc8ec(0x224))/0x6+parseInt(_0x1dc8ec(0x208))/0x7+-parseInt(_0x1dc8ec(0x1f4))/0x8+parseInt(_0x1dc8ec(0x205))/0x9*(-parseInt(_0x1dc8ec(0x1fd))/0xa);if(_0x2d8ab3===_0x3fe2b7)break;else _0x545d72['push'](_0x545d72['shift']());}catch(_0x1e6e06){_0x545d72['push'](_0x545d72['shift']());}}}(a271_0xc398,0xb787c));import a271_0xdbb35d from'node:fs';import a271_0x58b053 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a271_0x419c36(0x1f8)](_0x5ddfe7){const _0x1c3eff=a271_0x419c36;return String(_0x5ddfe7)[_0x1c3eff(0x200)](0x2,'0');}static[a271_0x419c36(0x21b)](_0x543980){const _0x58dd3b=a271_0x419c36,_0x3b45ed=_0x543980[_0x58dd3b(0x201)](),_0x245177=this[_0x58dd3b(0x1f8)](_0x543980[_0x58dd3b(0x209)]()+0x1),_0x5b8ee1=this[_0x58dd3b(0x1f8)](_0x543980['getDate']()),_0x4494b7=this[_0x58dd3b(0x1f8)](_0x543980[_0x58dd3b(0x221)]()),_0x3cb48d=this[_0x58dd3b(0x1f8)](_0x543980[_0x58dd3b(0x223)]()),_0x3b8c92=this['pad'](_0x543980['getSeconds']());return{'createdAt':_0x3b45ed+'-'+_0x245177+'-'+_0x5b8ee1+'\x20'+_0x4494b7+':'+_0x3cb48d+':'+_0x3b8c92,'createdDate':_0x3b45ed+'-'+_0x245177+'-'+_0x5b8ee1,'createdTime':_0x4494b7+':'+_0x3cb48d+':'+_0x3b8c92};}static['toComponentName'](_0xd6e5cd){const _0x19885a=a271_0x419c36,_0x1b5541=_0xd6e5cd[_0x19885a(0x21f)]('/')[_0x19885a(0x227)]()||_0xd6e5cd;return _0x1b5541[_0x19885a(0x21f)]('-')[_0x19885a(0x20a)](_0x43a6c1=>_0x43a6c1[_0x19885a(0x225)](0x0)[_0x19885a(0x226)]()+_0x43a6c1[_0x19885a(0x207)](0x1)['toLowerCase']())['join']('');}static[a271_0x419c36(0x228)](_0x46116c){const _0x3ddc80=a271_0x419c36,_0x218121=_0x46116c[_0x3ddc80(0x21f)]('/')[_0x3ddc80(0x227)]()||_0x46116c;return _0x218121[_0x3ddc80(0x21f)]('-')[_0x3ddc80(0x20a)](_0xaa3c22=>_0xaa3c22[_0x3ddc80(0x225)](0x0)[_0x3ddc80(0x226)]()+_0xaa3c22['slice'](0x1)[_0x3ddc80(0x214)]())[_0x3ddc80(0x206)]('\x20');}static[a271_0x419c36(0x22f)](_0x5d70e2,_0x461886,_0x1332c9){const _0x277cf0=a271_0x419c36,_0x414f00=this[_0x277cf0(0x21a)](_0x461886),_0x5d39f4=this[_0x277cf0(0x228)](_0x461886),{createdAt:_0x1f8815,createdDate:_0x7063bf,createdTime:_0x526418}=this[_0x277cf0(0x21b)](new Date());let _0x180f67=_0x5d70e2[_0x277cf0(0x21d)](/\{CliVersion\}/g,CLI_VERSION)[_0x277cf0(0x21d)](/\{ComponentName\}/g,_0x414f00)['replace'](/\{DisplayTitle\}/g,_0x5d39f4)['replace'](/\{PageName\}/g,_0x461886)[_0x277cf0(0x21d)](/\{TemplateName\}/g,_0x1332c9)[_0x277cf0(0x21d)](/\{CreatedAt\}/g,_0x1f8815)['replace'](/\{CreatedDate\}/g,_0x7063bf)[_0x277cf0(0x21d)](/\{CreatedTime\}/g,_0x526418);return _0x180f67;}static['replaceApiContent'](_0x2107cb,_0x469a3a,_0x4796d5,_0x1d2d0b,_0x112c13,_0x1e7823,_0x1ea6ad,_0x5ac234){const _0x119202=a271_0x419c36,_0x47d9c6=new Date(),_0x570653=_0x47d9c6[_0x119202(0x1ff)](),_0x1aaa6f=_0x4796d5[_0x119202(0x20a)](_0x26cf2b=>{const _0x3ec5cc=_0x119202,_0x3c2b3f=[_0x3ec5cc(0x230)+_0x26cf2b[_0x3ec5cc(0x1f7)]+'\x22',_0x3ec5cc(0x22d)+_0x26cf2b[_0x3ec5cc(0x1f9)]+'\x22',_0x3ec5cc(0x220)+_0x26cf2b[_0x3ec5cc(0x219)]+'\x22'];return _0x26cf2b[_0x3ec5cc(0x229)]&&_0x3c2b3f[_0x3ec5cc(0x218)]('alias:\x20\x22'+_0x26cf2b[_0x3ec5cc(0x229)]+'\x22'),_0x3ec5cc(0x1f1)+_0x3c2b3f[_0x3ec5cc(0x206)](',\x20')+_0x3ec5cc(0x1fa);})[_0x119202(0x206)](''),_0x2ff17a=_0x1d2d0b||_0x4796d5[0x0]?.['alias']||_0x119202(0x204);let _0x5da854=_0x2107cb[_0x119202(0x21d)](/\{AppCode\}/g,_0x469a3a)['replace'](/\{ModelConfigs\}/g,_0x1aaa6f)[_0x119202(0x21d)](/\{ExampleModelName\}/g,_0x2ff17a)[_0x119202(0x21d)](/\{ApiFileName\}/g,_0x112c13||_0x119202(0x20d))['replace'](/\{ConfigName\}/g,_0x1e7823||'default')['replace'](/\{ClientConfigParam\}/g,_0x1ea6ad||'')['replace'](/\{VarPrefix\}/g,_0x5ac234||'LOVRABET')['replace'](/\{CreatedAt\}/g,_0x570653);return _0x5da854;}static async[a271_0x419c36(0x20b)](_0x5dd7a6,_0x106510,_0x5359bd,_0x5101f4,_0xb07ff1=!![]){const _0x3b1c77=a271_0x419c36,_0x3a3532=Date[_0x3b1c77(0x1fb)]();try{_0xb07ff1&&logger['info'](_0x3b1c77(0x1f2),_0x3b1c77(0x1fc),{'templatePath':_0x5dd7a6,'targetPath':_0x106510,'pageName':_0x5359bd,'templateName':_0x5101f4});await a271_0xdbb35d[_0x3b1c77(0x21c)][_0x3b1c77(0x203)](_0x106510,{'recursive':!![]}),await this[_0x3b1c77(0x212)](_0x5dd7a6,_0x106510,_0x5359bd,_0x5101f4);if(_0xb07ff1){const _0x44ca06=Date[_0x3b1c77(0x1fb)]()-_0x3a3532;logger[_0x3b1c77(0x222)](_0x3b1c77(0x1f2),'模板内容替换完成',_0x44ca06,{'pageName':_0x5359bd,'templateName':_0x5101f4});}}catch(_0x5a14cb){if(_0xb07ff1){const _0x45cdf7=Date['now']()-_0x3a3532;logger['error'](_0x3b1c77(0x1f2),_0x3b1c77(0x20c),{'templatePath':_0x5dd7a6,'targetPath':_0x106510,'pageName':_0x5359bd,'templateName':_0x5101f4,'error':_0x5a14cb instanceof Error?_0x5a14cb[_0x3b1c77(0x1fe)]:String(_0x5a14cb),'duration':_0x45cdf7});}throw _0x5a14cb;}}static async[a271_0x419c36(0x212)](_0x3be11a,_0x25637c,_0x478fd6,_0x5f4bba){const _0x39d4e6=a271_0x419c36,_0xef1387=await a271_0xdbb35d[_0x39d4e6(0x21c)][_0x39d4e6(0x202)](_0x3be11a,{'withFileTypes':!![]});for(const _0x9473a6 of _0xef1387){const _0x30527c=a271_0x58b053['join'](_0x3be11a,_0x9473a6[_0x39d4e6(0x219)]);let _0x2f1a55=a271_0x58b053['join'](_0x25637c,_0x9473a6[_0x39d4e6(0x219)]);_0x9473a6[_0x39d4e6(0x219)][_0x39d4e6(0x20f)]('.tpl')&&(_0x2f1a55=a271_0x58b053['join'](_0x25637c,_0x9473a6['name'][_0x39d4e6(0x21d)](/\.tpl$/,'')));if(_0x9473a6[_0x39d4e6(0x213)]())await a271_0xdbb35d['promises']['mkdir'](_0x2f1a55,{'recursive':!![]}),await this[_0x39d4e6(0x212)](_0x30527c,_0x2f1a55,_0x478fd6,_0x5f4bba);else _0x9473a6['isFile']()&&await this['processFile'](_0x30527c,_0x2f1a55,_0x478fd6,_0x5f4bba);}}static async[a271_0x419c36(0x211)](_0x54e1d6,_0x1db40a,_0x1de451,_0xfe9f3d){const _0xcfc97d=a271_0x419c36,_0xe6579d=a271_0x58b053['extname'](_0x54e1d6)[_0xcfc97d(0x214)]();_0x54e1d6['endsWith'](_0xcfc97d(0x22b))&&(_0x1db40a=_0x1db40a['replace'](/\.tpl$/,''));const _0x853099=['.tsx','.ts',_0xcfc97d(0x1f3),'.js',_0xcfc97d(0x215),'.md','.css',_0xcfc97d(0x22a),_0xcfc97d(0x22b)];if(_0x853099['includes'](_0xe6579d)||_0x54e1d6[_0xcfc97d(0x20f)](_0xcfc97d(0x22b))){const _0x2752e4=await a271_0xdbb35d[_0xcfc97d(0x21c)][_0xcfc97d(0x20e)](_0x54e1d6,_0xcfc97d(0x21e)),_0xde74db=this[_0xcfc97d(0x22f)](_0x2752e4,_0x1de451,_0xfe9f3d);await a271_0xdbb35d[_0xcfc97d(0x21c)][_0xcfc97d(0x210)](_0x1db40a,_0xde74db,_0xcfc97d(0x21e));}else await a271_0xdbb35d['promises'][_0xcfc97d(0x216)](_0x54e1d6,_0x1db40a);}}function a271_0xc398(){const _0x199fb0=['toISOString','padStart','getFullYear','readdir','mkdir','YourModel','100197omkUso','join','slice','7426566GRYNJt','getMonth','map','processTemplate','模板内容替换失败','api','readFile','endsWith','writeFile','processFile','processDirectory','isDirectory','toLowerCase','.json','copyFile','962605wpNkAT','push','name','toComponentName','formatLocalTimestamp','promises','replace','utf8','split','name:\x20\x22','getHours','success','getMinutes','6081996iLoQMj','charAt','toUpperCase','pop','toDisplayTitle','alias','.scss','.tpl','292LXkEBb','tableName:\x20\x22','3iwCapa','replaceContent','datasetCode:\x20\x22','\x0a\x20\x20\x20\x20{\x20','template','.jsx','1904448OLVMTw','2504926zpQbSn','82045LKnNeQ','datasetCode','pad','tableName','\x20},','now','开始处理模板内容替换','1790dCbDKg','message'];a271_0xc398=function(){return _0x199fb0;};return a271_0xc398();}
1
+ const a277_0x1432da=a277_0x5b7c;function a277_0x5b7c(_0x191fcd,_0x343bda){_0x191fcd=_0x191fcd-0x1ea;const _0x396841=a277_0x3968();let _0x5b7c60=_0x396841[_0x191fcd];return _0x5b7c60;}(function(_0x4de870,_0xb69c8a){const _0x2f2acd=a277_0x5b7c,_0x4edc62=_0x4de870();while(!![]){try{const _0x1484d8=parseInt(_0x2f2acd(0x218))/0x1+parseInt(_0x2f2acd(0x211))/0x2*(-parseInt(_0x2f2acd(0x21f))/0x3)+parseInt(_0x2f2acd(0x1ff))/0x4+parseInt(_0x2f2acd(0x207))/0x5+parseInt(_0x2f2acd(0x22b))/0x6*(-parseInt(_0x2f2acd(0x219))/0x7)+parseInt(_0x2f2acd(0x215))/0x8+-parseInt(_0x2f2acd(0x205))/0x9*(parseInt(_0x2f2acd(0x221))/0xa);if(_0x1484d8===_0xb69c8a)break;else _0x4edc62['push'](_0x4edc62['shift']());}catch(_0x433013){_0x4edc62['push'](_0x4edc62['shift']());}}}(a277_0x3968,0x9a0a5));import a277_0x452336 from'node:fs';import a277_0x16c240 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a277_0x1432da(0x20b)](_0x5201ca){return String(_0x5201ca)['padStart'](0x2,'0');}static[a277_0x1432da(0x1f1)](_0x43709a){const _0x56ed87=a277_0x1432da,_0xaddbda=_0x43709a['getFullYear'](),_0x2f56d8=this['pad'](_0x43709a[_0x56ed87(0x203)]()+0x1),_0x558376=this[_0x56ed87(0x20b)](_0x43709a[_0x56ed87(0x22c)]()),_0x111e87=this['pad'](_0x43709a['getHours']()),_0x33c296=this['pad'](_0x43709a[_0x56ed87(0x21b)]()),_0x5210f2=this[_0x56ed87(0x20b)](_0x43709a['getSeconds']());return{'createdAt':_0xaddbda+'-'+_0x2f56d8+'-'+_0x558376+'\x20'+_0x111e87+':'+_0x33c296+':'+_0x5210f2,'createdDate':_0xaddbda+'-'+_0x2f56d8+'-'+_0x558376,'createdTime':_0x111e87+':'+_0x33c296+':'+_0x5210f2};}static[a277_0x1432da(0x20a)](_0x8cad80){const _0x463877=a277_0x1432da,_0x46a54c=_0x8cad80['split']('/')['pop']()||_0x8cad80;return _0x46a54c['split']('-')['map'](_0x2e258d=>_0x2e258d['charAt'](0x0)[_0x463877(0x204)]()+_0x2e258d[_0x463877(0x202)](0x1)[_0x463877(0x209)]())['join']('');}static[a277_0x1432da(0x225)](_0x29d2ae){const _0x4c6ef2=a277_0x1432da,_0x1030c8=_0x29d2ae[_0x4c6ef2(0x216)]('/')[_0x4c6ef2(0x1fa)]()||_0x29d2ae;return _0x1030c8[_0x4c6ef2(0x216)]('-')['map'](_0x17150f=>_0x17150f[_0x4c6ef2(0x1fb)](0x0)[_0x4c6ef2(0x204)]()+_0x17150f['slice'](0x1)[_0x4c6ef2(0x209)]())['join']('\x20');}static[a277_0x1432da(0x20c)](_0x588209,_0x16699c,_0x4fb199){const _0x296088=a277_0x1432da,_0x42ef13=this[_0x296088(0x20a)](_0x16699c),_0x2f7ba3=this[_0x296088(0x225)](_0x16699c),{createdAt:_0x5cb052,createdDate:_0x599d7d,createdTime:_0x2f399b}=this[_0x296088(0x1f1)](new Date());let _0x3d1a44=_0x588209['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x42ef13)[_0x296088(0x1f5)](/\{DisplayTitle\}/g,_0x2f7ba3)[_0x296088(0x1f5)](/\{PageName\}/g,_0x16699c)[_0x296088(0x1f5)](/\{TemplateName\}/g,_0x4fb199)[_0x296088(0x1f5)](/\{CreatedAt\}/g,_0x5cb052)[_0x296088(0x1f5)](/\{CreatedDate\}/g,_0x599d7d)[_0x296088(0x1f5)](/\{CreatedTime\}/g,_0x2f399b);return _0x3d1a44;}static[a277_0x1432da(0x212)](_0x3c3864,_0x688cb9,_0x5373ee,_0x13a85b,_0x48c635,_0xbccf0e,_0x495bdf,_0x3dfa63){const _0x2e4c7c=a277_0x1432da,_0x51afda=new Date(),_0xe12ff8=_0x51afda[_0x2e4c7c(0x1f7)](),_0x185956=_0x5373ee[_0x2e4c7c(0x1ea)](_0x44e2a8=>{const _0x157a19=_0x2e4c7c,_0x2343c0=[_0x157a19(0x1fd)+_0x44e2a8[_0x157a19(0x22a)]+'\x22','tableName:\x20\x22'+_0x44e2a8['tableName']+'\x22','name:\x20\x22'+_0x44e2a8['name']+'\x22'];return _0x44e2a8[_0x157a19(0x21c)]&&_0x2343c0[_0x157a19(0x228)](_0x157a19(0x21a)+_0x44e2a8[_0x157a19(0x21c)]+'\x22'),_0x157a19(0x1eb)+_0x2343c0['join'](',\x20')+_0x157a19(0x229);})[_0x2e4c7c(0x20d)](''),_0x297205=_0x13a85b||_0x5373ee[0x0]?.[_0x2e4c7c(0x21c)]||_0x2e4c7c(0x1f3);let _0x5244fb=_0x3c3864['replace'](/\{AppCode\}/g,_0x688cb9)['replace'](/\{ModelConfigs\}/g,_0x185956)[_0x2e4c7c(0x1f5)](/\{ExampleModelName\}/g,_0x297205)['replace'](/\{ApiFileName\}/g,_0x48c635||_0x2e4c7c(0x1f9))['replace'](/\{ConfigName\}/g,_0xbccf0e||_0x2e4c7c(0x213))[_0x2e4c7c(0x1f5)](/\{ClientConfigParam\}/g,_0x495bdf||'')['replace'](/\{VarPrefix\}/g,_0x3dfa63||_0x2e4c7c(0x1f4))['replace'](/\{CreatedAt\}/g,_0xe12ff8);return _0x5244fb;}static async[a277_0x1432da(0x1fc)](_0x147771,_0x10b2c3,_0x1567f7,_0x3918d2,_0x30b34f=!![]){const _0x237f1c=a277_0x1432da,_0x58fbfb=Date[_0x237f1c(0x223)]();try{_0x30b34f&&logger['info'](_0x237f1c(0x226),_0x237f1c(0x1ed),{'templatePath':_0x147771,'targetPath':_0x10b2c3,'pageName':_0x1567f7,'templateName':_0x3918d2});await a277_0x452336['promises']['mkdir'](_0x10b2c3,{'recursive':!![]}),await this[_0x237f1c(0x217)](_0x147771,_0x10b2c3,_0x1567f7,_0x3918d2);if(_0x30b34f){const _0x38d3f5=Date[_0x237f1c(0x223)]()-_0x58fbfb;logger[_0x237f1c(0x200)]('template',_0x237f1c(0x222),_0x38d3f5,{'pageName':_0x1567f7,'templateName':_0x3918d2});}}catch(_0x4d0707){if(_0x30b34f){const _0x19a125=Date['now']()-_0x58fbfb;logger[_0x237f1c(0x1fe)](_0x237f1c(0x226),_0x237f1c(0x224),{'templatePath':_0x147771,'targetPath':_0x10b2c3,'pageName':_0x1567f7,'templateName':_0x3918d2,'error':_0x4d0707 instanceof Error?_0x4d0707['message']:String(_0x4d0707),'duration':_0x19a125});}throw _0x4d0707;}}static async['processDirectory'](_0x274496,_0x531f8e,_0x3c09cd,_0x30cb1c){const _0x1d40db=a277_0x1432da,_0x3cefed=await a277_0x452336[_0x1d40db(0x206)][_0x1d40db(0x1ec)](_0x274496,{'withFileTypes':!![]});for(const _0x539f12 of _0x3cefed){const _0x17349b=a277_0x16c240['join'](_0x274496,_0x539f12[_0x1d40db(0x20e)]);let _0x2c95ab=a277_0x16c240[_0x1d40db(0x20d)](_0x531f8e,_0x539f12[_0x1d40db(0x20e)]);_0x539f12[_0x1d40db(0x20e)][_0x1d40db(0x220)]('.tpl')&&(_0x2c95ab=a277_0x16c240[_0x1d40db(0x20d)](_0x531f8e,_0x539f12[_0x1d40db(0x20e)][_0x1d40db(0x1f5)](/\.tpl$/,'')));if(_0x539f12[_0x1d40db(0x1ee)]())await a277_0x452336['promises'][_0x1d40db(0x20f)](_0x2c95ab,{'recursive':!![]}),await this[_0x1d40db(0x217)](_0x17349b,_0x2c95ab,_0x3c09cd,_0x30cb1c);else _0x539f12[_0x1d40db(0x227)]()&&await this['processFile'](_0x17349b,_0x2c95ab,_0x3c09cd,_0x30cb1c);}}static async['processFile'](_0x3212bd,_0x1fece1,_0x3375bf,_0x19de82){const _0x5656b3=a277_0x1432da,_0x2187d9=a277_0x16c240[_0x5656b3(0x21d)](_0x3212bd)[_0x5656b3(0x209)]();_0x3212bd['endsWith'](_0x5656b3(0x1ef))&&(_0x1fece1=_0x1fece1[_0x5656b3(0x1f5)](/\.tpl$/,''));const _0x5d7134=[_0x5656b3(0x210),_0x5656b3(0x1f6),_0x5656b3(0x1f0),_0x5656b3(0x208),'.json',_0x5656b3(0x1f8),'.css',_0x5656b3(0x21e),'.tpl'];if(_0x5d7134[_0x5656b3(0x201)](_0x2187d9)||_0x3212bd['endsWith'](_0x5656b3(0x1ef))){const _0x2f6b58=await a277_0x452336[_0x5656b3(0x206)]['readFile'](_0x3212bd,_0x5656b3(0x214)),_0x2f36f5=this[_0x5656b3(0x20c)](_0x2f6b58,_0x3375bf,_0x19de82);await a277_0x452336[_0x5656b3(0x206)]['writeFile'](_0x1fece1,_0x2f36f5,'utf8');}else await a277_0x452336[_0x5656b3(0x206)][_0x5656b3(0x1f2)](_0x3212bd,_0x1fece1);}}function a277_0x3968(){const _0x359668=['charAt','processTemplate','datasetCode:\x20\x22','error','2378372lbYrib','success','includes','slice','getMonth','toUpperCase','155187VrrSzJ','promises','931915iwKxng','.js','toLowerCase','toComponentName','pad','replaceContent','join','name','mkdir','.tsx','26MjlWzV','replaceApiContent','default','utf8','9976592gulFYr','split','processDirectory','660348NfUUWR','6009689oSoHUr','alias:\x20\x22','getMinutes','alias','extname','.scss','113529YBAIDv','endsWith','410suapMi','模板内容替换完成','now','模板内容替换失败','toDisplayTitle','template','isFile','push','\x20},','datasetCode','6dLvIWs','getDate','map','\x0a\x20\x20\x20\x20{\x20','readdir','开始处理模板内容替换','isDirectory','.tpl','.jsx','formatLocalTimestamp','copyFile','YourModel','LOVRABET','replace','.ts','toISOString','.md','api','pop'];a277_0x3968=function(){return _0x359668;};return a277_0x3968();}
@@ -0,0 +1,10 @@
1
+ export interface UpdateNotice {
2
+ command: string;
3
+ current: string;
4
+ latest: string;
5
+ url: string;
6
+ message: string;
7
+ }
8
+ export declare function getUpdateNoticeCachePath(): string;
9
+ export declare function buildNpmVersionUrl(version: string): string;
10
+ export declare function resolveLatestUpdateNotice(): Promise<UpdateNotice | null>;
@@ -1 +1 @@
1
- (function(_0x3b79b5,_0x4fbe99){const _0x5f2404=a272_0x4ab5,_0x16fd8a=_0x3b79b5();while(!![]){try{const _0x4920ba=parseInt(_0x5f2404(0x1f6))/0x1+parseInt(_0x5f2404(0x1f9))/0x2*(parseInt(_0x5f2404(0x1f3))/0x3)+parseInt(_0x5f2404(0x1ec))/0x4+parseInt(_0x5f2404(0x1e1))/0x5*(parseInt(_0x5f2404(0x1ee))/0x6)+parseInt(_0x5f2404(0x1e5))/0x7+parseInt(_0x5f2404(0x1ea))/0x8*(-parseInt(_0x5f2404(0x1dd))/0x9)+-parseInt(_0x5f2404(0x1e4))/0xa*(parseInt(_0x5f2404(0x1f2))/0xb);if(_0x4920ba===_0x4fbe99)break;else _0x16fd8a['push'](_0x16fd8a['shift']());}catch(_0x2a980d){_0x16fd8a['push'](_0x16fd8a['shift']());}}}(a272_0xc5a5,0xb7822));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a272_0x425004 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a272_0xc5a5(){const _0x3911aa=['stringify','5191677IQKROt','now','utf8','valid','5GGUvHV','stableVersion','checkedAt','18437590mLgtPe','4831827uFOTaK','parse','number','true','/v/','8BNnCcY','\x20available,\x20current\x20','2810112grCOqy',',\x20run:\x20','7663902DvNRrw','gte','trim','update-check.json','11NvvDIs','30PavuAL','lastNotifiedAt','lastNotifiedVersion','452566LNgaly','https://www.npmjs.com/package/','toLowerCase','9918ZZGPkn'];a272_0xc5a5=function(){return _0x3911aa;};return a272_0xc5a5();}import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x2f6237=a272_0x4ab5,_0x3d0392=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x2f6237(0x1f0)]()[_0x2f6237(0x1f8)]();return _0x3d0392==='1'||_0x3d0392===_0x2f6237(0x1e8)||_0x3d0392==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x1bebdc=a272_0x4ab5;return join(cacheRoot(),'rabetbase-cli',_0x1bebdc(0x1f1));}async function readUpdateNoticeCache(){const _0x271d54=a272_0x4ab5;try{const _0x2ee23a=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x576d5e=JSON[_0x271d54(0x1e6)](_0x2ee23a);if(!_0x576d5e||typeof _0x576d5e!=='object')return{};return _0x576d5e;}catch{return{};}}async function writeUpdateNoticeCache(_0x43f842){const _0x49f86c=a272_0x4ab5;try{const _0x1d11bd=getUpdateNoticeCachePath();await mkdir(dirname(_0x1d11bd),{'recursive':!![]}),await writeFile(_0x1d11bd,JSON[_0x49f86c(0x1fa)](_0x43f842,null,0x2)+'\x0a',_0x49f86c(0x1df));}catch{}}function isFreshCheck(_0xd29de4,_0x4bd427){const _0x20110=a272_0x4ab5;return typeof _0xd29de4['checkedAt']==='number'&&_0x4bd427-_0xd29de4[_0x20110(0x1e3)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2ccbf7,_0x2c10f9,_0x5cc0fb){const _0x3e57e1=a272_0x4ab5;return _0x2ccbf7[_0x3e57e1(0x1f5)]===_0x2c10f9&&typeof _0x2ccbf7['lastNotifiedAt']===_0x3e57e1(0x1e7)&&_0x5cc0fb-_0x2ccbf7[_0x3e57e1(0x1f4)]<UPDATE_NOTICE_TTL_MS;}function a272_0x4ab5(_0x5e612d,_0x41abf3){_0x5e612d=_0x5e612d-0x1dd;const _0xc5a5b4=a272_0xc5a5();let _0x4ab509=_0xc5a5b4[_0x5e612d];return _0x4ab509;}export function buildNpmVersionUrl(_0x492447){const _0x27701a=a272_0x4ab5;return _0x27701a(0x1f7)+NPM_PACKAGE_NAME+_0x27701a(0x1e9)+_0x492447;}export async function resolveLatestUpdateNotice(){const _0x3b421a=a272_0x4ab5;if(isUpdateNoticeDisabled())return null;try{const _0x49a525=Date[_0x3b421a(0x1de)](),_0x501641=getCliVersion(),_0x541e9a=await readUpdateNoticeCache();let _0x563f28=isFreshCheck(_0x541e9a,_0x49a525)?_0x541e9a['latest']?.[_0x3b421a(0x1f0)]():undefined;if(!_0x563f28&&!isFreshCheck(_0x541e9a,_0x49a525)){const _0x20f8dd=await getCliVersionPolicy();_0x563f28=_0x20f8dd?.[_0x3b421a(0x1e2)]?.[_0x3b421a(0x1f0)]()||undefined,await writeUpdateNoticeCache({..._0x541e9a,'checkedAt':_0x49a525,'latest':_0x563f28,'failed':!_0x563f28});}if(!_0x563f28||!a272_0x425004[_0x3b421a(0x1e0)](_0x501641)||!a272_0x425004[_0x3b421a(0x1e0)](_0x563f28))return null;if(a272_0x425004[_0x3b421a(0x1ef)](_0x501641,_0x563f28))return null;if(isRecentlyNotified(_0x541e9a,_0x563f28,_0x49a525))return null;const _0x5c9921=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x541e9a,'checkedAt':isFreshCheck(_0x541e9a,_0x49a525)?_0x541e9a[_0x3b421a(0x1e3)]:_0x49a525,'latest':_0x563f28,'failed':![],'lastNotifiedVersion':_0x563f28,'lastNotifiedAt':_0x49a525}),{'command':_0x5c9921,'current':_0x501641,'latest':_0x563f28,'url':buildNpmVersionUrl(_0x563f28),'message':CLI_BIN_NAME+'\x20'+_0x563f28+_0x3b421a(0x1eb)+_0x501641+_0x3b421a(0x1ed)+_0x5c9921};}catch{return null;}}
1
+ (function(_0x463f73,_0x5693bb){const _0x1d30e2=a278_0x4184,_0x59d9e5=_0x463f73();while(!![]){try{const _0xf5ebbc=-parseInt(_0x1d30e2(0x187))/0x1*(-parseInt(_0x1d30e2(0x181))/0x2)+parseInt(_0x1d30e2(0x180))/0x3+-parseInt(_0x1d30e2(0x17f))/0x4*(parseInt(_0x1d30e2(0x17e))/0x5)+parseInt(_0x1d30e2(0x17d))/0x6*(parseInt(_0x1d30e2(0x17b))/0x7)+-parseInt(_0x1d30e2(0x184))/0x8*(-parseInt(_0x1d30e2(0x17a))/0x9)+parseInt(_0x1d30e2(0x183))/0xa*(parseInt(_0x1d30e2(0x172))/0xb)+-parseInt(_0x1d30e2(0x185))/0xc;if(_0xf5ebbc===_0x5693bb)break;else _0x59d9e5['push'](_0x59d9e5['shift']());}catch(_0x4e67c8){_0x59d9e5['push'](_0x59d9e5['shift']());}}}(a278_0x1c28,0x3f4f0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a278_0x2610f7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a278_0x1c28(){const _0x65222e=['parse','246hEuykq','179885tKwpYD','36siHwuZ','1278003IUliie','282rJitCk','/v/','3081450sdIbKB','631976VfAYaH','12396036bTzZrQ','latest','2985dpNuoe','stableVersion','checkedAt',',\x20run:\x20','lastNotifiedAt','now','lastNotifiedVersion','toLowerCase','gte','trim','utf8','number','https://www.npmjs.com/package/','valid','11KJwhjF','.cache','\x20available,\x20current\x20','stringify','rabetbase-cli','\x20update','object','yes','45Whinij','11284oIYnqA'];a278_0x1c28=function(){return _0x65222e;};return a278_0x1c28();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x204a9c=a278_0x4184,_0x4b9b45=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x204a9c(0x190)]()[_0x204a9c(0x18e)]();return _0x4b9b45==='1'||_0x4b9b45==='true'||_0x4b9b45===_0x204a9c(0x179);}function cacheRoot(){const _0x552c7b=a278_0x4184;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x552c7b(0x173));}export function getUpdateNoticeCachePath(){const _0x237de9=a278_0x4184;return join(cacheRoot(),_0x237de9(0x176),'update-check.json');}function a278_0x4184(_0x5c54a8,_0x58d218){_0x5c54a8=_0x5c54a8-0x172;const _0x1c28c0=a278_0x1c28();let _0x41846e=_0x1c28c0[_0x5c54a8];return _0x41846e;}async function readUpdateNoticeCache(){const _0xeae0cb=a278_0x4184;try{const _0x23a956=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x1eb93f=JSON[_0xeae0cb(0x17c)](_0x23a956);if(!_0x1eb93f||typeof _0x1eb93f!==_0xeae0cb(0x178))return{};return _0x1eb93f;}catch{return{};}}async function writeUpdateNoticeCache(_0x15e06f){const _0x2a4883=a278_0x4184;try{const _0x18d4da=getUpdateNoticeCachePath();await mkdir(dirname(_0x18d4da),{'recursive':!![]}),await writeFile(_0x18d4da,JSON[_0x2a4883(0x175)](_0x15e06f,null,0x2)+'\x0a',_0x2a4883(0x191));}catch{}}function isFreshCheck(_0xf5f437,_0x3443cb){const _0x3c51d5=a278_0x4184;return typeof _0xf5f437[_0x3c51d5(0x189)]===_0x3c51d5(0x192)&&_0x3443cb-_0xf5f437[_0x3c51d5(0x189)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x11c9f9,_0x521f0f,_0x44c751){const _0x5b8fa7=a278_0x4184;return _0x11c9f9[_0x5b8fa7(0x18d)]===_0x521f0f&&typeof _0x11c9f9[_0x5b8fa7(0x18b)]===_0x5b8fa7(0x192)&&_0x44c751-_0x11c9f9[_0x5b8fa7(0x18b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xd23650){const _0x329d8b=a278_0x4184;return _0x329d8b(0x193)+NPM_PACKAGE_NAME+_0x329d8b(0x182)+_0xd23650;}export async function resolveLatestUpdateNotice(){const _0x11ea78=a278_0x4184;if(isUpdateNoticeDisabled())return null;try{const _0x2b421a=Date[_0x11ea78(0x18c)](),_0x1c3f55=getCliVersion(),_0x1035c8=await readUpdateNoticeCache();let _0x6cf51c=isFreshCheck(_0x1035c8,_0x2b421a)?_0x1035c8[_0x11ea78(0x186)]?.[_0x11ea78(0x190)]():undefined;if(!_0x6cf51c&&!isFreshCheck(_0x1035c8,_0x2b421a)){const _0x10ec98=await getCliVersionPolicy();_0x6cf51c=_0x10ec98?.[_0x11ea78(0x188)]?.[_0x11ea78(0x190)]()||undefined,await writeUpdateNoticeCache({..._0x1035c8,'checkedAt':_0x2b421a,'latest':_0x6cf51c,'failed':!_0x6cf51c});}if(!_0x6cf51c||!a278_0x2610f7['valid'](_0x1c3f55)||!a278_0x2610f7[_0x11ea78(0x194)](_0x6cf51c))return null;if(a278_0x2610f7[_0x11ea78(0x18f)](_0x1c3f55,_0x6cf51c))return null;if(isRecentlyNotified(_0x1035c8,_0x6cf51c,_0x2b421a))return null;const _0x4a86f5=CLI_BIN_NAME+_0x11ea78(0x177);return await writeUpdateNoticeCache({..._0x1035c8,'checkedAt':isFreshCheck(_0x1035c8,_0x2b421a)?_0x1035c8[_0x11ea78(0x189)]:_0x2b421a,'latest':_0x6cf51c,'failed':![],'lastNotifiedVersion':_0x6cf51c,'lastNotifiedAt':_0x2b421a}),{'command':_0x4a86f5,'current':_0x1c3f55,'latest':_0x6cf51c,'url':buildNpmVersionUrl(_0x6cf51c),'message':CLI_BIN_NAME+'\x20'+_0x6cf51c+_0x11ea78(0x174)+_0x1c3f55+_0x11ea78(0x18a)+_0x4a86f5};}catch{return null;}}
@@ -0,0 +1 @@
1
+ export declare function getCliVersion(): string;
@@ -1 +1 @@
1
- function a273_0x43a4(_0xcf54e8,_0x2e6ef0){_0xcf54e8=_0xcf54e8-0xc8;var _0x57d55e=a273_0x57d5();var _0x43a439=_0x57d55e[_0xcf54e8];return _0x43a439;}(function(_0x16e2b6,_0xafe85a){var _0x223fcf=a273_0x43a4,_0x3a3c44=_0x16e2b6();while(!![]){try{var _0x163263=parseInt(_0x223fcf(0xcf))/0x1+parseInt(_0x223fcf(0xc8))/0x2*(parseInt(_0x223fcf(0xcb))/0x3)+-parseInt(_0x223fcf(0xca))/0x4+-parseInt(_0x223fcf(0xc9))/0x5*(-parseInt(_0x223fcf(0xd0))/0x6)+parseInt(_0x223fcf(0xd1))/0x7+parseInt(_0x223fcf(0xce))/0x8*(parseInt(_0x223fcf(0xcd))/0x9)+parseInt(_0x223fcf(0xcc))/0xa*(-parseInt(_0x223fcf(0xd2))/0xb);if(_0x163263===_0xafe85a)break;else _0x3a3c44['push'](_0x3a3c44['shift']());}catch(_0x31aebf){_0x3a3c44['push'](_0x3a3c44['shift']());}}}(a273_0x57d5,0xeab63));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a273_0x57d5(){var _0x3bb29f=['24204KNNitl','45329210bKnAgx','207hXAHkO','616328yMiDGa','433363lIzAko','66TwSKHh','6480117nzIWvf','11yqzCyj','344FMaXuN','858325POuGWe','3650992bXwtpG'];a273_0x57d5=function(){return _0x3bb29f;};return a273_0x57d5();}
1
+ (function(_0x6c89dc,_0x1aa84f){var _0x506c20=a279_0x5b38,_0x320b76=_0x6c89dc();while(!![]){try{var _0x4201fd=parseInt(_0x506c20(0xb2))/0x1+parseInt(_0x506c20(0xb1))/0x2+parseInt(_0x506c20(0xb6))/0x3*(parseInt(_0x506c20(0xb3))/0x4)+parseInt(_0x506c20(0xb4))/0x5+-parseInt(_0x506c20(0xb5))/0x6*(parseInt(_0x506c20(0xb8))/0x7)+-parseInt(_0x506c20(0xb9))/0x8*(parseInt(_0x506c20(0xba))/0x9)+-parseInt(_0x506c20(0xb7))/0xa;if(_0x4201fd===_0x1aa84f)break;else _0x320b76['push'](_0x320b76['shift']());}catch(_0xd8caad){_0x320b76['push'](_0x320b76['shift']());}}}(a279_0x1f57,0x9360b));import{VERSION}from'../generated/build-info.js';function a279_0x1f57(){var _0x2833cd=['472SgXxtt','105327LkCYBU','10282dxEgni','807300lUBPCn','4nSVsOX','201945OaWAcF','12boCKos','2058159UmFGtx','831890prCjOQ','565453VIaNTl'];a279_0x1f57=function(){return _0x2833cd;};return a279_0x1f57();}function a279_0x5b38(_0x568e6c,_0x35b202){_0x568e6c=_0x568e6c-0xb1;var _0x1f57b9=a279_0x1f57();var _0x5b384c=_0x1f57b9[_0x568e6c];return _0x5b384c;}export function getCliVersion(){return VERSION;}
@@ -0,0 +1 @@
1
+ export declare function withActiveCookie<T>(cookie: string, fn: () => Promise<T>): Promise<T>;
@@ -1 +1 @@
1
- (function(_0x2a4392,_0x349b27){var _0x5d70cd=a274_0x4d55,_0x4285b6=_0x2a4392();while(!![]){try{var _0x20042f=-parseInt(_0x5d70cd(0x154))/0x1+-parseInt(_0x5d70cd(0x15c))/0x2+-parseInt(_0x5d70cd(0x15a))/0x3+-parseInt(_0x5d70cd(0x159))/0x4+-parseInt(_0x5d70cd(0x157))/0x5+-parseInt(_0x5d70cd(0x15b))/0x6*(-parseInt(_0x5d70cd(0x158))/0x7)+-parseInt(_0x5d70cd(0x156))/0x8*(-parseInt(_0x5d70cd(0x155))/0x9);if(_0x20042f===_0x349b27)break;else _0x4285b6['push'](_0x4285b6['shift']());}catch(_0x2bed05){_0x4285b6['push'](_0x4285b6['shift']());}}}(a274_0x2dfd,0xef61a));function a274_0x4d55(_0x20ccda,_0x368897){_0x20ccda=_0x20ccda-0x154;var _0x2dfde9=a274_0x2dfd();var _0x4d5531=_0x2dfde9[_0x20ccda];return _0x4d5531;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4a9fad,_0x406d94){setActiveCookie(_0x4a9fad);try{return await _0x406d94();}finally{clearActiveCookie();}}function a274_0x2dfd(){var _0x44ed23=['4142178wPIlFK','21084NwZcZa','3225920wPfvZL','554004mkhUzN','37714482unDuaY','8mwwHYV','643505BumlTD','1743zYAmSv','1634348twZMWZ'];a274_0x2dfd=function(){return _0x44ed23;};return a274_0x2dfd();}
1
+ function a280_0x2376(_0x2199c4,_0x576ba6){_0x2199c4=_0x2199c4-0x109;var _0x311436=a280_0x3114();var _0x23764a=_0x311436[_0x2199c4];return _0x23764a;}(function(_0x390084,_0x3a7bfe){var _0x1f7c27=a280_0x2376,_0x355aff=_0x390084();while(!![]){try{var _0x797553=-parseInt(_0x1f7c27(0x10e))/0x1*(parseInt(_0x1f7c27(0x113))/0x2)+-parseInt(_0x1f7c27(0x10a))/0x3*(-parseInt(_0x1f7c27(0x10b))/0x4)+parseInt(_0x1f7c27(0x112))/0x5*(-parseInt(_0x1f7c27(0x10f))/0x6)+parseInt(_0x1f7c27(0x10d))/0x7*(parseInt(_0x1f7c27(0x109))/0x8)+parseInt(_0x1f7c27(0x111))/0x9+-parseInt(_0x1f7c27(0x10c))/0xa+parseInt(_0x1f7c27(0x110))/0xb;if(_0x797553===_0x3a7bfe)break;else _0x355aff['push'](_0x355aff['shift']());}catch(_0x4302a6){_0x355aff['push'](_0x355aff['shift']());}}}(a280_0x3114,0x8f9b6));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a280_0x3114(){var _0x4ecb05=['16xbEIsL','3622490lZOFdp','239575ZwZZnM','1fyiiac','618wFoBst','16845048iIEurE','1625526hRjAdr','33695CHpEpI','2300278OjsSLO','8ZAmAYQ','786384OpJrZF'];a280_0x3114=function(){return _0x4ecb05;};return a280_0x3114();}export async function withActiveCookie(_0x21481a,_0x533238){setActiveCookie(_0x21481a);try{return await _0x533238();}finally{clearActiveCookie();}}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 声明式命令中「旁路」输出:进度、路径列表、交互前提示等。
3
+ * 写入 stderr,避免与 stdout 上的 JSON/compress 信封混在一起;
4
+ * 语义上不是错误(与 console.error 区分),仅供人机可读侧道信息。
5
+ */
6
+ export declare function writeCliSideChannelLine(line: string): void;
@@ -1 +1 @@
1
- function a275_0x2453(_0x314f4b,_0x4ed3e1){_0x314f4b=_0x314f4b-0xfe;var _0x404a4c=a275_0x404a();var _0x245360=_0x404a4c[_0x314f4b];return _0x245360;}(function(_0x3edaff,_0x52a831){var _0x52f64c=a275_0x2453,_0x1ccbf6=_0x3edaff();while(!![]){try{var _0xb878e9=parseInt(_0x52f64c(0x100))/0x1*(-parseInt(_0x52f64c(0x101))/0x2)+parseInt(_0x52f64c(0x108))/0x3*(parseInt(_0x52f64c(0x103))/0x4)+-parseInt(_0x52f64c(0x104))/0x5*(-parseInt(_0x52f64c(0x105))/0x6)+-parseInt(_0x52f64c(0xfe))/0x7*(parseInt(_0x52f64c(0x109))/0x8)+parseInt(_0x52f64c(0xff))/0x9+-parseInt(_0x52f64c(0x102))/0xa*(-parseInt(_0x52f64c(0x107))/0xb)+parseInt(_0x52f64c(0x10a))/0xc*(parseInt(_0x52f64c(0x106))/0xd);if(_0xb878e9===_0x52a831)break;else _0x1ccbf6['push'](_0x1ccbf6['shift']());}catch(_0x5b898a){_0x1ccbf6['push'](_0x1ccbf6['shift']());}}}(a275_0x404a,0xd5543));function a275_0x404a(){var _0x1814aa=['556uVergb','4494040USfzmP','6aBwwRO','416VRoUtX','2167PRNiKR','21030htmUid','8hYJFLm','43800QiSBtD','8449658rNcDsY','4221936jytvQB','5AucMmC','483112Laqhjb','42110RFUnOZ'];a275_0x404a=function(){return _0x1814aa;};return a275_0x404a();}export function writeCliSideChannelLine(_0x24aab1){process['stderr']['write'](_0x24aab1+'\x0a');}
1
+ (function(_0x2eb671,_0x463285){var _0x9ea3f4=a281_0x21f8,_0x53eadb=_0x2eb671();while(!![]){try{var _0x2430e0=-parseInt(_0x9ea3f4(0x12c))/0x1*(parseInt(_0x9ea3f4(0x130))/0x2)+-parseInt(_0x9ea3f4(0x12a))/0x3*(-parseInt(_0x9ea3f4(0x12b))/0x4)+-parseInt(_0x9ea3f4(0x126))/0x5*(parseInt(_0x9ea3f4(0x129))/0x6)+parseInt(_0x9ea3f4(0x12e))/0x7+-parseInt(_0x9ea3f4(0x127))/0x8*(parseInt(_0x9ea3f4(0x12d))/0x9)+-parseInt(_0x9ea3f4(0x124))/0xa*(-parseInt(_0x9ea3f4(0x128))/0xb)+parseInt(_0x9ea3f4(0x12f))/0xc;if(_0x2430e0===_0x463285)break;else _0x53eadb['push'](_0x53eadb['shift']());}catch(_0x4f0c8d){_0x53eadb['push'](_0x53eadb['shift']());}}}(a281_0x36e3,0xb1950));function a281_0x36e3(){var _0x1bcbd4=['4572281qpTEun','3887772UgtJmn','4JMqPRr','stderr','920OuSOJN','write','100dnCFDo','206904SpbPOm','134398WNTxTQ','84924iKfPnT','2481nbmioe','1516BwotiQ','16729JifPzo','477KwACtB'];a281_0x36e3=function(){return _0x1bcbd4;};return a281_0x36e3();}function a281_0x21f8(_0x22f68b,_0x167e52){_0x22f68b=_0x22f68b-0x124;var _0x36e30d=a281_0x36e3();var _0x21f824=_0x36e30d[_0x22f68b];return _0x21f824;}export function writeCliSideChannelLine(_0x51ce49){var _0x366a34=a281_0x21f8;process[_0x366a34(0x131)][_0x366a34(0x125)](_0x51ce49+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.16-beta.4",
3
+ "version": "2.3.16-beta.6",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -26,6 +26,14 @@
26
26
  "type": "module",
27
27
  "module": "lib/cli.js",
28
28
  "main": "lib/cli.js",
29
+ "exports": {
30
+ ".": "./lib/cli.js",
31
+ "./runtime": {
32
+ "types": "./lib/runtime/index.d.ts",
33
+ "import": "./lib/runtime/index.js",
34
+ "default": "./lib/runtime/index.js"
35
+ }
36
+ },
29
37
  "engines": {
30
38
  "node": ">=20"
31
39
  },