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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
  561. package/lib/commands/page/react/create.js +0 -1
  562. package/lib/commands/page/react/detail.js +0 -1
  563. package/lib/commands/page/react/list.js +0 -1
  564. package/lib/commands/page/react/publish.js +0 -1
  565. package/lib/commands/page/react/shared.js +0 -1
  566. package/lib/commands/page/react/syntax.js +0 -1
  567. package/lib/commands/page/react/template.js +0 -1
  568. package/lib/commands/page/react/update.js +0 -1
@@ -1 +1 @@
1
- const a279_0x462793=a279_0x1687;(function(_0x2f1899,_0x511b71){const _0x751e21=a279_0x1687,_0x47f5f7=_0x2f1899();while(!![]){try{const _0x4517ca=-parseInt(_0x751e21(0x16a))/0x1+-parseInt(_0x751e21(0x18d))/0x2*(-parseInt(_0x751e21(0x181))/0x3)+parseInt(_0x751e21(0x17b))/0x4*(parseInt(_0x751e21(0x157))/0x5)+-parseInt(_0x751e21(0x165))/0x6*(-parseInt(_0x751e21(0x172))/0x7)+-parseInt(_0x751e21(0x154))/0x8+-parseInt(_0x751e21(0x171))/0x9*(-parseInt(_0x751e21(0x162))/0xa)+-parseInt(_0x751e21(0x175))/0xb;if(_0x4517ca===_0x511b71)break;else _0x47f5f7['push'](_0x47f5f7['shift']());}catch(_0x2d5e00){_0x47f5f7['push'](_0x47f5f7['shift']());}}}(a279_0x4c4f,0x22772));import a279_0x651b64 from'node:fs';import a279_0x39bd4c from'node:path';function a279_0x4c4f(){const _0x1218df=['3889754YPPZaf','slice','模板内容替换完成','padStart','getMonth','tableName:\x20\x22','48CxBcFQ','success','datasetCode','writeFile','template','getMinutes','32898zYmZej','message','replaceApiContent','toISOString','getHours','processFile','toDisplayTitle','pop','getSeconds','\x20},','formatLocalTimestamp','.tpl','32goEeXO','.ts','toLowerCase','.md','alias','.jsx','map','.tsx','charAt','name:\x20\x22','name','模板内容替换失败','856696dHntJo','开始处理模板内容替换','pad','20165qoSygD','error','replace','endsWith','includes','toComponentName','LOVRABET','tableName','promises','processDirectory','replaceContent','79710xNDOrq','readdir','info','1276218tBNAWe','toUpperCase','alias:\x20\x22','join','utf8','81785JisikD','now','split','isFile','datasetCode:\x20\x22','extname','processTemplate','279kfqoto','7uPaNuF','isDirectory','mkdir'];a279_0x4c4f=function(){return _0x1218df;};return a279_0x4c4f();}import{logger}from'../utils/logger.js';function a279_0x1687(_0x373d6b,_0x158ca8){_0x373d6b=_0x373d6b-0x151;const _0x4c4fb4=a279_0x4c4f();let _0x168707=_0x4c4fb4[_0x373d6b];return _0x168707;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a279_0x462793(0x156)](_0x547d88){const _0x45e13a=a279_0x462793;return String(_0x547d88)[_0x45e13a(0x178)](0x2,'0');}static[a279_0x462793(0x18b)](_0x50b16b){const _0x39dc98=a279_0x462793,_0xa21cf5=_0x50b16b['getFullYear'](),_0x4e545a=this['pad'](_0x50b16b[_0x39dc98(0x179)]()+0x1),_0x3be532=this[_0x39dc98(0x156)](_0x50b16b['getDate']()),_0xb753ac=this[_0x39dc98(0x156)](_0x50b16b[_0x39dc98(0x185)]()),_0x4e3874=this[_0x39dc98(0x156)](_0x50b16b[_0x39dc98(0x180)]()),_0x474bb3=this[_0x39dc98(0x156)](_0x50b16b[_0x39dc98(0x189)]());return{'createdAt':_0xa21cf5+'-'+_0x4e545a+'-'+_0x3be532+'\x20'+_0xb753ac+':'+_0x4e3874+':'+_0x474bb3,'createdDate':_0xa21cf5+'-'+_0x4e545a+'-'+_0x3be532,'createdTime':_0xb753ac+':'+_0x4e3874+':'+_0x474bb3};}static[a279_0x462793(0x15c)](_0x1d5273){const _0x11c6ee=a279_0x462793,_0x89bdb2=_0x1d5273[_0x11c6ee(0x16c)]('/')[_0x11c6ee(0x188)]()||_0x1d5273;return _0x89bdb2[_0x11c6ee(0x16c)]('-')[_0x11c6ee(0x193)](_0x3de648=>_0x3de648[_0x11c6ee(0x195)](0x0)[_0x11c6ee(0x166)]()+_0x3de648['slice'](0x1)['toLowerCase']())[_0x11c6ee(0x168)]('');}static[a279_0x462793(0x187)](_0x5bd3c5){const _0x4cfb3d=a279_0x462793,_0x3bff83=_0x5bd3c5[_0x4cfb3d(0x16c)]('/')[_0x4cfb3d(0x188)]()||_0x5bd3c5;return _0x3bff83[_0x4cfb3d(0x16c)]('-')[_0x4cfb3d(0x193)](_0x10a488=>_0x10a488[_0x4cfb3d(0x195)](0x0)[_0x4cfb3d(0x166)]()+_0x10a488[_0x4cfb3d(0x176)](0x1)['toLowerCase']())['join']('\x20');}static[a279_0x462793(0x161)](_0x3ebdc5,_0x39fba3,_0x162278){const _0x401090=a279_0x462793,_0x98886f=this[_0x401090(0x15c)](_0x39fba3),_0x1d2405=this['toDisplayTitle'](_0x39fba3),{createdAt:_0x5049a3,createdDate:_0x19b0ba,createdTime:_0x185f45}=this[_0x401090(0x18b)](new Date());let _0x5d238e=_0x3ebdc5[_0x401090(0x159)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x98886f)['replace'](/\{DisplayTitle\}/g,_0x1d2405)[_0x401090(0x159)](/\{PageName\}/g,_0x39fba3)[_0x401090(0x159)](/\{TemplateName\}/g,_0x162278)['replace'](/\{CreatedAt\}/g,_0x5049a3)[_0x401090(0x159)](/\{CreatedDate\}/g,_0x19b0ba)[_0x401090(0x159)](/\{CreatedTime\}/g,_0x185f45);return _0x5d238e;}static[a279_0x462793(0x183)](_0x28707f,_0xd09e9e,_0x36ea1e,_0x4d4d54,_0x365e53,_0x29129b,_0x2d1957,_0x17bdc4){const _0x21f2f3=a279_0x462793,_0x3e6bbf=new Date(),_0x324f8a=_0x3e6bbf[_0x21f2f3(0x184)](),_0x1cd04b=_0x36ea1e[_0x21f2f3(0x193)](_0x38baf6=>{const _0x410bfd=_0x21f2f3,_0x154e45=[_0x410bfd(0x16e)+_0x38baf6[_0x410bfd(0x17d)]+'\x22',_0x410bfd(0x17a)+_0x38baf6[_0x410bfd(0x15e)]+'\x22',_0x410bfd(0x151)+_0x38baf6[_0x410bfd(0x152)]+'\x22'];return _0x38baf6[_0x410bfd(0x191)]&&_0x154e45['push'](_0x410bfd(0x167)+_0x38baf6[_0x410bfd(0x191)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x154e45[_0x410bfd(0x168)](',\x20')+_0x410bfd(0x18a);})[_0x21f2f3(0x168)](''),_0x5e8918=_0x4d4d54||_0x36ea1e[0x0]?.[_0x21f2f3(0x191)]||'YourModel';let _0x1d076e=_0x28707f[_0x21f2f3(0x159)](/\{AppCode\}/g,_0xd09e9e)[_0x21f2f3(0x159)](/\{ModelConfigs\}/g,_0x1cd04b)[_0x21f2f3(0x159)](/\{ExampleModelName\}/g,_0x5e8918)[_0x21f2f3(0x159)](/\{ApiFileName\}/g,_0x365e53||'api')[_0x21f2f3(0x159)](/\{ConfigName\}/g,_0x29129b||'default')['replace'](/\{ClientConfigParam\}/g,_0x2d1957||'')[_0x21f2f3(0x159)](/\{VarPrefix\}/g,_0x17bdc4||_0x21f2f3(0x15d))[_0x21f2f3(0x159)](/\{CreatedAt\}/g,_0x324f8a);return _0x1d076e;}static async[a279_0x462793(0x170)](_0x5a9332,_0x1bd71d,_0x6c813e,_0x4818c1,_0x156730=!![]){const _0x259c92=a279_0x462793,_0x5e551e=Date['now']();try{_0x156730&&logger[_0x259c92(0x164)](_0x259c92(0x17f),_0x259c92(0x155),{'templatePath':_0x5a9332,'targetPath':_0x1bd71d,'pageName':_0x6c813e,'templateName':_0x4818c1});await a279_0x651b64[_0x259c92(0x15f)][_0x259c92(0x174)](_0x1bd71d,{'recursive':!![]}),await this[_0x259c92(0x160)](_0x5a9332,_0x1bd71d,_0x6c813e,_0x4818c1);if(_0x156730){const _0x667194=Date[_0x259c92(0x16b)]()-_0x5e551e;logger[_0x259c92(0x17c)]('template',_0x259c92(0x177),_0x667194,{'pageName':_0x6c813e,'templateName':_0x4818c1});}}catch(_0x3f8a64){if(_0x156730){const _0xedd212=Date[_0x259c92(0x16b)]()-_0x5e551e;logger[_0x259c92(0x158)](_0x259c92(0x17f),_0x259c92(0x153),{'templatePath':_0x5a9332,'targetPath':_0x1bd71d,'pageName':_0x6c813e,'templateName':_0x4818c1,'error':_0x3f8a64 instanceof Error?_0x3f8a64[_0x259c92(0x182)]:String(_0x3f8a64),'duration':_0xedd212});}throw _0x3f8a64;}}static async[a279_0x462793(0x160)](_0x4be36a,_0x110b28,_0x42b8a0,_0x1901df){const _0x1deb71=a279_0x462793,_0x3c3c99=await a279_0x651b64[_0x1deb71(0x15f)][_0x1deb71(0x163)](_0x4be36a,{'withFileTypes':!![]});for(const _0x290de6 of _0x3c3c99){const _0x431bb0=a279_0x39bd4c[_0x1deb71(0x168)](_0x4be36a,_0x290de6[_0x1deb71(0x152)]);let _0x84996b=a279_0x39bd4c[_0x1deb71(0x168)](_0x110b28,_0x290de6['name']);_0x290de6[_0x1deb71(0x152)][_0x1deb71(0x15a)](_0x1deb71(0x18c))&&(_0x84996b=a279_0x39bd4c[_0x1deb71(0x168)](_0x110b28,_0x290de6['name'][_0x1deb71(0x159)](/\.tpl$/,'')));if(_0x290de6[_0x1deb71(0x173)]())await a279_0x651b64[_0x1deb71(0x15f)][_0x1deb71(0x174)](_0x84996b,{'recursive':!![]}),await this[_0x1deb71(0x160)](_0x431bb0,_0x84996b,_0x42b8a0,_0x1901df);else _0x290de6[_0x1deb71(0x16d)]()&&await this[_0x1deb71(0x186)](_0x431bb0,_0x84996b,_0x42b8a0,_0x1901df);}}static async[a279_0x462793(0x186)](_0x5d4be2,_0x1d7208,_0x352af2,_0xa446b2){const _0x21b364=a279_0x462793,_0x1eaef2=a279_0x39bd4c[_0x21b364(0x16f)](_0x5d4be2)[_0x21b364(0x18f)]();_0x5d4be2['endsWith'](_0x21b364(0x18c))&&(_0x1d7208=_0x1d7208['replace'](/\.tpl$/,''));const _0x266de2=[_0x21b364(0x194),_0x21b364(0x18e),_0x21b364(0x192),'.js','.json',_0x21b364(0x190),'.css','.scss',_0x21b364(0x18c)];if(_0x266de2[_0x21b364(0x15b)](_0x1eaef2)||_0x5d4be2[_0x21b364(0x15a)](_0x21b364(0x18c))){const _0x5c71e1=await a279_0x651b64[_0x21b364(0x15f)]['readFile'](_0x5d4be2,_0x21b364(0x169)),_0x2b403c=this[_0x21b364(0x161)](_0x5c71e1,_0x352af2,_0xa446b2);await a279_0x651b64['promises'][_0x21b364(0x17e)](_0x1d7208,_0x2b403c,_0x21b364(0x169));}else await a279_0x651b64['promises']['copyFile'](_0x5d4be2,_0x1d7208);}}
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(_0x4818d9,_0x3631ef){const _0x59ca33=a280_0x2aad,_0x549310=_0x4818d9();while(!![]){try{const _0x4c4b18=-parseInt(_0x59ca33(0x80))/0x1+parseInt(_0x59ca33(0x6a))/0x2+-parseInt(_0x59ca33(0x77))/0x3+-parseInt(_0x59ca33(0x71))/0x4+-parseInt(_0x59ca33(0x7e))/0x5+-parseInt(_0x59ca33(0x6e))/0x6*(parseInt(_0x59ca33(0x6d))/0x7)+-parseInt(_0x59ca33(0x6c))/0x8*(-parseInt(_0x59ca33(0x73))/0x9);if(_0x4c4b18===_0x3631ef)break;else _0x549310['push'](_0x549310['shift']());}catch(_0x311ea3){_0x549310['push'](_0x549310['shift']());}}}(a280_0x5a74,0xa9ad7));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a280_0x15bc62 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';function a280_0x5a74(){const _0xac958f=['update-check.json','now','3095932bhDkzU','toLowerCase','1791AmHYpy','trim',',\x20run:\x20','valid','2757816ruqgJz','\x20update','stringify','stableVersion','gte','latest','number','122160LOOlLN','.cache','1311936rsRXqm','parse','utf8','2280416pfPmyx','checkedAt','143472wnGUHY','14oqxTUq','2953356JHqwKN'];a280_0x5a74=function(){return _0xac958f;};return a280_0x5a74();}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x303886=a280_0x2aad,_0x4662d2=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x303886(0x74)]()[_0x303886(0x72)]();return _0x4662d2==='1'||_0x4662d2==='true'||_0x4662d2==='yes';}function cacheRoot(){const _0x4d96bd=a280_0x2aad;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4d96bd(0x7f));}export function getUpdateNoticeCachePath(){const _0x23f5af=a280_0x2aad;return join(cacheRoot(),'rabetbase-cli',_0x23f5af(0x6f));}async function readUpdateNoticeCache(){const _0x203e93=a280_0x2aad;try{const _0x1114c3=await readFile(getUpdateNoticeCachePath(),_0x203e93(0x82)),_0x45a272=JSON[_0x203e93(0x81)](_0x1114c3);if(!_0x45a272||typeof _0x45a272!=='object')return{};return _0x45a272;}catch{return{};}}function a280_0x2aad(_0x330455,_0x50efe8){_0x330455=_0x330455-0x6a;const _0x5a74df=a280_0x5a74();let _0x2aadd9=_0x5a74df[_0x330455];return _0x2aadd9;}async function writeUpdateNoticeCache(_0x5b0b7c){const _0x45526e=a280_0x2aad;try{const _0x2559b1=getUpdateNoticeCachePath();await mkdir(dirname(_0x2559b1),{'recursive':!![]}),await writeFile(_0x2559b1,JSON[_0x45526e(0x79)](_0x5b0b7c,null,0x2)+'\x0a',_0x45526e(0x82));}catch{}}function isFreshCheck(_0x2625d7,_0x2ff459){const _0x4481c1=a280_0x2aad;return typeof _0x2625d7[_0x4481c1(0x6b)]===_0x4481c1(0x7d)&&_0x2ff459-_0x2625d7['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x24f476,_0x2ed3f7,_0x3fabc6){return _0x24f476['lastNotifiedVersion']===_0x2ed3f7&&typeof _0x24f476['lastNotifiedAt']==='number'&&_0x3fabc6-_0x24f476['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x42bda3){return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+'/v/'+_0x42bda3;}export async function resolveLatestUpdateNotice(){const _0x31beb5=a280_0x2aad;if(isUpdateNoticeDisabled())return null;try{const _0x178ccc=Date[_0x31beb5(0x70)](),_0x2bd1ff=getCliVersion(),_0x7321e4=await readUpdateNoticeCache();let _0x2f5be3=isFreshCheck(_0x7321e4,_0x178ccc)?_0x7321e4[_0x31beb5(0x7c)]?.[_0x31beb5(0x74)]():undefined;if(!_0x2f5be3&&!isFreshCheck(_0x7321e4,_0x178ccc)){const _0x325d3=await getCliVersionPolicy();_0x2f5be3=_0x325d3?.[_0x31beb5(0x7a)]?.[_0x31beb5(0x74)]()||undefined,await writeUpdateNoticeCache({..._0x7321e4,'checkedAt':_0x178ccc,'latest':_0x2f5be3,'failed':!_0x2f5be3});}if(!_0x2f5be3||!a280_0x15bc62['valid'](_0x2bd1ff)||!a280_0x15bc62[_0x31beb5(0x76)](_0x2f5be3))return null;if(a280_0x15bc62[_0x31beb5(0x7b)](_0x2bd1ff,_0x2f5be3))return null;if(isRecentlyNotified(_0x7321e4,_0x2f5be3,_0x178ccc))return null;const _0x3fc77c=CLI_BIN_NAME+_0x31beb5(0x78);return await writeUpdateNoticeCache({..._0x7321e4,'checkedAt':isFreshCheck(_0x7321e4,_0x178ccc)?_0x7321e4[_0x31beb5(0x6b)]:_0x178ccc,'latest':_0x2f5be3,'failed':![],'lastNotifiedVersion':_0x2f5be3,'lastNotifiedAt':_0x178ccc}),{'command':_0x3fc77c,'current':_0x2bd1ff,'latest':_0x2f5be3,'url':buildNpmVersionUrl(_0x2f5be3),'message':CLI_BIN_NAME+'\x20'+_0x2f5be3+'\x20available,\x20current\x20'+_0x2bd1ff+_0x31beb5(0x75)+_0x3fc77c};}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 a281_0x51fd(){var _0x1722cd=['5559256WgAezs','68734eYnHDT','9QCaYrs','5077751kthrLn','6iqYVrD','43230oHHnCk','92199putqvv','196mbAMEx','6syPdGE','3835970IdycxI','26339599VGlOOI'];a281_0x51fd=function(){return _0x1722cd;};return a281_0x51fd();}(function(_0xb25281,_0x551f8e){var _0x580a42=a281_0x5b7c,_0x3ac94a=_0xb25281();while(!![]){try{var _0x1078d3=parseInt(_0x580a42(0x152))/0x1*(parseInt(_0x580a42(0x14f))/0x2)+parseInt(_0x580a42(0x154))/0x3+-parseInt(_0x580a42(0x14a))/0x4*(parseInt(_0x580a42(0x153))/0x5)+-parseInt(_0x580a42(0x14b))/0x6*(parseInt(_0x580a42(0x151))/0x7)+-parseInt(_0x580a42(0x14e))/0x8+parseInt(_0x580a42(0x150))/0x9*(-parseInt(_0x580a42(0x14c))/0xa)+parseInt(_0x580a42(0x14d))/0xb;if(_0x1078d3===_0x551f8e)break;else _0x3ac94a['push'](_0x3ac94a['shift']());}catch(_0x5516de){_0x3ac94a['push'](_0x3ac94a['shift']());}}}(a281_0x51fd,0x629b5));import{VERSION}from'../generated/build-info.js';function a281_0x5b7c(_0x14aac3,_0x1d4d17){_0x14aac3=_0x14aac3-0x14a;var _0x51fdb4=a281_0x51fd();var _0x5b7c28=_0x51fdb4[_0x14aac3];return _0x5b7c28;}export function getCliVersion(){return VERSION;}
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 a282_0x4867(){var _0x2ca6ec=['1492QTYxIF','57RsUdFO','4250034MHYiSW','4366586YLkOMM','16615NDACjH','2939768sCzHwQ','2021690ioIrQJ','5934768dVAABh','18ZeApRD','54452mNeCLb'];a282_0x4867=function(){return _0x2ca6ec;};return a282_0x4867();}(function(_0x22bf2f,_0x5a69ed){var _0x26b2d7=a282_0x165c,_0x122f18=_0x22bf2f();while(!![]){try{var _0x3ee0d0=-parseInt(_0x26b2d7(0x74))/0x1*(parseInt(_0x26b2d7(0x72))/0x2)+-parseInt(_0x26b2d7(0x75))/0x3+-parseInt(_0x26b2d7(0x73))/0x4*(-parseInt(_0x26b2d7(0x6d))/0x5)+parseInt(_0x26b2d7(0x70))/0x6+parseInt(_0x26b2d7(0x6c))/0x7+-parseInt(_0x26b2d7(0x6e))/0x8*(-parseInt(_0x26b2d7(0x71))/0x9)+parseInt(_0x26b2d7(0x6f))/0xa;if(_0x3ee0d0===_0x5a69ed)break;else _0x122f18['push'](_0x122f18['shift']());}catch(_0x20e1be){_0x122f18['push'](_0x122f18['shift']());}}}(a282_0x4867,0xc86dc));function a282_0x165c(_0xcb7242,_0x18c85a){_0xcb7242=_0xcb7242-0x6c;var _0x486753=a282_0x4867();var _0x165cef=_0x486753[_0xcb7242];return _0x165cef;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x200d47,_0x3f782a){setActiveCookie(_0x200d47);try{return await _0x3f782a();}finally{clearActiveCookie();}}
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 a283_0xd982(_0x1403cd,_0x5002f2){_0x1403cd=_0x1403cd-0x105;var _0x3a720b=a283_0x3a72();var _0xd982b5=_0x3a720b[_0x1403cd];return _0xd982b5;}function a283_0x3a72(){var _0x5471ab=['1171098oIFedF','175994LVZceE','194934NwkUrQ','4191qaIcYr','932054xBARhK','812WOcUME','5945376JTZvmx','5taSQPS','532439Jelgtz','stderr','write'];a283_0x3a72=function(){return _0x5471ab;};return a283_0x3a72();}(function(_0x31cadd,_0x5b124b){var _0x2b08e2=a283_0xd982,_0x39e21f=_0x31cadd();while(!![]){try{var _0x200faf=parseInt(_0x2b08e2(0x109))/0x1+parseInt(_0x2b08e2(0x105))/0x2+-parseInt(_0x2b08e2(0x10f))/0x3*(-parseInt(_0x2b08e2(0x106))/0x4)+-parseInt(_0x2b08e2(0x108))/0x5*(-parseInt(_0x2b08e2(0x10e))/0x6)+-parseInt(_0x2b08e2(0x10d))/0x7+-parseInt(_0x2b08e2(0x107))/0x8+-parseInt(_0x2b08e2(0x10c))/0x9;if(_0x200faf===_0x5b124b)break;else _0x39e21f['push'](_0x39e21f['shift']());}catch(_0x3c3cd4){_0x39e21f['push'](_0x39e21f['shift']());}}}(a283_0x3a72,0x6596e));export function writeCliSideChannelLine(_0x20b59b){var _0x29c7c3=a283_0xd982;process[_0x29c7c3(0x10a)][_0x29c7c3(0x10b)](_0x20b59b+'\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.3",
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
  },
@@ -1 +0,0 @@
1
- const a140_0x2fd568=a140_0x2bbf;(function(_0x47ef01,_0x5317f9){const _0x345c66=a140_0x2bbf,_0x18a8c7=_0x47ef01();while(!![]){try{const _0x28da4a=-parseInt(_0x345c66(0xba))/0x1*(parseInt(_0x345c66(0xe2))/0x2)+-parseInt(_0x345c66(0xd4))/0x3*(-parseInt(_0x345c66(0xb9))/0x4)+parseInt(_0x345c66(0xc6))/0x5+-parseInt(_0x345c66(0xb6))/0x6+parseInt(_0x345c66(0xc5))/0x7+-parseInt(_0x345c66(0xc7))/0x8*(-parseInt(_0x345c66(0xd5))/0x9)+parseInt(_0x345c66(0xbf))/0xa*(-parseInt(_0x345c66(0xca))/0xb);if(_0x28da4a===_0x5317f9)break;else _0x18a8c7['push'](_0x18a8c7['shift']());}catch(_0x396ac3){_0x18a8c7['push'](_0x18a8c7['shift']());}}}(a140_0x4dd1,0xe6840));import{APPCODE_FLAG}from'../../../commands/common/flags.js';import{buildInitialFiles}from'../../../commands/page/react/template.js';import{createReactPage,getI18nInfo}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a140_0x4dd1(){const _0x51da3b=['name','Create\x20a\x20React\x20custom\x20page\x20with\x20starter\x20files','1468412nJRrpP','enableI18n','en-US','pageId','write','str','pageName','2087622CBtnZS','string','Created\x20React\x20custom\x20page\x20','528164FYKVIL','1Fbgmqs','warnings','page.react-create','validation','自定义页面_','40bupRfd','Optional\x20complete\x20page\x20files\x20as\x20JSON','keys','files','version','trim','540897VSaHRQ','7709250SPXRjx','21688cMrQZY','zh-CN','length','905795AiIOtR','react-create','page-content','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','apiError','Optional\x20React\x20custom\x20page\x20name\x20(1-100\x20characters)','parent-menu-id','appCode','page','number','3thczio','2007qEPFcq','pageName\x20cannot\x20exceed\x20100\x20characters.','isInteger','now','React\x20custom\x20page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','compress','menuPath','langs','isNaN','input','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.'];a140_0x4dd1=function(){return _0x51da3b;};return a140_0x4dd1();}import{buildReactPageDevelopmentUrl,buildReactPageEditUrl,parseReactPageContent,validateReactPageContent}from'./shared.js';const DEFAULT_REACT_PAGE_LANGUAGES=[a140_0x2fd568(0xc8),a140_0x2fd568(0xb1)];function a140_0x2bbf(_0x218bc1,_0x13c1fa){_0x218bc1=_0x218bc1-0xb0;const _0x4dd11c=a140_0x4dd1();let _0x2bbff8=_0x4dd11c[_0x218bc1];return _0x2bbff8;}export const pageReactCreate={'service':a140_0x2fd568(0xd2),'command':a140_0x2fd568(0xcb),'description':a140_0x2fd568(0xe1),'risk':a140_0x2fd568(0xb3),'defaultOutputFormat':a140_0x2fd568(0xda),'structuredErrors':!![],'flags':[{'name':a140_0x2fd568(0xe0),'type':'string','description':a140_0x2fd568(0xcf)},{'name':'parent-menu-id','type':a140_0x2fd568(0xd3),'description':a140_0x2fd568(0xcd)},{'name':a140_0x2fd568(0xcc),'type':a140_0x2fd568(0xb7),'description':a140_0x2fd568(0xc0)},APPCODE_FLAG],async 'validate'(_0x4c1827){await validateReactPageContent(readInput(_0x4c1827)['files']);},async 'dryRun'(_0x3695d8){return buildMutationData(await prepare(_0x3695d8));},async 'execute'(_0x3b63ed){const _0x5c2f1d=a140_0x2fd568,_0x4cec3b=await prepare(_0x3b63ed),_0x2f049b=await createReactPage(_0x4cec3b[_0x5c2f1d(0xde)]);if(!Number['isInteger'](_0x2f049b['pageId'])||_0x2f049b[_0x5c2f1d(0xb2)]<=0x0)throw CliErrors[_0x5c2f1d(0xce)](_0x5c2f1d(0xd9));return{'ok':!![],'data':buildMutationData(_0x4cec3b,_0x2f049b),'message':_0x5c2f1d(0xb8)+_0x2f049b[_0x5c2f1d(0xb2)]+'.'};}};async function prepare(_0x29c4d7){const _0x1ed193=a140_0x2fd568;if(_0x29c4d7[_0x1ed193(0xb4)](_0x1ed193(0xcc))[_0x1ed193(0xc4)]())return{'input':readInput(_0x29c4d7),'warnings':[]};let _0x4caa56=DEFAULT_REACT_PAGE_LANGUAGES,_0x9189da=[];try{const _0x1fb463=await getI18nInfo(_0x29c4d7[_0x1ed193(0xd1)]);_0x1fb463[_0x1ed193(0xb0)]&&_0x1fb463[_0x1ed193(0xdc)]?.[_0x1ed193(0xc9)]&&(_0x4caa56=_0x1fb463['langs']);}catch{_0x9189da=['Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.'];}return{'input':readInput(_0x29c4d7,_0x4caa56),'warnings':_0x9189da};}function readInput(_0x5cf699,_0x8c5a91=DEFAULT_REACT_PAGE_LANGUAGES){const _0x3febaa=a140_0x2fd568,_0x1e5567=_0x5cf699[_0x3febaa(0xb4)](_0x3febaa(0xe0))[_0x3febaa(0xc4)]()||_0x3febaa(0xbe)+Date[_0x3febaa(0xd8)]();if(_0x1e5567[_0x3febaa(0xc9)]>0x64)throw CliErrors[_0x3febaa(0xbd)](_0x3febaa(0xd6));const _0xba0b72=_0x5cf699['num'](_0x3febaa(0xd0),NaN),_0x2f1be1=!Number[_0x3febaa(0xdd)](_0xba0b72);if(_0x2f1be1&&(!Number[_0x3febaa(0xd7)](_0xba0b72)||_0xba0b72<=0x0))throw CliErrors[_0x3febaa(0xbd)](_0x3febaa(0xdf));const _0x31e942=_0x5cf699['str']('page-content');return{'appCode':_0x5cf699[_0x3febaa(0xd1)],'pageName':_0x1e5567,..._0x2f1be1?{'parentMenuId':_0xba0b72}:{},'createMenu':!![],'files':_0x31e942[_0x3febaa(0xc4)]()?parseReactPageContent(_0x31e942):buildInitialFiles(_0x1e5567,_0x8c5a91)};}function buildMutationData(_0x43f79f,_0x39c2d9){const _0x187159=a140_0x2fd568,{input:_0x395a72}=_0x43f79f,_0x399b73=_0x39c2d9&&buildReactPageDevelopmentUrl(_0x395a72[_0x187159(0xd1)],_0x39c2d9[_0x187159(0xdb)]),_0x41031f=_0x39c2d9&&buildReactPageEditUrl(_0x395a72[_0x187159(0xd1)],_0x39c2d9['pageId']);return{'operation':_0x187159(0xbc),'selector':{'appCode':_0x395a72['appCode'],'pageName':_0x395a72[_0x187159(0xb5)]},'before':null,'after':{'pageId':_0x39c2d9?.[_0x187159(0xb2)]??null,'pageName':_0x39c2d9?.[_0x187159(0xb5)]??_0x395a72[_0x187159(0xb5)],'appCode':_0x39c2d9?.[_0x187159(0xd1)]??_0x395a72[_0x187159(0xd1)],'version':_0x39c2d9?.[_0x187159(0xc3)]??null,'menuId':_0x39c2d9?.['menuId']??null,'menuPath':_0x39c2d9?.[_0x187159(0xdb)]??null,'files':_0x39c2d9?.[_0x187159(0xc2)]??Object[_0x187159(0xc1)](_0x395a72[_0x187159(0xc2)])},'dryRun':_0x39c2d9===undefined,'request':_0x395a72,..._0x399b73?{'pageUrl':_0x399b73}:{},..._0x41031f?{'editPageUrl':_0x41031f}:{},'warnings':[..._0x43f79f[_0x187159(0xbb)],..._0x39c2d9&&!_0x399b73?['React\x20custom\x20page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']:[]]};}
@@ -1 +0,0 @@
1
- const a141_0x21e1b9=a141_0x6fd2;function a141_0x6fd2(_0x4e4f94,_0x56a876){_0x4e4f94=_0x4e4f94-0xad;const _0x10d3ee=a141_0x10d3();let _0x6fd293=_0x10d3ee[_0x4e4f94];return _0x6fd293;}(function(_0x5ae842,_0x32b662){const _0x37c868=a141_0x6fd2,_0x8b1b31=_0x5ae842();while(!![]){try{const _0x181bc7=-parseInt(_0x37c868(0xc5))/0x1*(parseInt(_0x37c868(0xb6))/0x2)+parseInt(_0x37c868(0xbc))/0x3+parseInt(_0x37c868(0xb5))/0x4*(-parseInt(_0x37c868(0xae))/0x5)+-parseInt(_0x37c868(0xad))/0x6*(-parseInt(_0x37c868(0xb2))/0x7)+parseInt(_0x37c868(0xb9))/0x8+parseInt(_0x37c868(0xc6))/0x9*(-parseInt(_0x37c868(0xc2))/0xa)+parseInt(_0x37c868(0xb3))/0xb;if(_0x181bc7===_0x32b662)break;else _0x8b1b31['push'](_0x8b1b31['shift']());}catch(_0x3c2a13){_0x8b1b31['push'](_0x8b1b31['shift']());}}}(a141_0x10d3,0x322d9));import{getReactPageSource}from'../../../core/api-client.js';import{buildReactPageEditUrl,buildReactPageRuntimeUrl,readReactPageId,REACT_PAGE_APPCODE_FLAG_OPTIONAL,resolveReactPageDevelopmentUrl}from'./shared.js';export const pageReactDetail={'service':a141_0x21e1b9(0xc4),'command':'react-detail','description':'Show\x20a\x20React\x20custom\x20page\x20and\x20all\x20of\x20its\x20files','risk':a141_0x21e1b9(0xba),'defaultOutputFormat':a141_0x21e1b9(0xb4),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':'React\x20custom\x20page\x20ID'},REACT_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3520f1){readReactPageId(_0x3520f1);},async 'execute'(_0x2b124f){const _0x543013=a141_0x21e1b9,_0x5eb6b7=readReactPageId(_0x2b124f),_0x9ca6fc=await getReactPageSource(_0x5eb6b7),{bundle:_0x457458,createTime:_0x428b88,updateTime:_0x4999e4,..._0x47dce4}=_0x9ca6fc,_0x110a23=_0x9ca6fc['id']??_0x5eb6b7,_0x76ff13=_0x9ca6fc[_0x543013(0xb8)]?.[_0x543013(0xb7)]()||_0x2b124f[_0x543013(0xbe)]('appcode')[_0x543013(0xb7)](),_0x4715a9=buildReactPageRuntimeUrl(_0x76ff13,_0x9ca6fc[_0x543013(0xb0)]),_0x1d3d65=buildReactPageEditUrl(_0x76ff13,_0x110a23),_0x217252=await resolveReactPageDevelopmentUrl(_0x76ff13,_0x110a23,_0x2b124f[_0x543013(0xc1)]);return{'ok':!![],'data':{..._0x47dce4,..._0x4715a9?{'runtimePageUrl':_0x4715a9}:{},..._0x217252?{'pageUrl':_0x217252}:{},..._0x1d3d65?{'editPageUrl':_0x1d3d65}:{},..._0x428b88==null?{}:{'createTime':formatTime(_0x428b88)},..._0x4999e4==null?{}:{'updateTime':formatTime(_0x4999e4)}},'message':'Retrieved\x20React\x20custom\x20page\x20'+_0x5eb6b7+'.'};}};function a141_0x10d3(){const _0xf491f=['198saIrjC','5322JZfSFb','15nWERih','getMonth','pageCode','getMinutes','434hVqTiR','2350293cGUBBh','compress','78928cUpJkW','176QrdtSF','trim','appCode','777360XGnCrJ','read','join','1005672tTbbXx','isNaN','str','getSeconds','getTime','cookie','173570colNtp','padStart','page','619TemUeC'];a141_0x10d3=function(){return _0xf491f;};return a141_0x10d3();}function formatTime(_0x42c97a){const _0x4f1952=a141_0x21e1b9,_0x444826=new Date(_0x42c97a);if(Number[_0x4f1952(0xbd)](_0x444826[_0x4f1952(0xc0)]()))return String(_0x42c97a);const _0x2a63dd=[_0x444826['getFullYear'](),String(_0x444826[_0x4f1952(0xaf)]()+0x1)[_0x4f1952(0xc3)](0x2,'0'),String(_0x444826['getDate']())[_0x4f1952(0xc3)](0x2,'0')][_0x4f1952(0xbb)]('-'),_0x4c3a47=[String(_0x444826['getHours']())[_0x4f1952(0xc3)](0x2,'0'),String(_0x444826[_0x4f1952(0xb1)]())[_0x4f1952(0xc3)](0x2,'0'),String(_0x444826[_0x4f1952(0xbf)]())[_0x4f1952(0xc3)](0x2,'0')][_0x4f1952(0xbb)](':');return _0x2a63dd+'\x20'+_0x4c3a47;}
@@ -1 +0,0 @@
1
- const a142_0x1b3170=a142_0x8c13;(function(_0x48cbc1,_0x553ec5){const _0x53ee05=a142_0x8c13,_0x5d8f08=_0x48cbc1();while(!![]){try{const _0x5bd0a0=parseInt(_0x53ee05(0x1ef))/0x1+-parseInt(_0x53ee05(0x1ee))/0x2+-parseInt(_0x53ee05(0x1ea))/0x3+parseInt(_0x53ee05(0x1ec))/0x4+-parseInt(_0x53ee05(0x1e1))/0x5+parseInt(_0x53ee05(0x1e7))/0x6+-parseInt(_0x53ee05(0x1dd))/0x7*(-parseInt(_0x53ee05(0x1e9))/0x8);if(_0x5bd0a0===_0x553ec5)break;else _0x5d8f08['push'](_0x5d8f08['shift']());}catch(_0x5bf115){_0x5d8f08['push'](_0x5d8f08['shift']());}}}(a142_0x2d04,0xee368));import{APPCODE_FLAG}from'../../../commands/common/flags.js';function a142_0x2d04(){const _0x49c083=['2290589zsJKTC','react-list','flatMap','label','8816755PNgcUO','pageId','\x20React\x20custom\x20page(s).','menus','read','Found\x20','10349052waihxi','compress','8ZgPKJd','3377721bavBcu','length','3354424TGJALp','appCode','1457028QXBtqY','1702817NGcGjJ','react','page','path'];a142_0x2d04=function(){return _0x49c083;};return a142_0x2d04();}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a142_0x8c13(_0x50c559,_0x1f4b51){_0x50c559=_0x50c559-0x1dd;const _0x2d04fe=a142_0x2d04();let _0x8c133c=_0x2d04fe[_0x50c559];return _0x8c133c;}import{buildReactPageDevelopmentUrl,buildReactPageEditUrl}from'./shared.js';export const pageReactList={'service':a142_0x1b3170(0x1f1),'command':a142_0x1b3170(0x1de),'description':'List\x20React\x20custom\x20pages\x20in\x20the\x20current\x20app','risk':a142_0x1b3170(0x1e5),'defaultOutputFormat':a142_0x1b3170(0x1e8),'structuredErrors':!![],'flags':[APPCODE_FLAG],async 'execute'(_0x1a9a27){const _0x5431bf=a142_0x1b3170,_0x223166=(await fetchMenuSnapshot(_0x1a9a27[_0x5431bf(0x1ed)],_0x1a9a27['cookie']))[_0x5431bf(0x1e4)][_0x5431bf(0x1df)](_0x288ee7=>{const _0x2799bd=_0x5431bf;if(_0x288ee7['type']!==_0x2799bd(0x1f0)||_0x288ee7[_0x2799bd(0x1e2)]==null)return[];const _0x173097=buildReactPageDevelopmentUrl(_0x1a9a27['appCode'],_0x288ee7[_0x2799bd(0x1f2)]),_0x2b93bb=buildReactPageEditUrl(_0x1a9a27[_0x2799bd(0x1ed)],_0x288ee7[_0x2799bd(0x1e2)]);return[{'pageId':_0x288ee7[_0x2799bd(0x1e2)],'label':_0x288ee7[_0x2799bd(0x1e0)],..._0x173097?{'pageUrl':_0x173097}:{},..._0x2b93bb?{'editPageUrl':_0x2b93bb}:{}}];});return{'ok':!![],'data':{'pages':_0x223166},'message':_0x223166['length']===0x0?'No\x20React\x20custom\x20pages\x20found.':_0x5431bf(0x1e6)+_0x223166[_0x5431bf(0x1eb)]+_0x5431bf(0x1e3)};}};
@@ -1 +0,0 @@
1
- const a143_0x239d91=a143_0x436f;(function(_0x371a9f,_0x15ab5d){const _0x57fb80=a143_0x436f,_0x14d8a8=_0x371a9f();while(!![]){try{const _0x1a8132=parseInt(_0x57fb80(0x1f8))/0x1+parseInt(_0x57fb80(0x1fe))/0x2+-parseInt(_0x57fb80(0x204))/0x3+parseInt(_0x57fb80(0x1e7))/0x4+-parseInt(_0x57fb80(0x1fb))/0x5*(parseInt(_0x57fb80(0x205))/0x6)+-parseInt(_0x57fb80(0x208))/0x7*(parseInt(_0x57fb80(0x1fc))/0x8)+-parseInt(_0x57fb80(0x207))/0x9*(parseInt(_0x57fb80(0x1ea))/0xa);if(_0x1a8132===_0x15ab5d)break;else _0x14d8a8['push'](_0x14d8a8['shift']());}catch(_0x1e0185){_0x14d8a8['push'](_0x14d8a8['shift']());}}}(a143_0x1532,0x8ee23));import{getReactPageSource,publishReactPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a143_0x436f(_0x186098,_0x3fe8bc){_0x186098=_0x186098-0x1e7;const _0x1532f5=a143_0x1532();let _0x436ff3=_0x1532f5[_0x186098];return _0x436ff3;}import{buildReactPageEditUrl,buildReactPageRuntimeUrl,readReactPageId,resolveReactPageDevelopmentUrl}from'./shared.js';export const pageReactPublish={'service':a143_0x239d91(0x209),'command':a143_0x239d91(0x1f9),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20React\x20custom\x20page','risk':a143_0x239d91(0x1f7),'defaultOutputFormat':a143_0x239d91(0x1f5),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a143_0x239d91(0x1fd)},{'name':a143_0x239d91(0x1e9),'type':a143_0x239d91(0x1fa),'description':a143_0x239d91(0x1ee)}],async 'validate'(_0x2c91ca){readReactPageId(_0x2c91ca);},async 'dryRun'(_0xcc808b){return buildMutationData(readInput(_0xcc808b));},async 'execute'(_0x41b2bd){const _0x2268f5=a143_0x239d91,_0x5dba9c=readInput(_0x41b2bd),_0x3d3207=await publishReactPage(_0x5dba9c);if(!Number['isInteger'](_0x3d3207)||_0x3d3207!==_0x5dba9c[_0x2268f5(0x1ec)])throw CliErrors[_0x2268f5(0x1f2)](_0x2268f5(0x1f6));const _0x466d52=await getReactPageSource(_0x5dba9c[_0x2268f5(0x1ec)]);if(_0x466d52[_0x2268f5(0x1f4)]!==_0x2268f5(0x1e8))throw CliErrors[_0x2268f5(0x1f2)](_0x2268f5(0x202)+(_0x466d52[_0x2268f5(0x1f4)]??_0x2268f5(0x206))+'.');const _0x241259=_0x466d52['appCode']?.['trim'](),_0x56cd8c=buildReactPageEditUrl(_0x241259,_0x5dba9c[_0x2268f5(0x1ec)]),_0x104f8a=await resolveReactPageDevelopmentUrl(_0x241259,_0x5dba9c[_0x2268f5(0x1ec)],_0x41b2bd[_0x2268f5(0x201)]),_0x1016f6=buildMutationData(_0x5dba9c,!![],_0x104f8a,_0x56cd8c);_0x241259&&!_0x104f8a&&_0x1016f6['warnings'][_0x2268f5(0x1f1)](_0x2268f5(0x1ff));const _0x1986b6=buildReactPageRuntimeUrl(_0x466d52[_0x2268f5(0x1eb)],_0x466d52[_0x2268f5(0x1ef)]);return _0x1986b6?_0x1016f6[_0x2268f5(0x1ed)]=_0x1986b6:_0x1016f6[_0x2268f5(0x1f0)]['push'](_0x2268f5(0x203)),{'ok':!![],'data':_0x1016f6,'message':_0x2268f5(0x1f3)+_0x5dba9c[_0x2268f5(0x1ec)]+'.'};}};function a143_0x1532(){const _0x2ef3c0=['Optional\x20publish\x20remark','pageCode','warnings','push','apiError','Published\x20React\x20custom\x20page\x20','status','compress','React\x20custom\x20page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','high-risk-write','644114OtdJij','react-publish','string','6810BjGFHO','7007104AssLMY','React\x20custom\x20page\x20ID','2294046bACkSh','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page.react-publish','cookie','React\x20custom\x20page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','379539QvvrVy','714NYYPlR','unknown','203139YGGBWr','7GLwOwf','page','3265164DniKuz','FORMAL','remark','380ZzwMmm','appCode','pageId','runtimePageUrl'];a143_0x1532=function(){return _0x2ef3c0;};return a143_0x1532();}function readInput(_0x198a0f){const _0x133a5e=a143_0x239d91,_0xfe8cb4=readReactPageId(_0x198a0f),_0x3c1fff=_0x198a0f['str'](_0x133a5e(0x1e9))['trim']();return{'pageId':_0xfe8cb4,..._0x3c1fff?{'remark':_0x3c1fff}:{}};}function buildMutationData(_0x28ef48,_0x388cc4=![],_0x48c74b,_0x243bdc){const _0xca8e7e=a143_0x239d91;return{'operation':_0xca8e7e(0x200),'selector':{'pageId':_0x28ef48['pageId']},'before':null,'after':{'pageId':_0x28ef48[_0xca8e7e(0x1ec)],'status':'FORMAL'},'dryRun':!_0x388cc4,'request':_0x28ef48,..._0x48c74b?{'pageUrl':_0x48c74b}:{},..._0x243bdc?{'editPageUrl':_0x243bdc}:{},'warnings':[]};}
@@ -1 +0,0 @@
1
- (function(_0xcb722f,_0x46a02f){const _0x493c24=a144_0x3ce2,_0xcdcc1b=_0xcb722f();while(!![]){try{const _0x4865f0=parseInt(_0x493c24(0xb6))/0x1+parseInt(_0x493c24(0xad))/0x2*(parseInt(_0x493c24(0xa3))/0x3)+parseInt(_0x493c24(0xb1))/0x4*(parseInt(_0x493c24(0x9d))/0x5)+-parseInt(_0x493c24(0xbc))/0x6+parseInt(_0x493c24(0xbb))/0x7*(parseInt(_0x493c24(0xa0))/0x8)+-parseInt(_0x493c24(0xac))/0x9+-parseInt(_0x493c24(0xb8))/0xa*(parseInt(_0x493c24(0xae))/0xb);if(_0x4865f0===_0x46a02f)break;else _0xcdcc1b['push'](_0xcdcc1b['shift']());}catch(_0x4b019b){_0xcdcc1b['push'](_0xcdcc1b['shift']());}}}(a144_0x18fd,0xc5b73));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getEnv,isProduction}from'../../../constant/env.js';import{getAppBaseUrl}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateReactPageSourceFiles}from'./syntax.js';export const REACT_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x186b03){const _0x22943b=a144_0x3ce2;return _0x186b03?.[_0x22943b(0xa8)]()||undefined;}export function buildReactPageRuntimeUrl(_0x5d5c62,_0x488950){const _0x22494c=a144_0x3ce2,_0x411249=trimOptional(_0x5d5c62),_0x59057b=trimOptional(_0x488950);if(!_0x411249||!_0x59057b)return undefined;const _0x469065=isProduction(getEnv())?_0x411249+'.lovrabet.com':_0x411249+_0x22494c(0xba);return _0x22494c(0xb7)+_0x469065+'/'+encodeURIComponent(_0x59057b);}export function buildReactPageDevelopmentUrl(_0x5d28ff,_0x34bddb){const _0x296021=trimOptional(_0x5d28ff),_0x2e2680=trimOptional(_0x34bddb);if(!_0x296021||!_0x2e2680)return undefined;return getAppBaseUrl(_0x296021)+'/pages/'+encodeURIComponent(_0x2e2680);}function a144_0x3ce2(_0x496e45,_0x1f5b7){_0x496e45=_0x496e45-0x9b;const _0x18fd56=a144_0x18fd();let _0x3ce296=_0x18fd56[_0x496e45];return _0x3ce296;}function a144_0x18fd(){const _0x36468f=['isArray','type','trim','length','string','pageId','6838623nwLpSR','628766uMRiAi','9328NhDLIf','path','Invalid\x20React\x20page\x20content:\x20','4sTCgXv','isInteger','menus','file','react','251222cExsvO','https://','25580KDcKkU','object','.daily.lovrabet.com','7fWbbnY','1866426xVmAtA','join','validation','5320190epfsoa','/web-app/app/','message','11817224YeubPJ','https://app.lovrabet.com','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','12nFxCUt','--id\x20must\x20be\x20a\x20positive\x20integer.','num'];a144_0x18fd=function(){return _0x36468f;};return a144_0x18fd();}export async function resolveReactPageDevelopmentUrl(_0x14b544,_0x1bc812,_0xe81e8c){const _0x234d9e=a144_0x3ce2,_0x13ac47=trimOptional(_0x14b544);if(!_0x13ac47)return undefined;try{const _0x15b1d9=(await fetchMenuSnapshot(_0x13ac47,_0xe81e8c))[_0x234d9e(0xb3)]['find'](_0x54f5d9=>_0x54f5d9[_0x234d9e(0xa7)]===_0x234d9e(0xb5)&&_0x54f5d9[_0x234d9e(0xab)]===_0x1bc812);return buildReactPageDevelopmentUrl(_0x13ac47,_0x15b1d9?.[_0x234d9e(0xaf)]);}catch{return undefined;}}export function buildReactPageEditUrl(_0x2a8a46,_0xfe664b){const _0x4ab01d=a144_0x3ce2,_0x532cdd=trimOptional(_0x2a8a46);if(!_0x532cdd)return;const _0x24f061=trimOptional(_0xfe664b==null?undefined:String(_0xfe664b));if(!_0x24f061)return;const _0x4a5076=isProduction(getEnv())?_0x4ab01d(0xa1):'https://daily.lovrabet.com';return _0x4a5076+_0x4ab01d(0x9e)+encodeURIComponent(_0x532cdd)+'/ide/'+encodeURIComponent(_0x24f061);}export function parseReactPageContent(_0x2ed570){const _0x32af0c=a144_0x3ce2;if(!_0x2ed570[_0x32af0c(0xa8)]())throw CliErrors['flagMissing']('page-content');let _0x484870;try{_0x484870=JSON['parse'](_0x2ed570);}catch{throw CliErrors[_0x32af0c(0x9c)]('--page-content\x20must\x20be\x20valid\x20JSON.');}if(typeof _0x484870!==_0x32af0c(0xb9)||_0x484870===null||Array[_0x32af0c(0xa6)](_0x484870)||Object['values'](_0x484870)['some'](_0x1934f0=>typeof _0x1934f0!==_0x32af0c(0xaa)))throw CliErrors[_0x32af0c(0x9c)](_0x32af0c(0xa2));return _0x484870;}export async function validateReactPageContent(_0x5145dc){const _0x3f51e6=a144_0x3ce2,_0x5cc51d=await validateReactPageSourceFiles(_0x5145dc);if(_0x5cc51d[_0x3f51e6(0xa9)]>0x0)throw CliErrors[_0x3f51e6(0x9c)](_0x3f51e6(0xb0)+_0x5cc51d['map'](_0x406c95=>_0x406c95[_0x3f51e6(0xb4)]+':\x20'+_0x406c95[_0x3f51e6(0x9f)])[_0x3f51e6(0x9b)](';\x20'));}export function readReactPageId(_0x2fc2cd){const _0xdf22e3=a144_0x3ce2,_0x1196d6=_0x2fc2cd[_0xdf22e3(0xa5)]('id');if(!Number[_0xdf22e3(0xb2)](_0x1196d6)||_0x1196d6<=0x0)throw CliErrors[_0xdf22e3(0x9c)](_0xdf22e3(0xa4));return _0x1196d6;}
@@ -1 +0,0 @@
1
- const a145_0xaefb7b=a145_0x561c;(function(_0x431415,_0x1c5cf1){const _0x25b321=a145_0x561c,_0x7f73bc=_0x431415();while(!![]){try{const _0x526322=parseInt(_0x25b321(0x1b7))/0x1+-parseInt(_0x25b321(0x1ca))/0x2*(-parseInt(_0x25b321(0x1c3))/0x3)+parseInt(_0x25b321(0x1c2))/0x4+-parseInt(_0x25b321(0x1b4))/0x5*(-parseInt(_0x25b321(0x1c9))/0x6)+parseInt(_0x25b321(0x1ba))/0x7*(-parseInt(_0x25b321(0x1c5))/0x8)+parseInt(_0x25b321(0x1cc))/0x9+parseInt(_0x25b321(0x1cb))/0xa*(-parseInt(_0x25b321(0x1b8))/0xb);if(_0x526322===_0x1c5cf1)break;else _0x7f73bc['push'](_0x7f73bc['shift']());}catch(_0x1dc05f){_0x7f73bc['push'](_0x7f73bc['shift']());}}}(a145_0x4796,0xe8f54));import{format}from'prettier';function a145_0x4796(){const _0x5c12c6=['trim','4542enBTXz','6FxxglZ','20263050JbacHI','755244GbKFXe','11785xnkyGi','all','toLowerCase','1662538iEEAqz','22HFVGKJ','typescript','2863jwWJUR','babel','find','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','some','page-content','.tsx','entries','4386868THMzlM','1082457xuxuvO','filter','13752iCOseN','endsWith','.jsx'];a145_0x4796=function(){return _0x5c12c6;};return a145_0x4796();}function a145_0x561c(_0x291ce7,_0x5dbf20){_0x291ce7=_0x291ce7-0x1b4;const _0x4796b1=a145_0x4796();let _0x561c2a=_0x4796b1[_0x291ce7];return _0x561c2a;}const SOURCE_PARSERS={'.js':a145_0xaefb7b(0x1bb),'.jsx':'babel','.ts':a145_0xaefb7b(0x1b9),'.tsx':a145_0xaefb7b(0x1b9)},REACT_PAGE_EXTENSIONS=[a145_0xaefb7b(0x1c7),a145_0xaefb7b(0x1c0)];export async function validateReactPageSourceFiles(_0x1d4b1a){const _0x4acb1a=a145_0xaefb7b,_0x15453c=Object['entries'](_0x1d4b1a)[_0x4acb1a(0x1c4)](([_0x578d0f])=>getParser(_0x578d0f));if(!_0x15453c[_0x4acb1a(0x1be)](([_0x1ade63])=>isReactSourceFile(_0x1ade63)))return[{'file':_0x4acb1a(0x1bf),'message':_0x4acb1a(0x1bd)}];const _0xec85f5=await Promise[_0x4acb1a(0x1b5)](_0x15453c['map'](async([_0x59dc34,_0x44d04e])=>{try{return await format(_0x44d04e,{'parser':getParser(_0x59dc34)}),undefined;}catch(_0x304ee3){return{'file':_0x59dc34,'message':_0x304ee3 instanceof Error?_0x304ee3['message']:String(_0x304ee3)};}}));return _0xec85f5['filter'](_0x25da24=>_0x25da24!==undefined);}function getParser(_0x4a5646){const _0x345e7d=a145_0xaefb7b,_0x52fb6e=_0x4a5646[_0x345e7d(0x1c8)]()[_0x345e7d(0x1b6)]();return Object[_0x345e7d(0x1c1)](SOURCE_PARSERS)[_0x345e7d(0x1bc)](([_0x1f8c78])=>_0x52fb6e['endsWith'](_0x1f8c78))?.[0x1];}function isReactSourceFile(_0xfb6295){const _0x2ad71f=a145_0xaefb7b,_0x1d965d=_0xfb6295['trim']()[_0x2ad71f(0x1b6)]();return REACT_PAGE_EXTENSIONS['some'](_0x227769=>_0x1d965d[_0x2ad71f(0x1c6)](_0x227769));}
@@ -1 +0,0 @@
1
- (function(_0x3a6b91,_0x2819c3){const _0x35b64e=a146_0x4207,_0x7aecd1=_0x3a6b91();while(!![]){try{const _0x191988=parseInt(_0x35b64e(0x1de))/0x1*(-parseInt(_0x35b64e(0x1d0))/0x2)+parseInt(_0x35b64e(0x1da))/0x3+-parseInt(_0x35b64e(0x1cb))/0x4+-parseInt(_0x35b64e(0x1d9))/0x5*(parseInt(_0x35b64e(0x1ca))/0x6)+-parseInt(_0x35b64e(0x1d6))/0x7+-parseInt(_0x35b64e(0x1cc))/0x8+parseInt(_0x35b64e(0x1dd))/0x9*(parseInt(_0x35b64e(0x1cf))/0xa);if(_0x191988===_0x2819c3)break;else _0x7aecd1['push'](_0x7aecd1['shift']());}catch(_0x36d65d){_0x7aecd1['push'](_0x7aecd1['shift']());}}}(a146_0x3236,0xb616e));function a146_0x3236(){const _0x237357=['\x27:\x20{\x0a\x20\x20\x20\x20\x27pageDescription\x27:\x20\x27','export\x20const\x20locales\x20=\x20{\x0a','</Typography.Title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{$i18n.t(\x27pageDescription\x27,\x20\x27这是一个基础页面模板,你可以在此基础上进行开发。\x27)}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</Typography>\x0a\x20\x20\x20\x20\x20\x20</Card>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20);\x0a};\x0a\x0aexport\x20default\x20App;\x0a','import\x20React\x20from\x20\x27react\x27;\x0aimport\x20{\x20Card,\x20Typography\x20}\x20from\x20\x27antd\x27;\x0aimport\x20{\x20useSdkClient,\x20useI18n,\x20useNavigate,\x20useLocation\x20}\x20from\x20\x22@/context/app-context\x22;\x0aimport\x20{\x20locales\x20}\x20from\x20\x27../locales\x27;\x0aimport\x20\x27./index.css\x27;\x0a\x0aconst\x20App\x20=\x20()\x20=>\x20{\x0a\x20\x20const\x20client\x20=\x20useSdkClient();\x20//\x20client\x20可以用于获取其他数据集的数据\x0a\x20\x20const\x20$i18n\x20=\x20useI18n();\x20//\x20国际化多语言\x20i18n\x20实例\x0a\x20\x20const\x20navigate\x20=\x20useNavigate();\x20//\x20react-router\x20navigate\x20导航实例\x0a\x20\x20const\x20location\x20=\x20useLocation();\x20//\x20浏览器\x20location\x20实例\x0a\x0a\x20\x20$i18n.addLocale(locales);\x20//\x20添加多语言词包\x0a\x0a\x20\x20return\x20(\x0a\x20\x20\x20\x20<div\x20className=\x22page-container\x22>\x0a\x20\x20\x20\x20\x20\x20<Card>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<Typography>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Title\x20level={2}>','zh-CN','2703078FgDlkd','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','ja-JP','25BhXqwB','411qaWTgK','id-ID','tr-TR','198JTTXbB','34nbwYFP','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','map','270252iJMhSL','969240yZIXhx','405288nllvXA','これは基本ページテンプレートです。あなたは、これに基づいて開発できます。','\x27,\x0a\x20\x20}','1403450YayevH','84562ehcjFM'];a146_0x3236=function(){return _0x237357;};return a146_0x3236();}function buildIndexFile(_0x51ab0b){const _0x4c6695=a146_0x4207;return _0x4c6695(0x1d4)+_0x51ab0b+_0x4c6695(0x1d3);}function buildStyleFile(){const _0x155c00=a146_0x4207;return _0x155c00(0x1c8);}function buildLocalesFile(_0x1bd086){const _0x4ebe55=a146_0x4207,_0x5d87d7=_0x1bd086[_0x4ebe55(0x1c9)](_0x225bed=>{const _0x149945=_0x4ebe55;let _0x46eeee='';switch(_0x225bed){case _0x149945(0x1d5):_0x46eeee='这是一个基础页面模板,你可以在此基础上进行开发。';break;case'en-US':_0x46eeee='This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.';break;case _0x149945(0x1d8):_0x46eeee=_0x149945(0x1cd);break;case _0x149945(0x1dc):_0x46eeee=_0x149945(0x1d7);break;case _0x149945(0x1db):_0x46eeee='Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.';break;default:_0x46eeee=_0x149945(0x1df);}return'\x20\x20\x27'+_0x225bed+_0x149945(0x1d1)+_0x46eeee+_0x149945(0x1ce);})['join'](',\x0a');return _0x4ebe55(0x1d2)+_0x5d87d7+'\x0a};\x0a';}function a146_0x4207(_0xa66110,_0x41ebcd){_0xa66110=_0xa66110-0x1c8;const _0x323688=a146_0x3236();let _0x420714=_0x323688[_0xa66110];return _0x420714;}export function buildInitialFiles(_0x24aa41,_0x1f726b){return{'src/app/index.jsx':buildIndexFile(_0x24aa41),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0x1f726b)};}
@@ -1 +0,0 @@
1
- function a147_0x51fd(){const _0x3e39d0=['336334oYtdpL','cookie','2sMmeSC','trim','React\x20custom\x20page\x20ID','validation','page-content','React\x20custom\x20page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','Save\x20all\x20files\x20of\x20a\x20React\x20custom\x20page','appcode','isInteger','write','appCode','pageId','str','4aCBter','react-update','pageContent','string','8uPgvXX','3095680yaYPpN','1588914cTxJaO','Cannot\x20determine\x20the\x20appCode\x20for\x20React\x20custom\x20page\x20','React\x20custom\x20page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','719562kBEvmZ','number','2412770HwkzBt','1212115UsHacq','3491703dhxGll','compress','newVersion','Complete\x20page\x20files\x20as\x20JSON'];a147_0x51fd=function(){return _0x3e39d0;};return a147_0x51fd();}const a147_0x7f7ca=a147_0xd4a1;(function(_0x2d8fb7,_0x1e71c9){const _0x6b211b=a147_0xd4a1,_0x2f0f55=_0x2d8fb7();while(!![]){try{const _0x1e4edd=-parseInt(_0x6b211b(0xfe))/0x1*(parseInt(_0x6b211b(0xfc))/0x2)+-parseInt(_0x6b211b(0xf4))/0x3+-parseInt(_0x6b211b(0xeb))/0x4*(-parseInt(_0x6b211b(0xf7))/0x5)+parseInt(_0x6b211b(0xf1))/0x6+parseInt(_0x6b211b(0xf0))/0x7+-parseInt(_0x6b211b(0xef))/0x8*(parseInt(_0x6b211b(0xf8))/0x9)+parseInt(_0x6b211b(0xf6))/0xa;if(_0x1e4edd===_0x1e71c9)break;else _0x2f0f55['push'](_0x2f0f55['shift']());}catch(_0x568364){_0x2f0f55['push'](_0x2f0f55['shift']());}}}(a147_0x51fd,0x3752c));function a147_0xd4a1(_0xe6350e,_0x571f73){_0xe6350e=_0xe6350e-0xe0;const _0x51fd8b=a147_0x51fd();let _0xd4a1d5=_0x51fd8b[_0xe6350e];return _0xd4a1d5;}import{getReactPageSource,updateReactPageContent}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildReactPageEditUrl,parseReactPageContent,resolveReactPageDevelopmentUrl,readReactPageId,REACT_PAGE_APPCODE_FLAG_OPTIONAL,validateReactPageContent}from'./shared.js';export const pageReactUpdate={'service':'page','command':a147_0x7f7ca(0xec),'description':a147_0x7f7ca(0xe4),'risk':a147_0x7f7ca(0xe7),'defaultOutputFormat':a147_0x7f7ca(0xf9),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a147_0x7f7ca(0xf5),'required':!![],'description':a147_0x7f7ca(0xe0)},{'name':a147_0x7f7ca(0xe2),'type':a147_0x7f7ca(0xee),'required':!![],'description':a147_0x7f7ca(0xfb)},REACT_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x555d19){const _0x2f2e49=a147_0x7f7ca;readReactPageId(_0x555d19),await validateReactPageContent(parseReactPageContent(_0x555d19[_0x2f2e49(0xea)]('page-content')));},async 'dryRun'(_0x487f80){return buildMutationData(await readInput(_0x487f80));},async 'execute'(_0x2a111f){const _0x4556cb=a147_0x7f7ca,_0x5f27b4=await readInput(_0x2a111f),_0x40d717=await updateReactPageContent({'pageId':_0x5f27b4[_0x4556cb(0xe9)],'pageContent':_0x5f27b4[_0x4556cb(0xed)]});if(!Number[_0x4556cb(0xe6)](_0x40d717['newVersion'])||_0x40d717[_0x4556cb(0xfa)]<=0x0)throw CliErrors['apiError'](_0x4556cb(0xe3));const _0x371ed9=buildReactPageEditUrl(_0x5f27b4[_0x4556cb(0xe8)],_0x5f27b4[_0x4556cb(0xe9)]),_0x3bf5c0=await resolveReactPageDevelopmentUrl(_0x5f27b4[_0x4556cb(0xe8)],_0x5f27b4['pageId'],_0x2a111f[_0x4556cb(0xfd)]);return{'ok':!![],'data':buildMutationData(_0x5f27b4,_0x40d717,_0x3bf5c0,_0x371ed9,_0x3bf5c0?[]:[_0x4556cb(0xf3)]),'message':'Updated\x20React\x20custom\x20page\x20'+_0x5f27b4[_0x4556cb(0xe9)]+'.'};}};async function readInput(_0x72f0ce){const _0x51d09c=a147_0x7f7ca,_0x23707c=readReactPageId(_0x72f0ce),_0x425949=_0x72f0ce['str'](_0x51d09c(0xe5))[_0x51d09c(0xff)]()||(await getReactPageSource(_0x23707c))[_0x51d09c(0xe8)]?.[_0x51d09c(0xff)]();if(!_0x425949)throw CliErrors[_0x51d09c(0xe1)](_0x51d09c(0xf2)+_0x23707c+'.');return{'appCode':_0x425949,'pageId':_0x23707c,'pageContent':parseReactPageContent(_0x72f0ce[_0x51d09c(0xea)](_0x51d09c(0xe2)))};}function buildMutationData(_0x5899b5,_0x171d22,_0x9b2155,_0x42a590,_0x396b83=[]){const _0x304225=a147_0x7f7ca;return{'operation':'page.react-update','selector':{'appCode':_0x5899b5[_0x304225(0xe8)],'pageId':_0x5899b5[_0x304225(0xe9)]},'before':null,'after':{'pageId':_0x171d22?.[_0x304225(0xe9)]??_0x5899b5[_0x304225(0xe9)],'version':_0x171d22?.['newVersion']??null,'pageContent':_0x5899b5['pageContent']},'dryRun':_0x171d22===undefined,'request':_0x5899b5,..._0x9b2155?{'pageUrl':_0x9b2155}:{},..._0x42a590?{'editPageUrl':_0x42a590}:{},'warnings':_0x396b83};}