@lovrabet/rabetbase-cli 2.5.6-beta.1 → 2.5.7-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/README.md +15 -1
- 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/design-context.d.ts +1 -0
- package/lib/commands/dataset/design-context.js +1 -0
- package/lib/commands/dataset/design-start.d.ts +1 -0
- package/lib/commands/dataset/design-start.js +1 -0
- package/lib/commands/dataset/design-status.d.ts +1 -0
- package/lib/commands/dataset/design-status.js +1 -0
- package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
- package/lib/commands/dataset/design-sync-retry.js +1 -0
- package/lib/commands/dataset/design-sync-status.d.ts +1 -0
- package/lib/commands/dataset/design-sync-status.js +1 -0
- package/lib/commands/dataset/design-validate.d.ts +1 -0
- package/lib/commands/dataset/design-validate.js +1 -0
- 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.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.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/page-list.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +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.d.ts +6 -2
- 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 +37 -6
- 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.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.d.ts +12 -0
- 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/services/dataset-design/checkpoint.d.ts +17 -0
- package/lib/services/dataset-design/checkpoint.js +1 -0
- package/lib/services/dataset-design/commands.d.ts +6 -0
- package/lib/services/dataset-design/commands.js +1 -0
- package/lib/services/dataset-design/contract.d.ts +7 -0
- package/lib/services/dataset-design/contract.js +1 -0
- 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 +3 -2
- package/skills/rabetbase/SKILL.md +11 -7
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
- package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1bc0ca,_0x106b0d){const _0x551fb2=a283_0x1158,_0x116496=_0x1bc0ca();while(!![]){try{const _0x5e0d5a=parseInt(_0x551fb2(0x152))/0x1+-parseInt(_0x551fb2(0x139))/0x2*(-parseInt(_0x551fb2(0x13f))/0x3)+-parseInt(_0x551fb2(0x143))/0x4*(parseInt(_0x551fb2(0x133))/0x5)+-parseInt(_0x551fb2(0x153))/0x6+-parseInt(_0x551fb2(0x137))/0x7*(parseInt(_0x551fb2(0x154))/0x8)+-parseInt(_0x551fb2(0x144))/0x9*(parseInt(_0x551fb2(0x14e))/0xa)+parseInt(_0x551fb2(0x14f))/0xb;if(_0x5e0d5a===_0x106b0d)break;else _0x116496['push'](_0x116496['shift']());}catch(_0x3dd28a){_0x116496['push'](_0x116496['shift']());}}}(a283_0x3bc7,0x4906e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a283_0x1158(_0x15bcd0,_0x536679){_0x15bcd0=_0x15bcd0-0x133;const _0x3bc742=a283_0x3bc7();let _0x115886=_0x3bc742[_0x15bcd0];return _0x115886;}import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0xfaf67e){const _0x14add3=a283_0x1158;return typeof _0xfaf67e===_0x14add3(0x141)&&_0xfaf67e[_0x14add3(0x15b)]()?_0xfaf67e[_0x14add3(0x15b)]():undefined;}function appProfiles(_0x2c67d9){const _0x5814a2=a283_0x1158;return _0x2c67d9[_0x5814a2(0x142)]&&typeof _0x2c67d9[_0x5814a2(0x142)]===_0x5814a2(0x147)?_0x2c67d9[_0x5814a2(0x142)]:{};}function a283_0x3bc7(){const _0x3596b6=['ENV','FORMAT','locale','source','production','703130ooWyay','4096334NOmtuf','projectConfig','accessKey','379299ZQkReT','1483524zmNxUM','312OjuduL','high-risk-write','pageSize','env','appcode','filter','keys','trim','entries','VERBOSE','projectPath','10mCWANA','RISK_LEVEL','riskLevel','globalConfig','105014RqoMxM','app','54576MnBmys','COOKIE','format','apiDir','value','length','51NFdaVD','PAGE_SIZE','string','apps','27652nrzLtY','9gObdlK','APP','cookie','object','region'];a283_0x3bc7=function(){return _0x3596b6;};return a283_0x3bc7();}function resolveDefaultAppName(_0x1b2784){const _0x5dc90e=a283_0x1158,_0x933c7d=stringConfigValue(_0x1b2784['defaultApp']);if(_0x933c7d)return _0x933c7d;const _0x592e8e=Object[_0x5dc90e(0x15a)](appProfiles(_0x1b2784));return _0x592e8e[_0x5dc90e(0x13e)]===0x1?_0x592e8e[0x0]:undefined;}function resolveTopLevelAppCode(_0x24f50f){const _0x139273=a283_0x1158;return stringConfigValue(_0x24f50f['appcode'])||stringConfigValue(_0x24f50f[_0x139273(0x138)]);}function normalizeRiskCeiling(_0x623511){const _0x21a3a8=a283_0x1158;if(_0x623511===undefined||_0x623511===null)return undefined;if(_0x623511==='read'||_0x623511==='write'||_0x623511===_0x21a3a8(0x155))return _0x623511;return'read';}function resolveRiskCeiling(..._0x5f45a5){const _0x173648=a283_0x1158;let _0x498ba5;for(const _0xbc55ec of _0x5f45a5){const _0x36c1d4=normalizeRiskCeiling(_0xbc55ec);_0x36c1d4&&(!_0x498ba5||riskLevelOrder(_0x36c1d4)<riskLevelOrder(_0x498ba5))&&(_0x498ba5=_0x36c1d4);}return _0x498ba5??DEFAULT_CONFIG_VALUES[_0x173648(0x135)];}export function resolveAppConfig({raw:_0x5a296a,flags:_0x4f62dc,layers:_0x538cbb,readEnv:_0x457256}){const _0x4accc7=a283_0x1158,_0xbd546b=_0x538cbb?.[_0x4accc7(0x150)]??{},_0x477d0a=_0x538cbb?.[_0x4accc7(0x136)]??{},_0x42dbec=!!_0x538cbb?.[_0x4accc7(0x15e)]||Object[_0x4accc7(0x15a)](_0xbd546b)['length']>0x0,_0x4797dc=!_0x42dbec,_0x47ff39=_0x42dbec?resolveDefaultAppName(_0xbd546b):undefined,_0x150738=_0x4797dc?resolveDefaultAppName(_0x477d0a):undefined,_0x59543d=stringConfigValue(_0x4f62dc['app']),_0x26f9ff=_0x457256(_0x4accc7(0x145)),_0x4444eb={};if(_0x5a296a[_0x4accc7(0x142)]&&typeof _0x5a296a[_0x4accc7(0x142)]===_0x4accc7(0x147))for(const [_0x34a6b5,_0x3bf424]of Object[_0x4accc7(0x15c)](_0x5a296a[_0x4accc7(0x142)])){_0x3bf424&&typeof _0x3bf424===_0x4accc7(0x147)&&_0x3bf424[_0x4accc7(0x158)]&&(_0x4444eb[_0x34a6b5]=_0x3bf424);}const _0x9eca58=_0x47ff39||_0x150738||resolveDefaultAppName(_0x5a296a),_0x234675=Object['keys'](_0x4444eb)[_0x4accc7(0x13e)]>0x0,_0x5997e1=_0x59543d||_0x47ff39||_0x26f9ff||_0x150738||_0x9eca58||undefined,_0x3cffe9=stringConfigValue(_0x4f62dc['appcode']),_0x3190e8=_0x3cffe9?Object[_0x4accc7(0x15c)](_0x4444eb)[_0x4accc7(0x159)](([,_0x42af97])=>_0x42af97?.[_0x4accc7(0x158)]===_0x3cffe9):[],_0x5decef=_0x59543d&&_0x4444eb[_0x59543d]?.[_0x4accc7(0x158)]===_0x3cffe9?[_0x59543d,_0x4444eb[_0x59543d]]:undefined,_0x46a885=_0x5decef??(_0x3190e8['length']===0x1?_0x3190e8[0x0]:undefined),_0x1e0cfe=_0x46a885?.[0x0],_0x36b52c=_0x46a885?.[0x1],_0x2d2ef9=_0x3cffe9?_0x1e0cfe:_0x5997e1;let _0x4bd904=_0x2d2ef9&&_0x4444eb[_0x2d2ef9]?_0x4444eb[_0x2d2ef9]:undefined;_0x3cffe9&&_0x36b52c&&(_0x4bd904=_0x36b52c);const _0x41ba79=_0x3cffe9?_0x36b52c??_0x4bd904:_0x4bd904,_0x327089=!_0x59543d&&!_0x47ff39&&_0x26f9ff&&_0x2d2ef9===_0x26f9ff,_0x5da1ac=_0x59543d||(_0x327089?_0x26f9ff:undefined)||(_0x3cffe9?_0x1e0cfe:undefined),_0x485df2=_0x41ba79?.[_0x4accc7(0x158)],_0x118855=_0x42dbec?resolveTopLevelAppCode(_0xbd546b):undefined,_0x5e55c4=_0x4797dc?resolveTopLevelAppCode(_0x477d0a):undefined,_0x3df3fe=_0x59543d||_0x47ff39?_0x485df2:undefined,_0x2eefbd=!_0x59543d&&!_0x47ff39?_0x485df2:undefined,_0x3fbfe6=_0x3cffe9||_0x3df3fe||_0x118855||_0x2eefbd||_0x5e55c4||undefined,_0x4fe652=_0x42dbec?stringConfigValue(_0xbd546b[_0x4accc7(0x157)]):undefined,_0x1729c9=_0x4797dc?stringConfigValue(_0x477d0a[_0x4accc7(0x157)]):undefined,_0x4e854b=_0x4f62dc['env']||_0x41ba79?.['env']||_0x4fe652||_0x457256(_0x4accc7(0x149))||_0x1729c9||_0x5a296a['env']||DEFAULT_CONFIG_VALUES['env'],_0x504d36=_0x41ba79?.['locale']||_0x5a296a[_0x4accc7(0x14b)]||DEFAULT_CONFIG_VALUES['locale'],_0x153370=_0x457256(_0x4accc7(0x13a))||_0x41ba79?.['cookie']||_0x5a296a[_0x4accc7(0x146)]||undefined,_0x4b0eb9=_0x457256('ACCESS_KEY')||_0x41ba79?.[_0x4accc7(0x151)]||_0x5a296a[_0x4accc7(0x151)]||undefined,_0x3437df=_0x4f62dc[_0x4accc7(0x13b)]||_0x457256(_0x4accc7(0x14a))||_0x41ba79?.['format']||_0x5a296a['format'],_0x1bb3a2=normalizeLegacyOutputFormat(_0x3437df),_0x9557d7=_0x457256(_0x4accc7(0x140))||_0x41ba79?.[_0x4accc7(0x156)]||_0x5a296a[_0x4accc7(0x156)],_0x17cac0=_0x9557d7?Number(_0x9557d7)||undefined:undefined,_0x3173b1=_0x538cbb?[_0x538cbb['globalConfig'][_0x4accc7(0x135)],_0x538cbb[_0x4accc7(0x150)][_0x4accc7(0x135)]]:[_0x5a296a[_0x4accc7(0x135)]],_0x219d88=resolveRiskCeiling(..._0x3173b1,_0x41ba79?.[_0x4accc7(0x135)]),_0x5b319c=resolveRiskCeiling(_0x219d88,_0x457256(_0x4accc7(0x134))),_0x3823f5=_0x457256(_0x4accc7(0x15d)),_0x3e554b=_0x3823f5==='1'||_0x3823f5==='true',_0xca5b53=_0x41ba79?.[_0x4accc7(0x13c)]||_0x5a296a[_0x4accc7(0x13c)]||DEFAULT_CONFIG_VALUES[_0x4accc7(0x13c)],_0x2ca645=selectConfiguredRegion({'appRegion':_0x41ba79?.[_0x4accc7(0x148)],'projectRegion':_0x42dbec?_0xbd546b[_0x4accc7(0x148)]:undefined,'globalRegion':_0x42dbec||_0x4797dc?_0x477d0a[_0x4accc7(0x148)]:undefined,'mergedRegion':_0x5a296a[_0x4accc7(0x148)]}),_0x1909f2=normalizeLovrabetRegion(_0x2ca645[_0x4accc7(0x13d)])??DEFAULT_LOVRABET_REGION,_0x566259=isDaily(normalizeEnv(String(_0x4e854b)))?'daily':_0x4accc7(0x14d);return{'appCode':typeof _0x3fbfe6===_0x4accc7(0x141)&&_0x3fbfe6[_0x4accc7(0x15b)]()?_0x3fbfe6[_0x4accc7(0x15b)]():undefined,'region':_0x1909f2,'regionConfiguredValue':_0x2ca645['value'],'regionSource':_0x2ca645[_0x4accc7(0x14c)],'env':_0x566259,'locale':_0x504d36,'cookie':_0x153370,'accessKey':_0x4b0eb9,'format':_0x1bb3a2,'pageSize':_0x17cac0,'riskLevel':_0x5b319c,'verbose':_0x3e554b,'apiDir':_0xca5b53,'apps':_0x4444eb,'defaultApp':_0x9eca58,'currentApp':_0x234675?_0x2d2ef9:undefined,'explicitAppName':_0x5da1ac};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a284_0x2756(){const _0x445e5a=['30UkFncw','1420460IevjEo','565980BxIhgZ','5426112ijkMTb','18qtaYqJ','authRequired','cookie','4863330tAXiOR','21mkuyNT','319iMuHZU','../auth/get-cookie.js','4335507DgnFfq','321uAepWN','3130iMAybT','1895144GjuBYU'];a284_0x2756=function(){return _0x445e5a;};return a284_0x2756();}(function(_0x1eaad3,_0x304a50){const _0x4284f2=a284_0x1578,_0x352e9a=_0x1eaad3();while(!![]){try{const _0x3d1c60=parseInt(_0x4284f2(0x75))/0x1*(parseInt(_0x4284f2(0x76))/0x2)+parseInt(_0x4284f2(0x74))/0x3+-parseInt(_0x4284f2(0x7b))/0x4+parseInt(_0x4284f2(0x79))/0x5*(parseInt(_0x4284f2(0x7c))/0x6)+parseInt(_0x4284f2(0x71))/0x7*(-parseInt(_0x4284f2(0x77))/0x8)+parseInt(_0x4284f2(0x70))/0x9*(parseInt(_0x4284f2(0x78))/0xa)+parseInt(_0x4284f2(0x72))/0xb*(-parseInt(_0x4284f2(0x7a))/0xc);if(_0x3d1c60===_0x304a50)break;else _0x352e9a['push'](_0x352e9a['shift']());}catch(_0xc5b91a){_0x352e9a['push'](_0x352e9a['shift']());}}}(a284_0x2756,0xf0b48));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a284_0x1578(_0x2eb74e,_0x4b1539){_0x2eb74e=_0x2eb74e-0x70;const _0x2756b0=a284_0x2756();let _0x15780e=_0x2756b0[_0x2eb74e];return _0x15780e;}export async function buildAuth(_0x343515){const _0x977be5=a284_0x1578,{getCookie:_0x35d379}=await import(_0x977be5(0x73)),_0x52e06e=_0x343515[_0x977be5(0x7e)]||_0x35d379(),_0x2939f6=_0x52e06e?await getIsSessionValid():![];return{'cookie':_0x52e06e,'isLoggedIn':_0x2939f6,async 'getOrLogin'(){const _0x207c9a=_0x977be5;if(_0x52e06e&&_0x2939f6)return _0x52e06e;throw CliErrors[_0x207c9a(0x7d)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a285_0x21ebf8=a285_0x6349;(function(_0x42816e,_0x368595){const _0x2b1e86=a285_0x6349,_0x406732=_0x42816e();while(!![]){try{const _0x275ac0=parseInt(_0x2b1e86(0x173))/0x1+parseInt(_0x2b1e86(0x16d))/0x2+-parseInt(_0x2b1e86(0x165))/0x3+parseInt(_0x2b1e86(0x14c))/0x4+parseInt(_0x2b1e86(0x159))/0x5+parseInt(_0x2b1e86(0x14e))/0x6*(-parseInt(_0x2b1e86(0x151))/0x7)+-parseInt(_0x2b1e86(0x16a))/0x8;if(_0x275ac0===_0x368595)break;else _0x406732['push'](_0x406732['shift']());}catch(_0x26b885){_0x406732['push'](_0x406732['shift']());}}}(a285_0x1d05,0xbe61d));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a285_0x21ebf8(0x167);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();function a285_0x1d05(){const _0x3f32f5=['.rabetbase.json','routing','.tmp','3975616zmxGIO','error','apiDir','2582728mdnBnQ','format','skillDomain','locale','parse','kbServiceDomain','365910eXcVfJ','silent','cwd','utf8','pageSize','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','config','Global','length','set','data','inherit','message','migrated','accessKey','missing','4063616SbhsXD','empty','44868LsGtvs','cookie','apps','161oGsFoB','stringify','warn','localDomain','kbDomain','appDomain','object','riskLevel','1564745lSbWlV','trim','defaultApp','userDomain','appcode','status','\x0a\x20\x20','get','certificateDomain','keys','app','env','4612128regXAv','runtimeDomain'];a285_0x1d05=function(){return _0x3f32f5;};return a285_0x1d05();}export function resolveConfigPath(_0x83ccc8){for(const _0x4d293 of CONFIG_NAMES){const _0x3c6bdc=resolve(_0x83ccc8,_0x4d293);if(existsSync(_0x3c6bdc))return _0x3c6bdc;}return undefined;}export function findProjectRootDirectory(_0x2a26ab=process[a285_0x21ebf8(0x13e)]()){let _0xb704b3=resolve(_0x2a26ab);const {root:_0x4b0fa5}=parse(_0xb704b3),_0x43018f=homedir();while(!![]){if(resolveConfigPath(_0xb704b3)){if(_0xb704b3===_0x43018f)break;return _0xb704b3;}if(_0xb704b3===_0x4b0fa5||_0xb704b3===_0x43018f)break;const _0x25e048=dirname(_0xb704b3);if(_0x25e048===_0xb704b3)break;_0xb704b3=_0x25e048;}return resolve(_0x2a26ab);}export function getProjectConfigPath(){const _0x4d9d73=a285_0x21ebf8;return resolveConfigPath(process[_0x4d9d73(0x13e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x34b9e4){const _0x33e3fb=a285_0x21ebf8;if(!existsSync(_0x34b9e4))return{'status':_0x33e3fb(0x14b)};try{const _0x3ecd3a=readFileSync(_0x34b9e4,{'encoding':_0x33e3fb(0x13f)});if(!_0x3ecd3a?.['trim']())return{'status':_0x33e3fb(0x14d)};const _0x250702=JSON[_0x33e3fb(0x171)](_0x3ecd3a);return{'status':'ok','data':_0x250702};}catch(_0x4f8c89){return{'status':_0x33e3fb(0x16b),'message':_0x4f8c89 instanceof Error?_0x4f8c89[_0x33e3fb(0x148)]:String(_0x4f8c89)};}}function parseCliConfigJsonFile(_0x5b0b48,_0x1b015f,_0x352c83){const _0x57b81d=a285_0x21ebf8,_0x4e435f=inspectCliConfigJsonFile(_0x5b0b48);if(_0x4e435f[_0x57b81d(0x15e)]===_0x57b81d(0x14b)||_0x4e435f[_0x57b81d(0x15e)]===_0x57b81d(0x14d))return{};if(_0x4e435f['status']==='ok')return _0x4e435f[_0x57b81d(0x146)];return _0x1b015f===_0x57b81d(0x153)&&_0x352c83&&console[_0x57b81d(0x16b)](CLI_BIN_NAME+':\x20'+_0x352c83+_0x57b81d(0x141)+_0x5b0b48+_0x57b81d(0x15f)+_0x4e435f[_0x57b81d(0x148)]),{};}function normalizeLegacyConfigShape(_0x8cc412){const _0x5aae26=a285_0x21ebf8;if(!_0x8cc412||typeof _0x8cc412!==_0x5aae26(0x157))return{'config':{},'migrated':![]};const _0x32c029={..._0x8cc412},_0x296a3c=_0x32c029[_0x5aae26(0x150)]&&typeof _0x32c029[_0x5aae26(0x150)]===_0x5aae26(0x157)?{..._0x32c029[_0x5aae26(0x150)]}:{},_0x5b29b3=Object[_0x5aae26(0x162)](_0x296a3c)['length'],_0x1de1a4=_0x32c029['appcode']||_0x32c029[_0x5aae26(0x163)];let _0x186aa4=![];if(_0x1de1a4&&_0x5b29b3===0x0){const _0x17efa0=typeof _0x32c029[_0x5aae26(0x15b)]==='string'&&_0x32c029[_0x5aae26(0x15b)][_0x5aae26(0x15a)]()?_0x32c029[_0x5aae26(0x15b)]:String(_0x1de1a4)['trim']();_0x296a3c[_0x17efa0]={'appcode':String(_0x1de1a4)[_0x5aae26(0x15a)](),..._0x32c029[_0x5aae26(0x164)]!=null?{'env':_0x32c029[_0x5aae26(0x164)]}:{},..._0x32c029[_0x5aae26(0x16c)]!=null?{'apiDir':_0x32c029[_0x5aae26(0x16c)]}:{},..._0x32c029[_0x5aae26(0x14f)]!=null?{'cookie':_0x32c029[_0x5aae26(0x14f)]}:{},..._0x32c029[_0x5aae26(0x14a)]!=null?{'accessKey':_0x32c029[_0x5aae26(0x14a)]}:{},..._0x32c029[_0x5aae26(0x16e)]!=null?{'format':_0x32c029['format']}:{},..._0x32c029[_0x5aae26(0x140)]!=null?{'pageSize':_0x32c029['pageSize']}:{},..._0x32c029[_0x5aae26(0x158)]!=null?{'riskLevel':_0x32c029[_0x5aae26(0x158)]}:{},..._0x32c029[_0x5aae26(0x170)]!=null?{'locale':_0x32c029[_0x5aae26(0x170)]}:{}},_0x32c029['apps']=_0x296a3c,delete _0x32c029[_0x5aae26(0x15b)],_0x186aa4=!![];}return(_0x5aae26(0x15d)in _0x32c029||_0x5aae26(0x163)in _0x32c029)&&(delete _0x32c029[_0x5aae26(0x15d)],delete _0x32c029[_0x5aae26(0x163)],_0x186aa4=!![]),{'config':_0x32c029,'migrated':_0x186aa4};}function writeNormalizedConfigIfNeeded(_0x4476e3,_0x1cf2c7){const _0x24ed2a=a285_0x21ebf8,_0x35e6e1=JSON[_0x24ed2a(0x152)](normalizeConfigForWrite(_0x1cf2c7),null,0x2)+'\x0a';if(normalizedWriteCache[_0x24ed2a(0x160)](_0x4476e3)===_0x35e6e1)return;writeConfigFile(_0x4476e3,_0x1cf2c7),normalizedWriteCache[_0x24ed2a(0x145)](_0x4476e3,_0x35e6e1);}function parseAndNormalizeConfig(_0x2faabe,_0x9a00fb,_0x5bba60){const _0x307a60=a285_0x21ebf8,_0x16d401=parseCliConfigJsonFile(_0x2faabe,_0x9a00fb,_0x5bba60),_0x187a67=normalizeLegacyConfigShape(_0x16d401);if(_0x187a67[_0x307a60(0x149)])try{writeNormalizedConfigIfNeeded(_0x2faabe,_0x187a67['config']);}catch{}return _0x187a67[_0x307a60(0x142)];}export function loadRawConfigLayers(_0xd0dfa2){const _0x7ac28c=a285_0x21ebf8;let _0x1a3dc0={},_0x6459a4={};const _0x2362c0=resolveConfigPath(homedir());_0x2362c0&&(_0x1a3dc0=parseAndNormalizeConfig(_0x2362c0,_0x7ac28c(0x153),_0x7ac28c(0x143)));const _0x49ef7c=_0xd0dfa2??findProjectRootDirectory(),_0x12f22f=resolveConfigPath(_0x49ef7c);return _0x12f22f&&(_0x6459a4=parseAndNormalizeConfig(_0x12f22f,'warn','Project')),{'globalPath':_0x2362c0,'projectPath':_0x12f22f,'globalConfig':_0x1a3dc0,'projectConfig':_0x6459a4};}const INHERIT_WHITELIST=[a285_0x21ebf8(0x14f),a285_0x21ebf8(0x14a),a285_0x21ebf8(0x170),a285_0x21ebf8(0x16e),a285_0x21ebf8(0x158),a285_0x21ebf8(0x140),'region',a285_0x21ebf8(0x168),a285_0x21ebf8(0x15c),'apiDomain',a285_0x21ebf8(0x166),a285_0x21ebf8(0x16f),a285_0x21ebf8(0x155),a285_0x21ebf8(0x172),a285_0x21ebf8(0x156),a285_0x21ebf8(0x154),a285_0x21ebf8(0x161)];export function mergeRawConfigLayers(_0x32aef2){const _0x2cbcd8=a285_0x21ebf8,{globalConfig:_0x18271a,projectConfig:_0x1aa91f}=_0x32aef2,_0x49daae=!!_0x32aef2['projectPath']||Object['keys'](_0x1aa91f)[_0x2cbcd8(0x144)]>0x0;if(!_0x49daae)return mergeGlobalOnly(_0x18271a);return mergeProjectFirst(_0x18271a,_0x1aa91f);}function mergeGlobalOnly(_0x7eacc7){const _0x49541c=a285_0x21ebf8,_0x4442a0={..._0x7eacc7};delete _0x4442a0[_0x49541c(0x147)];const _0x53511c=_0x7eacc7[_0x49541c(0x150)]&&typeof _0x7eacc7[_0x49541c(0x150)]===_0x49541c(0x157)?_0x7eacc7[_0x49541c(0x150)]:{};if(Object['keys'](_0x53511c)[_0x49541c(0x144)]>0x0)_0x4442a0[_0x49541c(0x150)]=_0x53511c;if(_0x7eacc7[_0x49541c(0x15b)])_0x4442a0[_0x49541c(0x15b)]=_0x7eacc7[_0x49541c(0x15b)];return _0x4442a0;}function mergeProjectFirst(_0x4f781d,_0x48679c){const _0x6d4e46=a285_0x21ebf8,_0xaf8af9={..._0x48679c};delete _0xaf8af9['inherit'];for(const _0x13e2d6 of INHERIT_WHITELIST){!(_0x13e2d6 in _0xaf8af9)&&_0x13e2d6 in _0x4f781d&&(_0xaf8af9[_0x13e2d6]=_0x4f781d[_0x13e2d6]);}const _0x3785ac=_0x48679c[_0x6d4e46(0x150)]&&typeof _0x48679c[_0x6d4e46(0x150)]==='object'?_0x48679c[_0x6d4e46(0x150)]:{};return Object[_0x6d4e46(0x162)](_0x3785ac)[_0x6d4e46(0x144)]>0x0?_0xaf8af9[_0x6d4e46(0x150)]=_0x3785ac:delete _0xaf8af9[_0x6d4e46(0x150)],_0x6d4e46(0x15b)in _0x48679c?_0xaf8af9[_0x6d4e46(0x15b)]=_0x48679c[_0x6d4e46(0x15b)]:delete _0xaf8af9[_0x6d4e46(0x15b)],_0xaf8af9;}function a285_0x6349(_0x42bf76,_0x55d450){_0x42bf76=_0x42bf76-0x13d;const _0x1d0511=a285_0x1d05();let _0x6349a7=_0x1d0511[_0x42bf76];return _0x6349a7;}export function readRawConfigWithLayers(_0x3098f9){const _0x1802d4=loadRawConfigLayers(_0x3098f9);return{'config':mergeRawConfigLayers(_0x1802d4),'layers':_0x1802d4};}export function readRawConfig(_0x3d4168){return mergeRawConfigLayers(loadRawConfigLayers(_0x3d4168));}export function readConfigFile(_0x343649){const _0x1516aa=a285_0x21ebf8;return parseAndNormalizeConfig(_0x343649,_0x1516aa(0x13d));}export function writeConfigFile(_0x37d4ba,_0x57cc31){const _0xe36254=a285_0x21ebf8,_0x42f977=dirname(_0x37d4ba);!existsSync(_0x42f977)&&mkdirSync(_0x42f977,{'recursive':!![]});const _0x940b6e=_0x37d4ba+_0xe36254(0x169);try{const _0xbb4f96=normalizeConfigForWrite(_0x57cc31);writeFileSync(_0x940b6e,JSON['stringify'](_0xbb4f96,null,0x2)+'\x0a',{'encoding':_0xe36254(0x13f),'mode':0x180}),renameSync(_0x940b6e,_0x37d4ba);}catch(_0x3bcd65){try{unlinkSync(_0x940b6e);}catch{}throw _0x3bcd65;}}export function resolveWriteConfigPath(_0x3f35ae){const _0x1af8e4=_0x3f35ae==='project'?process['cwd']():homedir(),_0x32331e=resolveConfigPath(_0x1af8e4);return _0x32331e??resolve(_0x1af8e4,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a279_0x5a5500=a279_0x48b0;(function(_0x1ea5ef,_0x32236a){const _0x53b733=a279_0x48b0,_0x20f61b=_0x1ea5ef();while(!![]){try{const _0x36a7e3=parseInt(_0x53b733(0x200))/0x1+parseInt(_0x53b733(0x1f4))/0x2+parseInt(_0x53b733(0x1f0))/0x3+-parseInt(_0x53b733(0x1ca))/0x4+parseInt(_0x53b733(0x1ec))/0x5*(parseInt(_0x53b733(0x20c))/0x6)+-parseInt(_0x53b733(0x1fa))/0x7*(-parseInt(_0x53b733(0x207))/0x8)+parseInt(_0x53b733(0x1ef))/0x9*(-parseInt(_0x53b733(0x204))/0xa);if(_0x36a7e3===_0x32236a)break;else _0x20f61b['push'](_0x20f61b['shift']());}catch(_0x22db79){_0x20f61b['push'](_0x20f61b['shift']());}}}(a279_0x13dd,0x4f91c));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x84677b){return process.env[`RABETBASE_${_0x84677b}`]||process.env[`LOVRABET_${_0x84677b}`]||undefined;}function optionalString(_0xff83c){const _0x4e05e3=a279_0x48b0;return typeof _0xff83c===_0x4e05e3(0x1d7)&&_0xff83c[_0x4e05e3(0x1d0)]()?_0xff83c['trim']():undefined;}function a279_0x48b0(_0x3a8f05,_0x30f2a6){_0x3a8f05=_0x3a8f05-0x1c6;const _0x13dd1b=a279_0x13dd();let _0x48b0db=_0x13dd1b[_0x3a8f05];return _0x48b0db;}export function isRoutingRecoveryService(_0x11f4a9){const _0x2ed859=a279_0x48b0;return _0x11f4a9===_0x2ed859(0x1d8)||_0x11f4a9===_0x2ed859(0x1dd);}export async function createContext(_0x32a464){const _0x35bf7c=a279_0x48b0,{config:_0x3c29e9,layers:_0x32159a}=readRawConfigWithLayers(),_0x4990d4=buildConfig(_0x3c29e9,_0x32a464,_0x32159a);await initGlobalEnvironment(_0x4990d4);const {getUserDomain:_0x1ade4a,getApiDomain:_0x3f63de}=await import(_0x35bf7c(0x1d4)),_0x2b62bb={'apiDomain':_0x3f63de(),'userDomain':_0x1ade4a()},_0x50111d=await buildAuth(_0x4990d4);logger['setLogPath'](process[_0x35bf7c(0x209)]());const _0x1c5ed5=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x35bf7c(0x1f9)]('\x20'))[_0x35bf7c(0x1d0)]();logger['setRawCommand'](_0x1c5ed5);const {isNonInteractive:_0x3b4541}=await import(_0x35bf7c(0x1ed)),_0x15dbd7=_0x3b4541(_0x32a464);return{'config':_0x4990d4,'auth':_0x50111d,'logger':logger,'env':_0x2b62bb,'nonInteractive':_0x15dbd7};}export function buildConfigFromFlags(_0x207a56){const {config:_0x45b6fd,layers:_0x1d0784}=readRawConfigWithLayers();return buildConfig(_0x45b6fd,_0x207a56,_0x1d0784);}export async function initGlobalEnvironment(_0x3ae266){const _0x5f02fe=a279_0x48b0,_0x6e918=_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1d2)&&_0x3ae266[_0x5f02fe(0x1e8)]?'app\x20profile\x20\x22'+_0x3ae266['currentApp']+'\x22':_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1e9)?_0x5f02fe(0x20e):_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1f7)?_0x5f02fe(0x1e7):_0x5f02fe(0x1f8);await initConfiguredEnvironment({'raw':_0x3ae266[_0x5f02fe(0x1e3)],'configuredRegion':_0x3ae266['regionConfiguredValue']??_0x3ae266[_0x5f02fe(0x1e3)]?.[_0x5f02fe(0x1fd)]??_0x3ae266[_0x5f02fe(0x1fd)],'regionLocation':_0x6e918,'targetEnv':_0x3ae266[_0x5f02fe(0x20a)]});}async function initConfiguredEnvironment(_0x1e3421){const _0x13fdc5=a279_0x48b0,_0x3a9696=resolveConfiguredRegion(_0x1e3421['configuredRegion'],_0x1e3421[_0x13fdc5(0x1e1)]),_0x16debb=resolveEnterpriseRoutingManifest(_0x1e3421[_0x13fdc5(0x1e3)]?.['routing']),_0x47ea22={'region':_0x3a9696,'apiDomain':_0x16debb?_0x16debb['domains'][_0x13fdc5(0x1cd)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['apiDomain']),'userDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)]['userDomain']:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['userDomain']),'runtimeDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1e6)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1e6)]),'skillDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1d9)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['skillDomain'])||optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x1d1)])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1c7)])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1c8)]),'kbDomain':_0x16debb?_0x16debb['domains'][_0x13fdc5(0x1de)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['kbDomain'])||optionalString(_0x1e3421['raw']?.['agentDomain'])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['platformDomain']),'kbServiceDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1f5)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['kbServiceDomain']),'appDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)]['appDomain']:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['appDomain']),'localDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x205)]:optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x205)]),'certificateDomain':_0x16debb?_0x16debb['domains']['certificateDomain']:optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x1d3)]),'cdn':_0x16debb?.[_0x13fdc5(0x1dc)],'allowOfficialKbServiceDefault':!(_0x16debb!==undefined||[_0x13fdc5(0x1cd),_0x13fdc5(0x1eb),_0x13fdc5(0x1e6),_0x13fdc5(0x1d9),'skillHubDomain',_0x13fdc5(0x1de),_0x13fdc5(0x1f5),_0x13fdc5(0x1c7),_0x13fdc5(0x1c8),_0x13fdc5(0x1ee),_0x13fdc5(0x205),_0x13fdc5(0x1d3)][_0x13fdc5(0x1fe)](_0x37cbb4=>Object[_0x13fdc5(0x1c6)][_0x13fdc5(0x203)]['call'](_0x1e3421[_0x13fdc5(0x1e3)]??{},_0x37cbb4)))},{initEnv:_0x1db586}=await import(_0x13fdc5(0x1cb)),{initDomains:_0x5c5cf8}=await import('./constant/domain.js');_0x1db586(_0x1e3421['targetEnv']),_0x5c5cf8(_0x47ea22);}export async function initMultiAppEnvironment(_0x3b3bd6){const _0x3084f1=a279_0x48b0;await initConfiguredEnvironment({'raw':_0x3b3bd6[_0x3084f1(0x1ff)],'configuredRegion':_0x3b3bd6[_0x3084f1(0x1fd)],'regionLocation':_0x3084f1(0x1db)+_0x3b3bd6[_0x3084f1(0x1e4)]+'\x22','targetEnv':_0x3b3bd6[_0x3084f1(0x20a)]==='daily'?_0x3084f1(0x1f1):_0x3084f1(0x202)});}export function getConfigAppCode(_0x39b3a5){const _0x4292e6=a279_0x48b0,_0x1c6e7f=readRawConfig(_0x39b3a5);if(_0x1c6e7f[_0x4292e6(0x1e0)]&&typeof _0x1c6e7f['apps']==='object'){const _0x3fcc91=_0x1c6e7f[_0x4292e6(0x1cc)];if(_0x3fcc91)return _0x1c6e7f[_0x4292e6(0x1e0)][_0x3fcc91]?.['appcode']?String(_0x1c6e7f[_0x4292e6(0x1e0)][_0x3fcc91][_0x4292e6(0x1e5)])[_0x4292e6(0x1d0)]():undefined;const _0x521914=Object[_0x4292e6(0x1f3)](_0x1c6e7f[_0x4292e6(0x1e0)]);if(_0x521914['length']===0x1&&_0x521914[0x0]?.['appcode'])return String(_0x521914[0x0]['appcode'])[_0x4292e6(0x1d0)]();}const _0x40ba11=_0x1c6e7f[_0x4292e6(0x1e5)]||_0x1c6e7f['app'];if(typeof _0x40ba11!=='string'||_0x40ba11[_0x4292e6(0x1d0)]()==='')return undefined;return _0x40ba11[_0x4292e6(0x1d0)]();}function a279_0x13dd(){const _0x9e21cf=['routing','keys','trim','skillHubDomain','app','certificateDomain','./constant/domain.js','apiGroup','regionSource','string','config','skillDomain','length','app\x20profile\x20\x22','cdn','doctor','kbDomain','call','apps','regionLocation','globalConfig','raw','name','appcode','runtimeDomain','global\x20Rabetbase\x20configuration','currentApp','project','template_base_url','userDomain','4790XagGVs','./utils/is-non-interactive.js','appDomain','1062OSWiwe','526998aOAZSz','daily','https://g.lovrabet.com/dist/lovrabet-skill','values','301916uZVsUu','kbServiceDomain','projectConfig','global','Rabetbase\x20configuration','join','48426Kcqedm','entries','object','region','some','routingConfig','613474qbtFxw','apiDir','production','hasOwnProperty','58280UuFTUa','localDomain','source','328kBwTGu','domains','cwd','env','filePath','1614YhHBcY','cookie','project\x20Rabetbase\x20configuration','prototype','agentDomain','platformDomain','filter','1871272GOriqt','./constant/env.js','defaultApp','apiDomain'];a279_0x13dd=function(){return _0x9e21cf;};return a279_0x13dd();}const CONNECTION_ROUTING_KEYS=[a279_0x5a5500(0x1ce),a279_0x5a5500(0x1cd),a279_0x5a5500(0x1eb),a279_0x5a5500(0x1e6),a279_0x5a5500(0x1d9),a279_0x5a5500(0x1d1),'kbDomain',a279_0x5a5500(0x1f5),a279_0x5a5500(0x1c7),a279_0x5a5500(0x1c8),'appDomain',a279_0x5a5500(0x205),a279_0x5a5500(0x1d3)];function withAppProfileRouting(_0xdf34aa,_0x2c706f){const _0x5c1199=a279_0x5a5500;if(!_0x2c706f||_0x2c706f[_0x5c1199(0x1f5)]===undefined)return _0xdf34aa;return{..._0xdf34aa,'kbServiceDomain':_0x2c706f[_0x5c1199(0x1f5)]};}function pickConnectionRoutingConfig(_0x4440ca,_0x5f41b7){const _0xa86ba7={'region':_0x5f41b7};for(const _0x15a0db of CONNECTION_ROUTING_KEYS){if(_0x4440ca[_0x15a0db]!==undefined)_0xa86ba7[_0x15a0db]=_0x4440ca[_0x15a0db];}return _0xa86ba7;}export function getMultiAppConfigs(_0x4faf5d=a279_0x5a5500(0x1e9),_0x4d6505){const _0x459181=a279_0x5a5500,_0x352b65=loadRawConfigLayers(_0x4d6505);let _0xd0c7f6,_0xf959cb;const _0x51d436=mergeRawConfigLayers(_0x352b65),_0x2722ff=_0x352b65[_0x459181(0x1e2)][_0x459181(0x1e0)]&&typeof _0x352b65['globalConfig'][_0x459181(0x1e0)]===_0x459181(0x1fc)?_0x352b65[_0x459181(0x1e2)][_0x459181(0x1e0)]:{},_0x35ab04=_0x352b65[_0x459181(0x1f6)][_0x459181(0x1e0)]&&typeof _0x352b65[_0x459181(0x1f6)][_0x459181(0x1e0)]==='object'?_0x352b65['projectConfig'][_0x459181(0x1e0)]:{};_0x4faf5d==='merged'?(_0xd0c7f6={..._0x2722ff,..._0x35ab04},_0xf959cb=_0x51d436['defaultApp']):(_0xd0c7f6=_0x352b65['projectConfig']['apps'],_0xf959cb=_0x352b65[_0x459181(0x1f6)]['defaultApp']);!_0xf959cb&&_0xd0c7f6&&typeof _0xd0c7f6==='object'&&Object['keys'](_0xd0c7f6)[_0x459181(0x1da)]===0x1&&(_0xf959cb=Object[_0x459181(0x1cf)](_0xd0c7f6)[0x0]);if(!_0xd0c7f6||typeof _0xd0c7f6!=='object'||Object['keys'](_0xd0c7f6)[_0x459181(0x1da)]===0x0)return null;return Object[_0x459181(0x1fb)](_0xd0c7f6)['map'](([_0x56a6fa,_0x2b9faf])=>{const _0x1f92a8=_0x459181,_0x5a096b=_0x4faf5d===_0x1f92a8(0x1e9)||Object[_0x1f92a8(0x1c6)][_0x1f92a8(0x203)][_0x1f92a8(0x1df)](_0x35ab04,_0x56a6fa),_0x1ae6d6=withAppProfileRouting(_0x5a096b?_0x51d436:_0x352b65[_0x1f92a8(0x1e2)],_0x2b9faf),_0x1a52f5=resolveEffectiveRegion({'appRegion':_0x2b9faf?.[_0x1f92a8(0x1fd)],'projectRegion':_0x5a096b?_0x352b65[_0x1f92a8(0x1f6)][_0x1f92a8(0x1fd)]:undefined,'globalRegion':_0x352b65[_0x1f92a8(0x1e2)][_0x1f92a8(0x1fd)],'mergedRegion':_0x1ae6d6['region'],'appName':_0x56a6fa});return{'name':_0x56a6fa,'appcode':_0x2b9faf?.[_0x1f92a8(0x1e5)]||'','apiGroup':optionalString(_0x2b9faf?.[_0x1f92a8(0x1d5)]),'isDefault':_0x56a6fa===_0xf959cb,'region':_0x1a52f5[_0x1f92a8(0x1fd)],'regionSource':_0x1a52f5[_0x1f92a8(0x206)],'env':_0x2b9faf?.[_0x1f92a8(0x20a)],'apiDir':optionalString(_0x2b9faf?.[_0x1f92a8(0x201)])||optionalString(_0x1ae6d6['apiDir']),'cookie':_0x2b9faf?.[_0x1f92a8(0x20d)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x1ae6d6,_0x1a52f5[_0x1f92a8(0x1fd)])};})[_0x459181(0x1c9)](_0xf942c3=>_0xf942c3[_0x459181(0x1e5)]);}export function getTemplateBaseUrl(_0x6f97b3){const _0x4b52cc=a279_0x5a5500,_0x36c3fd=readRawConfig(_0x6f97b3);if(_0x36c3fd[_0x4b52cc(0x1ea)]&&typeof _0x36c3fd['template_base_url']===_0x4b52cc(0x1d7))return _0x36c3fd['template_base_url']['replace'](/\/$/,'');return _0x4b52cc(0x1f2);}function buildConfig(_0x31e8c2,_0xf8898,_0x256b9c){const _0x2bf79d=a279_0x5a5500,_0x3e0d80=resolveAppConfig({'raw':_0x31e8c2,'flags':_0xf8898,'layers':_0x256b9c,'readEnv':env}),_0x33f154=_0x3e0d80[_0x2bf79d(0x1e8)]?_0x3e0d80[_0x2bf79d(0x1e0)][_0x3e0d80[_0x2bf79d(0x1e8)]]:undefined;return{..._0x3e0d80,'raw':withAppProfileRouting(_0x31e8c2,_0x33f154)};}export function resolveApiFilePath(_0x1993f7,_0x45106c,_0x489c26){const _0x618578=a279_0x5a5500;return resolveApiModelSource(_0x1993f7,_0x45106c,_0x489c26)[_0x618578(0x20b)];}
|
|
1
|
+
const a286_0x25fcfd=a286_0x24bc;(function(_0x4e04da,_0x5f20ee){const _0x4f0a3a=a286_0x24bc,_0x48aa56=_0x4e04da();while(!![]){try{const _0x51cf78=-parseInt(_0x4f0a3a(0x83))/0x1*(-parseInt(_0x4f0a3a(0xa3))/0x2)+-parseInt(_0x4f0a3a(0x81))/0x3+parseInt(_0x4f0a3a(0x8a))/0x4*(-parseInt(_0x4f0a3a(0xa6))/0x5)+parseInt(_0x4f0a3a(0x9d))/0x6*(parseInt(_0x4f0a3a(0x8f))/0x7)+-parseInt(_0x4f0a3a(0x6e))/0x8+parseInt(_0x4f0a3a(0x72))/0x9+parseInt(_0x4f0a3a(0xa0))/0xa;if(_0x51cf78===_0x5f20ee)break;else _0x48aa56['push'](_0x48aa56['shift']());}catch(_0x14b949){_0x48aa56['push'](_0x48aa56['shift']());}}}(a286_0x4607,0x66342));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';function a286_0x24bc(_0x224ea9,_0x487a34){_0x224ea9=_0x224ea9-0x69;const _0x460721=a286_0x4607();let _0x24bcf4=_0x460721[_0x224ea9];return _0x24bcf4;}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a286_0x4607(){const _0x29eb29=['routingConfig','cdn','runtimeDomain','setLogPath','3264632wOmgRr','certificateDomain','./constant/env.js','string','5374116ACkrjR','regionLocation','project\x20Rabetbase\x20configuration','project','some','appDomain','kbDomain','currentApp','merged','global','template_base_url','config','region','slice','configuredRegion','1842555MzzgZg','userDomain','2381PoAwJK','replace','entries','keys','appcode','./constant/domain.js','skillDomain','36huzWTH','prototype','argv','domains','Rabetbase\x20configuration','7PUTSSz','raw','map','app','agentDomain','apiDir','doctor','defaultApp','apiDomain','cwd','platformDomain','apiGroup','trim','env','981006VebDhb','cookie','kbServiceDomain','4314230FTfxoM','app\x20profile\x20\x22','projectConfig','346VNFezp','object','apps','90595daqOBk','filter','globalConfig','setRawCommand','call','regionSource','source','skillHubDomain','length','localDomain'];a286_0x4607=function(){return _0x29eb29;};return a286_0x4607();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x307423){return process.env[`RABETBASE_${_0x307423}`]||process.env[`LOVRABET_${_0x307423}`]||undefined;}function optionalString(_0x300710){const _0x2af6a2=a286_0x24bc;return typeof _0x300710===_0x2af6a2(0x71)&&_0x300710[_0x2af6a2(0x9b)]()?_0x300710[_0x2af6a2(0x9b)]():undefined;}export function isRoutingRecoveryService(_0x40d422){const _0x1c43b3=a286_0x24bc;return _0x40d422===_0x1c43b3(0x7d)||_0x40d422===_0x1c43b3(0x95);}export async function createContext(_0xf2dfdc){const _0x38ae32=a286_0x24bc,{config:_0x567d84,layers:_0x25a63f}=readRawConfigWithLayers(),_0x3a499a=buildConfig(_0x567d84,_0xf2dfdc,_0x25a63f);await initGlobalEnvironment(_0x3a499a);const {getUserDomain:_0x24ec02,getApiDomain:_0x4c1679}=await import(_0x38ae32(0x88)),_0x52bd8d={'apiDomain':_0x4c1679(),'userDomain':_0x24ec02()},_0x18cd2d=await buildAuth(_0x3a499a);logger[_0x38ae32(0x6d)](process[_0x38ae32(0x98)]());const _0x379e36=(CLI_BIN_NAME+'\x20'+process[_0x38ae32(0x8c)][_0x38ae32(0x7f)](0x2)['join']('\x20'))[_0x38ae32(0x9b)]();logger[_0x38ae32(0xa9)](_0x379e36);const {isNonInteractive:_0x21bb70}=await import('./utils/is-non-interactive.js'),_0x37429b=_0x21bb70(_0xf2dfdc);return{'config':_0x3a499a,'auth':_0x18cd2d,'logger':logger,'env':_0x52bd8d,'nonInteractive':_0x37429b};}export function buildConfigFromFlags(_0x5ce853){const {config:_0x45f526,layers:_0x4c527b}=readRawConfigWithLayers();return buildConfig(_0x45f526,_0x5ce853,_0x4c527b);}export async function initGlobalEnvironment(_0x115b66){const _0x5a72ac=a286_0x24bc,_0x59b1ef=_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x92)&&_0x115b66[_0x5a72ac(0x79)]?_0x5a72ac(0xa1)+_0x115b66[_0x5a72ac(0x79)]+'\x22':_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x75)?_0x5a72ac(0x74):_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x7b)?'global\x20Rabetbase\x20configuration':_0x5a72ac(0x8e);await initConfiguredEnvironment({'raw':_0x115b66[_0x5a72ac(0x90)],'configuredRegion':_0x115b66['regionConfiguredValue']??_0x115b66[_0x5a72ac(0x90)]?.[_0x5a72ac(0x7e)]??_0x115b66[_0x5a72ac(0x7e)],'regionLocation':_0x59b1ef,'targetEnv':_0x115b66[_0x5a72ac(0x9c)]});}async function initConfiguredEnvironment(_0x1dbd38){const _0xfcec50=a286_0x24bc,_0x15dfa1=resolveConfiguredRegion(_0x1dbd38[_0xfcec50(0x80)],_0x1dbd38[_0xfcec50(0x73)]),_0x400ca4=resolveEnterpriseRoutingManifest(_0x1dbd38['raw']?.['routing']),_0x462210={'region':_0x15dfa1,'apiDomain':_0x400ca4?_0x400ca4['domains']['apiDomain']:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['apiDomain']),'userDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x82)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['userDomain']),'runtimeDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6c)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x6c)]),'skillDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x89)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x89)])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0xad)])||optionalString(_0x1dbd38['raw']?.['agentDomain'])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x99)]),'kbDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)]['kbDomain']:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x78)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x93)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x99)]),'kbServiceDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x9f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['kbServiceDomain']),'appDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x77)]:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x77)]),'localDomain':_0x400ca4?_0x400ca4['domains']['localDomain']:optionalString(_0x1dbd38['raw']?.['localDomain']),'certificateDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['certificateDomain']),'cdn':_0x400ca4?.[_0xfcec50(0x6b)],'allowOfficialKbServiceDefault':!(_0x400ca4!==undefined||[_0xfcec50(0x97),_0xfcec50(0x82),_0xfcec50(0x6c),_0xfcec50(0x89),_0xfcec50(0xad),_0xfcec50(0x78),_0xfcec50(0x9f),_0xfcec50(0x93),_0xfcec50(0x99),_0xfcec50(0x77),_0xfcec50(0x69),_0xfcec50(0x6f)][_0xfcec50(0x76)](_0x67caf7=>Object[_0xfcec50(0x8b)]['hasOwnProperty'][_0xfcec50(0xaa)](_0x1dbd38[_0xfcec50(0x90)]??{},_0x67caf7)))},{initEnv:_0x15973e}=await import(_0xfcec50(0x70)),{initDomains:_0x5620ad}=await import(_0xfcec50(0x88));_0x15973e(_0x1dbd38['targetEnv']),_0x5620ad(_0x462210);}export async function initMultiAppEnvironment(_0x1ff790){const _0x1788e0=a286_0x24bc;await initConfiguredEnvironment({'raw':_0x1ff790[_0x1788e0(0x6a)],'configuredRegion':_0x1ff790[_0x1788e0(0x7e)],'regionLocation':_0x1788e0(0xa1)+_0x1ff790['name']+'\x22','targetEnv':_0x1ff790[_0x1788e0(0x9c)]==='daily'?'daily':'production'});}export function getConfigAppCode(_0xf03c63){const _0x4f3f04=a286_0x24bc,_0x355f8b=readRawConfig(_0xf03c63);if(_0x355f8b[_0x4f3f04(0xa5)]&&typeof _0x355f8b[_0x4f3f04(0xa5)]===_0x4f3f04(0xa4)){const _0x4ebb1e=_0x355f8b[_0x4f3f04(0x96)];if(_0x4ebb1e)return _0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]?.[_0x4f3f04(0x87)]?String(_0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]['appcode'])[_0x4f3f04(0x9b)]():undefined;const _0x3e62c5=Object['values'](_0x355f8b[_0x4f3f04(0xa5)]);if(_0x3e62c5['length']===0x1&&_0x3e62c5[0x0]?.[_0x4f3f04(0x87)])return String(_0x3e62c5[0x0][_0x4f3f04(0x87)])[_0x4f3f04(0x9b)]();}const _0x2bebcf=_0x355f8b[_0x4f3f04(0x87)]||_0x355f8b['app'];if(typeof _0x2bebcf!==_0x4f3f04(0x71)||_0x2bebcf[_0x4f3f04(0x9b)]()==='')return undefined;return _0x2bebcf[_0x4f3f04(0x9b)]();}const CONNECTION_ROUTING_KEYS=['routing','apiDomain',a286_0x25fcfd(0x82),a286_0x25fcfd(0x6c),a286_0x25fcfd(0x89),a286_0x25fcfd(0xad),a286_0x25fcfd(0x78),a286_0x25fcfd(0x9f),a286_0x25fcfd(0x93),a286_0x25fcfd(0x99),a286_0x25fcfd(0x77),a286_0x25fcfd(0x69),a286_0x25fcfd(0x6f)];function withAppProfileRouting(_0x426494,_0x30f749){if(!_0x30f749||_0x30f749['kbServiceDomain']===undefined)return _0x426494;return{..._0x426494,'kbServiceDomain':_0x30f749['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x28c778,_0x2936d9){const _0x4109e4={'region':_0x2936d9};for(const _0x11ceb2 of CONNECTION_ROUTING_KEYS){if(_0x28c778[_0x11ceb2]!==undefined)_0x4109e4[_0x11ceb2]=_0x28c778[_0x11ceb2];}return _0x4109e4;}export function getMultiAppConfigs(_0x3f6d56=a286_0x25fcfd(0x75),_0x2ed209){const _0x3fc407=a286_0x25fcfd,_0x98685e=loadRawConfigLayers(_0x2ed209);let _0x393168,_0x3e0d58;const _0x2b5f8f=mergeRawConfigLayers(_0x98685e),_0x533880=_0x98685e['globalConfig'][_0x3fc407(0xa5)]&&typeof _0x98685e[_0x3fc407(0xa8)][_0x3fc407(0xa5)]===_0x3fc407(0xa4)?_0x98685e[_0x3fc407(0xa8)]['apps']:{},_0x972c6c=_0x98685e['projectConfig']['apps']&&typeof _0x98685e[_0x3fc407(0xa2)][_0x3fc407(0xa5)]==='object'?_0x98685e[_0x3fc407(0xa2)]['apps']:{};_0x3f6d56===_0x3fc407(0x7a)?(_0x393168={..._0x533880,..._0x972c6c},_0x3e0d58=_0x2b5f8f[_0x3fc407(0x96)]):(_0x393168=_0x98685e['projectConfig'][_0x3fc407(0xa5)],_0x3e0d58=_0x98685e[_0x3fc407(0xa2)][_0x3fc407(0x96)]);!_0x3e0d58&&_0x393168&&typeof _0x393168==='object'&&Object[_0x3fc407(0x86)](_0x393168)[_0x3fc407(0xae)]===0x1&&(_0x3e0d58=Object[_0x3fc407(0x86)](_0x393168)[0x0]);if(!_0x393168||typeof _0x393168!=='object'||Object['keys'](_0x393168)['length']===0x0)return null;return Object[_0x3fc407(0x85)](_0x393168)[_0x3fc407(0x91)](([_0x1bcaa2,_0x2a754e])=>{const _0x54fc85=_0x3fc407,_0x361e10=_0x3f6d56==='project'||Object[_0x54fc85(0x8b)]['hasOwnProperty'][_0x54fc85(0xaa)](_0x972c6c,_0x1bcaa2),_0x28dc66=withAppProfileRouting(_0x361e10?_0x2b5f8f:_0x98685e[_0x54fc85(0xa8)],_0x2a754e),_0x39bcce=resolveEffectiveRegion({'appRegion':_0x2a754e?.[_0x54fc85(0x7e)],'projectRegion':_0x361e10?_0x98685e[_0x54fc85(0xa2)][_0x54fc85(0x7e)]:undefined,'globalRegion':_0x98685e['globalConfig'][_0x54fc85(0x7e)],'mergedRegion':_0x28dc66['region'],'appName':_0x1bcaa2});return{'name':_0x1bcaa2,'appcode':_0x2a754e?.[_0x54fc85(0x87)]||'','apiGroup':optionalString(_0x2a754e?.[_0x54fc85(0x9a)]),'isDefault':_0x1bcaa2===_0x3e0d58,'region':_0x39bcce[_0x54fc85(0x7e)],'regionSource':_0x39bcce[_0x54fc85(0xac)],'env':_0x2a754e?.['env'],'apiDir':optionalString(_0x2a754e?.['apiDir'])||optionalString(_0x28dc66[_0x54fc85(0x94)]),'cookie':_0x2a754e?.[_0x54fc85(0x9e)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x28dc66,_0x39bcce['region'])};})[_0x3fc407(0xa7)](_0x2a6836=>_0x2a6836[_0x3fc407(0x87)]);}export function getTemplateBaseUrl(_0x4f4b4f){const _0x170639=a286_0x25fcfd,_0x1d025a=readRawConfig(_0x4f4b4f);if(_0x1d025a['template_base_url']&&typeof _0x1d025a[_0x170639(0x7c)]===_0x170639(0x71))return _0x1d025a['template_base_url'][_0x170639(0x84)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x52abb3,_0xacd321,_0x339597){const _0x2a1f07=a286_0x25fcfd,_0x58d8d9=resolveAppConfig({'raw':_0x52abb3,'flags':_0xacd321,'layers':_0x339597,'readEnv':env}),_0x1c9206=_0x58d8d9[_0x2a1f07(0x79)]?_0x58d8d9[_0x2a1f07(0xa5)][_0x58d8d9['currentApp']]:undefined;return{..._0x58d8d9,'raw':withAppProfileRouting(_0x52abb3,_0x1c9206)};}export function resolveApiFilePath(_0x2b8d29,_0x981f86,_0x2f7def){return resolveApiModelSource(_0x2b8d29,_0x981f86,_0x2f7def)['filePath'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x37871c=a287_0x4df5;(function(_0x34fdb8,_0x38748e){const _0x45d67e=a287_0x4df5,_0x243e82=_0x34fdb8();while(!![]){try{const _0x256a57=parseInt(_0x45d67e(0xb3))/0x1+parseInt(_0x45d67e(0xb1))/0x2+parseInt(_0x45d67e(0xb5))/0x3*(-parseInt(_0x45d67e(0xa8))/0x4)+-parseInt(_0x45d67e(0xaa))/0x5*(-parseInt(_0x45d67e(0xa5))/0x6)+parseInt(_0x45d67e(0xae))/0x7+parseInt(_0x45d67e(0xb2))/0x8+parseInt(_0x45d67e(0xb7))/0x9*(-parseInt(_0x45d67e(0xbb))/0xa);if(_0x256a57===_0x38748e)break;else _0x243e82['push'](_0x243e82['shift']());}catch(_0x5248fc){_0x243e82['push'](_0x243e82['shift']());}}}(a287_0x1503,0x42150));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';function a287_0x1503(){const _0xa75f20=['.ts','push','6936380yKogMD','.cts','size','get','length','flags','datasetCode','.cjs','alias','set','tableName','defaultProfile','.js','has','.mts','slice','startsWith','2442756iRLMVc','index','filter','64bOaTij','name','5NTAbtq','.mjs','.tsx','exec','671706QEqagE','utf-8','map','858428Vsfxmz','2768720cUTUbF','67218BABlbh','cwd','71493WnNjVm','stringify','9snkwbl','add'];a287_0x1503=function(){return _0xa75f20;};return a287_0x1503();}function a287_0x4df5(_0x4ef489,_0x4c60fc){_0x4ef489=_0x4ef489-0x98;const _0x15036c=a287_0x1503();let _0x4df59f=_0x15036c[_0x4ef489];return _0x4df59f;}import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a287_0x37871c(0xb9),a287_0x37871c(0xac),a287_0x37871c(0xa2),'.cts',a287_0x37871c(0xa0),'.jsx',a287_0x37871c(0xab),a287_0x37871c(0x9b)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x37871c(0xb9),'.tsx'],'.jsx':[a287_0x37871c(0xac)],'.mjs':[a287_0x37871c(0xa2)],'.cjs':[a287_0x37871c(0xbc)]};function parseApiFile(_0x3539cb){const _0x46746=a287_0x37871c;return parseLegacyApiModels(_0x3539cb)['flatMap'](_0x4f54ca=>_0x4f54ca[_0x46746(0x9c)]?[{'alias':_0x4f54ca[_0x46746(0x9c)],'datasetCode':_0x4f54ca[_0x46746(0x9a)],'tableName':_0x4f54ca[_0x46746(0x9e)],'name':_0x4f54ca[_0x46746(0xa9)]}]:[]);}function isWithinRoot(_0x25bfae,_0x36c5e3){const _0x253919=a287_0x37871c,_0x71fc88=relative(_0x25bfae,_0x36c5e3);return _0x71fc88===''||!_0x71fc88[_0x253919(0xa4)]('..')&&!isAbsolute(_0x71fc88);}function resolveExistingFile(_0x1f6c4a){if(!existsSync(_0x1f6c4a))return undefined;try{return statSync(_0x1f6c4a)['isFile']()?realpathSync(_0x1f6c4a):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x21992a){const _0xe23460=a287_0x37871c,_0x39c8ca=extname(_0x21992a);if(!_0x39c8ca)return[...SOURCE_FILE_EXTENSIONS[_0xe23460(0xb0)](_0xe20898=>''+_0x21992a+_0xe20898),...SOURCE_FILE_EXTENSIONS[_0xe23460(0xb0)](_0x2137d7=>resolve(_0x21992a,_0xe23460(0xa6)+_0x2137d7))];const _0x1a27ae=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x39c8ca];if(!_0x1a27ae)return[_0x21992a];const _0x413c51=_0x21992a[_0xe23460(0xa3)](0x0,-_0x39c8ca[_0xe23460(0x98)]);return[..._0x1a27ae['map'](_0x12dd6f=>''+_0x413c51+_0x12dd6f),_0x21992a];}function resolveLocalReexport(_0x4bdafa,_0x35c6c7,_0x2265dd){const _0x3b99e4=a287_0x37871c;if(!_0x35c6c7['startsWith']('./')&&!_0x35c6c7[_0x3b99e4(0xa4)]('../'))return undefined;const _0x233970=resolve(dirname(_0x4bdafa),_0x35c6c7);if(!isWithinRoot(_0x2265dd,_0x233970))return undefined;for(const _0x55715f of reexportCandidatePaths(_0x233970)){const _0x46b604=resolveExistingFile(_0x55715f);if(_0x46b604&&isWithinRoot(_0x2265dd,_0x46b604))return _0x46b604;}return undefined;}function parseApiFileTree(_0x43a7a5,_0x5adc88,_0x30f566,_0x4639d6){const _0x3583d5=a287_0x37871c,_0x491769=resolveExistingFile(_0x43a7a5);if(!_0x491769)return[];const _0xf4e4f9=_0x30f566[_0x3583d5(0xbe)](_0x491769);if(_0xf4e4f9!==undefined&&_0xf4e4f9<=_0x4639d6)return[];_0x30f566[_0x3583d5(0x9d)](_0x491769,_0x4639d6);const _0x554935=readFileSync(_0x491769,_0x3583d5(0xaf)),_0x5add3a=parseApiFile(_0x554935);if(_0x4639d6>=MAX_LOCAL_REEXPORT_DEPTH)return _0x5add3a;const _0x18b77b=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE[_0x3583d5(0x99)]);let _0x4343cb;while((_0x4343cb=_0x18b77b[_0x3583d5(0xad)](_0x554935))!==null){const _0x5ed842=resolveLocalReexport(_0x491769,_0x4343cb[0x1],_0x5adc88);_0x5ed842&&_0x5add3a[_0x3583d5(0xba)](...parseApiFileTree(_0x5ed842,_0x5adc88,_0x30f566,_0x4639d6+0x1));}return _0x5add3a;}function aliasProjectRoot(_0x58c518){const _0x3485fb=findProjectRootDirectory(dirname(_0x58c518));try{return realpathSync(_0x3485fb);}catch{return _0x3485fb;}}function uniqueAliasEntries(_0x1c880c){const _0x20c3d2=a287_0x37871c,_0x21d7c2=new Set();return _0x1c880c[_0x20c3d2(0xa7)](_0xb401a6=>{const _0x4f423a=_0x20c3d2,_0x2bfb76=JSON[_0x4f423a(0xb6)](_0xb401a6);if(_0x21d7c2[_0x4f423a(0xa1)](_0x2bfb76))return![];return _0x21d7c2[_0x4f423a(0xb8)](_0x2bfb76),!![];});}export function loadAliasMap(_0x14a480,_0x27db32,_0x36c262,_0x5615a4){const _0x430c38=a287_0x37871c,_0x1f1943=resolve(_0x36c262??resolve(process[_0x430c38(0xb4)](),_0x14a480,'api.ts')),_0x4d636e=_0x5615a4?_0x1f1943+'#'+_0x5615a4:_0x1f1943;if(cache[_0x430c38(0xa1)](_0x4d636e))return cache['get'](_0x4d636e);if(!existsSync(_0x1f1943))return cache[_0x430c38(0x9d)](_0x4d636e,[]),[];try{if(_0x1f1943['endsWith'](MODEL_REGISTRY_FILE_NAME)){const _0x269a56=readModelRegistry(_0x1f1943),_0x465bba=_0x5615a4??_0x269a56?.[_0x430c38(0x9f)],_0x18e62c=_0x465bba&&_0x269a56?getProfileModels(_0x269a56,_0x465bba):[],_0x4e0e84=uniqueAliasEntries(_0x18e62c['flatMap'](_0x1b3dbf=>_0x1b3dbf['alias']?[{'alias':_0x1b3dbf[_0x430c38(0x9c)],'datasetCode':_0x1b3dbf['datasetCode'],'tableName':_0x1b3dbf[_0x430c38(0x9e)],'name':_0x1b3dbf[_0x430c38(0xa9)]}]:[]));return cache[_0x430c38(0x9d)](_0x4d636e,_0x4e0e84),_0x4e0e84;}const _0x10b78c=uniqueAliasEntries(parseApiFileTree(_0x1f1943,aliasProjectRoot(_0x1f1943),new Map(),0x0));return cache[_0x430c38(0x9d)](_0x4d636e,_0x10b78c),_0x10b78c;}catch{return cache[_0x430c38(0x9d)](_0x4d636e,[]),[];}}export function resolveAlias(_0x54951f,_0x407e79,_0xe4e7e7,_0x22a691,_0x3f312e){const _0x20d92c=a287_0x37871c;if(!_0x407e79)return undefined;const _0x412d85=loadAliasMap(_0x54951f,_0xe4e7e7,_0x22a691,_0x3f312e),_0x58c20e=new Set(_0x412d85[_0x20d92c(0xa7)](_0x47d16a=>_0x47d16a[_0x20d92c(0x9c)]===_0x407e79)[_0x20d92c(0xb0)](_0x33b832=>_0x33b832['datasetCode']));return _0x58c20e[_0x20d92c(0xbd)]===0x1?[..._0x58c20e][0x0]:undefined;}export function listAliases(_0x399b18,_0x5b9daa,_0x2134d1,_0x31afd7){return loadAliasMap(_0x399b18,_0x5b9daa,_0x2134d1,_0x31afd7);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare function setActiveCookie(cookie: string): void;
|
|
|
12
12
|
export declare function clearActiveCookie(): void;
|
|
13
13
|
export declare function isPlatformTransportFailure(error: unknown): boolean;
|
|
14
14
|
export declare function getPlatformErrorCode(error: unknown): string | undefined;
|
|
15
|
+
export declare function getPlatformHttpStatus(error: unknown): number | undefined;
|
|
15
16
|
export interface DevelopmentFileUploadResponse {
|
|
16
17
|
fileName?: string | null;
|
|
17
18
|
filePath?: string | null;
|
|
@@ -580,6 +581,16 @@ export interface TextGeneratedDatasetJobStatus {
|
|
|
580
581
|
result?: any;
|
|
581
582
|
[key: string]: any;
|
|
582
583
|
}
|
|
584
|
+
/** Deterministic dataset creation; the caller's Agent supplies the manifest. */
|
|
585
|
+
export declare function getDatasetDesignContext(appCode: string): Promise<Record<string, any>>;
|
|
586
|
+
export declare function validateDatasetDesign(appCode: string, manifest: Record<string, unknown>): Promise<Record<string, any>>;
|
|
587
|
+
export declare function startDatasetDesign(appCode: string, manifest: Record<string, unknown>, expectedHash: string, clientOperationId: string): Promise<Record<string, any>>;
|
|
588
|
+
export declare function getDatasetDesignStatus(appCode: string, identity: {
|
|
589
|
+
operationId?: string;
|
|
590
|
+
clientOperationId?: string;
|
|
591
|
+
}): Promise<Record<string, any>>;
|
|
592
|
+
export declare function getDatasetDesignSyncStatus(appCode: string, datasetCode: string): Promise<Record<string, any>>;
|
|
593
|
+
export declare function retryDatasetDesignSync(appCode: string, datasetCode: string): Promise<Record<string, any>>;
|
|
583
594
|
export declare function startTextGeneratedDataset(appCode: string, design: Record<string, any>, options?: {
|
|
584
595
|
clientOperationId?: string;
|
|
585
596
|
mode?: "batch";
|
|
@@ -1032,7 +1043,7 @@ export interface DbAnalysisStatus {
|
|
|
1032
1043
|
}
|
|
1033
1044
|
/** Runtime role exposed by lovrabet-runtime for approval assignee selection. */
|
|
1034
1045
|
export interface ApprovalRuntimeRole {
|
|
1035
|
-
id: number;
|
|
1046
|
+
id: number | string;
|
|
1036
1047
|
appCode?: string | null;
|
|
1037
1048
|
roleName?: string | null;
|
|
1038
1049
|
roleType?: string | null;
|
|
@@ -1060,7 +1071,7 @@ export interface ApprovalRuntimeRoleMember {
|
|
|
1060
1071
|
}
|
|
1061
1072
|
/** Runtime role and its current members. */
|
|
1062
1073
|
export interface ApprovalRuntimeRoleUsers {
|
|
1063
|
-
id: number;
|
|
1074
|
+
id: number | string;
|
|
1064
1075
|
roleName?: string | null;
|
|
1065
1076
|
roleType?: string | null;
|
|
1066
1077
|
userList?: ApprovalRuntimeRoleMember[] | null;
|
|
@@ -1083,11 +1094,12 @@ export declare function listApprovalRuntimeUsers(appCode: string): Promise<Appro
|
|
|
1083
1094
|
export declare function listApprovalRuntimeRoleUsers(appCode: string): Promise<ApprovalRuntimeRoleUsers[]>;
|
|
1084
1095
|
/** Flow definition returned by SmartFlowController. */
|
|
1085
1096
|
export interface FlowDefinition {
|
|
1086
|
-
id: number;
|
|
1097
|
+
id: number | string;
|
|
1087
1098
|
flowCode?: string | null;
|
|
1088
1099
|
appCode?: string | null;
|
|
1089
1100
|
datasetCode?: string | null;
|
|
1090
|
-
pageId?: number | null;
|
|
1101
|
+
pageId?: string | number | null;
|
|
1102
|
+
pageIds?: Array<number | string> | null;
|
|
1091
1103
|
flowName?: string | null;
|
|
1092
1104
|
flowDesc?: string | null;
|
|
1093
1105
|
flowType?: string | null;
|
|
@@ -1105,8 +1117,8 @@ export interface FlowDefinition {
|
|
|
1105
1117
|
enabled?: boolean | null;
|
|
1106
1118
|
createUserId?: string | null;
|
|
1107
1119
|
updateUserId?: string | null;
|
|
1108
|
-
gmtCreate?: string | null;
|
|
1109
|
-
gmtModified?: string | null;
|
|
1120
|
+
gmtCreate?: number | string | null;
|
|
1121
|
+
gmtModified?: number | string | null;
|
|
1110
1122
|
[key: string]: unknown;
|
|
1111
1123
|
}
|
|
1112
1124
|
/** Exact writable fields exposed by FlowDefRequest. */
|
|
@@ -1118,6 +1130,7 @@ export interface FlowDefinitionWriteRequest {
|
|
|
1118
1130
|
appCode: string;
|
|
1119
1131
|
datasetCode?: string;
|
|
1120
1132
|
pageId?: number;
|
|
1133
|
+
pageIds?: number[];
|
|
1121
1134
|
flowJson: Record<string, unknown>;
|
|
1122
1135
|
}
|
|
1123
1136
|
/** Supported filters exposed by FlowDefQueryRequest. */
|
|
@@ -1130,6 +1143,24 @@ export interface FlowDefinitionListOptions {
|
|
|
1130
1143
|
pageNum?: number;
|
|
1131
1144
|
pageSize?: number;
|
|
1132
1145
|
}
|
|
1146
|
+
/** A standard page available for a form-flow binding. */
|
|
1147
|
+
export interface FlowBindingPage {
|
|
1148
|
+
id: number | string;
|
|
1149
|
+
name?: string;
|
|
1150
|
+
pageCode?: string;
|
|
1151
|
+
type?: string;
|
|
1152
|
+
[key: string]: unknown;
|
|
1153
|
+
}
|
|
1154
|
+
/** GET /smartapi/page/getPageList with Cookie auth; currentFlowId enables binding availability filtering. */
|
|
1155
|
+
export declare function listFlowBindingPages(appCode: string, options?: {
|
|
1156
|
+
currentFlowId?: number;
|
|
1157
|
+
name?: string;
|
|
1158
|
+
currentPage?: number;
|
|
1159
|
+
pageSize?: number;
|
|
1160
|
+
}): Promise<{
|
|
1161
|
+
items: FlowBindingPage[];
|
|
1162
|
+
paging?: Paging;
|
|
1163
|
+
}>;
|
|
1133
1164
|
/** POST /smartapi/flow/page: list flow definitions for one app. */
|
|
1134
1165
|
export declare function listFlowDefinitions(appCode: string, options?: FlowDefinitionListOptions): Promise<{
|
|
1135
1166
|
items: FlowDefinition[];
|