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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
@@ -1 +1 @@
1
- const a269_0x3747ae=a269_0x2aac;(function(_0x1a7be1,_0x2e730b){const _0x478e17=a269_0x2aac,_0x34deba=_0x1a7be1();while(!![]){try{const _0x5ba2d5=-parseInt(_0x478e17(0x1d2))/0x1*(parseInt(_0x478e17(0x1e2))/0x2)+parseInt(_0x478e17(0x1cc))/0x3*(parseInt(_0x478e17(0x1e3))/0x4)+-parseInt(_0x478e17(0x1e1))/0x5+parseInt(_0x478e17(0x1dd))/0x6*(-parseInt(_0x478e17(0x1d9))/0x7)+-parseInt(_0x478e17(0x1d5))/0x8*(-parseInt(_0x478e17(0x1ce))/0x9)+parseInt(_0x478e17(0x1d6))/0xa*(-parseInt(_0x478e17(0x1d3))/0xb)+parseInt(_0x478e17(0x1d8))/0xc*(parseInt(_0x478e17(0x1cf))/0xd);if(_0x5ba2d5===_0x2e730b)break;else _0x34deba['push'](_0x34deba['shift']());}catch(_0x3886f1){_0x34deba['push'](_0x34deba['shift']());}}}(a269_0x16d7,0x7ba8b));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a269_0x16d7(){const _0x171ca1=['964cfFhpN','utf-8','application/json','11469nZLrES','agents.md','81dponWM','13430924UzqaQC','catch','/rules/rules.json','2237pwbdRF','55uoLllr','lastUpdated','464296meviQj','1529140jOkxkO','json','12zCDwqr','10115rHiaqA','status','statusText','../../templates/rules/lovrabet_rules.mdc.tpl','102eCJgEL','content','本地模板文件不存在:\x20','.cursor/rules','1062805SHQckn','866UhGxrY'];a269_0x16d7=function(){return _0x171ca1;};return a269_0x16d7();}function getRulesCdnUrl(){const _0x534776=a269_0x2aac,_0x1a408d=getTemplateBaseUrl();return _0x1a408d+_0x534776(0x1d1);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a269_0x3747ae(0x1dc));export async function fetchRulesFromCDN(){const _0x26f85f=a269_0x3747ae,_0x5a73a8=getRulesCdnUrl(),_0x37f1b9=await fetch(_0x5a73a8,{'headers':{'Accept':_0x26f85f(0x1cb)}});if(!_0x37f1b9['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x37f1b9[_0x26f85f(0x1da)]+'\x20'+_0x37f1b9[_0x26f85f(0x1db)]);const _0x248fe7=await _0x37f1b9[_0x26f85f(0x1d7)]();if(!_0x248fe7[_0x26f85f(0x1de)]||typeof _0x248fe7['content']!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x248fe7;}export async function getRulesContent(){const _0x4410a4=a269_0x3747ae;try{const _0x29d917=await fetchRulesFromCDN();return _0x29d917[_0x4410a4(0x1de)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x55efb7=a269_0x3747ae;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x55efb7(0x1e4));throw new Error(_0x55efb7(0x1df)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x42fe5d){const _0x32e0ee=a269_0x3747ae,_0x50b8a4=await fetchRulesFromCDN()[_0x32e0ee(0x1d0)](()=>null);let _0x393ea7;_0x50b8a4?(_0x393ea7=_0x50b8a4[_0x32e0ee(0x1de)],_0x50b8a4[_0x32e0ee(0x1d4)]&&(_0x393ea7=appendUpdateTime(_0x393ea7,_0x50b8a4[_0x32e0ee(0x1d4)]))):_0x393ea7=readLocalTemplate();const _0x5734de=dirname(_0x42fe5d);!existsSync(_0x5734de)&&mkdirSync(_0x5734de,{'recursive':!![]}),writeFileSync(_0x42fe5d,_0x393ea7,'utf-8');}export async function copyRulesToCursor(_0x2bbd84){const _0x28876b=a269_0x3747ae,_0x2fdada=join(_0x2bbd84,_0x28876b(0x1e0)),_0x1b49f5=join(_0x2fdada,'lovrabet_rules.mdc');if(existsSync(_0x1b49f5))return![];return await writeRulesFile(_0x1b49f5),!![];}function a269_0x2aac(_0x1ca3be,_0x840cbf){_0x1ca3be=_0x1ca3be-0x1cb;const _0x16d744=a269_0x16d7();let _0x2aace3=_0x16d744[_0x1ca3be];return _0x2aace3;}export async function copyRulesToAgentsMd(_0xa3f832){const _0xcbe869=a269_0x3747ae,_0x2c582c=join(_0xa3f832,_0xcbe869(0x1cd));if(existsSync(_0x2c582c))return![];return await writeRulesFile(_0x2c582c),!![];}
1
+ (function(_0x20f7d0,_0x3d873d){const _0x2a85eb=a275_0x147b,_0x2b3b39=_0x20f7d0();while(!![]){try{const _0x21b89d=-parseInt(_0x2a85eb(0x11d))/0x1*(parseInt(_0x2a85eb(0x11f))/0x2)+parseInt(_0x2a85eb(0x116))/0x3+-parseInt(_0x2a85eb(0x12c))/0x4*(-parseInt(_0x2a85eb(0x123))/0x5)+parseInt(_0x2a85eb(0x115))/0x6*(parseInt(_0x2a85eb(0x128))/0x7)+-parseInt(_0x2a85eb(0x11b))/0x8*(parseInt(_0x2a85eb(0x124))/0x9)+parseInt(_0x2a85eb(0x12d))/0xa+-parseInt(_0x2a85eb(0x129))/0xb;if(_0x21b89d===_0x3d873d)break;else _0x2b3b39['push'](_0x2b3b39['shift']());}catch(_0x411ea1){_0x2b3b39['push'](_0x2b3b39['shift']());}}}(a275_0x4890,0x99b03));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a275_0x147b(_0x565cdb,_0x59e70d){_0x565cdb=_0x565cdb-0x115;const _0x4890ef=a275_0x4890();let _0x147bd6=_0x4890ef[_0x565cdb];return _0x147bd6;}function getRulesCdnUrl(){const _0x24a38d=a275_0x147b,_0x39dff7=getTemplateBaseUrl();return _0x39dff7+_0x24a38d(0x117);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');function a275_0x4890(){const _0x6e26aa=['1018UpBSzg','lastUpdated','statusText','content','10PpUQLT','99HKqrMV','agents.md','lovrabet_rules.mdc','utf-8','7042QRxpOk','32490370GVLzJW','status','application/json','2455328UOTIAY','11247570hmxAqH','7146VArpzo','3456450zPyBkm','/rules/rules.json','json','CDN\x20返回数据格式错误','catch','796072EKDSJm','.cursor/rules','49sXtFAS','string'];a275_0x4890=function(){return _0x6e26aa;};return a275_0x4890();}export async function fetchRulesFromCDN(){const _0x552b81=a275_0x147b,_0x2c7ce4=getRulesCdnUrl(),_0x2060ee=await fetch(_0x2c7ce4,{'headers':{'Accept':_0x552b81(0x12b)}});if(!_0x2060ee['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x2060ee[_0x552b81(0x12a)]+'\x20'+_0x2060ee[_0x552b81(0x121)]);const _0x4b139f=await _0x2060ee[_0x552b81(0x118)]();if(!_0x4b139f[_0x552b81(0x122)]||typeof _0x4b139f[_0x552b81(0x122)]!==_0x552b81(0x11e))throw new Error(_0x552b81(0x119));return _0x4b139f;}export async function getRulesContent(){const _0x2cf756=a275_0x147b;try{const _0xdcd68=await fetchRulesFromCDN();return _0xdcd68[_0x2cf756(0x122)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x251328=a275_0x147b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x251328(0x127));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5825ef){const _0x2248e7=a275_0x147b,_0x71b429=await fetchRulesFromCDN()[_0x2248e7(0x11a)](()=>null);let _0x3cdba3;_0x71b429?(_0x3cdba3=_0x71b429[_0x2248e7(0x122)],_0x71b429[_0x2248e7(0x120)]&&(_0x3cdba3=appendUpdateTime(_0x3cdba3,_0x71b429[_0x2248e7(0x120)]))):_0x3cdba3=readLocalTemplate();const _0x2f7ea3=dirname(_0x5825ef);!existsSync(_0x2f7ea3)&&mkdirSync(_0x2f7ea3,{'recursive':!![]}),writeFileSync(_0x5825ef,_0x3cdba3,_0x2248e7(0x127));}export async function copyRulesToCursor(_0x526895){const _0x45973f=a275_0x147b,_0x11fd8e=join(_0x526895,_0x45973f(0x11c)),_0x256734=join(_0x11fd8e,_0x45973f(0x126));if(existsSync(_0x256734))return![];return await writeRulesFile(_0x256734),!![];}export async function copyRulesToAgentsMd(_0x546496){const _0xd20dd8=a275_0x147b,_0x355b43=join(_0x546496,_0xd20dd8(0x125));if(existsSync(_0x355b43))return![];return await writeRulesFile(_0x355b43),!![];}
@@ -0,0 +1 @@
1
+ export declare function sleep(ms: number): Promise<unknown>;
@@ -1 +1 @@
1
- export function sleep(_0x41e6fa){return new Promise(_0x604646=>setTimeout(_0x604646,_0x41e6fa));}
1
+ export function sleep(_0x104f86){return new Promise(_0x3f6314=>setTimeout(_0x3f6314,_0x104f86));}
@@ -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
+ function a277_0x4223(_0x49a240,_0x39414f){_0x49a240=_0x49a240-0xd7;const _0x3b4cfe=a277_0x3b4c();let _0x422348=_0x3b4cfe[_0x49a240];return _0x422348;}const a277_0x47a9d2=a277_0x4223;(function(_0x45c693,_0x3fa1a8){const _0x1a7404=a277_0x4223,_0xc8f202=_0x45c693();while(!![]){try{const _0x15a25a=parseInt(_0x1a7404(0xf8))/0x1*(parseInt(_0x1a7404(0x10e))/0x2)+-parseInt(_0x1a7404(0xf3))/0x3+parseInt(_0x1a7404(0xfc))/0x4+parseInt(_0x1a7404(0xef))/0x5+-parseInt(_0x1a7404(0x119))/0x6+parseInt(_0x1a7404(0x105))/0x7*(parseInt(_0x1a7404(0x104))/0x8)+-parseInt(_0x1a7404(0xe9))/0x9*(parseInt(_0x1a7404(0xec))/0xa);if(_0x15a25a===_0x3fa1a8)break;else _0xc8f202['push'](_0xc8f202['shift']());}catch(_0x133725){_0xc8f202['push'](_0xc8f202['shift']());}}}(a277_0x3b4c,0xd326e));function a277_0x3b4c(){const _0x379003=['.jsx','includes','writeFile','3347UrKAbY','utf8','push','toLowerCase','593920luSiJt','.js','开始处理模板内容替换','promises','\x0a\x20\x20\x20\x20{\x20','tableName','datasetCode','processDirectory','30696nnLRfg','791SBszGK','datasetCode:\x20\x22','getDate','YourModel','模板内容替换失败','pop','map','.tpl','now','694dYoiyK','replace','processTemplate','slice','pad','info','replaceApiContent','formatLocalTimestamp','alias','getMonth','readFile','7651776wZlSXl','endsWith','toUpperCase','replaceContent','name','join','getMinutes','default','alias:\x20\x22','extname','.md','success','padStart','.scss','error','.json','processFile','template','toComponentName','readdir','344529nAQpUX','getHours','api','200AUcjXp','mkdir','split','8423555wQiQjl','isFile','getFullYear','toDisplayTitle','1567161UMxcKY','tableName:\x20\x22'];a277_0x3b4c=function(){return _0x379003;};return a277_0x3b4c();}import a277_0x9a7e29 from'node:fs';import a277_0x480a42 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a277_0x47a9d2(0x112)](_0x406f94){const _0x461555=a277_0x47a9d2;return String(_0x406f94)[_0x461555(0xe1)](0x2,'0');}static['formatLocalTimestamp'](_0x18e960){const _0x5eb437=a277_0x47a9d2,_0x44ab28=_0x18e960[_0x5eb437(0xf1)](),_0x54fafd=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0x117)]()+0x1),_0x5c0f29=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0x107)]()),_0x29447b=this[_0x5eb437(0x112)](_0x18e960[_0x5eb437(0xea)]()),_0x28fafe=this['pad'](_0x18e960[_0x5eb437(0xdb)]()),_0x33b9f6=this[_0x5eb437(0x112)](_0x18e960['getSeconds']());return{'createdAt':_0x44ab28+'-'+_0x54fafd+'-'+_0x5c0f29+'\x20'+_0x29447b+':'+_0x28fafe+':'+_0x33b9f6,'createdDate':_0x44ab28+'-'+_0x54fafd+'-'+_0x5c0f29,'createdTime':_0x29447b+':'+_0x28fafe+':'+_0x33b9f6};}static[a277_0x47a9d2(0xe7)](_0x3335ba){const _0x444441=a277_0x47a9d2,_0x31cdc2=_0x3335ba[_0x444441(0xee)]('/')['pop']()||_0x3335ba;return _0x31cdc2[_0x444441(0xee)]('-')[_0x444441(0x10b)](_0xe3d9f3=>_0xe3d9f3['charAt'](0x0)['toUpperCase']()+_0xe3d9f3[_0x444441(0x111)](0x1)[_0x444441(0xfb)]())[_0x444441(0xda)]('');}static[a277_0x47a9d2(0xf2)](_0x3588af){const _0x5b8b07=a277_0x47a9d2,_0x20af52=_0x3588af[_0x5b8b07(0xee)]('/')[_0x5b8b07(0x10a)]()||_0x3588af;return _0x20af52['split']('-')[_0x5b8b07(0x10b)](_0x36fc4c=>_0x36fc4c['charAt'](0x0)[_0x5b8b07(0xd7)]()+_0x36fc4c[_0x5b8b07(0x111)](0x1)[_0x5b8b07(0xfb)]())[_0x5b8b07(0xda)]('\x20');}static[a277_0x47a9d2(0xd8)](_0x239609,_0x1ade1d,_0x2ae82e){const _0x3c2f17=a277_0x47a9d2,_0x52984d=this[_0x3c2f17(0xe7)](_0x1ade1d),_0x3c6166=this['toDisplayTitle'](_0x1ade1d),{createdAt:_0x36c8e5,createdDate:_0x18b665,createdTime:_0xeaba3c}=this[_0x3c2f17(0x115)](new Date());let _0x25e24a=_0x239609[_0x3c2f17(0x10f)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x52984d)[_0x3c2f17(0x10f)](/\{DisplayTitle\}/g,_0x3c6166)['replace'](/\{PageName\}/g,_0x1ade1d)[_0x3c2f17(0x10f)](/\{TemplateName\}/g,_0x2ae82e)[_0x3c2f17(0x10f)](/\{CreatedAt\}/g,_0x36c8e5)['replace'](/\{CreatedDate\}/g,_0x18b665)[_0x3c2f17(0x10f)](/\{CreatedTime\}/g,_0xeaba3c);return _0x25e24a;}static[a277_0x47a9d2(0x114)](_0x2ef757,_0x32fac9,_0x3841cd,_0x1e6add,_0x494078,_0x13016e,_0x3b5007,_0x2ef539){const _0x10168b=a277_0x47a9d2,_0x219691=new Date(),_0x461e38=_0x219691['toISOString'](),_0x49987c=_0x3841cd[_0x10168b(0x10b)](_0x1c97fd=>{const _0x27ba79=_0x10168b,_0x6b17b6=[_0x27ba79(0x106)+_0x1c97fd[_0x27ba79(0x102)]+'\x22',_0x27ba79(0xf4)+_0x1c97fd[_0x27ba79(0x101)]+'\x22','name:\x20\x22'+_0x1c97fd[_0x27ba79(0xd9)]+'\x22'];return _0x1c97fd[_0x27ba79(0x116)]&&_0x6b17b6[_0x27ba79(0xfa)](_0x27ba79(0xdd)+_0x1c97fd[_0x27ba79(0x116)]+'\x22'),_0x27ba79(0x100)+_0x6b17b6[_0x27ba79(0xda)](',\x20')+'\x20},';})[_0x10168b(0xda)](''),_0x50ba48=_0x1e6add||_0x3841cd[0x0]?.['alias']||_0x10168b(0x108);let _0x1bf858=_0x2ef757[_0x10168b(0x10f)](/\{AppCode\}/g,_0x32fac9)[_0x10168b(0x10f)](/\{ModelConfigs\}/g,_0x49987c)[_0x10168b(0x10f)](/\{ExampleModelName\}/g,_0x50ba48)[_0x10168b(0x10f)](/\{ApiFileName\}/g,_0x494078||_0x10168b(0xeb))[_0x10168b(0x10f)](/\{ConfigName\}/g,_0x13016e||_0x10168b(0xdc))[_0x10168b(0x10f)](/\{ClientConfigParam\}/g,_0x3b5007||'')['replace'](/\{VarPrefix\}/g,_0x2ef539||'LOVRABET')[_0x10168b(0x10f)](/\{CreatedAt\}/g,_0x461e38);return _0x1bf858;}static async[a277_0x47a9d2(0x110)](_0x7c8325,_0x5d3cb0,_0x3dbdc6,_0x420345,_0x1d5b85=!![]){const _0x2fa5cd=a277_0x47a9d2,_0x2af18a=Date[_0x2fa5cd(0x10d)]();try{_0x1d5b85&&logger[_0x2fa5cd(0x113)](_0x2fa5cd(0xe6),_0x2fa5cd(0xfe),{'templatePath':_0x7c8325,'targetPath':_0x5d3cb0,'pageName':_0x3dbdc6,'templateName':_0x420345});await a277_0x9a7e29[_0x2fa5cd(0xff)][_0x2fa5cd(0xed)](_0x5d3cb0,{'recursive':!![]}),await this[_0x2fa5cd(0x103)](_0x7c8325,_0x5d3cb0,_0x3dbdc6,_0x420345);if(_0x1d5b85){const _0x2a0ae4=Date[_0x2fa5cd(0x10d)]()-_0x2af18a;logger[_0x2fa5cd(0xe0)](_0x2fa5cd(0xe6),'模板内容替换完成',_0x2a0ae4,{'pageName':_0x3dbdc6,'templateName':_0x420345});}}catch(_0x46f4d7){if(_0x1d5b85){const _0x43ce62=Date[_0x2fa5cd(0x10d)]()-_0x2af18a;logger[_0x2fa5cd(0xe3)](_0x2fa5cd(0xe6),_0x2fa5cd(0x109),{'templatePath':_0x7c8325,'targetPath':_0x5d3cb0,'pageName':_0x3dbdc6,'templateName':_0x420345,'error':_0x46f4d7 instanceof Error?_0x46f4d7['message']:String(_0x46f4d7),'duration':_0x43ce62});}throw _0x46f4d7;}}static async['processDirectory'](_0x3bcac0,_0x173481,_0x271c9d,_0x375373){const _0xa5727f=a277_0x47a9d2,_0x1cafd3=await a277_0x9a7e29['promises'][_0xa5727f(0xe8)](_0x3bcac0,{'withFileTypes':!![]});for(const _0x54fabe of _0x1cafd3){const _0xc22415=a277_0x480a42['join'](_0x3bcac0,_0x54fabe[_0xa5727f(0xd9)]);let _0x5872e6=a277_0x480a42['join'](_0x173481,_0x54fabe[_0xa5727f(0xd9)]);_0x54fabe[_0xa5727f(0xd9)][_0xa5727f(0x11a)](_0xa5727f(0x10c))&&(_0x5872e6=a277_0x480a42[_0xa5727f(0xda)](_0x173481,_0x54fabe[_0xa5727f(0xd9)]['replace'](/\.tpl$/,'')));if(_0x54fabe['isDirectory']())await a277_0x9a7e29[_0xa5727f(0xff)][_0xa5727f(0xed)](_0x5872e6,{'recursive':!![]}),await this['processDirectory'](_0xc22415,_0x5872e6,_0x271c9d,_0x375373);else _0x54fabe[_0xa5727f(0xf0)]()&&await this['processFile'](_0xc22415,_0x5872e6,_0x271c9d,_0x375373);}}static async[a277_0x47a9d2(0xe5)](_0x4ca906,_0x1a670e,_0x29d5fc,_0x169689){const _0x546b5a=a277_0x47a9d2,_0x2321d9=a277_0x480a42[_0x546b5a(0xde)](_0x4ca906)[_0x546b5a(0xfb)]();_0x4ca906['endsWith']('.tpl')&&(_0x1a670e=_0x1a670e[_0x546b5a(0x10f)](/\.tpl$/,''));const _0x1527b0=['.tsx','.ts',_0x546b5a(0xf5),_0x546b5a(0xfd),_0x546b5a(0xe4),_0x546b5a(0xdf),'.css',_0x546b5a(0xe2),_0x546b5a(0x10c)];if(_0x1527b0[_0x546b5a(0xf6)](_0x2321d9)||_0x4ca906[_0x546b5a(0x11a)](_0x546b5a(0x10c))){const _0x2a0bc7=await a277_0x9a7e29['promises'][_0x546b5a(0x118)](_0x4ca906,'utf8'),_0x45a0cd=this['replaceContent'](_0x2a0bc7,_0x29d5fc,_0x169689);await a277_0x9a7e29[_0x546b5a(0xff)][_0x546b5a(0xf7)](_0x1a670e,_0x45a0cd,_0x546b5a(0xf9));}else await a277_0x9a7e29[_0x546b5a(0xff)]['copyFile'](_0x4ca906,_0x1a670e);}}
@@ -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 a278_0x3535(){const _0xc57272=['1584502sGOyzy','number','4848UGGdWy','54pTatgL','30952230iozUzT','yes','parse','lastNotifiedVersion','update-check.json','6839GNOHIH','8433awsmBN','/v/','trim','object','4133704ERvBsy','utf8','now','70126sYynRj','lastNotifiedAt','toLowerCase','checkedAt',',\x20run:\x20','stableVersion','467607MgJOEw','stringify','5PpuQlo','gte','rabetbase-cli','valid','latest'];a278_0x3535=function(){return _0xc57272;};return a278_0x3535();}(function(_0x2521c6,_0x4f68f0){const _0x5765ac=a278_0x18ab,_0x3e610b=_0x2521c6();while(!![]){try{const _0x1996d8=-parseInt(_0x5765ac(0xd8))/0x1+-parseInt(_0x5765ac(0xed))/0x2+-parseInt(_0x5765ac(0xe6))/0x3+parseInt(_0x5765ac(0xdd))/0x4*(-parseInt(_0x5765ac(0xe8))/0x5)+parseInt(_0x5765ac(0xd2))/0x6*(parseInt(_0x5765ac(0xe0))/0x7)+parseInt(_0x5765ac(0xd1))/0x8*(-parseInt(_0x5765ac(0xd9))/0x9)+parseInt(_0x5765ac(0xd3))/0xa;if(_0x1996d8===_0x4f68f0)break;else _0x3e610b['push'](_0x3e610b['shift']());}catch(_0x567e99){_0x3e610b['push'](_0x3e610b['shift']());}}}(a278_0x3535,0x999ba));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a278_0x448d04 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';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 _0x42ac4f=a278_0x18ab,_0x11f66e=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x42ac4f(0xe2)]();return _0x11f66e==='1'||_0x11f66e==='true'||_0x11f66e===_0x42ac4f(0xd4);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x46d6ae=a278_0x18ab;return join(cacheRoot(),_0x46d6ae(0xea),_0x46d6ae(0xd7));}async function readUpdateNoticeCache(){const _0x3e3f34=a278_0x18ab;try{const _0x4f19c4=await readFile(getUpdateNoticeCachePath(),_0x3e3f34(0xde)),_0x25331d=JSON[_0x3e3f34(0xd5)](_0x4f19c4);if(!_0x25331d||typeof _0x25331d!==_0x3e3f34(0xdc))return{};return _0x25331d;}catch{return{};}}async function writeUpdateNoticeCache(_0xc26989){const _0x59d94b=a278_0x18ab;try{const _0x46190e=getUpdateNoticeCachePath();await mkdir(dirname(_0x46190e),{'recursive':!![]}),await writeFile(_0x46190e,JSON[_0x59d94b(0xe7)](_0xc26989,null,0x2)+'\x0a',_0x59d94b(0xde));}catch{}}function isFreshCheck(_0xcba4be,_0x83eed3){const _0x2e5d98=a278_0x18ab;return typeof _0xcba4be[_0x2e5d98(0xe3)]===_0x2e5d98(0xd0)&&_0x83eed3-_0xcba4be[_0x2e5d98(0xe3)]<UPDATE_CHECK_TTL_MS;}function a278_0x18ab(_0xac31c1,_0x180d3d){_0xac31c1=_0xac31c1-0xd0;const _0x3535e1=a278_0x3535();let _0x18ab2e=_0x3535e1[_0xac31c1];return _0x18ab2e;}function isRecentlyNotified(_0x3a604d,_0x4c5b81,_0x4efbf6){const _0xfba607=a278_0x18ab;return _0x3a604d[_0xfba607(0xd6)]===_0x4c5b81&&typeof _0x3a604d[_0xfba607(0xe1)]===_0xfba607(0xd0)&&_0x4efbf6-_0x3a604d[_0xfba607(0xe1)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x198403){const _0x3a62f8=a278_0x18ab;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x3a62f8(0xda)+_0x198403;}export async function resolveLatestUpdateNotice(){const _0x10de53=a278_0x18ab;if(isUpdateNoticeDisabled())return null;try{const _0x359859=Date[_0x10de53(0xdf)](),_0x402d5e=getCliVersion(),_0x926b09=await readUpdateNoticeCache();let _0x5bce1e=isFreshCheck(_0x926b09,_0x359859)?_0x926b09[_0x10de53(0xec)]?.[_0x10de53(0xdb)]():undefined;if(!_0x5bce1e&&!isFreshCheck(_0x926b09,_0x359859)){const _0x41b036=await getCliVersionPolicy();_0x5bce1e=_0x41b036?.[_0x10de53(0xe5)]?.[_0x10de53(0xdb)]()||undefined,await writeUpdateNoticeCache({..._0x926b09,'checkedAt':_0x359859,'latest':_0x5bce1e,'failed':!_0x5bce1e});}if(!_0x5bce1e||!a278_0x448d04[_0x10de53(0xeb)](_0x402d5e)||!a278_0x448d04[_0x10de53(0xeb)](_0x5bce1e))return null;if(a278_0x448d04[_0x10de53(0xe9)](_0x402d5e,_0x5bce1e))return null;if(isRecentlyNotified(_0x926b09,_0x5bce1e,_0x359859))return null;const _0x5a3e58=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x926b09,'checkedAt':isFreshCheck(_0x926b09,_0x359859)?_0x926b09[_0x10de53(0xe3)]:_0x359859,'latest':_0x5bce1e,'failed':![],'lastNotifiedVersion':_0x5bce1e,'lastNotifiedAt':_0x359859}),{'command':_0x5a3e58,'current':_0x402d5e,'latest':_0x5bce1e,'url':buildNpmVersionUrl(_0x5bce1e),'message':CLI_BIN_NAME+'\x20'+_0x5bce1e+'\x20available,\x20current\x20'+_0x402d5e+_0x10de53(0xe4)+_0x5a3e58};}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 a279_0x4647(_0x284a48,_0xd9c0ea){_0x284a48=_0x284a48-0x7c;var _0x3b9f8c=a279_0x3b9f();var _0x4647cd=_0x3b9f8c[_0x284a48];return _0x4647cd;}(function(_0x21a496,_0x516714){var _0x119bc5=a279_0x4647,_0x2f6513=_0x21a496();while(!![]){try{var _0x2d9941=-parseInt(_0x119bc5(0x7d))/0x1+parseInt(_0x119bc5(0x84))/0x2+parseInt(_0x119bc5(0x7c))/0x3*(parseInt(_0x119bc5(0x83))/0x4)+parseInt(_0x119bc5(0x7e))/0x5+-parseInt(_0x119bc5(0x85))/0x6*(parseInt(_0x119bc5(0x81))/0x7)+parseInt(_0x119bc5(0x80))/0x8+parseInt(_0x119bc5(0x7f))/0x9*(-parseInt(_0x119bc5(0x82))/0xa);if(_0x2d9941===_0x516714)break;else _0x2f6513['push'](_0x2f6513['shift']());}catch(_0x4f959d){_0x2f6513['push'](_0x2f6513['shift']());}}}(a279_0x3b9f,0x43868));import{VERSION}from'../generated/build-info.js';function a279_0x3b9f(){var _0x41c58e=['1309wudBbF','2046260zUGXEX','580SMfDMT','237864aniFFi','3690mnaINQ','6360xSEAUR','476011iuuBLV','2634835kSpHVt','9LNqTjq','951416fQyMMa'];a279_0x3b9f=function(){return _0x41c58e;};return a279_0x3b9f();}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_0x157a(_0x22e00a,_0x4e0627){_0x22e00a=_0x22e00a-0x1ab;var _0x2111c7=a280_0x2111();var _0x157a71=_0x2111c7[_0x22e00a];return _0x157a71;}(function(_0x5eecf4,_0xf28df8){var _0x1bae62=a280_0x157a,_0x2d662a=_0x5eecf4();while(!![]){try{var _0x51e910=parseInt(_0x1bae62(0x1af))/0x1*(-parseInt(_0x1bae62(0x1b2))/0x2)+parseInt(_0x1bae62(0x1b4))/0x3*(-parseInt(_0x1bae62(0x1ac))/0x4)+parseInt(_0x1bae62(0x1b3))/0x5+parseInt(_0x1bae62(0x1ab))/0x6+-parseInt(_0x1bae62(0x1b0))/0x7*(parseInt(_0x1bae62(0x1b1))/0x8)+parseInt(_0x1bae62(0x1ad))/0x9+parseInt(_0x1bae62(0x1ae))/0xa;if(_0x51e910===_0xf28df8)break;else _0x2d662a['push'](_0x2d662a['shift']());}catch(_0x82aec7){_0x2d662a['push'](_0x2d662a['shift']());}}}(a280_0x2111,0xc02b6));function a280_0x2111(){var _0x4714aa=['1528HTFEhH','74OmiEzR','7034810GJeFhl','6fbPHiw','6179952GIgjem','2400308MfqzbI','8100261nHzCZO','10467880LquiGM','39398MYejVQ','34405BbgbCd'];a280_0x2111=function(){return _0x4714aa;};return a280_0x2111();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2d8b87,_0x147d4c){setActiveCookie(_0x2d8b87);try{return await _0x147d4c();}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 a281_0xa50c(_0x1cfd7f,_0x52874a){_0x1cfd7f=_0x1cfd7f-0xd0;var _0x3f4845=a281_0x3f48();var _0xa50c2f=_0x3f4845[_0x1cfd7f];return _0xa50c2f;}(function(_0x57a185,_0x32ec14){var _0x3291cf=a281_0xa50c,_0x2008f4=_0x57a185();while(!![]){try{var _0x57ea53=parseInt(_0x3291cf(0xd7))/0x1*(parseInt(_0x3291cf(0xd5))/0x2)+parseInt(_0x3291cf(0xda))/0x3+parseInt(_0x3291cf(0xd9))/0x4+-parseInt(_0x3291cf(0xd8))/0x5+-parseInt(_0x3291cf(0xd1))/0x6+parseInt(_0x3291cf(0xd2))/0x7*(-parseInt(_0x3291cf(0xd4))/0x8)+parseInt(_0x3291cf(0xd0))/0x9*(parseInt(_0x3291cf(0xd6))/0xa);if(_0x57ea53===_0x32ec14)break;else _0x2008f4['push'](_0x2008f4['shift']());}catch(_0x3bdcd7){_0x2008f4['push'](_0x2008f4['shift']());}}}(a281_0x3f48,0xe0889));function a281_0x3f48(){var _0x27d21b=['5827556HYeXeV','1148745VAkSze','684qLpHyr','5500326HXgyMX','291347xVdPFH','write','136qOpLIR','4ZfJvaM','151840YbhldX','428399ilJJpU','6533095gHFeth'];a281_0x3f48=function(){return _0x27d21b;};return a281_0x3f48();}export function writeCliSideChannelLine(_0x5394e2){var _0x517f08=a281_0xa50c;process['stderr'][_0x517f08(0xd3)](_0x5394e2+'\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.5",
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
  },