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

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 (289) hide show
  1. package/README.md +2 -2
  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 -0
  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.js +1 -0
  142. package/lib/commands/page/react/detail.js +1 -0
  143. package/lib/commands/page/react/list.js +1 -0
  144. package/lib/commands/page/react/publish.js +1 -0
  145. package/lib/commands/page/react/shared.js +1 -0
  146. package/lib/commands/page/react/syntax.js +1 -0
  147. package/lib/commands/page/react/template.js +1 -0
  148. package/lib/commands/page/react/update.js +1 -0
  149. package/lib/commands/page/relation-audit.js +1 -1
  150. package/lib/commands/page/restore.js +1 -1
  151. package/lib/commands/page/shared.js +1 -1
  152. package/lib/commands/page/standard-page-status.js +1 -1
  153. package/lib/commands/page/sync.js +1 -1
  154. package/lib/commands/permit/index.js +1 -1
  155. package/lib/commands/permit/page-get.js +1 -1
  156. package/lib/commands/permit/page-set.js +1 -1
  157. package/lib/commands/permit/role-apis-set.js +1 -1
  158. package/lib/commands/permit/role-menus-set.js +1 -1
  159. package/lib/commands/permit/role-menus.js +1 -1
  160. package/lib/commands/permit/shared.js +1 -1
  161. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  162. package/lib/commands/project/create/format-elapsed.js +1 -1
  163. package/lib/commands/project/create/main.js +1 -1
  164. package/lib/commands/project/create/non-interactive.js +1 -1
  165. package/lib/commands/project/create/project-template-path.js +1 -1
  166. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  167. package/lib/commands/project/create/use-format-code.js +1 -1
  168. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  169. package/lib/commands/project/index.js +1 -1
  170. package/lib/commands/project/upgrade.js +1 -1
  171. package/lib/commands/registry.js +1 -1
  172. package/lib/commands/role/create.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -0
  198. package/lib/commands/tenant/members-list.js +1 -0
  199. package/lib/commands/tenant/shared.js +1 -0
  200. package/lib/commands/workspace/add.js +1 -1
  201. package/lib/commands/workspace/index.js +1 -1
  202. package/lib/commands/workspace/remove.js +1 -1
  203. package/lib/config/schema.js +1 -1
  204. package/lib/constant/cdn.js +1 -1
  205. package/lib/constant/cli.js +1 -1
  206. package/lib/constant/defaults.js +1 -1
  207. package/lib/constant/domain.js +1 -1
  208. package/lib/constant/env.js +1 -1
  209. package/lib/constant/output.js +1 -1
  210. package/lib/constant/paths.js +1 -1
  211. package/lib/constant/risk.js +1 -1
  212. package/lib/context/app-resolver.js +1 -1
  213. package/lib/context/auth-resolver.js +1 -1
  214. package/lib/context/config-loader.js +1 -1
  215. package/lib/context.js +1 -1
  216. package/lib/core/alias-resolver.js +1 -1
  217. package/lib/core/api-client.js +1 -1
  218. package/lib/core/bff/config.js +1 -1
  219. package/lib/core/bff/file-system.js +1 -1
  220. package/lib/core/bff/hash.js +1 -1
  221. package/lib/core/bff/lock.js +1 -1
  222. package/lib/core/bff/utils.js +1 -1
  223. package/lib/core/db-resolver.js +1 -1
  224. package/lib/core/page/file-system.js +1 -1
  225. package/lib/core/page/hash.js +1 -1
  226. package/lib/core/page/lock.js +1 -1
  227. package/lib/core/sql-index-auditor.js +1 -1
  228. package/lib/core/sql-sync/config.js +1 -1
  229. package/lib/core/sql-sync/file-system.js +1 -1
  230. package/lib/core/sql-sync/hash.js +1 -1
  231. package/lib/core/sql-sync/lock.js +1 -1
  232. package/lib/core/sql-sync/utils.js +1 -1
  233. package/lib/core/sql-validator.js +1 -1
  234. package/lib/errors.js +1 -1
  235. package/lib/framework/build-all-flags.js +1 -1
  236. package/lib/framework/error-output.js +1 -1
  237. package/lib/framework/explicit-yes.js +1 -1
  238. package/lib/framework/flags.js +1 -1
  239. package/lib/framework/help.js +1 -1
  240. package/lib/framework/index.js +1 -1
  241. package/lib/framework/output.js +1 -1
  242. package/lib/framework/response.js +1 -1
  243. package/lib/framework/runner-alias.js +1 -1
  244. package/lib/framework/runner.js +1 -1
  245. package/lib/framework/schema-export.js +1 -1
  246. package/lib/framework/types.js +1 -1
  247. package/lib/generated/build-info.js +1 -1
  248. package/lib/help.js +1 -1
  249. package/lib/skills/main.js +1 -1
  250. package/lib/skills/npx-skills-add.js +1 -1
  251. package/lib/skills/skill-presence.js +1 -1
  252. package/lib/telemetry/cli-command-trace.js +1 -1
  253. package/lib/telemetry/cli-help-trace.js +1 -1
  254. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  255. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  256. package/lib/telemetry/send-cli-trace-log.js +1 -1
  257. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  258. package/lib/utils/ai_config.js +1 -1
  259. package/lib/utils/apply-jq-filter.js +1 -1
  260. package/lib/utils/cdn-config.js +1 -1
  261. package/lib/utils/check-sdk-version.js +1 -1
  262. package/lib/utils/cli-version-check.js +1 -1
  263. package/lib/utils/cli-version-policy.js +1 -1
  264. package/lib/utils/config.js +1 -1
  265. package/lib/utils/copy-directory.js +1 -1
  266. package/lib/utils/entity-with-id.js +1 -1
  267. package/lib/utils/file-utils.js +1 -1
  268. package/lib/utils/guides-cdn.js +1 -1
  269. package/lib/utils/http-client.js +1 -1
  270. package/lib/utils/is-non-interactive.js +1 -1
  271. package/lib/utils/logger.js +1 -1
  272. package/lib/utils/params.js +1 -1
  273. package/lib/utils/platform.js +1 -1
  274. package/lib/utils/rules-cdn.js +1 -1
  275. package/lib/utils/sleep.js +1 -1
  276. package/lib/utils/template-replacer.js +1 -1
  277. package/lib/utils/update-notice.js +1 -1
  278. package/lib/utils/version.js +1 -1
  279. package/lib/utils/with-active-cookie.js +1 -1
  280. package/lib/utils/write-cli-side-channel.js +1 -1
  281. package/package.json +2 -2
  282. package/templates/projects/sub-app-react-demo/CHANGELOG.md +1 -1
  283. package/templates/projects/sub-app-react-demo/README.md +1 -1
  284. package/templates/projects/sub-app-react-demo/docs/quick-start.md +1 -1
  285. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +1 -1
  286. package/lib/commands/app/add.js +0 -1
  287. package/lib/commands/app/remove.js +0 -1
  288. package/lib/commands/project/init.js +0 -1
  289. package/lib/commands/sql/save.js +0 -1
@@ -1 +1 @@
1
- function a275_0x2c2e(_0x3347bf,_0x1dcfb6){_0x3347bf=_0x3347bf-0x1ac;var _0x560c6b=a275_0x560c();var _0x2c2e2e=_0x560c6b[_0x3347bf];return _0x2c2e2e;}function a275_0x560c(){var _0x66e11b=['8dpOmOq','3097945ivtcAc','1415224CFFpRl','170386CFlALA','1945644afyCTq','5740794nbkPYO','1104234eswqgB','write','stderr','1935122HuXbFH'];a275_0x560c=function(){return _0x66e11b;};return a275_0x560c();}(function(_0x28d712,_0x512d97){var _0x2cac66=a275_0x2c2e,_0x22ca40=_0x28d712();while(!![]){try{var _0x3c29f3=parseInt(_0x2cac66(0x1b4))/0x1*(-parseInt(_0x2cac66(0x1ad))/0x2)+parseInt(_0x2cac66(0x1b0))/0x3+parseInt(_0x2cac66(0x1ae))/0x4+-parseInt(_0x2cac66(0x1b5))/0x5+parseInt(_0x2cac66(0x1af))/0x6+parseInt(_0x2cac66(0x1b3))/0x7+-parseInt(_0x2cac66(0x1ac))/0x8;if(_0x3c29f3===_0x512d97)break;else _0x22ca40['push'](_0x22ca40['shift']());}catch(_0x15faea){_0x22ca40['push'](_0x22ca40['shift']());}}}(a275_0x560c,0x94da2));export function writeCliSideChannelLine(_0x104d43){var _0x26fe1d=a275_0x2c2e;process[_0x26fe1d(0x1b2)][_0x26fe1d(0x1b1)](_0x104d43+'\x0a');}
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');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.16-beta.1",
3
+ "version": "2.3.16-beta.3",
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": [
@@ -47,7 +47,7 @@
47
47
  "test:ui": "vitest --ui",
48
48
  "test:watch": "vitest --watch",
49
49
  "test:unit": "vitest run test/unit",
50
- "test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/app-add.test.ts test/unit/commands/app-remove.test.ts test/unit/commands/app-list.test.ts test/unit/commands/workspace.test.ts test/unit/commands/app-workspace-migration.test.ts",
50
+ "test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/workspace-add.test.ts test/unit/commands/workspace-remove.test.ts test/unit/commands/app-list.test.ts test/unit/commands/workspace.test.ts test/unit/commands/app-workspace-migration.test.ts",
51
51
  "test:integration": "vitest run test/integration",
52
52
  "test:e2e": "vitest run test/e2e",
53
53
  "test:e2e:daily": "RABETBASE_E2E_DAILY=1 vitest run test/e2e/daily-app-smoke.test.ts",
@@ -10,7 +10,7 @@
10
10
 
11
11
  - 移除旧 `/hello-world`、`/chart-fetch`、`/intro` 实操路径,改为当前 `src/pages` 自动路由页面。
12
12
  - 统一本地启动、构建、预览命令为 `rabetbase run start/build/preview`。
13
- - 补充 `rabetbase project create`、`rabetbase config set appcode`、`rabetbase project init`、`rabetbase api pull` 的使用时机。
13
+ - 补充 `rabetbase project create`、`rabetbase config set appcode`、`rabetbase workspace init`、`rabetbase api pull` 的使用时机。
14
14
  - 补充 SDK 配置、微前端接入、CDN 产物和 Lovrabet 主应用页面配置说明。
15
15
  - 重做首页为 Prompt 开发入口,展示 AppCode 状态、Agent 场景示例、飞书文库导航、内置页面入口和主应用接入检查清单。
16
16
 
@@ -126,7 +126,7 @@ rabetbase api pull
126
126
  如果你是直接克隆模板源码,且当前目录还没有 `.rabetbase.json`,先执行:
127
127
 
128
128
  ```bash
129
- rabetbase project init --appcode YOUR_APP_CODE
129
+ rabetbase workspace init --appcode YOUR_APP_CODE
130
130
  rabetbase api pull
131
131
  ```
132
132
 
@@ -103,7 +103,7 @@ rabetbase api pull
103
103
  如果你是直接克隆模板源码,且当前目录还没有 `.rabetbase.json`,执行:
104
104
 
105
105
  ```bash
106
- rabetbase project init --appcode app-xxxx
106
+ rabetbase workspace init --appcode app-xxxx
107
107
  rabetbase api pull
108
108
  ```
109
109
 
@@ -205,7 +205,7 @@ function HomePage() {
205
205
  tags: ["项目配置", "模型同步"],
206
206
  prompt: setupPrompt,
207
207
  commands: [
208
- "rabetbase project init",
208
+ "rabetbase workspace init --appcode <code>",
209
209
  "rabetbase config get",
210
210
  "rabetbase api pull",
211
211
  ],
@@ -1 +0,0 @@
1
- const a18_0x5e0afc=a18_0x66bd;function a18_0x5503(){const _0x4ec3b0=['2026-07','1010028TsWNyc','name','103215pDLrFR','app','app\x20add','237016eBvyZk','6753465hPCKXZ','Deprecated:\x20use\x20workspace\x20add\x20to\x20register\x20an\x20app\x20profile','467064vGUQsx','116Kabgfs','add','10525oSxhwG','App\x20profile\x20name','88UdltMr','10ejNgTL','211703auuBZk','write'];a18_0x5503=function(){return _0x4ec3b0;};return a18_0x5503();}(function(_0x53969d,_0x3a1a31){const _0x3e9d19=a18_0x66bd,_0x2cd22c=_0x53969d();while(!![]){try{const _0x126074=-parseInt(_0x3e9d19(0x129))/0x1+-parseInt(_0x3e9d19(0x131))/0x2+-parseInt(_0x3e9d19(0x134))/0x3+-parseInt(_0x3e9d19(0x123))/0x4*(parseInt(_0x3e9d19(0x125))/0x5)+-parseInt(_0x3e9d19(0x12c))/0x6+-parseInt(_0x3e9d19(0x12e))/0x7*(-parseInt(_0x3e9d19(0x127))/0x8)+parseInt(_0x3e9d19(0x132))/0x9*(parseInt(_0x3e9d19(0x128))/0xa);if(_0x126074===_0x3a1a31)break;else _0x2cd22c['push'](_0x2cd22c['shift']());}catch(_0x42d1d8){_0x2cd22c['push'](_0x2cd22c['shift']());}}}(a18_0x5503,0x302b2));function a18_0x66bd(_0x585846,_0xd5ed83){_0x585846=_0x585846-0x123;const _0x550381=a18_0x5503();let _0x66bde4=_0x550381[_0x585846];return _0x66bde4;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const appAddDefinition={'service':a18_0x5e0afc(0x12f),'command':a18_0x5e0afc(0x124),'description':a18_0x5e0afc(0x133),'risk':a18_0x5e0afc(0x12a),'requiresAuth':![],'requiresAppCode':![],'hidden':!![],'deprecated':{'replacement':CLI_BIN_NAME+'\x20workspace\x20add','since':a18_0x5e0afc(0x12b)},'args':[{'name':a18_0x5e0afc(0x12d),'description':a18_0x5e0afc(0x126),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x470cfb=>validateAppName(_0x470cfb,a18_0x5e0afc(0x130)),'execute':_0x1f2cdb=>runAppAdd(_0x1f2cdb,a18_0x5e0afc(0x130))};
@@ -1 +0,0 @@
1
- const a22_0x23ced0=a22_0x2885;function a22_0x2885(_0x1d6d0b,_0x21433f){_0x1d6d0b=_0x1d6d0b-0x17d;const _0x1c15cd=a22_0x1c15();let _0x288564=_0x1c15cd[_0x1d6d0b];return _0x288564;}(function(_0x3708f8,_0x5e8794){const _0x5d457c=a22_0x2885,_0x24a116=_0x3708f8();while(!![]){try{const _0x45f5eb=-parseInt(_0x5d457c(0x181))/0x1*(parseInt(_0x5d457c(0x186))/0x2)+-parseInt(_0x5d457c(0x180))/0x3*(parseInt(_0x5d457c(0x18f))/0x4)+parseInt(_0x5d457c(0x182))/0x5*(-parseInt(_0x5d457c(0x18d))/0x6)+-parseInt(_0x5d457c(0x187))/0x7+parseInt(_0x5d457c(0x17f))/0x8*(parseInt(_0x5d457c(0x18e))/0x9)+-parseInt(_0x5d457c(0x189))/0xa*(parseInt(_0x5d457c(0x18a))/0xb)+parseInt(_0x5d457c(0x184))/0xc;if(_0x45f5eb===_0x5e8794)break;else _0x24a116['push'](_0x24a116['shift']());}catch(_0x2a76d3){_0x24a116['push'](_0x24a116['shift']());}}}(a22_0x1c15,0x8db58));import{CLI_BIN_NAME}from'../../constant/cli.js';import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const appRemoveDefinition={'service':a22_0x23ced0(0x18c),'command':a22_0x23ced0(0x18b),'description':a22_0x23ced0(0x17e),'risk':a22_0x23ced0(0x17d),'requiresAuth':![],'requiresAppCode':![],'hidden':!![],'deprecated':{'replacement':CLI_BIN_NAME+a22_0x23ced0(0x185),'since':'2026-07'},'args':[{'name':a22_0x23ced0(0x183),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x31b444=>validateAppName(_0x31b444,a22_0x23ced0(0x188)),'execute':_0x4559f1=>runAppRemove(_0x4559f1,a22_0x23ced0(0x188))};function a22_0x1c15(){const _0x3d94ba=['1854EQCWym','6742176YQaICV','app\x20remove','10EXajve','1548965MOBlKF','remove','app','294VPkoKN','119259eENdVd','72188HUDmFf','high-risk-write','Deprecated:\x20use\x20workspace\x20remove\x20to\x20remove\x20an\x20app\x20profile','504OouRrI','93xqSvYw','1136gXmAel','83270Dpqupk','name','39338220IZLEAV','\x20workspace\x20remove'];a22_0x1c15=function(){return _0x3d94ba;};return a22_0x1c15();}
@@ -1 +0,0 @@
1
- (function(_0x4ce70d,_0x3b76c8){const _0x599998=a162_0x3f04,_0x3fc6eb=_0x4ce70d();while(!![]){try{const _0x9279cf=-parseInt(_0x599998(0x15e))/0x1*(parseInt(_0x599998(0x165))/0x2)+parseInt(_0x599998(0x15f))/0x3*(parseInt(_0x599998(0x15a))/0x4)+-parseInt(_0x599998(0x134))/0x5*(parseInt(_0x599998(0x153))/0x6)+-parseInt(_0x599998(0x13a))/0x7+-parseInt(_0x599998(0x136))/0x8+parseInt(_0x599998(0x15d))/0x9*(parseInt(_0x599998(0x163))/0xa)+-parseInt(_0x599998(0x147))/0xb*(-parseInt(_0x599998(0x15c))/0xc);if(_0x9279cf===_0x3b76c8)break;else _0x3fc6eb['push'](_0x3fc6eb['shift']());}catch(_0x5e3d80){_0x3fc6eb['push'](_0x3fc6eb['shift']());}}}(a162_0x8529,0x450ca));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';import a162_0x356676 from'chalk';function a162_0x8529(){const _0x4564e3=['log','346722MZpcVb','\x20\x20Apps:\x20','\x20→\x20.rabetbase.json','\x20api\x20pull\x27','defaultApp','app','production','5MchWvr','\x20api\x20generate\x27\x20and\x20\x27','616752nrfeCs','cyan','从旧配置文件升级成功','green','486836EUrhGY','yellow','Please\x20enter\x20App\x20Code:','.rabetbase.json','?\x20(Old\x20file\x20→\x20*.bak)','Migration\x20cancelled.\x20Run\x20`','\x20\x20appcode:\x20','join','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','../..','setLogPath','Upgrade\x20it\x20to\x20','初始化项目配置文件成功','1344233gbTowy','apps','parse','✓\x20Upgraded\x20','bold','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','string','init','utf8','version','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','1.0.0','1476702HvCseb','env','.bak','info','\x20workspace\x20init`\x20to\x20start\x20fresh.','cwd','\x20\x20Default:\x20','788400ybyGiE','keys','60hoPHWk','19341zlaapZ','1CeOMgR','3oCxTQc','appcode','App\x20Code\x20cannot\x20be\x20empty','toLocaleString','190LAzORM'];a162_0x8529=function(){return _0x4564e3;};return a162_0x8529();}function a162_0x3f04(_0x30594a,_0x486705){_0x30594a=_0x30594a-0x132;const _0x8529df=a162_0x8529();let _0x3f0445=_0x8529df[_0x30594a];return _0x3f0445;}import{input,confirm}from'@inquirer/prompts';import{CLI_BIN_NAME}from'../../constant/cli.js';import{logger}from'../../utils/logger.js';import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../../context.js';import{validateAppcode}from'../../commands/common/validate.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';export async function initConfig(_0x46be7e){const _0x5eedf6=a162_0x3f04,{appcode:_0x3a2061,env:_0x3f664e,autoYes:_0x1684f0}=_0x46be7e,_0xed3e73=process[_0x5eedf6(0x158)]();if(getProjectConfigPath())throw new Error(_0x5eedf6(0x142));let _0x171279;for(const _0x438e3c of LEGACY_CONFIG_NAMES){const _0x127adf=resolve(_0xed3e73,_0x438e3c);if(existsSync(_0x127adf)){_0x171279=_0x127adf;break;}}if(_0x171279){let _0x15036d={};try{_0x15036d=JSON['parse'](readFileSync(_0x171279,_0x5eedf6(0x14f)));}catch{}const _0x5a4972=basename(_0x171279),_0x1b313e=_0x15036d?.['appcode']||_0x15036d?.[_0x5eedf6(0x132)];let _0x1cc762=_0x1684f0;!_0x1684f0&&(console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x13b)](_0x5eedf6(0x151)+a162_0x356676[_0x5eedf6(0x14b)](_0x5a4972))),_0x1b313e&&console[_0x5eedf6(0x164)](a162_0x356676['cyan'](_0x5eedf6(0x140)+_0x1b313e)),_0x1cc762=await confirm({'message':_0x5eedf6(0x145)+a162_0x356676[_0x5eedf6(0x14b)](_0x5eedf6(0x13d))+_0x5eedf6(0x13e),'default':!![]}));if(!_0x1cc762){console[_0x5eedf6(0x164)](_0x5eedf6(0x13f)+CLI_BIN_NAME+_0x5eedf6(0x157));return;}const _0x355163=resolve(_0xed3e73,NEW_CONFIG_NAME),_0xcd2d0d=getCliVersionFromPkg(),_0x5b578f=readRawConfig(),_0x13b20b=_0x3a2061||(typeof _0x15036d?.[_0x5eedf6(0x160)]===_0x5eedf6(0x14d)?_0x15036d[_0x5eedf6(0x160)]:undefined)||(typeof _0x15036d?.[_0x5eedf6(0x132)]===_0x5eedf6(0x14d)?_0x15036d[_0x5eedf6(0x132)]:undefined)||await askAppcode(),_0x3710e9=typeof _0x15036d?.[_0x5eedf6(0x154)]===_0x5eedf6(0x14d)?_0x15036d['env']:typeof _0x5b578f['env']==='string'?_0x5b578f[_0x5eedf6(0x154)]:_0x5eedf6(0x133),_0x5354c5=buildCanonicalProjectConfig({..._0x5b578f,..._0x15036d},{'appCodes':[_0x13b20b],'env':_0x3710e9,'metadata':{'version':_0xcd2d0d,'migratedAt':new Date()[_0x5eedf6(0x162)](),'migratedFrom':_0x171279}});writeConfigFile(_0x355163,_0x5354c5);const _0x479536=_0x171279+_0x5eedf6(0x155);renameSync(_0x171279,_0x479536),logger[_0x5eedf6(0x144)](_0xed3e73),logger['info'](_0x5eedf6(0x14e),_0x5eedf6(0x138),{'from':_0x171279,'to':_0x355163,'appcode':_0x13b20b,'env':_0x5354c5[_0x5eedf6(0x154)]}),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x139)](_0x5eedf6(0x14a)+_0x5a4972+_0x5eedf6(0x167))),console['log'](a162_0x356676[_0x5eedf6(0x137)](_0x5eedf6(0x166)+Object[_0x5eedf6(0x15b)](_0x5354c5[_0x5eedf6(0x148)]||{})[_0x5eedf6(0x141)](',\x20'))),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x137)](_0x5eedf6(0x159)+_0x5354c5[_0x5eedf6(0x169)])),console[_0x5eedf6(0x164)](a162_0x356676['gray']('\x20\x20Old\x20file\x20backed\x20up\x20as\x20'+_0x5a4972+_0x5eedf6(0x155)));return;}const _0x3c473b=_0x3a2061||await askAppcode(),_0x385b89=resolve(_0xed3e73,NEW_CONFIG_NAME),_0x2f0b92=getCliVersionFromPkg(),_0x5d9ba7=readRawConfig(),_0x272367=typeof _0x5d9ba7[_0x5eedf6(0x154)]===_0x5eedf6(0x14d)?_0x5d9ba7[_0x5eedf6(0x154)]:undefined,_0x49e06c=buildCanonicalProjectConfig({},{'appCodes':[_0x3c473b],'env':_0x3f664e||_0x272367||_0x5eedf6(0x133),'metadata':{'version':_0x2f0b92,'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x385b89,_0x49e06c),logger['setLogPath'](_0xed3e73),logger[_0x5eedf6(0x156)](_0x5eedf6(0x14e),_0x5eedf6(0x146),{'appcode':_0x3c473b,'env':_0x49e06c[_0x5eedf6(0x154)],'version':_0x49e06c[_0x5eedf6(0x150)],'configPath':_0x385b89}),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x139)](_0x5eedf6(0x14c))),console[_0x5eedf6(0x164)](a162_0x356676[_0x5eedf6(0x137)](_0x5eedf6(0x166)+Object[_0x5eedf6(0x15b)](_0x49e06c[_0x5eedf6(0x148)]||{})[_0x5eedf6(0x141)](',\x20'))),console[_0x5eedf6(0x164)](a162_0x356676['cyan']('\x20\x20Default:\x20'+_0x49e06c['defaultApp'])),console[_0x5eedf6(0x164)]('\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27'+CLI_BIN_NAME+_0x5eedf6(0x135)+CLI_BIN_NAME+_0x5eedf6(0x168));}function askAppcode(){const _0x1dcd76=a162_0x3f04;return input({'message':_0x1dcd76(0x13c),'validate':_0x56cd2e=>{const _0x368395=_0x1dcd76;if(!_0x56cd2e['trim']())return _0x368395(0x161);const {valid:_0x31775b,message:_0x3b3e9f}=validateAppcode(_0x56cd2e['trim']());return _0x31775b||_0x3b3e9f||'Invalid\x20App\x20Code';}});}function getCliVersionFromPkg(){const _0x426612=a162_0x3f04;try{const _0x276dfc=fileURLToPath(import.meta.url),_0x3bbf80=resolve(dirname(_0x276dfc),_0x426612(0x143)),_0x50b28b=JSON[_0x426612(0x149)](readFileSync(resolve(_0x3bbf80,'package.json'),_0x426612(0x14f)));return _0x50b28b['version']||_0x426612(0x152);}catch{return _0x426612(0x152);}}
@@ -1 +0,0 @@
1
- function a185_0x41d5(_0x2c9099,_0x34067c){_0x2c9099=_0x2c9099-0x101;const _0x38ccea=a185_0x38cc();let _0x41d598=_0x38ccea[_0x2c9099];return _0x41d598;}function a185_0x38cc(){const _0x2b7829=['file','502131QWcRaz','36RIaBlh','608839MyeoTz','76628oFKKZv','Create\x20new\x20SQL\x20with\x20`rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml`.','Target\x20database\x20—\x20accepts\x20a\x20numeric\x20ID\x20or\x20database\x20name\x20(e.g.\x20ecommerce_db)','sql','sqlname','Query\x20description','`rabetbase\x20sql\x20save`\x20has\x20been\x20deprecated.','40xzmebv','3180176pQfDGk','40TOzXfc','Update\x20existing\x20SQL\x20by\x20editing\x20the\x20synced\x20file\x20under\x20`.rabetbase/sql/<appCode>/<dbName|db-<id>>/`\x20and\x20then\x20running\x20`rabetbase\x20sql\x20push\x20--sqlcode\x20<code>\x20--yes`.','write','5mlAEeW','75RBAruC','SQL\x20query\x20display\x20name','Path\x20to\x20the\x20SQL\x20file','1566324uyuQzS','1561909bUyHTO','7330086gvRZOB','string','validation'];a185_0x38cc=function(){return _0x2b7829;};return a185_0x38cc();}const a185_0x26927e=a185_0x41d5;(function(_0x354487,_0x9f3eb9){const _0x4f6a85=a185_0x41d5,_0x292589=_0x354487();while(!![]){try{const _0x6f803=-parseInt(_0x4f6a85(0x10c))/0x1+-parseInt(_0x4f6a85(0x114))/0x2*(-parseInt(_0x4f6a85(0x108))/0x3)+-parseInt(_0x4f6a85(0x103))/0x4*(-parseInt(_0x4f6a85(0x107))/0x5)+parseInt(_0x4f6a85(0x10d))/0x6+-parseInt(_0x4f6a85(0x111))/0x7*(-parseInt(_0x4f6a85(0x102))/0x8)+parseInt(_0x4f6a85(0x10b))/0x9*(-parseInt(_0x4f6a85(0x104))/0xa)+-parseInt(_0x4f6a85(0x113))/0xb*(parseInt(_0x4f6a85(0x112))/0xc);if(_0x6f803===_0x9f3eb9)break;else _0x292589['push'](_0x292589['shift']());}catch(_0x83b207){_0x292589['push'](_0x292589['shift']());}}}(a185_0x38cc,0xddf54));import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const SQL_SAVE_DEPRECATED_HINT=[a185_0x26927e(0x101),a185_0x26927e(0x115),a185_0x26927e(0x105)]['join']('\x0a');export const sqlSave={'service':a185_0x26927e(0x117),'command':'save','description':'Deprecated:\x20use\x20sql\x20create\x20to\x20create\x20and\x20sql\x20push\x20to\x20update','risk':a185_0x26927e(0x106),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a185_0x26927e(0x110),'type':a185_0x26927e(0x10e),'required':!![],'description':a185_0x26927e(0x10a)},SQLCODE_FLAG_OPTIONAL,{'name':a185_0x26927e(0x118),'type':a185_0x26927e(0x10e),'description':a185_0x26927e(0x109)},{'name':'db','type':a185_0x26927e(0x10e),'description':a185_0x26927e(0x116)},{'name':'description','type':'string','description':a185_0x26927e(0x119)}],async 'validate'(){throw CliErrors['validation'](SQL_SAVE_DEPRECATED_HINT);},async 'execute'(){const _0x3dba4b=a185_0x26927e;throw CliErrors[_0x3dba4b(0x10f)](SQL_SAVE_DEPRECATED_HINT);}};