@lovrabet/rabetbase-cli 2.3.16-beta.3 → 2.3.16-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.d.ts +9 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.d.ts +2 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +8 -0
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.d.ts +13 -0
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.d.ts +25 -0
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.d.ts +2 -0
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.d.ts +1 -0
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.d.ts +51 -0
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.d.ts +1 -0
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.d.ts +5 -0
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.d.ts +1 -0
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.d.ts +12 -0
- package/lib/cli-flags.js +1 -1
- package/lib/cli.d.ts +2 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.d.ts +2 -0
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.d.ts +2 -0
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.d.ts +2 -0
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.d.ts +2 -0
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.d.ts +18 -0
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.d.ts +5 -0
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.d.ts +10 -0
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.d.ts +2 -0
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.d.ts +11 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.d.ts +46 -0
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.d.ts +2 -0
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.d.ts +2 -0
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.d.ts +2 -0
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.d.ts +2 -0
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.d.ts +2 -0
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.d.ts +105 -0
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.d.ts +2 -0
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.d.ts +4 -0
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.d.ts +2 -0
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.d.ts +2 -0
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.d.ts +5 -0
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.d.ts +2 -0
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.d.ts +2 -0
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.d.ts +2 -0
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.d.ts +2 -0
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.d.ts +8 -0
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.d.ts +2 -0
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.d.ts +2 -0
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.d.ts +2 -0
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.d.ts +2 -0
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.d.ts +17 -0
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.d.ts +17 -0
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.d.ts +11 -0
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.d.ts +12 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +26 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.d.ts +6 -0
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.d.ts +13 -0
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.d.ts +5 -0
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.d.ts +5 -0
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.d.ts +5 -0
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.d.ts +5 -0
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.d.ts +16 -0
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.d.ts +7 -0
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.d.ts +7 -0
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.d.ts +8 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.d.ts +33 -0
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.d.ts +18 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.d.ts +11 -0
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.d.ts +2 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.d.ts +2 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.d.ts +26 -0
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.d.ts +27 -0
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.d.ts +3 -0
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.d.ts +2 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.d.ts +2 -0
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.d.ts +2 -0
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.d.ts +2 -0
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.d.ts +2 -0
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.d.ts +2 -0
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.d.ts +128 -0
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.d.ts +2 -0
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.d.ts +53 -0
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.d.ts +17 -0
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.d.ts +2 -0
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.d.ts +30 -0
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.d.ts +2 -0
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.d.ts +2 -0
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.d.ts +2 -0
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.d.ts +2 -0
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.d.ts +2 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.d.ts +2 -0
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.d.ts +2 -0
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.d.ts +5 -0
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.d.ts +2 -0
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.d.ts +15 -0
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.d.ts +2 -0
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.d.ts +2 -0
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.d.ts +2 -0
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.d.ts +2 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.d.ts +2 -0
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.d.ts +11 -0
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.d.ts +2 -0
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.d.ts +23 -0
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.d.ts +2 -0
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.d.ts +32 -0
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.d.ts +2 -0
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.d.ts +2 -0
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.d.ts +2 -0
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.d.ts +2 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.d.ts +2 -0
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.d.ts +33 -0
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.d.ts +2 -0
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.d.ts +5 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.d.ts +2 -0
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.d.ts +2 -0
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.d.ts +3 -0
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.d.ts +2 -0
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.d.ts +2 -0
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.d.ts +2 -0
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.d.ts +17 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.d.ts +2 -0
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.d.ts +2 -0
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.d.ts +2 -0
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.d.ts +2 -0
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.d.ts +27 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.d.ts +12 -0
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.d.ts +12 -0
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.d.ts +10 -0
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.d.ts +12 -0
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +28 -0
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +69 -0
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.d.ts +17 -0
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.d.ts +7 -0
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +162 -0
- package/lib/commands/menu/shared/update-core.d.ts +11 -0
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.d.ts +6 -0
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.d.ts +2 -0
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.d.ts +2 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.d.ts +2 -0
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.d.ts +2 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.d.ts +2 -0
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.d.ts +2 -0
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.d.ts +2 -0
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.d.ts +2 -0
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.d.ts +2 -0
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.d.ts +2 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.d.ts +2 -0
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +105 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.d.ts +2 -0
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.d.ts +2 -0
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.d.ts +2 -0
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.d.ts +2 -0
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.d.ts +2 -0
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.d.ts +2 -0
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.d.ts +2 -0
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.d.ts +2 -0
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.d.ts +74 -0
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.d.ts +1 -0
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +6 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.d.ts +9 -0
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.d.ts +4 -0
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.d.ts +1 -0
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.d.ts +2 -0
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.d.ts +1 -0
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.d.ts +66 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.d.ts +2 -0
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.d.ts +2 -0
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.d.ts +2 -0
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.d.ts +2 -0
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.d.ts +2 -0
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.d.ts +107 -0
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.d.ts +2 -0
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.d.ts +2 -0
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.d.ts +2 -0
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.d.ts +2 -0
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.d.ts +2 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.d.ts +5 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.d.ts +10 -0
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.d.ts +5 -0
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.d.ts +2 -0
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.d.ts +2 -0
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.d.ts +5 -0
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.d.ts +2 -0
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.d.ts +5 -0
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.d.ts +5 -0
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.d.ts +23 -0
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.d.ts +5 -0
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.d.ts +2 -0
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.d.ts +2 -0
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.d.ts +2 -0
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.d.ts +2 -0
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.d.ts +2 -0
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.d.ts +10 -0
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/workspace/add.d.ts +6 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.d.ts +11 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.d.ts +6 -0
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.d.ts +50 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +1 -0
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.d.ts +34 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.d.ts +10 -0
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +14 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.d.ts +11 -0
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.d.ts +1 -0
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.d.ts +5 -0
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.d.ts +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.d.ts +36 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.d.ts +5 -0
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.d.ts +61 -0
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +102 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +31 -0
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +1018 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.d.ts +8 -0
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +28 -0
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.d.ts +7 -0
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.d.ts +25 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +92 -0
- package/lib/core/bff/utils.d.ts +25 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.d.ts +43 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.d.ts +6 -0
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.d.ts +4 -0
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.d.ts +8 -0
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/types.d.ts +22 -0
- package/lib/core/sql-index-auditor.d.ts +33 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.d.ts +7 -0
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.d.ts +7 -0
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.d.ts +5 -0
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.d.ts +14 -0
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/types.d.ts +43 -0
- package/lib/core/sql-sync/utils.d.ts +10 -0
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.d.ts +34 -0
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.d.ts +3 -0
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.d.ts +2 -0
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.d.ts +9 -0
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.d.ts +3 -0
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.d.ts +3 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.d.ts +4 -0
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.d.ts +11 -0
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.d.ts +15 -0
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.d.ts +2 -0
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.d.ts +14 -0
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.d.ts +36 -0
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.d.ts +3 -0
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +63 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -0
- package/lib/generated/build-info.js +1 -1
- package/lib/help.d.ts +1 -0
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.d.ts +4 -0
- package/lib/runtime/confirmation.js +1 -0
- package/lib/runtime/event.d.ts +5 -0
- package/lib/runtime/event.js +1 -0
- package/lib/runtime/index.d.ts +7 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/queue.d.ts +5 -0
- package/lib/runtime/queue.js +1 -0
- package/lib/runtime/resolve.d.ts +8 -0
- package/lib/runtime/resolve.js +1 -0
- package/lib/runtime/types.d.ts +50 -0
- package/lib/runtime/types.js +1 -0
- package/lib/skills/main.d.ts +41 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +99 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.d.ts +44 -0
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.d.ts +12 -0
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.d.ts +8 -0
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +93 -0
- package/lib/utils/ai_config.d.ts +47 -0
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.d.ts +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.d.ts +42 -0
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.d.ts +23 -0
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.d.ts +37 -0
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +9 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.d.ts +42 -0
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.d.ts +1 -0
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.d.ts +30 -0
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.d.ts +25 -0
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.d.ts +80 -0
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.d.ts +30 -0
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.d.ts +7 -0
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.d.ts +62 -0
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.d.ts +15 -0
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +21 -0
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.d.ts +38 -0
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.d.ts +1 -0
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +55 -0
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.d.ts +10 -0
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.d.ts +1 -0
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.d.ts +1 -0
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.d.ts +6 -0
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -1
- package/lib/commands/page/react/create.js +0 -1
- package/lib/commands/page/react/detail.js +0 -1
- package/lib/commands/page/react/list.js +0 -1
- package/lib/commands/page/react/publish.js +0 -1
- package/lib/commands/page/react/shared.js +0 -1
- package/lib/commands/page/react/syntax.js +0 -1
- package/lib/commands/page/react/template.js +0 -1
- package/lib/commands/page/react/update.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a255_0x5c92(){const _0x406153=['22lyvGfe','SIGTERM','36806uyXxAd','once','exit','1664676eGNRFy','5615916sznmYF','then','5028792DFAAmR','SIGINT','4xJtmum','97EjTIFu','16rLmnHH','322994dRqWvN','874525EVstqf','27488030kLDQKJ'];a255_0x5c92=function(){return _0x406153;};return a255_0x5c92();}(function(_0x59ad5a,_0xb395fe){const _0x4886ce=a255_0x1c9c,_0x5b07d0=_0x59ad5a();while(!![]){try{const _0x516437=-parseInt(_0x4886ce(0x8a))/0x1*(parseInt(_0x4886ce(0x81))/0x2)+-parseInt(_0x4886ce(0x87))/0x3+parseInt(_0x4886ce(0x89))/0x4*(parseInt(_0x4886ce(0x8d))/0x5)+-parseInt(_0x4886ce(0x85))/0x6+-parseInt(_0x4886ce(0x8c))/0x7*(parseInt(_0x4886ce(0x8b))/0x8)+-parseInt(_0x4886ce(0x84))/0x9+parseInt(_0x4886ce(0x8e))/0xa*(parseInt(_0x4886ce(0x7f))/0xb);if(_0x516437===_0xb395fe)break;else _0x5b07d0['push'](_0x5b07d0['shift']());}catch(_0x495707){_0x5b07d0['push'](_0x5b07d0['shift']());}}}(a255_0x5c92,0xf3a22));function a255_0x1c9c(_0xd7c9ef,_0x1bfad9){_0xd7c9ef=_0xd7c9ef-0x7f;const _0x5c92c3=a255_0x5c92();let _0x1c9cc8=_0x5c92c3[_0xd7c9ef];return _0x1c9cc8;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x44d287=a255_0x1c9c;process[_0x44d287(0x82)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x29be7c=()=>{const _0x244e84=_0x44d287;void flushOtelNodeIfUsed()[_0x244e84(0x86)](()=>process[_0x244e84(0x83)](0x0));};process[_0x44d287(0x82)](_0x44d287(0x88),_0x29be7c),process[_0x44d287(0x82)](_0x44d287(0x80),_0x29be7c);}export async function exitWithOtelShutdown(_0x26d89b){const _0x3b44e4=a255_0x1c9c;await flushOtelNodeIfUsed(),process[_0x3b44e4(0x83)](_0x26d89b);}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Attributes } from "@opentelemetry/api";
|
|
2
|
+
export type SendCliTraceLogParams = {
|
|
3
|
+
/** 默认 `rabetbase-cli` */
|
|
4
|
+
traceName?: string;
|
|
5
|
+
/** 默认当前 CLI `package.json` 的 `version` */
|
|
6
|
+
version?: string;
|
|
7
|
+
spanName: string;
|
|
8
|
+
logData?: Attributes;
|
|
9
|
+
/** 与上游延续 trace,可选 */
|
|
10
|
+
traceparent?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 对 {@link sendTraceLog} 的 CLI 封装:先 {@link ensureCliOtelTraceConfig},再带上默认 traceName / version。
|
|
14
|
+
* `eventType` 固定为 `manual`(Node CLI,无浏览器 click/expose)。
|
|
15
|
+
* CLI 侧业务 helper 应统一走这层宿主 adapter,不要各自重复调用 `ensureCliOtelTraceConfig()`。
|
|
16
|
+
*/
|
|
17
|
+
export declare function sendCliTraceLog(params: SendCliTraceLogParams): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a256_0x1a34ca=a256_0x183a;function a256_0x183a(_0x11356b,_0x3c15e0){_0x11356b=_0x11356b-0x1b2;const _0x26539c=a256_0x2653();let _0x183ab9=_0x26539c[_0x11356b];return _0x183ab9;}(function(_0x2e6d64,_0x33e5be){const _0x711219=a256_0x183a,_0x356aa7=_0x2e6d64();while(!![]){try{const _0x2a3eca=-parseInt(_0x711219(0x1b6))/0x1*(parseInt(_0x711219(0x1be))/0x2)+-parseInt(_0x711219(0x1b8))/0x3*(parseInt(_0x711219(0x1c0))/0x4)+-parseInt(_0x711219(0x1c1))/0x5*(-parseInt(_0x711219(0x1bd))/0x6)+-parseInt(_0x711219(0x1bf))/0x7+-parseInt(_0x711219(0x1b9))/0x8+-parseInt(_0x711219(0x1ba))/0x9*(-parseInt(_0x711219(0x1bc))/0xa)+-parseInt(_0x711219(0x1c2))/0xb*(-parseInt(_0x711219(0x1b4))/0xc);if(_0x2a3eca===_0x33e5be)break;else _0x356aa7['push'](_0x356aa7['shift']());}catch(_0x3910bd){_0x356aa7['push'](_0x356aa7['shift']());}}}(a256_0x2653,0xf0452));import{sendTraceLog}from'@lovrabet/otel-logger';function a256_0x2653(){const _0x219554=['9287844shJiNc','spanName','80YEOGWg','version','3adlHxO','1218000PNcNHU','54bUwuwv','traceparent','410140DmcdKM','6cQYAzN','37738PAfzAc','1737435XtoYwu','5694724ITBvPE','8748785jbtaIB','33eZjxwf','logData','traceName','rabetbase-cli'];a256_0x2653=function(){return _0x219554;};return a256_0x2653();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a256_0x1a34ca(0x1b3);export async function sendCliTraceLog(_0x4510c0){const _0x1b6427=a256_0x1a34ca;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4510c0[_0x1b6427(0x1b2)]??DEFAULT_TRACE_NAME,'version':_0x4510c0[_0x1b6427(0x1b7)]??getCliVersion(),'spanName':_0x4510c0[_0x1b6427(0x1b5)],'eventType':'manual','logData':_0x4510c0[_0x1b6427(0x1c3)],..._0x4510c0[_0x1b6427(0x1bb)]&&{'traceparent':_0x4510c0[_0x1b6427(0x1bb)]}});}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const PLATFORM_ISSUE_TRACE_NAME = "platform-issue-log-collect";
|
|
2
|
+
export declare const PLATFORM_ISSUE_SPAN_NAME = "issue.log.collect";
|
|
3
|
+
export type PlatformIssueReport = {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
/**
|
|
7
|
+
* 描述卫生处理后的元信息(可选)。命令层应先用 `sanitizeIssueDescription`
|
|
8
|
+
* 处理 `description` 文本,再把结果中的 truncated / redactionCount / redactionKinds
|
|
9
|
+
* 透传到这里,作为 `issue.description_*` attribute 上报,供运维统计。
|
|
10
|
+
*/
|
|
11
|
+
sanitize?: {
|
|
12
|
+
originalBytes: number;
|
|
13
|
+
truncated: boolean;
|
|
14
|
+
redactionCount: number;
|
|
15
|
+
redactionKinds: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 发送平台 issue 采集日志;宿主身份、环境、用户等上下文字段由 `setServiceConfig()` / `setUserContext()` 负责。
|
|
20
|
+
* 这里通过 `sendCliTraceLog()` 间接完成 `ensureCliOtelTraceConfig()`,不再重复直连初始化。
|
|
21
|
+
* 这个 helper 只负责 issue 事件自身的业务载荷,不重复写 service/user/env 等宿主公共字段。
|
|
22
|
+
*
|
|
23
|
+
* 调用约定:`description` 必须由调用方先经 `sanitizeIssueDescription` 清洗;
|
|
24
|
+
* helper 不再做体积/敏感保护,避免双重处理与统计漂移。
|
|
25
|
+
*/
|
|
26
|
+
export declare function sendPlatformIssueCollectLog(report: PlatformIssueReport): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a257_0x368c5b=a257_0x4b99;function a257_0x2e70(){const _0x3d6c11=['originalBytes','join','324371sXwbwU','redactionKinds','948114JnTyzq','platform-issue-log-collect','description','2946840DJPMCS','redactionCount','4349118KVNxCB','sanitize','2228196YtxQAh','9433445SHJSpX','4416720zcSjBG','issue.log.collect','truncated'];a257_0x2e70=function(){return _0x3d6c11;};return a257_0x2e70();}(function(_0x4bd38f,_0xdbfe52){const _0xb694fb=a257_0x4b99,_0x3d9417=_0x4bd38f();while(!![]){try{const _0x4c9fd0=-parseInt(_0xb694fb(0x1b5))/0x1+parseInt(_0xb694fb(0x1ae))/0x2+parseInt(_0xb694fb(0x1a7))/0x3+parseInt(_0xb694fb(0x1b0))/0x4+parseInt(_0xb694fb(0x1aa))/0x5+-parseInt(_0xb694fb(0x1ac))/0x6+-parseInt(_0xb694fb(0x1af))/0x7;if(_0x4c9fd0===_0xdbfe52)break;else _0x3d9417['push'](_0x3d9417['shift']());}catch(_0x2289f8){_0x3d9417['push'](_0x3d9417['shift']());}}}(a257_0x2e70,0xb1729));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a257_0x4b99(_0x5b1396,_0x21a816){_0x5b1396=_0x5b1396-0x1a6;const _0x2e70a9=a257_0x2e70();let _0x4b9962=_0x2e70a9[_0x5b1396];return _0x4b9962;}export const PLATFORM_ISSUE_TRACE_NAME=a257_0x368c5b(0x1a8);export const PLATFORM_ISSUE_SPAN_NAME=a257_0x368c5b(0x1b1);export async function sendPlatformIssueCollectLog(_0x462deb){const _0x35e7d3=a257_0x368c5b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x462deb['title'],'issue.description':_0x462deb[_0x35e7d3(0x1a9)],..._0x462deb['sanitize']?{'issue.description_original_bytes':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1b3)],'issue.description_truncated':_0x462deb['sanitize'][_0x35e7d3(0x1b2)],'issue.description_redactions':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1ab)],'issue.description_redaction_kinds':_0x462deb[_0x35e7d3(0x1ad)][_0x35e7d3(0x1a6)][_0x35e7d3(0x1b4)](',')}:{}}});}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lovrabet CLI 类型定义
|
|
3
|
+
* 集中管理所有公共类型
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 服务端 model-list 接口返回的数组项
|
|
7
|
+
*/
|
|
8
|
+
export interface ModelListItem {
|
|
9
|
+
key: string;
|
|
10
|
+
tableName: string;
|
|
11
|
+
datasetCode: string;
|
|
12
|
+
name: string;
|
|
13
|
+
id: number;
|
|
14
|
+
alias?: string;
|
|
15
|
+
dbName?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* registerModels 的 models 数组项类型
|
|
19
|
+
* 用于生成 api.ts 中的模型配置
|
|
20
|
+
*/
|
|
21
|
+
export interface RegisterModelConfig {
|
|
22
|
+
datasetCode: string;
|
|
23
|
+
tableName: string;
|
|
24
|
+
name: string;
|
|
25
|
+
alias?: string;
|
|
26
|
+
dbName?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 获取模型列表的响应结果
|
|
30
|
+
*/
|
|
31
|
+
export interface FetchModelListResult {
|
|
32
|
+
configArray: ModelListItem[];
|
|
33
|
+
count: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 生成 API 文件的结果
|
|
37
|
+
*/
|
|
38
|
+
export interface GenerateApiFileResult {
|
|
39
|
+
modelCount: number;
|
|
40
|
+
apiFilePath: string;
|
|
41
|
+
clientFilePath: string;
|
|
42
|
+
configName: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 获取文档的选项
|
|
46
|
+
*/
|
|
47
|
+
export interface FetchDocOptions {
|
|
48
|
+
appCode: string;
|
|
49
|
+
cookie: string;
|
|
50
|
+
datasetCode: string;
|
|
51
|
+
datasetId: number;
|
|
52
|
+
enableAI?: boolean;
|
|
53
|
+
extraParams?: Record<string, any>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 生成文档的结果
|
|
57
|
+
*/
|
|
58
|
+
export interface GenerateDocResult {
|
|
59
|
+
datasetCode: string;
|
|
60
|
+
datasetName: string;
|
|
61
|
+
filePath: string;
|
|
62
|
+
success: boolean;
|
|
63
|
+
error?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* HTTP 请求选项
|
|
67
|
+
*/
|
|
68
|
+
export interface RequestOptions {
|
|
69
|
+
method?: "GET" | "POST" | "PUT" | "DELETE";
|
|
70
|
+
headers?: Record<string, string>;
|
|
71
|
+
body?: any;
|
|
72
|
+
timeout?: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* HTTP 响应
|
|
76
|
+
*/
|
|
77
|
+
export interface HttpResponse<T = any> {
|
|
78
|
+
success: boolean;
|
|
79
|
+
data?: T;
|
|
80
|
+
error?: string;
|
|
81
|
+
status?: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 日志条目
|
|
85
|
+
*/
|
|
86
|
+
export interface LogEntry {
|
|
87
|
+
timestamp: string;
|
|
88
|
+
level: "info" | "warn" | "error" | "success";
|
|
89
|
+
category: string;
|
|
90
|
+
message: string;
|
|
91
|
+
duration?: number;
|
|
92
|
+
metadata?: Record<string, any>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI IDE 配置 - 单一数据源
|
|
3
|
+
*
|
|
4
|
+
* 用于 skill install 和 create 时选择 IDE
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* 核心支持的 IDE 类型
|
|
8
|
+
*/
|
|
9
|
+
export type CoreIDEType = "cursor" | "windsurf" | "claude" | "cline" | "codex" | "opencode" | "qoder" | "codebuddy" | "trae";
|
|
10
|
+
/**
|
|
11
|
+
* 扩展 IDE 类型(包括通用模板)
|
|
12
|
+
*/
|
|
13
|
+
export type IDEType = CoreIDEType | "agent" | "antigravity";
|
|
14
|
+
export interface IDEConfig {
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
/** 文件列表(目录自动创建) */
|
|
18
|
+
files?: IDEDirectory[];
|
|
19
|
+
/** 兼容旧版:文件夹列表 */
|
|
20
|
+
folders?: string[];
|
|
21
|
+
}
|
|
22
|
+
/** IDE 目录配置 */
|
|
23
|
+
export interface IDEDirectory {
|
|
24
|
+
type: "file";
|
|
25
|
+
path: string;
|
|
26
|
+
template?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 核心 IDE 配置
|
|
30
|
+
*/
|
|
31
|
+
export declare const CORE_IDE_CONFIGS: Record<CoreIDEType, IDEConfig>;
|
|
32
|
+
/**
|
|
33
|
+
* 完整 IDE 配置(包含通用模板)
|
|
34
|
+
*/
|
|
35
|
+
export declare const IDE_CONFIGS: Record<IDEType, IDEConfig>;
|
|
36
|
+
/**
|
|
37
|
+
* 核心 IDE 列表(按字母排序)
|
|
38
|
+
*/
|
|
39
|
+
export declare const CORE_IDE_LIST: CoreIDEType[];
|
|
40
|
+
/**
|
|
41
|
+
* 完整 IDE 列表(包含通用模板)
|
|
42
|
+
*/
|
|
43
|
+
export declare const IDE_LIST: IDEType[];
|
|
44
|
+
/**
|
|
45
|
+
* 所有核心 IDE(用于 --all 选项)
|
|
46
|
+
*/
|
|
47
|
+
export declare const ALL_CORE_IDES: CoreIDEType[];
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a259_0x16df02=a259_0x503a;(function(_0x47b73a,_0x595543){const _0xe84da3=a259_0x503a,_0x23297a=_0x47b73a();while(!![]){try{const _0x4dfa1c=parseInt(_0xe84da3(0x1e5))/0x1+parseInt(_0xe84da3(0x1f0))/0x2+-parseInt(_0xe84da3(0x1ed))/0x3*(parseInt(_0xe84da3(0x20d))/0x4)+parseInt(_0xe84da3(0x1fd))/0x5+-parseInt(_0xe84da3(0x1df))/0x6+parseInt(_0xe84da3(0x1e7))/0x7*(parseInt(_0xe84da3(0x20e))/0x8)+parseInt(_0xe84da3(0x1e3))/0x9*(-parseInt(_0xe84da3(0x206))/0xa);if(_0x4dfa1c===_0x595543)break;else _0x23297a['push'](_0x23297a['shift']());}catch(_0x301d20){_0x23297a['push'](_0x23297a['shift']());}}}(a259_0x14c6,0xe084d));export const CORE_IDE_CONFIGS={'cursor':{'name':a259_0x16df02(0x214),'description':'Cursor\x20IDE','folders':[a259_0x16df02(0x1ff),a259_0x16df02(0x20b)],'files':[{'type':'file','path':a259_0x16df02(0x20a),'template':a259_0x16df02(0x1fe)}]},'windsurf':{'name':'Windsurf','description':a259_0x16df02(0x1e8),'folders':[a259_0x16df02(0x1fb)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1ea),'template':'SKILL.md.tpl'}]},'claude':{'name':a259_0x16df02(0x1ef),'description':a259_0x16df02(0x1ef),'folders':[a259_0x16df02(0x1ee)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fa),'template':a259_0x16df02(0x1fe)}]},'cline':{'name':a259_0x16df02(0x1e0),'description':'Cline\x20IDE','folders':[a259_0x16df02(0x208)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1f1),'template':a259_0x16df02(0x1fe)}]},'codex':{'name':a259_0x16df02(0x212),'description':a259_0x16df02(0x1e1),'folders':[a259_0x16df02(0x203)],'files':[{'type':'file','path':a259_0x16df02(0x205),'template':a259_0x16df02(0x1fe)}]},'opencode':{'name':'OpenCode','description':a259_0x16df02(0x1f7),'folders':[a259_0x16df02(0x204)],'files':[{'type':'file','path':a259_0x16df02(0x1dd),'template':a259_0x16df02(0x1fe)}]},'qoder':{'name':a259_0x16df02(0x1de),'description':'Qoder\x20IDE','folders':[a259_0x16df02(0x1eb)],'files':[{'type':'file','path':a259_0x16df02(0x213),'template':a259_0x16df02(0x1fe)},{'type':a259_0x16df02(0x1f2),'path':'.qoder/skills/lovrabet/SKILL.md','template':a259_0x16df02(0x1fe)}]},'codebuddy':{'name':a259_0x16df02(0x1e2),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1ec),'template':'SKILL.md.tpl'}]},'trae':{'name':a259_0x16df02(0x20f),'description':'Trae\x20IDE','folders':[a259_0x16df02(0x1f4)],'files':[{'type':'file','path':a259_0x16df02(0x1f8),'template':a259_0x16df02(0x1fe)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a259_0x16df02(0x202),'description':a259_0x16df02(0x201),'folders':[a259_0x16df02(0x1e6)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fc),'template':a259_0x16df02(0x1fe)}]},'antigravity':{'name':a259_0x16df02(0x1f9),'description':a259_0x16df02(0x20c),'folders':[a259_0x16df02(0x1e6)],'files':[{'type':a259_0x16df02(0x1f2),'path':a259_0x16df02(0x1fc),'template':a259_0x16df02(0x1fe)}]}};export const CORE_IDE_LIST=[a259_0x16df02(0x1e4),a259_0x16df02(0x1f5),a259_0x16df02(0x209),'codex',a259_0x16df02(0x207),a259_0x16df02(0x1e9),a259_0x16df02(0x211),a259_0x16df02(0x1f6),a259_0x16df02(0x210)];function a259_0x503a(_0x126b3e,_0x184ffb){_0x126b3e=_0x126b3e-0x1dd;const _0x14c676=a259_0x14c6();let _0x503afa=_0x14c676[_0x126b3e];return _0x503afa;}function a259_0x14c6(){const _0x5d65f8=['.qoder','.codebuddy/skills/lovrabet/SKILL.md','216GaLtkT','.claude','Claude\x20Code','3639544QIiqXf','.cline/skills/lovrabet/SKILL.md','file','codex','.trae','cline','trae','OpenCode\x20IDE','.trae/skills/lovrabet/SKILL.md','Antigravity','.claude/skills/lovrabet/SKILL.md','.windsurf','.agent/skills/lovrabet/SKILL.md','5234840oliIYK','SKILL.md.tpl','.cursorrules','antigravity','通用模板\x20-\x20兜底方案','其他\x20(通用模板)','.codex','.opencode','.codex/skills/lovrabet/SKILL.md','10qAOfxg','cursor','.cline','codebuddy','.cursor/skills/rabetbase.md','.cursor','Antigravity\x20IDE','4500Tgpwno','192736ebbQzD','Trae','windsurf','qoder','Codex','.qoder/rules/rabetbase.md','Cursor','.opencode/skills/lovrabet/SKILL.md','Qoder','106872JixZPn','Cline','Codex\x20IDE','CodeBuddy','37823796XkqHaz','claude','1511125tYfEtJ','.agent','245xXXvzO','Windsurf\x20IDE','opencode','.windsurf/workflows/rabetbase.md'];a259_0x14c6=function(){return _0x5d65f8;};return a259_0x14c6();}export const IDE_LIST=[a259_0x16df02(0x200),a259_0x16df02(0x1e4),a259_0x16df02(0x1f5),a259_0x16df02(0x209),a259_0x16df02(0x1f3),a259_0x16df02(0x207),'opencode',a259_0x16df02(0x211),a259_0x16df02(0x1f6),a259_0x16df02(0x210),'agent'];export const ALL_CORE_IDES=[a259_0x16df02(0x207),'windsurf',a259_0x16df02(0x1e4),'cline',a259_0x16df02(0x1f3),a259_0x16df02(0x1e9),a259_0x16df02(0x211),a259_0x16df02(0x209),a259_0x16df02(0x1f6)];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applyJqFilter: (jsonInput: string, expr: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a2e8c,_0x5abb68){const _0x3fb885=a260_0x3c95,_0x3ec347=_0x2a2e8c();while(!![]){try{const _0x4eabee=parseInt(_0x3fb885(0x94))/0x1*(-parseInt(_0x3fb885(0x93))/0x2)+-parseInt(_0x3fb885(0x98))/0x3*(-parseInt(_0x3fb885(0x96))/0x4)+-parseInt(_0x3fb885(0x97))/0x5*(-parseInt(_0x3fb885(0x9c))/0x6)+-parseInt(_0x3fb885(0x91))/0x7+-parseInt(_0x3fb885(0x95))/0x8+parseInt(_0x3fb885(0x9a))/0x9*(-parseInt(_0x3fb885(0x92))/0xa)+parseInt(_0x3fb885(0x9b))/0xb*(parseInt(_0x3fb885(0x99))/0xc);if(_0x4eabee===_0x5abb68)break;else _0x3ec347['push'](_0x3ec347['shift']());}catch(_0x24a06a){_0x3ec347['push'](_0x3ec347['shift']());}}}(a260_0x1504,0xb4899));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a260_0x3c95(_0x2e2b3a,_0x289065){_0x2e2b3a=_0x2e2b3a-0x91;const _0x150414=a260_0x1504();let _0x3c951d=_0x150414[_0x2e2b3a];return _0x3c951d;}function a260_0x1504(){const _0x21794c=['219uxhLpr','252cssbuE','27ETfTll','775423CKJAPG','990LdoXvX','6141527IERrcA','1439310wOdcoh','6UVYAGW','55885qWKSWF','6641208wUlymT','6604lcLabZ','43805rIGuGr'];a260_0x1504=function(){return _0x21794c;};return a260_0x1504();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CDN Config 工具
|
|
3
|
+
*
|
|
4
|
+
* 从 CDN 拉取配置。
|
|
5
|
+
*
|
|
6
|
+
* 为兼容历史发布结构,会依次尝试:
|
|
7
|
+
* 1. <baseUrl>/config.json
|
|
8
|
+
* 2. <baseUrl>/config/index.json
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* CDN 配置数据结构
|
|
12
|
+
*/
|
|
13
|
+
export interface CdnConfig {
|
|
14
|
+
$schema?: string;
|
|
15
|
+
version: string;
|
|
16
|
+
cli: {
|
|
17
|
+
stableVersion: string;
|
|
18
|
+
};
|
|
19
|
+
sdk: {
|
|
20
|
+
node: {
|
|
21
|
+
stableVersion: string;
|
|
22
|
+
packageName: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
mcp: {
|
|
26
|
+
stableVersion: string;
|
|
27
|
+
packageName: string;
|
|
28
|
+
};
|
|
29
|
+
_meta?: {
|
|
30
|
+
buildTime: string;
|
|
31
|
+
lastUpdated: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 从 CDN 拉取配置
|
|
36
|
+
*/
|
|
37
|
+
export declare function fetchCdnConfig(): Promise<CdnConfig | null>;
|
|
38
|
+
export declare function getCdnConfig(): Promise<CdnConfig | null>;
|
|
39
|
+
/**
|
|
40
|
+
* 清除配置缓存
|
|
41
|
+
*/
|
|
42
|
+
export declare function clearCdnConfigCache(): void;
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a261_0x50d5(_0xed82d9,_0x384f5e){_0xed82d9=_0xed82d9-0x137;const _0x3b77b7=a261_0x3b77();let _0x50d571=_0x3b77b7[_0xed82d9];return _0x50d571;}(function(_0x11cdb7,_0xa6161b){const _0x981c32=a261_0x50d5,_0x475378=_0x11cdb7();while(!![]){try{const _0x5146f9=-parseInt(_0x981c32(0x13a))/0x1*(-parseInt(_0x981c32(0x147))/0x2)+-parseInt(_0x981c32(0x138))/0x3+-parseInt(_0x981c32(0x142))/0x4+parseInt(_0x981c32(0x139))/0x5+-parseInt(_0x981c32(0x13b))/0x6*(parseInt(_0x981c32(0x146))/0x7)+parseInt(_0x981c32(0x140))/0x8*(parseInt(_0x981c32(0x143))/0x9)+-parseInt(_0x981c32(0x13c))/0xa*(parseInt(_0x981c32(0x141))/0xb);if(_0x5146f9===_0xa6161b)break;else _0x475378['push'](_0x475378['shift']());}catch(_0x36488f){_0x475378['push'](_0x475378['shift']());}}}(a261_0x3b77,0x5dc42));import{getTemplateBaseUrl}from'../utils/config.js';function a261_0x3b77(){const _0x18c311=['115157OOcQSG','2WMRytx','node','stableVersion','now','317205osoCWU','1189505eWGIEq','752543kUDiOu','36yXbHbT','2009510VomDiM','json','/config/index.json','/config.json','8UDzSjw','11OynjpX','1081892wowSEk','625383TfOLKR','application/json','sdk'];a261_0x3b77=function(){return _0x18c311;};return a261_0x3b77();}export async function fetchCdnConfig(){const _0x55c000=a261_0x50d5,_0x2dbe92=getTemplateBaseUrl(),_0x5a7a4b=[_0x2dbe92+_0x55c000(0x13f),_0x2dbe92+_0x55c000(0x13e)];for(const _0x341cc2 of _0x5a7a4b){try{const _0x33a47c=await fetch(_0x341cc2,{'headers':{'Accept':_0x55c000(0x144)}});if(!_0x33a47c['ok'])continue;const _0x1fccb3=await _0x33a47c[_0x55c000(0x13d)]();if(!_0x1fccb3['cli']?.['stableVersion']||!_0x1fccb3[_0x55c000(0x145)]?.[_0x55c000(0x148)]?.[_0x55c000(0x149)])continue;return _0x1fccb3;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2cbdf9=a261_0x50d5,_0xf2ccfa=Date[_0x2cbdf9(0x137)]();if(hasCachedConfig){const _0x4d61e8=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf2ccfa-cacheTime<_0x4d61e8)return cachedConfig;}const _0x696842=await fetchCdnConfig();return cachedConfig=_0x696842,cacheTime=_0xf2ccfa,hasCachedConfig=!![],_0x696842;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface SdkVersionCheckResult {
|
|
2
|
+
installed: boolean;
|
|
3
|
+
version: string | null;
|
|
4
|
+
needsUpgrade: boolean;
|
|
5
|
+
minVersion: string;
|
|
6
|
+
packageName: string;
|
|
7
|
+
stableVersion: string | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 检查用户项目的 SDK 版本
|
|
11
|
+
* @param projectPath 用户项目路径
|
|
12
|
+
* @returns 版本检查结果
|
|
13
|
+
*/
|
|
14
|
+
export declare function checkSdkVersion(projectPath: string): Promise<SdkVersionCheckResult>;
|
|
15
|
+
/**
|
|
16
|
+
* 同步版本的 SDK 版本检查(向下兼容)
|
|
17
|
+
* @deprecated 使用 checkSdkVersion() 代替
|
|
18
|
+
*/
|
|
19
|
+
export declare function checkSdkVersionSync(projectPath: string): SdkVersionCheckResult;
|
|
20
|
+
/**
|
|
21
|
+
* 打印 SDK 版本升级警告
|
|
22
|
+
*/
|
|
23
|
+
export declare function printSdkUpgradeWarning(result: SdkVersionCheckResult): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a262_0x5ea00c=a262_0x4a15;(function(_0xc48df1,_0x358975){const _0x234101=a262_0x4a15,_0x3282ce=_0xc48df1();while(!![]){try{const _0x341bc4=-parseInt(_0x234101(0xa1))/0x1*(parseInt(_0x234101(0x93))/0x2)+-parseInt(_0x234101(0x81))/0x3+-parseInt(_0x234101(0xa2))/0x4+parseInt(_0x234101(0x9a))/0x5*(parseInt(_0x234101(0x8f))/0x6)+parseInt(_0x234101(0x9b))/0x7+parseInt(_0x234101(0x92))/0x8+parseInt(_0x234101(0x9c))/0x9;if(_0x341bc4===_0x358975)break;else _0x3282ce['push'](_0x3282ce['shift']());}catch(_0x3917cf){_0x3282ce['push'](_0x3282ce['shift']());}}}(a262_0x1d1c,0xf095c));import a262_0x3b6b9e from'node:fs';import a262_0x384dff from'node:path';import a262_0x289812 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a262_0x5ea00c(0x9d);function a262_0x4a15(_0x39157f,_0x1d70d5){_0x39157f=_0x39157f-0x81;const _0x1d1cff=a262_0x1d1c();let _0x4a1503=_0x1d1cff[_0x39157f];return _0x4a1503;}function isNonNumericVersion(_0x3d6bfd){const _0x59bcd=a262_0x5ea00c,_0x53fe62=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x53fe62[_0x59bcd(0x98)](_0x367f75=>_0x367f75['test'](_0x3d6bfd));}function getInstalledVersion(_0x27c185,_0x1e83b6){const _0x45aa29=a262_0x5ea00c;try{const _0x2c9ece=a262_0x384dff['join'](_0x27c185,_0x45aa29(0xa7),_0x1e83b6,'package.json');if(a262_0x3b6b9e[_0x45aa29(0xa3)](_0x2c9ece)){const _0x248fbe=JSON[_0x45aa29(0xa5)](a262_0x3b6b9e[_0x45aa29(0x82)](_0x2c9ece,_0x45aa29(0xa0)));return _0x248fbe[_0x45aa29(0x95)]||null;}}catch{}return null;}function a262_0x1d1c(){const _0x4faa7d=['6ygtdKi','\x20\x20\x20Current\x20version:\x20','↪\x20SDK\x20update\x20available','14780664IwuyIZ','18dLhYts','package.json','version','join','\x20\x20\x20Upgrade\x20command:\x20','some','\x1b[33m','3363805vmIFPV','9224642xSVxrD','973494QXhgOG','1.2.0','@lovrabet/sdk','dependencies','utf-8','77358zXmLkg','5443424mwszcF','existsSync','coerce','parse','node','node_modules','2711406lFpEdo','readFileSync','\x1b[1m','\x1b[0m','log','stableVersion','latest','devDependencies','needsUpgrade','\x20\x20\x20Stable\x20version:\x20','sdk','packageName','utf8','minVersion'];a262_0x1d1c=function(){return _0x4faa7d;};return a262_0x1d1c();}async function getSdkStableVersion(){const _0x58cd84=a262_0x5ea00c;try{const _0x1d2736=await getCdnConfig();return _0x1d2736?.[_0x58cd84(0x8b)]?.[_0x58cd84(0xa6)]?.[_0x58cd84(0x86)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x269fed=a262_0x5ea00c;try{const _0x388037=await getCdnConfig();return _0x388037?.[_0x269fed(0x8b)]?.[_0x269fed(0xa6)]?.[_0x269fed(0x8c)]||_0x269fed(0x9e);}catch{return _0x269fed(0x9e);}}export async function checkSdkVersion(_0x273106){const _0x22898c=a262_0x5ea00c,_0x4baba9=a262_0x384dff[_0x22898c(0x96)](_0x273106,_0x22898c(0x94)),[_0x12bbed,_0x19345a]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x48de68=_0x12bbed||FALLBACK_MIN_SDK_VERSION;if(!a262_0x3b6b9e[_0x22898c(0xa3)](_0x4baba9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};try{const _0x49cf73=JSON[_0x22898c(0xa5)](a262_0x3b6b9e[_0x22898c(0x82)](_0x4baba9,_0x22898c(0x8d))),_0x45d01c=_0x49cf73[_0x22898c(0x9f)]||{},_0x2ba784=_0x49cf73[_0x22898c(0x88)]||{},_0x50a03c=_0x45d01c[_0x19345a]||_0x2ba784[_0x19345a];if(!_0x50a03c)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};let _0x2ff704=getInstalledVersion(_0x273106,_0x19345a);!_0x2ff704&&(_0x2ff704=_0x50a03c);if(isNonNumericVersion(_0x50a03c))return{'installed':!![],'version':_0x2ff704,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};const _0x8635eb=a262_0x289812[_0x22898c(0xa4)](_0x2ff704),_0x1ac557=a262_0x289812[_0x22898c(0xa4)](_0x48de68),_0x45a345=_0x8635eb&&_0x1ac557?a262_0x289812['lt'](_0x8635eb,_0x1ac557):![];return{'installed':!![],'version':_0x2ff704,'needsUpgrade':_0x45a345,'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x48de68,'packageName':_0x19345a,'stableVersion':_0x12bbed};}}export function checkSdkVersionSync(_0x363498){const _0x599391=a262_0x5ea00c,_0x3ca2ef=a262_0x384dff['join'](_0x363498,_0x599391(0x94)),_0x293f28='@lovrabet/sdk';if(!a262_0x3b6b9e[_0x599391(0xa3)](_0x3ca2ef))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};try{const _0x8f7d5=JSON[_0x599391(0xa5)](a262_0x3b6b9e['readFileSync'](_0x3ca2ef,'utf8')),_0x3d079b=_0x8f7d5[_0x599391(0x9f)]||{},_0x52ae21=_0x8f7d5['devDependencies']||{},_0x410ea3=_0x3d079b[_0x293f28]||_0x52ae21[_0x293f28];if(!_0x410ea3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};let _0x2d92da=getInstalledVersion(_0x363498,_0x293f28);!_0x2d92da&&(_0x2d92da=_0x410ea3);if(isNonNumericVersion(_0x410ea3))return{'installed':!![],'version':_0x2d92da,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};const _0x49ea70=a262_0x289812[_0x599391(0xa4)](_0x2d92da),_0xa99fa6=_0x49ea70?a262_0x289812['lt'](_0x49ea70,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2d92da,'needsUpgrade':_0xa99fa6,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x293f28,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x474e6f){const _0x227005=a262_0x5ea00c;if(!_0x474e6f[_0x227005(0x89)])return;const _0x555881=_0x227005(0x99),_0xcf1d1=_0x227005(0x84),_0x35d684=_0x227005(0x83),_0x559633=_0x474e6f['packageName']||_0x227005(0x9e),_0x445282=_0x474e6f[_0x227005(0x86)]||_0x474e6f[_0x227005(0x8e)],_0x57b490='npm\x20install\x20'+_0x559633+'@'+(_0x445282||_0x227005(0x87));console[_0x227005(0x85)](),console[_0x227005(0x85)](''+_0x555881+_0x35d684+_0x227005(0x91)+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x90)+_0x559633+'@'+_0x474e6f[_0x227005(0x95)]+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x8a)+_0x445282+_0xcf1d1),console[_0x227005(0x85)](_0x555881+_0x227005(0x97)+_0x57b490+_0xcf1d1),console[_0x227005(0x85)]();}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI 版本检测工具
|
|
3
|
+
*
|
|
4
|
+
* 检测 CLI 本身版本是否低于 CDN 配置的稳定版本
|
|
5
|
+
*/
|
|
6
|
+
export interface CliVersionCheckResult {
|
|
7
|
+
currentVersion: string;
|
|
8
|
+
stableVersion: string | null;
|
|
9
|
+
minimumVersion: string | null;
|
|
10
|
+
needsUpgrade: boolean;
|
|
11
|
+
belowMinimum: boolean;
|
|
12
|
+
isPreRelease: boolean;
|
|
13
|
+
upgradeMessage?: string;
|
|
14
|
+
minimumVersionMessage?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Build the npm upgrade command for the checked CLI version result.
|
|
18
|
+
*
|
|
19
|
+
* @param result - Version check result that may include the stable version.
|
|
20
|
+
* @returns The recommended npm global install command.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getCliUpgradeCommand(result: Pick<CliVersionCheckResult, "stableVersion">): string;
|
|
23
|
+
/**
|
|
24
|
+
* 检查 CLI 版本是否需要升级
|
|
25
|
+
*/
|
|
26
|
+
export declare function checkCliVersion(): Promise<CliVersionCheckResult>;
|
|
27
|
+
/**
|
|
28
|
+
* 打印 CLI 版本升级提示
|
|
29
|
+
*/
|
|
30
|
+
export declare function printCliUpgradeWarning(result: CliVersionCheckResult): void;
|
|
31
|
+
/**
|
|
32
|
+
* Throw a validation error when the current CLI version is below the service compatibility line.
|
|
33
|
+
*
|
|
34
|
+
* @param result - Version check result produced by {@link checkCliVersion}.
|
|
35
|
+
* @throws {CliError} Thrown when the current version is below the service compatibility line.
|
|
36
|
+
*/
|
|
37
|
+
export declare function assertCliVersionSupported(result: CliVersionCheckResult): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x264e21,_0x122b28){const _0x2525e2=a263_0x3f70,_0x3d629f=_0x264e21();while(!![]){try{const _0x926b1a=-parseInt(_0x2525e2(0x14a))/0x1+-parseInt(_0x2525e2(0x158))/0x2*(parseInt(_0x2525e2(0x148))/0x3)+parseInt(_0x2525e2(0x154))/0x4*(parseInt(_0x2525e2(0x15a))/0x5)+-parseInt(_0x2525e2(0x152))/0x6*(parseInt(_0x2525e2(0x15e))/0x7)+parseInt(_0x2525e2(0x15f))/0x8+parseInt(_0x2525e2(0x15b))/0x9+parseInt(_0x2525e2(0x16a))/0xa;if(_0x926b1a===_0x122b28)break;else _0x3d629f['push'](_0x3d629f['shift']());}catch(_0x221a6f){_0x3d629f['push'](_0x3d629f['shift']());}}}(a263_0x65e2,0x34f4b));function a263_0x3f70(_0x1bf5af,_0x5052c5){_0x1bf5af=_0x1bf5af-0x146;const _0x65e2e8=a263_0x65e2();let _0x3f7081=_0x65e2e8[_0x1bf5af];return _0x3f7081;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a263_0x2ec24b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x368735){const _0x59b774=a263_0x3f70,_0x24be60=_0x368735[_0x59b774(0x168)]||_0x59b774(0x150);return _0x59b774(0x14c)+NPM_PACKAGE_NAME+'@'+_0x24be60;}function getCurrentCliVersion(){const _0x43c431=a263_0x3f70;try{const _0x29abdd=fileURLToPath(import.meta.url),_0x59e314=resolve(dirname(_0x29abdd),_0x43c431(0x16e)),_0x350ed1=resolve(_0x59e314,_0x43c431(0x14e)),_0x1ae9b4=JSON[_0x43c431(0x166)](readFileSync(_0x350ed1,_0x43c431(0x146)));return _0x1ae9b4['version']||_0x43c431(0x16b);}catch{return _0x43c431(0x16b);}}export async function checkCliVersion(){const _0x1326b0=a263_0x3f70,_0x202404=getCurrentCliVersion(),_0x485b69=await getCliVersionPolicy(),_0x4b075a=_0x485b69?.['stableVersion']||null,_0x2507d1=_0x485b69?.[_0x1326b0(0x163)]||null;let _0x297d14=![],_0x355d99=![];const _0x175ca7=a263_0x2ec24b[_0x1326b0(0x14b)](_0x202404);if(_0x175ca7&&_0x4b075a)try{const _0x2174e5=a263_0x2ec24b[_0x1326b0(0x14b)](_0x4b075a);if(_0x2174e5)_0x297d14=a263_0x2ec24b['lt'](_0x175ca7,_0x2174e5);}catch{}if(_0x175ca7&&_0x2507d1)try{const _0x27b45c=a263_0x2ec24b[_0x1326b0(0x14b)](_0x2507d1);if(_0x27b45c)_0x355d99=a263_0x2ec24b['lt'](_0x175ca7,_0x27b45c);}catch{}return _0x355d99&&(_0x297d14=!![]),{'currentVersion':_0x202404,'stableVersion':_0x4b075a,'minimumVersion':_0x2507d1,'needsUpgrade':_0x297d14,'belowMinimum':_0x355d99,'isPreRelease':![],'upgradeMessage':_0x485b69?.['upgradeMessage'],'minimumVersionMessage':_0x485b69?.[_0x1326b0(0x16d)]};}function a263_0x65e2(){const _0x23df06=['\x1b[1m','package.json','log','latest','\x20\x20\x20Current\x20CLI\x20version:\x20','66tZLoRi','Minimum\x20supported:\x20','12JyqwIm','\x1b[31m','belowMinimum','Upgrade\x20command:\x20','120XgeTBa','needsUpgrade','225365IuQOUe','2528964THFNDD','\x20\x20\x20Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','141827fcbCTQ','3438232TNSEia','upgradeMessage','currentVersion','validation','minimumVersion','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','parse','\x1b[33m','stableVersion','join','2003080nEHdyX','1.0.0','Current\x20version:\x20','minimumVersionMessage','../..','utf-8','filter','16782SDzSUF','\x20\x20\x20Stable\x20version:\x20','270884fjvVBf','coerce','npm\x20install\x20-g\x20'];a263_0x65e2=function(){return _0x23df06;};return a263_0x65e2();}export function printCliUpgradeWarning(_0x32db1e){const _0x4aa11c=a263_0x3f70;if(!_0x32db1e[_0x4aa11c(0x159)]&&!_0x32db1e[_0x4aa11c(0x156)])return;const _0xf6338a=_0x4aa11c(0x155),_0x5276a6=_0x4aa11c(0x167),_0xd3db85='\x1b[0m',_0x24c86c=_0x4aa11c(0x14d),_0x26cbaa=getCliUpgradeCommand(_0x32db1e);console[_0x4aa11c(0x14f)](),_0x32db1e[_0x4aa11c(0x156)]?(console['log'](''+_0xf6338a+_0x24c86c+_0x4aa11c(0x165)+_0xd3db85),console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x151)+_0x32db1e[_0x4aa11c(0x161)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x163)]&&console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x15c)+_0x32db1e['minimumVersion']+_0xd3db85),_0x32db1e[_0x4aa11c(0x168)]&&_0x32db1e[_0x4aa11c(0x168)]!==_0x32db1e['minimumVersion']&&console[_0x4aa11c(0x14f)](_0xf6338a+'\x20\x20\x20Recommended\x20stable:\x20'+_0x32db1e[_0x4aa11c(0x168)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x16d)]&&console[_0x4aa11c(0x14f)](_0xf6338a+_0x4aa11c(0x164)+_0x32db1e[_0x4aa11c(0x16d)]+_0xd3db85),console['log'](_0xf6338a+_0x4aa11c(0x15d)+_0x26cbaa+_0xd3db85)):(console['log'](''+_0x5276a6+_0x24c86c+'↪\x20New\x20version\x20available'+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x151)+_0x32db1e[_0x4aa11c(0x161)]+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x149)+_0x32db1e[_0x4aa11c(0x168)]+_0xd3db85),_0x32db1e[_0x4aa11c(0x160)]&&console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x164)+_0x32db1e['upgradeMessage']+_0xd3db85),console[_0x4aa11c(0x14f)](_0x5276a6+_0x4aa11c(0x15d)+_0x26cbaa+_0xd3db85)),console[_0x4aa11c(0x14f)]();}export function assertCliVersionSupported(_0x1bec83){const _0x447772=a263_0x3f70;if(!_0x1bec83[_0x447772(0x156)])return;const _0x31b9c8=[_0x1bec83[_0x447772(0x16d)],_0x447772(0x16c)+_0x1bec83[_0x447772(0x161)],_0x1bec83['minimumVersion']?_0x447772(0x153)+_0x1bec83[_0x447772(0x163)]:null,_0x447772(0x157)+getCliUpgradeCommand(_0x1bec83)][_0x447772(0x147)](Boolean)[_0x447772(0x169)]('\x0a');throw CliErrors[_0x447772(0x162)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x31b9c8);}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface CliVersionPolicy {
|
|
2
|
+
stableVersion: string | null;
|
|
3
|
+
minimumVersion: string | null;
|
|
4
|
+
upgradeMessage?: string;
|
|
5
|
+
minimumVersionMessage?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function fetchCliVersionPolicy(): Promise<CliVersionPolicy | null>;
|
|
8
|
+
export declare function getCliVersionPolicy(): Promise<CliVersionPolicy | null>;
|
|
9
|
+
export declare function clearCliVersionPolicyCache(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x545331,_0x34024b){const _0x36a451=a264_0x1cff,_0x401164=_0x545331();while(!![]){try{const _0x42498e=parseInt(_0x36a451(0xf0))/0x1*(-parseInt(_0x36a451(0xf8))/0x2)+-parseInt(_0x36a451(0xf4))/0x3+-parseInt(_0x36a451(0xf5))/0x4+-parseInt(_0x36a451(0xfb))/0x5*(-parseInt(_0x36a451(0xf1))/0x6)+parseInt(_0x36a451(0xf2))/0x7+parseInt(_0x36a451(0xfa))/0x8+parseInt(_0x36a451(0xf6))/0x9;if(_0x42498e===_0x34024b)break;else _0x401164['push'](_0x401164['shift']());}catch(_0x4b3ad1){_0x401164['push'](_0x401164['shift']());}}}(a264_0x31e2,0x7cb2b));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a264_0x1cff(_0x5ed2fc,_0x555a10){_0x5ed2fc=_0x5ed2fc-0xe6;const _0x31e21c=a264_0x31e2();let _0x1cffb3=_0x31e21c[_0x5ed2fc];return _0x1cffb3;}function a264_0x31e2(){const _0x536d2f=['string','json','trim','latestVersion','length','now','object','4lGuFax','366bnMHtJ','5140898PwMNLU','upgradeMessage','95364azzesL','2334104jxnHMH','1680642jCjnkJ','recommendedVersion','253366MoezXb','signal','2610560VwzesA','31585AmOCJX','cli','minVersion','abort','minimumVersion','minimumVersionMessage','application/json','stableVersion'];a264_0x31e2=function(){return _0x536d2f;};return a264_0x31e2();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x6e7579){const _0x2cba6d=a264_0x1cff;return typeof _0x6e7579===_0x2cba6d(0xe9)&&_0x6e7579[_0x2cba6d(0xeb)]()[_0x2cba6d(0xed)]>0x0?_0x6e7579[_0x2cba6d(0xeb)]():null;}function normalizeCliVersionPolicy(_0x4aa6ec){const _0x4d50f6=a264_0x1cff;if(!_0x4aa6ec||typeof _0x4aa6ec!==_0x4d50f6(0xef))return null;const _0x9f138e=_0x4aa6ec,_0xdf0cf9=_0x9f138e[_0x4d50f6(0xfc)]&&typeof _0x9f138e[_0x4d50f6(0xfc)]===_0x4d50f6(0xef)?_0x9f138e[_0x4d50f6(0xfc)]:_0x9f138e,_0x3abd3a=pickString(_0xdf0cf9[_0x4d50f6(0xe8)])||pickString(_0xdf0cf9[_0x4d50f6(0xec)])||pickString(_0xdf0cf9[_0x4d50f6(0xf7)]),_0x335d9a=pickString(_0xdf0cf9[_0x4d50f6(0xff)])||pickString(_0xdf0cf9[_0x4d50f6(0xfd)]);if(!_0x3abd3a&&!_0x335d9a)return null;return{'stableVersion':_0x3abd3a,'minimumVersion':_0x335d9a,'upgradeMessage':pickString(_0xdf0cf9[_0x4d50f6(0xf3)])||undefined,'minimumVersionMessage':pickString(_0xdf0cf9[_0x4d50f6(0xe6)])||undefined};}export async function fetchCliVersionPolicy(){const _0x512275=a264_0x1cff,_0x58c8aa=new AbortController(),_0x3a13c6=setTimeout(()=>_0x58c8aa[_0x512275(0xfe)](),FETCH_TIMEOUT_MS);try{const _0x3dcebc=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x512275(0xe7)},'signal':_0x58c8aa[_0x512275(0xf9)]});if(!_0x3dcebc['ok'])return null;const _0xb7b9a8=await _0x3dcebc[_0x512275(0xea)]();return normalizeCliVersionPolicy(_0xb7b9a8);}catch{return null;}finally{clearTimeout(_0x3a13c6);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x25b967=a264_0x1cff,_0x2f61b2=Date[_0x25b967(0xee)]();if(hasCachedPolicy){const _0x528e1f=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f61b2-cacheTime<_0x528e1f)return cachedPolicy;}const _0x303479=await fetchCliVersionPolicy();return cachedPolicy=_0x303479,cacheTime=_0x2f61b2,hasCachedPolicy=!![],_0x303479;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 配置工具 — 薄代理层
|
|
3
|
+
*
|
|
4
|
+
* 所有配置文件读写的底层实现统一在 context.ts 中。
|
|
5
|
+
* 本模块保留历史导出接口,供旧命令使用。
|
|
6
|
+
*/
|
|
7
|
+
export { getProjectConfigPath, getGlobalConfigPath } from "../context.js";
|
|
8
|
+
export { isInProject } from "../context.js";
|
|
9
|
+
export declare function readConfig(projectRoot?: string): Record<string, any> & {
|
|
10
|
+
app?: string;
|
|
11
|
+
appcode?: string;
|
|
12
|
+
env?: string;
|
|
13
|
+
template_base_url?: string;
|
|
14
|
+
locale?: string;
|
|
15
|
+
};
|
|
16
|
+
export interface MultiAppConfig {
|
|
17
|
+
name: string;
|
|
18
|
+
appcode: string;
|
|
19
|
+
isDefault: boolean;
|
|
20
|
+
env?: string;
|
|
21
|
+
apiDir?: string;
|
|
22
|
+
cookie?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 获取配置的 AppCode
|
|
26
|
+
* 优先级:多应用 defaultApp > 项目 appcode > 项目 app > 全局 appcode > 全局 app
|
|
27
|
+
*/
|
|
28
|
+
export declare function getConfigAppCode(): string | undefined;
|
|
29
|
+
/** 多应用列表来源:`project` 仅项目文件 `apps`;`merged` 为全局+项目合并(与 readRawConfig 一致) */
|
|
30
|
+
export type MultiAppConfigScope = "project" | "merged";
|
|
31
|
+
/**
|
|
32
|
+
* 获取多应用配置列表。
|
|
33
|
+
* 返回 null 表示不在多应用模式(应使用单应用逻辑)。
|
|
34
|
+
*
|
|
35
|
+
* @param scope `project`(默认)仅当前项目 `.rabetbase.json` 等中的 `apps`;
|
|
36
|
+
* `merged` 使用全局+项目合并结果(api pull/list 传 `--global` 时)。
|
|
37
|
+
*/
|
|
38
|
+
export declare function getMultiAppConfigs(scope?: MultiAppConfigScope): MultiAppConfig[] | null;
|
|
39
|
+
/**
|
|
40
|
+
* 获取模板 CDN 基础 URL
|
|
41
|
+
*/
|
|
42
|
+
export declare function getTemplateBaseUrl(): string;
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a265_0x281566=a265_0x4efb;function a265_0x4efb(_0x56131a,_0x46b20e){_0x56131a=_0x56131a-0xab;const _0xbe998d=a265_0xbe99();let _0x4efb72=_0xbe998d[_0x56131a];return _0x4efb72;}(function(_0x773b8c,_0x2a588f){const _0x34f90d=a265_0x4efb,_0x395e4f=_0x773b8c();while(!![]){try{const _0x5c5084=parseInt(_0x34f90d(0xb1))/0x1*(parseInt(_0x34f90d(0xb5))/0x2)+-parseInt(_0x34f90d(0xb0))/0x3+-parseInt(_0x34f90d(0xab))/0x4*(-parseInt(_0x34f90d(0xb8))/0x5)+parseInt(_0x34f90d(0xaf))/0x6*(parseInt(_0x34f90d(0xac))/0x7)+-parseInt(_0x34f90d(0xb6))/0x8*(parseInt(_0x34f90d(0xb3))/0x9)+-parseInt(_0x34f90d(0xad))/0xa*(-parseInt(_0x34f90d(0xb7))/0xb)+parseInt(_0x34f90d(0xae))/0xc*(parseInt(_0x34f90d(0xb4))/0xd);if(_0x5c5084===_0x2a588f)break;else _0x395e4f['push'](_0x395e4f['shift']());}catch(_0x42c470){_0x395e4f['push'](_0x395e4f['shift']());}}}(a265_0xbe99,0xbd734));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a265_0x2d49c3,getMultiAppConfigs as a265_0x17d9d4,getTemplateBaseUrl as a265_0x1dddf9}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a265_0xbe99(){const _0x5e3bd6=['1167548hgTagA','175oROgGS','670QoSLOS','5592zCaglM','346254MwrxlH','3566922veJIAa','25mcwhJa','env','9lBxsNp','10114yPyZrk','50188QtmESQ','12152480VKZjYr','124696pfrKIs','5JbGIZj','project'];a265_0xbe99=function(){return _0x5e3bd6;};return a265_0xbe99();}export function readConfig(_0x35006f){const _0x86f39c=a265_0x4efb,_0x527ab4=readRawConfig(_0x35006f);return _0x527ab4[_0x86f39c(0xb2)]&&typeof _0x527ab4[_0x86f39c(0xb2)]==='string'&&initEnv(_0x527ab4[_0x86f39c(0xb2)]),_0x527ab4;}export function getConfigAppCode(){return a265_0x2d49c3();}export function getMultiAppConfigs(_0x4aa51d=a265_0x281566(0xb9)){return a265_0x17d9d4(_0x4aa51d);}export function getTemplateBaseUrl(){return a265_0x1dddf9();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyDirectory(src: string, dest: string): Promise<void>;
|