@lovrabet/rabetbase-cli 2.5.6 → 2.5.7
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/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.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.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 +26 -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.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.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 +8 -4
- 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-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 +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18f48c,_0x35c567){const _0x52bc07=a283_0x4837,_0x1e635d=_0x18f48c();while(!![]){try{const _0x35057a=parseInt(_0x52bc07(0xe7))/0x1+-parseInt(_0x52bc07(0xfa))/0x2+parseInt(_0x52bc07(0xff))/0x3*(-parseInt(_0x52bc07(0xee))/0x4)+-parseInt(_0x52bc07(0xf4))/0x5*(-parseInt(_0x52bc07(0xf7))/0x6)+parseInt(_0x52bc07(0xde))/0x7*(-parseInt(_0x52bc07(0xd7))/0x8)+parseInt(_0x52bc07(0xf3))/0x9+-parseInt(_0x52bc07(0xfc))/0xa*(-parseInt(_0x52bc07(0xf2))/0xb);if(_0x35057a===_0x35c567)break;else _0x1e635d['push'](_0x1e635d['shift']());}catch(_0x5b3306){_0x1e635d['push'](_0x1e635d['shift']());}}}(a283_0x28fe,0xae537));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x2eb5f1){const _0x20b687=a283_0x4837;return typeof _0x2eb5f1===_0x20b687(0xdc)&&_0x2eb5f1['trim']()?_0x2eb5f1[_0x20b687(0xed)]():undefined;}function appProfiles(_0x26cfbe){const _0x519003=a283_0x4837;return _0x26cfbe[_0x519003(0xd8)]&&typeof _0x26cfbe[_0x519003(0xd8)]===_0x519003(0xe4)?_0x26cfbe[_0x519003(0xd8)]:{};}function resolveDefaultAppName(_0xaf2c4e){const _0x3d6b86=a283_0x4837,_0xda6e17=stringConfigValue(_0xaf2c4e[_0x3d6b86(0xe1)]);if(_0xda6e17)return _0xda6e17;const _0x3987f0=Object['keys'](appProfiles(_0xaf2c4e));return _0x3987f0[_0x3d6b86(0xe8)]===0x1?_0x3987f0[0x0]:undefined;}function a283_0x28fe(){const _0x364d87=['96LoptgP','source','pageSize','2655452GOJEdC','daily','180FvRMwm','region','read','2602374UrROIi','keys','riskLevel','format','app','projectPath','2512ItwogU','apps','cookie','ENV','VERBOSE','string','COOKIE','19922nwOCwO','value','ACCESS_KEY','defaultApp','true','entries','object','appcode','apiDir','723356JGGPZN','length','accessKey','locale','PAGE_SIZE','filter','trim','4BVaPIY','projectConfig','env','RISK_LEVEL','1542552JSwAxk','3974031haHdUs','35555JwnCKZ','globalConfig','APP'];a283_0x28fe=function(){return _0x364d87;};return a283_0x28fe();}function resolveTopLevelAppCode(_0x1d5e4c){const _0x162a12=a283_0x4837;return stringConfigValue(_0x1d5e4c[_0x162a12(0xe5)])||stringConfigValue(_0x1d5e4c[_0x162a12(0xd5)]);}function a283_0x4837(_0x523caf,_0xd7860d){_0x523caf=_0x523caf-0xd5;const _0x28fee4=a283_0x28fe();let _0x483732=_0x28fee4[_0x523caf];return _0x483732;}function normalizeRiskCeiling(_0x57b9ce){const _0x621f3c=a283_0x4837;if(_0x57b9ce===undefined||_0x57b9ce===null)return undefined;if(_0x57b9ce==='read'||_0x57b9ce==='write'||_0x57b9ce==='high-risk-write')return _0x57b9ce;return _0x621f3c(0xfe);}function resolveRiskCeiling(..._0x1cab82){const _0x583d32=a283_0x4837;let _0x1e5375;for(const _0x416335 of _0x1cab82){const _0x2bf36e=normalizeRiskCeiling(_0x416335);_0x2bf36e&&(!_0x1e5375||riskLevelOrder(_0x2bf36e)<riskLevelOrder(_0x1e5375))&&(_0x1e5375=_0x2bf36e);}return _0x1e5375??DEFAULT_CONFIG_VALUES[_0x583d32(0x101)];}export function resolveAppConfig({raw:_0x240b46,flags:_0x379bb7,layers:_0x43d141,readEnv:_0x1ef288}){const _0x5972ca=a283_0x4837,_0x4c29d3=_0x43d141?.['projectConfig']??{},_0x57a628=_0x43d141?.['globalConfig']??{},_0x331d0c=!!_0x43d141?.[_0x5972ca(0xd6)]||Object[_0x5972ca(0x100)](_0x4c29d3)[_0x5972ca(0xe8)]>0x0,_0x2ee608=!_0x331d0c,_0x45824b=_0x331d0c?resolveDefaultAppName(_0x4c29d3):undefined,_0x2fdce1=_0x2ee608?resolveDefaultAppName(_0x57a628):undefined,_0x5bb949=stringConfigValue(_0x379bb7[_0x5972ca(0xd5)]),_0x5559a8=_0x1ef288(_0x5972ca(0xf6)),_0x593bec={};if(_0x240b46[_0x5972ca(0xd8)]&&typeof _0x240b46[_0x5972ca(0xd8)]===_0x5972ca(0xe4))for(const [_0x5b4737,_0x4cf0fa]of Object['entries'](_0x240b46[_0x5972ca(0xd8)])){_0x4cf0fa&&typeof _0x4cf0fa==='object'&&_0x4cf0fa[_0x5972ca(0xe5)]&&(_0x593bec[_0x5b4737]=_0x4cf0fa);}const _0x5ebc13=_0x45824b||_0x2fdce1||resolveDefaultAppName(_0x240b46),_0x2a10f6=Object[_0x5972ca(0x100)](_0x593bec)[_0x5972ca(0xe8)]>0x0,_0x4994ea=_0x5bb949||_0x45824b||_0x5559a8||_0x2fdce1||_0x5ebc13||undefined,_0x257441=stringConfigValue(_0x379bb7[_0x5972ca(0xe5)]),_0x20cd2e=_0x257441?Object[_0x5972ca(0xe3)](_0x593bec)[_0x5972ca(0xec)](([,_0x43b364])=>_0x43b364?.[_0x5972ca(0xe5)]===_0x257441):[],_0xb1eeb1=_0x5bb949&&_0x593bec[_0x5bb949]?.[_0x5972ca(0xe5)]===_0x257441?[_0x5bb949,_0x593bec[_0x5bb949]]:undefined,_0x59f157=_0xb1eeb1??(_0x20cd2e[_0x5972ca(0xe8)]===0x1?_0x20cd2e[0x0]:undefined),_0xd95c9a=_0x59f157?.[0x0],_0x4d84a2=_0x59f157?.[0x1],_0xbb44d7=_0x257441?_0xd95c9a:_0x4994ea;let _0x50afd0=_0xbb44d7&&_0x593bec[_0xbb44d7]?_0x593bec[_0xbb44d7]:undefined;_0x257441&&_0x4d84a2&&(_0x50afd0=_0x4d84a2);const _0x3ba2ce=_0x257441?_0x4d84a2??_0x50afd0:_0x50afd0,_0x52c4ea=!_0x5bb949&&!_0x45824b&&_0x5559a8&&_0xbb44d7===_0x5559a8,_0x744c71=_0x5bb949||(_0x52c4ea?_0x5559a8:undefined)||(_0x257441?_0xd95c9a:undefined),_0xde0133=_0x3ba2ce?.[_0x5972ca(0xe5)],_0x36f5ba=_0x331d0c?resolveTopLevelAppCode(_0x4c29d3):undefined,_0x360731=_0x2ee608?resolveTopLevelAppCode(_0x57a628):undefined,_0x4b06b4=_0x5bb949||_0x45824b?_0xde0133:undefined,_0x11bb3c=!_0x5bb949&&!_0x45824b?_0xde0133:undefined,_0x45d980=_0x257441||_0x4b06b4||_0x36f5ba||_0x11bb3c||_0x360731||undefined,_0x52edff=_0x331d0c?stringConfigValue(_0x4c29d3[_0x5972ca(0xf0)]):undefined,_0x184896=_0x2ee608?stringConfigValue(_0x57a628['env']):undefined,_0x49cbd7=_0x379bb7[_0x5972ca(0xf0)]||_0x3ba2ce?.[_0x5972ca(0xf0)]||_0x52edff||_0x1ef288(_0x5972ca(0xda))||_0x184896||_0x240b46['env']||DEFAULT_CONFIG_VALUES['env'],_0x54c5c1=_0x3ba2ce?.[_0x5972ca(0xea)]||_0x240b46['locale']||DEFAULT_CONFIG_VALUES[_0x5972ca(0xea)],_0x4ff12f=_0x1ef288(_0x5972ca(0xdd))||_0x3ba2ce?.[_0x5972ca(0xd9)]||_0x240b46[_0x5972ca(0xd9)]||undefined,_0x239f21=_0x1ef288(_0x5972ca(0xe0))||_0x3ba2ce?.['accessKey']||_0x240b46[_0x5972ca(0xe9)]||undefined,_0x38074a=_0x379bb7[_0x5972ca(0x102)]||_0x1ef288('FORMAT')||_0x3ba2ce?.[_0x5972ca(0x102)]||_0x240b46['format'],_0x5c9936=normalizeLegacyOutputFormat(_0x38074a),_0xa4cd05=_0x1ef288(_0x5972ca(0xeb))||_0x3ba2ce?.['pageSize']||_0x240b46[_0x5972ca(0xf9)],_0x4bf720=_0xa4cd05?Number(_0xa4cd05)||undefined:undefined,_0x167d8d=_0x43d141?[_0x43d141[_0x5972ca(0xf5)][_0x5972ca(0x101)],_0x43d141[_0x5972ca(0xef)]['riskLevel']]:[_0x240b46[_0x5972ca(0x101)]],_0x522e15=resolveRiskCeiling(..._0x167d8d,_0x3ba2ce?.[_0x5972ca(0x101)]),_0x134d9b=resolveRiskCeiling(_0x522e15,_0x1ef288(_0x5972ca(0xf1))),_0x17c17a=_0x1ef288(_0x5972ca(0xdb)),_0x312703=_0x17c17a==='1'||_0x17c17a===_0x5972ca(0xe2),_0xbd9215=_0x3ba2ce?.[_0x5972ca(0xe6)]||_0x240b46[_0x5972ca(0xe6)]||DEFAULT_CONFIG_VALUES[_0x5972ca(0xe6)],_0x5dec73=selectConfiguredRegion({'appRegion':_0x3ba2ce?.[_0x5972ca(0xfd)],'projectRegion':_0x331d0c?_0x4c29d3[_0x5972ca(0xfd)]:undefined,'globalRegion':_0x331d0c||_0x2ee608?_0x57a628[_0x5972ca(0xfd)]:undefined,'mergedRegion':_0x240b46[_0x5972ca(0xfd)]}),_0x1ae8c2=normalizeLovrabetRegion(_0x5dec73[_0x5972ca(0xdf)])??DEFAULT_LOVRABET_REGION,_0x4c627e=isDaily(normalizeEnv(String(_0x49cbd7)))?_0x5972ca(0xfb):'production';return{'appCode':typeof _0x45d980===_0x5972ca(0xdc)&&_0x45d980[_0x5972ca(0xed)]()?_0x45d980['trim']():undefined,'region':_0x1ae8c2,'regionConfiguredValue':_0x5dec73['value'],'regionSource':_0x5dec73[_0x5972ca(0xf8)],'env':_0x4c627e,'locale':_0x54c5c1,'cookie':_0x4ff12f,'accessKey':_0x239f21,'format':_0x5c9936,'pageSize':_0x4bf720,'riskLevel':_0x134d9b,'verbose':_0x312703,'apiDir':_0xbd9215,'apps':_0x593bec,'defaultApp':_0x5ebc13,'currentApp':_0x2a10f6?_0xbb44d7:undefined,'explicitAppName':_0x744c71};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a284_0x3ea0(){const _0x4c5f13=['2401302UBHuMq','3lVfCQR','../auth/get-cookie.js','18329230bmKDoc','19913828hbBwzM','cookie','1699775eumnbA','9vVScIF','132iDpfvK','14gtiZSn','authRequired','295975AkNrEl','5043736WOxSfJ','3092888MlJFuK'];a284_0x3ea0=function(){return _0x4c5f13;};return a284_0x3ea0();}function a284_0x4cf4(_0x46f26a,_0x5e8324){_0x46f26a=_0x46f26a-0x161;const _0x3ea0e2=a284_0x3ea0();let _0x4cf4db=_0x3ea0e2[_0x46f26a];return _0x4cf4db;}(function(_0x2848e1,_0x5ec8f0){const _0x3d2509=a284_0x4cf4,_0x4281f7=_0x2848e1();while(!![]){try{const _0x5340f9=parseInt(_0x3d2509(0x162))/0x1+-parseInt(_0x3d2509(0x169))/0x2*(parseInt(_0x3d2509(0x16b))/0x3)+parseInt(_0x3d2509(0x164))/0x4*(-parseInt(_0x3d2509(0x167))/0x5)+parseInt(_0x3d2509(0x16a))/0x6+parseInt(_0x3d2509(0x165))/0x7*(-parseInt(_0x3d2509(0x168))/0x8)+parseInt(_0x3d2509(0x163))/0x9*(parseInt(_0x3d2509(0x16d))/0xa)+parseInt(_0x3d2509(0x16e))/0xb;if(_0x5340f9===_0x5ec8f0)break;else _0x4281f7['push'](_0x4281f7['shift']());}catch(_0x3b57a0){_0x4281f7['push'](_0x4281f7['shift']());}}}(a284_0x3ea0,0xefdb2));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x161185){const _0x2fa18d=a284_0x4cf4,{getCookie:_0x40fe9d}=await import(_0x2fa18d(0x16c)),_0x198318=_0x161185[_0x2fa18d(0x161)]||_0x40fe9d(),_0x4143ca=_0x198318?await getIsSessionValid():![];return{'cookie':_0x198318,'isLoggedIn':_0x4143ca,async 'getOrLogin'(){const _0x59dba6=_0x2fa18d;if(_0x198318&&_0x4143ca)return _0x198318;throw CliErrors[_0x59dba6(0x166)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x368ff1=a285_0x14cd;(function(_0x22de2a,_0x2c478b){const _0x140a99=a285_0x14cd,_0x3dd8ee=_0x22de2a();while(!![]){try{const _0x1e46e1=parseInt(_0x140a99(0x100))/0x1*(-parseInt(_0x140a99(0x114))/0x2)+-parseInt(_0x140a99(0x10c))/0x3*(parseInt(_0x140a99(0xfe))/0x4)+parseInt(_0x140a99(0x10d))/0x5+-parseInt(_0x140a99(0xe8))/0x6*(parseInt(_0x140a99(0x116))/0x7)+-parseInt(_0x140a99(0xf7))/0x8+parseInt(_0x140a99(0x10a))/0x9*(-parseInt(_0x140a99(0xfb))/0xa)+parseInt(_0x140a99(0xf3))/0xb*(parseInt(_0x140a99(0xf2))/0xc);if(_0x1e46e1===_0x2c478b)break;else _0x3dd8ee['push'](_0x3dd8ee['shift']());}catch(_0x187ddd){_0x3dd8ee['push'](_0x3dd8ee['shift']());}}}(a285_0x4e67,0x9d9fb));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a285_0x14cd(_0x3bec59,_0x48005a){_0x3bec59=_0x3bec59-0xe4;const _0x4e671f=a285_0x4e67();let _0x14cd1b=_0x4e671f[_0x3bec59];return _0x14cd1b;}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_0x368ff1(0xfc);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x34b7a8){for(const _0x834d42 of CONFIG_NAMES){const _0x399aae=resolve(_0x34b7a8,_0x834d42);if(existsSync(_0x399aae))return _0x399aae;}return undefined;}export function findProjectRootDirectory(_0xc0ce4a=process[a285_0x368ff1(0x115)]()){let _0x3b4bd8=resolve(_0xc0ce4a);const {root:_0x15c43c}=parse(_0x3b4bd8),_0x45ecc6=homedir();while(!![]){if(resolveConfigPath(_0x3b4bd8)){if(_0x3b4bd8===_0x45ecc6)break;return _0x3b4bd8;}if(_0x3b4bd8===_0x15c43c||_0x3b4bd8===_0x45ecc6)break;const _0x449d67=dirname(_0x3b4bd8);if(_0x449d67===_0x3b4bd8)break;_0x3b4bd8=_0x449d67;}return resolve(_0xc0ce4a);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2ef37f){const _0x237c8c=a285_0x368ff1;if(!existsSync(_0x2ef37f))return{'status':_0x237c8c(0xf8)};try{const _0x427a8b=readFileSync(_0x2ef37f,{'encoding':_0x237c8c(0x11a)});if(!_0x427a8b?.[_0x237c8c(0x119)]())return{'status':_0x237c8c(0xff)};const _0x17a09b=JSON[_0x237c8c(0x11c)](_0x427a8b);return{'status':'ok','data':_0x17a09b};}catch(_0x1d48d1){return{'status':_0x237c8c(0x112),'message':_0x1d48d1 instanceof Error?_0x1d48d1[_0x237c8c(0x11b)]:String(_0x1d48d1)};}}function parseCliConfigJsonFile(_0x576bb6,_0x136b80,_0x3a52fb){const _0x5e2cbe=a285_0x368ff1,_0x55dc5e=inspectCliConfigJsonFile(_0x576bb6);if(_0x55dc5e[_0x5e2cbe(0xe9)]==='missing'||_0x55dc5e['status']===_0x5e2cbe(0xff))return{};if(_0x55dc5e[_0x5e2cbe(0xe9)]==='ok')return _0x55dc5e[_0x5e2cbe(0xea)];return _0x136b80===_0x5e2cbe(0x107)&&_0x3a52fb&&console[_0x5e2cbe(0x112)](CLI_BIN_NAME+':\x20'+_0x3a52fb+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x576bb6+'\x0a\x20\x20'+_0x55dc5e['message']),{};}function normalizeLegacyConfigShape(_0x3d3c90){const _0x5cb7e6=a285_0x368ff1;if(!_0x3d3c90||typeof _0x3d3c90!==_0x5cb7e6(0xf4))return{'config':{},'migrated':![]};const _0x2f0c9a={..._0x3d3c90},_0x86460c=_0x2f0c9a[_0x5cb7e6(0x113)]&&typeof _0x2f0c9a[_0x5cb7e6(0x113)]===_0x5cb7e6(0xf4)?{..._0x2f0c9a[_0x5cb7e6(0x113)]}:{},_0x458189=Object['keys'](_0x86460c)[_0x5cb7e6(0x10e)],_0x1bb023=_0x2f0c9a[_0x5cb7e6(0xeb)]||_0x2f0c9a[_0x5cb7e6(0x109)];let _0x38cb85=![];if(_0x1bb023&&_0x458189===0x0){const _0x74241b=typeof _0x2f0c9a['defaultApp']===_0x5cb7e6(0x117)&&_0x2f0c9a['defaultApp'][_0x5cb7e6(0x119)]()?_0x2f0c9a['defaultApp']:String(_0x1bb023)[_0x5cb7e6(0x119)]();_0x86460c[_0x74241b]={'appcode':String(_0x1bb023)[_0x5cb7e6(0x119)](),..._0x2f0c9a[_0x5cb7e6(0xf1)]!=null?{'env':_0x2f0c9a[_0x5cb7e6(0xf1)]}:{},..._0x2f0c9a[_0x5cb7e6(0xf0)]!=null?{'apiDir':_0x2f0c9a[_0x5cb7e6(0xf0)]}:{},..._0x2f0c9a[_0x5cb7e6(0x104)]!=null?{'cookie':_0x2f0c9a[_0x5cb7e6(0x104)]}:{},..._0x2f0c9a[_0x5cb7e6(0xf5)]!=null?{'accessKey':_0x2f0c9a[_0x5cb7e6(0xf5)]}:{},..._0x2f0c9a[_0x5cb7e6(0xe4)]!=null?{'format':_0x2f0c9a[_0x5cb7e6(0xe4)]}:{},..._0x2f0c9a[_0x5cb7e6(0x110)]!=null?{'pageSize':_0x2f0c9a[_0x5cb7e6(0x110)]}:{},..._0x2f0c9a[_0x5cb7e6(0xe6)]!=null?{'riskLevel':_0x2f0c9a[_0x5cb7e6(0xe6)]}:{},..._0x2f0c9a[_0x5cb7e6(0xee)]!=null?{'locale':_0x2f0c9a[_0x5cb7e6(0xee)]}:{}},_0x2f0c9a[_0x5cb7e6(0x113)]=_0x86460c,delete _0x2f0c9a[_0x5cb7e6(0x106)],_0x38cb85=!![];}return('appcode'in _0x2f0c9a||'app'in _0x2f0c9a)&&(delete _0x2f0c9a[_0x5cb7e6(0xeb)],delete _0x2f0c9a[_0x5cb7e6(0x109)],_0x38cb85=!![]),{'config':_0x2f0c9a,'migrated':_0x38cb85};}function writeNormalizedConfigIfNeeded(_0x4a48db,_0x2a1dc2){const _0x5b5c41=a285_0x368ff1,_0x437993=JSON[_0x5b5c41(0xef)](normalizeConfigForWrite(_0x2a1dc2),null,0x2)+'\x0a';if(normalizedWriteCache[_0x5b5c41(0x10b)](_0x4a48db)===_0x437993)return;writeConfigFile(_0x4a48db,_0x2a1dc2),normalizedWriteCache[_0x5b5c41(0x105)](_0x4a48db,_0x437993);}function parseAndNormalizeConfig(_0x247083,_0x2ff4f3,_0x4110b5){const _0xee2241=a285_0x368ff1,_0x3484e8=parseCliConfigJsonFile(_0x247083,_0x2ff4f3,_0x4110b5),_0x2f2cef=normalizeLegacyConfigShape(_0x3484e8);if(_0x2f2cef[_0xee2241(0x102)])try{writeNormalizedConfigIfNeeded(_0x247083,_0x2f2cef[_0xee2241(0xf6)]);}catch{}return _0x2f2cef[_0xee2241(0xf6)];}export function loadRawConfigLayers(_0x5b556c){const _0x595add=a285_0x368ff1;let _0x5249d0={},_0x25dbbc={};const _0x3afb6e=resolveConfigPath(homedir());_0x3afb6e&&(_0x5249d0=parseAndNormalizeConfig(_0x3afb6e,_0x595add(0x107),'Global'));const _0xb5f765=_0x5b556c??findProjectRootDirectory(),_0x349682=resolveConfigPath(_0xb5f765);return _0x349682&&(_0x25dbbc=parseAndNormalizeConfig(_0x349682,_0x595add(0x107),'Project')),{'globalPath':_0x3afb6e,'projectPath':_0x349682,'globalConfig':_0x5249d0,'projectConfig':_0x25dbbc};}const INHERIT_WHITELIST=['cookie',a285_0x368ff1(0xf5),a285_0x368ff1(0xee),'format',a285_0x368ff1(0xe6),'pageSize',a285_0x368ff1(0xec),'routing','userDomain',a285_0x368ff1(0x103),a285_0x368ff1(0x10f),a285_0x368ff1(0x111),a285_0x368ff1(0x101),a285_0x368ff1(0xfd),'appDomain',a285_0x368ff1(0x118),a285_0x368ff1(0xf9)];export function mergeRawConfigLayers(_0x3dc2c5){const _0x5954ce=a285_0x368ff1,{globalConfig:_0x433ae8,projectConfig:_0x1668b1}=_0x3dc2c5,_0x49bac2=!!_0x3dc2c5['projectPath']||Object[_0x5954ce(0xfa)](_0x1668b1)['length']>0x0;if(!_0x49bac2)return mergeGlobalOnly(_0x433ae8);return mergeProjectFirst(_0x433ae8,_0x1668b1);}function mergeGlobalOnly(_0xd16cae){const _0x407b22=a285_0x368ff1,_0x2ee468={..._0xd16cae};delete _0x2ee468[_0x407b22(0xe5)];const _0x297574=_0xd16cae['apps']&&typeof _0xd16cae[_0x407b22(0x113)]==='object'?_0xd16cae[_0x407b22(0x113)]:{};if(Object[_0x407b22(0xfa)](_0x297574)[_0x407b22(0x10e)]>0x0)_0x2ee468[_0x407b22(0x113)]=_0x297574;if(_0xd16cae[_0x407b22(0x106)])_0x2ee468['defaultApp']=_0xd16cae[_0x407b22(0x106)];return _0x2ee468;}function mergeProjectFirst(_0x56fe39,_0x4ddf50){const _0x16005f=a285_0x368ff1,_0x1f694d={..._0x4ddf50};delete _0x1f694d[_0x16005f(0xe5)];for(const _0x1d51a2 of INHERIT_WHITELIST){!(_0x1d51a2 in _0x1f694d)&&_0x1d51a2 in _0x56fe39&&(_0x1f694d[_0x1d51a2]=_0x56fe39[_0x1d51a2]);}const _0x382538=_0x4ddf50[_0x16005f(0x113)]&&typeof _0x4ddf50[_0x16005f(0x113)]===_0x16005f(0xf4)?_0x4ddf50['apps']:{};return Object[_0x16005f(0xfa)](_0x382538)['length']>0x0?_0x1f694d[_0x16005f(0x113)]=_0x382538:delete _0x1f694d['apps'],_0x16005f(0x106)in _0x4ddf50?_0x1f694d[_0x16005f(0x106)]=_0x4ddf50['defaultApp']:delete _0x1f694d[_0x16005f(0x106)],_0x1f694d;}export function readRawConfigWithLayers(_0x5cf32d){const _0x1bf22c=loadRawConfigLayers(_0x5cf32d);return{'config':mergeRawConfigLayers(_0x1bf22c),'layers':_0x1bf22c};}function a285_0x4e67(){const _0x5334c4=['674TwEAOw','cwd','7JxnKtY','string','localDomain','trim','utf8','message','parse','format','inherit','riskLevel','silent','6012678lXrRQe','status','data','appcode','region','.tmp','locale','stringify','apiDir','env','107628jErRbA','5137JRsnIc','object','accessKey','config','6734752MrXSYV','missing','certificateDomain','keys','10FSJavf','.rabetbase.json','kbServiceDomain','2372XgnvKz','empty','2235uNalqy','kbDomain','migrated','apiDomain','cookie','set','defaultApp','warn','project','app','391869gTeTQh','get','6423Pjauma','1837050DQaeWl','length','runtimeDomain','pageSize','skillDomain','error','apps'];a285_0x4e67=function(){return _0x5334c4;};return a285_0x4e67();}export function readRawConfig(_0x3fda42){return mergeRawConfigLayers(loadRawConfigLayers(_0x3fda42));}export function readConfigFile(_0x34bab7){const _0x2ba675=a285_0x368ff1;return parseAndNormalizeConfig(_0x34bab7,_0x2ba675(0xe7));}export function writeConfigFile(_0x2c8b80,_0x410b40){const _0x3957d1=a285_0x368ff1,_0x1c17d1=dirname(_0x2c8b80);!existsSync(_0x1c17d1)&&mkdirSync(_0x1c17d1,{'recursive':!![]});const _0x405517=_0x2c8b80+_0x3957d1(0xed);try{const _0x13e2cc=normalizeConfigForWrite(_0x410b40);writeFileSync(_0x405517,JSON[_0x3957d1(0xef)](_0x13e2cc,null,0x2)+'\x0a',{'encoding':_0x3957d1(0x11a),'mode':0x180}),renameSync(_0x405517,_0x2c8b80);}catch(_0x2a9281){try{unlinkSync(_0x405517);}catch{}throw _0x2a9281;}}export function resolveWriteConfigPath(_0x2c26b5){const _0x477f54=a285_0x368ff1,_0x57dcdf=_0x2c26b5===_0x477f54(0x108)?process[_0x477f54(0x115)]():homedir(),_0x2d05fb=resolveConfigPath(_0x57dcdf);return _0x2d05fb??resolve(_0x57dcdf,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a285_0x1bd4f0=a285_0x3b8b;(function(_0x5540e9,_0x3ece0e){const _0x86eef1=a285_0x3b8b,_0x2563f1=_0x5540e9();while(!![]){try{const _0x108c21=-parseInt(_0x86eef1(0x1f6))/0x1*(parseInt(_0x86eef1(0x1fe))/0x2)+parseInt(_0x86eef1(0x1d1))/0x3+-parseInt(_0x86eef1(0x1ee))/0x4+-parseInt(_0x86eef1(0x1e6))/0x5+parseInt(_0x86eef1(0x1d0))/0x6*(-parseInt(_0x86eef1(0x1ec))/0x7)+parseInt(_0x86eef1(0x20f))/0x8*(-parseInt(_0x86eef1(0x1fc))/0x9)+parseInt(_0x86eef1(0x203))/0xa;if(_0x108c21===_0x3ece0e)break;else _0x2563f1['push'](_0x2563f1['shift']());}catch(_0x339719){_0x2563f1['push'](_0x2563f1['shift']());}}}(a285_0x12b8,0x814a8));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';function a285_0x12b8(){const _0x55e830=['app\x20profile\x20\x22','skillDomain','5618454OShEkZ','1049181bpmugJ','join','setLogPath','routingConfig','setRawCommand','projectConfig','userDomain','config','agentDomain','some','regionSource','apiDomain','cwd','entries','skillHubDomain','./utils/is-non-interactive.js','kbServiceDomain','daily','routing','region','runtimeDomain','1621840RgJExY','replace','project','values','template_base_url','kbDomain','7ROYuHL','trim','2691260tdYvyc','currentApp','global\x20Rabetbase\x20configuration','certificateDomain','project\x20Rabetbase\x20configuration','apiGroup','argv','production','24147SFMKqJ','string','keys','targetEnv','cdn','hasOwnProperty','9LjlaAS','globalConfig','50spzIHp','global','appDomain','env','merged','36493970pWczkj','length','name','platformDomain','object','prototype','map','./constant/domain.js','slice','appcode','Rabetbase\x20configuration','https://g.lovrabet.com/dist/lovrabet-skill','7458248naPnQG','apps','apiDir','raw','call','app','domains','filePath','localDomain','defaultApp'];a285_0x12b8=function(){return _0x55e830;};return a285_0x12b8();}function a285_0x3b8b(_0x9a06d9,_0x477bab){_0x9a06d9=_0x9a06d9-0x1cd;const _0x12b8e4=a285_0x12b8();let _0x3b8bf5=_0x12b8e4[_0x9a06d9];return _0x3b8bf5;}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(_0x5e9685){return process.env[`RABETBASE_${_0x5e9685}`]||process.env[`LOVRABET_${_0x5e9685}`]||undefined;}function optionalString(_0x5b4a6f){const _0x19519a=a285_0x3b8b;return typeof _0x5b4a6f===_0x19519a(0x1f7)&&_0x5b4a6f[_0x19519a(0x1ed)]()?_0x5b4a6f[_0x19519a(0x1ed)]():undefined;}export function isRoutingRecoveryService(_0x1cc21b){const _0x4f333c=a285_0x3b8b;return _0x1cc21b===_0x4f333c(0x1d8)||_0x1cc21b==='doctor';}export async function createContext(_0x4a542f){const _0x4c920b=a285_0x3b8b,{config:_0x3b13a1,layers:_0x301b73}=readRawConfigWithLayers(),_0x4e9811=buildConfig(_0x3b13a1,_0x4a542f,_0x301b73);await initGlobalEnvironment(_0x4e9811);const {getUserDomain:_0x13ea15,getApiDomain:_0x1a7e22}=await import(_0x4c920b(0x20a)),_0x491b07={'apiDomain':_0x1a7e22(),'userDomain':_0x13ea15()},_0x111789=await buildAuth(_0x4e9811);logger[_0x4c920b(0x1d3)](process[_0x4c920b(0x1dd)]());const _0x8fdb79=(CLI_BIN_NAME+'\x20'+process[_0x4c920b(0x1f4)][_0x4c920b(0x20b)](0x2)[_0x4c920b(0x1d2)]('\x20'))[_0x4c920b(0x1ed)]();logger[_0x4c920b(0x1d5)](_0x8fdb79);const {isNonInteractive:_0x3a24ad}=await import(_0x4c920b(0x1e0)),_0xe5442b=_0x3a24ad(_0x4a542f);return{'config':_0x4e9811,'auth':_0x111789,'logger':logger,'env':_0x491b07,'nonInteractive':_0xe5442b};}export function buildConfigFromFlags(_0x47c527){const {config:_0x54db97,layers:_0x19c84e}=readRawConfigWithLayers();return buildConfig(_0x54db97,_0x47c527,_0x19c84e);}export async function initGlobalEnvironment(_0x123198){const _0x15e78f=a285_0x3b8b,_0x320a43=_0x123198[_0x15e78f(0x1db)]===_0x15e78f(0x214)&&_0x123198[_0x15e78f(0x1ef)]?'app\x20profile\x20\x22'+_0x123198[_0x15e78f(0x1ef)]+'\x22':_0x123198['regionSource']==='project'?_0x15e78f(0x1f2):_0x123198[_0x15e78f(0x1db)]===_0x15e78f(0x1ff)?_0x15e78f(0x1f0):_0x15e78f(0x20d);await initConfiguredEnvironment({'raw':_0x123198[_0x15e78f(0x212)],'configuredRegion':_0x123198['regionConfiguredValue']??_0x123198[_0x15e78f(0x212)]?.[_0x15e78f(0x1e4)]??_0x123198['region'],'regionLocation':_0x320a43,'targetEnv':_0x123198[_0x15e78f(0x201)]});}async function initConfiguredEnvironment(_0x1ad266){const _0xf868ad=a285_0x3b8b,_0x32d127=resolveConfiguredRegion(_0x1ad266['configuredRegion'],_0x1ad266['regionLocation']),_0x3ef506=resolveEnterpriseRoutingManifest(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1e3)]),_0x17edab={'region':_0x32d127,'apiDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x1dc)]:optionalString(_0x1ad266['raw']?.['apiDomain']),'userDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1d7)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d7)]),'runtimeDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1e5)]:optionalString(_0x1ad266['raw']?.[_0xf868ad(0x1e5)]),'skillDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x1cf)]:optionalString(_0x1ad266['raw']?.['skillDomain'])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1df)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d9)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x206)]),'kbDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1eb)]:optionalString(_0x1ad266['raw']?.[_0xf868ad(0x1eb)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d9)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x206)]),'kbServiceDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)]['kbServiceDomain']:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1e1)]),'appDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x200)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.['appDomain']),'localDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x217)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x217)]),'certificateDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)]['certificateDomain']:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1f1)]),'cdn':_0x3ef506?.[_0xf868ad(0x1fa)],'allowOfficialKbServiceDefault':!(_0x3ef506!==undefined||[_0xf868ad(0x1dc),_0xf868ad(0x1d7),'runtimeDomain',_0xf868ad(0x1cf),_0xf868ad(0x1df),_0xf868ad(0x1eb),_0xf868ad(0x1e1),_0xf868ad(0x1d9),_0xf868ad(0x206),_0xf868ad(0x200),_0xf868ad(0x217),_0xf868ad(0x1f1)][_0xf868ad(0x1da)](_0x55d486=>Object[_0xf868ad(0x208)]['hasOwnProperty'][_0xf868ad(0x213)](_0x1ad266[_0xf868ad(0x212)]??{},_0x55d486)))},{initEnv:_0xb9f998}=await import('./constant/env.js'),{initDomains:_0x44bc52}=await import(_0xf868ad(0x20a));_0xb9f998(_0x1ad266[_0xf868ad(0x1f9)]),_0x44bc52(_0x17edab);}export async function initMultiAppEnvironment(_0x5894e8){const _0x376287=a285_0x3b8b;await initConfiguredEnvironment({'raw':_0x5894e8[_0x376287(0x1d4)],'configuredRegion':_0x5894e8[_0x376287(0x1e4)],'regionLocation':_0x376287(0x1ce)+_0x5894e8[_0x376287(0x205)]+'\x22','targetEnv':_0x5894e8['env']==='daily'?_0x376287(0x1e2):_0x376287(0x1f5)});}export function getConfigAppCode(_0x559972){const _0x53f8a0=a285_0x3b8b,_0x57448e=readRawConfig(_0x559972);if(_0x57448e['apps']&&typeof _0x57448e[_0x53f8a0(0x210)]==='object'){const _0x573739=_0x57448e[_0x53f8a0(0x1cd)];if(_0x573739)return _0x57448e[_0x53f8a0(0x210)][_0x573739]?.[_0x53f8a0(0x20c)]?String(_0x57448e['apps'][_0x573739][_0x53f8a0(0x20c)])[_0x53f8a0(0x1ed)]():undefined;const _0x3c4be1=Object[_0x53f8a0(0x1e9)](_0x57448e[_0x53f8a0(0x210)]);if(_0x3c4be1[_0x53f8a0(0x204)]===0x1&&_0x3c4be1[0x0]?.[_0x53f8a0(0x20c)])return String(_0x3c4be1[0x0][_0x53f8a0(0x20c)])[_0x53f8a0(0x1ed)]();}const _0x4a46b7=_0x57448e[_0x53f8a0(0x20c)]||_0x57448e[_0x53f8a0(0x214)];if(typeof _0x4a46b7!=='string'||_0x4a46b7[_0x53f8a0(0x1ed)]()==='')return undefined;return _0x4a46b7['trim']();}const CONNECTION_ROUTING_KEYS=[a285_0x1bd4f0(0x1e3),a285_0x1bd4f0(0x1dc),a285_0x1bd4f0(0x1d7),a285_0x1bd4f0(0x1e5),'skillDomain',a285_0x1bd4f0(0x1df),a285_0x1bd4f0(0x1eb),a285_0x1bd4f0(0x1e1),a285_0x1bd4f0(0x1d9),a285_0x1bd4f0(0x206),a285_0x1bd4f0(0x200),a285_0x1bd4f0(0x217),a285_0x1bd4f0(0x1f1)];function withAppProfileRouting(_0x5be3f4,_0x771660){const _0x5da480=a285_0x1bd4f0;if(!_0x771660||_0x771660[_0x5da480(0x1e1)]===undefined)return _0x5be3f4;return{..._0x5be3f4,'kbServiceDomain':_0x771660[_0x5da480(0x1e1)]};}function pickConnectionRoutingConfig(_0x430639,_0x390a30){const _0x2a9f65={'region':_0x390a30};for(const _0x58797e of CONNECTION_ROUTING_KEYS){if(_0x430639[_0x58797e]!==undefined)_0x2a9f65[_0x58797e]=_0x430639[_0x58797e];}return _0x2a9f65;}export function getMultiAppConfigs(_0x415c8a=a285_0x1bd4f0(0x1e8),_0x31f99e){const _0x1ca196=a285_0x1bd4f0,_0x2302b8=loadRawConfigLayers(_0x31f99e);let _0x248685,_0x2547e3;const _0x167abb=mergeRawConfigLayers(_0x2302b8),_0x44a27f=_0x2302b8[_0x1ca196(0x1fd)]['apps']&&typeof _0x2302b8['globalConfig'][_0x1ca196(0x210)]==='object'?_0x2302b8[_0x1ca196(0x1fd)]['apps']:{},_0xdbbdea=_0x2302b8['projectConfig'][_0x1ca196(0x210)]&&typeof _0x2302b8[_0x1ca196(0x1d6)][_0x1ca196(0x210)]==='object'?_0x2302b8['projectConfig'][_0x1ca196(0x210)]:{};_0x415c8a===_0x1ca196(0x202)?(_0x248685={..._0x44a27f,..._0xdbbdea},_0x2547e3=_0x167abb[_0x1ca196(0x1cd)]):(_0x248685=_0x2302b8[_0x1ca196(0x1d6)][_0x1ca196(0x210)],_0x2547e3=_0x2302b8[_0x1ca196(0x1d6)]['defaultApp']);!_0x2547e3&&_0x248685&&typeof _0x248685===_0x1ca196(0x207)&&Object[_0x1ca196(0x1f8)](_0x248685)[_0x1ca196(0x204)]===0x1&&(_0x2547e3=Object[_0x1ca196(0x1f8)](_0x248685)[0x0]);if(!_0x248685||typeof _0x248685!==_0x1ca196(0x207)||Object['keys'](_0x248685)['length']===0x0)return null;return Object[_0x1ca196(0x1de)](_0x248685)[_0x1ca196(0x209)](([_0x491b02,_0x2495f8])=>{const _0x47f2cf=_0x1ca196,_0xbbc10a=_0x415c8a===_0x47f2cf(0x1e8)||Object[_0x47f2cf(0x208)][_0x47f2cf(0x1fb)][_0x47f2cf(0x213)](_0xdbbdea,_0x491b02),_0xc7a1f3=withAppProfileRouting(_0xbbc10a?_0x167abb:_0x2302b8[_0x47f2cf(0x1fd)],_0x2495f8),_0x32921f=resolveEffectiveRegion({'appRegion':_0x2495f8?.[_0x47f2cf(0x1e4)],'projectRegion':_0xbbc10a?_0x2302b8[_0x47f2cf(0x1d6)]['region']:undefined,'globalRegion':_0x2302b8[_0x47f2cf(0x1fd)][_0x47f2cf(0x1e4)],'mergedRegion':_0xc7a1f3[_0x47f2cf(0x1e4)],'appName':_0x491b02});return{'name':_0x491b02,'appcode':_0x2495f8?.[_0x47f2cf(0x20c)]||'','apiGroup':optionalString(_0x2495f8?.[_0x47f2cf(0x1f3)]),'isDefault':_0x491b02===_0x2547e3,'region':_0x32921f['region'],'regionSource':_0x32921f['source'],'env':_0x2495f8?.[_0x47f2cf(0x201)],'apiDir':optionalString(_0x2495f8?.[_0x47f2cf(0x211)])||optionalString(_0xc7a1f3[_0x47f2cf(0x211)]),'cookie':_0x2495f8?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0xc7a1f3,_0x32921f[_0x47f2cf(0x1e4)])};})['filter'](_0x3230ef=>_0x3230ef[_0x1ca196(0x20c)]);}export function getTemplateBaseUrl(_0x4a1342){const _0x38ac82=a285_0x1bd4f0,_0x28cc2d=readRawConfig(_0x4a1342);if(_0x28cc2d[_0x38ac82(0x1ea)]&&typeof _0x28cc2d['template_base_url']===_0x38ac82(0x1f7))return _0x28cc2d[_0x38ac82(0x1ea)][_0x38ac82(0x1e7)](/\/$/,'');return _0x38ac82(0x20e);}function buildConfig(_0x4c00cd,_0x23abfb,_0x235b68){const _0x55468c=a285_0x1bd4f0,_0x3c357d=resolveAppConfig({'raw':_0x4c00cd,'flags':_0x23abfb,'layers':_0x235b68,'readEnv':env}),_0x2a36e8=_0x3c357d[_0x55468c(0x1ef)]?_0x3c357d['apps'][_0x3c357d['currentApp']]:undefined;return{..._0x3c357d,'raw':withAppProfileRouting(_0x4c00cd,_0x2a36e8)};}export function resolveApiFilePath(_0x5a6543,_0x1e3817,_0x9d38ec){const _0x246a33=a285_0x1bd4f0;return resolveApiModelSource(_0x5a6543,_0x1e3817,_0x9d38ec)[_0x246a33(0x216)];}
|
|
1
|
+
const a286_0xf0e408=a286_0x2355;(function(_0x49c62,_0x1c1f02){const _0x5d5497=a286_0x2355,_0x21f668=_0x49c62();while(!![]){try{const _0x2b7ec2=-parseInt(_0x5d5497(0x150))/0x1*(-parseInt(_0x5d5497(0x15d))/0x2)+parseInt(_0x5d5497(0x15f))/0x3+parseInt(_0x5d5497(0x180))/0x4+-parseInt(_0x5d5497(0x156))/0x5+-parseInt(_0x5d5497(0x179))/0x6*(-parseInt(_0x5d5497(0x187))/0x7)+-parseInt(_0x5d5497(0x18c))/0x8*(-parseInt(_0x5d5497(0x184))/0x9)+parseInt(_0x5d5497(0x16b))/0xa*(-parseInt(_0x5d5497(0x175))/0xb);if(_0x2b7ec2===_0x1c1f02)break;else _0x21f668['push'](_0x21f668['shift']());}catch(_0x5aeaae){_0x21f668['push'](_0x21f668['shift']());}}}(a286_0x245a,0xd5473));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(_0x39a4b0){return process.env[`RABETBASE_${_0x39a4b0}`]||process.env[`LOVRABET_${_0x39a4b0}`]||undefined;}function optionalString(_0x40f42f){const _0x13a7ab=a286_0x2355;return typeof _0x40f42f===_0x13a7ab(0x16e)&&_0x40f42f[_0x13a7ab(0x18d)]()?_0x40f42f['trim']():undefined;}export function isRoutingRecoveryService(_0x2c698d){const _0x2e4578=a286_0x2355;return _0x2c698d===_0x2e4578(0x14f)||_0x2c698d===_0x2e4578(0x173);}export async function createContext(_0x56cd29){const _0x1fc92e=a286_0x2355,{config:_0x9835fe,layers:_0xb5add1}=readRawConfigWithLayers(),_0x13d7ee=buildConfig(_0x9835fe,_0x56cd29,_0xb5add1);await initGlobalEnvironment(_0x13d7ee);const {getUserDomain:_0x184ec2,getApiDomain:_0x437814}=await import(_0x1fc92e(0x14b)),_0x1e0c75={'apiDomain':_0x437814(),'userDomain':_0x184ec2()},_0x4dbeb4=await buildAuth(_0x13d7ee);logger[_0x1fc92e(0x153)](process[_0x1fc92e(0x147)]());const _0x4bf8a4=(CLI_BIN_NAME+'\x20'+process[_0x1fc92e(0x155)][_0x1fc92e(0x15b)](0x2)['join']('\x20'))[_0x1fc92e(0x18d)]();logger[_0x1fc92e(0x174)](_0x4bf8a4);const {isNonInteractive:_0x7ccdce}=await import('./utils/is-non-interactive.js'),_0x47e0bb=_0x7ccdce(_0x56cd29);return{'config':_0x13d7ee,'auth':_0x4dbeb4,'logger':logger,'env':_0x1e0c75,'nonInteractive':_0x47e0bb};}export function buildConfigFromFlags(_0x1c56a8){const {config:_0x4fed77,layers:_0x501126}=readRawConfigWithLayers();return buildConfig(_0x4fed77,_0x1c56a8,_0x501126);}function a286_0x2355(_0x19e5be,_0x4f1593){_0x19e5be=_0x19e5be-0x144;const _0x245a64=a286_0x245a();let _0x2355b3=_0x245a64[_0x19e5be];return _0x2355b3;}export async function initGlobalEnvironment(_0x434c60){const _0x1113ab=a286_0x2355,_0x420a96=_0x434c60[_0x1113ab(0x16f)]===_0x1113ab(0x17c)&&_0x434c60['currentApp']?_0x1113ab(0x151)+_0x434c60[_0x1113ab(0x177)]+'\x22':_0x434c60[_0x1113ab(0x16f)]==='project'?_0x1113ab(0x163):_0x434c60[_0x1113ab(0x16f)]===_0x1113ab(0x15c)?'global\x20Rabetbase\x20configuration':'Rabetbase\x20configuration';await initConfiguredEnvironment({'raw':_0x434c60['raw'],'configuredRegion':_0x434c60[_0x1113ab(0x14d)]??_0x434c60['raw']?.[_0x1113ab(0x154)]??_0x434c60['region'],'regionLocation':_0x420a96,'targetEnv':_0x434c60[_0x1113ab(0x178)]});}async function initConfiguredEnvironment(_0x251568){const _0x1d6dd1=a286_0x2355,_0x532f33=resolveConfiguredRegion(_0x251568[_0x1d6dd1(0x160)],_0x251568['regionLocation']),_0xcc858d=resolveEnterpriseRoutingManifest(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x14e)]),_0x401273={'region':_0x532f33,'apiDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x186)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x186)]),'userDomain':_0xcc858d?_0xcc858d['domains'][_0x1d6dd1(0x146)]:optionalString(_0x251568['raw']?.[_0x1d6dd1(0x146)]),'runtimeDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x182)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x182)]),'skillDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x165)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x165)])||optionalString(_0x251568['raw']?.[_0x1d6dd1(0x18a)])||optionalString(_0x251568[_0x1d6dd1(0x17d)]?.['agentDomain'])||optionalString(_0x251568['raw']?.[_0x1d6dd1(0x172)]),'kbDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x15e)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x15e)])||optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x17f)])||optionalString(_0x251568['raw']?.[_0x1d6dd1(0x172)]),'kbServiceDomain':_0xcc858d?_0xcc858d['domains'][_0x1d6dd1(0x16c)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.['kbServiceDomain']),'appDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x14c)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x14c)]),'localDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x148)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x148)]),'certificateDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x189)]:optionalString(_0x251568['raw']?.[_0x1d6dd1(0x189)]),'cdn':_0xcc858d?.[_0x1d6dd1(0x14a)],'allowOfficialKbServiceDefault':!(_0xcc858d!==undefined||[_0x1d6dd1(0x186),_0x1d6dd1(0x146),_0x1d6dd1(0x182),_0x1d6dd1(0x165),'skillHubDomain',_0x1d6dd1(0x15e),_0x1d6dd1(0x16c),'agentDomain',_0x1d6dd1(0x172),_0x1d6dd1(0x14c),_0x1d6dd1(0x148),_0x1d6dd1(0x189)][_0x1d6dd1(0x161)](_0x5af89a=>Object[_0x1d6dd1(0x166)][_0x1d6dd1(0x145)][_0x1d6dd1(0x16d)](_0x251568[_0x1d6dd1(0x17d)]??{},_0x5af89a)))},{initEnv:_0x211c08}=await import(_0x1d6dd1(0x181)),{initDomains:_0x2e5599}=await import('./constant/domain.js');_0x211c08(_0x251568[_0x1d6dd1(0x162)]),_0x2e5599(_0x401273);}export async function initMultiAppEnvironment(_0x32797e){const _0x28deb8=a286_0x2355;await initConfiguredEnvironment({'raw':_0x32797e[_0x28deb8(0x15a)],'configuredRegion':_0x32797e[_0x28deb8(0x154)],'regionLocation':'app\x20profile\x20\x22'+_0x32797e[_0x28deb8(0x188)]+'\x22','targetEnv':_0x32797e[_0x28deb8(0x178)]===_0x28deb8(0x176)?_0x28deb8(0x176):_0x28deb8(0x158)});}export function getConfigAppCode(_0x3cbf1f){const _0x39dc9b=a286_0x2355,_0x2a4821=readRawConfig(_0x3cbf1f);if(_0x2a4821[_0x39dc9b(0x169)]&&typeof _0x2a4821[_0x39dc9b(0x169)]==='object'){const _0x51b20f=_0x2a4821[_0x39dc9b(0x152)];if(_0x51b20f)return _0x2a4821[_0x39dc9b(0x169)][_0x51b20f]?.[_0x39dc9b(0x18b)]?String(_0x2a4821['apps'][_0x51b20f][_0x39dc9b(0x18b)])[_0x39dc9b(0x18d)]():undefined;const _0x587897=Object[_0x39dc9b(0x164)](_0x2a4821['apps']);if(_0x587897[_0x39dc9b(0x17b)]===0x1&&_0x587897[0x0]?.[_0x39dc9b(0x18b)])return String(_0x587897[0x0][_0x39dc9b(0x18b)])[_0x39dc9b(0x18d)]();}const _0x582968=_0x2a4821[_0x39dc9b(0x18b)]||_0x2a4821['app'];if(typeof _0x582968!==_0x39dc9b(0x16e)||_0x582968[_0x39dc9b(0x18d)]()==='')return undefined;return _0x582968[_0x39dc9b(0x18d)]();}const CONNECTION_ROUTING_KEYS=[a286_0xf0e408(0x14e),a286_0xf0e408(0x186),a286_0xf0e408(0x146),a286_0xf0e408(0x182),a286_0xf0e408(0x165),a286_0xf0e408(0x18a),a286_0xf0e408(0x15e),a286_0xf0e408(0x16c),a286_0xf0e408(0x17f),a286_0xf0e408(0x172),a286_0xf0e408(0x14c),a286_0xf0e408(0x148),a286_0xf0e408(0x189)];function withAppProfileRouting(_0xa0c867,_0x5631a8){const _0x48adb2=a286_0xf0e408;if(!_0x5631a8||_0x5631a8[_0x48adb2(0x16c)]===undefined)return _0xa0c867;return{..._0xa0c867,'kbServiceDomain':_0x5631a8['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x47d561,_0xf444fe){const _0x240e75={'region':_0xf444fe};for(const _0x531b72 of CONNECTION_ROUTING_KEYS){if(_0x47d561[_0x531b72]!==undefined)_0x240e75[_0x531b72]=_0x47d561[_0x531b72];}return _0x240e75;}export function getMultiAppConfigs(_0xff8999='project',_0x487697){const _0x3ed03f=a286_0xf0e408,_0x4da131=loadRawConfigLayers(_0x487697);let _0x556029,_0x252069;const _0x21aec8=mergeRawConfigLayers(_0x4da131),_0x370c52=_0x4da131[_0x3ed03f(0x17e)][_0x3ed03f(0x169)]&&typeof _0x4da131[_0x3ed03f(0x17e)]['apps']===_0x3ed03f(0x157)?_0x4da131[_0x3ed03f(0x17e)][_0x3ed03f(0x169)]:{},_0xf05cc3=_0x4da131[_0x3ed03f(0x144)][_0x3ed03f(0x169)]&&typeof _0x4da131[_0x3ed03f(0x144)]['apps']===_0x3ed03f(0x157)?_0x4da131[_0x3ed03f(0x144)][_0x3ed03f(0x169)]:{};_0xff8999==='merged'?(_0x556029={..._0x370c52,..._0xf05cc3},_0x252069=_0x21aec8[_0x3ed03f(0x152)]):(_0x556029=_0x4da131['projectConfig']['apps'],_0x252069=_0x4da131[_0x3ed03f(0x144)][_0x3ed03f(0x152)]);!_0x252069&&_0x556029&&typeof _0x556029===_0x3ed03f(0x157)&&Object['keys'](_0x556029)[_0x3ed03f(0x17b)]===0x1&&(_0x252069=Object[_0x3ed03f(0x17a)](_0x556029)[0x0]);if(!_0x556029||typeof _0x556029!==_0x3ed03f(0x157)||Object[_0x3ed03f(0x17a)](_0x556029)['length']===0x0)return null;return Object[_0x3ed03f(0x16a)](_0x556029)[_0x3ed03f(0x170)](([_0x4de671,_0x5bbdaa])=>{const _0x373c06=_0x3ed03f,_0x3ba234=_0xff8999==='project'||Object['prototype'][_0x373c06(0x145)][_0x373c06(0x16d)](_0xf05cc3,_0x4de671),_0x21213a=withAppProfileRouting(_0x3ba234?_0x21aec8:_0x4da131[_0x373c06(0x17e)],_0x5bbdaa),_0x38e9f5=resolveEffectiveRegion({'appRegion':_0x5bbdaa?.[_0x373c06(0x154)],'projectRegion':_0x3ba234?_0x4da131[_0x373c06(0x144)]['region']:undefined,'globalRegion':_0x4da131[_0x373c06(0x17e)][_0x373c06(0x154)],'mergedRegion':_0x21213a[_0x373c06(0x154)],'appName':_0x4de671});return{'name':_0x4de671,'appcode':_0x5bbdaa?.[_0x373c06(0x18b)]||'','apiGroup':optionalString(_0x5bbdaa?.[_0x373c06(0x185)]),'isDefault':_0x4de671===_0x252069,'region':_0x38e9f5[_0x373c06(0x154)],'regionSource':_0x38e9f5['source'],'env':_0x5bbdaa?.[_0x373c06(0x178)],'apiDir':optionalString(_0x5bbdaa?.[_0x373c06(0x167)])||optionalString(_0x21213a[_0x373c06(0x167)]),'cookie':_0x5bbdaa?.[_0x373c06(0x149)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x21213a,_0x38e9f5['region'])};})[_0x3ed03f(0x183)](_0x4f3275=>_0x4f3275['appcode']);}function a286_0x245a(){const _0x217303=['globalConfig','agentDomain','1012648CBuRSF','./constant/env.js','runtimeDomain','filter','12738258TKJkMe','apiGroup','apiDomain','1356901SZpcOS','name','certificateDomain','skillHubDomain','appcode','8zzblPV','trim','projectConfig','hasOwnProperty','userDomain','cwd','localDomain','cookie','cdn','./constant/domain.js','appDomain','regionConfiguredValue','routing','config','1086595lzTlBG','app\x20profile\x20\x22','defaultApp','setLogPath','region','argv','7111950PpSuLt','object','production','template_base_url','routingConfig','slice','global','2FznZZw','kbDomain','2795661jujUUK','configuredRegion','some','targetEnv','project\x20Rabetbase\x20configuration','values','skillDomain','prototype','apiDir','replace','apps','entries','9805910KYqewq','kbServiceDomain','call','string','regionSource','map','domains','platformDomain','doctor','setRawCommand','33ACxRLb','daily','currentApp','env','48PjObTi','keys','length','app','raw'];a286_0x245a=function(){return _0x217303;};return a286_0x245a();}export function getTemplateBaseUrl(_0x475e00){const _0x5886d2=a286_0xf0e408,_0x10f8d1=readRawConfig(_0x475e00);if(_0x10f8d1[_0x5886d2(0x159)]&&typeof _0x10f8d1['template_base_url']==='string')return _0x10f8d1[_0x5886d2(0x159)][_0x5886d2(0x168)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x4b6451,_0x40b907,_0xe0e273){const _0xf3ce43=a286_0xf0e408,_0x3d7e07=resolveAppConfig({'raw':_0x4b6451,'flags':_0x40b907,'layers':_0xe0e273,'readEnv':env}),_0x28529a=_0x3d7e07[_0xf3ce43(0x177)]?_0x3d7e07[_0xf3ce43(0x169)][_0x3d7e07[_0xf3ce43(0x177)]]:undefined;return{..._0x3d7e07,'raw':withAppProfileRouting(_0x4b6451,_0x28529a)};}export function resolveApiFilePath(_0x34d34e,_0x132401,_0x5d74f1){return resolveApiModelSource(_0x34d34e,_0x132401,_0x5d74f1)['filePath'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x143ebe=a287_0x3a2c;function a287_0x3a2c(_0x17d7ea,_0x10a76f){_0x17d7ea=_0x17d7ea-0x1ba;const _0x70edf8=a287_0x70ed();let _0x3a2c50=_0x70edf8[_0x17d7ea];return _0x3a2c50;}(function(_0x327a94,_0x1bda11){const _0x184c2c=a287_0x3a2c,_0x2983ef=_0x327a94();while(!![]){try{const _0x29b0d=-parseInt(_0x184c2c(0x1c0))/0x1+-parseInt(_0x184c2c(0x1de))/0x2+parseInt(_0x184c2c(0x1bd))/0x3+-parseInt(_0x184c2c(0x1c2))/0x4*(-parseInt(_0x184c2c(0x1d8))/0x5)+-parseInt(_0x184c2c(0x1d9))/0x6*(parseInt(_0x184c2c(0x1d3))/0x7)+-parseInt(_0x184c2c(0x1d0))/0x8*(parseInt(_0x184c2c(0x1ba))/0x9)+parseInt(_0x184c2c(0x1c3))/0xa*(parseInt(_0x184c2c(0x1e0))/0xb);if(_0x29b0d===_0x1bda11)break;else _0x2983ef['push'](_0x2983ef['shift']());}catch(_0x2145cd){_0x2983ef['push'](_0x2983ef['shift']());}}}(a287_0x70ed,0x4570a));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';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_0x143ebe(0x1e3),a287_0x143ebe(0x1c1),a287_0x143ebe(0x1d7),a287_0x143ebe(0x1cb),a287_0x143ebe(0x1db),'.jsx',a287_0x143ebe(0x1c5),a287_0x143ebe(0x1ca)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x143ebe(0x1e3),'.tsx'],'.jsx':[a287_0x143ebe(0x1c1)],'.mjs':[a287_0x143ebe(0x1d7)],'.cjs':[a287_0x143ebe(0x1cb)]};function parseApiFile(_0x59bdf2){const _0x1ebdac=a287_0x143ebe;return parseLegacyApiModels(_0x59bdf2)[_0x1ebdac(0x1dd)](_0x390a88=>_0x390a88[_0x1ebdac(0x1c8)]?[{'alias':_0x390a88[_0x1ebdac(0x1c8)],'datasetCode':_0x390a88[_0x1ebdac(0x1c7)],'tableName':_0x390a88[_0x1ebdac(0x1cf)],'name':_0x390a88[_0x1ebdac(0x1cd)]}]:[]);}function isWithinRoot(_0x1d2dbd,_0x329949){const _0x4186da=a287_0x143ebe,_0x45b602=relative(_0x1d2dbd,_0x329949);return _0x45b602===''||!_0x45b602[_0x4186da(0x1d2)]('..')&&!isAbsolute(_0x45b602);}function resolveExistingFile(_0x2ce8bb){if(!existsSync(_0x2ce8bb))return undefined;try{return statSync(_0x2ce8bb)['isFile']()?realpathSync(_0x2ce8bb):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x352e69){const _0x4c7881=a287_0x143ebe,_0x467987=extname(_0x352e69);if(!_0x467987)return[...SOURCE_FILE_EXTENSIONS[_0x4c7881(0x1e2)](_0x8ae9a3=>''+_0x352e69+_0x8ae9a3),...SOURCE_FILE_EXTENSIONS[_0x4c7881(0x1e2)](_0x29c56b=>resolve(_0x352e69,_0x4c7881(0x1bc)+_0x29c56b))];const _0x176b7f=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x467987];if(!_0x176b7f)return[_0x352e69];const _0x51b97e=_0x352e69[_0x4c7881(0x1be)](0x0,-_0x467987['length']);return[..._0x176b7f['map'](_0xa730a=>''+_0x51b97e+_0xa730a),_0x352e69];}function resolveLocalReexport(_0x126ada,_0x136d11,_0x3930cf){const _0x121ec9=a287_0x143ebe;if(!_0x136d11['startsWith']('./')&&!_0x136d11[_0x121ec9(0x1d2)](_0x121ec9(0x1dc)))return undefined;const _0xf493cf=resolve(dirname(_0x126ada),_0x136d11);if(!isWithinRoot(_0x3930cf,_0xf493cf))return undefined;for(const _0x2b73e9 of reexportCandidatePaths(_0xf493cf)){const _0x136bfe=resolveExistingFile(_0x2b73e9);if(_0x136bfe&&isWithinRoot(_0x3930cf,_0x136bfe))return _0x136bfe;}return undefined;}function parseApiFileTree(_0x505c63,_0x45d948,_0x41b740,_0x49f5a5){const _0x50125e=a287_0x143ebe,_0x4b8ae4=resolveExistingFile(_0x505c63);if(!_0x4b8ae4)return[];const _0x5e4ba1=_0x41b740[_0x50125e(0x1da)](_0x4b8ae4);if(_0x5e4ba1!==undefined&&_0x5e4ba1<=_0x49f5a5)return[];_0x41b740['set'](_0x4b8ae4,_0x49f5a5);const _0x3fb819=readFileSync(_0x4b8ae4,_0x50125e(0x1bb)),_0x30ca94=parseApiFile(_0x3fb819);if(_0x49f5a5>=MAX_LOCAL_REEXPORT_DEPTH)return _0x30ca94;const _0x3490b2=new RegExp(LOCAL_REEXPORT_RE[_0x50125e(0x1d1)],LOCAL_REEXPORT_RE[_0x50125e(0x1e1)]);let _0x285a80;while((_0x285a80=_0x3490b2['exec'](_0x3fb819))!==null){const _0x2ac484=resolveLocalReexport(_0x4b8ae4,_0x285a80[0x1],_0x45d948);_0x2ac484&&_0x30ca94[_0x50125e(0x1ce)](...parseApiFileTree(_0x2ac484,_0x45d948,_0x41b740,_0x49f5a5+0x1));}return _0x30ca94;}function aliasProjectRoot(_0x7e20e4){const _0x1132e9=findProjectRootDirectory(dirname(_0x7e20e4));try{return realpathSync(_0x1132e9);}catch{return _0x1132e9;}}function uniqueAliasEntries(_0x137953){const _0x370e59=a287_0x143ebe,_0x514af7=new Set();return _0x137953[_0x370e59(0x1d5)](_0xa0a02e=>{const _0x503b01=_0x370e59,_0x4b6368=JSON[_0x503b01(0x1d6)](_0xa0a02e);if(_0x514af7[_0x503b01(0x1c4)](_0x4b6368))return![];return _0x514af7[_0x503b01(0x1d4)](_0x4b6368),!![];});}function a287_0x70ed(){const _0x5cd5d6=['629232ItbGMs','get','.js','../','flatMap','905776yyHGDr','api.ts','6068491xeLELD','flags','map','.ts','342GCtqPc','utf-8','index','1650561XTKfmQ','slice','defaultProfile','135882WejvZe','.tsx','494216DIDQkZ','10xWnwyz','has','.mjs','set','datasetCode','alias','size','.cjs','.cts','endsWith','name','push','tableName','15784CQrDQc','source','startsWith','35MlMfUC','add','filter','stringify','.mts','15NUjLCa'];a287_0x70ed=function(){return _0x5cd5d6;};return a287_0x70ed();}export function loadAliasMap(_0x20bcf8,_0x4654cc,_0x22ecfa,_0x42c15b){const _0x185ed4=a287_0x143ebe,_0x3b3458=resolve(_0x22ecfa??resolve(process['cwd'](),_0x20bcf8,_0x185ed4(0x1df))),_0x16b685=_0x42c15b?_0x3b3458+'#'+_0x42c15b:_0x3b3458;if(cache['has'](_0x16b685))return cache[_0x185ed4(0x1da)](_0x16b685);if(!existsSync(_0x3b3458))return cache['set'](_0x16b685,[]),[];try{if(_0x3b3458[_0x185ed4(0x1cc)](MODEL_REGISTRY_FILE_NAME)){const _0x199f4d=readModelRegistry(_0x3b3458),_0xee776b=_0x42c15b??_0x199f4d?.[_0x185ed4(0x1bf)],_0x106d13=_0xee776b&&_0x199f4d?getProfileModels(_0x199f4d,_0xee776b):[],_0x21b0d1=uniqueAliasEntries(_0x106d13[_0x185ed4(0x1dd)](_0x54512b=>_0x54512b[_0x185ed4(0x1c8)]?[{'alias':_0x54512b[_0x185ed4(0x1c8)],'datasetCode':_0x54512b[_0x185ed4(0x1c7)],'tableName':_0x54512b['tableName'],'name':_0x54512b[_0x185ed4(0x1cd)]}]:[]));return cache[_0x185ed4(0x1c6)](_0x16b685,_0x21b0d1),_0x21b0d1;}const _0x49895e=uniqueAliasEntries(parseApiFileTree(_0x3b3458,aliasProjectRoot(_0x3b3458),new Map(),0x0));return cache[_0x185ed4(0x1c6)](_0x16b685,_0x49895e),_0x49895e;}catch{return cache[_0x185ed4(0x1c6)](_0x16b685,[]),[];}}export function resolveAlias(_0x62232b,_0x44a413,_0x125548,_0x7097e5,_0xc4c69c){const _0x5ac046=a287_0x143ebe;if(!_0x44a413)return undefined;const _0x5acdc3=loadAliasMap(_0x62232b,_0x125548,_0x7097e5,_0xc4c69c),_0x39947a=new Set(_0x5acdc3[_0x5ac046(0x1d5)](_0x24dc71=>_0x24dc71[_0x5ac046(0x1c8)]===_0x44a413)[_0x5ac046(0x1e2)](_0x21907a=>_0x21907a[_0x5ac046(0x1c7)]));return _0x39947a[_0x5ac046(0x1c9)]===0x1?[..._0x39947a][0x0]:undefined;}export function listAliases(_0x383efe,_0x4205cd,_0x526e1c,_0x4afc13){return loadAliasMap(_0x383efe,_0x4205cd,_0x526e1c,_0x4afc13);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -1043,7 +1043,7 @@ export interface DbAnalysisStatus {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
/** Runtime role exposed by lovrabet-runtime for approval assignee selection. */
|
|
1045
1045
|
export interface ApprovalRuntimeRole {
|
|
1046
|
-
id: number;
|
|
1046
|
+
id: number | string;
|
|
1047
1047
|
appCode?: string | null;
|
|
1048
1048
|
roleName?: string | null;
|
|
1049
1049
|
roleType?: string | null;
|
|
@@ -1071,7 +1071,7 @@ export interface ApprovalRuntimeRoleMember {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
/** Runtime role and its current members. */
|
|
1073
1073
|
export interface ApprovalRuntimeRoleUsers {
|
|
1074
|
-
id: number;
|
|
1074
|
+
id: number | string;
|
|
1075
1075
|
roleName?: string | null;
|
|
1076
1076
|
roleType?: string | null;
|
|
1077
1077
|
userList?: ApprovalRuntimeRoleMember[] | null;
|
|
@@ -1094,11 +1094,12 @@ export declare function listApprovalRuntimeUsers(appCode: string): Promise<Appro
|
|
|
1094
1094
|
export declare function listApprovalRuntimeRoleUsers(appCode: string): Promise<ApprovalRuntimeRoleUsers[]>;
|
|
1095
1095
|
/** Flow definition returned by SmartFlowController. */
|
|
1096
1096
|
export interface FlowDefinition {
|
|
1097
|
-
id: number;
|
|
1097
|
+
id: number | string;
|
|
1098
1098
|
flowCode?: string | null;
|
|
1099
1099
|
appCode?: string | null;
|
|
1100
1100
|
datasetCode?: string | null;
|
|
1101
|
-
pageId?: number | null;
|
|
1101
|
+
pageId?: string | number | null;
|
|
1102
|
+
pageIds?: Array<number | string> | null;
|
|
1102
1103
|
flowName?: string | null;
|
|
1103
1104
|
flowDesc?: string | null;
|
|
1104
1105
|
flowType?: string | null;
|
|
@@ -1116,8 +1117,8 @@ export interface FlowDefinition {
|
|
|
1116
1117
|
enabled?: boolean | null;
|
|
1117
1118
|
createUserId?: string | null;
|
|
1118
1119
|
updateUserId?: string | null;
|
|
1119
|
-
gmtCreate?: string | null;
|
|
1120
|
-
gmtModified?: string | null;
|
|
1120
|
+
gmtCreate?: number | string | null;
|
|
1121
|
+
gmtModified?: number | string | null;
|
|
1121
1122
|
[key: string]: unknown;
|
|
1122
1123
|
}
|
|
1123
1124
|
/** Exact writable fields exposed by FlowDefRequest. */
|
|
@@ -1129,6 +1130,7 @@ export interface FlowDefinitionWriteRequest {
|
|
|
1129
1130
|
appCode: string;
|
|
1130
1131
|
datasetCode?: string;
|
|
1131
1132
|
pageId?: number;
|
|
1133
|
+
pageIds?: number[];
|
|
1132
1134
|
flowJson: Record<string, unknown>;
|
|
1133
1135
|
}
|
|
1134
1136
|
/** Supported filters exposed by FlowDefQueryRequest. */
|
|
@@ -1141,6 +1143,24 @@ export interface FlowDefinitionListOptions {
|
|
|
1141
1143
|
pageNum?: number;
|
|
1142
1144
|
pageSize?: number;
|
|
1143
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
|
+
}>;
|
|
1144
1164
|
/** POST /smartapi/flow/page: list flow definitions for one app. */
|
|
1145
1165
|
export declare function listFlowDefinitions(appCode: string, options?: FlowDefinitionListOptions): Promise<{
|
|
1146
1166
|
items: FlowDefinition[];
|