@lovrabet/rabetbase-cli 2.5.5 → 2.5.6-beta.1
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/detail.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/cross-db-analysis-shared.d.ts +40 -0
- package/lib/commands/db/cross-db-analysis-shared.js +1 -0
- package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-latest.js +1 -0
- package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-start.js +1 -0
- package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-status.js +1 -0
- 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/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.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.js +1 -1
- 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 +7 -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-analysis.d.ts +17 -0
- package/lib/core/cross-db-analysis.js +1 -0
- 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 +6 -4
- package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
- package/skills/rabetbase/guides/independent-deployment.md +10 -2
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +4 -3
package/lib/core/bff/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2efd91,_0x2b390b){const _0x11c29f=a284_0x2322,_0x58002c=_0x2efd91();while(!![]){try{const _0x23b968=parseInt(_0x11c29f(0x73))/0x1+-parseInt(_0x11c29f(0x6e))/0x2*(parseInt(_0x11c29f(0x75))/0x3)+parseInt(_0x11c29f(0x74))/0x4*(-parseInt(_0x11c29f(0x6f))/0x5)+parseInt(_0x11c29f(0x71))/0x6*(-parseInt(_0x11c29f(0x78))/0x7)+-parseInt(_0x11c29f(0x6b))/0x8+-parseInt(_0x11c29f(0x6c))/0x9*(-parseInt(_0x11c29f(0x76))/0xa)+parseInt(_0x11c29f(0x6d))/0xb;if(_0x23b968===_0x2b390b)break;else _0x58002c['push'](_0x58002c['shift']());}catch(_0x49c5bd){_0x58002c['push'](_0x58002c['shift']());}}}(a284_0xb2fe,0x40e70));import{readFile}from'node:fs/promises';import a284_0x3905ae from'node:crypto';function a284_0xb2fe(){const _0x55f65b=['243429nwQxmP','10PoxFhZ','createHash','14oCnPYa','utf8','md5','update','2593576pBBopb','919071ZYzlQw','13869735rMxbhv','8levPzK','230qRkpQG','hex','1504884zbQmIj','digest','283647ZLBmOO','20036XgYqEy'];a284_0xb2fe=function(){return _0x55f65b;};return a284_0xb2fe();}export function computeContentHash(_0x483a8b){const _0x55f81d=a284_0x2322;return a284_0x3905ae[_0x55f81d(0x77)](_0x55f81d(0x7a))[_0x55f81d(0x6a)](_0x483a8b)[_0x55f81d(0x72)](_0x55f81d(0x70));}function a284_0x2322(_0x3dafc1,_0xe9e791){_0x3dafc1=_0x3dafc1-0x6a;const _0xb2fe14=a284_0xb2fe();let _0x2322e2=_0xb2fe14[_0x3dafc1];return _0x2322e2;}export async function computeFileHash(_0x10d785){const _0xe41478=a284_0x2322,_0x3e915b=await readFile(_0x10d785,_0xe41478(0x79));return computeContentHash(_0x3e915b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x59625e,_0x45ee02){const _0x4494d6=a281_0x188d,_0x184402=_0x59625e();while(!![]){try{const _0x43c3d1=-parseInt(_0x4494d6(0xf1))/0x1*(parseInt(_0x4494d6(0xf0))/0x2)+parseInt(_0x4494d6(0x113))/0x3*(parseInt(_0x4494d6(0x104))/0x4)+-parseInt(_0x4494d6(0x10c))/0x5*(-parseInt(_0x4494d6(0x117))/0x6)+parseInt(_0x4494d6(0x10f))/0x7*(parseInt(_0x4494d6(0x116))/0x8)+parseInt(_0x4494d6(0x101))/0x9+-parseInt(_0x4494d6(0xf9))/0xa+parseInt(_0x4494d6(0xf7))/0xb*(-parseInt(_0x4494d6(0x107))/0xc);if(_0x43c3d1===_0x45ee02)break;else _0x184402['push'](_0x184402['shift']());}catch(_0x45bd10){_0x184402['push'](_0x184402['shift']());}}}(a281_0x279a,0xb5e51));import{CliError}from'../../errors.js';function a281_0x188d(_0x473fcc,_0x2b2f11){_0x473fcc=_0x473fcc-0xe1;const _0x279a34=a281_0x279a();let _0x188dc6=_0x279a34[_0x473fcc];return _0x188dc6;}export function trackedHookDirectoryMappings(_0x4c2571){const _0x5132f5=a281_0x188d,_0x4e460a=[];for(const [_0x24786b,_0x9c0581]of Object[_0x5132f5(0x114)](_0x4c2571[_0x5132f5(0x109)])){const [_0x27634e,_0x3ca0d0]=_0x24786b[_0x5132f5(0xe4)]('/');if(_0x27634e!==_0x5132f5(0xe6)||!_0x3ca0d0||!_0x9c0581['datasetCode'])continue;_0x4e460a['push']({'alias':_0x3ca0d0,'datasetCode':_0x9c0581[_0x5132f5(0x112)]});}return _0x4e460a;}export function uniqueTrackedHookDirectoryByDataset(_0x3f0efb){const _0x5bf8b8=a281_0x188d,_0x3cbb7d=new Map();for(const _0x3d2505 of trackedHookDirectoryMappings(_0x3f0efb)){const _0x19b6c8=directoryIdentity(_0x3d2505[_0x5bf8b8(0x112)]),_0x4c52b7=_0x3cbb7d[_0x5bf8b8(0xf6)](_0x19b6c8)??new Map();_0x4c52b7[_0x5bf8b8(0xfb)](directoryIdentity(_0x3d2505['alias']),_0x3d2505['alias']),_0x3cbb7d[_0x5bf8b8(0xfb)](_0x19b6c8,_0x4c52b7);}const _0x4ecce8=new Map();for(const [_0x574155,_0x4bef6e]of _0x3cbb7d){if(_0x4bef6e['size']>0x1)throw hookDirectoryError(_0x5bf8b8(0xff),_0x5bf8b8(0xeb)+_0x574155+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x4bef6e[_0x5bf8b8(0xe5)]()][_0x5bf8b8(0x103)](',\x20')+'.',{'datasetCode':_0x574155,'directories':[..._0x4bef6e['values']()]});_0x4ecce8[_0x5bf8b8(0xfb)](_0x574155,[..._0x4bef6e[_0x5bf8b8(0xe5)]()][0x0]);}return _0x4ecce8;}export function assertUnambiguousHookDirectoryMappings(_0x41a0f3){const _0x2e5479=a281_0x188d,_0x572b01=new Map();for(const {alias:_0x1bbdfd,datasetCode:_0x5e23b0}of _0x41a0f3){const _0x1da132=directoryIdentity(_0x1bbdfd),_0x67d4b3=_0x572b01['get'](_0x1da132)??new Set();_0x67d4b3[_0x2e5479(0xf2)](_0x5e23b0),_0x572b01[_0x2e5479(0xfb)](_0x1da132,_0x67d4b3);}for(const [_0x5ddadd,_0x19c650]of _0x572b01){if(_0x19c650['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS','HOOK\x20directory\x20\x22'+_0x5ddadd+_0x2e5479(0xed),{'directoryName':_0x5ddadd,'datasetCodes':[..._0x19c650]});}}export function assertUnambiguousHookAliases(_0x42d6f5){const _0x5dced4=a281_0x188d,_0x2e4863=[..._0x42d6f5],_0x2ef44e=new Map(),_0x22ec1f=new Map();for(const {alias:_0x4131f5,datasetCode:_0x3d5551}of _0x2e4863){const _0x194224=directoryIdentity(_0x4131f5),_0x1dbc12=directoryIdentity(_0x3d5551),_0x387cfd=_0x2ef44e[_0x5dced4(0xf6)](_0x194224)??new Set();_0x387cfd['add'](_0x3d5551),_0x2ef44e['set'](_0x194224,_0x387cfd);const _0x26faaf=_0x22ec1f[_0x5dced4(0xf6)](_0x1dbc12)??new Set();_0x26faaf[_0x5dced4(0xf2)](_0x4131f5),_0x22ec1f['set'](_0x1dbc12,_0x26faaf);}for(const [_0x301638,_0xb6eb9c]of _0x2ef44e){if(_0xb6eb9c['size']>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5dced4(0xe2)+_0x301638+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x301638,'datasetCodes':[..._0xb6eb9c]});}for(const [_0x44cfd9,_0x34c6f6]of _0x22ec1f){if(_0x34c6f6['size']>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5dced4(0xeb)+_0x44cfd9+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x44cfd9,'aliases':[..._0x34c6f6]});}}function a281_0x279a(){const _0x3bcdb1=['aliasToDatasetCodes','NFC','Dataset\x20code\x20\x22','Dataset\x20\x22','includes','\x22\x20resolves\x20to\x20multiple\x20Datasets.','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','4434sMTNcq','331XfyfWJ','add','lockKey','HOOK_MAPPING_DRIFT','map','get','11JQTKEd','push','5756120PwgVBH','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','set','toLowerCase','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','HOOK_DATASET_CODE_AMBIGUOUS','HOOK_DUPLICATE_DIRECTORIES','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','3039804giCFRQ','some','join','1165160eXMCIT','length','normalize','3665448QFmIzA','name','functions','Incomplete\x20HOOK\x20path:\x20','HOOK\x20directory\x20\x22','339685AzuGhw','size','HOOK_DATASET_NOT_FOUND','49HcGTEQ','alias','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','datasetCode','6inEezB','entries','HOOK_DIRECTORY_UNRESOLVED','1412328uIHxOe','18kZKJQR','code','SDK\x20alias\x20\x22','message','split','values','HOOK','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'];a281_0x279a=function(){return _0x3bcdb1;};return a281_0x279a();}export function buildHookDirectoryIndexes(_0x4433cf,_0x2d04cf=[]){const _0x3f36a8=a281_0x188d,_0x4ba95b=[..._0x2d04cf];assertUnambiguousHookDirectoryMappings(_0x4ba95b[_0x3f36a8(0xf5)](([_0xc56e5f,_0x2bc8ff])=>({'alias':_0xc56e5f,'datasetCode':_0x2bc8ff})));const _0x565700=new Map(),_0x2ed8b6=new Map();for(const _0xe638fb of _0x4433cf){appendUnique(_0x565700,directoryIdentity(_0xe638fb[_0x3f36a8(0xe1)]),_0xe638fb,_0x3ce1e9=>_0x3ce1e9[_0x3f36a8(0xe1)]);}for(const [_0x3ebd3d,_0x191f39]of _0x4ba95b){appendUnique(_0x2ed8b6,directoryIdentity(_0x3ebd3d),_0x191f39,_0x4a9659=>_0x4a9659);}return{'datasetCodeToDatasets':_0x565700,'aliasToDatasetCodes':_0x2ed8b6};}export function resolvePushHookDirectory(_0x5d20bb,_0x3945b3,_0x11bc14){const _0x482bb8=a281_0x188d,_0x213290=directoryIdentity(_0x5d20bb),_0x3f1ff9=_0x11bc14['datasetCodeToDatasets']['get'](_0x213290)??[],_0x3de0d4=_0x11bc14[_0x482bb8(0xe8)]['get'](_0x213290)??[],_0xc84cc5=new Set([..._0x3f1ff9[_0x482bb8(0xf5)](_0x54167e=>_0x54167e[_0x482bb8(0xe1)]),..._0x3de0d4]);if(_0xc84cc5[_0x482bb8(0x10d)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x482bb8(0x10b)+_0x5d20bb+_0x482bb8(0xee),{'directoryName':_0x5d20bb,'datasetCodes':[..._0xc84cc5]});const _0x253a45=[..._0xc84cc5][0x0];if(_0x253a45&&_0x3945b3?.['datasetCode']&&_0x253a45!==_0x3945b3['datasetCode'])throw hookDirectoryError(_0x482bb8(0xf4),'HOOK\x20directory\x20\x22'+_0x5d20bb+_0x482bb8(0xfa)+_0x3945b3[_0x482bb8(0x112)]+'\x22\x20to\x20\x22'+_0x253a45+'\x22.',{'directoryName':_0x5d20bb,'datasetCode':_0x253a45,'lockedDatasetCode':_0x3945b3['datasetCode']});const _0x3e641b=_0x253a45?findDatasetByCode(_0x11bc14,_0x253a45):undefined,_0x1b8b6c=!!_0x253a45&&_0x3de0d4[_0x482bb8(0xec)](_0x253a45);if(_0x3e641b)return{'dataset':_0x3e641b,'datasetCode':_0x3e641b['code'],..._0x1b8b6c?{'alias':_0x5d20bb}:{},'directoryProtocol':_0x1b8b6c?_0x482bb8(0x110):_0x482bb8(0x112),'warnings':[]};const _0x9bf236=_0x3945b3?.['datasetCode'];if(_0x9bf236){const _0x262ffb=findDatasetByCode(_0x11bc14,_0x9bf236);if(_0x262ffb)return{'dataset':_0x262ffb,'datasetCode':_0x262ffb[_0x482bb8(0xe1)],..._0x3945b3[_0x482bb8(0x110)]?{'alias':_0x3945b3[_0x482bb8(0x110)]}:{},'directoryProtocol':_0x3945b3[_0x482bb8(0x110)]?_0x482bb8(0x110):_0x482bb8(0x112),'warnings':[]};}if(_0x253a45||_0x9bf236){const _0x23a156=_0x253a45??_0x9bf236;throw hookDirectoryError(_0x482bb8(0x10e),'HOOK\x20directory\x20\x22'+_0x5d20bb+_0x482bb8(0xef),{'directoryName':_0x5d20bb,'datasetCode':_0x23a156});}throw hookDirectoryError(_0x482bb8(0x115),_0x482bb8(0xfd)+_0x5d20bb+_0x482bb8(0x100),{'directoryName':_0x5d20bb});}export function preflightPushHookDirectories(_0x499190,_0x37a948,_0x1cbd06,_0x4a7259){const _0x2374cb=a281_0x188d,_0x26dbe5=new Map(),_0x2fd1c2=new Map();for(const _0x48d58b of _0x499190){if(_0x48d58b['type']!==_0x2374cb(0xe6))continue;const _0x3ad0ed=_0x48d58b[_0x2374cb(0x110)];if(!_0x3ad0ed)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x2374cb(0x10a)+_0x48d58b[_0x2374cb(0xf3)],{'lockKey':_0x48d58b['lockKey']});let _0x5eebeb;try{_0x5eebeb=resolvePushHookDirectory(_0x3ad0ed,_0x37a948[_0x2374cb(0x109)][_0x48d58b[_0x2374cb(0xf3)]],_0x1cbd06);}catch(_0x460b8a){if(_0x4a7259&&_0x460b8a instanceof CliError&&['HOOK_DATASET_NOT_FOUND','HOOK_DIRECTORY_UNRESOLVED'][_0x2374cb(0xec)](_0x460b8a[_0x2374cb(0xe1)])){_0x4a7259['set'](_0x48d58b[_0x2374cb(0xf3)],_0x460b8a[_0x2374cb(0xe3)]);continue;}throw _0x460b8a;}_0x26dbe5['set'](_0x48d58b['lockKey'],_0x5eebeb);const _0x10f61e=_0x2fd1c2['get'](_0x5eebeb[_0x2374cb(0x112)])??new Set();_0x10f61e[_0x2374cb(0xf2)](_0x3ad0ed),_0x2fd1c2[_0x2374cb(0xfb)](_0x5eebeb['datasetCode'],_0x10f61e);}for(const [_0x1b6eb9,_0x1303f3]of _0x2fd1c2){if(_0x1303f3[_0x2374cb(0x10d)]>0x1)throw hookDirectoryError(_0x2374cb(0xff),_0x2374cb(0xeb)+_0x1b6eb9+_0x2374cb(0xe7)+[..._0x1303f3]['join'](',\x20')+'.',{'datasetCode':_0x1b6eb9,'directories':[..._0x1303f3]});}return _0x26dbe5;}export function hookDirectoryError(_0x340d87,_0x1e9ae1,_0xa9e5c6){const _0x2cf00a=new CliError(_0x340d87,0x2,_0x340d87+':\x20'+_0x1e9ae1);return _0x2cf00a['details']=_0xa9e5c6,_0x2cf00a;}function findDatasetByCode(_0x5b5037,_0x43c741){const _0x58e51d=a281_0x188d,_0x507980=_0x5b5037['datasetCodeToDatasets'][_0x58e51d(0xf6)](directoryIdentity(_0x43c741))??[];if(_0x507980[_0x58e51d(0x105)]>0x1)throw hookDirectoryError(_0x58e51d(0xfe),_0x58e51d(0xea)+_0x43c741+_0x58e51d(0x111),{'datasetCode':_0x43c741,'candidates':_0x507980[_0x58e51d(0xf5)](datasetFact)});return _0x507980[0x0];}function directoryIdentity(_0x7c610d){const _0x3734fe=a281_0x188d;return _0x7c610d[_0x3734fe(0x106)](_0x3734fe(0xe9))[_0x3734fe(0xfc)]();}function appendUnique(_0x1a6e33,_0x29d2d9,_0x4b30b4,_0x5aacb2){const _0x53d1c2=a281_0x188d,_0x5a4f02=_0x1a6e33[_0x53d1c2(0xf6)](_0x29d2d9)??[];!_0x5a4f02[_0x53d1c2(0x102)](_0x1d966f=>_0x5aacb2(_0x1d966f)===_0x5aacb2(_0x4b30b4))&&_0x5a4f02[_0x53d1c2(0xf8)](_0x4b30b4),_0x1a6e33[_0x53d1c2(0xfb)](_0x29d2d9,_0x5a4f02);}function datasetFact(_0x221490){const _0x110d10=a281_0x188d;return{'id':_0x221490['id'],'name':_0x221490[_0x110d10(0x108)],'datasetCode':_0x221490[_0x110d10(0xe1)]};}
|
|
1
|
+
(function(_0x254dd0,_0x4c83ae){const _0x2411ea=a285_0xa146,_0x12531d=_0x254dd0();while(!![]){try{const _0x4dd175=parseInt(_0x2411ea(0xf1))/0x1+parseInt(_0x2411ea(0xe8))/0x2+-parseInt(_0x2411ea(0xe9))/0x3*(parseInt(_0x2411ea(0x105))/0x4)+-parseInt(_0x2411ea(0xf9))/0x5+-parseInt(_0x2411ea(0x10e))/0x6+-parseInt(_0x2411ea(0xe5))/0x7+parseInt(_0x2411ea(0xfe))/0x8;if(_0x4dd175===_0x4c83ae)break;else _0x12531d['push'](_0x12531d['shift']());}catch(_0x1358b1){_0x12531d['push'](_0x12531d['shift']());}}}(a285_0x3949,0xbf50e));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x37f24e){const _0x34962e=a285_0xa146,_0x59271f=[];for(const [_0x466ad8,_0x42a35a]of Object[_0x34962e(0x10b)](_0x37f24e[_0x34962e(0x100)])){const [_0x41ec1a,_0x1b091e]=_0x466ad8[_0x34962e(0x110)]('/');if(_0x41ec1a!==_0x34962e(0x115)||!_0x1b091e||!_0x42a35a[_0x34962e(0xeb)])continue;_0x59271f[_0x34962e(0xf0)]({'alias':_0x1b091e,'datasetCode':_0x42a35a[_0x34962e(0xeb)]});}return _0x59271f;}export function uniqueTrackedHookDirectoryByDataset(_0x468284){const _0x4980c6=a285_0xa146,_0x3124a9=new Map();for(const _0x344f04 of trackedHookDirectoryMappings(_0x468284)){const _0x3f6a93=directoryIdentity(_0x344f04[_0x4980c6(0xeb)]),_0x354118=_0x3124a9['get'](_0x3f6a93)??new Map();_0x354118[_0x4980c6(0x106)](directoryIdentity(_0x344f04[_0x4980c6(0x103)]),_0x344f04['alias']),_0x3124a9[_0x4980c6(0x106)](_0x3f6a93,_0x354118);}const _0x5921e0=new Map();for(const [_0x44259b,_0x322835]of _0x3124a9){if(_0x322835['size']>0x1)throw hookDirectoryError('HOOK_DUPLICATE_DIRECTORIES',_0x4980c6(0xf8)+_0x44259b+_0x4980c6(0xee)+[..._0x322835[_0x4980c6(0xf5)]()][_0x4980c6(0xff)](',\x20')+'.',{'datasetCode':_0x44259b,'directories':[..._0x322835[_0x4980c6(0xf5)]()]});_0x5921e0['set'](_0x44259b,[..._0x322835[_0x4980c6(0xf5)]()][0x0]);}return _0x5921e0;}export function assertUnambiguousHookDirectoryMappings(_0x4b66a5){const _0x11ca9c=a285_0xa146,_0x17f823=new Map();for(const {alias:_0xda7073,datasetCode:_0x250cfe}of _0x4b66a5){const _0xea8e18=directoryIdentity(_0xda7073),_0x5868d7=_0x17f823[_0x11ca9c(0xf4)](_0xea8e18)??new Set();_0x5868d7[_0x11ca9c(0x10f)](_0x250cfe),_0x17f823[_0x11ca9c(0x106)](_0xea8e18,_0x5868d7);}for(const [_0x6d5c81,_0xad1bc3]of _0x17f823){if(_0xad1bc3[_0x11ca9c(0xfc)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x11ca9c(0xe6)+_0x6d5c81+_0x11ca9c(0xf3),{'directoryName':_0x6d5c81,'datasetCodes':[..._0xad1bc3]});}}function a285_0xa146(_0x2e44d2,_0x71fd39){_0x2e44d2=_0x2e44d2-0xe2;const _0x3949a3=a285_0x3949();let _0xa14682=_0x3949a3[_0x2e44d2];return _0xa14682;}export function assertUnambiguousHookAliases(_0x440c7b){const _0x57e615=a285_0xa146,_0x1ae2ac=[..._0x440c7b],_0x286102=new Map(),_0xb5e4e0=new Map();for(const {alias:_0x50e0c6,datasetCode:_0xb0563b}of _0x1ae2ac){const _0x1c2ec4=directoryIdentity(_0x50e0c6),_0x46731b=directoryIdentity(_0xb0563b),_0x26cb9b=_0x286102[_0x57e615(0xf4)](_0x1c2ec4)??new Set();_0x26cb9b['add'](_0xb0563b),_0x286102['set'](_0x1c2ec4,_0x26cb9b);const _0x40713e=_0xb5e4e0[_0x57e615(0xf4)](_0x46731b)??new Set();_0x40713e[_0x57e615(0x10f)](_0x50e0c6),_0xb5e4e0[_0x57e615(0x106)](_0x46731b,_0x40713e);}for(const [_0x440ee2,_0x27e747]of _0x286102){if(_0x27e747[_0x57e615(0xfc)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS','SDK\x20alias\x20\x22'+_0x440ee2+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x440ee2,'datasetCodes':[..._0x27e747]});}for(const [_0x5abf80,_0x2e85c5]of _0xb5e4e0){if(_0x2e85c5[_0x57e615(0xfc)]>0x1)throw hookDirectoryError(_0x57e615(0x104),_0x57e615(0xf8)+_0x5abf80+_0x57e615(0xea),{'datasetCode':_0x5abf80,'aliases':[..._0x2e85c5]});}}export function buildHookDirectoryIndexes(_0x1487be,_0x1e9454=[]){const _0x449f9e=a285_0xa146,_0x433809=[..._0x1e9454];assertUnambiguousHookDirectoryMappings(_0x433809[_0x449f9e(0x109)](([_0x2ca231,_0x31efd5])=>({'alias':_0x2ca231,'datasetCode':_0x31efd5})));const _0x5501a2=new Map(),_0x3ad7e2=new Map();for(const _0xf88e24 of _0x1487be){appendUnique(_0x5501a2,directoryIdentity(_0xf88e24[_0x449f9e(0xef)]),_0xf88e24,_0x24c20a=>_0x24c20a[_0x449f9e(0xef)]);}for(const [_0x12c01f,_0x41d7d2]of _0x433809){appendUnique(_0x3ad7e2,directoryIdentity(_0x12c01f),_0x41d7d2,_0x490b0d=>_0x490b0d);}return{'datasetCodeToDatasets':_0x5501a2,'aliasToDatasetCodes':_0x3ad7e2};}export function resolvePushHookDirectory(_0x21e56a,_0x46c8e4,_0x26c501){const _0x393c71=a285_0xa146,_0x33ecfb=directoryIdentity(_0x21e56a),_0x5b4113=_0x26c501[_0x393c71(0xf2)][_0x393c71(0xf4)](_0x33ecfb)??[],_0x3ecd71=_0x26c501[_0x393c71(0xfd)]['get'](_0x33ecfb)??[],_0x4a09dc=new Set([..._0x5b4113['map'](_0x58d098=>_0x58d098[_0x393c71(0xef)]),..._0x3ecd71]);if(_0x4a09dc[_0x393c71(0xfc)]>0x1)throw hookDirectoryError(_0x393c71(0xe7),_0x393c71(0xe6)+_0x21e56a+_0x393c71(0x112),{'directoryName':_0x21e56a,'datasetCodes':[..._0x4a09dc]});const _0x11ba0c=[..._0x4a09dc][0x0];if(_0x11ba0c&&_0x46c8e4?.[_0x393c71(0xeb)]&&_0x11ba0c!==_0x46c8e4['datasetCode'])throw hookDirectoryError(_0x393c71(0x117),_0x393c71(0xe6)+_0x21e56a+_0x393c71(0xe2)+_0x46c8e4['datasetCode']+_0x393c71(0x10a)+_0x11ba0c+'\x22.',{'directoryName':_0x21e56a,'datasetCode':_0x11ba0c,'lockedDatasetCode':_0x46c8e4[_0x393c71(0xeb)]});const _0x3cd678=_0x11ba0c?findDatasetByCode(_0x26c501,_0x11ba0c):undefined,_0x546c47=!!_0x11ba0c&&_0x3ecd71[_0x393c71(0x102)](_0x11ba0c);if(_0x3cd678)return{'dataset':_0x3cd678,'datasetCode':_0x3cd678[_0x393c71(0xef)],..._0x546c47?{'alias':_0x21e56a}:{},'directoryProtocol':_0x546c47?_0x393c71(0x103):_0x393c71(0xeb),'warnings':[]};const _0x2c6cc2=_0x46c8e4?.[_0x393c71(0xeb)];if(_0x2c6cc2){const _0x45decc=findDatasetByCode(_0x26c501,_0x2c6cc2);if(_0x45decc)return{'dataset':_0x45decc,'datasetCode':_0x45decc[_0x393c71(0xef)],..._0x46c8e4['alias']?{'alias':_0x46c8e4[_0x393c71(0x103)]}:{},'directoryProtocol':_0x46c8e4[_0x393c71(0x103)]?'alias':_0x393c71(0xeb),'warnings':[]};}if(_0x11ba0c||_0x2c6cc2){const _0x3f579d=_0x11ba0c??_0x2c6cc2;throw hookDirectoryError('HOOK_DATASET_NOT_FOUND',_0x393c71(0xe6)+_0x21e56a+'\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.',{'directoryName':_0x21e56a,'datasetCode':_0x3f579d});}throw hookDirectoryError(_0x393c71(0xf7),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x21e56a+_0x393c71(0x101),{'directoryName':_0x21e56a});}function a285_0x3949(){const _0x3a87fe=['HOOK_DATASET_NOT_FOUND','HOOK_MAPPING_DRIFT','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','lockKey','details','10184923iKDVld','HOOK\x20directory\x20\x22','HOOK_DIRECTORY_AMBIGUOUS','2961326OnhBRK','2095881xxKTcY','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','datasetCode','HOOK_DUPLICATE_DIRECTORIES','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','code','push','600994oCWBQv','datasetCodeToDatasets','\x22\x20resolves\x20to\x20multiple\x20Datasets.','get','values','normalize','HOOK_DIRECTORY_UNRESOLVED','Dataset\x20\x22','2044560rUnIay','NFC','toLowerCase','size','aliasToDatasetCodes','18148656YEckYo','join','functions','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','includes','alias','HOOK_ALIAS_AMBIGUOUS','8gLGJNh','set','type','some','map','\x22\x20to\x20\x22','entries','length','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','1832724wMTmpa','add','split','message','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','Incomplete\x20HOOK\x20path:\x20','name','HOOK'];a285_0x3949=function(){return _0x3a87fe;};return a285_0x3949();}export function preflightPushHookDirectories(_0x37498a,_0xa8ed95,_0x4cf16e,_0x11fd3f){const _0x191d2e=a285_0xa146,_0x3dc6c1=new Map(),_0x23447b=new Map();for(const _0x154366 of _0x37498a){if(_0x154366[_0x191d2e(0x107)]!==_0x191d2e(0x115))continue;const _0x4e453a=_0x154366[_0x191d2e(0x103)];if(!_0x4e453a)throw hookDirectoryError(_0x191d2e(0xf7),_0x191d2e(0x113)+_0x154366[_0x191d2e(0xe3)],{'lockKey':_0x154366[_0x191d2e(0xe3)]});let _0x4be26a;try{_0x4be26a=resolvePushHookDirectory(_0x4e453a,_0xa8ed95['functions'][_0x154366[_0x191d2e(0xe3)]],_0x4cf16e);}catch(_0x2039cc){if(_0x11fd3f&&_0x2039cc instanceof CliError&&[_0x191d2e(0x116),_0x191d2e(0xf7)][_0x191d2e(0x102)](_0x2039cc['code'])){_0x11fd3f[_0x191d2e(0x106)](_0x154366[_0x191d2e(0xe3)],_0x2039cc[_0x191d2e(0x111)]);continue;}throw _0x2039cc;}_0x3dc6c1[_0x191d2e(0x106)](_0x154366[_0x191d2e(0xe3)],_0x4be26a);const _0x3e8e5c=_0x23447b[_0x191d2e(0xf4)](_0x4be26a[_0x191d2e(0xeb)])??new Set();_0x3e8e5c[_0x191d2e(0x10f)](_0x4e453a),_0x23447b[_0x191d2e(0x106)](_0x4be26a[_0x191d2e(0xeb)],_0x3e8e5c);}for(const [_0x34d7fd,_0x4a42e8]of _0x23447b){if(_0x4a42e8[_0x191d2e(0xfc)]>0x1)throw hookDirectoryError(_0x191d2e(0xec),_0x191d2e(0xf8)+_0x34d7fd+_0x191d2e(0x10d)+[..._0x4a42e8][_0x191d2e(0xff)](',\x20')+'.',{'datasetCode':_0x34d7fd,'directories':[..._0x4a42e8]});}return _0x3dc6c1;}export function hookDirectoryError(_0x4eec5f,_0x4cc100,_0x51b895){const _0x11c782=a285_0xa146,_0x4b3fce=new CliError(_0x4eec5f,0x2,_0x4eec5f+':\x20'+_0x4cc100);return _0x4b3fce[_0x11c782(0xe4)]=_0x51b895,_0x4b3fce;}function findDatasetByCode(_0x56a890,_0x18906d){const _0x58e470=a285_0xa146,_0x164294=_0x56a890[_0x58e470(0xf2)][_0x58e470(0xf4)](directoryIdentity(_0x18906d))??[];if(_0x164294[_0x58e470(0x10c)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x18906d+_0x58e470(0xed),{'datasetCode':_0x18906d,'candidates':_0x164294[_0x58e470(0x109)](datasetFact)});return _0x164294[0x0];}function directoryIdentity(_0x1dc78a){const _0x240ff3=a285_0xa146;return _0x1dc78a[_0x240ff3(0xf6)](_0x240ff3(0xfa))[_0x240ff3(0xfb)]();}function appendUnique(_0x1e5817,_0x486c4b,_0xda0396,_0x170a48){const _0x2947a5=a285_0xa146,_0x34b81a=_0x1e5817[_0x2947a5(0xf4)](_0x486c4b)??[];!_0x34b81a[_0x2947a5(0x108)](_0x569ba9=>_0x170a48(_0x569ba9)===_0x170a48(_0xda0396))&&_0x34b81a[_0x2947a5(0xf0)](_0xda0396),_0x1e5817[_0x2947a5(0x106)](_0x486c4b,_0x34b81a);}function datasetFact(_0xdaf1ea){const _0x21869e=a285_0xa146;return{'id':_0xdaf1ea['id'],'name':_0xdaf1ea[_0x21869e(0x114)],'datasetCode':_0xdaf1ea[_0x21869e(0xef)]};}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f210a,_0x2b0904){const _0xabff83=a286_0x13eb,_0x104b6f=_0x5f210a();while(!![]){try{const _0x593928=parseInt(_0xabff83(0xb3))/0x1+parseInt(_0xabff83(0xab))/0x2+parseInt(_0xabff83(0xbe))/0x3+parseInt(_0xabff83(0xb2))/0x4*(parseInt(_0xabff83(0xb5))/0x5)+parseInt(_0xabff83(0xad))/0x6*(parseInt(_0xabff83(0xaa))/0x7)+parseInt(_0xabff83(0xa8))/0x8+-parseInt(_0xabff83(0xba))/0x9*(parseInt(_0xabff83(0xbf))/0xa);if(_0x593928===_0x2b0904)break;else _0x104b6f['push'](_0x104b6f['shift']());}catch(_0x225e21){_0x104b6f['push'](_0x104b6f['shift']());}}}(a286_0x368a,0xb3963));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x2539cf,_0x3368f6,_0x4bcb1b,_0x5b9e6c){const _0x27c0f9=a286_0x13eb,_0x4c215c={'apps':_0x2539cf['apps']&&typeof _0x2539cf[_0x27c0f9(0xb8)]===_0x27c0f9(0xb4)?_0x2539cf['apps']:{}};let _0x2dce7a=_0x4c215c[_0x27c0f9(0xb8)][_0x3368f6];if(!_0x2dce7a)return _0x2dce7a={'scriptsRoot':_0x4bcb1b,'lastSync':'','functions':{}},_0x4c215c[_0x27c0f9(0xb8)][_0x3368f6]=_0x2dce7a,{'lockData':_0x4c215c,'appLock':_0x2dce7a};if(!_0x2dce7a[_0x27c0f9(0xbd)])_0x2dce7a[_0x27c0f9(0xbd)]=_0x4bcb1b;else{if(_0x2dce7a[_0x27c0f9(0xbd)]!==_0x4bcb1b)throw new Error(_0x5b9e6c+_0x27c0f9(0xac)+(_0x27c0f9(0xb9)+_0x4bcb1b+_0x27c0f9(0xae)+_0x2dce7a[_0x27c0f9(0xbd)]+_0x27c0f9(0xb7))+_0x27c0f9(0xb1));}return!_0x2dce7a[_0x27c0f9(0xb6)]&&(_0x2dce7a[_0x27c0f9(0xb6)]={}),!_0x2dce7a[_0x27c0f9(0xbb)]&&(_0x2dce7a[_0x27c0f9(0xbb)]=''),{'lockData':_0x4c215c,'appLock':_0x2dce7a};}function a286_0x368a(){const _0x3bebd5=['code','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','1624lVuRZH','556535kQKxox','object','14235vZnHCt','functions','\x22.\x20','apps','current\x20\x22','126lUmsmR','lastSync','stringify','scriptsRoot','2818467InJusZ','2975860GkeVMF','10033264UWslVx','utf8','6867mPcgLj','1858038TBRofV',':\x20scriptsRoot\x20mismatch\x20—\x20','408Jbtbwu','\x22\x20vs\x20lock\x20\x22','parse'];a286_0x368a=function(){return _0x3bebd5;};return a286_0x368a();}function a286_0x13eb(_0x572189,_0x129d01){_0x572189=_0x572189-0xa8;const _0x368a76=a286_0x368a();let _0x13eb1f=_0x368a76[_0x572189];return _0x13eb1f;}export async function readBffLockFile(_0x11da45){const _0x25af7f=a286_0x13eb;try{const _0x1e5834=await readFile(_0x11da45,_0x25af7f(0xa9)),_0x272693=JSON[_0x25af7f(0xaf)](_0x1e5834);return{'apps':_0x272693[_0x25af7f(0xb8)]&&typeof _0x272693['apps']===_0x25af7f(0xb4)?_0x272693[_0x25af7f(0xb8)]:{}};}catch(_0x15bba2){if(_0x15bba2[_0x25af7f(0xb0)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x15bba2));}}export async function writeBffLockFile(_0x5c644b,_0x3e8418){const _0x3b5deb=a286_0x13eb;await mkdir(dirname(_0x5c644b),{'recursive':!![]}),await writeFile(_0x5c644b,JSON[_0x3b5deb(0xbc)](_0x3e8418,null,0x2),'utf8');}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a288_0x4156(){const _0x1bedc7=['TODO:\x20add\x20script\x20description','2280762uqMUEK','15QFWcRv','functionNode','after','2292914izapea','436552FfdccA','90fFLphe','test','toLowerCase','startsWith','some','TODO:\x20补充脚本功能描述','operationType','607076drTDqZ','map','before','replace','trim','match','split','2910966vrRhjM','1509317DHiPJe','7590233QHceOp','entries','alias'];a288_0x4156=function(){return _0x1bedc7;};return a288_0x4156();}const a288_0x527eea=a288_0x54ae;(function(_0x190a9e,_0xef42d){const _0x8b3d67=a288_0x54ae,_0x203e2c=_0x190a9e();while(!![]){try{const _0x51e294=parseInt(_0x8b3d67(0xe8))/0x1+-parseInt(_0x8b3d67(0xf1))/0x2+-parseInt(_0x8b3d67(0xe7))/0x3+parseInt(_0x8b3d67(0xe0))/0x4*(parseInt(_0x8b3d67(0xee))/0x5)+parseInt(_0x8b3d67(0xed))/0x6+parseInt(_0x8b3d67(0xe9))/0x7+-parseInt(_0x8b3d67(0xd8))/0x8*(parseInt(_0x8b3d67(0xd9))/0x9);if(_0x51e294===_0xef42d)break;else _0x203e2c['push'](_0x203e2c['shift']());}catch(_0x1ee51d){_0x203e2c['push'](_0x203e2c['shift']());}}}(a288_0x4156,0xbb289));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a288_0x527eea(0xde);function a288_0x54ae(_0x223e98,_0x2492d3){_0x223e98=_0x223e98-0xd8;const _0x41565b=a288_0x4156();let _0x54aefb=_0x41565b[_0x223e98];return _0x54aefb;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a288_0x527eea(0xec);export function snakeToCamel(_0x12ff82){const _0x1554c6=a288_0x527eea;return _0x12ff82[_0x1554c6(0xdb)]()[_0x1554c6(0xe3)](/_([a-z])/g,(_0x1888a6,_0xf2880f)=>_0xf2880f['toUpperCase']());}export function findHookLocationByRemoteId(_0x3ca70b,_0x39d6b2){const _0x133ab5=a288_0x527eea;if(!_0x39d6b2)return undefined;for(const [_0x548a72,_0x1da18e]of Object[_0x133ab5(0xea)](_0x3ca70b)){if(_0x1da18e['remoteId']===_0x39d6b2&&_0x1da18e['datasetCode']&&_0x1da18e[_0x133ab5(0xdf)]&&_0x1da18e[_0x133ab5(0xef)]){const _0x5c6166=_0x548a72['split']('/')[0x1];return{'alias':_0x5c6166||_0x1da18e[_0x133ab5(0xeb)],'datasetCode':_0x1da18e['datasetCode'],'operationType':_0x1da18e['operationType'],'functionNode':_0x1da18e[_0x133ab5(0xef)]};}}return undefined;}export function extractScriptDescription(_0x4cfe82){const _0x4d5bb4=a288_0x527eea,_0xf8ff06=_0x4cfe82[_0x4d5bb4(0xe5)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0xf8ff06?.[0x1])return undefined;const _0x3e96c4=_0xf8ff06[0x1],_0x331398=_0x2642d1=>{const _0x15b753=_0x4d5bb4,_0x2dda65=_0x2642d1?.[_0x15b753(0xe4)]();if(!_0x2dda65||_0x2dda65===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x2dda65===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x2dda65;},_0x1a9ffc=_0x3e96c4['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x1a9ffc)return _0x331398(_0x1a9ffc[0x1]);const _0x3c56ca=_0x3e96c4[_0x4d5bb4(0xe6)](/\r?\n/)[_0x4d5bb4(0xe1)](_0x58f350=>_0x58f350[_0x4d5bb4(0xe3)](/^\s*\*\s?/,'')['trim']()),_0x47d57e=_0x3c56ca[_0x4d5bb4(0xdd)](_0x5cb620=>/^\[\s*脚本类型\s*]\s*\S+/[_0x4d5bb4(0xda)](_0x5cb620))&&_0x3c56ca[_0x4d5bb4(0xdd)](_0x31523e=>/^\[\s*脚本名称\s*]\s*\S+/[_0x4d5bb4(0xda)](_0x31523e));if(!_0x47d57e)return undefined;for(const _0x25d225 of _0x3c56ca){if(!_0x25d225||_0x25d225[_0x4d5bb4(0xdc)]('@')||/^\[[^\]]+]\s*/[_0x4d5bb4(0xda)](_0x25d225))continue;return _0x331398(_0x25d225);}return undefined;}export function isValidBffFunctionName(_0xbfed1c){const _0x2c9e19=a288_0x527eea;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x2c9e19(0xda)](_0xbfed1c);}export function normalizeHookFunctionNode(_0x2f3fa9){const _0x8f857c=a288_0x527eea;if(!_0x2f3fa9)return undefined;const _0x347b61=_0x2f3fa9[_0x8f857c(0xe4)]()[_0x8f857c(0xdb)]();if(_0x347b61===_0x8f857c(0xe2)||_0x347b61===_0x8f857c(0xf0))return _0x347b61;return undefined;}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Existing Cookie-authenticated cross-database analysis contract. */
|
|
2
|
+
export declare const CROSS_DB_ANALYSIS_PATHS: {
|
|
3
|
+
readonly start: "/smartapi/db-analysis/cross-db/start";
|
|
4
|
+
readonly status: "/smartapi/db-analysis/cross-db/status";
|
|
5
|
+
readonly latest: "/smartapi/db-analysis/cross-db/latest-job";
|
|
6
|
+
};
|
|
7
|
+
export interface CrossDbAnalysisStatus {
|
|
8
|
+
planId: string;
|
|
9
|
+
status: string;
|
|
10
|
+
currentStep?: string | null;
|
|
11
|
+
progressRate?: number | null;
|
|
12
|
+
errorMsg?: string | null;
|
|
13
|
+
/** Server facts, including participating/skipped IDs; no missing counts are inferred. */
|
|
14
|
+
result?: Record<string, unknown> | null;
|
|
15
|
+
gmtCreate?: string | null;
|
|
16
|
+
gmtModified?: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a289_0x1d78f6=a289_0x3f1a;(function(_0x40ab55,_0x1db0a3){const _0x954fb4=a289_0x3f1a,_0xaa7302=_0x40ab55();while(!![]){try{const _0x5856fd=parseInt(_0x954fb4(0xed))/0x1*(parseInt(_0x954fb4(0xeb))/0x2)+-parseInt(_0x954fb4(0xea))/0x3+parseInt(_0x954fb4(0xef))/0x4+-parseInt(_0x954fb4(0xe8))/0x5+parseInt(_0x954fb4(0xe9))/0x6+parseInt(_0x954fb4(0xe7))/0x7+-parseInt(_0x954fb4(0xf0))/0x8;if(_0x5856fd===_0x1db0a3)break;else _0xaa7302['push'](_0xaa7302['shift']());}catch(_0x97634a){_0xaa7302['push'](_0xaa7302['shift']());}}}(a289_0x4f47,0x7f1cd));function a289_0x3f1a(_0x2ba488,_0x411007){_0x2ba488=_0x2ba488-0xe7;const _0x4f47ca=a289_0x4f47();let _0x3f1a36=_0x4f47ca[_0x2ba488];return _0x3f1a36;}export const CROSS_DB_ANALYSIS_PATHS={'start':a289_0x1d78f6(0xec),'status':'/smartapi/db-analysis/cross-db/status','latest':a289_0x1d78f6(0xee)};function a289_0x4f47(){const _0xe25270=['1346184ddKXmC','658162DXNrzV','/smartapi/db-analysis/cross-db/start','1zoAxoc','/smartapi/db-analysis/cross-db/latest-job','3029376wSscLR','5912080exguxD','7084742teyFTd','3412225cJIEOy','1753830uXLaep'];a289_0x4f47=function(){return _0xe25270;};return a289_0x4f47();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a290_0xb6fa(_0x281f89,_0x5a4167){_0x281f89=_0x281f89-0xd1;const _0x1872d7=a290_0x1872();let _0xb6fade=_0x1872d7[_0x281f89];return _0xb6fade;}const a290_0x4f45c0=a290_0xb6fa;function a290_0x1872(){const _0xc5bfad=['8ycowMX','7925731DCWXny','1859300pQHODK','/smartapi/cross-db-relation/create','/smartapi/cross-db-relation/delete','5DcrOkN','2840481Wuxvwg','6tdqYAd','1144844WMlUhl','128981AAZlnw','5480964GGPVte','/smartapi/cross-db-relation/query','1520292JjwAoo','3OLxHgd'];a290_0x1872=function(){return _0xc5bfad;};return a290_0x1872();}(function(_0x1fda8f,_0x5adfb2){const _0x1e0cf5=a290_0xb6fa,_0x1bce1f=_0x1fda8f();while(!![]){try{const _0x4ab82a=-parseInt(_0x1e0cf5(0xde))/0x1*(-parseInt(_0x1e0cf5(0xdc))/0x2)+-parseInt(_0x1e0cf5(0xd4))/0x3*(parseInt(_0x1e0cf5(0xdd))/0x4)+-parseInt(_0x1e0cf5(0xda))/0x5*(parseInt(_0x1e0cf5(0xd3))/0x6)+parseInt(_0x1e0cf5(0xdb))/0x7+-parseInt(_0x1e0cf5(0xd5))/0x8*(-parseInt(_0x1e0cf5(0xd1))/0x9)+parseInt(_0x1e0cf5(0xd7))/0xa+-parseInt(_0x1e0cf5(0xd6))/0xb;if(_0x4ab82a===_0x5adfb2)break;else _0x1bce1f['push'](_0x1bce1f['shift']());}catch(_0x507a27){_0x1bce1f['push'](_0x1bce1f['shift']());}}}(a290_0x1872,0x4ff72));export const CROSS_DB_RELATION_PATHS={'list':a290_0x4f45c0(0xd2),'create':a290_0x4f45c0(0xd8),'update':'/smartapi/cross-db-relation/update','delete':a290_0x4f45c0(0xd9)};
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45bf3a,_0xecef34){const _0x2c9c9a=a291_0x4669,_0x3db939=_0x45bf3a();while(!![]){try{const _0x3b6bc7=-parseInt(_0x2c9c9a(0x147))/0x1+-parseInt(_0x2c9c9a(0x13b))/0x2*(-parseInt(_0x2c9c9a(0x136))/0x3)+parseInt(_0x2c9c9a(0x133))/0x4*(-parseInt(_0x2c9c9a(0x13a))/0x5)+-parseInt(_0x2c9c9a(0x12f))/0x6+parseInt(_0x2c9c9a(0x145))/0x7*(parseInt(_0x2c9c9a(0x14d))/0x8)+-parseInt(_0x2c9c9a(0x14c))/0x9*(-parseInt(_0x2c9c9a(0x146))/0xa)+parseInt(_0x2c9c9a(0x135))/0xb*(parseInt(_0x2c9c9a(0x132))/0xc);if(_0x3b6bc7===_0xecef34)break;else _0x3db939['push'](_0x3db939['shift']());}catch(_0x5c5a14){_0x3db939['push'](_0x3db939['shift']());}}}(a291_0x4747,0x4fb16));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x145d88){const _0x1a998b=a291_0x4669;if(cache[_0x1a998b(0x148)](_0x145d88))return cache[_0x1a998b(0x144)](_0x145d88);const _0x12539a=await listDatasets(_0x145d88),_0x52dbb2=new Map();for(const _0x16360c of _0x12539a){const _0x5b9805=_0x16360c[_0x1a998b(0x14a)];_0x5b9805?.[_0x1a998b(0x13f)]!=null&&_0x52dbb2[_0x1a998b(0x138)](_0x5b9805[_0x1a998b(0x13f)],_0x5b9805['dbName']??_0x1a998b(0x149)+_0x5b9805[_0x1a998b(0x13f)]);}const _0x198f80=[..._0x52dbb2[_0x1a998b(0x130)]()]['map'](([_0x414e64,_0xa38fb7])=>({'dbId':_0x414e64,'dbName':_0xa38fb7}));return cache[_0x1a998b(0x138)](_0x145d88,_0x198f80),_0x198f80;}export async function resolveDb(_0x28aba0,_0x3ebe46){const _0x62443=a291_0x4669,_0x3e89ba=await listDatabases(_0x28aba0);if(_0x3e89ba['length']===0x0)return{'resolved':[],'error':_0x62443(0x134)+_0x28aba0+_0x62443(0x14e)};if(!_0x3ebe46)return{'resolved':_0x3e89ba};const _0x5cd2be=Number(_0x3ebe46);if(!Number['isNaN'](_0x5cd2be)){const _0x5e00c6=_0x3e89ba[_0x62443(0x13c)](_0x411205=>_0x411205['dbId']===_0x5cd2be);if(_0x5e00c6)return{'resolved':[_0x5e00c6]};}const _0x22aab5=_0x3ebe46['toLowerCase'](),_0xa102cb=_0x3e89ba[_0x62443(0x13e)](_0x103c92=>_0x103c92[_0x62443(0x14b)][_0x62443(0x137)]()['includes'](_0x22aab5));if(_0xa102cb['length']>0x0)return{'resolved':_0xa102cb};const _0x54e74e=_0x3e89ba['map'](_0xe71544=>_0xe71544[_0x62443(0x14b)]+'\x20('+_0xe71544[_0x62443(0x13f)]+')')[_0x62443(0x142)](',\x20');return{'resolved':[],'error':_0x62443(0x139)+_0x3ebe46+_0x62443(0x131)+_0x28aba0+_0x62443(0x13d)+_0x54e74e+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}function a291_0x4669(_0x5b329b,_0x26ce82){_0x5b329b=_0x5b329b-0x12f;const _0x4747eb=a291_0x4747();let _0x46699b=_0x4747eb[_0x5b329b];return _0x46699b;}export async function resolveOneDb(_0x425de8,_0x16eedc){const _0x2e83c3=a291_0x4669,{resolved:_0x2e7bee,error:_0x1d1cdf}=await resolveDb(_0x425de8,_0x16eedc);if(_0x1d1cdf)return{'db':null,'error':_0x1d1cdf};if(_0x2e7bee[_0x2e83c3(0x141)]===0x1)return{'db':_0x2e7bee[0x0]};if(!_0x16eedc){const _0x3dc10e=_0x2e7bee[_0x2e83c3(0x14f)](_0x2f58fa=>_0x2f58fa[_0x2e83c3(0x14b)]+'\x20('+_0x2f58fa[_0x2e83c3(0x13f)]+')')[_0x2e83c3(0x142)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x3dc10e};}const _0x99763c=_0x2e7bee['map'](_0x5ebe12=>_0x5ebe12[_0x2e83c3(0x14b)]+'\x20('+_0x5ebe12[_0x2e83c3(0x13f)]+')')[_0x2e83c3(0x142)](',\x20');return{'db':null,'error':'\x22'+_0x16eedc+_0x2e83c3(0x140)+_0x99763c+_0x2e83c3(0x143)};}function a291_0x4747(){const _0x1db477=['54110qAkrCt','366583rKGrnq','has','db-','dbtableConfig','dbName','54YoWNUo','141992UlauHJ','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','map','3751602zmYrjR','entries','\x22\x20under\x20app\x20\x22','12583524Kehtco','4nHiREN','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','11XTBqlx','2979eeOJwu','toLowerCase','set','No\x20database\x20matching\x20\x22','1827235dCIioX','1178fgCsKq','find','\x22.\x20Available:\x20','filter','dbId','\x22\x20matches\x20multiple\x20databases:\x20','length','join','.\x20Be\x20more\x20specific.','get','7JVvyJW'];a291_0x4747=function(){return _0x1db477;};return a291_0x4747();}export async function getDbName(_0xf4d695,_0x1dcabe){const _0x446f04=a291_0x4669,_0x5a73b1=await listDatabases(_0xf4d695);return _0x5a73b1[_0x446f04(0x13c)](_0x2c8237=>_0x2c8237[_0x446f04(0x13f)]===_0x1dcabe)?.['dbName'];}
|