@lovrabet/rabetbase-cli 2.5.3 → 2.5.4-beta.2
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 +11 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.d.ts +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.d.ts +2 -0
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/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.d.ts +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.d.ts +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.d.ts +4 -0
- 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.d.ts +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +14 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +1 -0
- 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.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.d.ts +11 -10
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.d.ts +7 -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.d.ts +5 -2
- 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.d.ts +15 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- 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.d.ts +5 -0
- 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 +31 -17
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +33 -11
- package/skills/rabetbase/guides/best-practices.md +1 -1
- package/skills/rabetbase/guides/conflict-detection.md +44 -92
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +642 -0
- package/skills/rabetbase/guides/custom-page-flow-timeline-display.md +289 -0
- package/skills/rabetbase/guides/custom-page-workflow.md +12 -3
- package/skills/rabetbase/guides/sql-creation-workflow.md +44 -26
- package/skills/rabetbase/guides/sql-mybatis.md +18 -49
- package/skills/rabetbase/guides/typescript-sdk.md +18 -0
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +22 -6
- package/skills/rabetbase/knowledge/components.md +34 -28
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +6 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +8 -4
- package/skills/rabetbase/references/rabetbase-flow-resources.md +3 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +2 -0
- package/skills/rabetbase/references/rabetbase-init.md +7 -5
- package/skills/rabetbase/references/rabetbase-kb.md +14 -4
- package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -1
- package/skills/rabetbase/references/rabetbase-page-custom-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-sql-push.md +5 -0
- package/skills/rabetbase/references/rabetbase-sql-validate.md +12 -6
- package/skills/rabetbase.manifest.json +5 -3
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a257_0x4a13(_0xc804e,_0x15ec58){_0xc804e=_0xc804e-0x117;const _0x59ebd1=a257_0x59eb();let _0x4a1373=_0x59ebd1[_0xc804e];return _0x4a1373;}const a257_0x3b830e=a257_0x4a13;(function(_0xc1d018,_0xc1cadd){const _0x321ac9=a257_0x4a13,_0x2ffce2=_0xc1d018();while(!![]){try{const _0x42ad02=parseInt(_0x321ac9(0x19e))/0x1*(-parseInt(_0x321ac9(0x1a3))/0x2)+-parseInt(_0x321ac9(0x13e))/0x3*(parseInt(_0x321ac9(0x144))/0x4)+-parseInt(_0x321ac9(0x154))/0x5*(parseInt(_0x321ac9(0x14e))/0x6)+-parseInt(_0x321ac9(0x1a6))/0x7+-parseInt(_0x321ac9(0x15d))/0x8+-parseInt(_0x321ac9(0x18e))/0x9+-parseInt(_0x321ac9(0x19a))/0xa*(-parseInt(_0x321ac9(0x179))/0xb);if(_0x42ad02===_0xc1cadd)break;else _0x2ffce2['push'](_0x2ffce2['shift']());}catch(_0x2efa10){_0x2ffce2['push'](_0x2ffce2['shift']());}}}(a257_0x59eb,0x85850));export const CLI_BIN_NAME='rabetbase';function a257_0x59eb(){const _0x45755e=['Operation\x20type','2766aLdyDM','Apply\x20to\x20all','enable-bff-save','flowType','Type\x20filter','expectedCount','1192mlJVEJ','operation-type','key','Read\x20value\x20from\x20environment\x20variable','expectPath','page','Environment','Config\x20key','enableBffSave','global','6098166WZRxwW','flowStatus','pageSize','Flow\x20code','pagesize','reveal','5ewWeyA','parentId','topk','flow-type','Rabetbase\x20CLI','app','sqlName','non-interactive','remote','3203200kUIUaA','Comma-separated\x20metadata\x20codes','yes','operationType','tags','Page\x20size','value','stdin','fromEnv','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','sort','flow-status','operation','dryRun','confirm','sqlname','Name','menuIds','Force\x20non-interactive\x20mode\x20(CI)','Output\x20path','watch','expectedChildrenCount','Keyword\x20filter','dataset-code','appcode','type','Preview\x20operation\x20without\x20executing','<expr>','2553067dqZgrC','flow-name','Function\x20node','<code>','keyword','env','production\x20|\x20daily','Description','Use\x20global\x20config\x20scope','boolean','Skip\x20import\x20generation','Record\x20ID','@lovrabet/rabetbase-cli','Asynchronous\x20task\x20ID','expected-children-count','task-id','Select\x20app\x20profile\x20by\x20name','Force\x20overwrite','verbose','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','skip-imports','204336VZTKaQ','Comma-separated\x20menu\x20IDs','meowKey','map','expected-count','function-node','SQL\x20string','Override\x20appcode','Reveal\x20sensitive\x20value','expect-parent-id','all','SQL\x20code','180tFJFrU','file','Alias\x20for\x20--non-interactive','zh-CN\x20|\x20en-US','5023RsTCZv','label','Expected\x20current\x20parent\x20menu\x20id','format','Code\x20filter','366bYunyj','db-id','page-size','6981940zjyScv','Schemas','Description\x20file','force','Dataset\x20code','output','taskId','Read\x20value\x20from\x20stdin','Menu\x20label','skipImports','from-env','target','Page\x20number','Flow\x20status','Tags','codes','sql','functionNode','flow-code','locale','Verbose\x20output','help','clear','description','nonInteractive','flowCode','description-file','dbid','json\x20|\x20pretty\x20|\x20compress','Menu\x20sort\x20value','dry-run','File\x20path','schemas','dbId','expect-path','params','string','Use\x20project\x20config\x20scope','SQL\x20name','datasetcode','Output\x20format','project','code','Target\x20path','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectParentId','DB\x20ID'];a257_0x59eb=function(){return _0x45755e;};return a257_0x59eb();}export const CLI_DISPLAY_NAME=a257_0x3b830e(0x158);export const NPM_PACKAGE_NAME=a257_0x3b830e(0x185);export const GLOBAL_FLAGS=[{'name':a257_0x3b830e(0x175),'meowKey':a257_0x3b830e(0x175),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x195),'hint':a257_0x3b830e(0x17c)},{'name':a257_0x3b830e(0x159),'meowKey':a257_0x3b830e(0x159),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x189),'hint':'<name>'},{'name':a257_0x3b830e(0x17e),'meowKey':a257_0x3b830e(0x17e),'type':'string','description':a257_0x3b830e(0x14a),'hint':a257_0x3b830e(0x17f)},{'name':a257_0x3b830e(0x1a1),'meowKey':a257_0x3b830e(0x1a1),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x136),'hint':a257_0x3b830e(0x12a)},{'name':'jq','meowKey':'jq','type':'string','description':a257_0x3b830e(0x18c),'hint':a257_0x3b830e(0x178)},{'name':a257_0x3b830e(0x12c),'meowKey':a257_0x3b830e(0x16a),'type':'boolean','description':a257_0x3b830e(0x177)},{'name':'yes','meowKey':'yes','type':a257_0x3b830e(0x182),'description':a257_0x3b830e(0x13a)},{'name':a257_0x3b830e(0x15b),'meowKey':a257_0x3b830e(0x126),'type':a257_0x3b830e(0x182),'description':a257_0x3b830e(0x16f)},{'name':a257_0x3b830e(0x14d),'meowKey':'global','type':'boolean','description':a257_0x3b830e(0x181)},{'name':a257_0x3b830e(0x137),'meowKey':a257_0x3b830e(0x137),'type':'boolean','description':a257_0x3b830e(0x133)},{'name':'ci','meowKey':'ci','type':'boolean','description':a257_0x3b830e(0x19c),'hidden':!![]},{'name':a257_0x3b830e(0x123),'meowKey':'help','type':a257_0x3b830e(0x182),'description':'Show\x20help'},{'name':a257_0x3b830e(0x121),'meowKey':'locale','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x166),'hidden':!![],'hint':a257_0x3b830e(0x19d)},{'name':'name','meowKey':'name','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x16d),'hidden':!![]},{'name':'title','meowKey':'title','type':a257_0x3b830e(0x132),'description':'Title','hidden':!![]},{'name':'query','meowKey':'query','type':'string','description':'Search\x20query','hidden':!![]},{'name':a257_0x3b830e(0x156),'meowKey':a257_0x3b830e(0x156),'type':'string','description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a257_0x3b830e(0x124),'meowKey':a257_0x3b830e(0x124),'type':'boolean','description':'Clear','hidden':!![]},{'name':a257_0x3b830e(0x171),'meowKey':a257_0x3b830e(0x171),'type':a257_0x3b830e(0x182),'description':'Watch\x20mode','hidden':!![]},{'name':a257_0x3b830e(0x1ab),'meowKey':a257_0x3b830e(0x1ab),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x170),'hidden':!![]},{'name':'params','meowKey':a257_0x3b830e(0x131),'type':a257_0x3b830e(0x132),'description':'JSON\x20params','hidden':!![]},{'name':a257_0x3b830e(0x135),'meowKey':'datasetcode','type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a257_0x3b830e(0x198),'meowKey':a257_0x3b830e(0x198),'type':'boolean','description':a257_0x3b830e(0x13f),'hidden':!![]},{'name':a257_0x3b830e(0x140),'meowKey':a257_0x3b830e(0x14c),'type':'boolean','description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x184),'hidden':!![]},{'name':a257_0x3b830e(0x176),'meowKey':'type','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x142),'hidden':!![]},{'name':'file','meowKey':a257_0x3b830e(0x19b),'type':'string','description':a257_0x3b830e(0x12d),'hidden':!![]},{'name':a257_0x3b830e(0x120),'meowKey':a257_0x3b830e(0x127),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x151),'hidden':!![]},{'name':a257_0x3b830e(0x17a),'meowKey':'flowName','type':a257_0x3b830e(0x132),'description':'Flow\x20name','hidden':!![]},{'name':a257_0x3b830e(0x168),'meowKey':a257_0x3b830e(0x14f),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x11b),'hidden':!![]},{'name':a257_0x3b830e(0x157),'meowKey':a257_0x3b830e(0x141),'type':a257_0x3b830e(0x132),'description':'Flow\x20type','hidden':!![]},{'name':a257_0x3b830e(0x174),'meowKey':'datasetCode','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x1aa),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x199),'hidden':!![]},{'name':'sql-name','meowKey':a257_0x3b830e(0x15a),'type':'string','description':a257_0x3b830e(0x134),'hidden':!![]},{'name':a257_0x3b830e(0x16c),'meowKey':'sqlname','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x134),'hidden':!![]},{'name':a257_0x3b830e(0x1a4),'meowKey':a257_0x3b830e(0x12f),'type':'string','description':a257_0x3b830e(0x13c),'hidden':!![]},{'name':'dbid','meowKey':a257_0x3b830e(0x129),'type':'string','description':a257_0x3b830e(0x13c),'hidden':!![]},{'name':a257_0x3b830e(0x125),'meowKey':a257_0x3b830e(0x125),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x180),'hidden':!![]},{'name':a257_0x3b830e(0x128),'meowKey':'descriptionFile','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x1a8),'hidden':!![]},{'name':'page','meowKey':a257_0x3b830e(0x149),'type':'string','description':a257_0x3b830e(0x11a),'hidden':!![]},{'name':a257_0x3b830e(0x1a5),'meowKey':a257_0x3b830e(0x150),'type':'string','description':a257_0x3b830e(0x162),'hidden':!![]},{'name':a257_0x3b830e(0x152),'meowKey':a257_0x3b830e(0x152),'type':'string','description':a257_0x3b830e(0x162),'hidden':!![]},{'name':a257_0x3b830e(0x17d),'meowKey':a257_0x3b830e(0x17d),'type':'string','description':a257_0x3b830e(0x173),'hidden':!![]},{'name':'code','meowKey':a257_0x3b830e(0x138),'type':'string','description':a257_0x3b830e(0x1a2),'hidden':!![]},{'name':a257_0x3b830e(0x11e),'meowKey':a257_0x3b830e(0x11e),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x194),'hidden':!![]},{'name':a257_0x3b830e(0x12e),'meowKey':a257_0x3b830e(0x12e),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x1a7),'hidden':!![]},{'name':a257_0x3b830e(0x169),'meowKey':a257_0x3b830e(0x169),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x13d),'hidden':!![]},{'name':a257_0x3b830e(0x119),'meowKey':a257_0x3b830e(0x119),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x139),'hidden':!![]},{'name':a257_0x3b830e(0x18d),'meowKey':a257_0x3b830e(0x117),'type':a257_0x3b830e(0x182),'description':a257_0x3b830e(0x183),'hidden':!![]},{'name':a257_0x3b830e(0x146),'meowKey':a257_0x3b830e(0x146),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x14b),'hidden':!![]},{'name':a257_0x3b830e(0x163),'meowKey':a257_0x3b830e(0x163),'type':a257_0x3b830e(0x132),'description':'Config\x20value','hidden':!![]},{'name':'tags','meowKey':a257_0x3b830e(0x161),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x11c),'hidden':!![]},{'name':a257_0x3b830e(0x164),'meowKey':'stdin','type':a257_0x3b830e(0x182),'description':a257_0x3b830e(0x1ad),'hidden':!![]},{'name':a257_0x3b830e(0x118),'meowKey':a257_0x3b830e(0x165),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x147),'hidden':!![]},{'name':a257_0x3b830e(0x153),'meowKey':a257_0x3b830e(0x153),'type':'boolean','description':a257_0x3b830e(0x196),'hidden':!![]},{'name':a257_0x3b830e(0x1a9),'meowKey':a257_0x3b830e(0x1a9),'type':a257_0x3b830e(0x182),'description':a257_0x3b830e(0x18a),'hidden':!![]},{'name':a257_0x3b830e(0x16b),'meowKey':a257_0x3b830e(0x16b),'type':a257_0x3b830e(0x182),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a257_0x3b830e(0x15c),'meowKey':a257_0x3b830e(0x15c),'type':a257_0x3b830e(0x182),'description':'Use\x20remote','hidden':!![]},{'name':a257_0x3b830e(0x18b),'meowKey':a257_0x3b830e(0x18b),'type':a257_0x3b830e(0x182),'description':a257_0x3b830e(0x122),'hidden':!![]},{'name':a257_0x3b830e(0x192),'meowKey':a257_0x3b830e(0x143),'type':a257_0x3b830e(0x132),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a257_0x3b830e(0x19f),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x1ae),'hidden':!![]},{'name':'parent-id','meowKey':a257_0x3b830e(0x155),'type':a257_0x3b830e(0x132),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a257_0x3b830e(0x167),'meowKey':'sort','type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x12b),'hidden':!![]},{'name':a257_0x3b830e(0x197),'meowKey':a257_0x3b830e(0x13b),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x1a0),'hidden':!![]},{'name':a257_0x3b830e(0x130),'meowKey':a257_0x3b830e(0x148),'type':a257_0x3b830e(0x132),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a257_0x3b830e(0x187),'meowKey':a257_0x3b830e(0x172),'type':a257_0x3b830e(0x132),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a257_0x3b830e(0x16e),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x18f),'hidden':!![]},{'name':a257_0x3b830e(0x188),'meowKey':a257_0x3b830e(0x1ac),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x186),'hidden':!![]},{'name':a257_0x3b830e(0x145),'meowKey':a257_0x3b830e(0x160),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x13d),'hidden':!![]},{'name':a257_0x3b830e(0x193),'meowKey':a257_0x3b830e(0x11f),'type':'string','description':a257_0x3b830e(0x17b),'hidden':!![]},{'name':a257_0x3b830e(0x11d),'meowKey':a257_0x3b830e(0x11d),'type':a257_0x3b830e(0x132),'description':a257_0x3b830e(0x15e),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a257_0x3b830e(0x175),a257_0x3b830e(0x159),a257_0x3b830e(0x17e),a257_0x3b830e(0x1a1),'jq',a257_0x3b830e(0x12c),a257_0x3b830e(0x15f),'non-interactive','ci']);export function buildMeowFlags(){const _0x2016c7=a257_0x3b830e;return Object['fromEntries'](GLOBAL_FLAGS[_0x2016c7(0x191)](_0x1cf265=>[_0x1cf265[_0x2016c7(0x190)],{'type':_0x1cf265[_0x2016c7(0x176)]}]));}
|
|
1
|
+
const a257_0xc6bb91=a257_0x2260;(function(_0x5361d4,_0x31a3bf){const _0x466c7f=a257_0x2260,_0x34e3ea=_0x5361d4();while(!![]){try{const _0x3cc42c=-parseInt(_0x466c7f(0x1d3))/0x1+parseInt(_0x466c7f(0x188))/0x2*(-parseInt(_0x466c7f(0x1a9))/0x3)+parseInt(_0x466c7f(0x1a2))/0x4+parseInt(_0x466c7f(0x1f8))/0x5+-parseInt(_0x466c7f(0x205))/0x6+parseInt(_0x466c7f(0x1fb))/0x7+parseInt(_0x466c7f(0x1ff))/0x8*(parseInt(_0x466c7f(0x1ce))/0x9);if(_0x3cc42c===_0x31a3bf)break;else _0x34e3ea['push'](_0x34e3ea['shift']());}catch(_0x139a4e){_0x34e3ea['push'](_0x34e3ea['shift']());}}}(a257_0x1096,0xd2bce));export const CLI_BIN_NAME=a257_0xc6bb91(0x1c0);export const CLI_DISPLAY_NAME=a257_0xc6bb91(0x1fa);function a257_0x2260(_0x5bd636,_0x536577){_0x5bd636=_0x5bd636-0x183;const _0x10969c=a257_0x1096();let _0x2260d0=_0x10969c[_0x5bd636];return _0x2260d0;}export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a257_0xc6bb91(0x1d6),'meowKey':a257_0xc6bb91(0x1d6),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x193),'hint':a257_0xc6bb91(0x1af)},{'name':a257_0xc6bb91(0x1e5),'meowKey':a257_0xc6bb91(0x1e5),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1a1),'hint':a257_0xc6bb91(0x1bc)},{'name':'env','meowKey':a257_0xc6bb91(0x1ae),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1b9),'hint':'production\x20|\x20daily'},{'name':a257_0xc6bb91(0x1f2),'meowKey':'format','type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1e3),'hint':a257_0xc6bb91(0x1b4)},{'name':'jq','meowKey':'jq','type':a257_0xc6bb91(0x1e7),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a257_0xc6bb91(0x199)},{'name':'dry-run','meowKey':a257_0xc6bb91(0x20c),'type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x1b1)},{'name':a257_0xc6bb91(0x20e),'meowKey':a257_0xc6bb91(0x20e),'type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x209)},{'name':'non-interactive','meowKey':'nonInteractive','type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x1aa)},{'name':a257_0xc6bb91(0x200),'meowKey':a257_0xc6bb91(0x200),'type':a257_0xc6bb91(0x1a6),'description':'Use\x20global\x20config\x20scope'},{'name':a257_0xc6bb91(0x1f5),'meowKey':a257_0xc6bb91(0x1f5),'type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x1a7)},{'name':'ci','meowKey':'ci','type':'boolean','description':a257_0xc6bb91(0x1df),'hidden':!![]},{'name':a257_0xc6bb91(0x1c6),'meowKey':a257_0xc6bb91(0x1c6),'type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x1fc)},{'name':a257_0xc6bb91(0x1a4),'meowKey':'locale','type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1c9),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':'name','meowKey':'name','type':'string','description':a257_0xc6bb91(0x1a5),'hidden':!![]},{'name':a257_0xc6bb91(0x1bf),'meowKey':a257_0xc6bb91(0x1bf),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1dd),'hidden':!![]},{'name':a257_0xc6bb91(0x208),'meowKey':a257_0xc6bb91(0x208),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x187),'hidden':!![]},{'name':a257_0xc6bb91(0x1cd),'meowKey':a257_0xc6bb91(0x1cd),'type':a257_0xc6bb91(0x1e7),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':'clear','meowKey':'clear','type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x184),'hidden':!![]},{'name':a257_0xc6bb91(0x1d7),'meowKey':a257_0xc6bb91(0x1d7),'type':'boolean','description':a257_0xc6bb91(0x1cc),'hidden':!![]},{'name':'output','meowKey':a257_0xc6bb91(0x1cb),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1b8),'hidden':!![]},{'name':a257_0xc6bb91(0x19c),'meowKey':a257_0xc6bb91(0x19c),'type':a257_0xc6bb91(0x1e7),'description':'JSON\x20params','hidden':!![]},{'name':a257_0xc6bb91(0x1d4),'meowKey':'datasetcode','type':'string','description':a257_0xc6bb91(0x19a),'hidden':!![]},{'name':a257_0xc6bb91(0x201),'meowKey':a257_0xc6bb91(0x201),'type':'boolean','description':a257_0xc6bb91(0x211),'hidden':!![]},{'name':a257_0xc6bb91(0x197),'meowKey':a257_0xc6bb91(0x183),'type':'boolean','description':a257_0xc6bb91(0x1e0),'hidden':!![]},{'name':'id','meowKey':'id','type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1b5),'hidden':!![]},{'name':a257_0xc6bb91(0x1db),'meowKey':a257_0xc6bb91(0x1db),'type':a257_0xc6bb91(0x1e7),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a257_0xc6bb91(0x202),'type':a257_0xc6bb91(0x1e7),'description':'File\x20path','hidden':!![]},{'name':a257_0xc6bb91(0x186),'meowKey':a257_0xc6bb91(0x194),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1e2),'hidden':!![]},{'name':'flow-name','meowKey':'flowName','type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1e1),'hidden':!![]},{'name':a257_0xc6bb91(0x198),'meowKey':a257_0xc6bb91(0x189),'type':'string','description':'Flow\x20status','hidden':!![]},{'name':a257_0xc6bb91(0x1b2),'meowKey':a257_0xc6bb91(0x1ca),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1cf),'hidden':!![]},{'name':a257_0xc6bb91(0x1ba),'meowKey':'datasetCode','type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x19a),'hidden':!![]},{'name':a257_0xc6bb91(0x207),'meowKey':a257_0xc6bb91(0x207),'type':a257_0xc6bb91(0x1e7),'description':'SQL\x20code','hidden':!![]},{'name':a257_0xc6bb91(0x1f6),'meowKey':a257_0xc6bb91(0x19d),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1ee),'hidden':!![]},{'name':a257_0xc6bb91(0x206),'meowKey':'sqlname','type':'string','description':a257_0xc6bb91(0x1ee),'hidden':!![]},{'name':'db-id','meowKey':a257_0xc6bb91(0x1c4),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1ec),'hidden':!![]},{'name':a257_0xc6bb91(0x1f9),'meowKey':'dbid','type':a257_0xc6bb91(0x1e7),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a257_0xc6bb91(0x1c2),'hidden':!![]},{'name':'description-file','meowKey':a257_0xc6bb91(0x20d),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1f1),'hidden':!![]},{'name':a257_0xc6bb91(0x18d),'meowKey':a257_0xc6bb91(0x18d),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1be),'hidden':!![]},{'name':'page-size','meowKey':a257_0xc6bb91(0x1d8),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1c5),'hidden':!![]},{'name':a257_0xc6bb91(0x1d9),'meowKey':a257_0xc6bb91(0x1d9),'type':a257_0xc6bb91(0x1e7),'description':'Page\x20size','hidden':!![]},{'name':a257_0xc6bb91(0x18f),'meowKey':a257_0xc6bb91(0x18f),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1c7),'hidden':!![]},{'name':a257_0xc6bb91(0x1bd),'meowKey':a257_0xc6bb91(0x1bd),'type':'string','description':'Code\x20filter','hidden':!![]},{'name':a257_0xc6bb91(0x1bb),'meowKey':a257_0xc6bb91(0x1bb),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1d1),'hidden':!![]},{'name':a257_0xc6bb91(0x18a),'meowKey':a257_0xc6bb91(0x18a),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1de),'hidden':!![]},{'name':'operation','meowKey':a257_0xc6bb91(0x20f),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x204),'hidden':!![]},{'name':a257_0xc6bb91(0x19b),'meowKey':a257_0xc6bb91(0x19b),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1b3),'hidden':!![]},{'name':a257_0xc6bb91(0x18c),'meowKey':'skipImports','type':a257_0xc6bb91(0x1a6),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':'key','meowKey':a257_0xc6bb91(0x1a3),'type':a257_0xc6bb91(0x1e7),'description':'Config\x20key','hidden':!![]},{'name':a257_0xc6bb91(0x1e9),'meowKey':a257_0xc6bb91(0x1e9),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1f7),'hidden':!![]},{'name':a257_0xc6bb91(0x191),'meowKey':a257_0xc6bb91(0x191),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1e4),'hidden':!![]},{'name':a257_0xc6bb91(0x210),'meowKey':a257_0xc6bb91(0x210),'type':'boolean','description':a257_0xc6bb91(0x203),'hidden':!![]},{'name':a257_0xc6bb91(0x196),'meowKey':'fromEnv','type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1ef),'hidden':!![]},{'name':'reveal','meowKey':a257_0xc6bb91(0x1eb),'type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x1dc),'hidden':!![]},{'name':a257_0xc6bb91(0x1a8),'meowKey':'force','type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x1d2),'hidden':!![]},{'name':a257_0xc6bb91(0x1a0),'meowKey':'confirm','type':a257_0xc6bb91(0x1a6),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a257_0xc6bb91(0x1c8),'meowKey':a257_0xc6bb91(0x1c8),'type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x212),'hidden':!![]},{'name':a257_0xc6bb91(0x20b),'meowKey':'verbose','type':a257_0xc6bb91(0x1a6),'description':a257_0xc6bb91(0x192),'hidden':!![]},{'name':'expected-count','meowKey':a257_0xc6bb91(0x1f0),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a257_0xc6bb91(0x1ad),'meowKey':a257_0xc6bb91(0x1ad),'type':a257_0xc6bb91(0x1e7),'description':'Menu\x20label','hidden':!![]},{'name':a257_0xc6bb91(0x1ea),'meowKey':a257_0xc6bb91(0x185),'type':a257_0xc6bb91(0x1e7),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':'sort','meowKey':'sort','type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1fe),'hidden':!![]},{'name':a257_0xc6bb91(0x1da),'meowKey':a257_0xc6bb91(0x18b),'type':a257_0xc6bb91(0x1e7),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':a257_0xc6bb91(0x1b6),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1ab),'hidden':!![]},{'name':'expected-children-count','meowKey':a257_0xc6bb91(0x195),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1e8),'hidden':!![]},{'name':a257_0xc6bb91(0x1f3),'meowKey':a257_0xc6bb91(0x19f),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1c3),'hidden':!![]},{'name':a257_0xc6bb91(0x1b0),'meowKey':a257_0xc6bb91(0x190),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x1c1),'hidden':!![]},{'name':a257_0xc6bb91(0x1d0),'meowKey':a257_0xc6bb91(0x19e),'type':a257_0xc6bb91(0x1e7),'description':a257_0xc6bb91(0x204),'hidden':!![]},{'name':a257_0xc6bb91(0x1fd),'meowKey':'functionNode','type':'string','description':a257_0xc6bb91(0x1d5),'hidden':!![]},{'name':a257_0xc6bb91(0x1b7),'meowKey':a257_0xc6bb91(0x1b7),'type':'string','description':a257_0xc6bb91(0x18e),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a257_0xc6bb91(0x1d6),'app','env',a257_0xc6bb91(0x1f2),'jq',a257_0xc6bb91(0x1ac),a257_0xc6bb91(0x20e),a257_0xc6bb91(0x20a),'ci']);export function buildMeowFlags(){const _0x384ec4=a257_0xc6bb91;return Object[_0x384ec4(0x1e6)](GLOBAL_FLAGS[_0x384ec4(0x1f4)](_0x479967=>[_0x479967[_0x384ec4(0x1ed)],{'type':_0x479967[_0x384ec4(0x1db)]}]));}function a257_0x1096(){const _0xb575e0=['1204401ojVKXU','Force\x20non-interactive\x20mode\x20(CI)','Expected\x20current\x20menu\x20path','dry-run','label','env','<code>','task-id','Preview\x20operation\x20without\x20executing','flow-type','Target\x20path','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','expectPath','codes','Output\x20path','Environment','dataset-code','sql','<name>','code','Page\x20number','title','rabetbase','Asynchronous\x20task\x20ID','Description','Comma-separated\x20menu\x20IDs','dbId','Page\x20size','help','Keyword\x20filter','remote','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','flowType','output','Watch\x20mode','topk','2664uiklrY','Flow\x20type','operation-type','SQL\x20string','Force\x20overwrite','587246TanVPL','datasetcode','Function\x20node','appcode','watch','pageSize','pagesize','expect-parent-id','type','Reveal\x20sensitive\x20value','Title','Schemas','Alias\x20for\x20--non-interactive','Enable\x20Backend\x20Function\x20save','Flow\x20name','Flow\x20code','Output\x20format','Tags','app','fromEntries','string','Expected\x20current\x20child\x20count','value','parent-id','reveal','DB\x20ID','meowKey','SQL\x20name','Read\x20value\x20from\x20environment\x20variable','expectedCount','Description\x20file','format','menu-ids','map','project','sql-name','Config\x20value','4123935tKeYxV','dbid','Rabetbase\x20CLI','10539410xBkwYS','Show\x20help','function-node','Menu\x20sort\x20value','12752tvaVbX','global','all','file','Read\x20value\x20from\x20stdin','Operation\x20type','396216mAepeU','sqlname','sqlcode','query','Skip\x20confirmation\x20for\x20high-risk\x20writes','non-interactive','verbose','dryRun','descriptionFile','yes','operation','stdin','Apply\x20to\x20all','Use\x20remote','enableBffSave','Clear','parentId','flow-code','Search\x20query','8vFhfDQ','flowStatus','schemas','expectParentId','skip-imports','page','Comma-separated\x20metadata\x20codes','keyword','taskId','tags','Verbose\x20output','Override\x20appcode','flowCode','expectedChildrenCount','from-env','enable-bff-save','flow-status','<expr>','Dataset\x20code','target','params','sqlName','operationType','menuIds','confirm','Select\x20app\x20profile\x20by\x20name','1280364KuoRbS','key','locale','Name','boolean','Use\x20project\x20config\x20scope','force'];a257_0x1096=function(){return _0xb575e0;};return a257_0x1096();}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a258_0x32788e=a258_0x5aa6;function a258_0x46a9(){const _0x4a42aa=['1169mdwgVa','3420136UPXBFK','42582RAHYki','527064sHBixa','compress','25hoGMBj','production','524216GORmMk','12670270lZpTfy','2126373aeNrdm','1721468ufgogT','9uuUUKa'];a258_0x46a9=function(){return _0x4a42aa;};return a258_0x46a9();}function a258_0x5aa6(_0x29e44e,_0x612191){_0x29e44e=_0x29e44e-0x16d;const _0x46a9c3=a258_0x46a9();let _0x5aa6b4=_0x46a9c3[_0x29e44e];return _0x5aa6b4;}(function(_0xcab5f4,_0x1d1bbc){const _0x4f8ce7=a258_0x5aa6,_0x5baab4=_0xcab5f4();while(!![]){try{const _0x36a0df=parseInt(_0x4f8ce7(0x16d))/0x1+parseInt(_0x4f8ce7(0x170))/0x2+parseInt(_0x4f8ce7(0x16f))/0x3+parseInt(_0x4f8ce7(0x175))/0x4*(parseInt(_0x4f8ce7(0x177))/0x5)+-parseInt(_0x4f8ce7(0x174))/0x6*(parseInt(_0x4f8ce7(0x172))/0x7)+parseInt(_0x4f8ce7(0x173))/0x8+parseInt(_0x4f8ce7(0x171))/0x9*(-parseInt(_0x4f8ce7(0x16e))/0xa);if(_0x36a0df===_0x1d1bbc)break;else _0x5baab4['push'](_0x5baab4['shift']());}catch(_0xc1e19f){_0x5baab4['push'](_0x5baab4['shift']());}}}(a258_0x46a9,0xb1b36));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a258_0x32788e(0x178),'format':a258_0x32788e(0x176),'locale':'en-US','riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare function initDomains(domains?: {
|
|
|
9
9
|
runtimeDomain?: string;
|
|
10
10
|
skillDomain?: string;
|
|
11
11
|
kbDomain?: string;
|
|
12
|
+
kbServiceDomain?: string;
|
|
13
|
+
allowOfficialKbServiceDefault?: boolean;
|
|
12
14
|
appDomain?: string;
|
|
13
15
|
localDomain?: string;
|
|
14
16
|
certificateDomain?: string;
|
|
@@ -23,6 +25,8 @@ export declare const getApiDomain: () => string;
|
|
|
23
25
|
export declare const getRuntimeDomain: () => string;
|
|
24
26
|
export declare const getSkillDomain: () => string;
|
|
25
27
|
export declare const getKbDomain: () => string;
|
|
28
|
+
/** Resolve only the dedicated KB search service; never infer it from another service. */
|
|
29
|
+
export declare const getKbServiceDomain: () => string | undefined;
|
|
26
30
|
export declare const getAppDomain: () => string;
|
|
27
31
|
export declare const getActiveRegion: () => "global" | "id" | "cn";
|
|
28
32
|
export declare const getLocalDomain: () => string | undefined;
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a259_0x168689=a259_0x51c5;(function(_0x43c5fe,_0x2001cd){const _0x5bb064=a259_0x51c5,_0x1e24b8=_0x43c5fe();while(!![]){try{const _0x534d1f=parseInt(_0x5bb064(0x1dc))/0x1+parseInt(_0x5bb064(0x1f3))/0x2*(parseInt(_0x5bb064(0x1ef))/0x3)+parseInt(_0x5bb064(0x1e1))/0x4+-parseInt(_0x5bb064(0x1e4))/0x5+parseInt(_0x5bb064(0x1ee))/0x6+-parseInt(_0x5bb064(0x1e9))/0x7*(-parseInt(_0x5bb064(0x1ea))/0x8)+parseInt(_0x5bb064(0x1e3))/0x9*(-parseInt(_0x5bb064(0x1e8))/0xa);if(_0x534d1f===_0x2001cd)break;else _0x1e24b8['push'](_0x1e24b8['shift']());}catch(_0x2dad6c){_0x1e24b8['push'](_0x1e24b8['shift']());}}}(a259_0x1f0b,0x3bf8f));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x56ee73=a259_0x51c5,_0x2e7b9a=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x2e7b9a['serviceDomains'][_0x56ee73(0x1de)]:_0x2e7b9a[_0x56ee73(0x1e0)][_0x56ee73(0x1f2)]??_0x2e7b9a[_0x56ee73(0x1e0)][_0x56ee73(0x1de)];}export function initDomains(_0x3f99a3){const _0x3d503a=a259_0x51c5;customApiDomain=_0x3f99a3?.['apiDomain'],customUserDomain=_0x3f99a3?.[_0x3d503a(0x1dd)],customRuntimeDomain=_0x3f99a3?.[_0x3d503a(0x1e6)],customSkillDomain=_0x3f99a3?.[_0x3d503a(0x1d9)],customKbDomain=_0x3f99a3?.[_0x3d503a(0x1f4)],customKbServiceDomain=_0x3f99a3?.[_0x3d503a(0x1e7)],allowOfficialKbServiceDefault=_0x3f99a3?.[_0x3d503a(0x1e5)]??!![],customAppDomain=_0x3f99a3?.[_0x3d503a(0x1da)],customLocalDomain=_0x3f99a3?.[_0x3d503a(0x1df)],customCertificateDomain=_0x3f99a3?.[_0x3d503a(0x1d8)],customCdn=_0x3f99a3?.[_0x3d503a(0x1f1)],activeRegion=_0x3f99a3?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a259_0x168689(0x1f0)];function a259_0x51c5(_0xb52c8,_0x49d21f){_0xb52c8=_0xb52c8-0x1d8;const _0x1f0b36=a259_0x1f0b();let _0x51c580=_0x1f0b36[_0xb52c8];return _0x51c580;}export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];function a259_0x1f0b(){const _0x501226=['userDomain','production','localDomain','serviceDomains','901088xxTFPu','/web-app/app/','9525051dHYRuE','2368600naUXRc','allowOfficialKbServiceDefault','runtimeDomain','kbServiceDomain','10MMvhGF','51226TZhZXA','320IgNXzs','kbService','hostname','trim','2489526bBPfRy','3uWqOOB','user','cdn','daily','781224DrtCvK','kbDomain','certificateDomain','skillDomain','appDomain','origin','454181goSyuu'];a259_0x1f0b=function(){return _0x501226;};return a259_0x1f0b();}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x26f36f=a259_0x168689;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x26f36f(0x1eb)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x34ab9d=>{const _0x21a605=a259_0x168689,_0x33e208=encodeURIComponent(_0x34ab9d[_0x21a605(0x1ed)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x33e208:getAppDomain()+_0x21a605(0x1e2)+_0x33e208;};export const getPublishedAppDomain=_0x48ef64=>{const _0x1f1d13=a259_0x168689,_0x2fc17a=new URL(getAppDomain());return _0x2fc17a[_0x1f1d13(0x1ec)]=_0x48ef64['trim']()+'.'+_0x2fc17a[_0x1f1d13(0x1ec)],_0x2fc17a[_0x1f1d13(0x1db)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a260_0x423e5a=a260_0x5964;(function(_0x4b0f4f,_0x67c9fd){const _0x507814=a260_0x5964,_0x4b92a1=_0x4b0f4f();while(!![]){try{const _0x270659=parseInt(_0x507814(0x1da))/0x1*(-parseInt(_0x507814(0x1db))/0x2)+-parseInt(_0x507814(0x1d3))/0x3*(-parseInt(_0x507814(0x1d6))/0x4)+-parseInt(_0x507814(0x1d8))/0x5+parseInt(_0x507814(0x1e0))/0x6*(-parseInt(_0x507814(0x1d9))/0x7)+-parseInt(_0x507814(0x1d4))/0x8+-parseInt(_0x507814(0x1df))/0x9+parseInt(_0x507814(0x1dd))/0xa*(parseInt(_0x507814(0x1e1))/0xb);if(_0x270659===_0x67c9fd)break;else _0x4b92a1['push'](_0x4b92a1['shift']());}catch(_0x57814d){_0x4b92a1['push'](_0x4b92a1['shift']());}}}(a260_0x1f47,0xd17af));export const RABETBASE_ENV_VALUES=[a260_0x423e5a(0x1dc),'daily'];export function normalizeEnv(_0x146d9d){const _0x339766=a260_0x423e5a;return _0x146d9d===_0x339766(0x1de)?_0x339766(0x1dc):_0x146d9d;}export function isProduction(_0x366c57){return normalizeEnv(_0x366c57)==='production';}export function isDaily(_0x1a4ed5){const _0x40503e=a260_0x423e5a;return normalizeEnv(_0x1a4ed5)===_0x40503e(0x1d5);}export function isDev(_0x8dd337){const _0x4a421b=a260_0x423e5a,_0x3ff04e=normalizeEnv(_0x8dd337);return _0x3ff04e==='development'||_0x3ff04e===_0x4a421b(0x1d7);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a260_0x423e5a(0x1dc));function a260_0x5964(_0x1cd79c,_0x5b0bf1){_0x1cd79c=_0x1cd79c-0x1d3;const _0x1f4772=a260_0x1f47();let _0x596467=_0x1f4772[_0x1cd79c];return _0x596467;}export function getEnv(){return env;}function a260_0x1f47(){const _0x10177f=['23712FaBApw','33451xhZNdP','2781PDgjZL','4005984wzatqv','daily','3448qtNIvi','dev','2340575QdZLUm','2618brhmKl','2sVlyzq','1387146iMmVug','production','13550MWooRe','online','2047869SpqIDH'];a260_0x1f47=function(){return _0x10177f;};return a260_0x1f47();}export function initEnv(_0x215bf1){env=normalizeEnv(_0x215bf1);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a261_0x3502b6=a261_0xe510;function a261_0xe510(_0x1b345b,_0xb17bcb){_0x1b345b=_0x1b345b-0x1e9;const _0xcf8a69=a261_0xcf8a();let _0xe510d=_0xcf8a69[_0x1b345b];return _0xe510d;}(function(_0x22fd3a,_0xd7c348){const _0x556f71=a261_0xe510,_0x2ad751=_0x22fd3a();while(!![]){try{const _0x178dc7=parseInt(_0x556f71(0x1ec))/0x1+parseInt(_0x556f71(0x1f1))/0x2*(-parseInt(_0x556f71(0x1ef))/0x3)+-parseInt(_0x556f71(0x1eb))/0x4+-parseInt(_0x556f71(0x1e9))/0x5+-parseInt(_0x556f71(0x1ee))/0x6+parseInt(_0x556f71(0x1ed))/0x7+parseInt(_0x556f71(0x1f0))/0x8;if(_0x178dc7===_0xd7c348)break;else _0x2ad751['push'](_0x2ad751['shift']());}catch(_0x3bc136){_0x2ad751['push'](_0x2ad751['shift']());}}}(a261_0xcf8a,0xdaaab));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a261_0x3502b6(0x1ea),'pretty','compress'];function a261_0xcf8a(){const _0x50983e=['1226235twxIHO','6014771WpLIgC','1447812ApakMe','3TCdMFU','8868808yNJzSV','2028316hVtobC','884735UKduTP','json','3464092tztPmp'];a261_0xcf8a=function(){return _0x50983e;};return a261_0xcf8a();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a262_0x4a74(_0x5ea650,_0x5ecf10){_0x5ea650=_0x5ea650-0x1eb;const _0x54f4c2=a262_0x54f4();let _0x4a7473=_0x54f4c2[_0x5ea650];return _0x4a7473;}function a262_0x54f4(){const _0x1b8077=['15864FYQhjB','850215YtLdek','1133211PkUOif','4LOXdBc','1804326IUWxPh','549lWsbBI','20DimjGH','2240220WQgbam','2238412qvSzMH','18152NYROPs','7NpSMFl','41VwnpSg'];a262_0x54f4=function(){return _0x1b8077;};return a262_0x54f4();}(function(_0x4b7f7a,_0x2031b6){const _0x5e303e=a262_0x4a74,_0x554afc=_0x4b7f7a();while(!![]){try{const _0x5a81e2=-parseInt(_0x5e303e(0x1f5))/0x1*(parseInt(_0x5e303e(0x1f6))/0x2)+parseInt(_0x5e303e(0x1ec))/0x3*(parseInt(_0x5e303e(0x1ed))/0x4)+parseInt(_0x5e303e(0x1eb))/0x5+-parseInt(_0x5e303e(0x1ee))/0x6*(parseInt(_0x5e303e(0x1f4))/0x7)+parseInt(_0x5e303e(0x1f3))/0x8*(parseInt(_0x5e303e(0x1ef))/0x9)+-parseInt(_0x5e303e(0x1f0))/0xa*(-parseInt(_0x5e303e(0x1f2))/0xb)+-parseInt(_0x5e303e(0x1f1))/0xc;if(_0x5a81e2===_0x2031b6)break;else _0x554afc['push'](_0x554afc['shift']());}catch(_0x46de85){_0x554afc['push'](_0x554afc['shift']());}}}(a262_0x54f4,0x447eb));export const DEFAULT_API_DIR='./src/api';
|
package/lib/constant/region.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Every official routing profile known to this CLI, including reserved profiles. */
|
|
2
2
|
export declare const LOVRABET_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
3
3
|
/** Regions currently available for new CLI configuration. */
|
|
4
|
-
export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id"];
|
|
4
|
+
export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
5
5
|
export type LovrabetRegion = (typeof LOVRABET_REGION_VALUES)[number];
|
|
6
6
|
export declare const DEFAULT_LOVRABET_REGION: LovrabetRegion;
|
|
7
7
|
export declare function isLovrabetRegion(value: unknown): value is LovrabetRegion;
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5c23f6,_0x160132){const _0x35520a=a263_0x112b,_0x577284=_0x5c23f6();while(!![]){try{const _0xceafe6=-parseInt(_0x35520a(0x166))/0x1+parseInt(_0x35520a(0x169))/0x2*(parseInt(_0x35520a(0x162))/0x3)+-parseInt(_0x35520a(0x161))/0x4+parseInt(_0x35520a(0x16a))/0x5*(parseInt(_0x35520a(0x168))/0x6)+-parseInt(_0x35520a(0x165))/0x7+-parseInt(_0x35520a(0x167))/0x8+parseInt(_0x35520a(0x163))/0x9;if(_0xceafe6===_0x160132)break;else _0x577284['push'](_0x577284['shift']());}catch(_0x37768a){_0x577284['push'](_0x577284['shift']());}}}(a263_0xbeb3,0x6a04d));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a263_0xbeb3(){const _0x3f9768=['6qRaBap','46OxDemX','1866895PueEFm','string','1892416rlWpQf','74823pklpqo','10704825LwmkTy','includes','1388212HHiIdA','716537HWIbdn','2513896npBPfo'];a263_0xbeb3=function(){return _0x3f9768;};return a263_0xbeb3();}function a263_0x112b(_0x45cadf,_0x4eb3c7){_0x45cadf=_0x45cadf-0x161;const _0xbeb321=a263_0xbeb3();let _0x112b8=_0xbeb321[_0x45cadf];return _0x112b8;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x2f4f90){const _0x38bfbc=a263_0x112b;return typeof _0x2f4f90===_0x38bfbc(0x16b)&&LOVRABET_REGION_VALUES[_0x38bfbc(0x164)](_0x2f4f90);}export function isEnabledLovrabetRegion(_0x1ef149){const _0x54c3e2=a263_0x112b;return typeof _0x1ef149===_0x54c3e2(0x16b)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x1ef149);}export function normalizeLovrabetRegion(_0x4c122f){const _0x4d667e=a263_0x112b;if(typeof _0x4c122f!==_0x4d667e(0x16b))return undefined;const _0xb31827=REGION_ALIASES[_0x4c122f]??_0x4c122f;return isLovrabetRegion(_0xb31827)?_0xb31827:undefined;}export function isInvalidLovrabetRegion(_0x1566aa){return _0x1566aa!==undefined&&_0x1566aa!==null&&_0x1566aa!==''&&normalizeLovrabetRegion(_0x1566aa)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a264_0x5277(_0x21927a,_0x4e911e){_0x21927a=_0x21927a-0x1ce;const _0x56a037=a264_0x56a0();let _0x527786=_0x56a037[_0x21927a];return _0x527786;}const a264_0x4a1084=a264_0x5277;(function(_0x54c763,_0x511cd0){const _0x2b9619=a264_0x5277,_0x1acd4c=_0x54c763();while(!![]){try{const _0x50a609=-parseInt(_0x2b9619(0x1d9))/0x1*(parseInt(_0x2b9619(0x1d7))/0x2)+parseInt(_0x2b9619(0x1d1))/0x3+-parseInt(_0x2b9619(0x1d4))/0x4+parseInt(_0x2b9619(0x1d2))/0x5*(parseInt(_0x2b9619(0x1ce))/0x6)+-parseInt(_0x2b9619(0x1cf))/0x7+parseInt(_0x2b9619(0x1d5))/0x8*(parseInt(_0x2b9619(0x1d3))/0x9)+-parseInt(_0x2b9619(0x1d6))/0xa;if(_0x50a609===_0x511cd0)break;else _0x1acd4c['push'](_0x1acd4c['shift']());}catch(_0x2262f8){_0x1acd4c['push'](_0x1acd4c['shift']());}}}(a264_0x56a0,0x42c1b));function a264_0x56a0(){const _0x5d04bd=['read','167386YlVJsJ','18270bEltHi','3221043rKjrzd','high-risk-write','1415409iHWoXj','50ibzbgD','432XAjaPr','189260Bljbux','80552Mmcfue','372800SfhjAo','2rkEqGQ'];a264_0x56a0=function(){return _0x5d04bd;};return a264_0x56a0();}export const RISK_LEVEL_VALUES=[a264_0x4a1084(0x1d8),'write',a264_0x4a1084(0x1d0)];
|
|
@@ -6,6 +6,7 @@ export interface LovrabetServiceDomains {
|
|
|
6
6
|
readonly runtime: string;
|
|
7
7
|
readonly skill: string;
|
|
8
8
|
readonly kb: string;
|
|
9
|
+
readonly kbService?: string;
|
|
9
10
|
readonly app: string;
|
|
10
11
|
}
|
|
11
12
|
export interface OfficialRoutingProfile {
|
|
@@ -37,6 +38,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
37
38
|
readonly runtime: "https://runtime.lovrabet.com";
|
|
38
39
|
readonly skill: "https://skills.lovrabet.com";
|
|
39
40
|
readonly kb: "https://api.lovrabet.com";
|
|
41
|
+
readonly kbService: "https://kb-service.lovrabet.com";
|
|
40
42
|
readonly app: "https://app.lovrabet.com";
|
|
41
43
|
};
|
|
42
44
|
readonly daily: {
|
|
@@ -45,6 +47,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
45
47
|
readonly runtime: "https://daily-runtime.lovrabet.com";
|
|
46
48
|
readonly skill: "https://skills-daily.lovrabet.com";
|
|
47
49
|
readonly kb: "https://daily-api.lovrabet.com";
|
|
50
|
+
readonly kbService: "https://kb-service-daily.lovrabet.com";
|
|
48
51
|
readonly app: "https://daily.lovrabet.com";
|
|
49
52
|
};
|
|
50
53
|
};
|
|
@@ -67,6 +70,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
67
70
|
readonly runtime: "https://runtime.lovrabet.id";
|
|
68
71
|
readonly skill: "https://skills.lovrabet.id";
|
|
69
72
|
readonly kb: "https://api.lovrabet.id";
|
|
73
|
+
readonly kbService: "https://kb-service.lovrabet.id";
|
|
70
74
|
readonly app: "https://app.lovrabet.id";
|
|
71
75
|
};
|
|
72
76
|
};
|
|
@@ -79,7 +83,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
79
83
|
};
|
|
80
84
|
};
|
|
81
85
|
readonly global: {
|
|
82
|
-
readonly enabled:
|
|
86
|
+
readonly enabled: true;
|
|
83
87
|
readonly label: "Global";
|
|
84
88
|
readonly aliases: readonly [];
|
|
85
89
|
readonly serviceDomains: {
|
|
@@ -91,9 +95,18 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
91
95
|
readonly kb: "https://api.lovrabet.ai";
|
|
92
96
|
readonly app: "https://app.lovrabet.ai";
|
|
93
97
|
};
|
|
98
|
+
readonly daily: {
|
|
99
|
+
readonly user: "https://user-daily.lovrabet.ai";
|
|
100
|
+
readonly api: "https://daily-api.lovrabet.ai";
|
|
101
|
+
readonly runtime: "https://daily-runtime.lovrabet.ai";
|
|
102
|
+
readonly skill: "https://skills-daily.lovrabet.ai";
|
|
103
|
+
readonly kb: "https://daily-api.lovrabet.ai";
|
|
104
|
+
readonly app: "https://daily.lovrabet.ai";
|
|
105
|
+
};
|
|
94
106
|
};
|
|
95
107
|
readonly cdn: {
|
|
96
108
|
readonly libraries: "https://cdnjs.cloudflare.com/ajax/libs";
|
|
109
|
+
readonly lovrabet: "https://g.lovrabet.ai";
|
|
97
110
|
};
|
|
98
111
|
readonly local: {
|
|
99
112
|
readonly origin: "https://dev.lovrabet.ai";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x35b0b3,_0x22a029){const _0x4312d0=a265_0x4045,_0x51f161=_0x35b0b3();while(!![]){try{const _0x23c7a2=parseInt(_0x4312d0(0x11d))/0x1+parseInt(_0x4312d0(0x121))/0x2+-parseInt(_0x4312d0(0x120))/0x3*(parseInt(_0x4312d0(0x117))/0x4)+-parseInt(_0x4312d0(0x11c))/0x5*(parseInt(_0x4312d0(0x118))/0x6)+parseInt(_0x4312d0(0x11f))/0x7+parseInt(_0x4312d0(0x11b))/0x8+parseInt(_0x4312d0(0x11a))/0x9;if(_0x23c7a2===_0x22a029)break;else _0x51f161['push'](_0x51f161['shift']());}catch(_0x4e14fd){_0x51f161['push'](_0x51f161['shift']());}}}(a265_0x4831,0xf1a6d));import{OFFICIAL_ROUTING_PROFILES as a265_0x25a97d,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a265_0x25a97d;export{ROUTING_CATALOG_DIGEST};function a265_0x4831(){const _0xfa338f=['361039pGrvNb','1731ACzXAI','2803544FIKJoL','13316lGQCyp','96xUmvgi','lovrabet','8740827VpakyV','9963536lqflCs','364595yNqOip','407348LjQNOz','libraries'];a265_0x4831=function(){return _0xfa338f;};return a265_0x4831();}export function getOfficialRoutingProfile(_0x514369){return OFFICIAL_ROUTING_PROFILES[_0x514369];}function a265_0x4045(_0x16b524,_0x19b6ef){_0x16b524=_0x16b524-0x117;const _0x4831e1=a265_0x4831();let _0x404556=_0x4831e1[_0x16b524];return _0x404556;}export function getOfficialRoutingCdn(_0x52fa12){const _0x28d06e=a265_0x4045,_0x76a2d2=getOfficialRoutingProfile(_0x52fa12)['cdn'];if(!_0x76a2d2[_0x28d06e(0x119)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x52fa12+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x76a2d2[_0x28d06e(0x11e)],'lovrabet':_0x76a2d2[_0x28d06e(0x119)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x1044a6,_0x3c3afb){const _0x33b717=a266_0x3271,_0x43e9cb=_0x1044a6();while(!![]){try{const _0x1a2e3c=-parseInt(_0x33b717(0x1e3))/0x1*(parseInt(_0x33b717(0x1ec))/0x2)+parseInt(_0x33b717(0x1e5))/0x3+-parseInt(_0x33b717(0x1d7))/0x4+parseInt(_0x33b717(0x1e9))/0x5*(-parseInt(_0x33b717(0x1d6))/0x6)+-parseInt(_0x33b717(0x1f1))/0x7+parseInt(_0x33b717(0x1cf))/0x8+parseInt(_0x33b717(0x1d8))/0x9;if(_0x1a2e3c===_0x3c3afb)break;else _0x43e9cb['push'](_0x43e9cb['shift']());}catch(_0x4069da){_0x43e9cb['push'](_0x43e9cb['shift']());}}}(a266_0x3f14,0x3c578));function a266_0x3f14(){const _0x3ccbfd=['COOKIE','high-risk-write','read','VERBOSE','appcode','cookie','54fHrdNV','1547008ISpKJx','11502261nOeMao','ENV','defaultApp','apiDir','ACCESS_KEY','length','entries','APP','projectPath','region','PAGE_SIZE','127762uPYHLZ','accessKey','357132FfkbtV','riskLevel','trim','write','115755UoXBpv','apps','source','4zczHpU','env','RISK_LEVEL','string','format','3276406xlLnWP','projectConfig','value','daily','keys','locale','true','pageSize','1350240HFKUXo'];a266_0x3f14=function(){return _0x3ccbfd;};return a266_0x3f14();}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(_0x29885b){const _0x1d0ce7=a266_0x3271;return typeof _0x29885b===_0x1d0ce7(0x1ef)&&_0x29885b[_0x1d0ce7(0x1e7)]()?_0x29885b['trim']():undefined;}function appProfiles(_0x1d0ee3){const _0xb8bbf9=a266_0x3271;return _0x1d0ee3[_0xb8bbf9(0x1ea)]&&typeof _0x1d0ee3[_0xb8bbf9(0x1ea)]==='object'?_0x1d0ee3[_0xb8bbf9(0x1ea)]:{};}function resolveDefaultAppName(_0x2aa24a){const _0x5d8b2c=a266_0x3271,_0x1ee94a=stringConfigValue(_0x2aa24a[_0x5d8b2c(0x1da)]);if(_0x1ee94a)return _0x1ee94a;const _0x52ee1e=Object[_0x5d8b2c(0x1cb)](appProfiles(_0x2aa24a));return _0x52ee1e[_0x5d8b2c(0x1dd)]===0x1?_0x52ee1e[0x0]:undefined;}function resolveTopLevelAppCode(_0x4aa4cc){const _0x2e4100=a266_0x3271;return stringConfigValue(_0x4aa4cc[_0x2e4100(0x1d4)])||stringConfigValue(_0x4aa4cc['app']);}function normalizeRiskCeiling(_0x25847a){const _0x313e2c=a266_0x3271;if(_0x25847a===undefined||_0x25847a===null)return undefined;if(_0x25847a===_0x313e2c(0x1d2)||_0x25847a===_0x313e2c(0x1e8)||_0x25847a===_0x313e2c(0x1d1))return _0x25847a;return _0x313e2c(0x1d2);}function resolveRiskCeiling(..._0x28c11d){const _0x45b925=a266_0x3271;let _0x17fd16;for(const _0x1e929c of _0x28c11d){const _0x43ea51=normalizeRiskCeiling(_0x1e929c);_0x43ea51&&(!_0x17fd16||riskLevelOrder(_0x43ea51)<riskLevelOrder(_0x17fd16))&&(_0x17fd16=_0x43ea51);}return _0x17fd16??DEFAULT_CONFIG_VALUES[_0x45b925(0x1e6)];}function a266_0x3271(_0x2ef929,_0x17e09e){_0x2ef929=_0x2ef929-0x1ca;const _0x3f1465=a266_0x3f14();let _0x32714f=_0x3f1465[_0x2ef929];return _0x32714f;}export function resolveAppConfig({raw:_0xf3dea5,flags:_0x3f6772,layers:_0x5b62f3,readEnv:_0x2421d3}){const _0x50d02f=a266_0x3271,_0x3c4bb1=_0x5b62f3?.[_0x50d02f(0x1f2)]??{},_0x1efb69=_0x5b62f3?.['globalConfig']??{},_0x51874c=!!_0x5b62f3?.[_0x50d02f(0x1e0)]||Object[_0x50d02f(0x1cb)](_0x3c4bb1)['length']>0x0,_0x4952e2=!_0x51874c,_0x53368e=_0x51874c?resolveDefaultAppName(_0x3c4bb1):undefined,_0x477936=_0x4952e2?resolveDefaultAppName(_0x1efb69):undefined,_0x566f9c=stringConfigValue(_0x3f6772['app']),_0x72d750=_0x2421d3(_0x50d02f(0x1df)),_0x1ec680={};if(_0xf3dea5[_0x50d02f(0x1ea)]&&typeof _0xf3dea5[_0x50d02f(0x1ea)]==='object')for(const [_0x117556,_0x19b6e9]of Object[_0x50d02f(0x1de)](_0xf3dea5[_0x50d02f(0x1ea)])){_0x19b6e9&&typeof _0x19b6e9==='object'&&_0x19b6e9['appcode']&&(_0x1ec680[_0x117556]=_0x19b6e9);}const _0x2f1803=_0x53368e||_0x477936||resolveDefaultAppName(_0xf3dea5),_0x535251=Object[_0x50d02f(0x1cb)](_0x1ec680)[_0x50d02f(0x1dd)]>0x0,_0x34e05e=_0x566f9c||_0x53368e||_0x72d750||_0x477936||_0x2f1803||undefined,_0x49a29d=stringConfigValue(_0x3f6772[_0x50d02f(0x1d4)]),_0x3304f4=_0x49a29d?Object[_0x50d02f(0x1de)](_0x1ec680)['filter'](([,_0x3ed32b])=>_0x3ed32b?.[_0x50d02f(0x1d4)]===_0x49a29d):[],_0x58e700=_0x566f9c&&_0x1ec680[_0x566f9c]?.['appcode']===_0x49a29d?[_0x566f9c,_0x1ec680[_0x566f9c]]:undefined,_0x3061aa=_0x58e700??(_0x3304f4[_0x50d02f(0x1dd)]===0x1?_0x3304f4[0x0]:undefined),_0x107083=_0x3061aa?.[0x0],_0x4dd441=_0x3061aa?.[0x1],_0x57f114=_0x49a29d?_0x107083:_0x34e05e;let _0x33c52d=_0x57f114&&_0x1ec680[_0x57f114]?_0x1ec680[_0x57f114]:undefined;_0x49a29d&&_0x4dd441&&(_0x33c52d=_0x4dd441);const _0x484411=_0x49a29d?_0x4dd441??_0x33c52d:_0x33c52d,_0x148c6b=!_0x566f9c&&!_0x53368e&&_0x72d750&&_0x57f114===_0x72d750,_0xf4e8b1=_0x566f9c||(_0x148c6b?_0x72d750:undefined)||(_0x49a29d?_0x107083:undefined),_0x187de3=_0x484411?.['appcode'],_0x46a74d=_0x51874c?resolveTopLevelAppCode(_0x3c4bb1):undefined,_0x4b6278=_0x4952e2?resolveTopLevelAppCode(_0x1efb69):undefined,_0xf6990f=_0x566f9c||_0x53368e?_0x187de3:undefined,_0x5b1452=!_0x566f9c&&!_0x53368e?_0x187de3:undefined,_0xd2cf9a=_0x49a29d||_0xf6990f||_0x46a74d||_0x5b1452||_0x4b6278||undefined,_0x465eee=_0x51874c?stringConfigValue(_0x3c4bb1['env']):undefined,_0x2fe12f=_0x4952e2?stringConfigValue(_0x1efb69['env']):undefined,_0x1e01f6=_0x3f6772['env']||_0x484411?.[_0x50d02f(0x1ed)]||_0x465eee||_0x2421d3(_0x50d02f(0x1d9))||_0x2fe12f||_0xf3dea5[_0x50d02f(0x1ed)]||DEFAULT_CONFIG_VALUES[_0x50d02f(0x1ed)],_0x42d887=_0x484411?.['locale']||_0xf3dea5[_0x50d02f(0x1cc)]||DEFAULT_CONFIG_VALUES[_0x50d02f(0x1cc)],_0x5ee9c9=_0x2421d3(_0x50d02f(0x1d0))||_0x484411?.[_0x50d02f(0x1d5)]||_0xf3dea5[_0x50d02f(0x1d5)]||undefined,_0x5eb812=_0x2421d3(_0x50d02f(0x1dc))||_0x484411?.[_0x50d02f(0x1e4)]||_0xf3dea5[_0x50d02f(0x1e4)]||undefined,_0xa7ab23=_0x3f6772[_0x50d02f(0x1f0)]||_0x2421d3('FORMAT')||_0x484411?.[_0x50d02f(0x1f0)]||_0xf3dea5[_0x50d02f(0x1f0)],_0x302c8e=normalizeLegacyOutputFormat(_0xa7ab23),_0x2255d7=_0x2421d3(_0x50d02f(0x1e2))||_0x484411?.['pageSize']||_0xf3dea5[_0x50d02f(0x1ce)],_0x136129=_0x2255d7?Number(_0x2255d7)||undefined:undefined,_0x25e498=_0x5b62f3?[_0x5b62f3['globalConfig'][_0x50d02f(0x1e6)],_0x5b62f3['projectConfig'][_0x50d02f(0x1e6)]]:[_0xf3dea5[_0x50d02f(0x1e6)]],_0xf9559a=resolveRiskCeiling(..._0x25e498,_0x484411?.['riskLevel']),_0x371811=resolveRiskCeiling(_0xf9559a,_0x2421d3(_0x50d02f(0x1ee))),_0x57476b=_0x2421d3(_0x50d02f(0x1d3)),_0x395da8=_0x57476b==='1'||_0x57476b===_0x50d02f(0x1cd),_0x2a22f9=_0x484411?.[_0x50d02f(0x1db)]||_0xf3dea5[_0x50d02f(0x1db)]||DEFAULT_CONFIG_VALUES[_0x50d02f(0x1db)],_0x719a42=selectConfiguredRegion({'appRegion':_0x484411?.[_0x50d02f(0x1e1)],'projectRegion':_0x51874c?_0x3c4bb1[_0x50d02f(0x1e1)]:undefined,'globalRegion':_0x51874c||_0x4952e2?_0x1efb69[_0x50d02f(0x1e1)]:undefined,'mergedRegion':_0xf3dea5[_0x50d02f(0x1e1)]}),_0x106299=normalizeLovrabetRegion(_0x719a42[_0x50d02f(0x1f3)])??DEFAULT_LOVRABET_REGION,_0x336b55=isDaily(normalizeEnv(String(_0x1e01f6)))?_0x50d02f(0x1ca):'production';return{'appCode':typeof _0xd2cf9a===_0x50d02f(0x1ef)&&_0xd2cf9a[_0x50d02f(0x1e7)]()?_0xd2cf9a[_0x50d02f(0x1e7)]():undefined,'region':_0x106299,'regionConfiguredValue':_0x719a42[_0x50d02f(0x1f3)],'regionSource':_0x719a42[_0x50d02f(0x1eb)],'env':_0x336b55,'locale':_0x42d887,'cookie':_0x5ee9c9,'accessKey':_0x5eb812,'format':_0x302c8e,'pageSize':_0x136129,'riskLevel':_0x371811,'verbose':_0x395da8,'apiDir':_0x2a22f9,'apps':_0x1ec680,'defaultApp':_0x2f1803,'currentApp':_0x535251?_0x57f114:undefined,'explicitAppName':_0xf4e8b1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a777f,_0x1419e4){const _0x163794=a267_0x399e,_0x1eb458=_0x2a777f();while(!![]){try{const _0x4319e7=parseInt(_0x163794(0x10b))/0x1+parseInt(_0x163794(0x10a))/0x2*(-parseInt(_0x163794(0x115))/0x3)+parseInt(_0x163794(0x112))/0x4*(-parseInt(_0x163794(0x10c))/0x5)+-parseInt(_0x163794(0x109))/0x6*(-parseInt(_0x163794(0x107))/0x7)+-parseInt(_0x163794(0x10d))/0x8+-parseInt(_0x163794(0x10e))/0x9*(-parseInt(_0x163794(0x113))/0xa)+-parseInt(_0x163794(0x110))/0xb*(-parseInt(_0x163794(0x111))/0xc);if(_0x4319e7===_0x1419e4)break;else _0x1eb458['push'](_0x1eb458['shift']());}catch(_0x4370e1){_0x1eb458['push'](_0x1eb458['shift']());}}}(a267_0x32f6,0x70d5f));function a267_0x399e(_0x23110a,_0x531963){_0x23110a=_0x23110a-0x107;const _0x32f644=a267_0x32f6();let _0x399e6f=_0x32f644[_0x23110a];return _0x399e6f;}import{getIsSessionValid}from'../auth/is-session-valid.js';function a267_0x32f6(){const _0x45b96b=['619610iDDftu','authRequired','15qKLbZv','1001qPeHmW','cookie','33456HwogQr','244220tIslsa','436004UXsqrf','1552850GCXBim','1705296TjtbbC','54LioRaI','../auth/get-cookie.js','4697jiOUJf','8484aJVNfS','8Ikxmtj'];a267_0x32f6=function(){return _0x45b96b;};return a267_0x32f6();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1b3bc2){const _0x13013b=a267_0x399e,{getCookie:_0x4e3ce8}=await import(_0x13013b(0x10f)),_0x3602f6=_0x1b3bc2[_0x13013b(0x108)]||_0x4e3ce8(),_0x2490ea=_0x3602f6?await getIsSessionValid():![];return{'cookie':_0x3602f6,'isLoggedIn':_0x2490ea,async 'getOrLogin'(){const _0x516368=_0x13013b;if(_0x3602f6&&_0x2490ea)return _0x3602f6;throw CliErrors[_0x516368(0x114)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a268_0x3a9867=a268_0x3996;(function(_0x2ef8da,_0x34717d){const _0x2a3901=a268_0x3996,_0x2ce3fe=_0x2ef8da();while(!![]){try{const _0x3b6518=parseInt(_0x2a3901(0x175))/0x1+parseInt(_0x2a3901(0x198))/0x2*(parseInt(_0x2a3901(0x191))/0x3)+-parseInt(_0x2a3901(0x18e))/0x4+parseInt(_0x2a3901(0x178))/0x5*(-parseInt(_0x2a3901(0x18b))/0x6)+-parseInt(_0x2a3901(0x186))/0x7*(parseInt(_0x2a3901(0x195))/0x8)+parseInt(_0x2a3901(0x182))/0x9*(-parseInt(_0x2a3901(0x16f))/0xa)+parseInt(_0x2a3901(0x184))/0xb;if(_0x3b6518===_0x34717d)break;else _0x2ce3fe['push'](_0x2ce3fe['shift']());}catch(_0x2760d){_0x2ce3fe['push'](_0x2ce3fe['shift']());}}}(a268_0xbda5,0x288f3));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a268_0x3a9867(0x194);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x40b0a0){for(const _0x89369d of CONFIG_NAMES){const _0xc57fea=resolve(_0x40b0a0,_0x89369d);if(existsSync(_0xc57fea))return _0xc57fea;}return undefined;}export function findProjectRootDirectory(_0x10a999=process[a268_0x3a9867(0x17b)]()){let _0x141691=resolve(_0x10a999);const {root:_0x5f0d4e}=parse(_0x141691),_0x57ab12=homedir();while(!![]){if(resolveConfigPath(_0x141691)){if(_0x141691===_0x57ab12)break;return _0x141691;}if(_0x141691===_0x5f0d4e||_0x141691===_0x57ab12)break;const _0x2c7cea=dirname(_0x141691);if(_0x2c7cea===_0x141691)break;_0x141691=_0x2c7cea;}return resolve(_0x10a999);}export function getProjectConfigPath(){const _0x1ab2ec=a268_0x3a9867;return resolveConfigPath(process[_0x1ab2ec(0x17b)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x32acd6){const _0x2e925c=a268_0x3a9867;if(!existsSync(_0x32acd6))return{'status':_0x2e925c(0x1a0)};try{const _0x4e7b8e=readFileSync(_0x32acd6,{'encoding':'utf8'});if(!_0x4e7b8e?.['trim']())return{'status':_0x2e925c(0x189)};const _0x3e8c6b=JSON['parse'](_0x4e7b8e);return{'status':'ok','data':_0x3e8c6b};}catch(_0x3703a9){return{'status':_0x2e925c(0x185),'message':_0x3703a9 instanceof Error?_0x3703a9[_0x2e925c(0x183)]:String(_0x3703a9)};}}function parseCliConfigJsonFile(_0x4974d7,_0x5650af,_0x1b3b69){const _0x466ae9=a268_0x3a9867,_0x4f254f=inspectCliConfigJsonFile(_0x4974d7);if(_0x4f254f[_0x466ae9(0x17e)]==='missing'||_0x4f254f[_0x466ae9(0x17e)]===_0x466ae9(0x189))return{};if(_0x4f254f[_0x466ae9(0x17e)]==='ok')return _0x4f254f['data'];return _0x5650af==='warn'&&_0x1b3b69&&console[_0x466ae9(0x185)](CLI_BIN_NAME+':\x20'+_0x1b3b69+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x4974d7+'\x0a\x20\x20'+_0x4f254f['message']),{};}function normalizeLegacyConfigShape(_0x55b971){const _0x2fd9e7=a268_0x3a9867;if(!_0x55b971||typeof _0x55b971!==_0x2fd9e7(0x19e))return{'config':{},'migrated':![]};const _0xbaeee0={..._0x55b971},_0x283316=_0xbaeee0[_0x2fd9e7(0x171)]&&typeof _0xbaeee0['apps']===_0x2fd9e7(0x19e)?{..._0xbaeee0[_0x2fd9e7(0x171)]}:{},_0x2e1f21=Object[_0x2fd9e7(0x179)](_0x283316)[_0x2fd9e7(0x174)],_0x486ec3=_0xbaeee0[_0x2fd9e7(0x18a)]||_0xbaeee0[_0x2fd9e7(0x17a)];let _0x149821=![];if(_0x486ec3&&_0x2e1f21===0x0){const _0x56f8f2=typeof _0xbaeee0[_0x2fd9e7(0x19a)]===_0x2fd9e7(0x17c)&&_0xbaeee0['defaultApp'][_0x2fd9e7(0x17f)]()?_0xbaeee0[_0x2fd9e7(0x19a)]:String(_0x486ec3)[_0x2fd9e7(0x17f)]();_0x283316[_0x56f8f2]={'appcode':String(_0x486ec3)[_0x2fd9e7(0x17f)](),..._0xbaeee0[_0x2fd9e7(0x172)]!=null?{'env':_0xbaeee0[_0x2fd9e7(0x172)]}:{},..._0xbaeee0[_0x2fd9e7(0x192)]!=null?{'apiDir':_0xbaeee0[_0x2fd9e7(0x192)]}:{},..._0xbaeee0['cookie']!=null?{'cookie':_0xbaeee0[_0x2fd9e7(0x16e)]}:{},..._0xbaeee0[_0x2fd9e7(0x181)]!=null?{'accessKey':_0xbaeee0['accessKey']}:{},..._0xbaeee0[_0x2fd9e7(0x18d)]!=null?{'format':_0xbaeee0[_0x2fd9e7(0x18d)]}:{},..._0xbaeee0[_0x2fd9e7(0x18f)]!=null?{'pageSize':_0xbaeee0[_0x2fd9e7(0x18f)]}:{},..._0xbaeee0[_0x2fd9e7(0x19f)]!=null?{'riskLevel':_0xbaeee0[_0x2fd9e7(0x19f)]}:{},..._0xbaeee0['locale']!=null?{'locale':_0xbaeee0[_0x2fd9e7(0x1a1)]}:{}},_0xbaeee0[_0x2fd9e7(0x171)]=_0x283316,delete _0xbaeee0[_0x2fd9e7(0x19a)],_0x149821=!![];}return(_0x2fd9e7(0x18a)in _0xbaeee0||_0x2fd9e7(0x17a)in _0xbaeee0)&&(delete _0xbaeee0[_0x2fd9e7(0x18a)],delete _0xbaeee0[_0x2fd9e7(0x17a)],_0x149821=!![]),{'config':_0xbaeee0,'migrated':_0x149821};}function writeNormalizedConfigIfNeeded(_0x4800f6,_0x3eabcc){const _0x43cc3b=a268_0x3a9867,_0xa2744f=JSON[_0x43cc3b(0x1a2)](normalizeConfigForWrite(_0x3eabcc),null,0x2)+'\x0a';if(normalizedWriteCache[_0x43cc3b(0x19d)](_0x4800f6)===_0xa2744f)return;writeConfigFile(_0x4800f6,_0x3eabcc),normalizedWriteCache[_0x43cc3b(0x190)](_0x4800f6,_0xa2744f);}function parseAndNormalizeConfig(_0x4d2bdd,_0x353a7f,_0x3b36b3){const _0x352d3b=a268_0x3a9867,_0x43c47e=parseCliConfigJsonFile(_0x4d2bdd,_0x353a7f,_0x3b36b3),_0x1bce38=normalizeLegacyConfigShape(_0x43c47e);if(_0x1bce38[_0x352d3b(0x170)])try{writeNormalizedConfigIfNeeded(_0x4d2bdd,_0x1bce38[_0x352d3b(0x17d)]);}catch{}return _0x1bce38[_0x352d3b(0x17d)];}export function loadRawConfigLayers(_0x5c5eac){const _0xea3874=a268_0x3a9867;let _0x3478b5={},_0x19901f={};const _0x48ddc5=resolveConfigPath(homedir());_0x48ddc5&&(_0x3478b5=parseAndNormalizeConfig(_0x48ddc5,_0xea3874(0x188),_0xea3874(0x19b)));const _0x58106d=_0x5c5eac??findProjectRootDirectory(),_0x2cc741=resolveConfigPath(_0x58106d);return _0x2cc741&&(_0x19901f=parseAndNormalizeConfig(_0x2cc741,_0xea3874(0x188),_0xea3874(0x199))),{'globalPath':_0x48ddc5,'projectPath':_0x2cc741,'globalConfig':_0x3478b5,'projectConfig':_0x19901f};}function a268_0x3996(_0x2aa0d3,_0x32a81a){_0x2aa0d3=_0x2aa0d3-0x16d;const _0xbda54b=a268_0xbda5();let _0x39964b=_0xbda54b[_0x2aa0d3];return _0x39964b;}const INHERIT_WHITELIST=[a268_0x3a9867(0x16e),a268_0x3a9867(0x181),a268_0x3a9867(0x1a1),'format',a268_0x3a9867(0x19f),a268_0x3a9867(0x18f),a268_0x3a9867(0x193),a268_0x3a9867(0x196),a268_0x3a9867(0x177),a268_0x3a9867(0x180),a268_0x3a9867(0x19c),'skillDomain',a268_0x3a9867(0x197),'kbServiceDomain','appDomain','localDomain','certificateDomain'];export function mergeRawConfigLayers(_0xd9a4ba){const _0x3ba635=a268_0x3a9867,{globalConfig:_0x43853b,projectConfig:_0x5df232}=_0xd9a4ba,_0x577377=!!_0xd9a4ba[_0x3ba635(0x176)]||Object['keys'](_0x5df232)[_0x3ba635(0x174)]>0x0;if(!_0x577377)return mergeGlobalOnly(_0x43853b);return mergeProjectFirst(_0x43853b,_0x5df232);}function a268_0xbda5(){const _0x1609c9=['keys','app','cwd','string','config','status','trim','apiDomain','accessKey','9ZnrUTA','message','3929739GwAqdK','error','7ekekIO','silent','warn','empty','appcode','24cIJPae','.tmp','format','863936TgdyjJ','pageSize','set','54uEWuUy','apiDir','region','.rabetbase.json','1219352uvxeLY','routing','kbDomain','19972nHGWdK','Project','defaultApp','Global','runtimeDomain','get','object','riskLevel','missing','locale','stringify','utf8','cookie','706130MjIKDC','migrated','apps','env','inherit','length','220026mWrRPq','projectPath','userDomain','189845GTlTUH'];a268_0xbda5=function(){return _0x1609c9;};return a268_0xbda5();}function mergeGlobalOnly(_0x35d964){const _0xc8b8e=a268_0x3a9867,_0x23acf0={..._0x35d964};delete _0x23acf0[_0xc8b8e(0x173)];const _0x31dc3b=_0x35d964['apps']&&typeof _0x35d964[_0xc8b8e(0x171)]===_0xc8b8e(0x19e)?_0x35d964[_0xc8b8e(0x171)]:{};if(Object[_0xc8b8e(0x179)](_0x31dc3b)[_0xc8b8e(0x174)]>0x0)_0x23acf0[_0xc8b8e(0x171)]=_0x31dc3b;if(_0x35d964[_0xc8b8e(0x19a)])_0x23acf0[_0xc8b8e(0x19a)]=_0x35d964[_0xc8b8e(0x19a)];return _0x23acf0;}function mergeProjectFirst(_0x2f8504,_0x489bc5){const _0x44e221=a268_0x3a9867,_0x1dccc5={..._0x489bc5};delete _0x1dccc5[_0x44e221(0x173)];for(const _0x26f3a0 of INHERIT_WHITELIST){!(_0x26f3a0 in _0x1dccc5)&&_0x26f3a0 in _0x2f8504&&(_0x1dccc5[_0x26f3a0]=_0x2f8504[_0x26f3a0]);}const _0x5b2aad=_0x489bc5['apps']&&typeof _0x489bc5[_0x44e221(0x171)]===_0x44e221(0x19e)?_0x489bc5[_0x44e221(0x171)]:{};return Object[_0x44e221(0x179)](_0x5b2aad)[_0x44e221(0x174)]>0x0?_0x1dccc5[_0x44e221(0x171)]=_0x5b2aad:delete _0x1dccc5['apps'],_0x44e221(0x19a)in _0x489bc5?_0x1dccc5[_0x44e221(0x19a)]=_0x489bc5[_0x44e221(0x19a)]:delete _0x1dccc5['defaultApp'],_0x1dccc5;}export function readRawConfigWithLayers(_0xc4049f){const _0x5194ac=loadRawConfigLayers(_0xc4049f);return{'config':mergeRawConfigLayers(_0x5194ac),'layers':_0x5194ac};}export function readRawConfig(_0x5432e2){return mergeRawConfigLayers(loadRawConfigLayers(_0x5432e2));}export function readConfigFile(_0x244c3c){const _0x343faf=a268_0x3a9867;return parseAndNormalizeConfig(_0x244c3c,_0x343faf(0x187));}export function writeConfigFile(_0x57bf2f,_0xa49111){const _0x320af3=a268_0x3a9867,_0x31521f=dirname(_0x57bf2f);!existsSync(_0x31521f)&&mkdirSync(_0x31521f,{'recursive':!![]});const _0xd0b5b6=_0x57bf2f+_0x320af3(0x18c);try{const _0x1397d4=normalizeConfigForWrite(_0xa49111);writeFileSync(_0xd0b5b6,JSON[_0x320af3(0x1a2)](_0x1397d4,null,0x2)+'\x0a',{'encoding':_0x320af3(0x16d),'mode':0x180}),renameSync(_0xd0b5b6,_0x57bf2f);}catch(_0x99874a){try{unlinkSync(_0xd0b5b6);}catch{}throw _0x99874a;}}export function resolveWriteConfigPath(_0x22bdfb){const _0x3f0981=_0x22bdfb==='project'?process['cwd']():homedir(),_0x4289e9=resolveConfigPath(_0x3f0981);return _0x4289e9??resolve(_0x3f0981,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a269_0x3b2f96=a269_0x13e5;(function(_0x3a9b5c,_0x1ba21b){const _0x1f5778=a269_0x13e5,_0x27bce5=_0x3a9b5c();while(!![]){try{const _0x579dd8=parseInt(_0x1f5778(0x10a))/0x1*(-parseInt(_0x1f5778(0x133))/0x2)+parseInt(_0x1f5778(0x100))/0x3+parseInt(_0x1f5778(0x10b))/0x4+parseInt(_0x1f5778(0x104))/0x5*(parseInt(_0x1f5778(0x136))/0x6)+-parseInt(_0x1f5778(0x10e))/0x7+parseInt(_0x1f5778(0xfa))/0x8*(parseInt(_0x1f5778(0x119))/0x9)+parseInt(_0x1f5778(0x117))/0xa;if(_0x579dd8===_0x1ba21b)break;else _0x27bce5['push'](_0x27bce5['shift']());}catch(_0x363e88){_0x27bce5['push'](_0x27bce5['shift']());}}}(a269_0x252b,0xd212d));import{CLI_BIN_NAME}from'./constant/cli.js';function a269_0x252b(){const _0x1c597d=['object','source','routingConfig','length','regionConfiguredValue','apiGroup','global\x20Rabetbase\x20configuration','agentDomain','userDomain','daily','entries','7286EZKpgm','map','app','22332Kbmzue','platformDomain','project','name','filter','./constant/domain.js','configuredRegion','runtimeDomain','project\x20Rabetbase\x20configuration','defaultApp','skillDomain','env','22624SfhkzT','regionSource','routing','cdn','localDomain','currentApp','255471mTfVZK','globalConfig','production','domains','285IzhzmQ','raw','config','replace','cookie','Rabetbase\x20configuration','155Fqwaai','3528896jcxhPK','keys','prototype','11806046PGdDvw','apiDir','hasOwnProperty','filePath','appcode','apps','apiDomain','targetEnv','slice','15051410zoitrx','app\x20profile\x20\x22','1359yhkpCs','appDomain','doctor','trim','https://g.lovrabet.com/dist/lovrabet-skill','region','argv','projectConfig','string','setRawCommand','certificateDomain','kbDomain','join','call','template_base_url'];a269_0x252b=function(){return _0x1c597d;};return a269_0x252b();}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(_0x410cf1){return process.env[`RABETBASE_${_0x410cf1}`]||process.env[`LOVRABET_${_0x410cf1}`]||undefined;}function optionalString(_0x232134){const _0x3a95cf=a269_0x13e5;return typeof _0x232134===_0x3a95cf(0x121)&&_0x232134[_0x3a95cf(0x11c)]()?_0x232134[_0x3a95cf(0x11c)]():undefined;}export function isRoutingRecoveryService(_0x5d0a92){const _0x570b0f=a269_0x13e5;return _0x5d0a92===_0x570b0f(0x106)||_0x5d0a92===_0x570b0f(0x11b);}export async function createContext(_0x1fe351){const _0x2eb5f3=a269_0x13e5,{config:_0x1c148d,layers:_0x3b1168}=readRawConfigWithLayers(),_0x2ebb98=buildConfig(_0x1c148d,_0x1fe351,_0x3b1168);await initGlobalEnvironment(_0x2ebb98);const {getUserDomain:_0x41374b,getApiDomain:_0x20d03b}=await import(_0x2eb5f3(0x13b)),_0x6d99d7={'apiDomain':_0x20d03b(),'userDomain':_0x41374b()},_0x55ed6f=await buildAuth(_0x2ebb98);logger['setLogPath'](process['cwd']());const _0x4657f4=(CLI_BIN_NAME+'\x20'+process[_0x2eb5f3(0x11f)][_0x2eb5f3(0x116)](0x2)[_0x2eb5f3(0x125)]('\x20'))[_0x2eb5f3(0x11c)]();logger[_0x2eb5f3(0x122)](_0x4657f4);const {isNonInteractive:_0x47026a}=await import('./utils/is-non-interactive.js'),_0x29214f=_0x47026a(_0x1fe351);return{'config':_0x2ebb98,'auth':_0x55ed6f,'logger':logger,'env':_0x6d99d7,'nonInteractive':_0x29214f};}export function buildConfigFromFlags(_0xe15d04){const {config:_0xd096df,layers:_0x23fb0f}=readRawConfigWithLayers();return buildConfig(_0xd096df,_0xe15d04,_0x23fb0f);}function a269_0x13e5(_0x3dd08a,_0xc9e38b){_0x3dd08a=_0x3dd08a-0xf5;const _0x252bcf=a269_0x252b();let _0x13e585=_0x252bcf[_0x3dd08a];return _0x13e585;}export async function initGlobalEnvironment(_0x325357){const _0x3a0137=a269_0x13e5,_0x43dcf6=_0x325357[_0x3a0137(0xfb)]==='app'&&_0x325357[_0x3a0137(0xff)]?'app\x20profile\x20\x22'+_0x325357[_0x3a0137(0xff)]+'\x22':_0x325357[_0x3a0137(0xfb)]==='project'?_0x3a0137(0xf6):_0x325357[_0x3a0137(0xfb)]==='global'?_0x3a0137(0x12e):_0x3a0137(0x109);await initConfiguredEnvironment({'raw':_0x325357[_0x3a0137(0x105)],'configuredRegion':_0x325357[_0x3a0137(0x12c)]??_0x325357[_0x3a0137(0x105)]?.[_0x3a0137(0x11e)]??_0x325357[_0x3a0137(0x11e)],'regionLocation':_0x43dcf6,'targetEnv':_0x325357[_0x3a0137(0xf9)]});}async function initConfiguredEnvironment(_0x229787){const _0x27f8d0=a269_0x13e5,_0x113fca=resolveConfiguredRegion(_0x229787[_0x27f8d0(0x13c)],_0x229787['regionLocation']),_0x156468=resolveEnterpriseRoutingManifest(_0x229787[_0x27f8d0(0x105)]?.['routing']),_0x2181d3={'region':_0x113fca,'apiDomain':_0x156468?_0x156468['domains'][_0x27f8d0(0x114)]:optionalString(_0x229787[_0x27f8d0(0x105)]?.[_0x27f8d0(0x114)]),'userDomain':_0x156468?_0x156468[_0x27f8d0(0x103)][_0x27f8d0(0x130)]:optionalString(_0x229787[_0x27f8d0(0x105)]?.['userDomain']),'runtimeDomain':_0x156468?_0x156468['domains'][_0x27f8d0(0xf5)]:optionalString(_0x229787[_0x27f8d0(0x105)]?.[_0x27f8d0(0xf5)]),'skillDomain':_0x156468?_0x156468[_0x27f8d0(0x103)][_0x27f8d0(0xf8)]:optionalString(_0x229787[_0x27f8d0(0x105)]?.[_0x27f8d0(0xf8)])||optionalString(_0x229787[_0x27f8d0(0x105)]?.['skillHubDomain'])||optionalString(_0x229787[_0x27f8d0(0x105)]?.['agentDomain'])||optionalString(_0x229787[_0x27f8d0(0x105)]?.[_0x27f8d0(0x137)]),'kbDomain':_0x156468?_0x156468['domains']['kbDomain']:optionalString(_0x229787[_0x27f8d0(0x105)]?.[_0x27f8d0(0x124)])||optionalString(_0x229787[_0x27f8d0(0x105)]?.['agentDomain'])||optionalString(_0x229787[_0x27f8d0(0x105)]?.['platformDomain']),'appDomain':_0x156468?_0x156468[_0x27f8d0(0x103)]['appDomain']:optionalString(_0x229787['raw']?.[_0x27f8d0(0x11a)]),'localDomain':_0x156468?_0x156468[_0x27f8d0(0x103)][_0x27f8d0(0xfe)]:optionalString(_0x229787['raw']?.[_0x27f8d0(0xfe)]),'certificateDomain':_0x156468?_0x156468['domains'][_0x27f8d0(0x123)]:optionalString(_0x229787[_0x27f8d0(0x105)]?.[_0x27f8d0(0x123)]),'cdn':_0x156468?.[_0x27f8d0(0xfd)]},{initEnv:_0x65a3b6}=await import('./constant/env.js'),{initDomains:_0x83056b}=await import(_0x27f8d0(0x13b));_0x65a3b6(_0x229787[_0x27f8d0(0x115)]),_0x83056b(_0x2181d3);}export async function initMultiAppEnvironment(_0x3e7169){const _0x2e5cd1=a269_0x13e5;await initConfiguredEnvironment({'raw':_0x3e7169[_0x2e5cd1(0x12a)],'configuredRegion':_0x3e7169[_0x2e5cd1(0x11e)],'regionLocation':_0x2e5cd1(0x118)+_0x3e7169[_0x2e5cd1(0x139)]+'\x22','targetEnv':_0x3e7169[_0x2e5cd1(0xf9)]===_0x2e5cd1(0x131)?'daily':_0x2e5cd1(0x102)});}export function getConfigAppCode(_0x53ecc5){const _0x3f3d22=a269_0x13e5,_0x4fb426=readRawConfig(_0x53ecc5);if(_0x4fb426[_0x3f3d22(0x113)]&&typeof _0x4fb426[_0x3f3d22(0x113)]===_0x3f3d22(0x128)){const _0x4cae88=_0x4fb426['defaultApp'];if(_0x4cae88)return _0x4fb426[_0x3f3d22(0x113)][_0x4cae88]?.[_0x3f3d22(0x112)]?String(_0x4fb426[_0x3f3d22(0x113)][_0x4cae88][_0x3f3d22(0x112)])[_0x3f3d22(0x11c)]():undefined;const _0x4c6e2b=Object['values'](_0x4fb426[_0x3f3d22(0x113)]);if(_0x4c6e2b[_0x3f3d22(0x12b)]===0x1&&_0x4c6e2b[0x0]?.[_0x3f3d22(0x112)])return String(_0x4c6e2b[0x0][_0x3f3d22(0x112)])[_0x3f3d22(0x11c)]();}const _0x1d89f2=_0x4fb426['appcode']||_0x4fb426[_0x3f3d22(0x135)];if(typeof _0x1d89f2!==_0x3f3d22(0x121)||_0x1d89f2[_0x3f3d22(0x11c)]()==='')return undefined;return _0x1d89f2[_0x3f3d22(0x11c)]();}const CONNECTION_ROUTING_KEYS=[a269_0x3b2f96(0xfc),a269_0x3b2f96(0x114),'userDomain',a269_0x3b2f96(0xf5),a269_0x3b2f96(0xf8),'skillHubDomain',a269_0x3b2f96(0x124),a269_0x3b2f96(0x12f),'platformDomain',a269_0x3b2f96(0x11a),a269_0x3b2f96(0xfe),'certificateDomain'];function pickConnectionRoutingConfig(_0x699bff,_0x17a02c){const _0x2a20c2={'region':_0x17a02c};for(const _0x536dbd of CONNECTION_ROUTING_KEYS){if(_0x699bff[_0x536dbd]!==undefined)_0x2a20c2[_0x536dbd]=_0x699bff[_0x536dbd];}return _0x2a20c2;}export function getMultiAppConfigs(_0x38f43e=a269_0x3b2f96(0x138),_0x541bee){const _0x232aee=a269_0x3b2f96,_0x418443=loadRawConfigLayers(_0x541bee);let _0x4a4abb,_0x26216b;const _0x1c0475=mergeRawConfigLayers(_0x418443),_0x27d9b1=_0x418443[_0x232aee(0x101)][_0x232aee(0x113)]&&typeof _0x418443[_0x232aee(0x101)][_0x232aee(0x113)]===_0x232aee(0x128)?_0x418443['globalConfig'][_0x232aee(0x113)]:{},_0x338efb=_0x418443[_0x232aee(0x120)][_0x232aee(0x113)]&&typeof _0x418443[_0x232aee(0x120)][_0x232aee(0x113)]===_0x232aee(0x128)?_0x418443[_0x232aee(0x120)][_0x232aee(0x113)]:{};_0x38f43e==='merged'?(_0x4a4abb={..._0x27d9b1,..._0x338efb},_0x26216b=_0x1c0475['defaultApp']):(_0x4a4abb=_0x418443['projectConfig'][_0x232aee(0x113)],_0x26216b=_0x418443[_0x232aee(0x120)][_0x232aee(0xf7)]);!_0x26216b&&_0x4a4abb&&typeof _0x4a4abb==='object'&&Object[_0x232aee(0x10c)](_0x4a4abb)[_0x232aee(0x12b)]===0x1&&(_0x26216b=Object['keys'](_0x4a4abb)[0x0]);if(!_0x4a4abb||typeof _0x4a4abb!==_0x232aee(0x128)||Object[_0x232aee(0x10c)](_0x4a4abb)[_0x232aee(0x12b)]===0x0)return null;return Object[_0x232aee(0x132)](_0x4a4abb)[_0x232aee(0x134)](([_0x588683,_0x136419])=>{const _0x23d9f8=_0x232aee,_0x5c3232=_0x38f43e==='project'||Object[_0x23d9f8(0x10d)][_0x23d9f8(0x110)][_0x23d9f8(0x126)](_0x338efb,_0x588683),_0x2944bd=_0x5c3232?_0x1c0475:_0x418443['globalConfig'],_0x9c4e93=resolveEffectiveRegion({'appRegion':_0x136419?.[_0x23d9f8(0x11e)],'projectRegion':_0x5c3232?_0x418443[_0x23d9f8(0x120)][_0x23d9f8(0x11e)]:undefined,'globalRegion':_0x418443[_0x23d9f8(0x101)]['region'],'mergedRegion':_0x2944bd['region'],'appName':_0x588683});return{'name':_0x588683,'appcode':_0x136419?.[_0x23d9f8(0x112)]||'','apiGroup':optionalString(_0x136419?.[_0x23d9f8(0x12d)]),'isDefault':_0x588683===_0x26216b,'region':_0x9c4e93[_0x23d9f8(0x11e)],'regionSource':_0x9c4e93[_0x23d9f8(0x129)],'env':_0x136419?.[_0x23d9f8(0xf9)],'apiDir':optionalString(_0x136419?.[_0x23d9f8(0x10f)])||optionalString(_0x2944bd[_0x23d9f8(0x10f)]),'cookie':_0x136419?.[_0x23d9f8(0x108)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x2944bd,_0x9c4e93[_0x23d9f8(0x11e)])};})[_0x232aee(0x13a)](_0x2c5dee=>_0x2c5dee['appcode']);}export function getTemplateBaseUrl(_0x300091){const _0x205be7=a269_0x3b2f96,_0x2d577f=readRawConfig(_0x300091);if(_0x2d577f['template_base_url']&&typeof _0x2d577f[_0x205be7(0x127)]==='string')return _0x2d577f[_0x205be7(0x127)][_0x205be7(0x107)](/\/$/,'');return _0x205be7(0x11d);}function buildConfig(_0x203d0b,_0x6ff81f,_0x269d7){return{...resolveAppConfig({'raw':_0x203d0b,'flags':_0x6ff81f,'layers':_0x269d7,'readEnv':env}),'raw':_0x203d0b};}export function resolveApiFilePath(_0x45fa0e,_0x3958f3,_0x3a112b){const _0x150ad9=a269_0x3b2f96;return resolveApiModelSource(_0x45fa0e,_0x3958f3,_0x3a112b)[_0x150ad9(0x111)];}
|
|
1
|
+
const a269_0x165b7c=a269_0x1f8e;(function(_0x3fd763,_0x3aad15){const _0x5a4aae=a269_0x1f8e,_0x10751f=_0x3fd763();while(!![]){try{const _0x5b75f1=-parseInt(_0x5a4aae(0x122))/0x1*(-parseInt(_0x5a4aae(0x13a))/0x2)+parseInt(_0x5a4aae(0x13c))/0x3+parseInt(_0x5a4aae(0x148))/0x4*(parseInt(_0x5a4aae(0x135))/0x5)+-parseInt(_0x5a4aae(0x15f))/0x6*(-parseInt(_0x5a4aae(0x150))/0x7)+parseInt(_0x5a4aae(0x11e))/0x8+-parseInt(_0x5a4aae(0x145))/0x9*(-parseInt(_0x5a4aae(0x15e))/0xa)+-parseInt(_0x5a4aae(0x126))/0xb;if(_0x5b75f1===_0x3aad15)break;else _0x10751f['push'](_0x10751f['shift']());}catch(_0x2a0c99){_0x10751f['push'](_0x10751f['shift']());}}}(a269_0x56ba,0xd4c73));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(_0x5c9356){return process.env[`RABETBASE_${_0x5c9356}`]||process.env[`LOVRABET_${_0x5c9356}`]||undefined;}function optionalString(_0x2ca9a4){const _0x2e3a62=a269_0x1f8e;return typeof _0x2ca9a4===_0x2e3a62(0x146)&&_0x2ca9a4[_0x2e3a62(0x11d)]()?_0x2ca9a4[_0x2e3a62(0x11d)]():undefined;}export function isRoutingRecoveryService(_0x483289){const _0x48dab0=a269_0x1f8e;return _0x483289===_0x48dab0(0x154)||_0x483289===_0x48dab0(0x147);}function a269_0x1f8e(_0xd9fd70,_0x4c9737){_0xd9fd70=_0xd9fd70-0x11c;const _0x56ba74=a269_0x56ba();let _0x1f8e9b=_0x56ba74[_0xd9fd70];return _0x1f8e9b;}export async function createContext(_0x505651){const _0x4daaa0=a269_0x1f8e,{config:_0x112947,layers:_0x48c99f}=readRawConfigWithLayers(),_0x5ce0bd=buildConfig(_0x112947,_0x505651,_0x48c99f);await initGlobalEnvironment(_0x5ce0bd);const {getUserDomain:_0x5c89ff,getApiDomain:_0x174269}=await import(_0x4daaa0(0x151)),_0x229533={'apiDomain':_0x174269(),'userDomain':_0x5c89ff()},_0x85897f=await buildAuth(_0x5ce0bd);logger['setLogPath'](process['cwd']());const _0x1a6c91=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)['join']('\x20'))['trim']();logger[_0x4daaa0(0x15a)](_0x1a6c91);const {isNonInteractive:_0x2c4db2}=await import(_0x4daaa0(0x140)),_0x6e614c=_0x2c4db2(_0x505651);return{'config':_0x5ce0bd,'auth':_0x85897f,'logger':logger,'env':_0x229533,'nonInteractive':_0x6e614c};}export function buildConfigFromFlags(_0x3d475e){const {config:_0x27b472,layers:_0x58a2aa}=readRawConfigWithLayers();return buildConfig(_0x27b472,_0x3d475e,_0x58a2aa);}function a269_0x56ba(){const _0x3f6ca1=['regionSource','env','keys','1077130rihdZI','3882VoAMbV','project\x20Rabetbase\x20configuration','region','apiDomain','trim','8230520tfSnIx','prototype','apiGroup','routingConfig','15whHgMq','kbServiceDomain','project','object','37136649irkpZA','production','some','length','daily','globalConfig','cdn','currentApp','regionLocation','skillDomain','defaultApp','template_base_url','appcode','configuredRegion','global','2015MceKWi','apps','runtimeDomain','https://g.lovrabet.com/dist/lovrabet-skill','localDomain','100778EICAgz','Rabetbase\x20configuration','1247568szLOoO','domains','filePath','skillHubDomain','./utils/is-non-interactive.js','routing','raw','appDomain','map','81MaNqLw','string','doctor','9836ZIzcCJ','targetEnv','values','userDomain','source','projectConfig','merged','replace','938nBqVgX','./constant/domain.js','platformDomain','app','config','name','kbDomain','agentDomain','hasOwnProperty','certificateDomain','setRawCommand'];a269_0x56ba=function(){return _0x3f6ca1;};return a269_0x56ba();}export async function initGlobalEnvironment(_0x5e67b2){const _0x2d349b=a269_0x1f8e,_0x539ba3=_0x5e67b2['regionSource']===_0x2d349b(0x153)&&_0x5e67b2[_0x2d349b(0x12d)]?'app\x20profile\x20\x22'+_0x5e67b2[_0x2d349b(0x12d)]+'\x22':_0x5e67b2[_0x2d349b(0x15b)]===_0x2d349b(0x124)?_0x2d349b(0x160):_0x5e67b2[_0x2d349b(0x15b)]===_0x2d349b(0x134)?'global\x20Rabetbase\x20configuration':_0x2d349b(0x13b);await initConfiguredEnvironment({'raw':_0x5e67b2[_0x2d349b(0x142)],'configuredRegion':_0x5e67b2['regionConfiguredValue']??_0x5e67b2['raw']?.['region']??_0x5e67b2['region'],'regionLocation':_0x539ba3,'targetEnv':_0x5e67b2[_0x2d349b(0x15c)]});}async function initConfiguredEnvironment(_0x5725bd){const _0x2bac81=a269_0x1f8e,_0x2c5075=resolveConfiguredRegion(_0x5725bd[_0x2bac81(0x133)],_0x5725bd[_0x2bac81(0x12e)]),_0x170205=resolveEnterpriseRoutingManifest(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x141)]),_0x3fdf56={'region':_0x2c5075,'apiDomain':_0x170205?_0x170205[_0x2bac81(0x13d)][_0x2bac81(0x11c)]:optionalString(_0x5725bd['raw']?.[_0x2bac81(0x11c)]),'userDomain':_0x170205?_0x170205[_0x2bac81(0x13d)][_0x2bac81(0x14b)]:optionalString(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x14b)]),'runtimeDomain':_0x170205?_0x170205[_0x2bac81(0x13d)][_0x2bac81(0x137)]:optionalString(_0x5725bd['raw']?.[_0x2bac81(0x137)]),'skillDomain':_0x170205?_0x170205[_0x2bac81(0x13d)][_0x2bac81(0x12f)]:optionalString(_0x5725bd['raw']?.['skillDomain'])||optionalString(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x13f)])||optionalString(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x157)])||optionalString(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x152)]),'kbDomain':_0x170205?_0x170205['domains'][_0x2bac81(0x156)]:optionalString(_0x5725bd['raw']?.['kbDomain'])||optionalString(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x157)])||optionalString(_0x5725bd['raw']?.[_0x2bac81(0x152)]),'kbServiceDomain':_0x170205?_0x170205[_0x2bac81(0x13d)][_0x2bac81(0x123)]:optionalString(_0x5725bd['raw']?.['kbServiceDomain']),'appDomain':_0x170205?_0x170205[_0x2bac81(0x13d)][_0x2bac81(0x143)]:optionalString(_0x5725bd['raw']?.['appDomain']),'localDomain':_0x170205?_0x170205[_0x2bac81(0x13d)][_0x2bac81(0x139)]:optionalString(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x139)]),'certificateDomain':_0x170205?_0x170205[_0x2bac81(0x13d)]['certificateDomain']:optionalString(_0x5725bd[_0x2bac81(0x142)]?.[_0x2bac81(0x159)]),'cdn':_0x170205?.[_0x2bac81(0x12c)],'allowOfficialKbServiceDefault':!(_0x170205!==undefined||['apiDomain',_0x2bac81(0x14b),_0x2bac81(0x137),_0x2bac81(0x12f),_0x2bac81(0x13f),_0x2bac81(0x156),_0x2bac81(0x123),'agentDomain',_0x2bac81(0x152),_0x2bac81(0x143),_0x2bac81(0x139),_0x2bac81(0x159)][_0x2bac81(0x128)](_0x3a524d=>Object['prototype']['hasOwnProperty']['call'](_0x5725bd[_0x2bac81(0x142)]??{},_0x3a524d)))},{initEnv:_0x367aa7}=await import('./constant/env.js'),{initDomains:_0x3b23e3}=await import(_0x2bac81(0x151));_0x367aa7(_0x5725bd[_0x2bac81(0x149)]),_0x3b23e3(_0x3fdf56);}export async function initMultiAppEnvironment(_0x63e1e7){const _0x451760=a269_0x1f8e;await initConfiguredEnvironment({'raw':_0x63e1e7[_0x451760(0x121)],'configuredRegion':_0x63e1e7[_0x451760(0x161)],'regionLocation':'app\x20profile\x20\x22'+_0x63e1e7[_0x451760(0x155)]+'\x22','targetEnv':_0x63e1e7['env']===_0x451760(0x12a)?_0x451760(0x12a):_0x451760(0x127)});}export function getConfigAppCode(_0x33d7c8){const _0x1bf77d=a269_0x1f8e,_0x1667a6=readRawConfig(_0x33d7c8);if(_0x1667a6[_0x1bf77d(0x136)]&&typeof _0x1667a6[_0x1bf77d(0x136)]===_0x1bf77d(0x125)){const _0x3e06c3=_0x1667a6[_0x1bf77d(0x130)];if(_0x3e06c3)return _0x1667a6[_0x1bf77d(0x136)][_0x3e06c3]?.[_0x1bf77d(0x132)]?String(_0x1667a6['apps'][_0x3e06c3][_0x1bf77d(0x132)])[_0x1bf77d(0x11d)]():undefined;const _0x2fb5dc=Object[_0x1bf77d(0x14a)](_0x1667a6['apps']);if(_0x2fb5dc[_0x1bf77d(0x129)]===0x1&&_0x2fb5dc[0x0]?.['appcode'])return String(_0x2fb5dc[0x0][_0x1bf77d(0x132)])[_0x1bf77d(0x11d)]();}const _0x452dc9=_0x1667a6[_0x1bf77d(0x132)]||_0x1667a6[_0x1bf77d(0x153)];if(typeof _0x452dc9!=='string'||_0x452dc9[_0x1bf77d(0x11d)]()==='')return undefined;return _0x452dc9['trim']();}const CONNECTION_ROUTING_KEYS=['routing',a269_0x165b7c(0x11c),'userDomain','runtimeDomain','skillDomain',a269_0x165b7c(0x13f),a269_0x165b7c(0x156),'kbServiceDomain',a269_0x165b7c(0x157),a269_0x165b7c(0x152),a269_0x165b7c(0x143),a269_0x165b7c(0x139),a269_0x165b7c(0x159)];function withAppProfileRouting(_0x49a1aa,_0x1ecacd){const _0x21371c=a269_0x165b7c;if(!_0x1ecacd||_0x1ecacd[_0x21371c(0x123)]===undefined)return _0x49a1aa;return{..._0x49a1aa,'kbServiceDomain':_0x1ecacd['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x4f29f3,_0x23e6ab){const _0x41aebd={'region':_0x23e6ab};for(const _0x1ee699 of CONNECTION_ROUTING_KEYS){if(_0x4f29f3[_0x1ee699]!==undefined)_0x41aebd[_0x1ee699]=_0x4f29f3[_0x1ee699];}return _0x41aebd;}export function getMultiAppConfigs(_0xff91a4='project',_0x102a3a){const _0x3aa159=a269_0x165b7c,_0x4d970e=loadRawConfigLayers(_0x102a3a);let _0x5140d8,_0x5e6410;const _0x509650=mergeRawConfigLayers(_0x4d970e),_0xe0e6a3=_0x4d970e[_0x3aa159(0x12b)][_0x3aa159(0x136)]&&typeof _0x4d970e[_0x3aa159(0x12b)][_0x3aa159(0x136)]===_0x3aa159(0x125)?_0x4d970e[_0x3aa159(0x12b)][_0x3aa159(0x136)]:{},_0x8c0216=_0x4d970e[_0x3aa159(0x14d)]['apps']&&typeof _0x4d970e[_0x3aa159(0x14d)][_0x3aa159(0x136)]===_0x3aa159(0x125)?_0x4d970e['projectConfig'][_0x3aa159(0x136)]:{};_0xff91a4===_0x3aa159(0x14e)?(_0x5140d8={..._0xe0e6a3,..._0x8c0216},_0x5e6410=_0x509650[_0x3aa159(0x130)]):(_0x5140d8=_0x4d970e[_0x3aa159(0x14d)]['apps'],_0x5e6410=_0x4d970e['projectConfig']['defaultApp']);!_0x5e6410&&_0x5140d8&&typeof _0x5140d8===_0x3aa159(0x125)&&Object[_0x3aa159(0x15d)](_0x5140d8)[_0x3aa159(0x129)]===0x1&&(_0x5e6410=Object[_0x3aa159(0x15d)](_0x5140d8)[0x0]);if(!_0x5140d8||typeof _0x5140d8!==_0x3aa159(0x125)||Object['keys'](_0x5140d8)['length']===0x0)return null;return Object['entries'](_0x5140d8)[_0x3aa159(0x144)](([_0x56f6eb,_0x490cfc])=>{const _0x3d1e27=_0x3aa159,_0x3d94bb=_0xff91a4==='project'||Object[_0x3d1e27(0x11f)][_0x3d1e27(0x158)]['call'](_0x8c0216,_0x56f6eb),_0x5f0db0=withAppProfileRouting(_0x3d94bb?_0x509650:_0x4d970e['globalConfig'],_0x490cfc),_0x5b5099=resolveEffectiveRegion({'appRegion':_0x490cfc?.['region'],'projectRegion':_0x3d94bb?_0x4d970e[_0x3d1e27(0x14d)]['region']:undefined,'globalRegion':_0x4d970e[_0x3d1e27(0x12b)][_0x3d1e27(0x161)],'mergedRegion':_0x5f0db0[_0x3d1e27(0x161)],'appName':_0x56f6eb});return{'name':_0x56f6eb,'appcode':_0x490cfc?.['appcode']||'','apiGroup':optionalString(_0x490cfc?.[_0x3d1e27(0x120)]),'isDefault':_0x56f6eb===_0x5e6410,'region':_0x5b5099['region'],'regionSource':_0x5b5099[_0x3d1e27(0x14c)],'env':_0x490cfc?.[_0x3d1e27(0x15c)],'apiDir':optionalString(_0x490cfc?.['apiDir'])||optionalString(_0x5f0db0['apiDir']),'cookie':_0x490cfc?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x5f0db0,_0x5b5099['region'])};})['filter'](_0x14c99e=>_0x14c99e[_0x3aa159(0x132)]);}export function getTemplateBaseUrl(_0x317497){const _0x14ff48=a269_0x165b7c,_0xfcfafd=readRawConfig(_0x317497);if(_0xfcfafd['template_base_url']&&typeof _0xfcfafd[_0x14ff48(0x131)]===_0x14ff48(0x146))return _0xfcfafd[_0x14ff48(0x131)][_0x14ff48(0x14f)](/\/$/,'');return _0x14ff48(0x138);}function buildConfig(_0x25791b,_0x388df9,_0x5bcfc4){const _0x1ba987=a269_0x165b7c,_0x1a539f=resolveAppConfig({'raw':_0x25791b,'flags':_0x388df9,'layers':_0x5bcfc4,'readEnv':env}),_0x545081=_0x1a539f[_0x1ba987(0x12d)]?_0x1a539f['apps'][_0x1a539f[_0x1ba987(0x12d)]]:undefined;return{..._0x1a539f,'raw':withAppProfileRouting(_0x25791b,_0x545081)};}export function resolveApiFilePath(_0x51ce0d,_0xc89eba,_0x578683){const _0x5d4eaa=a269_0x165b7c;return resolveApiModelSource(_0x51ce0d,_0xc89eba,_0x578683)[_0x5d4eaa(0x13e)];}
|