@lovrabet/rabetbase-cli 2.3.16-beta.4 → 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
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x19cb1,_0x580350){const _0x195af8=a77_0x8098,_0x1b26c9=_0x19cb1();while(!![]){try{const _0x49b76f=-parseInt(_0x195af8(0x1f4))/0x1+-parseInt(_0x195af8(0x1fa))/0x2+-parseInt(_0x195af8(0x1f8))/0x3+-parseInt(_0x195af8(0x202))/0x4+-parseInt(_0x195af8(0x201))/0x5*(-parseInt(_0x195af8(0x1fb))/0x6)+parseInt(_0x195af8(0x1f1))/0x7+parseInt(_0x195af8(0x1f9))/0x8;if(_0x49b76f===_0x580350)break;else _0x1b26c9['push'](_0x1b26c9['shift']());}catch(_0x4eedc6){_0x1b26c9['push'](_0x1b26c9['shift']());}}}(a77_0x14b4,0x36454));import{CliErrors}from'../../errors.js';export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;function a77_0x8098(_0xf5f316,_0x368a1a){_0xf5f316=_0xf5f316-0x1f1;const _0x14b4d5=a77_0x14b4();let _0x8098ee=_0x14b4d5[_0xf5f316];return _0x8098ee;}function a77_0x14b4(){const _0x421913=['split','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','2072959xRamoO','push','\x20bytes,\x20limit\x20','52891iexwke','heuristic','add','Table\x20\x22','1183950OwAfjy','5948232pSAGng','790830usmPYK','18GfUDeo','\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20','map','ceil','stringify','validation','210765usmPQN','403508rEKJVS','length','\x20bytes.','trim'];a77_0x14b4=function(){return _0x421913;};return a77_0x14b4();}export const DB_ANALYSIS_BATCH_TARGET_BYTES=0x3c0;export const DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES=0x400;export const DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE=0x3c;export function normalizeAnalysisTableNames(_0x135633){const _0x292af3=a77_0x8098,_0x2eb09a=new Set(),_0x17d076=[];for(const _0x3413a3 of _0x135633[_0x292af3(0x206)](',')){const _0x4ff40f=_0x3413a3[_0x292af3(0x205)]();if(!_0x4ff40f||_0x2eb09a['has'](_0x4ff40f))continue;_0x2eb09a[_0x292af3(0x1f6)](_0x4ff40f),_0x17d076['push'](_0x4ff40f);}return _0x17d076;}export function measureAnalysisInputParamsBytes(_0x4a73db,_0x211267){const _0x5b610a=a77_0x8098;return Buffer['byteLength'](JSON[_0x5b610a(0x1ff)]({'dbLinkId':_0x4a73db,'tableNames':_0x211267}),'utf8');}export function buildAnalysisBatchPlan(_0x11022b,_0x5ce462){const _0x4f4ded=a77_0x8098;if(_0x5ce462[_0x4f4ded(0x203)]===0x0)throw CliErrors[_0x4f4ded(0x200)](_0x4f4ded(0x207));const _0x545e4e=[];let _0x1c2d82=[];for(const _0xafe46b of _0x5ce462){const _0x400508=[..._0x1c2d82,_0xafe46b],_0x18c814=_0x400508[_0x4f4ded(0x203)]>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x11022b,_0x400508)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x18c814&&_0x1c2d82[_0x4f4ded(0x203)]>0x0?(_0x545e4e[_0x4f4ded(0x1f2)](_0x1c2d82),_0x1c2d82=[_0xafe46b]):_0x1c2d82=_0x400508;const _0xfb02ed=measureAnalysisInputParamsBytes(_0x11022b,_0x1c2d82);if(_0xfb02ed>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors[_0x4f4ded(0x200)](_0x4f4ded(0x1f7)+_0xafe46b+_0x4f4ded(0x1fc)+_0xfb02ed+_0x4f4ded(0x1f3)+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x4f4ded(0x204));}_0x1c2d82[_0x4f4ded(0x203)]>0x0&&_0x545e4e[_0x4f4ded(0x1f2)](_0x1c2d82);const _0x4a86aa=_0x545e4e[_0x4f4ded(0x1fd)]((_0x2919eb,_0x2bea24)=>({'index':_0x2bea24+0x1,'tableCount':_0x2919eb[_0x4f4ded(0x203)],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x11022b,_0x2919eb),'estimatedDurationSeconds':_0x2919eb[_0x4f4ded(0x203)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x2919eb})),_0x26d4a0=_0x5ce462[_0x4f4ded(0x203)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x11022b,'tableCount':_0x5ce462[_0x4f4ded(0x203)],'batchCount':_0x4a86aa[_0x4f4ded(0x203)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'planningEstimate':{'basis':_0x4f4ded(0x1f5),'assumedSecondsPerTable':DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'estimatedTotalSeconds':_0x26d4a0,'estimatedTotalMinutes':Math[_0x4f4ded(0x1fe)](_0x26d4a0/0x3c)},'batches':_0x4a86aa};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78_0x26847c=a78_0x2a23;(function(_0x453c2b,_0x1a7823){const _0x5c1a4b=a78_0x2a23,_0x262da4=_0x453c2b();while(!![]){try{const _0x24b533=parseInt(_0x5c1a4b(0x93))/0x1+parseInt(_0x5c1a4b(0x90))/0x2*(-parseInt(_0x5c1a4b(0x8f))/0x3)+-parseInt(_0x5c1a4b(0xa0))/0x4*(-parseInt(_0x5c1a4b(0x99))/0x5)+parseInt(_0x5c1a4b(0x98))/0x6+parseInt(_0x5c1a4b(0x89))/0x7*(parseInt(_0x5c1a4b(0xa1))/0x8)+parseInt(_0x5c1a4b(0x96))/0x9+-parseInt(_0x5c1a4b(0xa5))/0xa*(parseInt(_0x5c1a4b(0xa3))/0xb);if(_0x24b533===_0x1a7823)break;else _0x262da4['push'](_0x262da4['shift']());}catch(_0x248e31){_0x262da4['push'](_0x262da4['shift']());}}}(a78_0x5792,0xe1436));import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x2a23(_0x1b0df8,_0x1e28d3){_0x1b0df8=_0x1b0df8-0x89;const _0x57922f=a78_0x5792();let _0x2a2386=_0x57922f[_0x1b0df8];return _0x2a2386;}import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';function a78_0x5792(){const _0x40670c=['estimatedTotalMinutes','batchCount','15749919jrmtDu','planningEstimate','4470300mcXskn','475QnrcEH','read','analyze-batch-plan','Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','num','\x20table(s)\x20in\x20','tables','32396TDLOUq','159304WvXcXq','str','11sVVRen','\x20serial\x20batch(es)\x20for\x20db\x20link\x20','27627050cAmKyb','294rbYWDY',';\x20estimated\x20about\x20','tableCount','\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','\x20minute(s)\x20at\x20','assumedSecondsPerTable','3HwCjCX','1579064lOPAlP','Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','Prepared\x20local\x20batch\x20plan\x20for\x20','374123KdlZDp'];a78_0x5792=function(){return _0x40670c;};return a78_0x5792();}export const dbAnalyzeBatchPlan={'service':'db','command':a78_0x26847c(0x9b),'description':a78_0x26847c(0x9c),'risk':a78_0x26847c(0x9a),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a78_0x26847c(0x9f),'type':'string','required':!![],'description':a78_0x26847c(0x91)}],async 'execute'(_0xf210ca){const _0x15503d=a78_0x26847c,_0x355c98=_0xf210ca[_0x15503d(0x9d)]('id'),_0x386a61=normalizeAnalysisTableNames(_0xf210ca[_0x15503d(0xa2)](_0x15503d(0x9f))),_0x5c1278=buildAnalysisBatchPlan(_0x355c98,_0x386a61);return{'ok':!![],'data':_0x5c1278,'message':_0x15503d(0x92)+_0x5c1278[_0x15503d(0x8b)]+_0x15503d(0x9e)+_0x5c1278[_0x15503d(0x95)]+_0x15503d(0xa4)+_0x355c98+_0x15503d(0x8a)+_0x5c1278[_0x15503d(0x97)][_0x15503d(0x94)]+_0x15503d(0x8d)+_0x5c1278['planningEstimate'][_0x15503d(0x8e)]+_0x15503d(0x8c)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x49663d=a79_0x5cb2;(function(_0x1002da,_0xee32ee){const _0x5b5611=a79_0x5cb2,_0x1d0f40=_0x1002da();while(!![]){try{const _0x19912a=parseInt(_0x5b5611(0x128))/0x1+parseInt(_0x5b5611(0x134))/0x2+parseInt(_0x5b5611(0x12e))/0x3*(-parseInt(_0x5b5611(0x127))/0x4)+-parseInt(_0x5b5611(0x132))/0x5+-parseInt(_0x5b5611(0x130))/0x6+-parseInt(_0x5b5611(0x12d))/0x7*(-parseInt(_0x5b5611(0x126))/0x8)+-parseInt(_0x5b5611(0x133))/0x9*(-parseInt(_0x5b5611(0x12f))/0xa);if(_0x19912a===_0xee32ee)break;else _0x1d0f40['push'](_0x1d0f40['shift']());}catch(_0x1bddf3){_0x1d0f40['push'](_0x1d0f40['shift']());}}}(a79_0x7840,0x779d6));import{cancelDbAnalysis}from'../../core/api-client.js';function a79_0x5cb2(_0x2797fa,_0x566854){_0x2797fa=_0x2797fa-0x126;const _0x78404e=a79_0x7840();let _0x5cb228=_0x78404e[_0x2797fa];return _0x5cb228;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a79_0x7840(){const _0x53cc88=['write','1057GcygaG','1975611JzDOsi','10VgWKKm','4028706FTHitb','Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel','3994080DqAenT','15000264sctIzV','1576528MPvfgM','3528GtIOcS','4VdrJNO','97195jylVHZ','num','plan','Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id'];a79_0x7840=function(){return _0x53cc88;};return a79_0x7840();}export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a79_0x49663d(0x12b),'risk':a79_0x49663d(0x12c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a79_0x49663d(0x12a),'type':'string','required':!![],'description':a79_0x49663d(0x131)}],async 'execute'(_0x5d2f48){const _0x273500=a79_0x49663d,_0x1d4a7f=_0x5d2f48[_0x273500(0x129)]('id'),_0x2fbe9e=_0x5d2f48['str'](_0x273500(0x12a));return await cancelDbAnalysis(_0x2fbe9e),{'ok':!![],'data':{'dbLinkId':_0x1d4a7f,'planId':_0x2fbe9e},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x2fbe9e};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x4a67d9=a80_0x2568;function a80_0x5bbe(){const _0x22214e=['10465903ugMTiT','length','str','tables','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','183249UCoTnm','write','\x20db\x20analyze-batch-plan\x20--id\x20','analyze-start','2XcPJAR','964144JntFAV','3187645BhWrez','\x20bytes.\x20Run\x20`','string','3700947fQFpTp','Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20','Started\x20analysis\x20for\x20db\x20link\x20','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','1552704SCtkjV','validation','flag','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','4qGXrfD','862407YioFQZ'];a80_0x5bbe=function(){return _0x22214e;};return a80_0x5bbe();}(function(_0x477bc7,_0x4e28db){const _0x816cc7=a80_0x2568,_0x3784d9=_0x477bc7();while(!![]){try{const _0x31015e=parseInt(_0x816cc7(0x17a))/0x1*(-parseInt(_0x816cc7(0x17e))/0x2)+-parseInt(_0x816cc7(0x16b))/0x3+-parseInt(_0x816cc7(0x173))/0x4*(-parseInt(_0x816cc7(0x168))/0x5)+parseInt(_0x816cc7(0x16f))/0x6+parseInt(_0x816cc7(0x175))/0x7+-parseInt(_0x816cc7(0x17f))/0x8+parseInt(_0x816cc7(0x174))/0x9;if(_0x31015e===_0x4e28db)break;else _0x3784d9['push'](_0x3784d9['shift']());}catch(_0x1e929d){_0x3784d9['push'](_0x3784d9['shift']());}}}(a80_0x5bbe,0xe7e59));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';import{DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,measureAnalysisInputParamsBytes,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0x2568(_0x593cc7,_0x23d627){_0x593cc7=_0x593cc7-0x168;const _0x5bbe6a=a80_0x5bbe();let _0x256838=_0x5bbe6a[_0x593cc7];return _0x256838;}import{CliErrors}from'../../errors.js';export const dbAnalyzeStart={'service':'db','command':a80_0x4a67d9(0x17d),'description':a80_0x4a67d9(0x16e),'risk':a80_0x4a67d9(0x17b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a80_0x4a67d9(0x178),'type':a80_0x4a67d9(0x16a),'description':a80_0x4a67d9(0x179)}],async 'execute'(_0x3778f0){const _0x7bfa35=a80_0x4a67d9,_0xd46102=_0x3778f0['num']('id'),_0x55862e=_0x3778f0[_0x7bfa35(0x177)](_0x7bfa35(0x178)),_0x437331=_0x3778f0[_0x7bfa35(0x171)](_0x7bfa35(0x178))!==undefined,_0x2d25fa=_0x437331?normalizeAnalysisTableNames(_0x55862e):undefined;if(_0x2d25fa&&_0x2d25fa[_0x7bfa35(0x176)]===0x0)throw CliErrors[_0x7bfa35(0x170)](_0x7bfa35(0x172));if(_0x2d25fa&&_0x2d25fa[_0x7bfa35(0x176)]>0x0){const _0x3c2dc0=measureAnalysisInputParamsBytes(_0xd46102,_0x2d25fa);if(_0x3c2dc0>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors[_0x7bfa35(0x170)](_0x7bfa35(0x16c)+_0x2d25fa[_0x7bfa35(0x176)]+'\x20table(s),\x20'+_0x3c2dc0+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+_0x7bfa35(0x169)+CLI_BIN_NAME+_0x7bfa35(0x17c)+_0xd46102+'\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.');}const {planId:_0x39e7a5,estimatedMinutes:_0x4ef24a,estimatedDurationDesc:_0x1495f3}=await startDbAnalysis(_0xd46102,_0x2d25fa),_0x1c32ce=buildDbPageLinks(_0x3778f0['appCode'],_0xd46102);return{'ok':!![],'data':{'dbLinkId':_0xd46102,'planId':_0x39e7a5,'tableNames':_0x2d25fa??[],'serverEstimate':{'estimatedMinutes':_0x4ef24a,'estimatedDurationDesc':_0x1495f3},..._0x1c32ce?{'links':_0x1c32ce}:{}},'message':_0x7bfa35(0x16d)+_0xd46102};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x14f2ec=a81_0x3f60;(function(_0xbd1992,_0x146f43){const _0x52ddd2=a81_0x3f60,_0x4cfdf3=_0xbd1992();while(!![]){try{const _0x6fab4a=parseInt(_0x52ddd2(0x1f4))/0x1+parseInt(_0x52ddd2(0x1ee))/0x2+parseInt(_0x52ddd2(0x20a))/0x3*(-parseInt(_0x52ddd2(0x202))/0x4)+parseInt(_0x52ddd2(0x20b))/0x5+parseInt(_0x52ddd2(0x1fe))/0x6+-parseInt(_0x52ddd2(0x1f6))/0x7*(-parseInt(_0x52ddd2(0x204))/0x8)+parseInt(_0x52ddd2(0x1e7))/0x9*(-parseInt(_0x52ddd2(0x1ea))/0xa);if(_0x6fab4a===_0x146f43)break;else _0x4cfdf3['push'](_0x4cfdf3['shift']());}catch(_0x5473a4){_0x4cfdf3['push'](_0x4cfdf3['shift']());}}}(a81_0x3ca0,0x6b876));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set([a81_0x14f2ec(0x1e5),a81_0x14f2ec(0x1f0),a81_0x14f2ec(0x1ed),a81_0x14f2ec(0x20f)]);export const dbAnalyzeStatus={'service':'db','command':a81_0x14f2ec(0x1eb),'description':a81_0x14f2ec(0x1f8),'risk':a81_0x14f2ec(0x207),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a81_0x14f2ec(0x1e2),'type':a81_0x14f2ec(0x1f2),'required':!![],'description':a81_0x14f2ec(0x1ec)}],async 'execute'(_0x37c6f4){const _0x3543b6=a81_0x14f2ec,_0x2404a8=_0x37c6f4['num']('id'),_0x5e7fc3=_0x37c6f4['str'](_0x3543b6(0x1e2)),_0x586639=await getDbAnalysisStatus(_0x5e7fc3),_0x405711=TERMINAL_STATUSES[_0x3543b6(0x1e6)](_0x586639[_0x3543b6(0x20c)]??''),{parsedJobContext:_0x51d8b6,jobContextParseWarning:_0x451460}=parseJobContext(_0x586639[_0x3543b6(0x1f9)]),{requestedAnalysis:_0x185d7e,requestedAnalysisParseWarning:_0x1b095f}=parseRequestedAnalysis(_0x586639['inputParams']),_0x2d46b1=readAccumulatedErrorTypeCounts(_0x51d8b6),_0x260505=calculateAttemptElapsedMs(_0x586639,_0x405711),_0x4f3ace=calculateElapsedFromStart(_0x586639[_0x3543b6(0x1fc)],_0x586639[_0x3543b6(0x20d)],_0x405711),_0x369aa1=detectMultipleAttempts(_0x586639),_0x4b6d94=buildDbPageLinks(_0x37c6f4[_0x3543b6(0x200)],_0x2404a8);return{'ok':!![],'data':{'dbLinkId':_0x2404a8,'planId':_0x5e7fc3,'status':_0x586639,'requestedAnalysis':_0x185d7e,'requestedAnalysisParseWarning':_0x1b095f,'parsedJobContext':_0x51d8b6,'accumulatedErrorTypeCounts':_0x2d46b1,'accumulatedErrorTypeCountsAdvisory':_0x2d46b1?'Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.':_0x3543b6(0x201),'isTerminal':_0x405711,'isRetrying':_0x586639[_0x3543b6(0x20c)]===_0x3543b6(0x1e4),'attemptElapsedMs':_0x260505,'totalElapsedMs':_0x4f3ace,'hasMultipleAttempts':_0x369aa1,'jobContextParseWarning':_0x451460,..._0x4b6d94?{'links':_0x4b6d94}:{}},'message':'Analysis\x20status\x20for\x20'+_0x5e7fc3};}};function parseRequestedAnalysis(_0x1be0ac){const _0x1acc34=a81_0x14f2ec,_0x5dd22d={'mode':_0x1acc34(0x1e3),'tableCount':null,'tableNames':null};if(!_0x1be0ac?.[_0x1acc34(0x1fd)]())return{'requestedAnalysis':_0x5dd22d,'requestedAnalysisParseWarning':_0x1acc34(0x209)};try{const _0x3ae1fc=JSON['parse'](_0x1be0ac);if(!_0x3ae1fc||typeof _0x3ae1fc!==_0x1acc34(0x1fb)||Array['isArray'](_0x3ae1fc))throw new Error(_0x1acc34(0x1f5));const _0x373ada=_0x3ae1fc[_0x1acc34(0x1f3)];if(_0x373ada===undefined||_0x373ada===null)return{'requestedAnalysis':{'mode':_0x1acc34(0x1f1),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x1acc34(0x210)](_0x373ada)&&_0x373ada[_0x1acc34(0x1ef)](_0x58f5d8=>typeof _0x58f5d8==='string'))return{'requestedAnalysis':{'mode':_0x373ada[_0x1acc34(0x1fa)]>0x0?_0x1acc34(0x205):'FULL','tableCount':_0x373ada[_0x1acc34(0x1fa)],'tableNames':_0x373ada},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x5dd22d,'requestedAnalysisParseWarning':_0x1acc34(0x20e)};}function a81_0x3ca0(){const _0x5ae9f8=['firstStartTime','trim','3238938YVWtxu','number','appCode','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','36YjwBbS','now','1674920XjOTRF','TARGETED','keys','read','isFinite','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','243375vwACRw','1046485bzzORc','status','endTime','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','CANCELLED','isArray','parse','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','plan','UNKNOWN','RETRYING','SUCCESS','has','54mzrJCQ','isNaN','costTimeMs','130170sFRSYk','analyze-status','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','FAILED','95168QcXtfC','every','PARTIAL_SUCCESS','FULL','string','tableNames','242596HgYXBb','inputParams\x20is\x20not\x20an\x20object','7TOIDSL','accumulatedErrorTypeCounts','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','jobContext','length','object'];a81_0x3ca0=function(){return _0x5ae9f8;};return a81_0x3ca0();}function readAccumulatedErrorTypeCounts(_0x1c50bb){const _0x4ac73d=a81_0x14f2ec,_0x3a143f=_0x1c50bb?.[_0x4ac73d(0x1f7)];if(!_0x3a143f||typeof _0x3a143f!==_0x4ac73d(0x1fb)||Array[_0x4ac73d(0x210)](_0x3a143f))return null;if(Object[_0x4ac73d(0x206)](_0x3a143f)[_0x4ac73d(0x1fa)]===0x0)return null;return _0x3a143f;}function parseJobContext(_0x423f99){const _0x4a04ab=a81_0x14f2ec;if(!_0x423f99?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x457b87=JSON[_0x4a04ab(0x211)](_0x423f99);if(_0x457b87&&typeof _0x457b87===_0x4a04ab(0x1fb)&&!Array[_0x4a04ab(0x210)](_0x457b87))return{'parsedJobContext':_0x457b87,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x4a04ab(0x212)};}function calculateAttemptElapsedMs(_0x5614e0,_0x54de2b){const _0x525154=a81_0x14f2ec;if(typeof _0x5614e0[_0x525154(0x1e9)]==='number'&&Number[_0x525154(0x208)](_0x5614e0['costTimeMs'])&&_0x5614e0[_0x525154(0x1e9)]>=0x0)return _0x5614e0[_0x525154(0x1e9)];return calculateElapsedFromStart(_0x5614e0['startTime'],_0x5614e0[_0x525154(0x20d)],_0x54de2b);}function a81_0x3f60(_0x1f441b,_0x7fe5fd){_0x1f441b=_0x1f441b-0x1e2;const _0x3ca01b=a81_0x3ca0();let _0x3f6012=_0x3ca01b[_0x1f441b];return _0x3f6012;}function calculateElapsedFromStart(_0x21434d,_0x3f748e,_0x557902){const _0xce87b7=a81_0x14f2ec,_0x1d52cc=toTimestamp(_0x21434d);if(_0x1d52cc===null)return null;const _0x6068fe=toTimestamp(_0x3f748e),_0x5bbfb1=_0x6068fe??(_0x557902?null:Date[_0xce87b7(0x203)]());if(_0x5bbfb1===null||_0x5bbfb1<_0x1d52cc)return null;return _0x5bbfb1-_0x1d52cc;}function detectMultipleAttempts(_0x2b2e88){const _0x2391aa=a81_0x14f2ec,_0x5675db=toTimestamp(_0x2b2e88[_0x2391aa(0x1fc)]),_0x418547=toTimestamp(_0x2b2e88['startTime']);return _0x5675db!==null&&_0x418547!==null&&_0x5675db!==_0x418547;}function toTimestamp(_0x4c128d){const _0x10bad3=a81_0x14f2ec;if(typeof _0x4c128d===_0x10bad3(0x1ff))return Number[_0x10bad3(0x208)](_0x4c128d)?_0x4c128d:null;if(typeof _0x4c128d!==_0x10bad3(0x1f2)||_0x4c128d[_0x10bad3(0x1fd)]()==='')return null;const _0x546319=Number(_0x4c128d);if(Number[_0x10bad3(0x208)](_0x546319))return _0x546319;const _0x40da79=Date[_0x10bad3(0x211)](_0x4c128d);return Number[_0x10bad3(0x1e8)](_0x40da79)?null:_0x40da79;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x350575=a82_0x2bac;(function(_0x5304f7,_0x1969c3){const _0x499c60=a82_0x2bac,_0x532854=_0x5304f7();while(!![]){try{const _0xd5e5fc=-parseInt(_0x499c60(0xe9))/0x1*(parseInt(_0x499c60(0xe2))/0x2)+parseInt(_0x499c60(0xef))/0x3+parseInt(_0x499c60(0xec))/0x4+parseInt(_0x499c60(0xfd))/0x5*(-parseInt(_0x499c60(0xe7))/0x6)+parseInt(_0x499c60(0xf5))/0x7+parseInt(_0x499c60(0xfc))/0x8*(-parseInt(_0x499c60(0xf2))/0x9)+parseInt(_0x499c60(0xd5))/0xa;if(_0xd5e5fc===_0x1969c3)break;else _0x532854['push'](_0x532854['shift']());}catch(_0x11b0ed){_0x532854['push'](_0x532854['shift']());}}}(a82_0x4006,0x289ab));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a82_0x2bac(_0x445e24,_0xf5e93f){_0x445e24=_0x445e24-0xd2;const _0x400697=a82_0x4006();let _0x2bacba=_0x400697[_0x445e24];return _0x2bacba;}function a82_0x4006(){const _0x38fe0e=['169452diYeae','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','25128AwSYgo','[redacted]','password','728259nonVWB','str','POST','8.0','planId','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','username','584HEDyLJ','5EwUGwo','message','\x20and\x20started\x20analysis','dburl','string','Human-readable\x20description','dbdesc','3954650kRKrBB','No\x20follow-up\x20analysis','autostart','dbname','validation','Database\x20username','join','trim',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','/smartapi/dblink/create','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','Created\x20db\x20link\x20','databasePage','54986KBDeWk','appCode','dbtype','bool','dbversion','1907994ZdRzIP','write','6HABJEX','dbparam','Database\x20password','1188408okCHJL','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Extra\x20JDBC-style\x20connection\x20parameters\x20string'];a82_0x4006=function(){return _0x38fe0e;};return a82_0x4006();}export const dbCreate={'service':'db','command':'create','description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a82_0x350575(0xe8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a82_0x350575(0xd8),'type':a82_0x350575(0xd2),'required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a82_0x350575(0xe6),'type':a82_0x350575(0xd2),'description':a82_0x350575(0xf1),'default':'8.0'},{'name':a82_0x350575(0x100),'type':a82_0x350575(0xd2),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':'username','type':a82_0x350575(0xd2),'required':!![],'description':a82_0x350575(0xda)},{'name':a82_0x350575(0xf4),'type':a82_0x350575(0xd2),'required':!![],'description':a82_0x350575(0xeb)},{'name':a82_0x350575(0xea),'type':a82_0x350575(0xd2),'description':a82_0x350575(0xee)},{'name':a82_0x350575(0xd4),'type':a82_0x350575(0xd2),'description':a82_0x350575(0xd3)},{'name':a82_0x350575(0xd7),'type':'boolean','description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x56b839){const _0x237289=a82_0x350575,_0x44b5c=_0x56b839['str'](_0x237289(0x100))[_0x237289(0xdc)]();if(!validateDbUrl(_0x44b5c))throw CliErrors[_0x237289(0xd9)](_0x237289(0xfa)+_0x44b5c+'\x22',_0x237289(0xf0));},async 'dryRun'(_0x42844c){const _0x18f091=a82_0x350575,_0x31f631={'appCode':_0x42844c[_0x18f091(0xe3)],'dbName':_0x42844c['str'](_0x18f091(0xd8)),'dbType':_0x42844c[_0x18f091(0xf6)]('dbtype'),'dbVersion':_0x42844c[_0x18f091(0xf6)](_0x18f091(0xe6))||'8.0','dbUrl':_0x42844c[_0x18f091(0xf6)](_0x18f091(0x100))[_0x18f091(0xdc)](),'username':_0x42844c[_0x18f091(0xf6)]('username'),'password':_0x18f091(0xf3),..._0x42844c[_0x18f091(0xf6)](_0x18f091(0xea))?{'dbParam':_0x42844c[_0x18f091(0xf6)]('dbparam')}:{},..._0x42844c[_0x18f091(0xf6)](_0x18f091(0xd4))?{'dbDesc':_0x42844c['str'](_0x18f091(0xd4))}:{}};return{'method':_0x18f091(0xf7),'url':_0x18f091(0xde),'body':_0x31f631,'description':['Create\x20dblink',_0x42844c[_0x18f091(0xe5)](_0x18f091(0xd7))?_0x18f091(0xed):_0x18f091(0xd6)][_0x18f091(0xdb)]('\x0a')};},async 'execute'(_0x56d6db){const _0x16a866=a82_0x350575,_0x44bd6f={'appCode':_0x56d6db[_0x16a866(0xe3)],'dbName':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xd8)),'dbType':_0x56d6db['str'](_0x16a866(0xe4)),'dbVersion':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xe6))||_0x16a866(0xf8),'dbUrl':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0x100))[_0x16a866(0xdc)](),'username':_0x56d6db['str'](_0x16a866(0xfb)),'password':_0x56d6db[_0x16a866(0xf6)]('password'),..._0x56d6db['str']('dbparam')?{'dbParam':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xea))}:{},..._0x56d6db['str']('dbdesc')?{'dbDesc':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xd4))}:{}},{id:_0x1e1114,entity:_0x1ad442}=normalizeEntityWithIdResponse(await createDbLink(_0x44bd6f));if(!_0x1e1114)return{'ok':![],'message':_0x16a866(0xdf),'data':sanitizeDbLinkForOutput(_0x1ad442)};let _0x2d5577,_0x3b0524;if(_0x56d6db[_0x16a866(0xe5)](_0x16a866(0xd7)))try{_0x2d5577=(await startDbAnalysis(_0x1e1114))[_0x16a866(0xf9)];}catch(_0x54dff9){_0x3b0524=_0x54dff9 instanceof Error?_0x54dff9[_0x16a866(0xfe)]:String(_0x54dff9);}const _0x49f48e=buildDbPageLinks(_0x56d6db[_0x16a866(0xe3)],_0x1e1114),_0x4d92e7={'connection':sanitizeDbLinkForOutput(_0x1ad442),..._0x49f48e?{'links':{'databasePage':_0x49f48e[_0x16a866(0xe1)]}}:{},..._0x2d5577?{'analysisPlanId':_0x2d5577}:{},..._0x3b0524?{'analysisStartWarning':_0x3b0524}:{}};let _0x24a68d;return _0x56d6db['bool'](_0x16a866(0xd7))?_0x3b0524?_0x24a68d=_0x16a866(0xe0)+_0x1e1114+_0x16a866(0xdd):_0x24a68d=_0x16a866(0xe0)+_0x1e1114+_0x16a866(0xff):_0x24a68d='Created\x20db\x20link\x20'+_0x1e1114,{'ok':!![],'data':_0x4d92e7,'message':_0x24a68d};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a83_0x4a8461=a83_0xb11b;(function(_0x4ff941,_0x5b9884){const _0x5bd3ca=a83_0xb11b,_0x20cc2c=_0x4ff941();while(!![]){try{const _0x306e9c=parseInt(_0x5bd3ca(0xb3))/0x1+-parseInt(_0x5bd3ca(0xb2))/0x2+-parseInt(_0x5bd3ca(0xb1))/0x3*(-parseInt(_0x5bd3ca(0xb5))/0x4)+-parseInt(_0x5bd3ca(0xbc))/0x5*(parseInt(_0x5bd3ca(0xbb))/0x6)+-parseInt(_0x5bd3ca(0xb9))/0x7+parseInt(_0x5bd3ca(0xb4))/0x8*(-parseInt(_0x5bd3ca(0xaf))/0x9)+-parseInt(_0x5bd3ca(0xb7))/0xa*(-parseInt(_0x5bd3ca(0xbd))/0xb);if(_0x306e9c===_0x5b9884)break;else _0x20cc2c['push'](_0x20cc2c['shift']());}catch(_0x2afef6){_0x20cc2c['push'](_0x20cc2c['shift']());}}}(a83_0x20ab,0xc2019));function a83_0xb11b(_0x25554c,_0x48c5ed){_0x25554c=_0x25554c-0xaf;const _0x20ab74=a83_0x20ab();let _0xb11bdd=_0x20ab74[_0x25554c];return _0xb11bdd;}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0x20ab(){const _0x8691ab=['Deleted\x20db\x20link\x20','10jMKRas','delete','1662808ceoRak','high-risk-write','6jDOYMZ','7715735hmvDVb','27304761Rdyxlc','27SPhKbj','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','62133Uhskxf','104360DkbcIK','93737qWqxlC','2458360ZTRigg','188BrcrFj'];a83_0x20ab=function(){return _0x8691ab;};return a83_0x20ab();}export const dbDelete={'service':'db','command':a83_0x4a8461(0xb8),'description':a83_0x4a8461(0xb0),'risk':a83_0x4a8461(0xba),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x373e1c){const _0x77e1d9=a83_0x4a8461,_0xf35aa2=_0x373e1c['num']('id');return await deleteDbLink(_0xf35aa2),{'ok':!![],'data':{'id':_0xf35aa2,'deleted':!![]},'message':_0x77e1d9(0xb6)+_0xf35aa2};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a84_0x57bb(){const _0x26aef9=['18ONfcwC','2277541nkhhnH','dbName','4EHKOAR','read','45256GBwiJD','1967241NzVLqL','711Aqrijh','4686745WWrCLd','142951VyONXu','1845206iPghsN','4302590iDXiBT','db\x20link\x20','detail'];a84_0x57bb=function(){return _0x26aef9;};return a84_0x57bb();}const a84_0x197f41=a84_0x4565;(function(_0x4daa63,_0x3c523b){const _0x373b96=a84_0x4565,_0x1be463=_0x4daa63();while(!![]){try{const _0x1a7d28=-parseInt(_0x373b96(0x163))/0x1+parseInt(_0x373b96(0x156))/0x2+-parseInt(_0x373b96(0x160))/0x3*(-parseInt(_0x373b96(0x15d))/0x4)+-parseInt(_0x373b96(0x162))/0x5+parseInt(_0x373b96(0x15a))/0x6*(parseInt(_0x373b96(0x15b))/0x7)+-parseInt(_0x373b96(0x15f))/0x8*(parseInt(_0x373b96(0x161))/0x9)+-parseInt(_0x373b96(0x157))/0xa;if(_0x1a7d28===_0x3c523b)break;else _0x1be463['push'](_0x1be463['shift']());}catch(_0x192fe3){_0x1be463['push'](_0x1be463['shift']());}}}(a84_0x57bb,0x91bf1));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x4565(_0x91db96,_0x55971b){_0x91db96=_0x91db96-0x156;const _0x57bba7=a84_0x57bb();let _0x4565d3=_0x57bba7[_0x91db96];return _0x4565d3;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a84_0x197f41(0x159),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a84_0x197f41(0x15e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x449b86){const _0x265ce9=a84_0x197f41,_0x5d3c5e=_0x449b86['num']('id'),_0x10d671=await getDbLinkInfo(_0x5d3c5e);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x10d671),'message':_0x265ce9(0x158)+_0x5d3c5e+':\x20'+_0x10d671[_0x265ce9(0x15c)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0xc60330=a85_0x1922;(function(_0x1521b4,_0x2456f0){const _0x4039f5=a85_0x1922,_0x18d478=_0x1521b4();while(!![]){try{const _0x1384dc=parseInt(_0x4039f5(0x11e))/0x1+parseInt(_0x4039f5(0x118))/0x2+parseInt(_0x4039f5(0x133))/0x3*(-parseInt(_0x4039f5(0x117))/0x4)+parseInt(_0x4039f5(0x104))/0x5*(-parseInt(_0x4039f5(0x129))/0x6)+-parseInt(_0x4039f5(0x111))/0x7*(parseInt(_0x4039f5(0x131))/0x8)+-parseInt(_0x4039f5(0x10d))/0x9*(parseInt(_0x4039f5(0x12c))/0xa)+-parseInt(_0x4039f5(0x11a))/0xb*(-parseInt(_0x4039f5(0x120))/0xc);if(_0x1384dc===_0x2456f0)break;else _0x18d478['push'](_0x18d478['shift']());}catch(_0x4cc54a){_0x18d478['push'](_0x18d478['shift']());}}}(a85_0x1fbb,0xb774f));import{getDbTableDiff}from'../../core/api-client.js';function a85_0x1922(_0x3edd95,_0xc0c75){_0x3edd95=_0x3edd95-0x102;const _0x1fbb37=a85_0x1fbb();let _0x19222e=_0x1fbb37[_0x3edd95];return _0x19222e;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a85_0xc60330(0x119),a85_0xc60330(0x106),a85_0xc60330(0x130),a85_0xc60330(0x132)];function a85_0x1fbb(){const _0x621787=['all','Page\x20size','length','filter','1097304LBbbBA','2421002kiPsCR','NEW_TABLE','1419HaycMJ','diff','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','appCode','70260AYNyFc','Page\x20index\x20(1-based)','290856evhlKp','fieldDiff','num','addedColumns','physicalTableCount','string','number','bool','pagesize','6knLyDV','diffType','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','11547480CYjfPI','modifiedColumns','\x20(db\x20link\x20','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','DELETED_TABLE','16rvPOqa','ALREADY_ANALYZED','15PipYNj','validation','map','page','6210tjbmnE','tableList','MODIFIED_TABLE','\x20row(s),\x20total\x20','table','size','\x20of\x20','tableName','totalCount','9DAgLea','read','summary','changed-only','3949414clVZvd','set'];a85_0x1fbb=function(){return _0x621787;};return a85_0x1fbb();}export const dbDiff={'service':'db','command':a85_0xc60330(0x11b),'description':a85_0xc60330(0x11c),'risk':a85_0xc60330(0x10e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a85_0xc60330(0x108),'type':a85_0xc60330(0x125),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a85_0xc60330(0x103),'type':a85_0xc60330(0x126),'description':a85_0xc60330(0x11f),'default':0x1},{'name':a85_0xc60330(0x128),'type':'number','description':a85_0xc60330(0x114),'default':0x14},{'name':a85_0xc60330(0x113),'type':'boolean','description':a85_0xc60330(0x12b)},{'name':a85_0xc60330(0x110),'type':'boolean','description':a85_0xc60330(0x12f)}],async 'execute'(_0x32320c){const _0x52060c=a85_0xc60330,_0x2c5e36=_0x32320c[_0x52060c(0x122)]('id'),_0x20cb1f=_0x32320c['bool']('all'),_0x14ce99=_0x32320c[_0x52060c(0x127)](_0x52060c(0x110)),_0xb14317=_0x20cb1f?0x1:_0x32320c[_0x52060c(0x122)]('page',0x1)||0x1,_0x50830b=_0x20cb1f?ALL_PAGE_SIZE:_0x32320c['num'](_0x52060c(0x128),0x14)||0x14,_0x3a3758=_0x32320c['str']('table')||undefined,_0x38853f=_0x20cb1f?await getAllDbTableDiff(_0x32320c[_0x52060c(0x11d)],_0x2c5e36,_0x3a3758):await getDbTableDiff(_0x32320c[_0x52060c(0x11d)],_0x2c5e36,{'pageIndex':_0xb14317,'pageSize':_0x50830b,'tableName':_0x3a3758}),_0x37a6bc=_0x38853f['tableList'],_0x598ba8=_0x14ce99?_0x37a6bc[_0x52060c(0x116)](_0x252f5d=>_0x252f5d[_0x52060c(0x12a)]!==_0x52060c(0x132)):_0x37a6bc,_0x4967b3=Object['fromEntries'](DIFF_TYPES[_0x52060c(0x102)](_0x1d7c8a=>[_0x1d7c8a,_0x37a6bc[_0x52060c(0x116)](_0x4395de=>_0x4395de['diffType']===_0x1d7c8a)['length']])),_0xb01eac=_0x37a6bc[_0x52060c(0x116)](_0x2002b5=>_0x2002b5['diffType']===_0x52060c(0x119)||_0x2002b5[_0x52060c(0x12a)]===_0x52060c(0x106))['map'](_0x43de64=>_0x43de64[_0x52060c(0x10b)]),_0x4ea541=_0x37a6bc[_0x52060c(0x116)](_0x3c4c1c=>_0x3c4c1c[_0x52060c(0x12a)]===_0x52060c(0x130))['map'](_0x372167=>_0x372167[_0x52060c(0x10b)]),_0x2fef02=_0x37a6bc[_0x52060c(0x116)](_0x2f1826=>_0x2f1826[_0x52060c(0x12a)]==='MODIFIED_TABLE')['map'](_0x12293d=>({'tableName':_0x12293d[_0x52060c(0x10b)],'addedColumns':_0x12293d[_0x52060c(0x121)]?.[_0x52060c(0x123)]??[],'deletedColumns':_0x12293d[_0x52060c(0x121)]?.['deletedColumns']??[],'modifiedColumns':_0x12293d[_0x52060c(0x121)]?.[_0x52060c(0x12d)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x2c5e36,'page':_0xb14317,'pageSize':_0x50830b,'totalCount':_0x38853f[_0x52060c(0x10c)],'physicalTableCount':_0x38853f[_0x52060c(0x124)],'datasetTableCount':_0x38853f['datasetTableCount'],..._0x38853f[_0x52060c(0x10f)]?{'summary':_0x38853f['summary']}:{},'summaryByType':_0x4967b3,'toAnalyzeTables':_0xb01eac,'deletedTables':_0x4ea541,'modifiedFieldDiffs':_0x2fef02,'tables':_0x598ba8,'tableList':_0x598ba8},'message':_0x598ba8[_0x52060c(0x115)]+_0x52060c(0x107)+_0x38853f[_0x52060c(0x10c)]+_0x52060c(0x12e)+_0x2c5e36+')'};}};async function getAllDbTableDiff(_0x5eece9,_0x51bed4,_0x40c0a6){const _0x496b05=a85_0xc60330,_0x36f280=new Map();let _0x4f0416=0x1,_0x230e90=null;while(!![]){_0x230e90=await getDbTableDiff(_0x5eece9,_0x51bed4,{'pageIndex':_0x4f0416,'pageSize':ALL_PAGE_SIZE,'tableName':_0x40c0a6});const _0x250435=_0x36f280[_0x496b05(0x109)];for(const _0x475801 of _0x230e90[_0x496b05(0x105)]){_0x36f280[_0x496b05(0x112)](_0x475801['tableName'],_0x475801);}if(_0x36f280[_0x496b05(0x109)]>=_0x230e90[_0x496b05(0x10c)])break;if(_0x230e90[_0x496b05(0x105)][_0x496b05(0x115)]===0x0||_0x36f280[_0x496b05(0x109)]===_0x250435)throw CliErrors[_0x496b05(0x134)]('Incomplete\x20db\x20diff\x20pagination:\x20collected\x20'+_0x36f280['size']+_0x496b05(0x10a)+_0x230e90['totalCount']+'\x20row(s).');_0x4f0416+=0x1;}return{'totalCount':_0x230e90?.['totalCount']??0x0,'physicalTableCount':_0x230e90?.['physicalTableCount']??0x0,'datasetTableCount':_0x230e90?.['datasetTableCount']??0x0,..._0x230e90?.[_0x496b05(0x10f)]?{'summary':_0x230e90[_0x496b05(0x10f)]}:{},'tableList':[..._0x36f280['values']()]};}
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a86_0xc1af(_0x1addf4,_0x558ad3){_0x1addf4=_0x1addf4-0x167;const _0x1bab8d=a86_0x1bab();let _0xc1afc5=_0x1bab8d[_0x1addf4];return _0xc1afc5;}function a86_0x1bab(){const _0xc977e4=['3733025KvIJHA','1464522eNJBeZ','4ZOKywY','526499ckqKPC','577228ISIbKS','5222952XbHgev','315dbAaDE','5396951XhdfbQ','53768SntWMc'];a86_0x1bab=function(){return _0xc977e4;};return a86_0x1bab();}(function(_0x39358a,_0x367903){const _0xb526e5=a86_0xc1af,_0x34d558=_0x39358a();while(!![]){try{const _0x558e23=-parseInt(_0xb526e5(0x168))/0x1*(-parseInt(_0xb526e5(0x167))/0x2)+parseInt(_0xb526e5(0x16f))/0x3+parseInt(_0xb526e5(0x169))/0x4+-parseInt(_0xb526e5(0x16e))/0x5+-parseInt(_0xb526e5(0x16a))/0x6+parseInt(_0xb526e5(0x16c))/0x7+-parseInt(_0xb526e5(0x16d))/0x8*(parseInt(_0xb526e5(0x16b))/0x9);if(_0x558e23===_0x367903)break;else _0x34d558['push'](_0x34d558['shift']());}catch(_0x53f046){_0x34d558['push'](_0x34d558['shift']());}}}(a86_0x1bab,0x937ec));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a87_0x5a0a34=a87_0x51ff;(function(_0x34ded6,_0x44c4bf){const _0x449dca=a87_0x51ff,_0x391ba2=_0x34ded6();while(!![]){try{const _0x8c5eee=parseInt(_0x449dca(0xf3))/0x1*(-parseInt(_0x449dca(0xee))/0x2)+parseInt(_0x449dca(0xea))/0x3*(-parseInt(_0x449dca(0xfb))/0x4)+parseInt(_0x449dca(0xf8))/0x5+parseInt(_0x449dca(0xec))/0x6+-parseInt(_0x449dca(0xfe))/0x7*(-parseInt(_0x449dca(0xed))/0x8)+parseInt(_0x449dca(0xfa))/0x9+parseInt(_0x449dca(0xf5))/0xa*(-parseInt(_0x449dca(0xef))/0xb);if(_0x8c5eee===_0x44c4bf)break;else _0x391ba2['push'](_0x391ba2['shift']());}catch(_0x3e80e1){_0x391ba2['push'](_0x391ba2['shift']());}}}(a87_0xec84,0x4de81));import{listDbLinks}from'../../core/api-client.js';function a87_0x51ff(_0x2f3ed0,_0x4af48a){_0x2f3ed0=_0x2f3ed0-0xe9;const _0xec845b=a87_0xec84();let _0x51ff65=_0xec845b[_0x2f3ed0];return _0x51ff65;}function a87_0xec84(){const _0x15b87e=['appCode','461106kNERmM','3555368PDaMaP','2wRKfTl','8640874rZrkzK','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','pagesize','read','60244iYUlVn','page','10nOlnRP','Found\x20','Page\x20size','2358220PslLVC','number','3533976pKnLPv','10636qeBcDX','\x20database\x20connection(s)','Page\x20index\x20(1-based)','7BMdiXl','length','num','249dJGeLv'];a87_0xec84=function(){return _0x15b87e;};return a87_0xec84();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a87_0x5a0a34(0xf2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a87_0x5a0a34(0xf4),'type':a87_0x5a0a34(0xf9),'description':a87_0x5a0a34(0xfd),'default':0x1},{'name':a87_0x5a0a34(0xf1),'type':'number','description':a87_0x5a0a34(0xf7),'default':0x64}],async 'execute'(_0x2e820c){const _0x2504ce=a87_0x5a0a34,_0x40d809=_0x2e820c[_0x2504ce(0xe9)](_0x2504ce(0xf4),0x1)||0x1,_0x38bcc6=_0x2e820c[_0x2504ce(0xe9)]('pagesize',0x64)||0x64,{items:_0x4b3dce,paging:_0x322ecf}=await listDbLinks(_0x2e820c[_0x2504ce(0xeb)],{'currentPage':_0x40d809,'pageSize':_0x38bcc6}),_0x5924f7=sanitizeDbLinkList(_0x4b3dce),_0x39796f=_0x322ecf?_0x322ecf:{'currentPage':_0x40d809,'pageSize':_0x38bcc6,'rowsOnPage':_0x5924f7[_0x2504ce(0xff)],'totalCount':null,'note':_0x2504ce(0xf0)};return{'ok':!![],'data':{'connections':_0x5924f7,'paging':_0x39796f},'message':_0x2504ce(0xf6)+_0x5924f7[_0x2504ce(0xff)]+_0x2504ce(0xfc)};}};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* db 子命令共享:输出脱敏(凭据类字段不落盘到 AI 可读 JSON)。
|
|
3
|
+
*/
|
|
4
|
+
import type { DbLinkInfo } from "../../core/api-client.js";
|
|
5
|
+
/**
|
|
6
|
+
* 单条连接信息脱敏后返回(避免把明文凭据回传给 agent)。
|
|
7
|
+
*/
|
|
8
|
+
export declare function sanitizeDbLinkForOutput(link: DbLinkInfo | Record<string, unknown>): Record<string, unknown>;
|
|
9
|
+
export declare function sanitizeDbLinkList(items: DbLinkInfo[]): Record<string, unknown>[];
|
|
10
|
+
export declare function validateDbUrl(dbUrl: string): boolean;
|
|
11
|
+
export interface DbPageLinks {
|
|
12
|
+
databasePage: string;
|
|
13
|
+
erPage: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildDbPageLinks(appCode: string | undefined, dbLinkId: number | string | undefined): DbPageLinks | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x419b34,_0x5f44ff){const _0x317947=a88_0x2d86,_0x43f1da=_0x419b34();while(!![]){try{const _0x534aae=parseInt(_0x317947(0xfe))/0x1*(-parseInt(_0x317947(0xff))/0x2)+parseInt(_0x317947(0x104))/0x3+parseInt(_0x317947(0x100))/0x4+parseInt(_0x317947(0x10c))/0x5+-parseInt(_0x317947(0x10e))/0x6+-parseInt(_0x317947(0x106))/0x7+parseInt(_0x317947(0x116))/0x8;if(_0x534aae===_0x5f44ff)break;else _0x43f1da['push'](_0x43f1da['shift']());}catch(_0x51a3c2){_0x43f1da['push'](_0x43f1da['shift']());}}}(a88_0x2282,0xd1ffd));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0xfadcf6){const _0x476317=a88_0x2d86,_0x4a4592=_0xfadcf6['toLowerCase']();if(_0x4a4592===_0x476317(0x110)||_0x4a4592==='passwd'||_0x4a4592===_0x476317(0x112))return!![];if(_0x4a4592[_0x476317(0x10b)](_0x476317(0x102))||_0x4a4592['includes'](_0x476317(0x115))||_0x4a4592[_0x476317(0x10b)](_0x476317(0x108)))return!![];if(_0x4a4592[_0x476317(0x10b)](_0x476317(0x10d))||_0x4a4592[_0x476317(0x10b)](_0x476317(0x107)))return!![];if(_0x4a4592===_0x476317(0x103)||_0x4a4592===_0x476317(0x10f)||_0x4a4592===_0x476317(0x101))return!![];return![];}export function sanitizeDbLinkForOutput(_0x43defd){const _0x452726=a88_0x2d86,_0x18603e={..._0x43defd};for(const _0xc8bec of Object[_0x452726(0x109)](_0x18603e)){if(!shouldRedactKey(_0xc8bec))continue;const _0x1bc89a=_0x18603e[_0xc8bec];_0x1bc89a!=null&&String(_0x1bc89a)[_0x452726(0x113)]>0x0&&(_0x18603e[_0xc8bec]='[redacted]');}return _0x18603e;}export function sanitizeDbLinkList(_0x471ac5){const _0xa663ad=a88_0x2d86;return _0x471ac5[_0xa663ad(0x105)](_0x101601=>sanitizeDbLinkForOutput(_0x101601));}function a88_0x2d86(_0x3847df,_0x57d6b7){_0x3847df=_0x3847df-0xfd;const _0x22829a=a88_0x2282();let _0x2d8635=_0x22829a[_0x3847df];return _0x2d8635;}function a88_0x2282(){const _0x3e4916=['7000985TUkDiV','privatekey','6721236RZPTpt','connectionstring','password','isFinite','dbpassword','length','/data/er?dbId=','token','2693432ZWLVSn','trim','1IhAXyf','409158zTXOUd','4741100FcSQcx','jdbcurl','secret','authorization','1163922KOmFUL','map','7876281uFnWAf','accesskey','credential','keys','/data/database','includes'];a88_0x2282=function(){return _0x3e4916;};return a88_0x2282();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2b4cbf){const _0xa590d2=a88_0x2d86,_0x4d73be=_0x2b4cbf[_0xa590d2(0xfd)]();if(!_0x4d73be)return![];return DB_URL_PATTERN['test'](_0x4d73be);}export function buildDbPageLinks(_0x38281a,_0xbed914){const _0x17d9a7=a88_0x2d86,_0x5715b9=_0x38281a?.[_0x17d9a7(0xfd)]();if(!_0x5715b9)return undefined;const _0x58f756=typeof _0xbed914==='number'?String(_0xbed914):String(_0xbed914??'')[_0x17d9a7(0xfd)]();if(!_0x58f756)return undefined;const _0x4dc650=Number(_0x58f756);if(!Number[_0x17d9a7(0x111)](_0x4dc650)||_0x4dc650<=0x0)return undefined;const _0xf40651=getAppBaseUrl(_0x5715b9),_0x4ce018=encodeURIComponent(String(_0x4dc650));return{'databasePage':_0xf40651+_0x17d9a7(0x10a),'erPage':_0xf40651+_0x17d9a7(0x114)+_0x4ce018};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89_0x360a(_0x40eac2,_0x3de827){_0x40eac2=_0x40eac2-0xc1;const _0x3644c4=a89_0x3644();let _0x360abf=_0x3644c4[_0x40eac2];return _0x360abf;}const a89_0xfca363=a89_0x360a;(function(_0x51f11a,_0x2514b1){const _0x1fa774=a89_0x360a,_0x3ae1a7=_0x51f11a();while(!![]){try{const _0x280fac=parseInt(_0x1fa774(0xc1))/0x1*(-parseInt(_0x1fa774(0xcc))/0x2)+parseInt(_0x1fa774(0xca))/0x3+parseInt(_0x1fa774(0xc6))/0x4*(-parseInt(_0x1fa774(0xc8))/0x5)+parseInt(_0x1fa774(0xc2))/0x6*(parseInt(_0x1fa774(0xc9))/0x7)+-parseInt(_0x1fa774(0xc5))/0x8*(parseInt(_0x1fa774(0xcb))/0x9)+parseInt(_0x1fa774(0xcf))/0xa*(parseInt(_0x1fa774(0xc4))/0xb)+-parseInt(_0x1fa774(0xcd))/0xc;if(_0x280fac===_0x2514b1)break;else _0x3ae1a7['push'](_0x3ae1a7['shift']());}catch(_0x572a25){_0x3ae1a7['push'](_0x3ae1a7['shift']());}}}(a89_0x3644,0xadaa0));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0x3644(){const _0x490c99=['22772NvPdKA','read','565frZDNh','2899869foklOY','3405591cliZlf','9dZoCBX','96752fgIkrV','5643132esRtGg','length','180110MOcGIj','num','\x20table(s)\x20on\x20db\x20link\x20','11BWdGRE','18UTqJeu','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','22PkMlGH','455888egHFag'];a89_0x3644=function(){return _0x490c99;};return a89_0x3644();}export const dbTables={'service':'db','command':'tables','description':a89_0xfca363(0xc3),'risk':a89_0xfca363(0xc7),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1ea67f){const _0x278feb=a89_0xfca363,_0x492842=_0x1ea67f[_0x278feb(0xd0)]('id'),_0xd81e85=await getDbAllTableList(_0x1ea67f['appCode'],_0x492842);return{'ok':!![],'data':{'dbLinkId':_0x492842,'total':_0xd81e85[_0x278feb(0xce)],'tables':_0xd81e85},'message':_0xd81e85['length']+_0x278feb(0xd1)+_0x492842};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a90_0x5390(){const _0x569229=['4246620ZWQTxR','16524oMIyPd','length','5972624QINHHO','369594cFqNyJ','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','code','success','10IbtwOa','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1VEgpzA','1147346DwHdKQ','slice','42OVQBRD','read','error','Connection\x20OK\x20for\x20db\x20link\x20','500Lthfha','keys','12428174HdNjVZ','object','542540HTWqKm'];a90_0x5390=function(){return _0x569229;};return a90_0x5390();}function a90_0x2105(_0x1b4029,_0x362e85){_0x1b4029=_0x1b4029-0x8b;const _0x53905a=a90_0x5390();let _0x21052c=_0x53905a[_0x1b4029];return _0x21052c;}const a90_0xc664cb=a90_0x2105;(function(_0x4d345f,_0x5ba87b){const _0xfcaa91=a90_0x2105,_0x29d927=_0x4d345f();while(!![]){try{const _0x261e78=parseInt(_0xfcaa91(0x9f))/0x1*(-parseInt(_0xfcaa91(0xa0))/0x2)+parseInt(_0xfcaa91(0x95))/0x3*(-parseInt(_0xfcaa91(0x8f))/0x4)+-parseInt(_0xfcaa91(0x93))/0x5*(parseInt(_0xfcaa91(0x8b))/0x6)+parseInt(_0xfcaa91(0x94))/0x7+parseInt(_0xfcaa91(0x97))/0x8+-parseInt(_0xfcaa91(0x98))/0x9+parseInt(_0xfcaa91(0x9d))/0xa*(parseInt(_0xfcaa91(0x91))/0xb);if(_0x261e78===_0x5ba87b)break;else _0x29d927['push'](_0x29d927['shift']());}catch(_0x1eca36){_0x29d927['push'](_0x29d927['shift']());}}}(a90_0x5390,0x669b5));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x36f51a){const _0x23e6fe=a90_0x2105;if(_0x36f51a===!![]||_0x36f51a===![])return{'success':_0x36f51a};if(_0x36f51a===null||_0x36f51a===undefined)return{'type':typeof _0x36f51a};if(typeof _0x36f51a!==_0x23e6fe(0x92))return{'type':typeof _0x36f51a};const _0x23e957=_0x36f51a,_0x3c8271=[_0x23e6fe(0x9c),'message',_0x23e6fe(0x9b),_0x23e6fe(0x8d),'msg','data'],_0x284909={};for(const _0x54563e of _0x3c8271){if(_0x54563e in _0x23e957)_0x284909[_0x54563e]=_0x23e957[_0x54563e];}return Object[_0x23e6fe(0x90)](_0x284909)[_0x23e6fe(0x96)]===0x0&&(_0x284909[_0x23e6fe(0x90)]=Object[_0x23e6fe(0x90)](_0x23e957)[_0x23e6fe(0xa1)](0x0,0x14)),_0x284909;}export const dbTest={'service':'db','command':'test','description':a90_0xc664cb(0x9e),'risk':a90_0xc664cb(0x8c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xdb9b4){const _0x314b92=a90_0xc664cb,_0x30a7d0=_0xdb9b4[_0x314b92(0x9a)]('id'),_0x2923cd=await testDbLinkConnect(_0x30a7d0),_0x4bece7=_0x2923cd===!![]||typeof _0x2923cd===_0x314b92(0x92)&&_0x2923cd!==null&&_0x2923cd[_0x314b92(0x9c)]===!![],_0x44beba=summarizeTestConnectResult(_0x2923cd);return{'ok':!![],'data':{'id':_0x30a7d0,'connected':Boolean(_0x4bece7),'result':_0x44beba},'message':_0x4bece7?_0x314b92(0x8e)+_0x30a7d0:_0x314b92(0x99)+_0x30a7d0+'\x20(see\x20data.result)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x240564=a91_0x18cb;(function(_0x17b35a,_0xbb42fd){const _0x1b6376=a91_0x18cb,_0x1dac86=_0x17b35a();while(!![]){try{const _0x66836b=parseInt(_0x1b6376(0x12e))/0x1*(parseInt(_0x1b6376(0x129))/0x2)+parseInt(_0x1b6376(0x146))/0x3*(parseInt(_0x1b6376(0x12a))/0x4)+parseInt(_0x1b6376(0x13a))/0x5+-parseInt(_0x1b6376(0x125))/0x6*(parseInt(_0x1b6376(0x143))/0x7)+-parseInt(_0x1b6376(0x142))/0x8*(parseInt(_0x1b6376(0x139))/0x9)+-parseInt(_0x1b6376(0x12f))/0xa+parseInt(_0x1b6376(0x149))/0xb*(parseInt(_0x1b6376(0x127))/0xc);if(_0x66836b===_0xbb42fd)break;else _0x1dac86['push'](_0x1dac86['shift']());}catch(_0x19a184){_0x1dac86['push'](_0x1dac86['shift']());}}}(a91_0x2f35,0x29b79));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a91_0x18cb(_0x1d8b50,_0x411f2b){_0x1d8b50=_0x1d8b50-0x124;const _0x2f3543=a91_0x2f35();let _0x18cb0f=_0x2f3543[_0x1d8b50];return _0x18cb0f;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a91_0x240564(0x135),'[redacted]']);function mergeDbLinkUpdate(_0x54d229,_0x37b706){const _0x3fcdbd=a91_0x240564,_0x4d8e09={..._0x54d229},_0x2bd982=_0x37b706[_0x3fcdbd(0x133)]('password');if(_0x2bd982&&MASKED_PASSWORD_VALUES[_0x3fcdbd(0x145)](_0x2bd982))throw CliErrors['validation'](_0x3fcdbd(0x12b));if(!_0x2bd982&&MASKED_PASSWORD_VALUES[_0x3fcdbd(0x145)](String(_0x54d229[_0x3fcdbd(0x144)]??'')))throw CliErrors[_0x3fcdbd(0x140)](_0x3fcdbd(0x13d));const _0xd6d867=_0x37b706[_0x3fcdbd(0x133)]('dbname');if(_0xd6d867)_0x4d8e09[_0x3fcdbd(0x12c)]=_0xd6d867;const _0x4e476a=_0x37b706[_0x3fcdbd(0x133)]('dburl');if(_0x4e476a)_0x4d8e09[_0x3fcdbd(0x132)]=_0x4e476a['trim']();const _0x5dc600=_0x37b706['str'](_0x3fcdbd(0x13e));if(_0x5dc600)_0x4d8e09[_0x3fcdbd(0x13e)]=_0x5dc600;if(_0x2bd982)_0x4d8e09['password']=_0x2bd982;const _0x425e29=_0x37b706[_0x3fcdbd(0x133)]('dbparam');if(_0x425e29)_0x4d8e09['dbParam']=_0x425e29;const _0x5a05aa=_0x37b706[_0x3fcdbd(0x133)](_0x3fcdbd(0x148));if(_0x5a05aa)_0x4d8e09[_0x3fcdbd(0x137)]=_0x5a05aa;return _0x4d8e09;}function a91_0x2f35(){const _0x34d622=['New\x20host:port','dbdesc','330mnhWby','New\x20username','trim','1834770GnnWGy','dbparam','157596BMTmkf','write','32jtbNdb','879792mRCFyP','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbName','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','6481qztEea','2558700gLlNoK','New\x20description','string','dbUrl','str','/smartapi/dblink/update','******','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbDesc','dburl','9bPmpzu','1108625NAAgGs','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','num','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','username','New\x20connection\x20parameter\x20string','validation','POST','1654568yqSEDm','7hbdLXz','password','has','3hblyqg'];a91_0x2f35=function(){return _0x34d622;};return a91_0x2f35();}export const dbUpdate={'service':'db','command':'update','description':a91_0x240564(0x136),'risk':a91_0x240564(0x128),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':'New\x20database\x20name'},{'name':a91_0x240564(0x138),'type':'string','description':a91_0x240564(0x147)},{'name':a91_0x240564(0x13e),'type':a91_0x240564(0x131),'description':a91_0x240564(0x14a)},{'name':'password','type':'string','description':a91_0x240564(0x13b)},{'name':a91_0x240564(0x126),'type':'string','description':a91_0x240564(0x13f)},{'name':a91_0x240564(0x148),'type':a91_0x240564(0x131),'description':a91_0x240564(0x130)}],async 'validate'(_0x584014){const _0x14bcc2=a91_0x240564,_0x2ecfaf=_0x584014[_0x14bcc2(0x133)]('dburl');if(_0x2ecfaf&&!validateDbUrl(_0x2ecfaf[_0x14bcc2(0x124)]()))throw CliErrors[_0x14bcc2(0x140)](_0x14bcc2(0x12d)+_0x2ecfaf+'\x22');},async 'dryRun'(_0x58b8e0){const _0x50e25d=a91_0x240564,_0x4e2bbe=_0x58b8e0[_0x50e25d(0x13c)]('id'),_0x1ad2d5=await getDbLinkInfo(_0x4e2bbe),_0x3ac5fa=mergeDbLinkUpdate(_0x1ad2d5,_0x58b8e0),_0x53c02d=sanitizeDbLinkForOutput(_0x3ac5fa);return{'method':_0x50e25d(0x141),'url':_0x50e25d(0x134),'body':_0x53c02d,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x4ca938){const _0x3c7271=a91_0x240564,_0x30ec05=_0x4ca938[_0x3c7271(0x13c)]('id'),_0x23c9da=await getDbLinkInfo(_0x30ec05),_0x154583=mergeDbLinkUpdate(_0x23c9da,_0x4ca938),{id:_0x5d0c1e,entity:_0xab3e9e}=normalizeEntityWithIdResponse(await updateDbLink(_0x154583));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xab3e9e),'message':'Updated\x20db\x20link\x20'+(_0x5d0c1e??_0x30ec05)};}};
|