@lovrabet/rabetbase-cli 2.5.4-beta.1 → 2.5.4-beta.3
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 +4 -3
- 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.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/feishu-bind.d.ts +2 -0
- package/lib/commands/user-account/feishu-bind.js +1 -0
- 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.d.ts +2 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.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 +4 -3
- package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
- package/skills/rabetbase/guides/sql-mybatis.md +12 -8
- package/skills/rabetbase/references/rabetbase-config.md +6 -4
- package/skills/rabetbase/references/rabetbase-init.md +7 -5
- package/skills/rabetbase/references/rabetbase-kb.md +8 -6
- package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
- package/skills/rabetbase.manifest.json +3 -3
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a269_0x21092a=a269_0x3ab3;(function(_0x3ca360,_0x1c79cd){const _0x5b7334=a269_0x3ab3,_0x14ff92=_0x3ca360();while(!![]){try{const _0x4a7d32=parseInt(_0x5b7334(0x18e))/0x1*(-parseInt(_0x5b7334(0x175))/0x2)+parseInt(_0x5b7334(0x17d))/0x3*(-parseInt(_0x5b7334(0x19e))/0x4)+parseInt(_0x5b7334(0x185))/0x5*(parseInt(_0x5b7334(0x194))/0x6)+parseInt(_0x5b7334(0x16b))/0x7*(parseInt(_0x5b7334(0x19b))/0x8)+-parseInt(_0x5b7334(0x195))/0x9*(-parseInt(_0x5b7334(0x161))/0xa)+-parseInt(_0x5b7334(0x17c))/0xb+parseInt(_0x5b7334(0x170))/0xc;if(_0x4a7d32===_0x1c79cd)break;else _0x14ff92['push'](_0x14ff92['shift']());}catch(_0x35528c){_0x14ff92['push'](_0x14ff92['shift']());}}}(a269_0x1cb7,0x2ab0c));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a269_0x1cb7(){const _0x2c4d97=['merged','./constant/domain.js','globalConfig','entries','1210644YZgkJz','18IhXVYI','template_base_url','platformDomain','runtimeDomain','projectConfig','env','136dQIIfi','skillDomain','setRawCommand','1275092jOiIDA','./constant/env.js','routingConfig','apiDir','production','join','currentApp','length','https://g.lovrabet.com/dist/lovrabet-skill','configuredRegion','cwd','apiDomain','hasOwnProperty','doctor','defaultApp','705290kirnIP','argv','config','trim','localDomain','certificateDomain','agentDomain','regionConfiguredValue','object','app','79429CCeIbG','string','name','skillHubDomain','slice','4365732kmAojX','project','raw','region','source','116806bNdevl','appDomain','regionLocation','daily','filePath','routing','call','1895267mChkyH','3SeoSlj','userDomain','global','regionSource','apiGroup','cdn','targetEnv','setLogPath','5yJtDZL','prototype','kbDomain','map','apps','appcode','domains','app\x20profile\x20\x22','project\x20Rabetbase\x20configuration','4wtIccf','Rabetbase\x20configuration'];a269_0x1cb7=function(){return _0x2c4d97;};return a269_0x1cb7();}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(_0x1e71fb){return process.env[`RABETBASE_${_0x1e71fb}`]||process.env[`LOVRABET_${_0x1e71fb}`]||undefined;}function optionalString(_0x4e64fd){const _0x40e59f=a269_0x3ab3;return typeof _0x4e64fd==='string'&&_0x4e64fd[_0x40e59f(0x164)]()?_0x4e64fd[_0x40e59f(0x164)]():undefined;}export function isRoutingRecoveryService(_0xf0cf91){const _0x1648cc=a269_0x3ab3;return _0xf0cf91===_0x1648cc(0x163)||_0xf0cf91===_0x1648cc(0x15f);}export async function createContext(_0x1b1c7c){const _0x4f4e81=a269_0x3ab3,{config:_0x58a8ca,layers:_0x2b4398}=readRawConfigWithLayers(),_0x115ad4=buildConfig(_0x58a8ca,_0x1b1c7c,_0x2b4398);await initGlobalEnvironment(_0x115ad4);const {getUserDomain:_0x24d061,getApiDomain:_0x4e7c29}=await import(_0x4f4e81(0x191)),_0x29cb9f={'apiDomain':_0x4e7c29(),'userDomain':_0x24d061()},_0x5b8544=await buildAuth(_0x115ad4);logger[_0x4f4e81(0x184)](process[_0x4f4e81(0x1a8)]());const _0x1d3e1a=(CLI_BIN_NAME+'\x20'+process[_0x4f4e81(0x162)][_0x4f4e81(0x16f)](0x2)[_0x4f4e81(0x1a3)]('\x20'))[_0x4f4e81(0x164)]();logger[_0x4f4e81(0x19d)](_0x1d3e1a);const {isNonInteractive:_0x21ef17}=await import('./utils/is-non-interactive.js'),_0x50984d=_0x21ef17(_0x1b1c7c);return{'config':_0x115ad4,'auth':_0x5b8544,'logger':logger,'env':_0x29cb9f,'nonInteractive':_0x50984d};}export function buildConfigFromFlags(_0x38ba46){const {config:_0x534927,layers:_0x570a51}=readRawConfigWithLayers();return buildConfig(_0x534927,_0x38ba46,_0x570a51);}export async function initGlobalEnvironment(_0x35e249){const _0x266c09=a269_0x3ab3,_0x23af50=_0x35e249['regionSource']===_0x266c09(0x16a)&&_0x35e249[_0x266c09(0x1a4)]?_0x266c09(0x18c)+_0x35e249['currentApp']+'\x22':_0x35e249[_0x266c09(0x180)]==='project'?_0x266c09(0x18d):_0x35e249[_0x266c09(0x180)]===_0x266c09(0x17f)?'global\x20Rabetbase\x20configuration':_0x266c09(0x18f);await initConfiguredEnvironment({'raw':_0x35e249[_0x266c09(0x172)],'configuredRegion':_0x35e249[_0x266c09(0x168)]??_0x35e249['raw']?.[_0x266c09(0x173)]??_0x35e249[_0x266c09(0x173)],'regionLocation':_0x23af50,'targetEnv':_0x35e249[_0x266c09(0x19a)]});}async function initConfiguredEnvironment(_0x3246e7){const _0x3fb2c4=a269_0x3ab3,_0x4aef04=resolveConfiguredRegion(_0x3246e7[_0x3fb2c4(0x1a7)],_0x3246e7[_0x3fb2c4(0x177)]),_0x547c41=resolveEnterpriseRoutingManifest(_0x3246e7['raw']?.[_0x3fb2c4(0x17a)]),_0x5046cc={'region':_0x4aef04,'apiDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)][_0x3fb2c4(0x15d)]:optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x15d)]),'userDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['userDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x17e)]),'runtimeDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['runtimeDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.['runtimeDomain']),'skillDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)][_0x3fb2c4(0x19c)]:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x19c)])||optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x16e)])||optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x167)])||optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x197)]),'kbDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['kbDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x187)])||optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x167)])||optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.['platformDomain']),'appDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['appDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x176)]),'localDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)][_0x3fb2c4(0x165)]:optionalString(_0x3246e7['raw']?.['localDomain']),'certificateDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['certificateDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x166)]),'cdn':_0x547c41?.[_0x3fb2c4(0x182)]},{initEnv:_0x2629a6}=await import(_0x3fb2c4(0x19f)),{initDomains:_0x4a35a9}=await import('./constant/domain.js');_0x2629a6(_0x3246e7[_0x3fb2c4(0x183)]),_0x4a35a9(_0x5046cc);}function a269_0x3ab3(_0xe8da39,_0x2d25bf){_0xe8da39=_0xe8da39-0x15d;const _0x1cb722=a269_0x1cb7();let _0x3ab3b8=_0x1cb722[_0xe8da39];return _0x3ab3b8;}export async function initMultiAppEnvironment(_0x492858){const _0x49c6c5=a269_0x3ab3;await initConfiguredEnvironment({'raw':_0x492858[_0x49c6c5(0x1a0)],'configuredRegion':_0x492858[_0x49c6c5(0x173)],'regionLocation':'app\x20profile\x20\x22'+_0x492858[_0x49c6c5(0x16d)]+'\x22','targetEnv':_0x492858[_0x49c6c5(0x19a)]===_0x49c6c5(0x178)?_0x49c6c5(0x178):_0x49c6c5(0x1a2)});}export function getConfigAppCode(_0x29c533){const _0x19f977=a269_0x3ab3,_0x13baeb=readRawConfig(_0x29c533);if(_0x13baeb[_0x19f977(0x189)]&&typeof _0x13baeb[_0x19f977(0x189)]===_0x19f977(0x169)){const _0x2208bc=_0x13baeb[_0x19f977(0x160)];if(_0x2208bc)return _0x13baeb[_0x19f977(0x189)][_0x2208bc]?.[_0x19f977(0x18a)]?String(_0x13baeb[_0x19f977(0x189)][_0x2208bc]['appcode'])[_0x19f977(0x164)]():undefined;const _0x1b078d=Object['values'](_0x13baeb[_0x19f977(0x189)]);if(_0x1b078d['length']===0x1&&_0x1b078d[0x0]?.['appcode'])return String(_0x1b078d[0x0][_0x19f977(0x18a)])[_0x19f977(0x164)]();}const _0x35ef8d=_0x13baeb['appcode']||_0x13baeb[_0x19f977(0x16a)];if(typeof _0x35ef8d!==_0x19f977(0x16c)||_0x35ef8d['trim']()==='')return undefined;return _0x35ef8d[_0x19f977(0x164)]();}const CONNECTION_ROUTING_KEYS=['routing','apiDomain','userDomain',a269_0x21092a(0x198),'skillDomain',a269_0x21092a(0x16e),a269_0x21092a(0x187),a269_0x21092a(0x167),a269_0x21092a(0x197),a269_0x21092a(0x176),a269_0x21092a(0x165),'certificateDomain'];function pickConnectionRoutingConfig(_0x15c6ce,_0x197345){const _0x364f9d={'region':_0x197345};for(const _0x19c958 of CONNECTION_ROUTING_KEYS){if(_0x15c6ce[_0x19c958]!==undefined)_0x364f9d[_0x19c958]=_0x15c6ce[_0x19c958];}return _0x364f9d;}export function getMultiAppConfigs(_0x2cc484=a269_0x21092a(0x171),_0x504182){const _0x40b83a=a269_0x21092a,_0x31c8dd=loadRawConfigLayers(_0x504182);let _0x2a8cd3,_0x1fd00c;const _0x4e24da=mergeRawConfigLayers(_0x31c8dd),_0x47987f=_0x31c8dd[_0x40b83a(0x192)][_0x40b83a(0x189)]&&typeof _0x31c8dd[_0x40b83a(0x192)][_0x40b83a(0x189)]==='object'?_0x31c8dd[_0x40b83a(0x192)][_0x40b83a(0x189)]:{},_0x105784=_0x31c8dd[_0x40b83a(0x199)]['apps']&&typeof _0x31c8dd[_0x40b83a(0x199)][_0x40b83a(0x189)]===_0x40b83a(0x169)?_0x31c8dd[_0x40b83a(0x199)][_0x40b83a(0x189)]:{};_0x2cc484===_0x40b83a(0x190)?(_0x2a8cd3={..._0x47987f,..._0x105784},_0x1fd00c=_0x4e24da[_0x40b83a(0x160)]):(_0x2a8cd3=_0x31c8dd[_0x40b83a(0x199)][_0x40b83a(0x189)],_0x1fd00c=_0x31c8dd[_0x40b83a(0x199)]['defaultApp']);!_0x1fd00c&&_0x2a8cd3&&typeof _0x2a8cd3==='object'&&Object['keys'](_0x2a8cd3)[_0x40b83a(0x1a5)]===0x1&&(_0x1fd00c=Object['keys'](_0x2a8cd3)[0x0]);if(!_0x2a8cd3||typeof _0x2a8cd3!=='object'||Object['keys'](_0x2a8cd3)[_0x40b83a(0x1a5)]===0x0)return null;return Object[_0x40b83a(0x193)](_0x2a8cd3)[_0x40b83a(0x188)](([_0xe60f5f,_0x2f9998])=>{const _0x586a4d=_0x40b83a,_0x4aae9f=_0x2cc484===_0x586a4d(0x171)||Object[_0x586a4d(0x186)][_0x586a4d(0x15e)][_0x586a4d(0x17b)](_0x105784,_0xe60f5f),_0x4640ca=_0x4aae9f?_0x4e24da:_0x31c8dd[_0x586a4d(0x192)],_0x59924d=resolveEffectiveRegion({'appRegion':_0x2f9998?.[_0x586a4d(0x173)],'projectRegion':_0x4aae9f?_0x31c8dd[_0x586a4d(0x199)][_0x586a4d(0x173)]:undefined,'globalRegion':_0x31c8dd['globalConfig'][_0x586a4d(0x173)],'mergedRegion':_0x4640ca['region'],'appName':_0xe60f5f});return{'name':_0xe60f5f,'appcode':_0x2f9998?.['appcode']||'','apiGroup':optionalString(_0x2f9998?.[_0x586a4d(0x181)]),'isDefault':_0xe60f5f===_0x1fd00c,'region':_0x59924d[_0x586a4d(0x173)],'regionSource':_0x59924d[_0x586a4d(0x174)],'env':_0x2f9998?.['env'],'apiDir':optionalString(_0x2f9998?.[_0x586a4d(0x1a1)])||optionalString(_0x4640ca['apiDir']),'cookie':_0x2f9998?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4640ca,_0x59924d['region'])};})['filter'](_0x3300cf=>_0x3300cf[_0x40b83a(0x18a)]);}export function getTemplateBaseUrl(_0x4500ed){const _0x321257=a269_0x21092a,_0x60a993=readRawConfig(_0x4500ed);if(_0x60a993['template_base_url']&&typeof _0x60a993[_0x321257(0x196)]===_0x321257(0x16c))return _0x60a993['template_base_url']['replace'](/\/$/,'');return _0x321257(0x1a6);}function buildConfig(_0x51f228,_0x46dd1c,_0x25662a){return{...resolveAppConfig({'raw':_0x51f228,'flags':_0x46dd1c,'layers':_0x25662a,'readEnv':env}),'raw':_0x51f228};}export function resolveApiFilePath(_0x5893fe,_0x461a0d,_0xd2499a){const _0x3bd078=a269_0x21092a;return resolveApiModelSource(_0x5893fe,_0x461a0d,_0xd2499a)[_0x3bd078(0x179)];}
|
|
1
|
+
const a270_0x58b889=a270_0x20b2;(function(_0x253342,_0x688a43){const _0x5195eb=a270_0x20b2,_0x50919a=_0x253342();while(!![]){try{const _0x53b840=-parseInt(_0x5195eb(0x1b6))/0x1+-parseInt(_0x5195eb(0x1df))/0x2*(parseInt(_0x5195eb(0x1cb))/0x3)+parseInt(_0x5195eb(0x1af))/0x4+parseInt(_0x5195eb(0x1da))/0x5+-parseInt(_0x5195eb(0x1a4))/0x6*(-parseInt(_0x5195eb(0x1d0))/0x7)+-parseInt(_0x5195eb(0x1a6))/0x8*(parseInt(_0x5195eb(0x19f))/0x9)+parseInt(_0x5195eb(0x1aa))/0xa;if(_0x53b840===_0x688a43)break;else _0x50919a['push'](_0x50919a['shift']());}catch(_0x37e0c2){_0x50919a['push'](_0x50919a['shift']());}}}(a270_0x21a4,0xaf6b6));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(_0x22bb01){return process.env[`RABETBASE_${_0x22bb01}`]||process.env[`LOVRABET_${_0x22bb01}`]||undefined;}function optionalString(_0x35832a){const _0x1ce2eb=a270_0x20b2;return typeof _0x35832a==='string'&&_0x35832a[_0x1ce2eb(0x1e1)]()?_0x35832a['trim']():undefined;}export function isRoutingRecoveryService(_0x2ba312){const _0x135d4b=a270_0x20b2;return _0x2ba312===_0x135d4b(0x1b1)||_0x2ba312===_0x135d4b(0x1e3);}export async function createContext(_0x1c27fe){const _0x5e4a0c=a270_0x20b2,{config:_0x477218,layers:_0x463a2e}=readRawConfigWithLayers(),_0x53fa42=buildConfig(_0x477218,_0x1c27fe,_0x463a2e);await initGlobalEnvironment(_0x53fa42);const {getUserDomain:_0x4ec12a,getApiDomain:_0xa8cef8}=await import(_0x5e4a0c(0x1b3)),_0x35c583={'apiDomain':_0xa8cef8(),'userDomain':_0x4ec12a()},_0x3da7dd=await buildAuth(_0x53fa42);logger[_0x5e4a0c(0x1cd)](process[_0x5e4a0c(0x1b5)]());const _0x31b7b5=(CLI_BIN_NAME+'\x20'+process[_0x5e4a0c(0x1c1)]['slice'](0x2)['join']('\x20'))[_0x5e4a0c(0x1e1)]();logger[_0x5e4a0c(0x1d3)](_0x31b7b5);const {isNonInteractive:_0x68a3f7}=await import('./utils/is-non-interactive.js'),_0x3dd1bc=_0x68a3f7(_0x1c27fe);return{'config':_0x53fa42,'auth':_0x3da7dd,'logger':logger,'env':_0x35c583,'nonInteractive':_0x3dd1bc};}export function buildConfigFromFlags(_0x206cb4){const {config:_0x48f05f,layers:_0x28d936}=readRawConfigWithLayers();return buildConfig(_0x48f05f,_0x206cb4,_0x28d936);}function a270_0x21a4(){const _0x457e27=['4592696NNePEk','project\x20Rabetbase\x20configuration','config','object','./constant/domain.js','currentApp','cwd','1040701CNIWvU','regionLocation','global\x20Rabetbase\x20configuration','regionSource','platformDomain','map','globalConfig','cdn','apiDir','routing','apps','argv','app\x20profile\x20\x22','daily','userDomain','env','region','apiDomain','project','routingConfig','filter','804PqBzsg','targetEnv','setLogPath','length','certificateDomain','7196lPyIxR','replace','entries','setRawCommand','merged','runtimeDomain','global','kbServiceDomain','Rabetbase\x20configuration','production','3476935HkHCYF','skillHubDomain','name','domains','call','8730oAhjTd','keys','trim','defaultApp','doctor','apiGroup','skillDomain','agentDomain','source','appcode','regionConfiguredValue','some','9TbkPyY','projectConfig','configuredRegion','raw','appDomain','4242bjEhgm','prototype','6745720CHepRa','app','./constant/env.js','localDomain','12018970KGRKJV','hasOwnProperty','string','template_base_url','kbDomain'];a270_0x21a4=function(){return _0x457e27;};return a270_0x21a4();}export async function initGlobalEnvironment(_0x20598f){const _0x1c2fac=a270_0x20b2,_0x4efc3d=_0x20598f['regionSource']===_0x1c2fac(0x1a7)&&_0x20598f[_0x1c2fac(0x1b4)]?_0x1c2fac(0x1c2)+_0x20598f[_0x1c2fac(0x1b4)]+'\x22':_0x20598f['regionSource']===_0x1c2fac(0x1c8)?_0x1c2fac(0x1b0):_0x20598f[_0x1c2fac(0x1b9)]===_0x1c2fac(0x1d6)?_0x1c2fac(0x1b8):_0x1c2fac(0x1d8);await initConfiguredEnvironment({'raw':_0x20598f[_0x1c2fac(0x1a2)],'configuredRegion':_0x20598f[_0x1c2fac(0x19d)]??_0x20598f[_0x1c2fac(0x1a2)]?.[_0x1c2fac(0x1c6)]??_0x20598f[_0x1c2fac(0x1c6)],'regionLocation':_0x4efc3d,'targetEnv':_0x20598f[_0x1c2fac(0x1c5)]});}async function initConfiguredEnvironment(_0x1c9de3){const _0x5644b2=a270_0x20b2,_0x5baa36=resolveConfiguredRegion(_0x1c9de3[_0x5644b2(0x1a1)],_0x1c9de3[_0x5644b2(0x1b7)]),_0xa6354a=resolveEnterpriseRoutingManifest(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1bf)]),_0x55f6f5={'region':_0x5baa36,'apiDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['apiDomain']:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['apiDomain']),'userDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1c4)]:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1c4)]),'runtimeDomain':_0xa6354a?_0xa6354a['domains'][_0x5644b2(0x1d5)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1d5)]),'skillDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['skillDomain']:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e5)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1db)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e6)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['platformDomain']),'kbDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1ae)]:optionalString(_0x1c9de3['raw']?.['kbDomain'])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e6)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['platformDomain']),'kbServiceDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['kbServiceDomain']:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1d7)]),'appDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1a3)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['appDomain']),'localDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1a9)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['localDomain']),'certificateDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['certificateDomain']:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1cf)]),'cdn':_0xa6354a?.[_0x5644b2(0x1bd)],'allowOfficialKbServiceDefault':!(_0xa6354a!==undefined||[_0x5644b2(0x1c7),_0x5644b2(0x1c4),_0x5644b2(0x1d5),_0x5644b2(0x1e5),_0x5644b2(0x1db),_0x5644b2(0x1ae),_0x5644b2(0x1d7),_0x5644b2(0x1e6),_0x5644b2(0x1ba),'appDomain','localDomain',_0x5644b2(0x1cf)][_0x5644b2(0x19e)](_0x9b978c=>Object['prototype'][_0x5644b2(0x1ab)][_0x5644b2(0x1de)](_0x1c9de3[_0x5644b2(0x1a2)]??{},_0x9b978c)))},{initEnv:_0x3a0044}=await import(_0x5644b2(0x1a8)),{initDomains:_0x510942}=await import(_0x5644b2(0x1b3));_0x3a0044(_0x1c9de3[_0x5644b2(0x1cc)]),_0x510942(_0x55f6f5);}function a270_0x20b2(_0xa9e3c9,_0x3978f4){_0xa9e3c9=_0xa9e3c9-0x19c;const _0x21a4cc=a270_0x21a4();let _0x20b2a2=_0x21a4cc[_0xa9e3c9];return _0x20b2a2;}export async function initMultiAppEnvironment(_0x365ae2){const _0x6275c9=a270_0x20b2;await initConfiguredEnvironment({'raw':_0x365ae2[_0x6275c9(0x1c9)],'configuredRegion':_0x365ae2['region'],'regionLocation':_0x6275c9(0x1c2)+_0x365ae2[_0x6275c9(0x1dc)]+'\x22','targetEnv':_0x365ae2[_0x6275c9(0x1c5)]==='daily'?_0x6275c9(0x1c3):_0x6275c9(0x1d9)});}export function getConfigAppCode(_0x21db43){const _0x332cff=a270_0x20b2,_0x1ecbaa=readRawConfig(_0x21db43);if(_0x1ecbaa[_0x332cff(0x1c0)]&&typeof _0x1ecbaa[_0x332cff(0x1c0)]===_0x332cff(0x1b2)){const _0xdec3cf=_0x1ecbaa[_0x332cff(0x1e2)];if(_0xdec3cf)return _0x1ecbaa[_0x332cff(0x1c0)][_0xdec3cf]?.[_0x332cff(0x19c)]?String(_0x1ecbaa[_0x332cff(0x1c0)][_0xdec3cf][_0x332cff(0x19c)])[_0x332cff(0x1e1)]():undefined;const _0x5bc4bb=Object['values'](_0x1ecbaa[_0x332cff(0x1c0)]);if(_0x5bc4bb[_0x332cff(0x1ce)]===0x1&&_0x5bc4bb[0x0]?.[_0x332cff(0x19c)])return String(_0x5bc4bb[0x0][_0x332cff(0x19c)])['trim']();}const _0x435b09=_0x1ecbaa[_0x332cff(0x19c)]||_0x1ecbaa['app'];if(typeof _0x435b09!=='string'||_0x435b09[_0x332cff(0x1e1)]()==='')return undefined;return _0x435b09['trim']();}const CONNECTION_ROUTING_KEYS=[a270_0x58b889(0x1bf),a270_0x58b889(0x1c7),'userDomain',a270_0x58b889(0x1d5),a270_0x58b889(0x1e5),a270_0x58b889(0x1db),a270_0x58b889(0x1ae),'kbServiceDomain',a270_0x58b889(0x1e6),'platformDomain',a270_0x58b889(0x1a3),'localDomain','certificateDomain'];function withAppProfileRouting(_0x1d688b,_0x39a585){const _0x1ddef7=a270_0x58b889;if(!_0x39a585||_0x39a585[_0x1ddef7(0x1d7)]===undefined)return _0x1d688b;return{..._0x1d688b,'kbServiceDomain':_0x39a585['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x28143e,_0x416f35){const _0x2871f3={'region':_0x416f35};for(const _0x2abd4e of CONNECTION_ROUTING_KEYS){if(_0x28143e[_0x2abd4e]!==undefined)_0x2871f3[_0x2abd4e]=_0x28143e[_0x2abd4e];}return _0x2871f3;}export function getMultiAppConfigs(_0xbb9722=a270_0x58b889(0x1c8),_0x54ed57){const _0x211081=a270_0x58b889,_0x4a9fcd=loadRawConfigLayers(_0x54ed57);let _0x347b35,_0x9fe3d9;const _0x34601f=mergeRawConfigLayers(_0x4a9fcd),_0x288e83=_0x4a9fcd[_0x211081(0x1bc)][_0x211081(0x1c0)]&&typeof _0x4a9fcd[_0x211081(0x1bc)][_0x211081(0x1c0)]==='object'?_0x4a9fcd['globalConfig'][_0x211081(0x1c0)]:{},_0xbb9c5=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]&&typeof _0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]===_0x211081(0x1b2)?_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]:{};_0xbb9722===_0x211081(0x1d4)?(_0x347b35={..._0x288e83,..._0xbb9c5},_0x9fe3d9=_0x34601f[_0x211081(0x1e2)]):(_0x347b35=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)],_0x9fe3d9=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1e2)]);!_0x9fe3d9&&_0x347b35&&typeof _0x347b35===_0x211081(0x1b2)&&Object['keys'](_0x347b35)[_0x211081(0x1ce)]===0x1&&(_0x9fe3d9=Object[_0x211081(0x1e0)](_0x347b35)[0x0]);if(!_0x347b35||typeof _0x347b35!==_0x211081(0x1b2)||Object[_0x211081(0x1e0)](_0x347b35)['length']===0x0)return null;return Object[_0x211081(0x1d2)](_0x347b35)[_0x211081(0x1bb)](([_0x5d65cb,_0xb9495b])=>{const _0x4c8af8=_0x211081,_0x63aa4f=_0xbb9722===_0x4c8af8(0x1c8)||Object[_0x4c8af8(0x1a5)]['hasOwnProperty'][_0x4c8af8(0x1de)](_0xbb9c5,_0x5d65cb),_0x117509=withAppProfileRouting(_0x63aa4f?_0x34601f:_0x4a9fcd[_0x4c8af8(0x1bc)],_0xb9495b),_0x54fedf=resolveEffectiveRegion({'appRegion':_0xb9495b?.[_0x4c8af8(0x1c6)],'projectRegion':_0x63aa4f?_0x4a9fcd[_0x4c8af8(0x1a0)][_0x4c8af8(0x1c6)]:undefined,'globalRegion':_0x4a9fcd[_0x4c8af8(0x1bc)][_0x4c8af8(0x1c6)],'mergedRegion':_0x117509[_0x4c8af8(0x1c6)],'appName':_0x5d65cb});return{'name':_0x5d65cb,'appcode':_0xb9495b?.['appcode']||'','apiGroup':optionalString(_0xb9495b?.[_0x4c8af8(0x1e4)]),'isDefault':_0x5d65cb===_0x9fe3d9,'region':_0x54fedf[_0x4c8af8(0x1c6)],'regionSource':_0x54fedf[_0x4c8af8(0x1e7)],'env':_0xb9495b?.['env'],'apiDir':optionalString(_0xb9495b?.['apiDir'])||optionalString(_0x117509[_0x4c8af8(0x1be)]),'cookie':_0xb9495b?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x117509,_0x54fedf[_0x4c8af8(0x1c6)])};})[_0x211081(0x1ca)](_0x4bf0e2=>_0x4bf0e2['appcode']);}export function getTemplateBaseUrl(_0x45a843){const _0x520b27=a270_0x58b889,_0x14f9f6=readRawConfig(_0x45a843);if(_0x14f9f6[_0x520b27(0x1ad)]&&typeof _0x14f9f6['template_base_url']===_0x520b27(0x1ac))return _0x14f9f6[_0x520b27(0x1ad)][_0x520b27(0x1d1)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x27ced8,_0x4b3140,_0x4d6a16){const _0x208a9e=a270_0x58b889,_0xbd82c3=resolveAppConfig({'raw':_0x27ced8,'flags':_0x4b3140,'layers':_0x4d6a16,'readEnv':env}),_0x4fd88b=_0xbd82c3[_0x208a9e(0x1b4)]?_0xbd82c3[_0x208a9e(0x1c0)][_0xbd82c3['currentApp']]:undefined;return{..._0xbd82c3,'raw':withAppProfileRouting(_0x27ced8,_0x4fd88b)};}export function resolveApiFilePath(_0x4cd631,_0x3eb4db,_0x40ae6d){return resolveApiModelSource(_0x4cd631,_0x3eb4db,_0x40ae6d)['filePath'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a271_0x334f50=a271_0x1d8b;(function(_0x5bf2d0,_0x5e7fcb){const _0x2f45f7=a271_0x1d8b,_0x256bee=_0x5bf2d0();while(!![]){try{const _0x1ae05d=-parseInt(_0x2f45f7(0xe0))/0x1+-parseInt(_0x2f45f7(0xe1))/0x2*(-parseInt(_0x2f45f7(0xf8))/0x3)+-parseInt(_0x2f45f7(0xf6))/0x4+parseInt(_0x2f45f7(0x102))/0x5+-parseInt(_0x2f45f7(0xef))/0x6*(-parseInt(_0x2f45f7(0xe8))/0x7)+parseInt(_0x2f45f7(0xdc))/0x8+parseInt(_0x2f45f7(0xf7))/0x9;if(_0x1ae05d===_0x5e7fcb)break;else _0x256bee['push'](_0x256bee['shift']());}catch(_0x5e7281){_0x256bee['push'](_0x256bee['shift']());}}}(a271_0x2603,0xb6c66));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';function a271_0x2603(){const _0x5d8892=['utf-8','flatMap','size','6OhoRAV','flags','.ts','cwd','../','.cts','tableName','2171580JHLjIb','3709035BAQnWS','42387kLehvR','source','api.ts','length','map','alias','set','.js','startsWith','push','66725FOlAez','get','.mjs','datasetCode','stringify','endsWith','9266960SqWELh','filter','.mts','add','1102049jwuwOp','18paZCOU','index','isFile','.jsx','.cjs','has','name','4778193kEwoyF','.tsx','exec','defaultProfile'];a271_0x2603=function(){return _0x5d8892;};return a271_0x2603();}import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a271_0x334f50(0xf1),a271_0x334f50(0xe9),'.mts',a271_0x334f50(0xf4),a271_0x334f50(0xff),a271_0x334f50(0xe4),a271_0x334f50(0x104),a271_0x334f50(0xe5)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a271_0x334f50(0xf1),a271_0x334f50(0xe9)],'.jsx':[a271_0x334f50(0xe9)],'.mjs':[a271_0x334f50(0xde)],'.cjs':[a271_0x334f50(0xf4)]};function parseApiFile(_0x953211){const _0x4ed449=a271_0x334f50;return parseLegacyApiModels(_0x953211)[_0x4ed449(0xed)](_0x15f053=>_0x15f053[_0x4ed449(0xfd)]?[{'alias':_0x15f053[_0x4ed449(0xfd)],'datasetCode':_0x15f053[_0x4ed449(0x105)],'tableName':_0x15f053[_0x4ed449(0xf5)],'name':_0x15f053[_0x4ed449(0xe7)]}]:[]);}function isWithinRoot(_0x2bece4,_0x19278f){const _0x48a050=a271_0x334f50,_0x922ec=relative(_0x2bece4,_0x19278f);return _0x922ec===''||!_0x922ec[_0x48a050(0x100)]('..')&&!isAbsolute(_0x922ec);}function resolveExistingFile(_0x142c75){const _0x872024=a271_0x334f50;if(!existsSync(_0x142c75))return undefined;try{return statSync(_0x142c75)[_0x872024(0xe3)]()?realpathSync(_0x142c75):undefined;}catch{return undefined;}}function a271_0x1d8b(_0x2d9e40,_0x1a742d){_0x2d9e40=_0x2d9e40-0xdc;const _0x260390=a271_0x2603();let _0x1d8bc9=_0x260390[_0x2d9e40];return _0x1d8bc9;}function reexportCandidatePaths(_0x52c2fc){const _0x68a0f1=a271_0x334f50,_0x549523=extname(_0x52c2fc);if(!_0x549523)return[...SOURCE_FILE_EXTENSIONS['map'](_0x2e9d3c=>''+_0x52c2fc+_0x2e9d3c),...SOURCE_FILE_EXTENSIONS[_0x68a0f1(0xfc)](_0x4d215c=>resolve(_0x52c2fc,_0x68a0f1(0xe2)+_0x4d215c))];const _0x224167=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x549523];if(!_0x224167)return[_0x52c2fc];const _0x540fe2=_0x52c2fc['slice'](0x0,-_0x549523[_0x68a0f1(0xfb)]);return[..._0x224167[_0x68a0f1(0xfc)](_0x1b4b18=>''+_0x540fe2+_0x1b4b18),_0x52c2fc];}function resolveLocalReexport(_0x1ab732,_0x289693,_0x30ec75){const _0x24bc1d=a271_0x334f50;if(!_0x289693[_0x24bc1d(0x100)]('./')&&!_0x289693['startsWith'](_0x24bc1d(0xf3)))return undefined;const _0x512cc4=resolve(dirname(_0x1ab732),_0x289693);if(!isWithinRoot(_0x30ec75,_0x512cc4))return undefined;for(const _0x513286 of reexportCandidatePaths(_0x512cc4)){const _0x6982e1=resolveExistingFile(_0x513286);if(_0x6982e1&&isWithinRoot(_0x30ec75,_0x6982e1))return _0x6982e1;}return undefined;}function parseApiFileTree(_0x10da5f,_0x1a67ff,_0x22950a,_0x2051e4){const _0x4cc39c=a271_0x334f50,_0x4c073c=resolveExistingFile(_0x10da5f);if(!_0x4c073c)return[];const _0x2c7b01=_0x22950a[_0x4cc39c(0x103)](_0x4c073c);if(_0x2c7b01!==undefined&&_0x2c7b01<=_0x2051e4)return[];_0x22950a['set'](_0x4c073c,_0x2051e4);const _0x1650b1=readFileSync(_0x4c073c,_0x4cc39c(0xec)),_0x2dd53a=parseApiFile(_0x1650b1);if(_0x2051e4>=MAX_LOCAL_REEXPORT_DEPTH)return _0x2dd53a;const _0x15b98c=new RegExp(LOCAL_REEXPORT_RE[_0x4cc39c(0xf9)],LOCAL_REEXPORT_RE[_0x4cc39c(0xf0)]);let _0x59dca4;while((_0x59dca4=_0x15b98c[_0x4cc39c(0xea)](_0x1650b1))!==null){const _0xb56aa5=resolveLocalReexport(_0x4c073c,_0x59dca4[0x1],_0x1a67ff);_0xb56aa5&&_0x2dd53a[_0x4cc39c(0x101)](...parseApiFileTree(_0xb56aa5,_0x1a67ff,_0x22950a,_0x2051e4+0x1));}return _0x2dd53a;}function aliasProjectRoot(_0x57f682){const _0x26247f=findProjectRootDirectory(dirname(_0x57f682));try{return realpathSync(_0x26247f);}catch{return _0x26247f;}}function uniqueAliasEntries(_0x215222){const _0x3e2e2c=a271_0x334f50,_0x2c1399=new Set();return _0x215222[_0x3e2e2c(0xdd)](_0x4ea6eb=>{const _0xef4fae=_0x3e2e2c,_0x5e5ce5=JSON[_0xef4fae(0x106)](_0x4ea6eb);if(_0x2c1399[_0xef4fae(0xe6)](_0x5e5ce5))return![];return _0x2c1399[_0xef4fae(0xdf)](_0x5e5ce5),!![];});}export function loadAliasMap(_0x409aa2,_0x88c52b,_0x6a9a6b,_0x27bb1f){const _0x122b41=a271_0x334f50,_0x507826=resolve(_0x6a9a6b??resolve(process[_0x122b41(0xf2)](),_0x409aa2,_0x122b41(0xfa))),_0x215ab3=_0x27bb1f?_0x507826+'#'+_0x27bb1f:_0x507826;if(cache[_0x122b41(0xe6)](_0x215ab3))return cache[_0x122b41(0x103)](_0x215ab3);if(!existsSync(_0x507826))return cache[_0x122b41(0xfe)](_0x215ab3,[]),[];try{if(_0x507826[_0x122b41(0x107)](MODEL_REGISTRY_FILE_NAME)){const _0x1760f5=readModelRegistry(_0x507826),_0x41cb41=_0x27bb1f??_0x1760f5?.[_0x122b41(0xeb)],_0xe0ff1a=_0x41cb41&&_0x1760f5?getProfileModels(_0x1760f5,_0x41cb41):[],_0x302d80=uniqueAliasEntries(_0xe0ff1a['flatMap'](_0x5b82d8=>_0x5b82d8[_0x122b41(0xfd)]?[{'alias':_0x5b82d8['alias'],'datasetCode':_0x5b82d8[_0x122b41(0x105)],'tableName':_0x5b82d8[_0x122b41(0xf5)],'name':_0x5b82d8[_0x122b41(0xe7)]}]:[]));return cache[_0x122b41(0xfe)](_0x215ab3,_0x302d80),_0x302d80;}const _0x1d5abf=uniqueAliasEntries(parseApiFileTree(_0x507826,aliasProjectRoot(_0x507826),new Map(),0x0));return cache[_0x122b41(0xfe)](_0x215ab3,_0x1d5abf),_0x1d5abf;}catch{return cache[_0x122b41(0xfe)](_0x215ab3,[]),[];}}export function resolveAlias(_0x4364c6,_0xccdc54,_0x450ab1,_0x170b8,_0x4054a1){const _0x50dfcf=a271_0x334f50;if(!_0xccdc54)return undefined;const _0x38c55c=loadAliasMap(_0x4364c6,_0x450ab1,_0x170b8,_0x4054a1),_0x25905a=new Set(_0x38c55c[_0x50dfcf(0xdd)](_0x2c96af=>_0x2c96af[_0x50dfcf(0xfd)]===_0xccdc54)[_0x50dfcf(0xfc)](_0x261392=>_0x261392[_0x50dfcf(0x105)]));return _0x25905a[_0x50dfcf(0xee)]===0x1?[..._0x25905a][0x0]:undefined;}export function listAliases(_0x2320aa,_0x36d4c1,_0x16a6aa,_0x28cf08){return loadAliasMap(_0x2320aa,_0x36d4c1,_0x16a6aa,_0x28cf08);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export declare function recognizeDevelopmentOcr(appCode: string, input: {
|
|
|
57
57
|
}): Promise<DevelopmentOcrResponse>;
|
|
58
58
|
export declare const DING_TALK_SANDBOX_BIND_PATH = "/smartapi/user-accounts/cli/dingding-sandbox/bind";
|
|
59
59
|
export declare function bindDingTalkSandboxAccount(dingTalkUserId: string): Promise<boolean>;
|
|
60
|
+
export declare const FEISHU_BIND_PATH = "/smartapi/user-accounts/cli/feishu/bind";
|
|
61
|
+
export declare function bindFeishuAccount(openId: string): Promise<boolean>;
|
|
60
62
|
export interface PlatformFetchOptions {
|
|
61
63
|
method?: "GET" | "POST";
|
|
62
64
|
body?: Record<string, any>;
|