@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.d.ts +2 -0
- package/lib/commands/user-account/feishu-bind.js +1 -0
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +2 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -2
- package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x86eb2c,_0x1ddc6){const _0x58960b=a91_0x14a3,_0x3fa8be=_0x86eb2c();while(!![]){try{const _0x4b7eb1=-parseInt(_0x58960b(0xea))/0x1*(parseInt(_0x58960b(0xd6))/0x2)+parseInt(_0x58960b(0xdb))/0x3+-parseInt(_0x58960b(0xda))/0x4*(-parseInt(_0x58960b(0xe6))/0x5)+-parseInt(_0x58960b(0xe1))/0x6*(-parseInt(_0x58960b(0xe0))/0x7)+-parseInt(_0x58960b(0xd9))/0x8+-parseInt(_0x58960b(0xde))/0x9+parseInt(_0x58960b(0xd7))/0xa*(parseInt(_0x58960b(0xdc))/0xb);if(_0x4b7eb1===_0x1ddc6)break;else _0x3fa8be['push'](_0x3fa8be['shift']());}catch(_0x95d762){_0x3fa8be['push'](_0x3fa8be['shift']());}}}(a91_0x3c56,0xdfc4d));function a91_0x14a3(_0xb46e55,_0x500aeb){_0xb46e55=_0xb46e55-0xd6;const _0x3c5688=a91_0x3c56();let _0x14a3d2=_0x3c5688[_0xb46e55];return _0x14a3d2;}import{CliErrors}from'../../errors.js';export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;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(_0xac0345){const _0xe15c10=a91_0x14a3,_0x469f74=new Set(),_0x495407=[];for(const _0x3fc6f4 of _0xac0345[_0xe15c10(0xe3)](',')){const _0x4e42f5=_0x3fc6f4['trim']();if(!_0x4e42f5||_0x469f74[_0xe15c10(0xe4)](_0x4e42f5))continue;_0x469f74[_0xe15c10(0xdf)](_0x4e42f5),_0x495407[_0xe15c10(0xee)](_0x4e42f5);}return _0x495407;}function a91_0x3c56(){const _0x4e60d4=['9889gBOSDO','Table\x20\x22','4326687JLDaer','add','909573iftXou','30Zwqtcy','length','split','has','utf8','5JaHztp','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','\x20bytes,\x20limit\x20','ceil','1EynOoK','\x20bytes.','map','byteLength','push','2847914aBtvOx','3300eomGts','validation','7388920ASVNie','5864676yvUJpP','3997014wXRREI'];a91_0x3c56=function(){return _0x4e60d4;};return a91_0x3c56();}export function measureAnalysisInputParamsBytes(_0x2caa41,_0x4d6fc2){const _0x2115ff=a91_0x14a3;return Buffer[_0x2115ff(0xed)](JSON['stringify']({'dbLinkId':_0x2caa41,'tableNames':_0x4d6fc2}),_0x2115ff(0xe5));}export function buildAnalysisBatchPlan(_0x25b48d,_0x4ad404){const _0x44d8f1=a91_0x14a3;if(_0x4ad404[_0x44d8f1(0xe2)]===0x0)throw CliErrors['validation'](_0x44d8f1(0xe7));const _0x40f93b=[];let _0x1c0b5b=[];for(const _0x188429 of _0x4ad404){const _0x48e1a9=[..._0x1c0b5b,_0x188429],_0x4cc719=_0x48e1a9['length']>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x25b48d,_0x48e1a9)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x4cc719&&_0x1c0b5b[_0x44d8f1(0xe2)]>0x0?(_0x40f93b[_0x44d8f1(0xee)](_0x1c0b5b),_0x1c0b5b=[_0x188429]):_0x1c0b5b=_0x48e1a9;const _0x1a4d99=measureAnalysisInputParamsBytes(_0x25b48d,_0x1c0b5b);if(_0x1a4d99>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors[_0x44d8f1(0xd8)](_0x44d8f1(0xdd)+_0x188429+'\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20'+_0x1a4d99+_0x44d8f1(0xe8)+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x44d8f1(0xeb));}_0x1c0b5b['length']>0x0&&_0x40f93b[_0x44d8f1(0xee)](_0x1c0b5b);const _0x405c3b=_0x40f93b[_0x44d8f1(0xec)]((_0x399669,_0x255f86)=>({'index':_0x255f86+0x1,'tableCount':_0x399669['length'],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x25b48d,_0x399669),'estimatedDurationSeconds':_0x399669['length']*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x399669})),_0x4715ff=_0x4ad404[_0x44d8f1(0xe2)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x25b48d,'tableCount':_0x4ad404[_0x44d8f1(0xe2)],'batchCount':_0x405c3b[_0x44d8f1(0xe2)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'planningEstimate':{'basis':'heuristic','assumedSecondsPerTable':DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'estimatedTotalSeconds':_0x4715ff,'estimatedTotalMinutes':Math[_0x44d8f1(0xe9)](_0x4715ff/0x3c)},'batches':_0x405c3b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x4c7c11=a92_0x4522;(function(_0x12c029,_0x2aabbd){const _0x4128cc=a92_0x4522,_0x587a56=_0x12c029();while(!![]){try{const _0x3c2995=-parseInt(_0x4128cc(0x99))/0x1+parseInt(_0x4128cc(0x9e))/0x2*(parseInt(_0x4128cc(0x97))/0x3)+parseInt(_0x4128cc(0x9a))/0x4+parseInt(_0x4128cc(0xa7))/0x5+-parseInt(_0x4128cc(0xa5))/0x6*(-parseInt(_0x4128cc(0x9b))/0x7)+-parseInt(_0x4128cc(0xa2))/0x8+-parseInt(_0x4128cc(0x9c))/0x9;if(_0x3c2995===_0x2aabbd)break;else _0x587a56['push'](_0x587a56['shift']());}catch(_0x4c5d12){_0x587a56['push'](_0x587a56['shift']());}}}(a92_0x2684,0x2b5df));function a92_0x2684(){const _0x339b14=['\x20table(s)\x20in\x20','\x20minute(s)\x20at\x20','analyze-batch-plan','\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','assumedSecondsPerTable','213VhUCGa','tables','114214zJErEL','38628yByXfx','41426wocxOi','3248334NHWRUn','batchCount','8570AVHYLu','str','read','Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','1533608pzACxg','Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','Prepared\x20local\x20batch\x20plan\x20for\x20','330VnHfmk',';\x20estimated\x20about\x20','1025450IWgsUj','planningEstimate','tableCount'];a92_0x2684=function(){return _0x339b14;};return a92_0x2684();}function a92_0x4522(_0x135bed,_0x444bf5){_0x135bed=_0x135bed-0x90;const _0x2684b3=a92_0x2684();let _0x452234=_0x2684b3[_0x135bed];return _0x452234;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';export const dbAnalyzeBatchPlan={'service':'db','command':a92_0x4c7c11(0x94),'description':a92_0x4c7c11(0xa3),'risk':a92_0x4c7c11(0xa0),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a92_0x4c7c11(0x98),'type':'string','required':!![],'description':a92_0x4c7c11(0xa1)}],async 'execute'(_0x2ce34b){const _0xe6758c=a92_0x4c7c11,_0x130276=_0x2ce34b['num']('id'),_0x962da6=normalizeAnalysisTableNames(_0x2ce34b[_0xe6758c(0x9f)]('tables')),_0x5cff16=buildAnalysisBatchPlan(_0x130276,_0x962da6);return{'ok':!![],'data':_0x5cff16,'message':_0xe6758c(0xa4)+_0x5cff16[_0xe6758c(0x91)]+_0xe6758c(0x92)+_0x5cff16[_0xe6758c(0x9d)]+'\x20serial\x20batch(es)\x20for\x20db\x20link\x20'+_0x130276+_0xe6758c(0xa6)+_0x5cff16[_0xe6758c(0x90)]['estimatedTotalMinutes']+_0xe6758c(0x93)+_0x5cff16[_0xe6758c(0x90)][_0xe6758c(0x96)]+_0xe6758c(0x95)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a93_0x185c(){const _0x5cf623=['num','2760868BKHiuu','1201496AJVqLj','229140YvoNcn','72JitKpH','12904qQmSyA','439234Irwlkg','2YjfpDP','4147402RrjEiY','Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel','analyze-cancel','plan','10182PGbBDy','1095Pqaeck','str','186gqjBek','write','Cancel\x20requested\x20for\x20plan\x20','string'];a93_0x185c=function(){return _0x5cf623;};return a93_0x185c();}const a93_0x31c02b=a93_0xf47a;(function(_0x1ff1d9,_0x34ff88){const _0x133eec=a93_0xf47a,_0x23b375=_0x1ff1d9();while(!![]){try{const _0xd4ea0c=parseInt(_0x133eec(0x1e9))/0x1*(-parseInt(_0x133eec(0x1ea))/0x2)+parseInt(_0x133eec(0x1df))/0x3*(-parseInt(_0x133eec(0x1e8))/0x4)+-parseInt(_0x133eec(0x1dd))/0x5*(-parseInt(_0x133eec(0x1dc))/0x6)+parseInt(_0x133eec(0x1eb))/0x7+parseInt(_0x133eec(0x1e5))/0x8+-parseInt(_0x133eec(0x1e7))/0x9*(-parseInt(_0x133eec(0x1e6))/0xa)+-parseInt(_0x133eec(0x1e4))/0xb;if(_0xd4ea0c===_0x34ff88)break;else _0x23b375['push'](_0x23b375['shift']());}catch(_0x312453){_0x23b375['push'](_0x23b375['shift']());}}}(a93_0x185c,0x63762));import{cancelDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a93_0xf47a(_0x2568fc,_0x3b1c19){_0x2568fc=_0x2568fc-0x1dc;const _0x185ca8=a93_0x185c();let _0xf47ac0=_0x185ca8[_0x2568fc];return _0xf47ac0;}export const dbAnalyzeCancel={'service':'db','command':a93_0x31c02b(0x1ed),'description':'Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id','risk':a93_0x31c02b(0x1e0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a93_0x31c02b(0x1e2),'required':!![],'description':a93_0x31c02b(0x1ec)}],async 'execute'(_0x51166d){const _0x25f6bd=a93_0x31c02b,_0x4950b0=_0x51166d[_0x25f6bd(0x1e3)]('id'),_0x378983=_0x51166d[_0x25f6bd(0x1de)](_0x25f6bd(0x1ee));return await cancelDbAnalysis(_0x378983),{'ok':!![],'data':{'dbLinkId':_0x4950b0,'planId':_0x378983},'message':_0x25f6bd(0x1e1)+_0x378983};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a94_0x3e0c(_0x4abfff,_0x300574){_0x4abfff=_0x4abfff-0x138;const _0x154a76=a94_0x154a();let _0x3e0c6c=_0x154a76[_0x4abfff];return _0x3e0c6c;}const a94_0x37b9ff=a94_0x3e0c;(function(_0x405cb2,_0x45de53){const _0x97277d=a94_0x3e0c,_0x474813=_0x405cb2();while(!![]){try{const _0x4f603c=parseInt(_0x97277d(0x151))/0x1*(-parseInt(_0x97277d(0x14b))/0x2)+parseInt(_0x97277d(0x142))/0x3+parseInt(_0x97277d(0x13f))/0x4*(parseInt(_0x97277d(0x154))/0x5)+-parseInt(_0x97277d(0x150))/0x6*(parseInt(_0x97277d(0x143))/0x7)+parseInt(_0x97277d(0x138))/0x8+-parseInt(_0x97277d(0x141))/0x9*(-parseInt(_0x97277d(0x14d))/0xa)+-parseInt(_0x97277d(0x146))/0xb*(parseInt(_0x97277d(0x14a))/0xc);if(_0x4f603c===_0x45de53)break;else _0x474813['push'](_0x474813['shift']());}catch(_0x345480){_0x474813['push'](_0x474813['shift']());}}}(a94_0x154a,0xeaed4));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';import{CliErrors}from'../../errors.js';function a94_0x154a(){const _0x2deddd=['analyze-start','num','tables','538596HHtwYH','467588PnIgVx','\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.','10GHSRAV','str','flag','1290222hzMfbs','3MVrDEn','\x20db\x20analyze-batch-plan\x20--id\x20','\x20table(s),\x20','14005IQyNot','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','1433152HPxMbx','validation','appCode','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','write','Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20','\x20bytes,\x20limit\x20','2404wlUlog','string','2611206ooGvmr','1977495mhZepG','14KeBPmk','length','Started\x20analysis\x20for\x20db\x20link\x20','176KzmyUE'];a94_0x154a=function(){return _0x2deddd;};return a94_0x154a();}export const dbAnalyzeStart={'service':'db','command':a94_0x37b9ff(0x147),'description':a94_0x37b9ff(0x155),'risk':a94_0x37b9ff(0x13c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':a94_0x37b9ff(0x140),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x1df08e){const _0x507793=a94_0x37b9ff,_0x9dc72b=_0x1df08e[_0x507793(0x148)]('id'),_0x55154c=_0x1df08e[_0x507793(0x14e)](_0x507793(0x149)),_0x1abe9d=_0x1df08e[_0x507793(0x14f)](_0x507793(0x149))!==undefined,_0x5a8382=_0x1abe9d?normalizeAnalysisTableNames(_0x55154c):undefined;if(_0x5a8382&&_0x5a8382[_0x507793(0x144)]===0x0)throw CliErrors[_0x507793(0x139)](_0x507793(0x13b));if(_0x5a8382&&_0x5a8382[_0x507793(0x144)]>0x0){const _0x1f1693=measureAnalysisInputParamsBytes(_0x9dc72b,_0x5a8382);if(_0x1f1693>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors['validation'](_0x507793(0x13d)+_0x5a8382[_0x507793(0x144)]+_0x507793(0x153)+_0x1f1693+_0x507793(0x13e)+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+'\x20bytes.\x20Run\x20`'+CLI_BIN_NAME+_0x507793(0x152)+_0x9dc72b+_0x507793(0x14c));}const {planId:_0x4c755e,estimatedMinutes:_0x1ab279,estimatedDurationDesc:_0x358457}=await startDbAnalysis(_0x9dc72b,_0x5a8382),_0x23ef2d=buildDbPageLinks(_0x1df08e[_0x507793(0x13a)],_0x9dc72b);return{'ok':!![],'data':{'dbLinkId':_0x9dc72b,'planId':_0x4c755e,'tableNames':_0x5a8382??[],'serverEstimate':{'estimatedMinutes':_0x1ab279,'estimatedDurationDesc':_0x358457},..._0x23ef2d?{'links':_0x23ef2d}:{}},'message':_0x507793(0x145)+_0x9dc72b};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x3a8474=a95_0x4038;function a95_0x4038(_0x4b27d9,_0x564de2){_0x4b27d9=_0x4b27d9-0x193;const _0x4bd735=a95_0x4bd7();let _0x4038da=_0x4bd735[_0x4b27d9];return _0x4038da;}(function(_0x37b18d,_0x588f1e){const _0x3891b2=a95_0x4038,_0x1ed312=_0x37b18d();while(!![]){try{const _0x2faf37=parseInt(_0x3891b2(0x1bb))/0x1*(parseInt(_0x3891b2(0x1a6))/0x2)+-parseInt(_0x3891b2(0x1c4))/0x3+-parseInt(_0x3891b2(0x196))/0x4*(parseInt(_0x3891b2(0x1a9))/0x5)+parseInt(_0x3891b2(0x194))/0x6*(-parseInt(_0x3891b2(0x1a2))/0x7)+parseInt(_0x3891b2(0x1b0))/0x8+-parseInt(_0x3891b2(0x1be))/0x9+parseInt(_0x3891b2(0x198))/0xa;if(_0x2faf37===_0x588f1e)break;else _0x1ed312['push'](_0x1ed312['shift']());}catch(_0x44d014){_0x1ed312['push'](_0x1ed312['shift']());}}}(a95_0x4bd7,0x66b10));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(['SUCCESS',a95_0x3a8474(0x1ad),a95_0x3a8474(0x1aa),a95_0x3a8474(0x1b8)]);export const dbAnalyzeStatus={'service':'db','command':a95_0x3a8474(0x1b9),'description':a95_0x3a8474(0x1b6),'risk':a95_0x3a8474(0x1c5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a95_0x3a8474(0x1a3),'required':!![],'description':a95_0x3a8474(0x1a5)}],async 'execute'(_0x54afe2){const _0x1cd84d=a95_0x3a8474,_0x1a0459=_0x54afe2[_0x1cd84d(0x1b7)]('id'),_0xf07eea=_0x54afe2['str'](_0x1cd84d(0x19b)),_0x3e47d0=await getDbAnalysisStatus(_0xf07eea),_0x22ee7d=TERMINAL_STATUSES[_0x1cd84d(0x1b2)](_0x3e47d0[_0x1cd84d(0x1a8)]??''),{parsedJobContext:_0xcf990b,jobContextParseWarning:_0x2b3c7d}=parseJobContext(_0x3e47d0[_0x1cd84d(0x1a1)]),{requestedAnalysis:_0x19a7b8,requestedAnalysisParseWarning:_0x170079}=parseRequestedAnalysis(_0x3e47d0['inputParams']),_0x122150=readAccumulatedErrorTypeCounts(_0xcf990b),_0x5264f9=calculateAttemptElapsedMs(_0x3e47d0,_0x22ee7d),_0xf1b0cd=calculateElapsedFromStart(_0x3e47d0[_0x1cd84d(0x1c2)],_0x3e47d0[_0x1cd84d(0x1bd)],_0x22ee7d),_0x205534=detectMultipleAttempts(_0x3e47d0),_0x367d60=buildDbPageLinks(_0x54afe2[_0x1cd84d(0x1c1)],_0x1a0459);return{'ok':!![],'data':{'dbLinkId':_0x1a0459,'planId':_0xf07eea,'status':_0x3e47d0,'requestedAnalysis':_0x19a7b8,'requestedAnalysisParseWarning':_0x170079,'parsedJobContext':_0xcf990b,'accumulatedErrorTypeCounts':_0x122150,'accumulatedErrorTypeCountsAdvisory':_0x122150?'Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.':_0x1cd84d(0x195),'isTerminal':_0x22ee7d,'isRetrying':_0x3e47d0[_0x1cd84d(0x1a8)]===_0x1cd84d(0x1ab),'attemptElapsedMs':_0x5264f9,'totalElapsedMs':_0xf1b0cd,'hasMultipleAttempts':_0x205534,'jobContextParseWarning':_0x2b3c7d,..._0x367d60?{'links':_0x367d60}:{}},'message':_0x1cd84d(0x1a7)+_0xf07eea};}};function parseRequestedAnalysis(_0xe6b186){const _0x9b9fc7=a95_0x3a8474,_0x31791c={'mode':_0x9b9fc7(0x19a),'tableCount':null,'tableNames':null};if(!_0xe6b186?.[_0x9b9fc7(0x1ac)]())return{'requestedAnalysis':_0x31791c,'requestedAnalysisParseWarning':_0x9b9fc7(0x1c3)};try{const _0x56f9d0=JSON['parse'](_0xe6b186);if(!_0x56f9d0||typeof _0x56f9d0!==_0x9b9fc7(0x1ba)||Array[_0x9b9fc7(0x197)](_0x56f9d0))throw new Error(_0x9b9fc7(0x1ae));const _0x48e960=_0x56f9d0[_0x9b9fc7(0x1a4)];if(_0x48e960===undefined||_0x48e960===null)return{'requestedAnalysis':{'mode':_0x9b9fc7(0x1bf),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array['isArray'](_0x48e960)&&_0x48e960[_0x9b9fc7(0x199)](_0x8c4070=>typeof _0x8c4070==='string'))return{'requestedAnalysis':{'mode':_0x48e960[_0x9b9fc7(0x1a0)]>0x0?_0x9b9fc7(0x19f):_0x9b9fc7(0x1bf),'tableCount':_0x48e960[_0x9b9fc7(0x1a0)],'tableNames':_0x48e960},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x31791c,'requestedAnalysisParseWarning':_0x9b9fc7(0x19e)};}function readAccumulatedErrorTypeCounts(_0x5afdc5){const _0x29c499=a95_0x3a8474,_0x57bbb9=_0x5afdc5?.[_0x29c499(0x1bc)];if(!_0x57bbb9||typeof _0x57bbb9!==_0x29c499(0x1ba)||Array[_0x29c499(0x197)](_0x57bbb9))return null;if(Object[_0x29c499(0x1b3)](_0x57bbb9)[_0x29c499(0x1a0)]===0x0)return null;return _0x57bbb9;}function parseJobContext(_0x4e2f1c){const _0x53e83b=a95_0x3a8474;if(!_0x4e2f1c?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x227b83=JSON[_0x53e83b(0x1b5)](_0x4e2f1c);if(_0x227b83&&typeof _0x227b83===_0x53e83b(0x1ba)&&!Array[_0x53e83b(0x197)](_0x227b83))return{'parsedJobContext':_0x227b83,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x53e83b(0x1af)};}function calculateAttemptElapsedMs(_0x337707,_0x506b08){const _0x1db8d9=a95_0x3a8474;if(typeof _0x337707[_0x1db8d9(0x1b4)]===_0x1db8d9(0x1b1)&&Number[_0x1db8d9(0x1c0)](_0x337707[_0x1db8d9(0x1b4)])&&_0x337707[_0x1db8d9(0x1b4)]>=0x0)return _0x337707['costTimeMs'];return calculateElapsedFromStart(_0x337707[_0x1db8d9(0x19d)],_0x337707['endTime'],_0x506b08);}function a95_0x4bd7(){const _0x339007=['keys','costTimeMs','parse','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','num','CANCELLED','analyze-status','object','592426kxjYUv','accumulatedErrorTypeCounts','endTime','4145823KDYhFw','FULL','isFinite','appCode','firstStartTime','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','1134798slcfrt','read','now','12HfDRsN','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','92Lojcxj','isArray','6590870KNjTes','every','UNKNOWN','plan','isNaN','startTime','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','TARGETED','length','jobContext','1920716gpmqgx','string','tableNames','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','2dijZRD','Analysis\x20status\x20for\x20','status','38395aHahLg','FAILED','RETRYING','trim','PARTIAL_SUCCESS','inputParams\x20is\x20not\x20an\x20object','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','5867336TcEShd','number','has'];a95_0x4bd7=function(){return _0x339007;};return a95_0x4bd7();}function calculateElapsedFromStart(_0x5afab7,_0x45116e,_0x2660b6){const _0x5f302f=a95_0x3a8474,_0x5b549e=toTimestamp(_0x5afab7);if(_0x5b549e===null)return null;const _0x1311ac=toTimestamp(_0x45116e),_0x6bfc5a=_0x1311ac??(_0x2660b6?null:Date[_0x5f302f(0x193)]());if(_0x6bfc5a===null||_0x6bfc5a<_0x5b549e)return null;return _0x6bfc5a-_0x5b549e;}function detectMultipleAttempts(_0x38bb4f){const _0x473a46=a95_0x3a8474,_0x1c2a90=toTimestamp(_0x38bb4f[_0x473a46(0x1c2)]),_0xe4cb4b=toTimestamp(_0x38bb4f[_0x473a46(0x19d)]);return _0x1c2a90!==null&&_0xe4cb4b!==null&&_0x1c2a90!==_0xe4cb4b;}function toTimestamp(_0x59ae10){const _0x2aa3dd=a95_0x3a8474;if(typeof _0x59ae10===_0x2aa3dd(0x1b1))return Number[_0x2aa3dd(0x1c0)](_0x59ae10)?_0x59ae10:null;if(typeof _0x59ae10!==_0x2aa3dd(0x1a3)||_0x59ae10[_0x2aa3dd(0x1ac)]()==='')return null;const _0x53e68c=Number(_0x59ae10);if(Number[_0x2aa3dd(0x1c0)](_0x53e68c))return _0x53e68c;const _0x539d2b=Date[_0x2aa3dd(0x1b5)](_0x59ae10);return Number[_0x2aa3dd(0x19c)](_0x539d2b)?null:_0x539d2b;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x44e5c6=a96_0x21a4;(function(_0x45193f,_0x390e0a){const _0x25a89a=a96_0x21a4,_0x492738=_0x45193f();while(!![]){try{const _0x41336f=parseInt(_0x25a89a(0x1bf))/0x1+parseInt(_0x25a89a(0x1b7))/0x2*(parseInt(_0x25a89a(0x1c5))/0x3)+-parseInt(_0x25a89a(0x1ba))/0x4*(-parseInt(_0x25a89a(0x1d9))/0x5)+parseInt(_0x25a89a(0x1d4))/0x6+-parseInt(_0x25a89a(0x1d3))/0x7+-parseInt(_0x25a89a(0x1d7))/0x8*(parseInt(_0x25a89a(0x1da))/0x9)+-parseInt(_0x25a89a(0x1b6))/0xa;if(_0x41336f===_0x390e0a)break;else _0x492738['push'](_0x492738['shift']());}catch(_0x5d1aef){_0x492738['push'](_0x492738['shift']());}}}(a96_0x51b5,0x862ec));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a96_0x21a4(_0x20b41f,_0xed5936){_0x20b41f=_0x20b41f-0x1b3;const _0x51b559=a96_0x51b5();let _0x21a4de=_0x51b559[_0x20b41f];return _0x21a4de;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a96_0x51b5(){const _0x28254f=['8.0','dbname',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','bool','6772560khCyVb','601236eHoOyO','appCode','message','1866572Seubjz','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','dbversion','No\x20follow-up\x20analysis','Extra\x20JDBC-style\x20connection\x20parameters\x20string','697540gzfroZ','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','password','write','dbtype','create','6IDIxWs','dbdesc','\x20and\x20started\x20analysis','dbparam','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dburl','str','join','autostart','Created\x20db\x20link\x20','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','POST','validation','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','2300410rmeLPL','4765536wPhTlu','string','skip-connection-test','8033416cdfDrp','trim','5cKgeog','9wVwJXJ','username','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','Human-readable\x20description','After\x20create,\x20start\x20schema\x20analysis','Host\x20and\x20port:\x20host:port'];a96_0x51b5=function(){return _0x28254f;};return a96_0x51b5();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a96_0x44e5c6(0x1c4),'description':a96_0x44e5c6(0x1dc),'risk':a96_0x44e5c6(0x1c2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a96_0x44e5c6(0x1b3),'type':'string','required':!![],'description':a96_0x44e5c6(0x1cf)},DB_TYPE_FLAG,{'name':a96_0x44e5c6(0x1bc),'type':a96_0x44e5c6(0x1d5),'description':a96_0x44e5c6(0x1c0),'default':a96_0x44e5c6(0x1e0)},{'name':a96_0x44e5c6(0x1ca),'type':'string','required':!![],'description':a96_0x44e5c6(0x1df)},{'name':'username','type':a96_0x44e5c6(0x1d5),'required':!![],'description':'Database\x20username'},{'name':a96_0x44e5c6(0x1c1),'type':a96_0x44e5c6(0x1d5),'required':!![],'description':'Database\x20password'},{'name':'dbparam','type':a96_0x44e5c6(0x1d5),'description':a96_0x44e5c6(0x1be)},{'name':a96_0x44e5c6(0x1c6),'type':a96_0x44e5c6(0x1d5),'description':a96_0x44e5c6(0x1dd)},{'name':a96_0x44e5c6(0x1cd),'type':'boolean','description':a96_0x44e5c6(0x1de),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x5144bd){const _0x3f5cd8=a96_0x44e5c6,_0x23ad1d=_0x5144bd[_0x3f5cd8(0x1cb)](_0x3f5cd8(0x1ca))['trim']();if(!validateDbUrl(_0x23ad1d))throw CliErrors[_0x3f5cd8(0x1d1)](_0x3f5cd8(0x1d2)+_0x23ad1d+'\x22',_0x3f5cd8(0x1bb));},async 'dryRun'(_0x9a7528){const _0x16f61e=a96_0x44e5c6,_0x3fa043={'appCode':_0x9a7528[_0x16f61e(0x1b8)],'dbName':_0x9a7528[_0x16f61e(0x1cb)](_0x16f61e(0x1b3)),'dbType':_0x9a7528[_0x16f61e(0x1cb)](_0x16f61e(0x1c3)),'dbVersion':_0x9a7528[_0x16f61e(0x1cb)]('dbversion')||_0x16f61e(0x1e0),'dbUrl':_0x9a7528[_0x16f61e(0x1cb)](_0x16f61e(0x1ca))[_0x16f61e(0x1d8)](),'username':_0x9a7528['str'](_0x16f61e(0x1db)),'password':'[redacted]',..._0x9a7528[_0x16f61e(0x1cb)](_0x16f61e(0x1c8))?{'dbParam':_0x9a7528['str'](_0x16f61e(0x1c8))}:{},..._0x9a7528[_0x16f61e(0x1cb)]('dbdesc')?{'dbDesc':_0x9a7528[_0x16f61e(0x1cb)]('dbdesc')}:{}};return{'method':_0x16f61e(0x1d0),'url':'/smartapi/dblink/create','body':_0x3fa043,'description':['Create\x20dblink',_0x9a7528[_0x16f61e(0x1b5)](_0x16f61e(0x1cd))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x16f61e(0x1bd)][_0x16f61e(0x1cc)]('\x0a'),'connectionPreflight':{'enabled':!_0x9a7528[_0x16f61e(0x1b5)](_0x16f61e(0x1d6)),'executed':![]}};},async 'execute'(_0x5bcec6){const _0xd804bc=a96_0x44e5c6,_0x30a724={'appCode':_0x5bcec6[_0xd804bc(0x1b8)],'dbName':_0x5bcec6[_0xd804bc(0x1cb)](_0xd804bc(0x1b3)),'dbType':_0x5bcec6[_0xd804bc(0x1cb)](_0xd804bc(0x1c3)),'dbVersion':_0x5bcec6[_0xd804bc(0x1cb)]('dbversion')||'8.0','dbUrl':_0x5bcec6[_0xd804bc(0x1cb)](_0xd804bc(0x1ca))[_0xd804bc(0x1d8)](),'username':_0x5bcec6[_0xd804bc(0x1cb)]('username'),'password':_0x5bcec6[_0xd804bc(0x1cb)](_0xd804bc(0x1c1)),..._0x5bcec6[_0xd804bc(0x1cb)]('dbparam')?{'dbParam':_0x5bcec6[_0xd804bc(0x1cb)](_0xd804bc(0x1c8))}:{},..._0x5bcec6[_0xd804bc(0x1cb)](_0xd804bc(0x1c6))?{'dbDesc':_0x5bcec6[_0xd804bc(0x1cb)]('dbdesc')}:{}};!_0x5bcec6[_0xd804bc(0x1b5)](_0xd804bc(0x1d6))&&await assertDbLinkConnectionPreflight(_0x30a724);const {id:_0x4aa806,entity:_0x9ab394}=normalizeEntityWithIdResponse(await createDbLink(_0x30a724));if(!_0x4aa806)return{'ok':![],'message':_0xd804bc(0x1c9),'data':sanitizeDbLinkForOutput(_0x9ab394)};let _0x524bb9,_0x1ec0fe;if(_0x5bcec6[_0xd804bc(0x1b5)](_0xd804bc(0x1cd)))try{_0x524bb9=(await startDbAnalysis(_0x4aa806))['planId'];}catch(_0x4102b9){_0x1ec0fe=_0x4102b9 instanceof Error?_0x4102b9[_0xd804bc(0x1b9)]:String(_0x4102b9);}const _0x5dc756=buildDbPageLinks(_0x5bcec6[_0xd804bc(0x1b8)],_0x4aa806),_0x286168={'connection':sanitizeDbLinkForOutput(_0x9ab394),..._0x5dc756?{'links':{'databasePage':_0x5dc756['databasePage']}}:{},..._0x524bb9?{'analysisPlanId':_0x524bb9}:{},..._0x1ec0fe?{'analysisStartWarning':_0x1ec0fe}:{}};let _0x473fa8;return _0x5bcec6['bool']('autostart')?_0x1ec0fe?_0x473fa8=_0xd804bc(0x1ce)+_0x4aa806+_0xd804bc(0x1b4):_0x473fa8='Created\x20db\x20link\x20'+_0x4aa806+_0xd804bc(0x1c7):_0x473fa8=_0xd804bc(0x1ce)+_0x4aa806,{'ok':!![],'data':_0x286168,'message':_0x473fa8};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a97_0x23e2(_0x25485b,_0x5c7ef3){_0x25485b=_0x25485b-0xb7;const _0x7a39eb=a97_0x7a39();let _0x23e2e7=_0x7a39eb[_0x25485b];return _0x23e2e7;}const a97_0x2f9fbd=a97_0x23e2;(function(_0x387772,_0x18535e){const _0x243f75=a97_0x23e2,_0x4395c2=_0x387772();while(!![]){try{const _0x4376ac=parseInt(_0x243f75(0xbd))/0x1*(-parseInt(_0x243f75(0xce))/0x2)+parseInt(_0x243f75(0xc0))/0x3*(-parseInt(_0x243f75(0xbc))/0x4)+-parseInt(_0x243f75(0xcb))/0x5*(parseInt(_0x243f75(0xe2))/0x6)+-parseInt(_0x243f75(0xe0))/0x7*(parseInt(_0x243f75(0xc6))/0x8)+-parseInt(_0x243f75(0xd4))/0x9*(-parseInt(_0x243f75(0xc4))/0xa)+-parseInt(_0x243f75(0xcf))/0xb+-parseInt(_0x243f75(0xc2))/0xc*(-parseInt(_0x243f75(0xd9))/0xd);if(_0x4376ac===_0x18535e)break;else _0x4395c2['push'](_0x4395c2['shift']());}catch(_0x3db6e6){_0x4395c2['push'](_0x4395c2['shift']());}}}(a97_0x7a39,0x48fcf));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a97_0x7a39(){const _0x426a53=['DB_TABLE','\x20active\x20Dataset(s),\x20but\x20found\x20','5nWqjFd','isInteger','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','8pksVnq','263065MLYVHr','appCode','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','datasetDependency','Deleted\x20db\x20link\x20','2896362QAsDqw','boolean','\x20active\x20DB_TABLE\x20Dataset(s).','expected-dataset-count','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','23510149neumzS','Deletion\x20is\x20blocked\x20by\x20','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','/smartapi/dblink/delete','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','7TapYTO','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','2476026bqeLej','delete','datasets','number','num','flag','796ZkYlcb','91322rblPoZ','validation','confirm','8817rtCXeF','\x20still\x20has\x20','12XmqykH','Database\x20connection\x20','10zViyGG','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','3556776bBhPBR','POST','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.'];a97_0x7a39=function(){return _0x426a53;};return a97_0x7a39();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':'confirm','type':a97_0x2f9fbd(0xd5),'description':a97_0x2f9fbd(0xd8)},EXPECTED_DATASET_COUNT_FLAG={'name':a97_0x2f9fbd(0xd7),'type':a97_0x2f9fbd(0xb9),'description':a97_0x2f9fbd(0xd1)};export const dbDelete={'service':'db','command':a97_0x2f9fbd(0xb7),'description':a97_0x2f9fbd(0xc5),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x57e2eb){const _0x2eed46=a97_0x2f9fbd,_0x37946e=await loadDeleteImpact(_0x57e2eb);return assertExpectedDatasetCount(_0x57e2eb,_0x37946e[_0x2eed46(0xd2)]['activeDatasetCount']),{'method':_0x2eed46(0xc7),'url':_0x2eed46(0xdc),'body':{'id':_0x37946e['id']},'description':_0x37946e['datasetDependency']['activeDatasetCount']>0x0?_0x2eed46(0xda)+_0x37946e[_0x2eed46(0xd2)]['activeDatasetCount']+_0x2eed46(0xd6):_0x2eed46(0xe1),..._0x37946e};},async 'execute'(_0x108e89){const _0x52472d=a97_0x2f9fbd;if(!_0x108e89['bool'](_0x52472d(0xbf)))throw CliErrors[_0x52472d(0xbe)](_0x52472d(0xdd),_0x52472d(0xdf));const _0x47b84d=_0x108e89[_0x52472d(0xba)]('id'),_0x387e69=await loadDeleteImpact(_0x108e89),_0x585e3d=_0x387e69[_0x52472d(0xd2)]['activeDatasetCount'];assertExpectedDatasetCount(_0x108e89,_0x585e3d);if(_0x585e3d>0x0)throw CliErrors[_0x52472d(0xbe)](_0x52472d(0xc3)+_0x47b84d+_0x52472d(0xc1)+_0x585e3d+_0x52472d(0xdb),_0x52472d(0xde));return await deleteDbLink(_0x47b84d),{'ok':!![],'data':{'id':_0x47b84d,'deleted':!![],'activeDatasetCount':_0x585e3d},'message':_0x52472d(0xd3)+_0x47b84d};}};async function loadDeleteImpact(_0x1a8c60){const _0x590df6=a97_0x2f9fbd,_0x1958a6=_0x1a8c60[_0x590df6(0xba)]('id'),[_0x4ee984,_0x12bdc9]=await Promise['all']([getDbLinkInfo(_0x1958a6),listDatasets(_0x1a8c60[_0x590df6(0xd0)],{'source':_0x590df6(0xc9)})]),_0xd570ae=buildDbDatasetDependency(_0x4ee984,_0x12bdc9);return{'id':_0x1958a6,'connection':sanitizeDbLinkForOutput(_0x4ee984),'datasetDependency':_0xd570ae[_0x590df6(0xd2)],'activeDatasetCount':_0xd570ae[_0x590df6(0xd2)]['activeDatasetCount'],'datasets':_0xd570ae[_0x590df6(0xb8)]};}function assertExpectedDatasetCount(_0x3b57d7,_0x31871b){const _0xb5329f=a97_0x2f9fbd,_0x53b9b4=_0x3b57d7[_0xb5329f(0xbb)](_0xb5329f(0xd7));if(_0x53b9b4===undefined||_0x53b9b4==='')return;const _0x1d6ba8=_0x3b57d7[_0xb5329f(0xba)](_0xb5329f(0xd7));if(!Number[_0xb5329f(0xcc)](_0x1d6ba8)||_0x1d6ba8<0x0)throw CliErrors[_0xb5329f(0xbe)](_0xb5329f(0xcd));if(_0x1d6ba8!==_0x31871b)throw CliErrors[_0xb5329f(0xbe)]('Expected\x20'+_0x1d6ba8+_0xb5329f(0xca)+_0x31871b+'.',_0xb5329f(0xc8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x4bdbf9=a98_0x4e14;(function(_0x52c2af,_0x318448){const _0x45a861=a98_0x4e14,_0x1b68db=_0x52c2af();while(!![]){try{const _0x486210=parseInt(_0x45a861(0x15d))/0x1*(-parseInt(_0x45a861(0x153))/0x2)+-parseInt(_0x45a861(0x158))/0x3*(-parseInt(_0x45a861(0x157))/0x4)+parseInt(_0x45a861(0x156))/0x5+parseInt(_0x45a861(0x162))/0x6+parseInt(_0x45a861(0x160))/0x7+-parseInt(_0x45a861(0x155))/0x8*(parseInt(_0x45a861(0x15a))/0x9)+-parseInt(_0x45a861(0x152))/0xa*(parseInt(_0x45a861(0x15f))/0xb);if(_0x486210===_0x318448)break;else _0x1b68db['push'](_0x1b68db['shift']());}catch(_0x4e09e7){_0x1b68db['push'](_0x1b68db['shift']());}}}(a98_0x4d10,0xd1f90));function a98_0x4e14(_0x5b1918,_0x52329b){_0x5b1918=_0x5b1918-0x152;const _0x4d10dd=a98_0x4d10();let _0x4e145c=_0x4d10dd[_0x5b1918];return _0x4e145c;}import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a98_0x4bdbf9(0x15b),'risk':a98_0x4bdbf9(0x15e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x22e944){const _0x556fbf=a98_0x4bdbf9,_0x4f87ea=_0x22e944[_0x556fbf(0x161)]('id'),_0x1a719c=await getDbLinkInfo(_0x4f87ea),_0x2bf409=await listDatasets(_0x1a719c[_0x556fbf(0x154)]||_0x22e944[_0x556fbf(0x154)],{'source':_0x556fbf(0x159)}),_0x165106=buildDbDatasetDependency(_0x1a719c,_0x2bf409);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x1a719c),'datasetDependency':_0x165106[_0x556fbf(0x163)]},'message':_0x556fbf(0x15c)+_0x4f87ea+':\x20'+_0x1a719c['dbName']};}};function a98_0x4d10(){const _0x59ea0e=['datasetDependency','6635660rVFcfv','86DPzvAS','appCode','178976llaxqW','30225catQeb','16TbbGjA','656028cjbiFw','DB_TABLE','333SSfKRf','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','db\x20link\x20','26366zwCAdH','read','11eXTWdm','8830780tcJKon','num','8056962ncxQEx'];a98_0x4d10=function(){return _0x59ea0e;};return a98_0x4d10();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x206f27,_0x240585){const _0x4ecea7=a99_0x3b17,_0xad8b65=_0x206f27();while(!![]){try{const _0x2edca5=parseInt(_0x4ecea7(0x133))/0x1+-parseInt(_0x4ecea7(0x128))/0x2*(-parseInt(_0x4ecea7(0x129))/0x3)+parseInt(_0x4ecea7(0x12f))/0x4+-parseInt(_0x4ecea7(0x12d))/0x5*(parseInt(_0x4ecea7(0x127))/0x6)+-parseInt(_0x4ecea7(0x12a))/0x7*(parseInt(_0x4ecea7(0x132))/0x8)+parseInt(_0x4ecea7(0x12b))/0x9+-parseInt(_0x4ecea7(0x135))/0xa;if(_0x2edca5===_0x240585)break;else _0xad8b65['push'](_0xad8b65['shift']());}catch(_0x2cab0d){_0xad8b65['push'](_0xad8b65['shift']());}}}(a99_0x41ea,0x7bbdb));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a99_0x3b17(_0x1d400a,_0x18d16a){_0x1d400a=_0x1d400a-0x125;const _0x41ea55=a99_0x41ea();let _0x3b172d=_0x41ea55[_0x1d400a];return _0x3b172d;}import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':'diff-refresh-start','description':'Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','risk':'write','flags':[DBLINK_ID_FLAG],async 'execute'(_0x4a6afe){const _0x5c86e4=a99_0x3b17,_0xd6856f=_0x4a6afe[_0x5c86e4(0x136)]('id'),_0x181dbe=await startDbTableDiffRefresh(_0x4a6afe[_0x5c86e4(0x12c)],_0xd6856f),_0x7a4efa=_0x181dbe[_0x5c86e4(0x126)]?.[_0x5c86e4(0x130)]();if(!_0x7a4efa)throw CliErrors[_0x5c86e4(0x125)](_0x5c86e4(0x131));return{'ok':!![],'data':{'dbLinkId':_0xd6856f,'traceId':_0x7a4efa,'status':_0x181dbe[_0x5c86e4(0x134)]??null,'query':{'command':CLI_BIN_NAME+_0x5c86e4(0x12e)+_0xd6856f+'\x20--plan\x20'+_0x7a4efa+'\x20--format\x20compress'}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0xd6856f};}};function a99_0x41ea(){const _0x5b4592=['\x20db\x20diff-refresh-status\x20--id\x20','2627748RirtRa','trim','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','256784FSKlGF','807651xbINGP','status','10011520Tizyeu','num','validation','traceId','2550pypfVE','4GOaBts','837606ALCHYe','42RbqnOt','1661544UzyEEX','appCode','5965soBwdw'];a99_0x41ea=function(){return _0x5b4592;};return a99_0x41ea();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x23cc50=a100_0x4b92;function a100_0x4b92(_0x3c3aa4,_0x3c8858){_0x3c3aa4=_0x3c3aa4-0x1ec;const _0x321208=a100_0x3212();let _0x4b9275=_0x321208[_0x3c3aa4];return _0x4b9275;}(function(_0x40da5f,_0x4aa144){const _0x232489=a100_0x4b92,_0x3fc71f=_0x40da5f();while(!![]){try{const _0x2bcbb3=-parseInt(_0x232489(0x203))/0x1+parseInt(_0x232489(0x1ff))/0x2*(parseInt(_0x232489(0x204))/0x3)+-parseInt(_0x232489(0x1ed))/0x4+parseInt(_0x232489(0x202))/0x5+parseInt(_0x232489(0x1f7))/0x6+parseInt(_0x232489(0x1fd))/0x7+-parseInt(_0x232489(0x1fe))/0x8*(parseInt(_0x232489(0x1f8))/0x9);if(_0x2bcbb3===_0x4aa144)break;else _0x3fc71f['push'](_0x3fc71f['shift']());}catch(_0x44386b){_0x3fc71f['push'](_0x3fc71f['shift']());}}}(a100_0x3212,0xa345c));import{getDbAnalysisStatus}from'../../core/api-client.js';function a100_0x3212(){const _0x27cd6c=['\x20db\x20diff-refresh-status\x20--id\x20','\x20--format\x20compress','6384035dgzzWD','1206057DwKGqM','3tZaGqB','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','UNKNOWN','Table-diff\x20refresh\x20status\x20for\x20','4785788fmbCji','plan','num','RETRYING','RUNNING','SUCCESS','str','read','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','\x20--plan\x20','6069642hitQDM','688914Mdvbep','has','PENDING','diff-refresh-status','status','1419418lHBRiU','8SwAucU','1313252yqzDCU'];a100_0x3212=function(){return _0x27cd6c;};return a100_0x3212();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a100_0x23cc50(0x1f2),'FAILED','CANCELLED']),RUNNING_STATUSES=new Set([a100_0x23cc50(0x1fa),a100_0x23cc50(0x1f1),a100_0x23cc50(0x1f0)]);export const dbDiffRefreshStatus={'service':'db','command':a100_0x23cc50(0x1fb),'description':a100_0x23cc50(0x1f5),'risk':a100_0x23cc50(0x1f4),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a100_0x23cc50(0x1ee),'type':'string','required':!![],'description':a100_0x23cc50(0x205)}],async 'execute'(_0x4a3546){const _0x47c5ce=a100_0x23cc50,_0x3afd1a=_0x4a3546[_0x47c5ce(0x1ef)]('id'),_0x4bc915=_0x4a3546[_0x47c5ce(0x1f3)](_0x47c5ce(0x1ee)),_0x5ee90f=await getDbAnalysisStatus(_0x4bc915),_0x730e5e=_0x5ee90f[_0x47c5ce(0x1fc)]??null,_0x58b2f9=TERMINAL_STATUSES[_0x47c5ce(0x1f9)](_0x730e5e??''),_0xab87fc=_0x730e5e===_0x47c5ce(0x1f2),_0x567d48=_0x58b2f9||RUNNING_STATUSES[_0x47c5ce(0x1f9)](_0x730e5e??'');return{'ok':!![],'data':{'dbLinkId':_0x3afd1a,'planId':_0x4bc915,'status':_0x5ee90f,'knownStatus':_0x567d48,'isTerminal':_0x58b2f9,'isSuccessful':_0xab87fc,'query':_0x567d48&&!_0x58b2f9?{'command':CLI_BIN_NAME+_0x47c5ce(0x200)+_0x3afd1a+_0x47c5ce(0x1f6)+_0x4bc915+_0x47c5ce(0x201)}:null},'message':_0x47c5ce(0x1ec)+_0x4bc915+':\x20'+(_0x730e5e??_0x47c5ce(0x206))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0xe52e18=a101_0x41f4;function a101_0x35cf(){const _0x4ecba1=['1925KSSEYd','deletedColumns','71952wKaPbt','pagesize','Page\x20size','page','number','datasetTableCount','168GbiBtM','physicalTableCount','2296855sDQiPB','1668UOKkur','NEW_TABLE','fieldDiff','diff','\x20changed\x20table\x20row(s),\x20total\x20','\x20(db\x20link\x20','tableName','tableList','appCode','diffType','all','21879inGPlX','summary','MODIFIED_TABLE','1040rMEcFa','Page\x20index\x20(1-based)','1458470jMLJDi','str','bool','num','length','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','10926mNudeY','string','filter','map','218884iJHqeD'];a101_0x35cf=function(){return _0x4ecba1;};return a101_0x35cf();}(function(_0x40fdac,_0x412a07){const _0x4019a9=a101_0x41f4,_0x39af4c=_0x40fdac();while(!![]){try{const _0x5b2681=-parseInt(_0x4019a9(0x143))/0x1+-parseInt(_0x4019a9(0x140))/0x2+parseInt(_0x4019a9(0x14c))/0x3*(-parseInt(_0x4019a9(0x149))/0x4)+-parseInt(_0x4019a9(0x14b))/0x5+-parseInt(_0x4019a9(0x13c))/0x6*(-parseInt(_0x4019a9(0x141))/0x7)+parseInt(_0x4019a9(0x134))/0x8*(parseInt(_0x4019a9(0x131))/0x9)+parseInt(_0x4019a9(0x136))/0xa;if(_0x5b2681===_0x412a07)break;else _0x39af4c['push'](_0x39af4c['shift']());}catch(_0x2d528d){_0x39af4c['push'](_0x39af4c['shift']());}}}(a101_0x35cf,0x48e27));import{getDbTableDiff}from'../../core/api-client.js';function a101_0x41f4(_0x33e6cd,_0x552414){_0x33e6cd=_0x33e6cd-0x130;const _0x35cf1d=a101_0x35cf();let _0x41f48f=_0x35cf1d[_0x33e6cd];return _0x41f48f;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a101_0xe52e18(0x14f),'description':a101_0xe52e18(0x13b),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a101_0xe52e18(0x13d),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a101_0xe52e18(0x146),'type':'number','description':a101_0xe52e18(0x135),'default':0x1},{'name':'pagesize','type':a101_0xe52e18(0x147),'description':a101_0xe52e18(0x145),'default':0x14},{'name':a101_0xe52e18(0x130),'type':'boolean','description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x11756c){const _0x18662a=a101_0xe52e18,_0x4e6665=_0x11756c[_0x18662a(0x139)]('id'),_0x33f53e=_0x11756c[_0x18662a(0x138)](_0x18662a(0x130)),_0x5bcfac=_0x33f53e?0x1:_0x11756c[_0x18662a(0x139)](_0x18662a(0x146),0x1)||0x1,_0x288c0f=_0x33f53e?DB_TABLE_PAGE_SIZE:_0x11756c[_0x18662a(0x139)](_0x18662a(0x144),0x14)||0x14,_0x21dad0=_0x11756c[_0x18662a(0x137)]('table')||undefined,_0x5b179c=_0x33f53e?await getAllDbTableDiff(getDbTableDiff,_0x11756c[_0x18662a(0x154)],_0x4e6665,_0x21dad0):await getDbTableDiff(_0x11756c['appCode'],_0x4e6665,{'pageIndex':_0x5bcfac,'pageSize':_0x288c0f,'tableName':_0x21dad0}),_0x515e52=_0x5b179c[_0x18662a(0x153)],_0x4d1346=summarizeDbTableDiff(_0x515e52),_0x2160b5=_0x515e52['filter'](_0x395532=>_0x395532['diffType']===_0x18662a(0x14d)||_0x395532['diffType']===_0x18662a(0x133))[_0x18662a(0x13f)](_0x1cc94b=>_0x1cc94b[_0x18662a(0x152)]),_0x959394=_0x515e52['filter'](_0x599507=>_0x599507[_0x18662a(0x155)]==='DELETED_TABLE')[_0x18662a(0x13f)](_0x1f3f14=>_0x1f3f14['tableName']),_0x131996=_0x515e52[_0x18662a(0x13e)](_0x249218=>_0x249218[_0x18662a(0x155)]===_0x18662a(0x133))['map'](_0xa6eb28=>({'tableName':_0xa6eb28[_0x18662a(0x152)],'addedColumns':_0xa6eb28[_0x18662a(0x14e)]?.['addedColumns']??[],'deletedColumns':_0xa6eb28[_0x18662a(0x14e)]?.[_0x18662a(0x142)]??[],'modifiedColumns':_0xa6eb28['fieldDiff']?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x4e6665,'page':_0x5bcfac,'pageSize':_0x288c0f,'totalCount':_0x5b179c['totalCount'],...typeof _0x5b179c[_0x18662a(0x14a)]===_0x18662a(0x147)?{'physicalTableCount':_0x5b179c['physicalTableCount']}:{},...typeof _0x5b179c[_0x18662a(0x148)]===_0x18662a(0x147)?{'datasetTableCount':_0x5b179c[_0x18662a(0x148)]}:{},..._0x5b179c['summary']?{'summary':_0x5b179c[_0x18662a(0x132)]}:{},'summaryByType':_0x4d1346,'toAnalyzeTables':_0x2160b5,'deletedTables':_0x959394,'modifiedFieldDiffs':_0x131996,'tables':_0x515e52},'message':_0x515e52[_0x18662a(0x13a)]+_0x18662a(0x150)+_0x5b179c['totalCount']+_0x18662a(0x151)+_0x4e6665+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f955f,_0x1014b){const _0x277322=a102_0x12fd,_0x46b541=_0x2f955f();while(!![]){try{const _0x40bb6a=-parseInt(_0x277322(0x11e))/0x1*(-parseInt(_0x277322(0x122))/0x2)+parseInt(_0x277322(0x11b))/0x3*(parseInt(_0x277322(0x11c))/0x4)+parseInt(_0x277322(0x123))/0x5*(-parseInt(_0x277322(0x11d))/0x6)+parseInt(_0x277322(0x118))/0x7+-parseInt(_0x277322(0x11a))/0x8*(-parseInt(_0x277322(0x120))/0x9)+-parseInt(_0x277322(0x117))/0xa*(parseInt(_0x277322(0x119))/0xb)+-parseInt(_0x277322(0x121))/0xc*(parseInt(_0x277322(0x11f))/0xd);if(_0x40bb6a===_0x1014b)break;else _0x46b541['push'](_0x46b541['shift']());}catch(_0x21691c){_0x46b541['push'](_0x46b541['shift']());}}}(a102_0x37a5,0x5ed06));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a102_0x37a5(){const _0x498076=['2AcZOis','13NxuXSS','3082887PvajbC','8050272ePqMCD','744972eNDhWT','97680MdbLbf','130VTnjtI','1740144UZskSN','60841vVbyUg','8FkdHit','210081xaYnah','24yKvEGs','192cvuKuF'];a102_0x37a5=function(){return _0x498076;};return a102_0x37a5();}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';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';function a102_0x12fd(_0x73d593,_0x5844d1){_0x73d593=_0x73d593-0x117;const _0x37a51b=a102_0x37a5();let _0x12fda8=_0x37a51b[_0x73d593];return _0x12fda8;}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a103_0x5d57(_0xdb3dc6,_0x299c0d){_0xdb3dc6=_0xdb3dc6-0x1e1;const _0x375fad=a103_0x375f();let _0x5d57cb=_0x375fad[_0xdb3dc6];return _0x5d57cb;}function a103_0x375f(){const _0x1314e4=['pagesize','424536JSGYhu','datasetDependency','3748WpQfLG','DB_TABLE','7CJDawS','Found\x20','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','page','read','62364TKdHfI','number','list','Page\x20index\x20(1-based)','appCode','Page\x20size','num','815PQKLPf','\x20database\x20connection(s)','264720Yzgaav','length','all','1464858goSTcL','4893336jeyeQu','1551192ONGhpI'];a103_0x375f=function(){return _0x1314e4;};return a103_0x375f();}const a103_0x101bf8=a103_0x5d57;(function(_0x1f4731,_0xba7c44){const _0x2edd13=a103_0x5d57,_0x3abece=_0x1f4731();while(!![]){try{const _0x30cf14=parseInt(_0x2edd13(0x1e7))/0x1+parseInt(_0x2edd13(0x1ee))/0x2+parseInt(_0x2edd13(0x1f7))/0x3+parseInt(_0x2edd13(0x1f0))/0x4*(parseInt(_0x2edd13(0x1e5))/0x5)+parseInt(_0x2edd13(0x1ea))/0x6+parseInt(_0x2edd13(0x1f2))/0x7*(-parseInt(_0x2edd13(0x1ec))/0x8)+-parseInt(_0x2edd13(0x1eb))/0x9;if(_0x30cf14===_0xba7c44)break;else _0x3abece['push'](_0x3abece['shift']());}catch(_0x4e8a2c){_0x3abece['push'](_0x3abece['shift']());}}}(a103_0x375f,0x26577));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a103_0x101bf8(0x1f9),'description':a103_0x101bf8(0x1f4),'risk':a103_0x101bf8(0x1f6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a103_0x101bf8(0x1f5),'type':'number','description':a103_0x101bf8(0x1e1),'default':0x1},{'name':a103_0x101bf8(0x1ed),'type':a103_0x101bf8(0x1f8),'description':a103_0x101bf8(0x1e3),'default':0x64}],async 'execute'(_0x421e98){const _0x49a1b8=a103_0x101bf8,_0xa7b774=_0x421e98['num'](_0x49a1b8(0x1f5),0x1)||0x1,_0xe4c633=_0x421e98[_0x49a1b8(0x1e4)](_0x49a1b8(0x1ed),0x64)||0x64,[{items:_0x313af0,paging:_0x13bcfe},_0x38860f]=await Promise[_0x49a1b8(0x1e9)]([listDbLinks(_0x421e98['appCode'],{'currentPage':_0xa7b774,'pageSize':_0xe4c633}),listDatasets(_0x421e98[_0x49a1b8(0x1e2)],{'source':_0x49a1b8(0x1f1)})]),_0x240396=_0x313af0['map'](_0x231101=>({...sanitizeDbLinkForOutput(_0x231101),'datasetDependency':buildDbDatasetDependency(_0x231101,_0x38860f)[_0x49a1b8(0x1ef)]})),_0x161b1f=_0x13bcfe?_0x13bcfe:{'currentPage':_0xa7b774,'pageSize':_0xe4c633,'rowsOnPage':_0x240396[_0x49a1b8(0x1e8)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x240396,'paging':_0x161b1f},'message':_0x49a1b8(0x1f3)+_0x240396[_0x49a1b8(0x1e8)]+_0x49a1b8(0x1e6)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x416eb1,_0x5cf856){const _0x15415f=a104_0x4d4c,_0x39f000=_0x416eb1();while(!![]){try{const _0x594021=parseInt(_0x15415f(0xaa))/0x1*(parseInt(_0x15415f(0x97))/0x2)+parseInt(_0x15415f(0xa2))/0x3*(-parseInt(_0x15415f(0x98))/0x4)+parseInt(_0x15415f(0xa9))/0x5*(parseInt(_0x15415f(0x9a))/0x6)+-parseInt(_0x15415f(0xa8))/0x7*(parseInt(_0x15415f(0x86))/0x8)+-parseInt(_0x15415f(0x81))/0x9+-parseInt(_0x15415f(0x9f))/0xa+parseInt(_0x15415f(0x9c))/0xb;if(_0x594021===_0x5cf856)break;else _0x39f000['push'](_0x39f000['shift']());}catch(_0x359998){_0x39f000['push'](_0x39f000['shift']());}}}(a104_0x3a38,0xe546b));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x3eb8a8){const _0x250941=a104_0x4d4c,_0xf0397f=_0x3eb8a8[_0x250941(0x99)]();if(_0xf0397f===_0x250941(0x94)||_0xf0397f===_0x250941(0xa0)||_0xf0397f===_0x250941(0x87))return!![];if(_0xf0397f[_0x250941(0x8d)]('secret')||_0xf0397f[_0x250941(0x8d)](_0x250941(0x93))||_0xf0397f[_0x250941(0x8d)](_0x250941(0x89)))return!![];if(_0xf0397f[_0x250941(0x8d)](_0x250941(0xa6))||_0xf0397f[_0x250941(0x8d)](_0x250941(0x91)))return!![];if(_0xf0397f==='authorization'||_0xf0397f===_0x250941(0x8e)||_0xf0397f===_0x250941(0x8a))return!![];return![];}function a104_0x3a38(){const _0x588cd7=['connectionstring','filter','name','accesskey','isFinite','token','password','keys','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','200zfbszW','4FFDyLU','toLowerCase','19506XGWzzj','dbId','30806171NPcXCx','code','/data/er?dbId=','10091460ArhaDv','passwd','[redacted]','1093053Nozajw','tableName','Database\x20connection\x20preflight\x20failed.','number','privatekey','map','42wbyALi','2055QHWyjT','5801eAgPEP','8704188spfhFP','hasAvailableDo','length','dbtableConfig','/data/database','1916104spfICG','dbpassword','test','credential','jdbcurl','trim','apiError','includes'];a104_0x3a38=function(){return _0x588cd7;};return a104_0x3a38();}function a104_0x4d4c(_0x1707d5,_0x311058){_0x1707d5=_0x1707d5-0x81;const _0x3a38c0=a104_0x3a38();let _0x4d4c3c=_0x3a38c0[_0x1707d5];return _0x4d4c3c;}export function sanitizeDbLinkForOutput(_0x571f6d){const _0x484c1b=a104_0x4d4c,_0x1454fc={..._0x571f6d};delete _0x1454fc[_0x484c1b(0x82)];for(const _0x55ddb5 of Object[_0x484c1b(0x95)](_0x1454fc)){if(!shouldRedactKey(_0x55ddb5))continue;const _0x99dbf4=_0x1454fc[_0x55ddb5];_0x99dbf4!=null&&String(_0x99dbf4)[_0x484c1b(0x83)]>0x0&&(_0x1454fc[_0x55ddb5]=_0x484c1b(0xa1));}return _0x1454fc;}export function sanitizeDbLinkList(_0x18fcb2){return _0x18fcb2['map'](_0x134ed2=>sanitizeDbLinkForOutput(_0x134ed2));}export function buildDbDatasetDependency(_0x4858a2,_0x22a2d7){const _0x52f620=a104_0x4d4c,_0x87d7bb=_0x22a2d7[_0x52f620(0x8f)](_0x5353f4=>Number(_0x5353f4['dbtableConfig']?.[_0x52f620(0x9b)])===Number(_0x4858a2['id']))[_0x52f620(0xa7)](_0x1979bf=>({'id':_0x1979bf['id'],'code':_0x1979bf[_0x52f620(0x9d)],'name':_0x1979bf[_0x52f620(0x90)],..._0x1979bf[_0x52f620(0x84)]?.[_0x52f620(0xa3)]?{'tableName':_0x1979bf[_0x52f620(0x84)][_0x52f620(0xa3)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x87d7bb[_0x52f620(0x83)]>0x0,'activeDatasetCount':_0x87d7bb[_0x52f620(0x83)]},'datasets':_0x87d7bb};}export async function assertDbLinkConnectionPreflight(_0x3b7a1a){const _0x20b12e=a104_0x4d4c,_0x46c9b7=await testDbLinkConfigConnect(_0x3b7a1a);if(_0x46c9b7!==!![])throw CliErrors[_0x20b12e(0x8c)](_0x20b12e(0xa4),_0x20b12e(0x96));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x527cc8){const _0x27ffdb=a104_0x4d4c,_0x43b9c8=_0x527cc8[_0x27ffdb(0x8b)]();if(!_0x43b9c8)return![];return DB_URL_PATTERN[_0x27ffdb(0x88)](_0x43b9c8);}export function buildDbPageLinks(_0x5603c7,_0x5edd1f){const _0x119b7b=a104_0x4d4c,_0x23a68c=_0x5603c7?.['trim']();if(!_0x23a68c)return undefined;const _0xabe9e2=typeof _0x5edd1f===_0x119b7b(0xa5)?String(_0x5edd1f):String(_0x5edd1f??'')[_0x119b7b(0x8b)]();if(!_0xabe9e2)return undefined;const _0x511c09=Number(_0xabe9e2);if(!Number[_0x119b7b(0x92)](_0x511c09)||_0x511c09<=0x0)return undefined;const _0x4e315e=getAppBaseUrl(_0x23a68c),_0x472cf8=encodeURIComponent(String(_0x511c09));return{'databasePage':_0x4e315e+_0x119b7b(0x85),'erPage':_0x4e315e+_0x119b7b(0x9e)+_0x472cf8};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105_0x3190dc=a105_0x2008;function a105_0x2008(_0x55ae8c,_0xa24e2f){_0x55ae8c=_0x55ae8c-0x1d9;const _0xdd835d=a105_0xdd83();let _0x20080c=_0xdd835d[_0x55ae8c];return _0x20080c;}(function(_0xc0e3e4,_0x37191b){const _0x4f0845=a105_0x2008,_0x30a10c=_0xc0e3e4();while(!![]){try{const _0x357398=parseInt(_0x4f0845(0x1f2))/0x1*(parseInt(_0x4f0845(0x1e4))/0x2)+parseInt(_0x4f0845(0x1e9))/0x3*(-parseInt(_0x4f0845(0x1ec))/0x4)+-parseInt(_0x4f0845(0x1e3))/0x5+-parseInt(_0x4f0845(0x1f5))/0x6+parseInt(_0x4f0845(0x1ee))/0x7+-parseInt(_0x4f0845(0x1f1))/0x8*(parseInt(_0x4f0845(0x1db))/0x9)+parseInt(_0x4f0845(0x1dd))/0xa;if(_0x357398===_0x37191b)break;else _0x30a10c['push'](_0x30a10c['shift']());}catch(_0x438b14){_0x30a10c['push'](_0x30a10c['shift']());}}}(a105_0xdd83,0x7398e));function a105_0xdd83(){const _0x191229=['7096qXoBAu','3grHQZt','DELETED_TABLE','MODIFIED_TABLE','3594966rHqfDI','set','number','summary','physicalTableCount','5967EfOJeU','tableName','14681680DsYmmJ','validation','\x20of\x20','tableList','fromEntries','size','3226090RFloMV','34908iNoLJp','ALREADY_ANALYZED','map','datasetTableCount','NEW_TABLE','210sXseIc','\x20row(s).','totalCount','2308wiDKGE','length','5780642zeEatO','filter','diffType'];a105_0xdd83=function(){return _0x191229;};return a105_0xdd83();}import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a105_0x3190dc(0x1e8),a105_0x3190dc(0x1f4),a105_0x3190dc(0x1f3),a105_0x3190dc(0x1e5)];export function summarizeDbTableDiff(_0x223cb1){const _0x36e675=a105_0x3190dc;return Object[_0x36e675(0x1e1)](DB_TABLE_DIFF_TYPES[_0x36e675(0x1e6)](_0x1de0f=>[_0x1de0f,_0x223cb1[_0x36e675(0x1ef)](_0x3b0411=>_0x3b0411[_0x36e675(0x1f0)]===_0x1de0f)[_0x36e675(0x1ed)]]));}export async function getAllDbTableDiff(_0x59d831,_0xc7f5b0,_0x1ae731,_0x49b52e){const _0x2d586f=a105_0x3190dc,_0x2ba872=new Map();let _0x2e8cbb=0x1,_0xe00589=null;while(!![]){_0xe00589=await _0x59d831(_0xc7f5b0,_0x1ae731,{'pageIndex':_0x2e8cbb,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x49b52e});const _0x42af64=_0x2ba872[_0x2d586f(0x1e2)];for(const _0x4a9ad8 of _0xe00589[_0x2d586f(0x1e0)]){_0x2ba872[_0x2d586f(0x1f6)](_0x4a9ad8[_0x2d586f(0x1dc)],_0x4a9ad8);}if(_0x2ba872[_0x2d586f(0x1e2)]>=_0xe00589['totalCount'])break;if(_0xe00589[_0x2d586f(0x1e0)][_0x2d586f(0x1ed)]===0x0||_0x2ba872[_0x2d586f(0x1e2)]===_0x42af64)throw CliErrors[_0x2d586f(0x1de)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x2ba872[_0x2d586f(0x1e2)]+_0x2d586f(0x1df)+_0xe00589[_0x2d586f(0x1eb)]+_0x2d586f(0x1ea));_0x2e8cbb+=0x1;}return{'totalCount':_0xe00589?.[_0x2d586f(0x1eb)]??0x0,...typeof _0xe00589?.[_0x2d586f(0x1da)]===_0x2d586f(0x1f7)?{'physicalTableCount':_0xe00589[_0x2d586f(0x1da)]}:{},...typeof _0xe00589?.['datasetTableCount']===_0x2d586f(0x1f7)?{'datasetTableCount':_0xe00589[_0x2d586f(0x1e7)]}:{},..._0xe00589?.[_0x2d586f(0x1d9)]?{'summary':_0xe00589['summary']}:{},'tableList':[..._0x2ba872['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106_0x2a1a9a=a106_0x5b4a;function a106_0x1257(){const _0x2a1fc5=['123088iKaUYr','totalCount','summary','number','string','appCode','physicalTableCount','tables','6vefOnE','232tzzJNJ','num','8037900vErTZf','datasetTableCount','read','\x20table\x20comparison\x20row(s),\x20total\x20','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','table','str','3009285aHicoh','1912960PBxBAc','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','618346UFoAJO','95016KfQOME','2145960MEiOuW'];a106_0x1257=function(){return _0x2a1fc5;};return a106_0x1257();}(function(_0x2cb3c3,_0x84785d){const _0xbaac2=a106_0x5b4a,_0x1d9b97=_0x2cb3c3();while(!![]){try{const _0x35d0e1=-parseInt(_0xbaac2(0x9d))/0x1+parseInt(_0xbaac2(0x9c))/0x2*(parseInt(_0xbaac2(0xa7))/0x3)+parseInt(_0xbaac2(0xb2))/0x4+-parseInt(_0xbaac2(0xb1))/0x5+-parseInt(_0xbaac2(0x9e))/0x6+parseInt(_0xbaac2(0x9f))/0x7*(-parseInt(_0xbaac2(0xa8))/0x8)+parseInt(_0xbaac2(0xaa))/0x9;if(_0x35d0e1===_0x84785d)break;else _0x1d9b97['push'](_0x1d9b97['shift']());}catch(_0x106e37){_0x1d9b97['push'](_0x1d9b97['shift']());}}}(a106_0x1257,0x67d01));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a106_0x5b4a(_0x4816da,_0x5b0898){_0x4816da=_0x4816da-0x9c;const _0x1257a3=a106_0x1257();let _0x5b4a26=_0x1257a3[_0x4816da];return _0x5b4a26;}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a106_0x2a1a9a(0xa6),'description':a106_0x2a1a9a(0xb3),'risk':a106_0x2a1a9a(0xac),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a106_0x2a1a9a(0xaf),'type':a106_0x2a1a9a(0xa3),'description':a106_0x2a1a9a(0xae)}],async 'execute'(_0x58787d){const _0x5e11a2=a106_0x2a1a9a,_0x5d7502=_0x58787d[_0x5e11a2(0xa9)]('id'),_0x5d5c44=_0x58787d[_0x5e11a2(0xb0)](_0x5e11a2(0xaf))||undefined,_0x3ea3ba=await getAllDbTableDiff(getDbTableComparisonPage,_0x58787d[_0x5e11a2(0xa4)],_0x5d7502,_0x5d5c44),_0x5de10d=_0x3ea3ba['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x5d7502,'totalCount':_0x3ea3ba[_0x5e11a2(0xa0)],...typeof _0x3ea3ba[_0x5e11a2(0xa5)]===_0x5e11a2(0xa2)?{'physicalTableCount':_0x3ea3ba[_0x5e11a2(0xa5)]}:{},...typeof _0x3ea3ba['datasetTableCount']===_0x5e11a2(0xa2)?{'datasetTableCount':_0x3ea3ba[_0x5e11a2(0xab)]}:{},..._0x3ea3ba[_0x5e11a2(0xa1)]?{'summary':_0x3ea3ba[_0x5e11a2(0xa1)]}:{},'summaryByType':summarizeDbTableDiff(_0x5de10d),'tables':_0x5de10d},'message':_0x5de10d['length']+_0x5e11a2(0xad)+_0x3ea3ba[_0x5e11a2(0xa0)]+'\x20(db\x20link\x20'+_0x5d7502+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a107_0x13a5(_0x1ab6ef,_0x54f1c9){_0x1ab6ef=_0x1ab6ef-0x157;const _0x5086f0=a107_0x5086();let _0x13a5ba=_0x5086f0[_0x1ab6ef];return _0x13a5ba;}function a107_0x5086(){const _0x436f65=['error','5223438WKPnAA','58oLBkiU','object','Connection\x20OK\x20for\x20db\x20link\x20','code','read','slice','4477116hYvZGe','length','num','keys','Connection\x20check\x20finished\x20for\x20db\x20link\x20','4089735LPXGfd','35663912MjuqTe','9848022MNCNIv','data','success','49307LzqtsR','10658599rTZYzd','\x20(see\x20data.result)'];a107_0x5086=function(){return _0x436f65;};return a107_0x5086();}const a107_0xa2cdb6=a107_0x13a5;(function(_0x28ab83,_0x10a2b5){const _0x3893b7=a107_0x13a5,_0x32e253=_0x28ab83();while(!![]){try{const _0x37de7a=-parseInt(_0x3893b7(0x164))/0x1*(parseInt(_0x3893b7(0x169))/0x2)+parseInt(_0x3893b7(0x168))/0x3+parseInt(_0x3893b7(0x15a))/0x4+parseInt(_0x3893b7(0x15f))/0x5+parseInt(_0x3893b7(0x161))/0x6+parseInt(_0x3893b7(0x165))/0x7+-parseInt(_0x3893b7(0x160))/0x8;if(_0x37de7a===_0x10a2b5)break;else _0x32e253['push'](_0x32e253['shift']());}catch(_0x433e40){_0x32e253['push'](_0x32e253['shift']());}}}(a107_0x5086,0xe906a));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x3a90b5){const _0xc123ae=a107_0x13a5;if(_0x3a90b5===!![]||_0x3a90b5===![])return{'success':_0x3a90b5};if(_0x3a90b5===null||_0x3a90b5===undefined)return{'type':typeof _0x3a90b5};if(typeof _0x3a90b5!==_0xc123ae(0x16a))return{'type':typeof _0x3a90b5};const _0xf655ea=_0x3a90b5,_0x35269c=[_0xc123ae(0x163),'message',_0xc123ae(0x157),_0xc123ae(0x167),'msg',_0xc123ae(0x162)],_0x56a06c={};for(const _0x105c29 of _0x35269c){if(_0x105c29 in _0xf655ea)_0x56a06c[_0x105c29]=_0xf655ea[_0x105c29];}return Object[_0xc123ae(0x15d)](_0x56a06c)[_0xc123ae(0x15b)]===0x0&&(_0x56a06c[_0xc123ae(0x15d)]=Object[_0xc123ae(0x15d)](_0xf655ea)[_0xc123ae(0x159)](0x0,0x14)),_0x56a06c;}export const dbTest={'service':'db','command':'test','description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a107_0xa2cdb6(0x158),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x38589a){const _0x342b87=a107_0xa2cdb6,_0x296f83=_0x38589a[_0x342b87(0x15c)]('id'),_0x5ba8ae=await testDbLinkConnect(_0x296f83),_0x173589=_0x5ba8ae===!![]||typeof _0x5ba8ae===_0x342b87(0x16a)&&_0x5ba8ae!==null&&_0x5ba8ae['success']===!![],_0x8b6c5c=summarizeTestConnectResult(_0x5ba8ae);return{'ok':!![],'data':{'id':_0x296f83,'connected':Boolean(_0x173589),'result':_0x8b6c5c},'message':_0x173589?_0x342b87(0x16b)+_0x296f83:_0x342b87(0x15e)+_0x296f83+_0x342b87(0x166)};}};
|