@lovrabet/rabetbase-cli 2.3.16-beta.6 → 2.4.1-beta.1

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 (436) hide show
  1. package/README.md +4 -10
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.d.ts +2 -0
  142. package/lib/commands/page/react/create.js +1 -0
  143. package/lib/commands/page/react/detail.d.ts +2 -0
  144. package/lib/commands/page/react/detail.js +1 -0
  145. package/lib/commands/page/react/list.d.ts +2 -0
  146. package/lib/commands/page/react/list.js +1 -0
  147. package/lib/commands/page/react/publish.d.ts +2 -0
  148. package/lib/commands/page/react/publish.js +1 -0
  149. package/lib/commands/page/react/shared.d.ts +78 -0
  150. package/lib/commands/page/react/shared.js +1 -0
  151. package/lib/commands/page/react/syntax.d.ts +18 -0
  152. package/lib/commands/page/react/syntax.js +1 -0
  153. package/lib/commands/page/react/template.d.ts +8 -0
  154. package/lib/commands/page/react/template.js +1 -0
  155. package/lib/commands/page/react/update.d.ts +2 -0
  156. package/lib/commands/page/react/update.js +1 -0
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.d.ts +1 -0
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/permit/index.js +1 -1
  164. package/lib/commands/permit/page-get.js +1 -1
  165. package/lib/commands/permit/page-set.js +1 -1
  166. package/lib/commands/permit/role-apis-set.js +1 -1
  167. package/lib/commands/permit/role-menus-set.js +1 -1
  168. package/lib/commands/permit/role-menus.js +1 -1
  169. package/lib/commands/permit/shared.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/non-interactive.js +1 -1
  174. package/lib/commands/project/create/project-template-path.js +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/create.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.js +1 -1
  187. package/lib/commands/role/update.js +1 -1
  188. package/lib/commands/role/user-add.js +1 -1
  189. package/lib/commands/role/user-remove.js +1 -1
  190. package/lib/commands/role/user-resolve.js +1 -1
  191. package/lib/commands/run/index.js +1 -1
  192. package/lib/commands/schema.js +1 -1
  193. package/lib/commands/sql/create.js +1 -1
  194. package/lib/commands/sql/delete.js +1 -1
  195. package/lib/commands/sql/detail.js +1 -1
  196. package/lib/commands/sql/exec.js +1 -1
  197. package/lib/commands/sql/index.js +1 -1
  198. package/lib/commands/sql/list.js +1 -1
  199. package/lib/commands/sql/pull.js +1 -1
  200. package/lib/commands/sql/push.js +1 -1
  201. package/lib/commands/sql/shared.js +1 -1
  202. package/lib/commands/sql/status.js +1 -1
  203. package/lib/commands/sql/validate.js +1 -1
  204. package/lib/commands/task/index.js +1 -1
  205. package/lib/commands/task/status.js +1 -1
  206. package/lib/commands/tenant/index.js +1 -1
  207. package/lib/commands/tenant/members-list.js +1 -1
  208. package/lib/commands/tenant/shared.js +1 -1
  209. package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
  211. package/lib/commands/user-account/index.d.ts +2 -0
  212. package/lib/commands/user-account/index.js +1 -0
  213. package/lib/commands/workspace/add.js +1 -1
  214. package/lib/commands/workspace/index.js +1 -1
  215. package/lib/commands/workspace/remove.js +1 -1
  216. package/lib/config/schema.js +1 -1
  217. package/lib/constant/cdn.js +1 -1
  218. package/lib/constant/cli.js +1 -1
  219. package/lib/constant/defaults.js +1 -1
  220. package/lib/constant/domain.js +1 -1
  221. package/lib/constant/env.js +1 -1
  222. package/lib/constant/output.js +1 -1
  223. package/lib/constant/paths.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.d.ts +1 -1
  229. package/lib/context.js +1 -1
  230. package/lib/core/alias-resolver.js +1 -1
  231. package/lib/core/api-client.d.ts +117 -0
  232. package/lib/core/api-client.js +1 -1
  233. package/lib/core/bff/config.js +1 -1
  234. package/lib/core/bff/file-system.js +1 -1
  235. package/lib/core/bff/hash.js +1 -1
  236. package/lib/core/bff/lock.js +1 -1
  237. package/lib/core/bff/utils.js +1 -1
  238. package/lib/core/db-resolver.js +1 -1
  239. package/lib/core/page/file-system.js +1 -1
  240. package/lib/core/page/hash.js +1 -1
  241. package/lib/core/page/lock.js +1 -1
  242. package/lib/core/sql-index-auditor.js +1 -1
  243. package/lib/core/sql-sync/config.js +1 -1
  244. package/lib/core/sql-sync/file-system.js +1 -1
  245. package/lib/core/sql-sync/hash.js +1 -1
  246. package/lib/core/sql-sync/lock.js +1 -1
  247. package/lib/core/sql-sync/utils.js +1 -1
  248. package/lib/core/sql-validator.js +1 -1
  249. package/lib/errors.js +1 -1
  250. package/lib/framework/build-all-flags.js +1 -1
  251. package/lib/framework/error-output.js +1 -1
  252. package/lib/framework/explicit-yes.js +1 -1
  253. package/lib/framework/flags.js +1 -1
  254. package/lib/framework/help.js +1 -1
  255. package/lib/framework/index.js +1 -1
  256. package/lib/framework/output.js +1 -1
  257. package/lib/framework/response.js +1 -1
  258. package/lib/framework/runner-alias.js +1 -1
  259. package/lib/framework/runner.js +1 -1
  260. package/lib/framework/schema-export.js +1 -1
  261. package/lib/framework/types.js +1 -1
  262. package/lib/generated/build-info.d.ts +4 -4
  263. package/lib/generated/build-info.js +1 -1
  264. package/lib/help.js +1 -1
  265. package/lib/postinstall.d.ts +3 -0
  266. package/lib/postinstall.js +1 -0
  267. package/lib/runtime/confirmation.js +1 -1
  268. package/lib/runtime/event.js +1 -1
  269. package/lib/runtime/index.js +1 -1
  270. package/lib/runtime/queue.js +1 -1
  271. package/lib/runtime/resolve.js +1 -1
  272. package/lib/skills/builtin-skill.d.ts +37 -0
  273. package/lib/skills/builtin-skill.js +1 -0
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.d.ts +4 -2
  276. package/lib/skills/npx-skills-add.js +1 -1
  277. package/lib/skills/skill-presence.js +1 -1
  278. package/lib/telemetry/cli-command-trace.js +1 -1
  279. package/lib/telemetry/cli-help-trace.js +1 -1
  280. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  281. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  282. package/lib/telemetry/send-cli-trace-log.js +1 -1
  283. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  284. package/lib/utils/ai_config.js +1 -1
  285. package/lib/utils/apply-jq-filter.js +1 -1
  286. package/lib/utils/cdn-config.js +1 -1
  287. package/lib/utils/check-sdk-version.js +1 -1
  288. package/lib/utils/cli-version-check.js +1 -1
  289. package/lib/utils/cli-version-policy.js +1 -1
  290. package/lib/utils/config.js +1 -1
  291. package/lib/utils/copy-directory.js +1 -1
  292. package/lib/utils/entity-with-id.js +1 -1
  293. package/lib/utils/file-utils.js +1 -1
  294. package/lib/utils/guides-cdn.js +1 -1
  295. package/lib/utils/http-client.js +1 -1
  296. package/lib/utils/is-non-interactive.js +1 -1
  297. package/lib/utils/logger.js +1 -1
  298. package/lib/utils/params.js +1 -1
  299. package/lib/utils/platform.js +1 -1
  300. package/lib/utils/rules-cdn.js +1 -1
  301. package/lib/utils/sleep.js +1 -1
  302. package/lib/utils/template-replacer.js +1 -1
  303. package/lib/utils/update-notice.js +1 -1
  304. package/lib/utils/version.js +1 -1
  305. package/lib/utils/with-active-cookie.js +1 -1
  306. package/lib/utils/write-cli-side-channel.js +1 -1
  307. package/package.json +9 -3
  308. package/scripts/postinstall.mjs +24 -0
  309. package/skills/rabetbase/SKILL.md +493 -0
  310. package/skills/rabetbase/guides/backend-function.md +835 -0
  311. package/skills/rabetbase/guides/best-practices.md +137 -0
  312. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  313. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  314. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  315. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  316. package/skills/rabetbase/guides/frontend-development.md +179 -0
  317. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  318. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  319. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  320. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  321. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  322. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  323. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  324. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  325. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  332. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  333. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  334. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  335. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  336. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  337. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  338. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  339. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  340. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  341. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  342. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  343. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  344. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  345. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  346. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  347. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  348. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  349. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  350. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  351. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  352. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  353. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  354. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  355. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  357. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  358. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  371. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  372. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  373. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  374. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  375. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  376. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  377. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  378. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  379. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  381. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  382. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  383. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  384. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  385. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  386. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  387. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  389. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  391. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  392. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  393. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  394. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  395. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  396. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  397. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  398. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  401. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  402. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  407. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  408. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  409. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  410. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  411. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  413. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  414. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  415. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  416. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  418. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  419. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  420. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  421. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  422. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  423. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  424. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  425. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  427. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  428. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  429. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  430. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  431. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  432. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  433. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  434. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  435. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  436. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- export function sleep(_0x2d09ec){return new Promise(_0x3f0707=>setTimeout(_0x3f0707,_0x2d09ec));}
1
+ export function sleep(_0x5d35a7){return new Promise(_0x39425d=>setTimeout(_0x39425d,_0x5d35a7));}
@@ -1 +1 @@
1
- const a277_0x1432da=a277_0x5b7c;function a277_0x5b7c(_0x191fcd,_0x343bda){_0x191fcd=_0x191fcd-0x1ea;const _0x396841=a277_0x3968();let _0x5b7c60=_0x396841[_0x191fcd];return _0x5b7c60;}(function(_0x4de870,_0xb69c8a){const _0x2f2acd=a277_0x5b7c,_0x4edc62=_0x4de870();while(!![]){try{const _0x1484d8=parseInt(_0x2f2acd(0x218))/0x1+parseInt(_0x2f2acd(0x211))/0x2*(-parseInt(_0x2f2acd(0x21f))/0x3)+parseInt(_0x2f2acd(0x1ff))/0x4+parseInt(_0x2f2acd(0x207))/0x5+parseInt(_0x2f2acd(0x22b))/0x6*(-parseInt(_0x2f2acd(0x219))/0x7)+parseInt(_0x2f2acd(0x215))/0x8+-parseInt(_0x2f2acd(0x205))/0x9*(parseInt(_0x2f2acd(0x221))/0xa);if(_0x1484d8===_0xb69c8a)break;else _0x4edc62['push'](_0x4edc62['shift']());}catch(_0x433013){_0x4edc62['push'](_0x4edc62['shift']());}}}(a277_0x3968,0x9a0a5));import a277_0x452336 from'node:fs';import a277_0x16c240 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a277_0x1432da(0x20b)](_0x5201ca){return String(_0x5201ca)['padStart'](0x2,'0');}static[a277_0x1432da(0x1f1)](_0x43709a){const _0x56ed87=a277_0x1432da,_0xaddbda=_0x43709a['getFullYear'](),_0x2f56d8=this['pad'](_0x43709a[_0x56ed87(0x203)]()+0x1),_0x558376=this[_0x56ed87(0x20b)](_0x43709a[_0x56ed87(0x22c)]()),_0x111e87=this['pad'](_0x43709a['getHours']()),_0x33c296=this['pad'](_0x43709a[_0x56ed87(0x21b)]()),_0x5210f2=this[_0x56ed87(0x20b)](_0x43709a['getSeconds']());return{'createdAt':_0xaddbda+'-'+_0x2f56d8+'-'+_0x558376+'\x20'+_0x111e87+':'+_0x33c296+':'+_0x5210f2,'createdDate':_0xaddbda+'-'+_0x2f56d8+'-'+_0x558376,'createdTime':_0x111e87+':'+_0x33c296+':'+_0x5210f2};}static[a277_0x1432da(0x20a)](_0x8cad80){const _0x463877=a277_0x1432da,_0x46a54c=_0x8cad80['split']('/')['pop']()||_0x8cad80;return _0x46a54c['split']('-')['map'](_0x2e258d=>_0x2e258d['charAt'](0x0)[_0x463877(0x204)]()+_0x2e258d[_0x463877(0x202)](0x1)[_0x463877(0x209)]())['join']('');}static[a277_0x1432da(0x225)](_0x29d2ae){const _0x4c6ef2=a277_0x1432da,_0x1030c8=_0x29d2ae[_0x4c6ef2(0x216)]('/')[_0x4c6ef2(0x1fa)]()||_0x29d2ae;return _0x1030c8[_0x4c6ef2(0x216)]('-')['map'](_0x17150f=>_0x17150f[_0x4c6ef2(0x1fb)](0x0)[_0x4c6ef2(0x204)]()+_0x17150f['slice'](0x1)[_0x4c6ef2(0x209)]())['join']('\x20');}static[a277_0x1432da(0x20c)](_0x588209,_0x16699c,_0x4fb199){const _0x296088=a277_0x1432da,_0x42ef13=this[_0x296088(0x20a)](_0x16699c),_0x2f7ba3=this[_0x296088(0x225)](_0x16699c),{createdAt:_0x5cb052,createdDate:_0x599d7d,createdTime:_0x2f399b}=this[_0x296088(0x1f1)](new Date());let _0x3d1a44=_0x588209['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x42ef13)[_0x296088(0x1f5)](/\{DisplayTitle\}/g,_0x2f7ba3)[_0x296088(0x1f5)](/\{PageName\}/g,_0x16699c)[_0x296088(0x1f5)](/\{TemplateName\}/g,_0x4fb199)[_0x296088(0x1f5)](/\{CreatedAt\}/g,_0x5cb052)[_0x296088(0x1f5)](/\{CreatedDate\}/g,_0x599d7d)[_0x296088(0x1f5)](/\{CreatedTime\}/g,_0x2f399b);return _0x3d1a44;}static[a277_0x1432da(0x212)](_0x3c3864,_0x688cb9,_0x5373ee,_0x13a85b,_0x48c635,_0xbccf0e,_0x495bdf,_0x3dfa63){const _0x2e4c7c=a277_0x1432da,_0x51afda=new Date(),_0xe12ff8=_0x51afda[_0x2e4c7c(0x1f7)](),_0x185956=_0x5373ee[_0x2e4c7c(0x1ea)](_0x44e2a8=>{const _0x157a19=_0x2e4c7c,_0x2343c0=[_0x157a19(0x1fd)+_0x44e2a8[_0x157a19(0x22a)]+'\x22','tableName:\x20\x22'+_0x44e2a8['tableName']+'\x22','name:\x20\x22'+_0x44e2a8['name']+'\x22'];return _0x44e2a8[_0x157a19(0x21c)]&&_0x2343c0[_0x157a19(0x228)](_0x157a19(0x21a)+_0x44e2a8[_0x157a19(0x21c)]+'\x22'),_0x157a19(0x1eb)+_0x2343c0['join'](',\x20')+_0x157a19(0x229);})[_0x2e4c7c(0x20d)](''),_0x297205=_0x13a85b||_0x5373ee[0x0]?.[_0x2e4c7c(0x21c)]||_0x2e4c7c(0x1f3);let _0x5244fb=_0x3c3864['replace'](/\{AppCode\}/g,_0x688cb9)['replace'](/\{ModelConfigs\}/g,_0x185956)[_0x2e4c7c(0x1f5)](/\{ExampleModelName\}/g,_0x297205)['replace'](/\{ApiFileName\}/g,_0x48c635||_0x2e4c7c(0x1f9))['replace'](/\{ConfigName\}/g,_0xbccf0e||_0x2e4c7c(0x213))[_0x2e4c7c(0x1f5)](/\{ClientConfigParam\}/g,_0x495bdf||'')['replace'](/\{VarPrefix\}/g,_0x3dfa63||_0x2e4c7c(0x1f4))['replace'](/\{CreatedAt\}/g,_0xe12ff8);return _0x5244fb;}static async[a277_0x1432da(0x1fc)](_0x147771,_0x10b2c3,_0x1567f7,_0x3918d2,_0x30b34f=!![]){const _0x237f1c=a277_0x1432da,_0x58fbfb=Date[_0x237f1c(0x223)]();try{_0x30b34f&&logger['info'](_0x237f1c(0x226),_0x237f1c(0x1ed),{'templatePath':_0x147771,'targetPath':_0x10b2c3,'pageName':_0x1567f7,'templateName':_0x3918d2});await a277_0x452336['promises']['mkdir'](_0x10b2c3,{'recursive':!![]}),await this[_0x237f1c(0x217)](_0x147771,_0x10b2c3,_0x1567f7,_0x3918d2);if(_0x30b34f){const _0x38d3f5=Date[_0x237f1c(0x223)]()-_0x58fbfb;logger[_0x237f1c(0x200)]('template',_0x237f1c(0x222),_0x38d3f5,{'pageName':_0x1567f7,'templateName':_0x3918d2});}}catch(_0x4d0707){if(_0x30b34f){const _0x19a125=Date['now']()-_0x58fbfb;logger[_0x237f1c(0x1fe)](_0x237f1c(0x226),_0x237f1c(0x224),{'templatePath':_0x147771,'targetPath':_0x10b2c3,'pageName':_0x1567f7,'templateName':_0x3918d2,'error':_0x4d0707 instanceof Error?_0x4d0707['message']:String(_0x4d0707),'duration':_0x19a125});}throw _0x4d0707;}}static async['processDirectory'](_0x274496,_0x531f8e,_0x3c09cd,_0x30cb1c){const _0x1d40db=a277_0x1432da,_0x3cefed=await a277_0x452336[_0x1d40db(0x206)][_0x1d40db(0x1ec)](_0x274496,{'withFileTypes':!![]});for(const _0x539f12 of _0x3cefed){const _0x17349b=a277_0x16c240['join'](_0x274496,_0x539f12[_0x1d40db(0x20e)]);let _0x2c95ab=a277_0x16c240[_0x1d40db(0x20d)](_0x531f8e,_0x539f12[_0x1d40db(0x20e)]);_0x539f12[_0x1d40db(0x20e)][_0x1d40db(0x220)]('.tpl')&&(_0x2c95ab=a277_0x16c240[_0x1d40db(0x20d)](_0x531f8e,_0x539f12[_0x1d40db(0x20e)][_0x1d40db(0x1f5)](/\.tpl$/,'')));if(_0x539f12[_0x1d40db(0x1ee)]())await a277_0x452336['promises'][_0x1d40db(0x20f)](_0x2c95ab,{'recursive':!![]}),await this[_0x1d40db(0x217)](_0x17349b,_0x2c95ab,_0x3c09cd,_0x30cb1c);else _0x539f12[_0x1d40db(0x227)]()&&await this['processFile'](_0x17349b,_0x2c95ab,_0x3c09cd,_0x30cb1c);}}static async['processFile'](_0x3212bd,_0x1fece1,_0x3375bf,_0x19de82){const _0x5656b3=a277_0x1432da,_0x2187d9=a277_0x16c240[_0x5656b3(0x21d)](_0x3212bd)[_0x5656b3(0x209)]();_0x3212bd['endsWith'](_0x5656b3(0x1ef))&&(_0x1fece1=_0x1fece1[_0x5656b3(0x1f5)](/\.tpl$/,''));const _0x5d7134=[_0x5656b3(0x210),_0x5656b3(0x1f6),_0x5656b3(0x1f0),_0x5656b3(0x208),'.json',_0x5656b3(0x1f8),'.css',_0x5656b3(0x21e),'.tpl'];if(_0x5d7134[_0x5656b3(0x201)](_0x2187d9)||_0x3212bd['endsWith'](_0x5656b3(0x1ef))){const _0x2f6b58=await a277_0x452336[_0x5656b3(0x206)]['readFile'](_0x3212bd,_0x5656b3(0x214)),_0x2f36f5=this[_0x5656b3(0x20c)](_0x2f6b58,_0x3375bf,_0x19de82);await a277_0x452336[_0x5656b3(0x206)]['writeFile'](_0x1fece1,_0x2f36f5,'utf8');}else await a277_0x452336[_0x5656b3(0x206)][_0x5656b3(0x1f2)](_0x3212bd,_0x1fece1);}}function a277_0x3968(){const _0x359668=['charAt','processTemplate','datasetCode:\x20\x22','error','2378372lbYrib','success','includes','slice','getMonth','toUpperCase','155187VrrSzJ','promises','931915iwKxng','.js','toLowerCase','toComponentName','pad','replaceContent','join','name','mkdir','.tsx','26MjlWzV','replaceApiContent','default','utf8','9976592gulFYr','split','processDirectory','660348NfUUWR','6009689oSoHUr','alias:\x20\x22','getMinutes','alias','extname','.scss','113529YBAIDv','endsWith','410suapMi','模板内容替换完成','now','模板内容替换失败','toDisplayTitle','template','isFile','push','\x20},','datasetCode','6dLvIWs','getDate','map','\x0a\x20\x20\x20\x20{\x20','readdir','开始处理模板内容替换','isDirectory','.tpl','.jsx','formatLocalTimestamp','copyFile','YourModel','LOVRABET','replace','.ts','toISOString','.md','api','pop'];a277_0x3968=function(){return _0x359668;};return a277_0x3968();}
1
+ function a289_0x3b56(_0x286627,_0x142360){_0x286627=_0x286627-0x135;const _0x4386f9=a289_0x4386();let _0x3b563f=_0x4386f9[_0x286627];return _0x3b563f;}const a289_0x1b0148=a289_0x3b56;(function(_0x3eae02,_0x192b9b){const _0x10cecc=a289_0x3b56,_0x1a03bb=_0x3eae02();while(!![]){try{const _0x26cd74=-parseInt(_0x10cecc(0x147))/0x1*(-parseInt(_0x10cecc(0x14d))/0x2)+-parseInt(_0x10cecc(0x13b))/0x3+-parseInt(_0x10cecc(0x15f))/0x4+-parseInt(_0x10cecc(0x138))/0x5+parseInt(_0x10cecc(0x171))/0x6+parseInt(_0x10cecc(0x175))/0x7+-parseInt(_0x10cecc(0x16d))/0x8;if(_0x26cd74===_0x192b9b)break;else _0x1a03bb['push'](_0x1a03bb['shift']());}catch(_0x2969af){_0x1a03bb['push'](_0x1a03bb['shift']());}}}(a289_0x4386,0x52da5));function a289_0x4386(){const _0x45dd8e=['toISOString','4750641jyTQzn','processTemplate','toLowerCase','processDirectory','api','2573095AlnzYs','toDisplayTitle','name:\x20\x22','1177680ISRMQO','now','.css','name','replace','includes','.tpl','readdir','success','isDirectory','error','default','486281RuGoCd','readFile','extname','alias','map','tableName','2uadKLe','info','message','.js','alias:\x20\x22','processFile','replaceContent','toUpperCase','split','\x20},','.scss','join','isFile','datasetCode:\x20\x22','LOVRABET','开始处理模板内容替换','datasetCode','utf8','1608832qUPiBY','toComponentName','.tsx','pop','getHours','slice','promises','.md','charAt','padStart','endsWith','template','formatLocalTimestamp','mkdir','914968nhuvSq','pad','getMinutes','getFullYear','3589074gSbPgP','.jsx','push'];a289_0x4386=function(){return _0x45dd8e;};return a289_0x4386();}import a289_0x3def03 from'node:fs';import a289_0x22369f from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a289_0x1b0148(0x16e)](_0x4a4873){const _0x307828=a289_0x1b0148;return String(_0x4a4873)[_0x307828(0x168)](0x2,'0');}static[a289_0x1b0148(0x16b)](_0x3dc7b7){const _0x33d928=a289_0x1b0148,_0x176b7b=_0x3dc7b7[_0x33d928(0x170)](),_0x447bad=this[_0x33d928(0x16e)](_0x3dc7b7['getMonth']()+0x1),_0x22e1cc=this['pad'](_0x3dc7b7['getDate']()),_0x46cb69=this[_0x33d928(0x16e)](_0x3dc7b7[_0x33d928(0x163)]()),_0x2f6a85=this[_0x33d928(0x16e)](_0x3dc7b7[_0x33d928(0x16f)]()),_0x1def37=this['pad'](_0x3dc7b7['getSeconds']());return{'createdAt':_0x176b7b+'-'+_0x447bad+'-'+_0x22e1cc+'\x20'+_0x46cb69+':'+_0x2f6a85+':'+_0x1def37,'createdDate':_0x176b7b+'-'+_0x447bad+'-'+_0x22e1cc,'createdTime':_0x46cb69+':'+_0x2f6a85+':'+_0x1def37};}static[a289_0x1b0148(0x160)](_0x16d1be){const _0x29c614=a289_0x1b0148,_0x794111=_0x16d1be[_0x29c614(0x155)]('/')[_0x29c614(0x162)]()||_0x16d1be;return _0x794111[_0x29c614(0x155)]('-')['map'](_0x28b310=>_0x28b310[_0x29c614(0x167)](0x0)[_0x29c614(0x154)]()+_0x28b310[_0x29c614(0x164)](0x1)[_0x29c614(0x135)]())[_0x29c614(0x158)]('');}static[a289_0x1b0148(0x139)](_0x12dd6d){const _0x4784e6=a289_0x1b0148,_0x52e4ee=_0x12dd6d[_0x4784e6(0x155)]('/')[_0x4784e6(0x162)]()||_0x12dd6d;return _0x52e4ee[_0x4784e6(0x155)]('-')[_0x4784e6(0x14b)](_0x2d96bb=>_0x2d96bb[_0x4784e6(0x167)](0x0)[_0x4784e6(0x154)]()+_0x2d96bb[_0x4784e6(0x164)](0x1)[_0x4784e6(0x135)]())[_0x4784e6(0x158)]('\x20');}static['replaceContent'](_0x8aec09,_0x339867,_0x230d82){const _0x4b6857=a289_0x1b0148,_0x555f78=this[_0x4b6857(0x160)](_0x339867),_0x23c3bd=this[_0x4b6857(0x139)](_0x339867),{createdAt:_0x460856,createdDate:_0x27b7de,createdTime:_0x3a1b9d}=this['formatLocalTimestamp'](new Date());let _0x2a2faf=_0x8aec09[_0x4b6857(0x13f)](/\{CliVersion\}/g,CLI_VERSION)[_0x4b6857(0x13f)](/\{ComponentName\}/g,_0x555f78)['replace'](/\{DisplayTitle\}/g,_0x23c3bd)[_0x4b6857(0x13f)](/\{PageName\}/g,_0x339867)[_0x4b6857(0x13f)](/\{TemplateName\}/g,_0x230d82)[_0x4b6857(0x13f)](/\{CreatedAt\}/g,_0x460856)[_0x4b6857(0x13f)](/\{CreatedDate\}/g,_0x27b7de)[_0x4b6857(0x13f)](/\{CreatedTime\}/g,_0x3a1b9d);return _0x2a2faf;}static['replaceApiContent'](_0x1117be,_0x543d77,_0x4cdadc,_0x1a9c7f,_0x6da936,_0x3933dd,_0x4bc629,_0x3b84ba){const _0x34090f=a289_0x1b0148,_0x2a480e=new Date(),_0x3cc11d=_0x2a480e[_0x34090f(0x174)](),_0x17dc3d=_0x4cdadc[_0x34090f(0x14b)](_0x17cf8e=>{const _0x319b78=_0x34090f,_0x46f0fe=[_0x319b78(0x15a)+_0x17cf8e[_0x319b78(0x15d)]+'\x22','tableName:\x20\x22'+_0x17cf8e[_0x319b78(0x14c)]+'\x22',_0x319b78(0x13a)+_0x17cf8e[_0x319b78(0x13e)]+'\x22'];return _0x17cf8e[_0x319b78(0x14a)]&&_0x46f0fe[_0x319b78(0x173)](_0x319b78(0x151)+_0x17cf8e[_0x319b78(0x14a)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x46f0fe[_0x319b78(0x158)](',\x20')+_0x319b78(0x156);})[_0x34090f(0x158)](''),_0x56169e=_0x1a9c7f||_0x4cdadc[0x0]?.[_0x34090f(0x14a)]||'YourModel';let _0x41779c=_0x1117be[_0x34090f(0x13f)](/\{AppCode\}/g,_0x543d77)[_0x34090f(0x13f)](/\{ModelConfigs\}/g,_0x17dc3d)[_0x34090f(0x13f)](/\{ExampleModelName\}/g,_0x56169e)[_0x34090f(0x13f)](/\{ApiFileName\}/g,_0x6da936||_0x34090f(0x137))[_0x34090f(0x13f)](/\{ConfigName\}/g,_0x3933dd||_0x34090f(0x146))[_0x34090f(0x13f)](/\{ClientConfigParam\}/g,_0x4bc629||'')[_0x34090f(0x13f)](/\{VarPrefix\}/g,_0x3b84ba||_0x34090f(0x15b))[_0x34090f(0x13f)](/\{CreatedAt\}/g,_0x3cc11d);return _0x41779c;}static async[a289_0x1b0148(0x176)](_0x5342ae,_0x402d6b,_0x280b54,_0xe56609,_0x5137ed=!![]){const _0x569ddc=a289_0x1b0148,_0x4707d1=Date[_0x569ddc(0x13c)]();try{_0x5137ed&&logger[_0x569ddc(0x14e)]('template',_0x569ddc(0x15c),{'templatePath':_0x5342ae,'targetPath':_0x402d6b,'pageName':_0x280b54,'templateName':_0xe56609});await a289_0x3def03[_0x569ddc(0x165)][_0x569ddc(0x16c)](_0x402d6b,{'recursive':!![]}),await this[_0x569ddc(0x136)](_0x5342ae,_0x402d6b,_0x280b54,_0xe56609);if(_0x5137ed){const _0x54edbe=Date[_0x569ddc(0x13c)]()-_0x4707d1;logger[_0x569ddc(0x143)](_0x569ddc(0x16a),'模板内容替换完成',_0x54edbe,{'pageName':_0x280b54,'templateName':_0xe56609});}}catch(_0x3559fa){if(_0x5137ed){const _0x4ff124=Date['now']()-_0x4707d1;logger[_0x569ddc(0x145)](_0x569ddc(0x16a),'模板内容替换失败',{'templatePath':_0x5342ae,'targetPath':_0x402d6b,'pageName':_0x280b54,'templateName':_0xe56609,'error':_0x3559fa instanceof Error?_0x3559fa[_0x569ddc(0x14f)]:String(_0x3559fa),'duration':_0x4ff124});}throw _0x3559fa;}}static async[a289_0x1b0148(0x136)](_0x4d722f,_0x1d8635,_0x2c9b93,_0x1f26d4){const _0x3048b1=a289_0x1b0148,_0x43b7fd=await a289_0x3def03[_0x3048b1(0x165)][_0x3048b1(0x142)](_0x4d722f,{'withFileTypes':!![]});for(const _0x503a89 of _0x43b7fd){const _0x28f36b=a289_0x22369f[_0x3048b1(0x158)](_0x4d722f,_0x503a89[_0x3048b1(0x13e)]);let _0x1243ce=a289_0x22369f[_0x3048b1(0x158)](_0x1d8635,_0x503a89[_0x3048b1(0x13e)]);_0x503a89[_0x3048b1(0x13e)][_0x3048b1(0x169)](_0x3048b1(0x141))&&(_0x1243ce=a289_0x22369f[_0x3048b1(0x158)](_0x1d8635,_0x503a89[_0x3048b1(0x13e)][_0x3048b1(0x13f)](/\.tpl$/,'')));if(_0x503a89[_0x3048b1(0x144)]())await a289_0x3def03[_0x3048b1(0x165)]['mkdir'](_0x1243ce,{'recursive':!![]}),await this[_0x3048b1(0x136)](_0x28f36b,_0x1243ce,_0x2c9b93,_0x1f26d4);else _0x503a89[_0x3048b1(0x159)]()&&await this['processFile'](_0x28f36b,_0x1243ce,_0x2c9b93,_0x1f26d4);}}static async[a289_0x1b0148(0x152)](_0x30a16a,_0x45546f,_0x42bf82,_0x443c88){const _0x5283ea=a289_0x1b0148,_0x3e4e6a=a289_0x22369f[_0x5283ea(0x149)](_0x30a16a)[_0x5283ea(0x135)]();_0x30a16a['endsWith']('.tpl')&&(_0x45546f=_0x45546f[_0x5283ea(0x13f)](/\.tpl$/,''));const _0x185037=[_0x5283ea(0x161),'.ts',_0x5283ea(0x172),_0x5283ea(0x150),'.json',_0x5283ea(0x166),_0x5283ea(0x13d),_0x5283ea(0x157),'.tpl'];if(_0x185037[_0x5283ea(0x140)](_0x3e4e6a)||_0x30a16a[_0x5283ea(0x169)](_0x5283ea(0x141))){const _0x4da7da=await a289_0x3def03[_0x5283ea(0x165)][_0x5283ea(0x148)](_0x30a16a,_0x5283ea(0x15e)),_0x5d0f54=this[_0x5283ea(0x153)](_0x4da7da,_0x42bf82,_0x443c88);await a289_0x3def03[_0x5283ea(0x165)]['writeFile'](_0x45546f,_0x5d0f54,_0x5283ea(0x15e));}else await a289_0x3def03[_0x5283ea(0x165)]['copyFile'](_0x30a16a,_0x45546f);}}
@@ -1 +1 @@
1
- (function(_0x463f73,_0x5693bb){const _0x1d30e2=a278_0x4184,_0x59d9e5=_0x463f73();while(!![]){try{const _0xf5ebbc=-parseInt(_0x1d30e2(0x187))/0x1*(-parseInt(_0x1d30e2(0x181))/0x2)+parseInt(_0x1d30e2(0x180))/0x3+-parseInt(_0x1d30e2(0x17f))/0x4*(parseInt(_0x1d30e2(0x17e))/0x5)+parseInt(_0x1d30e2(0x17d))/0x6*(parseInt(_0x1d30e2(0x17b))/0x7)+-parseInt(_0x1d30e2(0x184))/0x8*(-parseInt(_0x1d30e2(0x17a))/0x9)+parseInt(_0x1d30e2(0x183))/0xa*(parseInt(_0x1d30e2(0x172))/0xb)+-parseInt(_0x1d30e2(0x185))/0xc;if(_0xf5ebbc===_0x5693bb)break;else _0x59d9e5['push'](_0x59d9e5['shift']());}catch(_0x4e67c8){_0x59d9e5['push'](_0x59d9e5['shift']());}}}(a278_0x1c28,0x3f4f0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a278_0x2610f7 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a278_0x1c28(){const _0x65222e=['parse','246hEuykq','179885tKwpYD','36siHwuZ','1278003IUliie','282rJitCk','/v/','3081450sdIbKB','631976VfAYaH','12396036bTzZrQ','latest','2985dpNuoe','stableVersion','checkedAt',',\x20run:\x20','lastNotifiedAt','now','lastNotifiedVersion','toLowerCase','gte','trim','utf8','number','https://www.npmjs.com/package/','valid','11KJwhjF','.cache','\x20available,\x20current\x20','stringify','rabetbase-cli','\x20update','object','yes','45Whinij','11284oIYnqA'];a278_0x1c28=function(){return _0x65222e;};return a278_0x1c28();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x204a9c=a278_0x4184,_0x4b9b45=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x204a9c(0x190)]()[_0x204a9c(0x18e)]();return _0x4b9b45==='1'||_0x4b9b45==='true'||_0x4b9b45===_0x204a9c(0x179);}function cacheRoot(){const _0x552c7b=a278_0x4184;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x552c7b(0x173));}export function getUpdateNoticeCachePath(){const _0x237de9=a278_0x4184;return join(cacheRoot(),_0x237de9(0x176),'update-check.json');}function a278_0x4184(_0x5c54a8,_0x58d218){_0x5c54a8=_0x5c54a8-0x172;const _0x1c28c0=a278_0x1c28();let _0x41846e=_0x1c28c0[_0x5c54a8];return _0x41846e;}async function readUpdateNoticeCache(){const _0xeae0cb=a278_0x4184;try{const _0x23a956=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x1eb93f=JSON[_0xeae0cb(0x17c)](_0x23a956);if(!_0x1eb93f||typeof _0x1eb93f!==_0xeae0cb(0x178))return{};return _0x1eb93f;}catch{return{};}}async function writeUpdateNoticeCache(_0x15e06f){const _0x2a4883=a278_0x4184;try{const _0x18d4da=getUpdateNoticeCachePath();await mkdir(dirname(_0x18d4da),{'recursive':!![]}),await writeFile(_0x18d4da,JSON[_0x2a4883(0x175)](_0x15e06f,null,0x2)+'\x0a',_0x2a4883(0x191));}catch{}}function isFreshCheck(_0xf5f437,_0x3443cb){const _0x3c51d5=a278_0x4184;return typeof _0xf5f437[_0x3c51d5(0x189)]===_0x3c51d5(0x192)&&_0x3443cb-_0xf5f437[_0x3c51d5(0x189)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x11c9f9,_0x521f0f,_0x44c751){const _0x5b8fa7=a278_0x4184;return _0x11c9f9[_0x5b8fa7(0x18d)]===_0x521f0f&&typeof _0x11c9f9[_0x5b8fa7(0x18b)]===_0x5b8fa7(0x192)&&_0x44c751-_0x11c9f9[_0x5b8fa7(0x18b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xd23650){const _0x329d8b=a278_0x4184;return _0x329d8b(0x193)+NPM_PACKAGE_NAME+_0x329d8b(0x182)+_0xd23650;}export async function resolveLatestUpdateNotice(){const _0x11ea78=a278_0x4184;if(isUpdateNoticeDisabled())return null;try{const _0x2b421a=Date[_0x11ea78(0x18c)](),_0x1c3f55=getCliVersion(),_0x1035c8=await readUpdateNoticeCache();let _0x6cf51c=isFreshCheck(_0x1035c8,_0x2b421a)?_0x1035c8[_0x11ea78(0x186)]?.[_0x11ea78(0x190)]():undefined;if(!_0x6cf51c&&!isFreshCheck(_0x1035c8,_0x2b421a)){const _0x10ec98=await getCliVersionPolicy();_0x6cf51c=_0x10ec98?.[_0x11ea78(0x188)]?.[_0x11ea78(0x190)]()||undefined,await writeUpdateNoticeCache({..._0x1035c8,'checkedAt':_0x2b421a,'latest':_0x6cf51c,'failed':!_0x6cf51c});}if(!_0x6cf51c||!a278_0x2610f7['valid'](_0x1c3f55)||!a278_0x2610f7[_0x11ea78(0x194)](_0x6cf51c))return null;if(a278_0x2610f7[_0x11ea78(0x18f)](_0x1c3f55,_0x6cf51c))return null;if(isRecentlyNotified(_0x1035c8,_0x6cf51c,_0x2b421a))return null;const _0x4a86f5=CLI_BIN_NAME+_0x11ea78(0x177);return await writeUpdateNoticeCache({..._0x1035c8,'checkedAt':isFreshCheck(_0x1035c8,_0x2b421a)?_0x1035c8[_0x11ea78(0x189)]:_0x2b421a,'latest':_0x6cf51c,'failed':![],'lastNotifiedVersion':_0x6cf51c,'lastNotifiedAt':_0x2b421a}),{'command':_0x4a86f5,'current':_0x1c3f55,'latest':_0x6cf51c,'url':buildNpmVersionUrl(_0x6cf51c),'message':CLI_BIN_NAME+'\x20'+_0x6cf51c+_0x11ea78(0x174)+_0x1c3f55+_0x11ea78(0x18a)+_0x4a86f5};}catch{return null;}}
1
+ (function(_0x179611,_0x4591f7){const _0x41ce10=a290_0x30a1,_0x3d7af2=_0x179611();while(!![]){try{const _0x1ed763=-parseInt(_0x41ce10(0x66))/0x1+parseInt(_0x41ce10(0x7c))/0x2+parseInt(_0x41ce10(0x78))/0x3*(parseInt(_0x41ce10(0x73))/0x4)+parseInt(_0x41ce10(0x77))/0x5*(parseInt(_0x41ce10(0x69))/0x6)+parseInt(_0x41ce10(0x68))/0x7+-parseInt(_0x41ce10(0x6b))/0x8+parseInt(_0x41ce10(0x72))/0x9;if(_0x1ed763===_0x4591f7)break;else _0x3d7af2['push'](_0x3d7af2['shift']());}catch(_0x4ed302){_0x3d7af2['push'](_0x3d7af2['shift']());}}}(a290_0x1ce2,0x63f5b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0xa9ad6b from'semver';function a290_0x1ce2(){const _0x15f72f=['latest','/v/','lastNotifiedAt','4244625HTUPkc','608wOMAXI','parse','update-check.json','stableVersion','376495tKxinn','516TbbtYC','utf8','yes',',\x20run:\x20','826020JlKghD','trim','valid','checkedAt','gte','now','\x20available,\x20current\x20','356099sKAlZB','.cache','2942884mWGEVF','18NAivsl','\x20update','6332432cGpNVg','object','toLowerCase','number'];a290_0x1ce2=function(){return _0x15f72f;};return a290_0x1ce2();}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 _0x398ce2=a290_0x30a1,_0x55587d=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x398ce2(0x7d)]()[_0x398ce2(0x6d)]();return _0x55587d==='1'||_0x55587d==='true'||_0x55587d===_0x398ce2(0x7a);}function cacheRoot(){const _0x411263=a290_0x30a1;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x411263(0x67));}export function getUpdateNoticeCachePath(){const _0x1d33d7=a290_0x30a1;return join(cacheRoot(),'rabetbase-cli',_0x1d33d7(0x75));}async function readUpdateNoticeCache(){const _0x37c878=a290_0x30a1;try{const _0x426d6e=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2b87c1=JSON[_0x37c878(0x74)](_0x426d6e);if(!_0x2b87c1||typeof _0x2b87c1!==_0x37c878(0x6c))return{};return _0x2b87c1;}catch{return{};}}async function writeUpdateNoticeCache(_0x3a0263){const _0xf3930c=a290_0x30a1;try{const _0x188e3a=getUpdateNoticeCachePath();await mkdir(dirname(_0x188e3a),{'recursive':!![]}),await writeFile(_0x188e3a,JSON['stringify'](_0x3a0263,null,0x2)+'\x0a',_0xf3930c(0x79));}catch{}}function a290_0x30a1(_0x20772e,_0x1dd6ad){_0x20772e=_0x20772e-0x64;const _0x1ce22e=a290_0x1ce2();let _0x30a143=_0x1ce22e[_0x20772e];return _0x30a143;}function isFreshCheck(_0x22fb9c,_0x12d6a0){const _0xc1cf1d=a290_0x30a1;return typeof _0x22fb9c[_0xc1cf1d(0x7f)]===_0xc1cf1d(0x6e)&&_0x12d6a0-_0x22fb9c[_0xc1cf1d(0x7f)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x49c42a,_0x2d9cc2,_0x3f8dcd){const _0x12b422=a290_0x30a1;return _0x49c42a['lastNotifiedVersion']===_0x2d9cc2&&typeof _0x49c42a[_0x12b422(0x71)]===_0x12b422(0x6e)&&_0x3f8dcd-_0x49c42a[_0x12b422(0x71)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xe55e66){const _0x53078e=a290_0x30a1;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x53078e(0x70)+_0xe55e66;}export async function resolveLatestUpdateNotice(){const _0x4b3581=a290_0x30a1;if(isUpdateNoticeDisabled())return null;try{const _0x4b1e57=Date[_0x4b3581(0x64)](),_0x4db048=getCliVersion(),_0x526a4d=await readUpdateNoticeCache();let _0x4f66c6=isFreshCheck(_0x526a4d,_0x4b1e57)?_0x526a4d[_0x4b3581(0x6f)]?.[_0x4b3581(0x7d)]():undefined;if(!_0x4f66c6&&!isFreshCheck(_0x526a4d,_0x4b1e57)){const _0x4b64e7=await getCliVersionPolicy();_0x4f66c6=_0x4b64e7?.[_0x4b3581(0x76)]?.[_0x4b3581(0x7d)]()||undefined,await writeUpdateNoticeCache({..._0x526a4d,'checkedAt':_0x4b1e57,'latest':_0x4f66c6,'failed':!_0x4f66c6});}if(!_0x4f66c6||!a290_0xa9ad6b[_0x4b3581(0x7e)](_0x4db048)||!a290_0xa9ad6b[_0x4b3581(0x7e)](_0x4f66c6))return null;if(a290_0xa9ad6b[_0x4b3581(0x80)](_0x4db048,_0x4f66c6))return null;if(isRecentlyNotified(_0x526a4d,_0x4f66c6,_0x4b1e57))return null;const _0x396a77=CLI_BIN_NAME+_0x4b3581(0x6a);return await writeUpdateNoticeCache({..._0x526a4d,'checkedAt':isFreshCheck(_0x526a4d,_0x4b1e57)?_0x526a4d['checkedAt']:_0x4b1e57,'latest':_0x4f66c6,'failed':![],'lastNotifiedVersion':_0x4f66c6,'lastNotifiedAt':_0x4b1e57}),{'command':_0x396a77,'current':_0x4db048,'latest':_0x4f66c6,'url':buildNpmVersionUrl(_0x4f66c6),'message':CLI_BIN_NAME+'\x20'+_0x4f66c6+_0x4b3581(0x65)+_0x4db048+_0x4b3581(0x7b)+_0x396a77};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x6c89dc,_0x1aa84f){var _0x506c20=a279_0x5b38,_0x320b76=_0x6c89dc();while(!![]){try{var _0x4201fd=parseInt(_0x506c20(0xb2))/0x1+parseInt(_0x506c20(0xb1))/0x2+parseInt(_0x506c20(0xb6))/0x3*(parseInt(_0x506c20(0xb3))/0x4)+parseInt(_0x506c20(0xb4))/0x5+-parseInt(_0x506c20(0xb5))/0x6*(parseInt(_0x506c20(0xb8))/0x7)+-parseInt(_0x506c20(0xb9))/0x8*(parseInt(_0x506c20(0xba))/0x9)+-parseInt(_0x506c20(0xb7))/0xa;if(_0x4201fd===_0x1aa84f)break;else _0x320b76['push'](_0x320b76['shift']());}catch(_0xd8caad){_0x320b76['push'](_0x320b76['shift']());}}}(a279_0x1f57,0x9360b));import{VERSION}from'../generated/build-info.js';function a279_0x1f57(){var _0x2833cd=['472SgXxtt','105327LkCYBU','10282dxEgni','807300lUBPCn','4nSVsOX','201945OaWAcF','12boCKos','2058159UmFGtx','831890prCjOQ','565453VIaNTl'];a279_0x1f57=function(){return _0x2833cd;};return a279_0x1f57();}function a279_0x5b38(_0x568e6c,_0x35b202){_0x568e6c=_0x568e6c-0xb1;var _0x1f57b9=a279_0x1f57();var _0x5b384c=_0x1f57b9[_0x568e6c];return _0x5b384c;}export function getCliVersion(){return VERSION;}
1
+ function a291_0x3ab1(_0x238705,_0x5cb83f){_0x238705=_0x238705-0x85;var _0x2ac38e=a291_0x2ac3();var _0x3ab123=_0x2ac38e[_0x238705];return _0x3ab123;}(function(_0x345277,_0x44e391){var _0x5f4073=a291_0x3ab1,_0x25e794=_0x345277();while(!![]){try{var _0x3d4758=parseInt(_0x5f4073(0x87))/0x1+parseInt(_0x5f4073(0x8d))/0x2+parseInt(_0x5f4073(0x8c))/0x3+parseInt(_0x5f4073(0x89))/0x4+parseInt(_0x5f4073(0x85))/0x5+-parseInt(_0x5f4073(0x8b))/0x6*(-parseInt(_0x5f4073(0x86))/0x7)+-parseInt(_0x5f4073(0x8a))/0x8*(parseInt(_0x5f4073(0x88))/0x9);if(_0x3d4758===_0x44e391)break;else _0x25e794['push'](_0x25e794['shift']());}catch(_0x2da200){_0x25e794['push'](_0x25e794['shift']());}}}(a291_0x2ac3,0x753be));function a291_0x2ac3(){var _0x29331e=['199238pAZgRO','426834iSTKqm','3399208NxIwra','536oZzUON','24rUIvPE','2850267WhZKuu','1583650pMyYDH','135110JCodNq','1469573zKBukA'];a291_0x2ac3=function(){return _0x29331e;};return a291_0x2ac3();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a280_0x2376(_0x2199c4,_0x576ba6){_0x2199c4=_0x2199c4-0x109;var _0x311436=a280_0x3114();var _0x23764a=_0x311436[_0x2199c4];return _0x23764a;}(function(_0x390084,_0x3a7bfe){var _0x1f7c27=a280_0x2376,_0x355aff=_0x390084();while(!![]){try{var _0x797553=-parseInt(_0x1f7c27(0x10e))/0x1*(parseInt(_0x1f7c27(0x113))/0x2)+-parseInt(_0x1f7c27(0x10a))/0x3*(-parseInt(_0x1f7c27(0x10b))/0x4)+parseInt(_0x1f7c27(0x112))/0x5*(-parseInt(_0x1f7c27(0x10f))/0x6)+parseInt(_0x1f7c27(0x10d))/0x7*(parseInt(_0x1f7c27(0x109))/0x8)+parseInt(_0x1f7c27(0x111))/0x9+-parseInt(_0x1f7c27(0x10c))/0xa+parseInt(_0x1f7c27(0x110))/0xb;if(_0x797553===_0x3a7bfe)break;else _0x355aff['push'](_0x355aff['shift']());}catch(_0x4302a6){_0x355aff['push'](_0x355aff['shift']());}}}(a280_0x3114,0x8f9b6));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a280_0x3114(){var _0x4ecb05=['16xbEIsL','3622490lZOFdp','239575ZwZZnM','1fyiiac','618wFoBst','16845048iIEurE','1625526hRjAdr','33695CHpEpI','2300278OjsSLO','8ZAmAYQ','786384OpJrZF'];a280_0x3114=function(){return _0x4ecb05;};return a280_0x3114();}export async function withActiveCookie(_0x21481a,_0x533238){setActiveCookie(_0x21481a);try{return await _0x533238();}finally{clearActiveCookie();}}
1
+ (function(_0x4907fb,_0x46dc9d){var _0x2bc4e4=a292_0x234b,_0x20474f=_0x4907fb();while(!![]){try{var _0x46e1fb=-parseInt(_0x2bc4e4(0x10f))/0x1+parseInt(_0x2bc4e4(0x110))/0x2*(parseInt(_0x2bc4e4(0x10e))/0x3)+-parseInt(_0x2bc4e4(0x113))/0x4+-parseInt(_0x2bc4e4(0x115))/0x5*(parseInt(_0x2bc4e4(0x10d))/0x6)+-parseInt(_0x2bc4e4(0x111))/0x7*(-parseInt(_0x2bc4e4(0x112))/0x8)+parseInt(_0x2bc4e4(0x10c))/0x9*(parseInt(_0x2bc4e4(0x114))/0xa)+parseInt(_0x2bc4e4(0x116))/0xb;if(_0x46e1fb===_0x46dc9d)break;else _0x20474f['push'](_0x20474f['shift']());}catch(_0x1735a1){_0x20474f['push'](_0x20474f['shift']());}}}(a292_0x32ab,0x74712));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a292_0x234b(_0x56bc9d,_0x39e3d5){_0x56bc9d=_0x56bc9d-0x10c;var _0x32ab04=a292_0x32ab();var _0x234b9c=_0x32ab04[_0x56bc9d];return _0x234b9c;}function a292_0x32ab(){var _0x55849c=['683046DwiUGC','2iFMeNl','49KHFEer','260904ZOkIHz','2728388KQyXpe','12270ZKXEhw','1996925RERTpX','10007701PQcEMF','6543mFUkYF','12loVhKN','1832244RARdzi'];a292_0x32ab=function(){return _0x55849c;};return a292_0x32ab();}export async function withActiveCookie(_0x3d7aa4,_0x12ca0d){setActiveCookie(_0x3d7aa4);try{return await _0x12ca0d();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- (function(_0x2eb671,_0x463285){var _0x9ea3f4=a281_0x21f8,_0x53eadb=_0x2eb671();while(!![]){try{var _0x2430e0=-parseInt(_0x9ea3f4(0x12c))/0x1*(parseInt(_0x9ea3f4(0x130))/0x2)+-parseInt(_0x9ea3f4(0x12a))/0x3*(-parseInt(_0x9ea3f4(0x12b))/0x4)+-parseInt(_0x9ea3f4(0x126))/0x5*(parseInt(_0x9ea3f4(0x129))/0x6)+parseInt(_0x9ea3f4(0x12e))/0x7+-parseInt(_0x9ea3f4(0x127))/0x8*(parseInt(_0x9ea3f4(0x12d))/0x9)+-parseInt(_0x9ea3f4(0x124))/0xa*(-parseInt(_0x9ea3f4(0x128))/0xb)+parseInt(_0x9ea3f4(0x12f))/0xc;if(_0x2430e0===_0x463285)break;else _0x53eadb['push'](_0x53eadb['shift']());}catch(_0x4f0c8d){_0x53eadb['push'](_0x53eadb['shift']());}}}(a281_0x36e3,0xb1950));function a281_0x36e3(){var _0x1bcbd4=['4572281qpTEun','3887772UgtJmn','4JMqPRr','stderr','920OuSOJN','write','100dnCFDo','206904SpbPOm','134398WNTxTQ','84924iKfPnT','2481nbmioe','1516BwotiQ','16729JifPzo','477KwACtB'];a281_0x36e3=function(){return _0x1bcbd4;};return a281_0x36e3();}function a281_0x21f8(_0x22f68b,_0x167e52){_0x22f68b=_0x22f68b-0x124;var _0x36e30d=a281_0x36e3();var _0x21f824=_0x36e30d[_0x22f68b];return _0x21f824;}export function writeCliSideChannelLine(_0x51ce49){var _0x366a34=a281_0x21f8;process[_0x366a34(0x131)][_0x366a34(0x125)](_0x51ce49+'\x0a');}
1
+ function a293_0x11ae(_0x558fb1,_0x3047c8){_0x558fb1=_0x558fb1-0xc8;var _0xb1c025=a293_0xb1c0();var _0x11aec7=_0xb1c025[_0x558fb1];return _0x11aec7;}(function(_0x32e51d,_0x7e3f1b){var _0x95cf88=a293_0x11ae,_0x2f72a4=_0x32e51d();while(!![]){try{var _0x230e71=-parseInt(_0x95cf88(0xd0))/0x1+parseInt(_0x95cf88(0xc9))/0x2+parseInt(_0x95cf88(0xd1))/0x3+-parseInt(_0x95cf88(0xc8))/0x4*(parseInt(_0x95cf88(0xce))/0x5)+-parseInt(_0x95cf88(0xca))/0x6+-parseInt(_0x95cf88(0xcb))/0x7*(-parseInt(_0x95cf88(0xcf))/0x8)+parseInt(_0x95cf88(0xcc))/0x9*(parseInt(_0x95cf88(0xcd))/0xa);if(_0x230e71===_0x7e3f1b)break;else _0x2f72a4['push'](_0x2f72a4['shift']());}catch(_0x1c2831){_0x2f72a4['push'](_0x2f72a4['shift']());}}}(a293_0xb1c0,0x33de3));export function writeCliSideChannelLine(_0x258c28){var _0x412128=a293_0x11ae;process[_0x412128(0xd2)]['write'](_0x258c28+'\x0a');}function a293_0xb1c0(){var _0xaf931d=['2101098wzVuds','7bvPhes','9qLhafz','5970320KqarZF','15EFCUVv','1729688xbxmdi','347213ibKxol','363750VtTvjI','stderr','157068prpXMz','186310nXPdBW'];a293_0xb1c0=function(){return _0xaf931d;};return a293_0xb1c0();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.16-beta.6",
3
+ "version": "2.4.1-beta.1",
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": [
@@ -35,10 +35,10 @@
35
35
  }
36
36
  },
37
37
  "engines": {
38
- "node": ">=20"
38
+ "node": ">=22.20"
39
39
  },
40
40
  "scripts": {
41
- "prebuild": "node scripts/generate-build-info.js",
41
+ "prebuild": "node scripts/generate-build-info.js && node scripts/generate-builtin-skill-manifest.mjs --check",
42
42
  "build": "rm -rf lib && tsc && tsc-alias && javascript-obfuscator lib --output lib",
43
43
  "prebuild:dev": "node scripts/generate-build-info.js",
44
44
  "build:dev": "rm -rf lib && tsc && tsc-alias",
@@ -64,6 +64,9 @@
64
64
  "test:windows:integration": "node test/run-windows-tests.js integration",
65
65
  "typecheck": "tsc --noEmit",
66
66
  "publish:github": "node scripts/publish-github.mjs",
67
+ "generate:builtin-skill-manifest": "node scripts/generate-builtin-skill-manifest.mjs",
68
+ "check:builtin-skill-manifest": "node scripts/generate-builtin-skill-manifest.mjs --check",
69
+ "postinstall": "node scripts/postinstall.mjs",
67
70
  "lint": "echo 'No linter configured yet'",
68
71
  "check:skill-version": "node scripts/check-skill-version.mjs",
69
72
  "ci": "npm run typecheck && npm run check:skill-version && npm run test:run && npm run build"
@@ -73,6 +76,9 @@
73
76
  },
74
77
  "files": [
75
78
  "lib",
79
+ "skills/rabetbase",
80
+ "skills/rabetbase.manifest.json",
81
+ "scripts/postinstall.mjs",
76
82
  "templates",
77
83
  "sidecar",
78
84
  "README.md",
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ import { existsSync } from "node:fs";
3
+ import { dirname, join, resolve } from "node:path";
4
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
+
6
+ const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
7
+ const entry = join(root, "lib", "postinstall.js");
8
+
9
+ if (!existsSync(entry)) {
10
+ if (existsSync(join(root, "src", "postinstall.ts"))) {
11
+ console.log("Skipping Built-in Skill postinstall in an unbuilt source checkout.");
12
+ } else {
13
+ console.error("[BUILTIN_SKILL_INSTALL_SOURCE_MISSING] Missing lib/postinstall.js");
14
+ process.exitCode = 1;
15
+ }
16
+ } else {
17
+ try {
18
+ const { runPostinstall } = await import(pathToFileURL(entry).href);
19
+ await runPostinstall();
20
+ } catch (error) {
21
+ console.error(error instanceof Error ? error.message : String(error));
22
+ process.exitCode = 1;
23
+ }
24
+ }