@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.
- package/README.md +2 -2
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/react/create.js +1 -0
- package/lib/commands/page/react/detail.js +1 -0
- package/lib/commands/page/react/list.js +1 -0
- package/lib/commands/page/react/publish.js +1 -0
- package/lib/commands/page/react/shared.js +1 -0
- package/lib/commands/page/react/syntax.js +1 -0
- package/lib/commands/page/react/template.js +1 -0
- package/lib/commands/page/react/update.js +1 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -0
- package/lib/commands/tenant/members-list.js +1 -0
- package/lib/commands/tenant/shared.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/templates/projects/sub-app-react-demo/CHANGELOG.md +1 -1
- package/templates/projects/sub-app-react-demo/README.md +1 -1
- package/templates/projects/sub-app-react-demo/docs/quick-start.md +1 -1
- package/templates/projects/sub-app-react-demo/src/pages/index.tsx +1 -1
- package/lib/commands/app/add.js +0 -1
- package/lib/commands/app/remove.js +0 -1
- package/lib/commands/project/init.js +0 -1
- package/lib/commands/sql/save.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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.
|
|
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/
|
|
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
|
|
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
|
|
package/lib/commands/app/add.js
DELETED
|
@@ -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);}}
|
package/lib/commands/sql/save.js
DELETED
|
@@ -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);}};
|