@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.4
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 +8 -2
- 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.d.ts +2 -0
- package/lib/commands/app/detail.js +1 -0
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.d.ts +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +3 -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.d.ts +2 -0
- package/lib/commands/menu/shared/path.js +1 -0
- package/lib/commands/menu/shared/service.d.ts +6 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
- package/lib/commands/menu/shared/subapp-assets.js +1 -0
- package/lib/commands/menu/shared/sync-core.d.ts +2 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +14 -4
- 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.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-status.js +1 -0
- package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-update.js +1 -0
- 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 +15 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +21 -12
- package/skills/rabetbase/guides/backend-function.md +2 -7
- package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
- package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
- package/skills/rabetbase/guides/independent-deployment.md +45 -0
- package/skills/rabetbase/guides/troubleshooting.md +9 -1
- package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
- package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
- package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
- package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
- package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
- package/skills/rabetbase.manifest.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cc0c5,_0x51f48d){const _0x1ab38a=a272_0x3eb8,_0x4e97b7=_0x2cc0c5();while(!![]){try{const _0x50b1df=parseInt(_0x1ab38a(0xc3))/0x1*(-parseInt(_0x1ab38a(0xd4))/0x2)+-parseInt(_0x1ab38a(0xec))/0x3*(-parseInt(_0x1ab38a(0xc4))/0x4)+-parseInt(_0x1ab38a(0xd1))/0x5*(parseInt(_0x1ab38a(0xed))/0x6)+-parseInt(_0x1ab38a(0xe7))/0x7*(parseInt(_0x1ab38a(0xe6))/0x8)+parseInt(_0x1ab38a(0xda))/0x9+parseInt(_0x1ab38a(0xd6))/0xa*(parseInt(_0x1ab38a(0xeb))/0xb)+parseInt(_0x1ab38a(0xc9))/0xc*(parseInt(_0x1ab38a(0xc7))/0xd);if(_0x50b1df===_0x51f48d)break;else _0x4e97b7['push'](_0x4e97b7['shift']());}catch(_0x3ed814){_0x4e97b7['push'](_0x4e97b7['shift']());}}}(a272_0x52f0,0x5bb33));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(_0x1673a3){const _0x5db491=a272_0x3eb8;return typeof _0x1673a3===_0x5db491(0xcc)&&_0x1673a3[_0x5db491(0xcb)]()?_0x1673a3['trim']():undefined;}function appProfiles(_0x24ff92){const _0x4fe45a=a272_0x3eb8;return _0x24ff92[_0x4fe45a(0xee)]&&typeof _0x24ff92[_0x4fe45a(0xee)]==='object'?_0x24ff92['apps']:{};}function a272_0x52f0(){const _0x18173a=['apiDir','format','6215697ROLfPv','production','filter','keys','projectPath','cookie','read','riskLevel','write','globalConfig','value','projectConfig','3416MXpnbm','3346kLeHBk','length','object','app','11bhFxec','570378wYGGgr','6JNemhL','apps','accessKey','9HOKrnD','4tCrBga','PAGE_SIZE','pageSize','13KUQcFB','high-risk-write','6735768JtPkgW','source','trim','string','ACCESS_KEY','entries','env','true','2286605EArbKl','defaultApp','region','153246eJXbSo','appcode','2845640xdWjDq','locale'];a272_0x52f0=function(){return _0x18173a;};return a272_0x52f0();}function resolveDefaultAppName(_0x8f3e99){const _0x3f4b7f=a272_0x3eb8,_0x1547d4=stringConfigValue(_0x8f3e99[_0x3f4b7f(0xd2)]);if(_0x1547d4)return _0x1547d4;const _0xee7c8c=Object['keys'](appProfiles(_0x8f3e99));return _0xee7c8c['length']===0x1?_0xee7c8c[0x0]:undefined;}function resolveTopLevelAppCode(_0x5b6b6a){const _0x1439d1=a272_0x3eb8;return stringConfigValue(_0x5b6b6a[_0x1439d1(0xd5)])||stringConfigValue(_0x5b6b6a[_0x1439d1(0xea)]);}function a272_0x3eb8(_0x218c4e,_0x255d71){_0x218c4e=_0x218c4e-0xc3;const _0x52f0d8=a272_0x52f0();let _0x3eb84c=_0x52f0d8[_0x218c4e];return _0x3eb84c;}function normalizeRiskCeiling(_0x199ac2){const _0xe5fd2=a272_0x3eb8;if(_0x199ac2===undefined||_0x199ac2===null)return undefined;if(_0x199ac2===_0xe5fd2(0xe0)||_0x199ac2===_0xe5fd2(0xe2)||_0x199ac2===_0xe5fd2(0xc8))return _0x199ac2;return'read';}function resolveRiskCeiling(..._0x389d63){const _0xe27d70=a272_0x3eb8;let _0x756648;for(const _0xac0856 of _0x389d63){const _0xada713=normalizeRiskCeiling(_0xac0856);_0xada713&&(!_0x756648||riskLevelOrder(_0xada713)<riskLevelOrder(_0x756648))&&(_0x756648=_0xada713);}return _0x756648??DEFAULT_CONFIG_VALUES[_0xe27d70(0xe1)];}export function resolveAppConfig({raw:_0x153b41,flags:_0x31f5be,layers:_0x2820ac,readEnv:_0x1d09e4}){const _0x2ca5b3=a272_0x3eb8,_0x4cd646=_0x2820ac?.[_0x2ca5b3(0xe5)]??{},_0x2c90fd=_0x2820ac?.[_0x2ca5b3(0xe3)]??{},_0x387d39=!!_0x2820ac?.[_0x2ca5b3(0xde)]||Object['keys'](_0x4cd646)[_0x2ca5b3(0xe8)]>0x0,_0x1087c1=!_0x387d39,_0x1e42ec=_0x387d39?resolveDefaultAppName(_0x4cd646):undefined,_0x372c92=_0x1087c1?resolveDefaultAppName(_0x2c90fd):undefined,_0x58ae1d=stringConfigValue(_0x31f5be[_0x2ca5b3(0xea)]),_0x48fbf2=_0x1d09e4('APP'),_0x2bc3f0={};if(_0x153b41[_0x2ca5b3(0xee)]&&typeof _0x153b41[_0x2ca5b3(0xee)]===_0x2ca5b3(0xe9))for(const [_0x52f287,_0x421769]of Object[_0x2ca5b3(0xce)](_0x153b41[_0x2ca5b3(0xee)])){_0x421769&&typeof _0x421769===_0x2ca5b3(0xe9)&&_0x421769[_0x2ca5b3(0xd5)]&&(_0x2bc3f0[_0x52f287]=_0x421769);}const _0x11f7ca=_0x1e42ec||_0x372c92||resolveDefaultAppName(_0x153b41),_0x21acb9=Object[_0x2ca5b3(0xdd)](_0x2bc3f0)[_0x2ca5b3(0xe8)]>0x0,_0x6cd265=_0x58ae1d||_0x1e42ec||_0x48fbf2||_0x372c92||_0x11f7ca||undefined,_0xad51d1=stringConfigValue(_0x31f5be[_0x2ca5b3(0xd5)]),_0x2b4511=_0xad51d1?Object[_0x2ca5b3(0xce)](_0x2bc3f0)[_0x2ca5b3(0xdc)](([,_0x33356e])=>_0x33356e?.[_0x2ca5b3(0xd5)]===_0xad51d1):[],_0x1e2de6=_0x58ae1d&&_0x2bc3f0[_0x58ae1d]?.[_0x2ca5b3(0xd5)]===_0xad51d1?[_0x58ae1d,_0x2bc3f0[_0x58ae1d]]:undefined,_0x17499d=_0x1e2de6??(_0x2b4511['length']===0x1?_0x2b4511[0x0]:undefined),_0x28b01c=_0x17499d?.[0x0],_0x2690ea=_0x17499d?.[0x1],_0x303192=_0xad51d1?_0x28b01c:_0x6cd265;let _0x142687=_0x303192&&_0x2bc3f0[_0x303192]?_0x2bc3f0[_0x303192]:undefined;_0xad51d1&&_0x2690ea&&(_0x142687=_0x2690ea);const _0x25c592=_0xad51d1?_0x2690ea??_0x142687:_0x142687,_0x46d12b=!_0x58ae1d&&!_0x1e42ec&&_0x48fbf2&&_0x303192===_0x48fbf2,_0xabcb44=_0x58ae1d||(_0x46d12b?_0x48fbf2:undefined)||(_0xad51d1?_0x28b01c:undefined),_0x300750=_0x25c592?.['appcode'],_0x5a7871=_0x387d39?resolveTopLevelAppCode(_0x4cd646):undefined,_0x45d0b0=_0x1087c1?resolveTopLevelAppCode(_0x2c90fd):undefined,_0x278fc4=_0x58ae1d||_0x1e42ec?_0x300750:undefined,_0x5a9b51=!_0x58ae1d&&!_0x1e42ec?_0x300750:undefined,_0x17f7b3=_0xad51d1||_0x278fc4||_0x5a7871||_0x5a9b51||_0x45d0b0||undefined,_0x208627=_0x387d39?stringConfigValue(_0x4cd646[_0x2ca5b3(0xcf)]):undefined,_0x244815=_0x1087c1?stringConfigValue(_0x2c90fd[_0x2ca5b3(0xcf)]):undefined,_0x564891=_0x31f5be[_0x2ca5b3(0xcf)]||_0x25c592?.[_0x2ca5b3(0xcf)]||_0x208627||_0x1d09e4('ENV')||_0x244815||_0x153b41[_0x2ca5b3(0xcf)]||DEFAULT_CONFIG_VALUES[_0x2ca5b3(0xcf)],_0x30b2a1=_0x25c592?.[_0x2ca5b3(0xd7)]||_0x153b41['locale']||DEFAULT_CONFIG_VALUES[_0x2ca5b3(0xd7)],_0x4b9feb=_0x1d09e4('COOKIE')||_0x25c592?.[_0x2ca5b3(0xdf)]||_0x153b41[_0x2ca5b3(0xdf)]||undefined,_0x69df25=_0x1d09e4(_0x2ca5b3(0xcd))||_0x25c592?.['accessKey']||_0x153b41[_0x2ca5b3(0xef)]||undefined,_0x4bcfcd=_0x31f5be[_0x2ca5b3(0xd9)]||_0x1d09e4('FORMAT')||_0x25c592?.['format']||_0x153b41['format'],_0x59d1b7=normalizeLegacyOutputFormat(_0x4bcfcd),_0x33a044=_0x1d09e4(_0x2ca5b3(0xc5))||_0x25c592?.[_0x2ca5b3(0xc6)]||_0x153b41['pageSize'],_0x7ffe6e=_0x33a044?Number(_0x33a044)||undefined:undefined,_0x3a3cca=_0x2820ac?[_0x2820ac[_0x2ca5b3(0xe3)][_0x2ca5b3(0xe1)],_0x2820ac[_0x2ca5b3(0xe5)][_0x2ca5b3(0xe1)]]:[_0x153b41[_0x2ca5b3(0xe1)]],_0x432cb5=resolveRiskCeiling(..._0x3a3cca,_0x25c592?.[_0x2ca5b3(0xe1)]),_0x3cbdf3=resolveRiskCeiling(_0x432cb5,_0x1d09e4('RISK_LEVEL')),_0xf33dd3=_0x1d09e4('VERBOSE'),_0x4d5c74=_0xf33dd3==='1'||_0xf33dd3===_0x2ca5b3(0xd0),_0x357aa5=_0x25c592?.['apiDir']||_0x153b41[_0x2ca5b3(0xd8)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x32a3cb=selectConfiguredRegion({'appRegion':_0x25c592?.['region'],'projectRegion':_0x387d39?_0x4cd646[_0x2ca5b3(0xd3)]:undefined,'globalRegion':_0x387d39||_0x1087c1?_0x2c90fd[_0x2ca5b3(0xd3)]:undefined,'mergedRegion':_0x153b41[_0x2ca5b3(0xd3)]}),_0x1f1cfb=normalizeLovrabetRegion(_0x32a3cb['value'])??DEFAULT_LOVRABET_REGION,_0x312a3e=isDaily(normalizeEnv(String(_0x564891)))?'daily':_0x2ca5b3(0xdb);return{'appCode':typeof _0x17f7b3===_0x2ca5b3(0xcc)&&_0x17f7b3[_0x2ca5b3(0xcb)]()?_0x17f7b3[_0x2ca5b3(0xcb)]():undefined,'region':_0x1f1cfb,'regionConfiguredValue':_0x32a3cb[_0x2ca5b3(0xe4)],'regionSource':_0x32a3cb[_0x2ca5b3(0xca)],'env':_0x312a3e,'locale':_0x30b2a1,'cookie':_0x4b9feb,'accessKey':_0x69df25,'format':_0x59d1b7,'pageSize':_0x7ffe6e,'riskLevel':_0x3cbdf3,'verbose':_0x4d5c74,'apiDir':_0x357aa5,'apps':_0x2bc3f0,'defaultApp':_0x11f7ca,'currentApp':_0x21acb9?_0x303192:undefined,'explicitAppName':_0xabcb44};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22dd1e,_0x1c7231){const _0x5883cd=a273_0x31b3,_0xeb0816=_0x22dd1e();while(!![]){try{const _0x1993d5=parseInt(_0x5883cd(0x19d))/0x1*(parseInt(_0x5883cd(0x19c))/0x2)+-parseInt(_0x5883cd(0x19b))/0x3*(-parseInt(_0x5883cd(0x199))/0x4)+parseInt(_0x5883cd(0x195))/0x5+parseInt(_0x5883cd(0x1a0))/0x6+-parseInt(_0x5883cd(0x194))/0x7+-parseInt(_0x5883cd(0x196))/0x8*(-parseInt(_0x5883cd(0x19a))/0x9)+-parseInt(_0x5883cd(0x19e))/0xa;if(_0x1993d5===_0x1c7231)break;else _0xeb0816['push'](_0xeb0816['shift']());}catch(_0x70dc8b){_0xeb0816['push'](_0xeb0816['shift']());}}}(a273_0x3c52,0x953de));function a273_0x31b3(_0x25482f,_0x429fb6){_0x25482f=_0x25482f-0x194;const _0x3c5245=a273_0x3c52();let _0x31b378=_0x3c5245[_0x25482f];return _0x31b378;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a273_0x3c52(){const _0x7a77e0=['20604570mQBCLq','../auth/get-cookie.js','4879146CqDCBy','6507900SLrJeI','5645950LWhnQE','128sfeDmI','authRequired','cookie','1468OjVWiP','274788MbJMNl','5208UIPaXY','9788DVPvTh','109RnwnAD'];a273_0x3c52=function(){return _0x7a77e0;};return a273_0x3c52();}export async function buildAuth(_0x1c9661){const _0x1d157a=a273_0x31b3,{getCookie:_0x33c445}=await import(_0x1d157a(0x19f)),_0x9f3a84=_0x1c9661[_0x1d157a(0x198)]||_0x33c445(),_0x5a9584=_0x9f3a84?await getIsSessionValid():![];return{'cookie':_0x9f3a84,'isLoggedIn':_0x5a9584,async 'getOrLogin'(){const _0x44c8f6=_0x1d157a;if(_0x9f3a84&&_0x5a9584)return _0x9f3a84;throw CliErrors[_0x44c8f6(0x197)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a274_0x4906f0=a274_0x50b2;(function(_0x515c8d,_0x20cbc0){const _0x16bf3f=a274_0x50b2,_0x3923db=_0x515c8d();while(!![]){try{const _0xabb144=parseInt(_0x16bf3f(0x123))/0x1*(parseInt(_0x16bf3f(0x116))/0x2)+-parseInt(_0x16bf3f(0x11e))/0x3*(parseInt(_0x16bf3f(0x105))/0x4)+-parseInt(_0x16bf3f(0x103))/0x5+-parseInt(_0x16bf3f(0x122))/0x6*(parseInt(_0x16bf3f(0x102))/0x7)+parseInt(_0x16bf3f(0x106))/0x8*(parseInt(_0x16bf3f(0xfb))/0x9)+parseInt(_0x16bf3f(0xfd))/0xa*(parseInt(_0x16bf3f(0x119))/0xb)+-parseInt(_0x16bf3f(0x127))/0xc*(-parseInt(_0x16bf3f(0x101))/0xd);if(_0xabb144===_0x20cbc0)break;else _0x3923db['push'](_0x3923db['shift']());}catch(_0x433d73){_0x3923db['push'](_0x3923db['shift']());}}}(a274_0x4c11,0x871e5));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a274_0x50b2(_0x4d357f,_0xa3b4ee){_0x4d357f=_0x4d357f-0xf0;const _0x4c1158=a274_0x4c11();let _0x50b2ab=_0x4c1158[_0x4d357f];return _0x50b2ab;}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a274_0x4906f0(0x126);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x509cae){for(const _0x5613c8 of CONFIG_NAMES){const _0x1909f3=resolve(_0x509cae,_0x5613c8);if(existsSync(_0x1909f3))return _0x1909f3;}return undefined;}export function findProjectRootDirectory(_0x490e7a=process[a274_0x4906f0(0x108)]()){let _0x190e15=resolve(_0x490e7a);const {root:_0x3d9728}=parse(_0x190e15),_0x3c711b=homedir();while(!![]){if(resolveConfigPath(_0x190e15)){if(_0x190e15===_0x3c711b)break;return _0x190e15;}if(_0x190e15===_0x3d9728||_0x190e15===_0x3c711b)break;const _0x22852b=dirname(_0x190e15);if(_0x22852b===_0x190e15)break;_0x190e15=_0x22852b;}return resolve(_0x490e7a);}export function getProjectConfigPath(){const _0x205f85=a274_0x4906f0;return resolveConfigPath(process[_0x205f85(0x108)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x53f990){const _0x2c6bbe=a274_0x4906f0;if(!existsSync(_0x53f990))return{'status':_0x2c6bbe(0xf9)};try{const _0x29f00f=readFileSync(_0x53f990,{'encoding':_0x2c6bbe(0x118)});if(!_0x29f00f?.['trim']())return{'status':_0x2c6bbe(0xf1)};const _0x2d6c3c=JSON['parse'](_0x29f00f);return{'status':'ok','data':_0x2d6c3c};}catch(_0x86d816){return{'status':_0x2c6bbe(0x11b),'message':_0x86d816 instanceof Error?_0x86d816[_0x2c6bbe(0x121)]:String(_0x86d816)};}}function parseCliConfigJsonFile(_0x246390,_0x54d062,_0x3b9896){const _0x1bcc74=a274_0x4906f0,_0x2f5a12=inspectCliConfigJsonFile(_0x246390);if(_0x2f5a12[_0x1bcc74(0x100)]===_0x1bcc74(0xf9)||_0x2f5a12[_0x1bcc74(0x100)]===_0x1bcc74(0xf1))return{};if(_0x2f5a12[_0x1bcc74(0x100)]==='ok')return _0x2f5a12[_0x1bcc74(0x10c)];return _0x54d062===_0x1bcc74(0xf3)&&_0x3b9896&&console[_0x1bcc74(0x11b)](CLI_BIN_NAME+':\x20'+_0x3b9896+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x246390+_0x1bcc74(0x104)+_0x2f5a12[_0x1bcc74(0x121)]),{};}function normalizeLegacyConfigShape(_0x4c0bd1){const _0x4dd686=a274_0x4906f0;if(!_0x4c0bd1||typeof _0x4c0bd1!==_0x4dd686(0x107))return{'config':{},'migrated':![]};const _0xa7cbe4={..._0x4c0bd1},_0x250521=_0xa7cbe4['apps']&&typeof _0xa7cbe4[_0x4dd686(0x128)]===_0x4dd686(0x107)?{..._0xa7cbe4['apps']}:{},_0xa78b74=Object[_0x4dd686(0x11a)](_0x250521)[_0x4dd686(0x11d)],_0x4e5277=_0xa7cbe4['appcode']||_0xa7cbe4[_0x4dd686(0x125)];let _0x5040f9=![];if(_0x4e5277&&_0xa78b74===0x0){const _0x4fb721=typeof _0xa7cbe4['defaultApp']==='string'&&_0xa7cbe4['defaultApp']['trim']()?_0xa7cbe4[_0x4dd686(0x117)]:String(_0x4e5277)['trim']();_0x250521[_0x4fb721]={'appcode':String(_0x4e5277)[_0x4dd686(0x114)](),..._0xa7cbe4[_0x4dd686(0x120)]!=null?{'env':_0xa7cbe4[_0x4dd686(0x120)]}:{},..._0xa7cbe4['apiDir']!=null?{'apiDir':_0xa7cbe4[_0x4dd686(0x109)]}:{},..._0xa7cbe4[_0x4dd686(0xf0)]!=null?{'cookie':_0xa7cbe4[_0x4dd686(0xf0)]}:{},..._0xa7cbe4[_0x4dd686(0xf2)]!=null?{'accessKey':_0xa7cbe4[_0x4dd686(0xf2)]}:{},..._0xa7cbe4['format']!=null?{'format':_0xa7cbe4[_0x4dd686(0xf8)]}:{},..._0xa7cbe4[_0x4dd686(0x11f)]!=null?{'pageSize':_0xa7cbe4[_0x4dd686(0x11f)]}:{},..._0xa7cbe4['riskLevel']!=null?{'riskLevel':_0xa7cbe4[_0x4dd686(0xf5)]}:{},..._0xa7cbe4[_0x4dd686(0x11c)]!=null?{'locale':_0xa7cbe4['locale']}:{}},_0xa7cbe4['apps']=_0x250521,delete _0xa7cbe4['defaultApp'],_0x5040f9=!![];}return(_0x4dd686(0xf6)in _0xa7cbe4||_0x4dd686(0x125)in _0xa7cbe4)&&(delete _0xa7cbe4[_0x4dd686(0xf6)],delete _0xa7cbe4[_0x4dd686(0x125)],_0x5040f9=!![]),{'config':_0xa7cbe4,'migrated':_0x5040f9};}function writeNormalizedConfigIfNeeded(_0x2ddb85,_0x4f7299){const _0x440dde=a274_0x4906f0,_0x566c50=JSON['stringify'](normalizeConfigForWrite(_0x4f7299),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2ddb85)===_0x566c50)return;writeConfigFile(_0x2ddb85,_0x4f7299),normalizedWriteCache[_0x440dde(0xff)](_0x2ddb85,_0x566c50);}function parseAndNormalizeConfig(_0x29eba4,_0x5d15a6,_0x2d5363){const _0x4d2837=a274_0x4906f0,_0x411715=parseCliConfigJsonFile(_0x29eba4,_0x5d15a6,_0x2d5363),_0x1428f1=normalizeLegacyConfigShape(_0x411715);if(_0x1428f1[_0x4d2837(0xfe)])try{writeNormalizedConfigIfNeeded(_0x29eba4,_0x1428f1[_0x4d2837(0xf7)]);}catch{}return _0x1428f1[_0x4d2837(0xf7)];}export function loadRawConfigLayers(_0x2e582e){const _0x13253c=a274_0x4906f0;let _0x27ca21={},_0x2eefbb={};const _0x1e7d31=resolveConfigPath(homedir());_0x1e7d31&&(_0x27ca21=parseAndNormalizeConfig(_0x1e7d31,_0x13253c(0xf3),_0x13253c(0x10b)));const _0x377d3b=_0x2e582e??findProjectRootDirectory(),_0x46abb4=resolveConfigPath(_0x377d3b);return _0x46abb4&&(_0x2eefbb=parseAndNormalizeConfig(_0x46abb4,_0x13253c(0xf3),_0x13253c(0x10a))),{'globalPath':_0x1e7d31,'projectPath':_0x46abb4,'globalConfig':_0x27ca21,'projectConfig':_0x2eefbb};}const INHERIT_WHITELIST=['cookie',a274_0x4906f0(0xf2),a274_0x4906f0(0x11c),a274_0x4906f0(0xf8),a274_0x4906f0(0xf5),a274_0x4906f0(0x11f),a274_0x4906f0(0x115),a274_0x4906f0(0xfc),a274_0x4906f0(0x10f),a274_0x4906f0(0xf4),'runtimeDomain',a274_0x4906f0(0x113),a274_0x4906f0(0x10e),a274_0x4906f0(0x112),a274_0x4906f0(0x110),a274_0x4906f0(0x111),'certificateDomain'];export function mergeRawConfigLayers(_0x3ff82e){const _0x18b77f=a274_0x4906f0,{globalConfig:_0x344a5f,projectConfig:_0x2208dc}=_0x3ff82e,_0x387197=!!_0x3ff82e['projectPath']||Object['keys'](_0x2208dc)[_0x18b77f(0x11d)]>0x0;if(!_0x387197)return mergeGlobalOnly(_0x344a5f);return mergeProjectFirst(_0x344a5f,_0x2208dc);}function mergeGlobalOnly(_0xf0978b){const _0x42eb05=a274_0x4906f0,_0x51247f={..._0xf0978b};delete _0x51247f[_0x42eb05(0x124)];const _0x89d405=_0xf0978b[_0x42eb05(0x128)]&&typeof _0xf0978b[_0x42eb05(0x128)]==='object'?_0xf0978b[_0x42eb05(0x128)]:{};if(Object[_0x42eb05(0x11a)](_0x89d405)[_0x42eb05(0x11d)]>0x0)_0x51247f['apps']=_0x89d405;if(_0xf0978b[_0x42eb05(0x117)])_0x51247f[_0x42eb05(0x117)]=_0xf0978b[_0x42eb05(0x117)];return _0x51247f;}function mergeProjectFirst(_0x2fdff2,_0x263697){const _0x228c53=a274_0x4906f0,_0x36e4bf={..._0x263697};delete _0x36e4bf[_0x228c53(0x124)];for(const _0xc2e74b of INHERIT_WHITELIST){!(_0xc2e74b in _0x36e4bf)&&_0xc2e74b in _0x2fdff2&&(_0x36e4bf[_0xc2e74b]=_0x2fdff2[_0xc2e74b]);}const _0x317a87=_0x263697[_0x228c53(0x128)]&&typeof _0x263697[_0x228c53(0x128)]===_0x228c53(0x107)?_0x263697['apps']:{};return Object['keys'](_0x317a87)[_0x228c53(0x11d)]>0x0?_0x36e4bf[_0x228c53(0x128)]=_0x317a87:delete _0x36e4bf[_0x228c53(0x128)],_0x228c53(0x117)in _0x263697?_0x36e4bf[_0x228c53(0x117)]=_0x263697['defaultApp']:delete _0x36e4bf[_0x228c53(0x117)],_0x36e4bf;}export function readRawConfigWithLayers(_0x34fdfc){const _0x1b3cf4=loadRawConfigLayers(_0x34fdfc);return{'config':mergeRawConfigLayers(_0x1b3cf4),'layers':_0x1b3cf4};}export function readRawConfig(_0x4a6c16){return mergeRawConfigLayers(loadRawConfigLayers(_0x4a6c16));}export function readConfigFile(_0x40f4b3){return parseAndNormalizeConfig(_0x40f4b3,'silent');}export function writeConfigFile(_0x293299,_0x287d7a){const _0x22c37c=a274_0x4906f0,_0x4fd475=dirname(_0x293299);!existsSync(_0x4fd475)&&mkdirSync(_0x4fd475,{'recursive':!![]});const _0x14a060=_0x293299+_0x22c37c(0xfa);try{const _0x5734c6=normalizeConfigForWrite(_0x287d7a);writeFileSync(_0x14a060,JSON[_0x22c37c(0x10d)](_0x5734c6,null,0x2)+'\x0a',{'encoding':_0x22c37c(0x118),'mode':0x180}),renameSync(_0x14a060,_0x293299);}catch(_0x52c7c0){try{unlinkSync(_0x14a060);}catch{}throw _0x52c7c0;}}function a274_0x4c11(){const _0x319838=['format','missing','.tmp','333OZloNH','routing','2330vXehee','migrated','set','status','783562nwNUOK','21UfkgmQ','5156150QncTTF','\x0a\x20\x20','4XitCXY','70288DWqxKR','object','cwd','apiDir','Project','Global','data','stringify','kbDomain','userDomain','appDomain','localDomain','kbServiceDomain','skillDomain','trim','region','154CMarfc','defaultApp','utf8','2332JFZfSs','keys','error','locale','length','1784241fzRpdp','pageSize','env','message','576726TbIlTG','12313dQMsCb','inherit','app','.rabetbase.json','228uJgjFq','apps','cookie','empty','accessKey','warn','apiDomain','riskLevel','appcode','config'];a274_0x4c11=function(){return _0x319838;};return a274_0x4c11();}export function resolveWriteConfigPath(_0x4ce145){const _0x41049a=a274_0x4906f0,_0x7f567c=_0x4ce145==='project'?process[_0x41049a(0x108)]():homedir(),_0x3cbbdc=resolveConfigPath(_0x7f567c);return _0x3cbbdc??resolve(_0x7f567c,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a270_0xdc89d9=a270_0x4921;(function(_0x1729da,_0x465aca){const _0x26f1bd=a270_0x4921,_0x542f8f=_0x1729da();while(!![]){try{const _0x18e41f=parseInt(_0x26f1bd(0x150))/0x1*(parseInt(_0x26f1bd(0x13f))/0x2)+-parseInt(_0x26f1bd(0x155))/0x3*(parseInt(_0x26f1bd(0x173))/0x4)+parseInt(_0x26f1bd(0x17a))/0x5+parseInt(_0x26f1bd(0x15d))/0x6*(-parseInt(_0x26f1bd(0x151))/0x7)+-parseInt(_0x26f1bd(0x183))/0x8*(parseInt(_0x26f1bd(0x160))/0x9)+parseInt(_0x26f1bd(0x179))/0xa*(-parseInt(_0x26f1bd(0x176))/0xb)+-parseInt(_0x26f1bd(0x178))/0xc*(-parseInt(_0x26f1bd(0x14e))/0xd);if(_0x18e41f===_0x465aca)break;else _0x542f8f['push'](_0x542f8f['shift']());}catch(_0x3eb537){_0x542f8f['push'](_0x542f8f['shift']());}}}(a270_0x567e,0x48943));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(_0x7b94ea){return process.env[`RABETBASE_${_0x7b94ea}`]||process.env[`LOVRABET_${_0x7b94ea}`]||undefined;}function optionalString(_0x1c2de1){const _0x20b477=a270_0x4921;return typeof _0x1c2de1==='string'&&_0x1c2de1[_0x20b477(0x152)]()?_0x1c2de1['trim']():undefined;}export function isRoutingRecoveryService(_0x58df3c){const _0x448e6a=a270_0x4921;return _0x58df3c===_0x448e6a(0x147)||_0x58df3c===_0x448e6a(0x142);}export async function createContext(_0x3a80bf){const _0x740ed=a270_0x4921,{config:_0x143d0d,layers:_0x2e3323}=readRawConfigWithLayers(),_0x1cfef4=buildConfig(_0x143d0d,_0x3a80bf,_0x2e3323);await initGlobalEnvironment(_0x1cfef4);const {getUserDomain:_0x198c98,getApiDomain:_0x31b554}=await import(_0x740ed(0x16e)),_0x132a01={'apiDomain':_0x31b554(),'userDomain':_0x198c98()},_0x180b25=await buildAuth(_0x1cfef4);logger[_0x740ed(0x13c)](process[_0x740ed(0x184)]());const _0x59866a=(CLI_BIN_NAME+'\x20'+process[_0x740ed(0x162)][_0x740ed(0x14b)](0x2)['join']('\x20'))[_0x740ed(0x152)]();logger[_0x740ed(0x189)](_0x59866a);const {isNonInteractive:_0x4dc68e}=await import(_0x740ed(0x163)),_0x47561f=_0x4dc68e(_0x3a80bf);return{'config':_0x1cfef4,'auth':_0x180b25,'logger':logger,'env':_0x132a01,'nonInteractive':_0x47561f};}function a270_0x567e(){const _0x231365=['regionLocation','351BrrfMf','keys','15UPumDS','189SRfiUl','trim','hasOwnProperty','domains','1209564iRJxgT','platformDomain','skillHubDomain','prototype','./constant/env.js','skillDomain','template_base_url','projectConfig','88368ymlzWl','appDomain','cdn','297XbHFcN','production','argv','./utils/is-non-interactive.js','localDomain','daily','apiGroup','raw','certificateDomain','regionSource','length','filePath','source','app','./constant/domain.js','apiDomain','object','userDomain','string','4UsDYXM','project','routingConfig','19833nWeypZ','some','563880ZtMOBH','2180YRpKpW','823610gcWtGm','https://g.lovrabet.com/dist/lovrabet-skill','env','runtimeDomain','routing','appcode','call','agentDomain','app\x20profile\x20\x22','69976QAkJDq','cwd','region','replace','currentApp','project\x20Rabetbase\x20configuration','setRawCommand','setLogPath','apiDir','kbDomain','46184fILcyf','configuredRegion','cookie','doctor','entries','global','kbServiceDomain','apps','config','defaultApp','Rabetbase\x20configuration','merged','slice','globalConfig'];a270_0x567e=function(){return _0x231365;};return a270_0x567e();}export function buildConfigFromFlags(_0x4f5894){const {config:_0x4265d4,layers:_0x3db51c}=readRawConfigWithLayers();return buildConfig(_0x4265d4,_0x4f5894,_0x3db51c);}export async function initGlobalEnvironment(_0x538665){const _0x20437a=a270_0x4921,_0xdeb248=_0x538665[_0x20437a(0x169)]==='app'&&_0x538665[_0x20437a(0x187)]?_0x20437a(0x182)+_0x538665[_0x20437a(0x187)]+'\x22':_0x538665['regionSource']===_0x20437a(0x174)?_0x20437a(0x188):_0x538665[_0x20437a(0x169)]===_0x20437a(0x144)?'global\x20Rabetbase\x20configuration':_0x20437a(0x149);await initConfiguredEnvironment({'raw':_0x538665[_0x20437a(0x167)],'configuredRegion':_0x538665['regionConfiguredValue']??_0x538665[_0x20437a(0x167)]?.[_0x20437a(0x185)]??_0x538665[_0x20437a(0x185)],'regionLocation':_0xdeb248,'targetEnv':_0x538665[_0x20437a(0x17c)]});}async function initConfiguredEnvironment(_0x26d350){const _0x63562=a270_0x4921,_0x16313f=resolveConfiguredRegion(_0x26d350[_0x63562(0x140)],_0x26d350[_0x63562(0x14d)]),_0x691fa5=resolveEnterpriseRoutingManifest(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17e)]),_0x17d954={'region':_0x16313f,'apiDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x16f)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x16f)]),'userDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x171)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x171)]),'runtimeDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x17d)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17d)]),'skillDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x15a)]:optionalString(_0x26d350['raw']?.[_0x63562(0x15a)])||optionalString(_0x26d350[_0x63562(0x167)]?.['skillHubDomain'])||optionalString(_0x26d350['raw']?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x13e)]:optionalString(_0x26d350['raw']?.[_0x63562(0x13e)])||optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbServiceDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x145)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x145)]),'appDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x15e)]:optionalString(_0x26d350['raw']?.['appDomain']),'localDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x164)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x164)]),'certificateDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)]['certificateDomain']:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x168)]),'cdn':_0x691fa5?.[_0x63562(0x15f)],'allowOfficialKbServiceDefault':!(_0x691fa5!==undefined||[_0x63562(0x16f),_0x63562(0x171),_0x63562(0x17d),_0x63562(0x15a),_0x63562(0x157),'kbDomain',_0x63562(0x145),_0x63562(0x181),_0x63562(0x156),_0x63562(0x15e),'localDomain',_0x63562(0x168)][_0x63562(0x177)](_0x11dd03=>Object[_0x63562(0x158)][_0x63562(0x153)][_0x63562(0x180)](_0x26d350[_0x63562(0x167)]??{},_0x11dd03)))},{initEnv:_0xd816ca}=await import(_0x63562(0x159)),{initDomains:_0x1dc928}=await import('./constant/domain.js');_0xd816ca(_0x26d350['targetEnv']),_0x1dc928(_0x17d954);}export async function initMultiAppEnvironment(_0x47c776){const _0x206bac=a270_0x4921;await initConfiguredEnvironment({'raw':_0x47c776[_0x206bac(0x175)],'configuredRegion':_0x47c776['region'],'regionLocation':_0x206bac(0x182)+_0x47c776['name']+'\x22','targetEnv':_0x47c776[_0x206bac(0x17c)]===_0x206bac(0x165)?'daily':_0x206bac(0x161)});}export function getConfigAppCode(_0x202be3){const _0x625648=a270_0x4921,_0x203040=readRawConfig(_0x202be3);if(_0x203040['apps']&&typeof _0x203040[_0x625648(0x146)]===_0x625648(0x170)){const _0x469855=_0x203040[_0x625648(0x148)];if(_0x469855)return _0x203040[_0x625648(0x146)][_0x469855]?.[_0x625648(0x17f)]?String(_0x203040[_0x625648(0x146)][_0x469855][_0x625648(0x17f)])['trim']():undefined;const _0x36d215=Object['values'](_0x203040[_0x625648(0x146)]);if(_0x36d215[_0x625648(0x16a)]===0x1&&_0x36d215[0x0]?.[_0x625648(0x17f)])return String(_0x36d215[0x0]['appcode'])[_0x625648(0x152)]();}const _0x472f17=_0x203040[_0x625648(0x17f)]||_0x203040[_0x625648(0x16d)];if(typeof _0x472f17!==_0x625648(0x172)||_0x472f17['trim']()==='')return undefined;return _0x472f17[_0x625648(0x152)]();}const CONNECTION_ROUTING_KEYS=[a270_0xdc89d9(0x17e),a270_0xdc89d9(0x16f),a270_0xdc89d9(0x171),'runtimeDomain','skillDomain',a270_0xdc89d9(0x157),'kbDomain',a270_0xdc89d9(0x145),a270_0xdc89d9(0x181),a270_0xdc89d9(0x156),a270_0xdc89d9(0x15e),a270_0xdc89d9(0x164),'certificateDomain'];function withAppProfileRouting(_0x4765e5,_0x20c875){const _0x37b246=a270_0xdc89d9;if(!_0x20c875||_0x20c875[_0x37b246(0x145)]===undefined)return _0x4765e5;return{..._0x4765e5,'kbServiceDomain':_0x20c875['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x41cceb,_0x348eff){const _0x10d358={'region':_0x348eff};for(const _0x538195 of CONNECTION_ROUTING_KEYS){if(_0x41cceb[_0x538195]!==undefined)_0x10d358[_0x538195]=_0x41cceb[_0x538195];}return _0x10d358;}export function getMultiAppConfigs(_0x1c6ab1=a270_0xdc89d9(0x174),_0x5d910e){const _0x1c6634=a270_0xdc89d9,_0x46349a=loadRawConfigLayers(_0x5d910e);let _0x3863b9,_0x2781f4;const _0x2af7b4=mergeRawConfigLayers(_0x46349a),_0x39e786=_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]===_0x1c6634(0x170)?_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]:{},_0x205d54=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]==='object'?_0x46349a['projectConfig'][_0x1c6634(0x146)]:{};_0x1c6ab1===_0x1c6634(0x14a)?(_0x3863b9={..._0x39e786,..._0x205d54},_0x2781f4=_0x2af7b4[_0x1c6634(0x148)]):(_0x3863b9=_0x46349a['projectConfig'][_0x1c6634(0x146)],_0x2781f4=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x148)]);!_0x2781f4&&_0x3863b9&&typeof _0x3863b9==='object'&&Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x1&&(_0x2781f4=Object[_0x1c6634(0x14f)](_0x3863b9)[0x0]);if(!_0x3863b9||typeof _0x3863b9!=='object'||Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x0)return null;return Object[_0x1c6634(0x143)](_0x3863b9)['map'](([_0xa3c0aa,_0x16f94c])=>{const _0x2372de=_0x1c6634,_0x31235f=_0x1c6ab1===_0x2372de(0x174)||Object[_0x2372de(0x158)][_0x2372de(0x153)][_0x2372de(0x180)](_0x205d54,_0xa3c0aa),_0x531a58=withAppProfileRouting(_0x31235f?_0x2af7b4:_0x46349a[_0x2372de(0x14c)],_0x16f94c),_0x4d9151=resolveEffectiveRegion({'appRegion':_0x16f94c?.[_0x2372de(0x185)],'projectRegion':_0x31235f?_0x46349a[_0x2372de(0x15c)][_0x2372de(0x185)]:undefined,'globalRegion':_0x46349a[_0x2372de(0x14c)][_0x2372de(0x185)],'mergedRegion':_0x531a58['region'],'appName':_0xa3c0aa});return{'name':_0xa3c0aa,'appcode':_0x16f94c?.[_0x2372de(0x17f)]||'','apiGroup':optionalString(_0x16f94c?.[_0x2372de(0x166)]),'isDefault':_0xa3c0aa===_0x2781f4,'region':_0x4d9151[_0x2372de(0x185)],'regionSource':_0x4d9151[_0x2372de(0x16c)],'env':_0x16f94c?.['env'],'apiDir':optionalString(_0x16f94c?.[_0x2372de(0x13d)])||optionalString(_0x531a58[_0x2372de(0x13d)]),'cookie':_0x16f94c?.[_0x2372de(0x141)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x531a58,_0x4d9151[_0x2372de(0x185)])};})['filter'](_0xb29358=>_0xb29358[_0x1c6634(0x17f)]);}export function getTemplateBaseUrl(_0x2a3358){const _0x27a3aa=a270_0xdc89d9,_0x172d31=readRawConfig(_0x2a3358);if(_0x172d31[_0x27a3aa(0x15b)]&&typeof _0x172d31['template_base_url']===_0x27a3aa(0x172))return _0x172d31[_0x27a3aa(0x15b)][_0x27a3aa(0x186)](/\/$/,'');return _0x27a3aa(0x17b);}function buildConfig(_0x3d4803,_0x454b0c,_0x55daac){const _0xe072d2=a270_0xdc89d9,_0x292193=resolveAppConfig({'raw':_0x3d4803,'flags':_0x454b0c,'layers':_0x55daac,'readEnv':env}),_0x206c33=_0x292193[_0xe072d2(0x187)]?_0x292193['apps'][_0x292193['currentApp']]:undefined;return{..._0x292193,'raw':withAppProfileRouting(_0x3d4803,_0x206c33)};}function a270_0x4921(_0x4dd83d,_0x9d5dfd){_0x4dd83d=_0x4dd83d-0x13c;const _0x567ea6=a270_0x567e();let _0x492139=_0x567ea6[_0x4dd83d];return _0x492139;}export function resolveApiFilePath(_0x1ede17,_0xd74b2d,_0x76073a){const _0x591f60=a270_0xdc89d9;return resolveApiModelSource(_0x1ede17,_0xd74b2d,_0x76073a)[_0x591f60(0x16b)];}
|
|
1
|
+
const a275_0x50c477=a275_0x36d9;(function(_0x2d39f7,_0x9bb700){const _0x452f8f=a275_0x36d9,_0x563a87=_0x2d39f7();while(!![]){try{const _0x3bbd15=-parseInt(_0x452f8f(0x144))/0x1+-parseInt(_0x452f8f(0x109))/0x2+parseInt(_0x452f8f(0x151))/0x3*(parseInt(_0x452f8f(0x12b))/0x4)+-parseInt(_0x452f8f(0x14e))/0x5+parseInt(_0x452f8f(0x10c))/0x6*(parseInt(_0x452f8f(0x118))/0x7)+-parseInt(_0x452f8f(0x12e))/0x8+parseInt(_0x452f8f(0x116))/0x9;if(_0x3bbd15===_0x9bb700)break;else _0x563a87['push'](_0x563a87['shift']());}catch(_0x395feb){_0x563a87['push'](_0x563a87['shift']());}}}(a275_0xeb6e,0x812d5));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(_0x2f6175){return process.env[`RABETBASE_${_0x2f6175}`]||process.env[`LOVRABET_${_0x2f6175}`]||undefined;}function optionalString(_0x26e946){const _0x167eac=a275_0x36d9;return typeof _0x26e946===_0x167eac(0x11c)&&_0x26e946['trim']()?_0x26e946[_0x167eac(0x13a)]():undefined;}export function isRoutingRecoveryService(_0x46dd01){const _0x1052eb=a275_0x36d9;return _0x46dd01===_0x1052eb(0x13b)||_0x46dd01===_0x1052eb(0x10b);}export async function createContext(_0x395798){const _0x30d402=a275_0x36d9,{config:_0x3986d0,layers:_0x1ca27f}=readRawConfigWithLayers(),_0x1b374b=buildConfig(_0x3986d0,_0x395798,_0x1ca27f);await initGlobalEnvironment(_0x1b374b);const {getUserDomain:_0x28fab2,getApiDomain:_0x139067}=await import(_0x30d402(0x135)),_0x2254f5={'apiDomain':_0x139067(),'userDomain':_0x28fab2()},_0x3cafdc=await buildAuth(_0x1b374b);logger['setLogPath'](process['cwd']());const _0x38baff=(CLI_BIN_NAME+'\x20'+process['argv'][_0x30d402(0x10a)](0x2)['join']('\x20'))['trim']();logger[_0x30d402(0x14c)](_0x38baff);const {isNonInteractive:_0x41822e}=await import(_0x30d402(0x133)),_0x2cb300=_0x41822e(_0x395798);return{'config':_0x1b374b,'auth':_0x3cafdc,'logger':logger,'env':_0x2254f5,'nonInteractive':_0x2cb300};}export function buildConfigFromFlags(_0x3011d2){const {config:_0x4d220a,layers:_0x22da7e}=readRawConfigWithLayers();return buildConfig(_0x4d220a,_0x3011d2,_0x22da7e);}export async function initGlobalEnvironment(_0x4fe5e5){const _0x1b320c=a275_0x36d9,_0x181ba4=_0x4fe5e5['regionSource']===_0x1b320c(0x141)&&_0x4fe5e5[_0x1b320c(0x126)]?'app\x20profile\x20\x22'+_0x4fe5e5[_0x1b320c(0x126)]+'\x22':_0x4fe5e5[_0x1b320c(0x148)]===_0x1b320c(0x12c)?_0x1b320c(0x120):_0x4fe5e5[_0x1b320c(0x148)]===_0x1b320c(0x139)?_0x1b320c(0x10e):_0x1b320c(0x114);await initConfiguredEnvironment({'raw':_0x4fe5e5[_0x1b320c(0x147)],'configuredRegion':_0x4fe5e5[_0x1b320c(0x11e)]??_0x4fe5e5[_0x1b320c(0x147)]?.[_0x1b320c(0x138)]??_0x4fe5e5[_0x1b320c(0x138)],'regionLocation':_0x181ba4,'targetEnv':_0x4fe5e5[_0x1b320c(0x117)]});}function a275_0x36d9(_0x2ea4ed,_0x4dd803){_0x2ea4ed=_0x2ea4ed-0x109;const _0xeb6ebf=a275_0xeb6e();let _0x36d986=_0xeb6ebf[_0x2ea4ed];return _0x36d986;}async function initConfiguredEnvironment(_0x51cf5c){const _0x3af334=a275_0x36d9,_0x5618cd=resolveConfiguredRegion(_0x51cf5c[_0x3af334(0x145)],_0x51cf5c[_0x3af334(0x149)]),_0x36c514=resolveEnterpriseRoutingManifest(_0x51cf5c[_0x3af334(0x147)]?.['routing']),_0x58c2cb={'region':_0x5618cd,'apiDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x123)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.['apiDomain']),'userDomain':_0x36c514?_0x36c514['domains'][_0x3af334(0x146)]:optionalString(_0x51cf5c['raw']?.[_0x3af334(0x146)]),'runtimeDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x11f)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.['runtimeDomain']),'skillDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x137)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x137)])||optionalString(_0x51cf5c[_0x3af334(0x147)]?.['skillHubDomain'])||optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x111)])||optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x150)]),'kbDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x129)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x129)])||optionalString(_0x51cf5c['raw']?.[_0x3af334(0x111)])||optionalString(_0x51cf5c['raw']?.['platformDomain']),'kbServiceDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x14f)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x14f)]),'appDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x136)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x136)]),'localDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x119)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x119)]),'certificateDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x113)]:optionalString(_0x51cf5c['raw']?.[_0x3af334(0x113)]),'cdn':_0x36c514?.[_0x3af334(0x122)],'allowOfficialKbServiceDefault':!(_0x36c514!==undefined||['apiDomain',_0x3af334(0x146),_0x3af334(0x11f),_0x3af334(0x137),_0x3af334(0x11b),'kbDomain',_0x3af334(0x14f),'agentDomain',_0x3af334(0x150),_0x3af334(0x136),'localDomain','certificateDomain'][_0x3af334(0x125)](_0x48b18b=>Object[_0x3af334(0x10d)][_0x3af334(0x10f)][_0x3af334(0x143)](_0x51cf5c[_0x3af334(0x147)]??{},_0x48b18b)))},{initEnv:_0x21c21e}=await import(_0x3af334(0x131)),{initDomains:_0x12a60b}=await import(_0x3af334(0x135));_0x21c21e(_0x51cf5c['targetEnv']),_0x12a60b(_0x58c2cb);}export async function initMultiAppEnvironment(_0x5baff2){const _0x57eda9=a275_0x36d9;await initConfiguredEnvironment({'raw':_0x5baff2[_0x57eda9(0x12f)],'configuredRegion':_0x5baff2['region'],'regionLocation':_0x57eda9(0x132)+_0x5baff2[_0x57eda9(0x13c)]+'\x22','targetEnv':_0x5baff2['env']===_0x57eda9(0x128)?_0x57eda9(0x128):'production'});}export function getConfigAppCode(_0x12226b){const _0x35615e=a275_0x36d9,_0x47eae2=readRawConfig(_0x12226b);if(_0x47eae2[_0x35615e(0x121)]&&typeof _0x47eae2['apps']==='object'){const _0x27f5be=_0x47eae2['defaultApp'];if(_0x27f5be)return _0x47eae2[_0x35615e(0x121)][_0x27f5be]?.[_0x35615e(0x134)]?String(_0x47eae2[_0x35615e(0x121)][_0x27f5be][_0x35615e(0x134)])['trim']():undefined;const _0x319974=Object[_0x35615e(0x14a)](_0x47eae2[_0x35615e(0x121)]);if(_0x319974[_0x35615e(0x11a)]===0x1&&_0x319974[0x0]?.['appcode'])return String(_0x319974[0x0][_0x35615e(0x134)])[_0x35615e(0x13a)]();}const _0x5defbd=_0x47eae2[_0x35615e(0x134)]||_0x47eae2[_0x35615e(0x141)];if(typeof _0x5defbd!==_0x35615e(0x11c)||_0x5defbd[_0x35615e(0x13a)]()==='')return undefined;return _0x5defbd['trim']();}const CONNECTION_ROUTING_KEYS=[a275_0x50c477(0x13f),a275_0x50c477(0x123),a275_0x50c477(0x146),a275_0x50c477(0x11f),'skillDomain',a275_0x50c477(0x11b),a275_0x50c477(0x129),'kbServiceDomain',a275_0x50c477(0x111),'platformDomain','appDomain','localDomain',a275_0x50c477(0x113)];function withAppProfileRouting(_0x56c2b3,_0x30cb65){const _0x2a8f56=a275_0x50c477;if(!_0x30cb65||_0x30cb65[_0x2a8f56(0x14f)]===undefined)return _0x56c2b3;return{..._0x56c2b3,'kbServiceDomain':_0x30cb65[_0x2a8f56(0x14f)]};}function pickConnectionRoutingConfig(_0x44b1a4,_0x3e6198){const _0x4a1850={'region':_0x3e6198};for(const _0xedf3c7 of CONNECTION_ROUTING_KEYS){if(_0x44b1a4[_0xedf3c7]!==undefined)_0x4a1850[_0xedf3c7]=_0x44b1a4[_0xedf3c7];}return _0x4a1850;}export function getMultiAppConfigs(_0x17f7c5=a275_0x50c477(0x12c),_0x176c4c){const _0x35ac49=a275_0x50c477,_0x3919bd=loadRawConfigLayers(_0x176c4c);let _0x25bb89,_0x2b5c34;const _0x4befa6=mergeRawConfigLayers(_0x3919bd),_0x247d13=_0x3919bd[_0x35ac49(0x13e)][_0x35ac49(0x121)]&&typeof _0x3919bd[_0x35ac49(0x13e)][_0x35ac49(0x121)]===_0x35ac49(0x112)?_0x3919bd[_0x35ac49(0x13e)]['apps']:{},_0x97b258=_0x3919bd['projectConfig']['apps']&&typeof _0x3919bd[_0x35ac49(0x130)][_0x35ac49(0x121)]===_0x35ac49(0x112)?_0x3919bd[_0x35ac49(0x130)][_0x35ac49(0x121)]:{};_0x17f7c5===_0x35ac49(0x124)?(_0x25bb89={..._0x247d13,..._0x97b258},_0x2b5c34=_0x4befa6[_0x35ac49(0x127)]):(_0x25bb89=_0x3919bd[_0x35ac49(0x130)][_0x35ac49(0x121)],_0x2b5c34=_0x3919bd[_0x35ac49(0x130)]['defaultApp']);!_0x2b5c34&&_0x25bb89&&typeof _0x25bb89===_0x35ac49(0x112)&&Object[_0x35ac49(0x11d)](_0x25bb89)[_0x35ac49(0x11a)]===0x1&&(_0x2b5c34=Object['keys'](_0x25bb89)[0x0]);if(!_0x25bb89||typeof _0x25bb89!==_0x35ac49(0x112)||Object[_0x35ac49(0x11d)](_0x25bb89)['length']===0x0)return null;return Object[_0x35ac49(0x14b)](_0x25bb89)[_0x35ac49(0x12a)](([_0x3f71fc,_0x12e9a7])=>{const _0xeb58e9=_0x35ac49,_0x4637af=_0x17f7c5==='project'||Object[_0xeb58e9(0x10d)]['hasOwnProperty'][_0xeb58e9(0x143)](_0x97b258,_0x3f71fc),_0x29aad9=withAppProfileRouting(_0x4637af?_0x4befa6:_0x3919bd[_0xeb58e9(0x13e)],_0x12e9a7),_0x37f78f=resolveEffectiveRegion({'appRegion':_0x12e9a7?.['region'],'projectRegion':_0x4637af?_0x3919bd[_0xeb58e9(0x130)][_0xeb58e9(0x138)]:undefined,'globalRegion':_0x3919bd[_0xeb58e9(0x13e)][_0xeb58e9(0x138)],'mergedRegion':_0x29aad9[_0xeb58e9(0x138)],'appName':_0x3f71fc});return{'name':_0x3f71fc,'appcode':_0x12e9a7?.['appcode']||'','apiGroup':optionalString(_0x12e9a7?.['apiGroup']),'isDefault':_0x3f71fc===_0x2b5c34,'region':_0x37f78f[_0xeb58e9(0x138)],'regionSource':_0x37f78f[_0xeb58e9(0x14d)],'env':_0x12e9a7?.[_0xeb58e9(0x117)],'apiDir':optionalString(_0x12e9a7?.[_0xeb58e9(0x142)])||optionalString(_0x29aad9[_0xeb58e9(0x142)]),'cookie':_0x12e9a7?.[_0xeb58e9(0x110)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x29aad9,_0x37f78f[_0xeb58e9(0x138)])};})['filter'](_0x5ad867=>_0x5ad867[_0x35ac49(0x134)]);}export function getTemplateBaseUrl(_0x4f0bac){const _0x353dab=a275_0x50c477,_0x1fa896=readRawConfig(_0x4f0bac);if(_0x1fa896['template_base_url']&&typeof _0x1fa896['template_base_url']==='string')return _0x1fa896[_0x353dab(0x12d)][_0x353dab(0x115)](/\/$/,'');return _0x353dab(0x140);}function buildConfig(_0x525b7e,_0x515f16,_0x326088){const _0x2fd009=a275_0x50c477,_0x1309c7=resolveAppConfig({'raw':_0x525b7e,'flags':_0x515f16,'layers':_0x326088,'readEnv':env}),_0x502b8a=_0x1309c7[_0x2fd009(0x126)]?_0x1309c7[_0x2fd009(0x121)][_0x1309c7[_0x2fd009(0x126)]]:undefined;return{..._0x1309c7,'raw':withAppProfileRouting(_0x525b7e,_0x502b8a)};}export function resolveApiFilePath(_0x234c4f,_0x887c8f,_0x571937){return resolveApiModelSource(_0x234c4f,_0x887c8f,_0x571937)['filePath'];}function a275_0xeb6e(){const _0x177e9e=['hasOwnProperty','cookie','agentDomain','object','certificateDomain','Rabetbase\x20configuration','replace','16044516nWrbmE','env','1744463mkuqka','localDomain','length','skillHubDomain','string','keys','regionConfiguredValue','runtimeDomain','project\x20Rabetbase\x20configuration','apps','cdn','apiDomain','merged','some','currentApp','defaultApp','daily','kbDomain','map','76292YesUfF','project','template_base_url','3526032RgHqiM','routingConfig','projectConfig','./constant/env.js','app\x20profile\x20\x22','./utils/is-non-interactive.js','appcode','./constant/domain.js','appDomain','skillDomain','region','global','trim','config','name','domains','globalConfig','routing','https://g.lovrabet.com/dist/lovrabet-skill','app','apiDir','call','493084yLSclb','configuredRegion','userDomain','raw','regionSource','regionLocation','values','entries','setRawCommand','source','1547720YKnlgw','kbServiceDomain','platformDomain','9wVoqnA','1131740vPMlRI','slice','doctor','12oPVqvi','prototype','global\x20Rabetbase\x20configuration'];a275_0xeb6e=function(){return _0x177e9e;};return a275_0xeb6e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0x22c3dc=a276_0x200f;(function(_0x33fd1d,_0x28e05b){const _0x6845d4=a276_0x200f,_0x5bfed7=_0x33fd1d();while(!![]){try{const _0x459017=-parseInt(_0x6845d4(0x9e))/0x1+parseInt(_0x6845d4(0x80))/0x2+-parseInt(_0x6845d4(0x7e))/0x3+-parseInt(_0x6845d4(0x7f))/0x4*(parseInt(_0x6845d4(0x9a))/0x5)+-parseInt(_0x6845d4(0xa5))/0x6*(-parseInt(_0x6845d4(0x82))/0x7)+parseInt(_0x6845d4(0x9f))/0x8*(-parseInt(_0x6845d4(0x8d))/0x9)+parseInt(_0x6845d4(0x83))/0xa;if(_0x459017===_0x28e05b)break;else _0x5bfed7['push'](_0x5bfed7['shift']());}catch(_0x410e5e){_0x5bfed7['push'](_0x5bfed7['shift']());}}}(a276_0x42da,0x56df7));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';function a276_0x42da(){const _0x3dc752=['endsWith','.mts','add','../','.ts','5105jgXosc','tableName','map','has','649333eMsIvK','272GmomfV','utf-8','alias','.cts','startsWith','size','1947552ZaftOl','filter','set','28287zQLBie','932bhgmyO','1397786ulJaQQ','slice','14WAbiJm','1441770KxRysV','flatMap','exec','.tsx','length','get','push','name','datasetCode','.js','63468AxzYDm','.jsx','index','defaultProfile','.cjs','cwd','.mjs','isFile'];a276_0x42da=function(){return _0x3dc752;};return a276_0x42da();}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=['.ts',a276_0x22c3dc(0x86),a276_0x22c3dc(0x96),a276_0x22c3dc(0xa2),a276_0x22c3dc(0x8c),a276_0x22c3dc(0x8e),a276_0x22c3dc(0x93),a276_0x22c3dc(0x91)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a276_0x22c3dc(0x99),'.tsx'],'.jsx':[a276_0x22c3dc(0x86)],'.mjs':['.mts'],'.cjs':['.cts']};function parseApiFile(_0x27ae30){const _0x11274e=a276_0x22c3dc;return parseLegacyApiModels(_0x27ae30)[_0x11274e(0x84)](_0xd4bf51=>_0xd4bf51[_0x11274e(0xa1)]?[{'alias':_0xd4bf51[_0x11274e(0xa1)],'datasetCode':_0xd4bf51[_0x11274e(0x8b)],'tableName':_0xd4bf51['tableName'],'name':_0xd4bf51[_0x11274e(0x8a)]}]:[]);}function isWithinRoot(_0x1c89c0,_0x4d8986){const _0x36ad9a=a276_0x22c3dc,_0x3c5df8=relative(_0x1c89c0,_0x4d8986);return _0x3c5df8===''||!_0x3c5df8[_0x36ad9a(0xa3)]('..')&&!isAbsolute(_0x3c5df8);}function resolveExistingFile(_0x124471){const _0x25d2bf=a276_0x22c3dc;if(!existsSync(_0x124471))return undefined;try{return statSync(_0x124471)[_0x25d2bf(0x94)]()?realpathSync(_0x124471):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x523379){const _0x3fd81b=a276_0x22c3dc,_0x34d995=extname(_0x523379);if(!_0x34d995)return[...SOURCE_FILE_EXTENSIONS[_0x3fd81b(0x9c)](_0x34017b=>''+_0x523379+_0x34017b),...SOURCE_FILE_EXTENSIONS[_0x3fd81b(0x9c)](_0x1b34e6=>resolve(_0x523379,_0x3fd81b(0x8f)+_0x1b34e6))];const _0x200af0=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x34d995];if(!_0x200af0)return[_0x523379];const _0xbdfdfd=_0x523379[_0x3fd81b(0x81)](0x0,-_0x34d995[_0x3fd81b(0x87)]);return[..._0x200af0[_0x3fd81b(0x9c)](_0x2c8572=>''+_0xbdfdfd+_0x2c8572),_0x523379];}function resolveLocalReexport(_0x134146,_0x2195a2,_0x48c8f0){const _0x42b642=a276_0x22c3dc;if(!_0x2195a2[_0x42b642(0xa3)]('./')&&!_0x2195a2[_0x42b642(0xa3)](_0x42b642(0x98)))return undefined;const _0x228120=resolve(dirname(_0x134146),_0x2195a2);if(!isWithinRoot(_0x48c8f0,_0x228120))return undefined;for(const _0x2d55df of reexportCandidatePaths(_0x228120)){const _0x5cc648=resolveExistingFile(_0x2d55df);if(_0x5cc648&&isWithinRoot(_0x48c8f0,_0x5cc648))return _0x5cc648;}return undefined;}function parseApiFileTree(_0x1afa40,_0x3ae6df,_0x2e0075,_0x196f66){const _0x576447=a276_0x22c3dc,_0x5b0909=resolveExistingFile(_0x1afa40);if(!_0x5b0909)return[];const _0x5adbeb=_0x2e0075[_0x576447(0x88)](_0x5b0909);if(_0x5adbeb!==undefined&&_0x5adbeb<=_0x196f66)return[];_0x2e0075[_0x576447(0x7d)](_0x5b0909,_0x196f66);const _0x19c1d6=readFileSync(_0x5b0909,_0x576447(0xa0)),_0x5a3c7b=parseApiFile(_0x19c1d6);if(_0x196f66>=MAX_LOCAL_REEXPORT_DEPTH)return _0x5a3c7b;const _0x13a176=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE['flags']);let _0x28e969;while((_0x28e969=_0x13a176[_0x576447(0x85)](_0x19c1d6))!==null){const _0x2a8250=resolveLocalReexport(_0x5b0909,_0x28e969[0x1],_0x3ae6df);_0x2a8250&&_0x5a3c7b[_0x576447(0x89)](...parseApiFileTree(_0x2a8250,_0x3ae6df,_0x2e0075,_0x196f66+0x1));}return _0x5a3c7b;}function aliasProjectRoot(_0x4e9d05){const _0x49dcb8=findProjectRootDirectory(dirname(_0x4e9d05));try{return realpathSync(_0x49dcb8);}catch{return _0x49dcb8;}}function a276_0x200f(_0x340443,_0x314d6d){_0x340443=_0x340443-0x7c;const _0x42dafd=a276_0x42da();let _0x200f59=_0x42dafd[_0x340443];return _0x200f59;}function uniqueAliasEntries(_0x152aaa){const _0x3d6763=a276_0x22c3dc,_0x750d31=new Set();return _0x152aaa[_0x3d6763(0x7c)](_0x5f1451=>{const _0x22f64f=_0x3d6763,_0x9dc4b9=JSON['stringify'](_0x5f1451);if(_0x750d31[_0x22f64f(0x9d)](_0x9dc4b9))return![];return _0x750d31[_0x22f64f(0x97)](_0x9dc4b9),!![];});}export function loadAliasMap(_0x57e53a,_0x41fc89,_0x1f79fb,_0x4add66){const _0x9405f1=a276_0x22c3dc,_0x56949b=resolve(_0x1f79fb??resolve(process[_0x9405f1(0x92)](),_0x57e53a,'api.ts')),_0x1cdad9=_0x4add66?_0x56949b+'#'+_0x4add66:_0x56949b;if(cache[_0x9405f1(0x9d)](_0x1cdad9))return cache[_0x9405f1(0x88)](_0x1cdad9);if(!existsSync(_0x56949b))return cache['set'](_0x1cdad9,[]),[];try{if(_0x56949b[_0x9405f1(0x95)](MODEL_REGISTRY_FILE_NAME)){const _0x3da905=readModelRegistry(_0x56949b),_0x4423f1=_0x4add66??_0x3da905?.[_0x9405f1(0x90)],_0x5e41a7=_0x4423f1&&_0x3da905?getProfileModels(_0x3da905,_0x4423f1):[],_0x4522a6=uniqueAliasEntries(_0x5e41a7['flatMap'](_0x22e1f7=>_0x22e1f7[_0x9405f1(0xa1)]?[{'alias':_0x22e1f7[_0x9405f1(0xa1)],'datasetCode':_0x22e1f7[_0x9405f1(0x8b)],'tableName':_0x22e1f7[_0x9405f1(0x9b)],'name':_0x22e1f7[_0x9405f1(0x8a)]}]:[]));return cache[_0x9405f1(0x7d)](_0x1cdad9,_0x4522a6),_0x4522a6;}const _0x57d551=uniqueAliasEntries(parseApiFileTree(_0x56949b,aliasProjectRoot(_0x56949b),new Map(),0x0));return cache['set'](_0x1cdad9,_0x57d551),_0x57d551;}catch{return cache[_0x9405f1(0x7d)](_0x1cdad9,[]),[];}}export function resolveAlias(_0x5a4061,_0x59cd2f,_0x2b552e,_0x3ac777,_0x233f86){const _0x3e5197=a276_0x22c3dc;if(!_0x59cd2f)return undefined;const _0x4cded5=loadAliasMap(_0x5a4061,_0x2b552e,_0x3ac777,_0x233f86),_0x18cf0b=new Set(_0x4cded5['filter'](_0x7ee598=>_0x7ee598[_0x3e5197(0xa1)]===_0x59cd2f)[_0x3e5197(0x9c)](_0x1bdce2=>_0x1bdce2[_0x3e5197(0x8b)]));return _0x18cf0b[_0x3e5197(0xa4)]===0x1?[..._0x18cf0b][0x0]:undefined;}export function listAliases(_0x445158,_0xf2a3ce,_0x2430fe,_0x3adc1b){return loadAliasMap(_0x445158,_0xf2a3ce,_0x2430fe,_0x3adc1b);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -1325,6 +1325,21 @@ export declare function getDbTableComparisonPage(appCode: string, dbLinkId: numb
|
|
|
1325
1325
|
tableName?: string;
|
|
1326
1326
|
}): Promise<DbTableDiffResult>;
|
|
1327
1327
|
export declare function startDbTableDiffRefresh(appCode: string, dbLinkId: number): Promise<DbTableDiffRefreshStartResult>;
|
|
1328
|
+
export interface SmartAppRecord {
|
|
1329
|
+
id?: number;
|
|
1330
|
+
appCode: string;
|
|
1331
|
+
appPublishStatus?: string;
|
|
1332
|
+
extend?: Record<string, unknown> | string | null;
|
|
1333
|
+
}
|
|
1334
|
+
export declare function getSmartAppRecord(appCode: string, cookie: string): Promise<SmartAppRecord>;
|
|
1335
|
+
/** GET /smartapi/app/getOne, developer Cookie; explicit deployment sync capability, not automatic sync status. Unknown is not false. */
|
|
1336
|
+
export declare function getAppVipDeploy(appCode: string, cookie: string): Promise<boolean | undefined>;
|
|
1337
|
+
export declare function updateSmartAppRecord(input: {
|
|
1338
|
+
id: number;
|
|
1339
|
+
appCode: string;
|
|
1340
|
+
appPublishStatus: string;
|
|
1341
|
+
extend: Record<string, unknown>;
|
|
1342
|
+
}, cookie: string): Promise<SmartAppRecord>;
|
|
1328
1343
|
export interface RemoteApp {
|
|
1329
1344
|
id?: number | string;
|
|
1330
1345
|
appCode: string;
|