@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.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.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +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.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -2
- package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
- package/skills/rabetbase.manifest.json +3 -3
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a257_0x26bba7=a257_0x5032;(function(_0x537c37,_0x4629bc){const _0x3b6301=a257_0x5032,_0x54fc9a=_0x537c37();while(!![]){try{const _0xa53687=parseInt(_0x3b6301(0x1b4))/0x1+-parseInt(_0x3b6301(0x1ae))/0x2+parseInt(_0x3b6301(0x1aa))/0x3+-parseInt(_0x3b6301(0x1a6))/0x4*(-parseInt(_0x3b6301(0x1af))/0x5)+-parseInt(_0x3b6301(0x1a4))/0x6+-parseInt(_0x3b6301(0x1a5))/0x7*(-parseInt(_0x3b6301(0x1ad))/0x8)+parseInt(_0x3b6301(0x1a8))/0x9*(parseInt(_0x3b6301(0x1a3))/0xa);if(_0xa53687===_0x4629bc)break;else _0x54fc9a['push'](_0x54fc9a['shift']());}catch(_0x9b358a){_0x54fc9a['push'](_0x54fc9a['shift']());}}}(a257_0x5356,0x31774));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a257_0x26bba7(0x1ac),RABETBASE_CDN_CONFIG_ORIGIN=a257_0x26bba7(0x1b2),CDN_CONFIG_PATH=a257_0x26bba7(0x1a9),PROJECT_TEMPLATE_ASSET_PATH=a257_0x26bba7(0x1ab),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object['freeze']({'release':a257_0x26bba7(0x1b1),'beta':a257_0x26bba7(0x1a2)});export const RABETBASE_CDN_PROJECT_PATH=a257_0x26bba7(0x1a1)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x8b6169=a257_0x26bba7;return''+getActiveCdn()[_0x8b6169(0x1b0)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a257_0x5032(_0x517c4d,_0x11769b){_0x517c4d=_0x517c4d-0x1a1;const _0x5356c4=a257_0x5356();let _0x50326a=_0x5356c4[_0x517c4d];return _0x50326a;}export function getProjectTemplateRelativeUrl(_0x101042,_0x142d45){const _0x420526=a257_0x26bba7,_0x595e86=_0x142d45?_0x420526(0x1a7)+_0x142d45+_0x420526(0x1b3):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x101042];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x595e86;}function a257_0x5356(){const _0x3ff8f4=['433869ExAQju','templates/projects','rabetbase-cli','1790312rzdjxc','647194UgNYsb','269465NKcLwg','lovrabet','sub-app-react-demo.zip','https://g.lovrabet.com','.zip','193053CAazBy','/dist/','sub-app-react-demo-beta.zip','2100jLCRrM','2350554SGmPjg','7OuecyZ','4MfGwWa','sub-app-react-demo-','12969tPdJIQ','config/index.json'];a257_0x5356=function(){return _0x3ff8f4;};return a257_0x5356();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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();}
|
|
1
|
+
function a258_0x6d6b(){const _0x4e9b45=['sqlName','Environment','json\x20|\x20pretty\x20|\x20compress','Read\x20value\x20from\x20stdin','topk','datasetcode','Tags','Description','expectedChildrenCount','from-env','Flow\x20code','datasetCode','tags','expected-count','Preview\x20operation\x20without\x20executing','stdin','skip-imports','Use\x20remote','Expected\x20current\x20menu\x20path','1546029DfSDkn','format','rabetbase','SQL\x20code','Read\x20value\x20from\x20environment\x20variable','verbose','env','output','Expected\x20affected\x20count','taskId','10BifFul','Force\x20overwrite','menu-ids','Menu\x20sort\x20value','dataset-code','flow-type','<code>','operation-type','Expected\x20current\x20parent\x20menu\x20id','flow-code','Comma-separated\x20menu\x20IDs','codes','fromEnv','Verbose\x20output','28NpBQfW','dryRun','818878MQkQSD','dbId','force','Enable\x20Backend\x20Function\x20save','Reveal\x20sensitive\x20value','flow-status','all','page','locale','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','descriptionFile','Description\x20file','skipImports','title','sql','flow-name','3743645dWQadW','Function\x20node','app','key','project','Watch\x20mode','23670bYIyGs','global','Show\x20help','expect-parent-id','<name>','target','operation','clear','Schemas','Skip\x20import\x20generation','description','dry-run','DB\x20ID','Config\x20key','keyword','363194RrXhPo','Flow\x20type','464431GcDpsq','file','page-size','Type\x20filter','help','Use\x20project\x20config\x20scope','fromEntries','Code\x20filter','confirm','68763nUERaX','Clear','Operation\x20type','params','Page\x20size','flowStatus','code','type','Search\x20query','Menu\x20label','yes','zh-CN\x20|\x20en-US','remote','db-id','Keyword\x20filter','parent-id','Use\x20global\x20config\x20scope','Target\x20path','name','expect-path','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','task-id','expectedCount','parentId','flowName','pageSize','watch','Title','pagesize','1533fuTSON','functionNode','schemas','value','appcode','query','enable-bff-save','production\x20|\x20daily','@lovrabet/rabetbase-cli','sqlcode','flowType','Rabetbase\x20CLI','<expr>','Parent\x20menu\x20id','flowCode','Comma-separated\x20metadata\x20codes','sql-name','Select\x20app\x20profile\x20by\x20name','menuIds','Dataset\x20code','Asynchronous\x20task\x20ID','SQL\x20string','dbid','boolean','reveal','expectParentId','Expected\x20current\x20child\x20count','Confirm\x20destructive\x20action','SQL\x20name','40oilVSV','non-interactive','sort','label','string'];a258_0x6d6b=function(){return _0x4e9b45;};return a258_0x6d6b();}const a258_0x99b826=a258_0x5633;(function(_0x5ab70f,_0x1729b1){const _0x5f4d6c=a258_0x5633,_0x5df51c=_0x5ab70f();while(!![]){try{const _0x3a4d5c=parseInt(_0x5f4d6c(0x18d))/0x1+-parseInt(_0x5f4d6c(0x168))/0x2+-parseInt(_0x5f4d6c(0x198))/0x3*(parseInt(_0x5f4d6c(0x166))/0x4)+parseInt(_0x5f4d6c(0x178))/0x5+-parseInt(_0x5f4d6c(0x17e))/0x6*(-parseInt(_0x5f4d6c(0x1b5))/0x7)+parseInt(_0x5f4d6c(0x1d2))/0x8*(-parseInt(_0x5f4d6c(0x1ea))/0x9)+parseInt(_0x5f4d6c(0x158))/0xa*(-parseInt(_0x5f4d6c(0x18f))/0xb);if(_0x3a4d5c===_0x1729b1)break;else _0x5df51c['push'](_0x5df51c['shift']());}catch(_0x48872b){_0x5df51c['push'](_0x5df51c['shift']());}}}(a258_0x6d6b,0x7b422));export const CLI_BIN_NAME=a258_0x99b826(0x150);export const CLI_DISPLAY_NAME=a258_0x99b826(0x1c0);export const NPM_PACKAGE_NAME=a258_0x99b826(0x1bd);function a258_0x5633(_0x5088c8,_0x2b667f){_0x5088c8=_0x5088c8-0x14f;const _0x6d6b80=a258_0x6d6b();let _0x5633e2=_0x6d6b80[_0x5088c8];return _0x5633e2;}export const GLOBAL_FLAGS=[{'name':a258_0x99b826(0x1b9),'meowKey':a258_0x99b826(0x1b9),'type':a258_0x99b826(0x1d6),'description':'Override\x20appcode','hint':a258_0x99b826(0x15e)},{'name':a258_0x99b826(0x17a),'meowKey':a258_0x99b826(0x17a),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c6),'hint':a258_0x99b826(0x182)},{'name':a258_0x99b826(0x154),'meowKey':a258_0x99b826(0x154),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d8),'hint':a258_0x99b826(0x1bc)},{'name':a258_0x99b826(0x14f),'meowKey':'format','type':a258_0x99b826(0x1d6),'description':'Output\x20format','hint':a258_0x99b826(0x1d9)},{'name':'jq','meowKey':'jq','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x171),'hint':a258_0x99b826(0x1c1)},{'name':a258_0x99b826(0x189),'meowKey':a258_0x99b826(0x167),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1e5)},{'name':a258_0x99b826(0x1a2),'meowKey':a258_0x99b826(0x1a2),'type':a258_0x99b826(0x1cc),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a258_0x99b826(0x1d3),'meowKey':'nonInteractive','type':a258_0x99b826(0x1cc),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a258_0x99b826(0x17f),'meowKey':a258_0x99b826(0x17f),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1a8)},{'name':'project','meowKey':a258_0x99b826(0x17c),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x194)},{'name':'ci','meowKey':'ci','type':a258_0x99b826(0x1cc),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a258_0x99b826(0x193),'type':'boolean','description':a258_0x99b826(0x180)},{'name':a258_0x99b826(0x170),'meowKey':'locale','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1ac),'hidden':!![],'hint':a258_0x99b826(0x1a3)},{'name':a258_0x99b826(0x1aa),'meowKey':a258_0x99b826(0x1aa),'type':a258_0x99b826(0x1d6),'description':'Name','hidden':!![]},{'name':'title','meowKey':a258_0x99b826(0x175),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1b3),'hidden':!![]},{'name':a258_0x99b826(0x1ba),'meowKey':a258_0x99b826(0x1ba),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a0),'hidden':!![]},{'name':a258_0x99b826(0x1db),'meowKey':a258_0x99b826(0x1db),'type':a258_0x99b826(0x1d6),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a258_0x99b826(0x185),'meowKey':a258_0x99b826(0x185),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x199),'hidden':!![]},{'name':'watch','meowKey':a258_0x99b826(0x1b2),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x17d),'hidden':!![]},{'name':a258_0x99b826(0x155),'meowKey':a258_0x99b826(0x155),'type':a258_0x99b826(0x1d6),'description':'Output\x20path','hidden':!![]},{'name':a258_0x99b826(0x19b),'meowKey':a258_0x99b826(0x19b),'type':a258_0x99b826(0x1d6),'description':'JSON\x20params','hidden':!![]},{'name':a258_0x99b826(0x1dc),'meowKey':a258_0x99b826(0x1dc),'type':'string','description':a258_0x99b826(0x1c8),'hidden':!![]},{'name':a258_0x99b826(0x16e),'meowKey':a258_0x99b826(0x16e),'type':a258_0x99b826(0x1cc),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a258_0x99b826(0x1bb),'meowKey':'enableBffSave','type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x16b),'hidden':!![]},{'name':'id','meowKey':'id','type':a258_0x99b826(0x1d6),'description':'Record\x20ID','hidden':!![]},{'name':a258_0x99b826(0x19f),'meowKey':a258_0x99b826(0x19f),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x192),'hidden':!![]},{'name':a258_0x99b826(0x190),'meowKey':a258_0x99b826(0x190),'type':'string','description':'File\x20path','hidden':!![]},{'name':a258_0x99b826(0x161),'meowKey':a258_0x99b826(0x1c3),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1e1),'hidden':!![]},{'name':a258_0x99b826(0x177),'meowKey':a258_0x99b826(0x1b0),'type':a258_0x99b826(0x1d6),'description':'Flow\x20name','hidden':!![]},{'name':a258_0x99b826(0x16d),'meowKey':a258_0x99b826(0x19d),'type':a258_0x99b826(0x1d6),'description':'Flow\x20status','hidden':!![]},{'name':a258_0x99b826(0x15d),'meowKey':a258_0x99b826(0x1bf),'type':'string','description':a258_0x99b826(0x18e),'hidden':!![]},{'name':a258_0x99b826(0x15c),'meowKey':a258_0x99b826(0x1e2),'type':a258_0x99b826(0x1d6),'description':'Dataset\x20code','hidden':!![]},{'name':'sqlcode','meowKey':a258_0x99b826(0x1be),'type':'string','description':a258_0x99b826(0x151),'hidden':!![]},{'name':a258_0x99b826(0x1c5),'meowKey':a258_0x99b826(0x1d7),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d1),'hidden':!![]},{'name':'sqlname','meowKey':'sqlname','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d1),'hidden':!![]},{'name':a258_0x99b826(0x1a5),'meowKey':a258_0x99b826(0x169),'type':'string','description':a258_0x99b826(0x18a),'hidden':!![]},{'name':'dbid','meowKey':a258_0x99b826(0x1cb),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x18a),'hidden':!![]},{'name':a258_0x99b826(0x188),'meowKey':a258_0x99b826(0x188),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1de),'hidden':!![]},{'name':'description-file','meowKey':a258_0x99b826(0x172),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x173),'hidden':!![]},{'name':a258_0x99b826(0x16f),'meowKey':a258_0x99b826(0x16f),'type':a258_0x99b826(0x1d6),'description':'Page\x20number','hidden':!![]},{'name':a258_0x99b826(0x191),'meowKey':a258_0x99b826(0x1b1),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x19c),'hidden':!![]},{'name':a258_0x99b826(0x1b4),'meowKey':'pagesize','type':a258_0x99b826(0x1d6),'description':'Page\x20size','hidden':!![]},{'name':a258_0x99b826(0x18c),'meowKey':a258_0x99b826(0x18c),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a6),'hidden':!![]},{'name':a258_0x99b826(0x19e),'meowKey':'code','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x196),'hidden':!![]},{'name':a258_0x99b826(0x176),'meowKey':a258_0x99b826(0x176),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1ca),'hidden':!![]},{'name':'schemas','meowKey':a258_0x99b826(0x1b7),'type':'string','description':a258_0x99b826(0x186),'hidden':!![]},{'name':'operation','meowKey':a258_0x99b826(0x184),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a258_0x99b826(0x183),'meowKey':'target','type':'string','description':a258_0x99b826(0x1a9),'hidden':!![]},{'name':a258_0x99b826(0x1e7),'meowKey':a258_0x99b826(0x174),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x187),'hidden':!![]},{'name':'key','meowKey':a258_0x99b826(0x17b),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x18b),'hidden':!![]},{'name':a258_0x99b826(0x1b8),'meowKey':a258_0x99b826(0x1b8),'type':a258_0x99b826(0x1d6),'description':'Config\x20value','hidden':!![]},{'name':a258_0x99b826(0x1e3),'meowKey':'tags','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1dd),'hidden':!![]},{'name':'stdin','meowKey':a258_0x99b826(0x1e6),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1da),'hidden':!![]},{'name':a258_0x99b826(0x1e0),'meowKey':a258_0x99b826(0x164),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x152),'hidden':!![]},{'name':a258_0x99b826(0x1cd),'meowKey':a258_0x99b826(0x1cd),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x16c),'hidden':!![]},{'name':a258_0x99b826(0x16a),'meowKey':a258_0x99b826(0x16a),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x159),'hidden':!![]},{'name':a258_0x99b826(0x197),'meowKey':'confirm','type':'boolean','description':a258_0x99b826(0x1d0),'hidden':!![]},{'name':a258_0x99b826(0x1a4),'meowKey':a258_0x99b826(0x1a4),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1e8),'hidden':!![]},{'name':a258_0x99b826(0x153),'meowKey':a258_0x99b826(0x153),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x165),'hidden':!![]},{'name':a258_0x99b826(0x1e4),'meowKey':a258_0x99b826(0x1ae),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x156),'hidden':!![]},{'name':a258_0x99b826(0x1d5),'meowKey':a258_0x99b826(0x1d5),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a1),'hidden':!![]},{'name':a258_0x99b826(0x1a7),'meowKey':a258_0x99b826(0x1af),'type':'string','description':a258_0x99b826(0x1c2),'hidden':!![]},{'name':a258_0x99b826(0x1d4),'meowKey':'sort','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x15b),'hidden':!![]},{'name':a258_0x99b826(0x181),'meowKey':a258_0x99b826(0x1ce),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x160),'hidden':!![]},{'name':a258_0x99b826(0x1ab),'meowKey':'expectPath','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1e9),'hidden':!![]},{'name':'expected-children-count','meowKey':a258_0x99b826(0x1df),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1cf),'hidden':!![]},{'name':a258_0x99b826(0x15a),'meowKey':a258_0x99b826(0x1c7),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x162),'hidden':!![]},{'name':a258_0x99b826(0x1ad),'meowKey':a258_0x99b826(0x157),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c9),'hidden':!![]},{'name':a258_0x99b826(0x15f),'meowKey':'operationType','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x19a),'hidden':!![]},{'name':'function-node','meowKey':a258_0x99b826(0x1b6),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x179),'hidden':!![]},{'name':a258_0x99b826(0x163),'meowKey':a258_0x99b826(0x163),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a258_0x99b826(0x1b9),'app',a258_0x99b826(0x154),a258_0x99b826(0x14f),'jq',a258_0x99b826(0x189),a258_0x99b826(0x1a2),'non-interactive','ci']);export function buildMeowFlags(){const _0x2f5997=a258_0x99b826;return Object[_0x2f5997(0x195)](GLOBAL_FLAGS['map'](_0x396467=>[_0x396467['meowKey'],{'type':_0x396467[_0x2f5997(0x19f)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a259_0x4a898d=a259_0x2070;(function(_0x33fad6,_0x4bf26b){const _0x140e29=a259_0x2070,_0x598518=_0x33fad6();while(!![]){try{const _0x10a240=parseInt(_0x140e29(0xd6))/0x1+parseInt(_0x140e29(0xdb))/0x2*(-parseInt(_0x140e29(0xdd))/0x3)+parseInt(_0x140e29(0xd7))/0x4+parseInt(_0x140e29(0xdf))/0x5*(parseInt(_0x140e29(0xe0))/0x6)+parseInt(_0x140e29(0xde))/0x7*(-parseInt(_0x140e29(0xd9))/0x8)+parseInt(_0x140e29(0xdc))/0x9+parseInt(_0x140e29(0xda))/0xa*(-parseInt(_0x140e29(0xd8))/0xb);if(_0x10a240===_0x4bf26b)break;else _0x598518['push'](_0x598518['shift']());}catch(_0x4c714f){_0x598518['push'](_0x598518['shift']());}}}(a259_0x31a7,0x52339));import{DEFAULT_API_DIR}from'../constant/paths.js';function a259_0x2070(_0x225a22,_0x4482a1){_0x225a22=_0x225a22-0xd4;const _0x31a79b=a259_0x31a7();let _0x2070ea=_0x31a79b[_0x225a22];return _0x2070ea;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a259_0x4a898d(0xd4),'locale':'en-US','riskLevel':a259_0x4a898d(0xd5),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a259_0x31a7(){const _0xe1ebc5=['1860552zxOifO','22hmelhD','8PJjDtb','5122270NDtLVI','2oDufGk','5820147bOMqqJ','1439793YHNkfE','2029769BVtbmp','5hKWRoN','3114576eHZrHo','compress','write','500132JIkEKG'];a259_0x31a7=function(){return _0xe1ebc5;};return a259_0x31a7();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a260_0x22a86b=a260_0x22ca;(function(_0xfdbfa5,_0x44d057){const _0x2d2ac0=a260_0x22ca,_0x4ff028=_0xfdbfa5();while(!![]){try{const _0x3350ea=parseInt(_0x2d2ac0(0x112))/0x1*(parseInt(_0x2d2ac0(0x115))/0x2)+-parseInt(_0x2d2ac0(0xff))/0x3+-parseInt(_0x2d2ac0(0x107))/0x4+-parseInt(_0x2d2ac0(0xfe))/0x5+parseInt(_0x2d2ac0(0x114))/0x6+-parseInt(_0x2d2ac0(0x102))/0x7+parseInt(_0x2d2ac0(0x10c))/0x8;if(_0x3350ea===_0x44d057)break;else _0x4ff028['push'](_0x4ff028['shift']());}catch(_0x44c85f){_0x4ff028['push'](_0x4ff028['shift']());}}}(a260_0x3d86,0x383a0));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 _0x17de48=a260_0x22ca,_0x3cdcdc=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x3cdcdc[_0x17de48(0x104)][_0x17de48(0x10e)]:_0x3cdcdc['serviceDomains'][_0x17de48(0x103)]??_0x3cdcdc[_0x17de48(0x104)]['production'];}export function initDomains(_0x2fd4a7){const _0x40067f=a260_0x22ca;customApiDomain=_0x2fd4a7?.[_0x40067f(0x106)],customUserDomain=_0x2fd4a7?.['userDomain'],customRuntimeDomain=_0x2fd4a7?.[_0x40067f(0x10b)],customSkillDomain=_0x2fd4a7?.['skillDomain'],customKbDomain=_0x2fd4a7?.[_0x40067f(0xfd)],customKbServiceDomain=_0x2fd4a7?.[_0x40067f(0x108)],allowOfficialKbServiceDefault=_0x2fd4a7?.[_0x40067f(0x10a)]??!![],customAppDomain=_0x2fd4a7?.[_0x40067f(0x109)],customLocalDomain=_0x2fd4a7?.[_0x40067f(0x117)],customCertificateDomain=_0x2fd4a7?.['certificateDomain'],customCdn=_0x2fd4a7?.[_0x40067f(0x100)],activeRegion=_0x2fd4a7?.[_0x40067f(0x111)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a260_0x22a86b(0x116)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a260_0x22a86b(0x110)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a260_0x22a86b(0x113)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()['kbService'];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];function a260_0x3d86(){const _0x31ed11=['allowOfficialKbServiceDefault','runtimeDomain','935624ytuYvC','trim','production','/app/','runtime','region','7940qFIaBU','skill','1072254NNQvEM','102oabJwF','user','localDomain','kbDomain','259065IBoFDJ','202953GoGBQe','cdn','origin','442939HBtlQr','daily','serviceDomains','hostname','apiDomain','1150228ORpICv','kbServiceDomain','appDomain'];a260_0x3d86=function(){return _0x31ed11;};return a260_0x3d86();}export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;function a260_0x22ca(_0x48d599,_0x453034){_0x48d599=_0x48d599-0xfd;const _0x3d86bf=a260_0x3d86();let _0x22cae0=_0x3d86bf[_0x48d599];return _0x22cae0;}export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x5ae332=a260_0x22a86b;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x5ae332(0x110)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x676e6e=>{const _0x154fc5=a260_0x22a86b,_0x454a80=encodeURIComponent(_0x676e6e['trim']());return isProduction(getEnv())?getAppDomain()+_0x154fc5(0x10f)+_0x454a80:getAppDomain()+'/web-app/app/'+_0x454a80;};export const getPublishedAppDomain=_0x13d0de=>{const _0x152a0a=a260_0x22a86b,_0x5cd86e=new URL(getAppDomain());return _0x5cd86e[_0x152a0a(0x105)]=_0x13d0de[_0x152a0a(0x10d)]()+'.'+_0x5cd86e['hostname'],_0x5cd86e[_0x152a0a(0x101)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a261_0x28e52a=a261_0x394c;(function(_0xdc41f4,_0x3abfd2){const _0x29ac43=a261_0x394c,_0x3e62bb=_0xdc41f4();while(!![]){try{const _0xcef5c5=-parseInt(_0x29ac43(0x85))/0x1+-parseInt(_0x29ac43(0x7c))/0x2*(-parseInt(_0x29ac43(0x79))/0x3)+parseInt(_0x29ac43(0x81))/0x4*(-parseInt(_0x29ac43(0x7e))/0x5)+parseInt(_0x29ac43(0x82))/0x6*(parseInt(_0x29ac43(0x86))/0x7)+parseInt(_0x29ac43(0x84))/0x8*(parseInt(_0x29ac43(0x7a))/0x9)+-parseInt(_0x29ac43(0x7d))/0xa+parseInt(_0x29ac43(0x7f))/0xb;if(_0xcef5c5===_0x3abfd2)break;else _0x3e62bb['push'](_0x3e62bb['shift']());}catch(_0x1c3fca){_0x3e62bb['push'](_0x3e62bb['shift']());}}}(a261_0x339f,0x9cfb6));export const RABETBASE_ENV_VALUES=['production',a261_0x28e52a(0x7b)];export function normalizeEnv(_0x11f5bb){const _0x1cff09=a261_0x28e52a;return _0x11f5bb===_0x1cff09(0x80)?'production':_0x11f5bb;}function a261_0x339f(){const _0x185bad=['971026ceBZDe','1924888GcuIwb','dev','15BHOeUQ','837ZBcJvL','daily','30146xZfDIM','11678970UCnysQ','3255695pBkiaX','17487976vNkKKN','online','4pGieCe','18kSebNh','production','81112sNHJAB'];a261_0x339f=function(){return _0x185bad;};return a261_0x339f();}export function isProduction(_0x5c3149){const _0xa68b14=a261_0x28e52a;return normalizeEnv(_0x5c3149)===_0xa68b14(0x83);}function a261_0x394c(_0x194784,_0x57c7a5){_0x194784=_0x194784-0x79;const _0x339f72=a261_0x339f();let _0x394c1e=_0x339f72[_0x194784];return _0x394c1e;}export function isDaily(_0x56b265){const _0x1de50c=a261_0x28e52a;return normalizeEnv(_0x56b265)===_0x1de50c(0x7b);}export function isDev(_0xe3dcd3){const _0x521843=a261_0x28e52a,_0x581043=normalizeEnv(_0xe3dcd3);return _0x581043==='development'||_0x581043===_0x521843(0x87);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a261_0x28e52a(0x83));export function getEnv(){return env;}export function initEnv(_0x421db4){env=normalizeEnv(_0x421db4);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a262_0x2a21(){const _0x50b679=['115PkXRzd','230660XOfJcW','1329174FUSYbw','pretty','853331VBNrmv','3543144hphyqb','8HeglRO','64707aGtzFV','193968twXrSr','6230916MIGeNm'];a262_0x2a21=function(){return _0x50b679;};return a262_0x2a21();}const a262_0x4a3971=a262_0x28b9;(function(_0x5ea4db,_0x162cb3){const _0x250c5a=a262_0x28b9,_0x36b467=_0x5ea4db();while(!![]){try{const _0x4697e2=parseInt(_0x250c5a(0x134))/0x1+-parseInt(_0x250c5a(0x12c))/0x2*(parseInt(_0x250c5a(0x12d))/0x3)+parseInt(_0x250c5a(0x131))/0x4+parseInt(_0x250c5a(0x130))/0x5*(-parseInt(_0x250c5a(0x12e))/0x6)+parseInt(_0x250c5a(0x132))/0x7+-parseInt(_0x250c5a(0x135))/0x8+parseInt(_0x250c5a(0x12f))/0x9;if(_0x4697e2===_0x162cb3)break;else _0x36b467['push'](_0x36b467['shift']());}catch(_0x260007){_0x36b467['push'](_0x36b467['shift']());}}}(a262_0x2a21,0x7f129));function a262_0x28b9(_0x3832d9,_0x13bfc9){_0x3832d9=_0x3832d9-0x12c;const _0x2a2136=a262_0x2a21();let _0x28b94b=_0x2a2136[_0x3832d9];return _0x28b94b;}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a262_0x4a3971(0x133),'compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a263_0x357c1e=a263_0x2c3f;(function(_0x3fee4d,_0x2cc484){const _0x46960b=a263_0x2c3f,_0x20263f=_0x3fee4d();while(!![]){try{const _0x130826=-parseInt(_0x46960b(0xc3))/0x1+parseInt(_0x46960b(0xc4))/0x2*(-parseInt(_0x46960b(0xbe))/0x3)+parseInt(_0x46960b(0xc1))/0x4+-parseInt(_0x46960b(0xbf))/0x5+parseInt(_0x46960b(0xc0))/0x6+parseInt(_0x46960b(0xc5))/0x7+parseInt(_0x46960b(0xbc))/0x8*(parseInt(_0x46960b(0xbd))/0x9);if(_0x130826===_0x2cc484)break;else _0x20263f['push'](_0x20263f['shift']());}catch(_0x3cebdb){_0x20263f['push'](_0x20263f['shift']());}}}(a263_0x5d5c,0xae9e0));function a263_0x5d5c(){const _0x1fb1a2=['200dEEiMW','705145wBlVgJ','37384MAYlTO','3096kNCbCR','22524vRcsMj','4386755aoOFMC','5319768VgHZkG','2423620HaaaHj','./src/api','857397daSrtH'];a263_0x5d5c=function(){return _0x1fb1a2;};return a263_0x5d5c();}function a263_0x2c3f(_0x1998c2,_0x9119){_0x1998c2=_0x1998c2-0xbc;const _0x5d5c73=a263_0x5d5c();let _0x2c3ff8=_0x5d5c73[_0x1998c2];return _0x2c3ff8;}export const DEFAULT_API_DIR=a263_0x357c1e(0xc2);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a264_0x4777(_0x5c22ec,_0x213399){_0x5c22ec=_0x5c22ec-0x1e3;const _0x2393a4=a264_0x2393();let _0x477721=_0x2393a4[_0x5c22ec];return _0x477721;}(function(_0x348f70,_0x351371){const _0x3e1e59=a264_0x4777,_0x1e3ba0=_0x348f70();while(!![]){try{const _0x5d5910=-parseInt(_0x3e1e59(0x1e6))/0x1*(parseInt(_0x3e1e59(0x1e7))/0x2)+parseInt(_0x3e1e59(0x1ed))/0x3+parseInt(_0x3e1e59(0x1ea))/0x4+parseInt(_0x3e1e59(0x1e4))/0x5+-parseInt(_0x3e1e59(0x1ee))/0x6*(-parseInt(_0x3e1e59(0x1e3))/0x7)+parseInt(_0x3e1e59(0x1eb))/0x8*(-parseInt(_0x3e1e59(0x1e8))/0x9)+parseInt(_0x3e1e59(0x1ec))/0xa;if(_0x5d5910===_0x351371)break;else _0x1e3ba0['push'](_0x1e3ba0['shift']());}catch(_0x3ef690){_0x1e3ba0['push'](_0x1e3ba0['shift']());}}}(a264_0x2393,0xddf7a));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;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x404357){const _0x1f325c=a264_0x4777;return typeof _0x404357===_0x1f325c(0x1e5)&&LOVRABET_REGION_VALUES[_0x1f325c(0x1e9)](_0x404357);}export function isEnabledLovrabetRegion(_0x50b664){const _0x344f28=a264_0x4777;return typeof _0x50b664===_0x344f28(0x1e5)&&ENABLED_LOVRABET_REGION_VALUES[_0x344f28(0x1e9)](_0x50b664);}export function normalizeLovrabetRegion(_0x3a14e4){if(typeof _0x3a14e4!=='string')return undefined;const _0x448b17=REGION_ALIASES[_0x3a14e4]??_0x3a14e4;return isLovrabetRegion(_0x448b17)?_0x448b17:undefined;}export function isInvalidLovrabetRegion(_0x4d8fed){return _0x4d8fed!==undefined&&_0x4d8fed!==null&&_0x4d8fed!==''&&normalizeLovrabetRegion(_0x4d8fed)===undefined;}function a264_0x2393(){const _0x32495e=['17aQkuOr','169006ukLLkj','18yfTebf','includes','950664iHQnII','3038624lGucBC','5805100bCnBiU','2623512teybOx','1244022zwrbrg','7pHaBpD','6026840JmrsgS','string'];a264_0x2393=function(){return _0x32495e;};return a264_0x2393();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a265_0x471d(){const _0x3f79cc=['3aDlCJj','498064hSoraM','233275HKlywX','10851rROpnU','26JQuFgM','write','2770674BfWBFa','read','4194810JXgMAe','1743796nSOAzr','3790760BjNEPs','high-risk-write','21rEuKTH'];a265_0x471d=function(){return _0x3f79cc;};return a265_0x471d();}const a265_0x27d323=a265_0xc235;(function(_0x4a09f7,_0x4e5417){const _0x36c568=a265_0xc235,_0x199285=_0x4a09f7();while(!![]){try{const _0x26490f=-parseInt(_0x36c568(0x1f5))/0x1*(-parseInt(_0x36c568(0x1e9))/0x2)+parseInt(_0x36c568(0x1f2))/0x3*(parseInt(_0x36c568(0x1ee))/0x4)+parseInt(_0x36c568(0x1f4))/0x5+-parseInt(_0x36c568(0x1eb))/0x6+-parseInt(_0x36c568(0x1f1))/0x7*(-parseInt(_0x36c568(0x1f3))/0x8)+-parseInt(_0x36c568(0x1ed))/0x9+parseInt(_0x36c568(0x1ef))/0xa;if(_0x26490f===_0x4e5417)break;else _0x199285['push'](_0x199285['shift']());}catch(_0x4252eb){_0x199285['push'](_0x199285['shift']());}}}(a265_0x471d,0x3fe10));function a265_0xc235(_0xf6d94d,_0x51bedd){_0xf6d94d=_0xf6d94d-0x1e9;const _0x471d07=a265_0x471d();let _0xc2353=_0x471d07[_0xf6d94d];return _0xc2353;}export const RISK_LEVEL_VALUES=[a265_0x27d323(0x1ec),a265_0x27d323(0x1ea),a265_0x27d323(0x1f0)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bb5a5,_0x5d7ef3){const _0x126a1a=a266_0x33cc,_0x95cda5=_0x2bb5a5();while(!![]){try{const _0x53d70e=parseInt(_0x126a1a(0xfb))/0x1+parseInt(_0x126a1a(0xf9))/0x2*(-parseInt(_0x126a1a(0xf5))/0x3)+-parseInt(_0x126a1a(0xf7))/0x4*(-parseInt(_0x126a1a(0xf6))/0x5)+parseInt(_0x126a1a(0xfe))/0x6+-parseInt(_0x126a1a(0x100))/0x7*(parseInt(_0x126a1a(0xf8))/0x8)+parseInt(_0x126a1a(0xfc))/0x9+-parseInt(_0x126a1a(0xff))/0xa;if(_0x53d70e===_0x5d7ef3)break;else _0x95cda5['push'](_0x95cda5['shift']());}catch(_0x10a2f7){_0x95cda5['push'](_0x95cda5['shift']());}}}(a266_0x12e0,0x5fb72));function a266_0x12e0(){const _0x44aaea=['39tQazDq','3485yAFMCD','1756PAqTCd','280iVXOcK','25832FeqjkR','lovrabet','432099CuZABB','6808014cAnAPd','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','358014FCcffT','5288790XHXfTW','93072ofwUuD','Official\x20routing\x20for\x20region\x20\x22'];a266_0x12e0=function(){return _0x44aaea;};return a266_0x12e0();}import{OFFICIAL_ROUTING_PROFILES as a266_0x34edb6,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a266_0x34edb6;function a266_0x33cc(_0x583bd5,_0x2c6b46){_0x583bd5=_0x583bd5-0xf4;const _0x12e0eb=a266_0x12e0();let _0x33cc17=_0x12e0eb[_0x583bd5];return _0x33cc17;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x102987){return OFFICIAL_ROUTING_PROFILES[_0x102987];}export function getOfficialRoutingCdn(_0x21723a){const _0xbc4ec3=a266_0x33cc,_0x13bffe=getOfficialRoutingProfile(_0x21723a)['cdn'];if(!_0x13bffe[_0xbc4ec3(0xfa)])throw new Error(_0xbc4ec3(0xf4)+_0x21723a+_0xbc4ec3(0xfd));return{'libraries':_0x13bffe['libraries'],'lovrabet':_0x13bffe[_0xbc4ec3(0xfa)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e0bbe,_0x3fb961){const _0x51f758=a267_0x22f9,_0x4f00a4=_0x4e0bbe();while(!![]){try{const _0x2205f5=-parseInt(_0x51f758(0x17e))/0x1+-parseInt(_0x51f758(0x18d))/0x2+parseInt(_0x51f758(0x1a2))/0x3*(parseInt(_0x51f758(0x19b))/0x4)+-parseInt(_0x51f758(0x182))/0x5+-parseInt(_0x51f758(0x18e))/0x6*(parseInt(_0x51f758(0x1a4))/0x7)+-parseInt(_0x51f758(0x186))/0x8+-parseInt(_0x51f758(0x185))/0x9*(-parseInt(_0x51f758(0x198))/0xa);if(_0x2205f5===_0x3fb961)break;else _0x4f00a4['push'](_0x4f00a4['shift']());}catch(_0x4aa739){_0x4f00a4['push'](_0x4f00a4['shift']());}}}(a267_0x3b30,0x5da79));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 a267_0x3b30(){const _0x3a41ee=['entries','trim','format','166369ZsQjiy','accessKey','region','ENV','3801625YTVuRU','daily','locale','161460Rcyetv','3889216qzcFrM','projectConfig','keys','apps','pageSize','filter','globalConfig','1217552rgxldc','102UuHLST','VERBOSE','length','write','PAGE_SIZE','defaultApp','COOKIE','projectPath','true','FORMAT','1420awDLwS','string','value','99124ejPaOC','object','ACCESS_KEY','read','source','appcode','riskLevel','6fhoOzN','env','78981RKzZWt'];a267_0x3b30=function(){return _0x3a41ee;};return a267_0x3b30();}function stringConfigValue(_0x646f41){const _0x585b1b=a267_0x22f9;return typeof _0x646f41===_0x585b1b(0x199)&&_0x646f41['trim']()?_0x646f41['trim']():undefined;}function appProfiles(_0x3c2aec){const _0x576bf2=a267_0x22f9;return _0x3c2aec[_0x576bf2(0x189)]&&typeof _0x3c2aec['apps']===_0x576bf2(0x19c)?_0x3c2aec['apps']:{};}function resolveDefaultAppName(_0x3dfb70){const _0x2ec735=a267_0x22f9,_0xa64caa=stringConfigValue(_0x3dfb70[_0x2ec735(0x193)]);if(_0xa64caa)return _0xa64caa;const _0xc2866=Object[_0x2ec735(0x188)](appProfiles(_0x3dfb70));return _0xc2866[_0x2ec735(0x190)]===0x1?_0xc2866[0x0]:undefined;}function a267_0x22f9(_0x5e8aa1,_0x14c7df){_0x5e8aa1=_0x5e8aa1-0x17d;const _0x3b30ee=a267_0x3b30();let _0x22f99a=_0x3b30ee[_0x5e8aa1];return _0x22f99a;}function resolveTopLevelAppCode(_0x26ad44){const _0x23968d=a267_0x22f9;return stringConfigValue(_0x26ad44[_0x23968d(0x1a0)])||stringConfigValue(_0x26ad44['app']);}function normalizeRiskCeiling(_0x5100db){const _0x338602=a267_0x22f9;if(_0x5100db===undefined||_0x5100db===null)return undefined;if(_0x5100db==='read'||_0x5100db===_0x338602(0x191)||_0x5100db==='high-risk-write')return _0x5100db;return _0x338602(0x19e);}function resolveRiskCeiling(..._0x53ce95){let _0xffa565;for(const _0xf38fdf of _0x53ce95){const _0x4d831a=normalizeRiskCeiling(_0xf38fdf);_0x4d831a&&(!_0xffa565||riskLevelOrder(_0x4d831a)<riskLevelOrder(_0xffa565))&&(_0xffa565=_0x4d831a);}return _0xffa565??DEFAULT_CONFIG_VALUES['riskLevel'];}export function resolveAppConfig({raw:_0x37a72e,flags:_0xe9763c,layers:_0x55ee46,readEnv:_0x125e21}){const _0x596f24=a267_0x22f9,_0x1994a1=_0x55ee46?.[_0x596f24(0x187)]??{},_0x2ecb99=_0x55ee46?.[_0x596f24(0x18c)]??{},_0x5e6e88=!!_0x55ee46?.[_0x596f24(0x195)]||Object[_0x596f24(0x188)](_0x1994a1)[_0x596f24(0x190)]>0x0,_0x45ca79=!_0x5e6e88,_0x4ce411=_0x5e6e88?resolveDefaultAppName(_0x1994a1):undefined,_0x44d784=_0x45ca79?resolveDefaultAppName(_0x2ecb99):undefined,_0x35e747=stringConfigValue(_0xe9763c['app']),_0x215355=_0x125e21('APP'),_0x2a7a73={};if(_0x37a72e[_0x596f24(0x189)]&&typeof _0x37a72e[_0x596f24(0x189)]===_0x596f24(0x19c))for(const [_0x230f02,_0x4af43e]of Object[_0x596f24(0x1a5)](_0x37a72e[_0x596f24(0x189)])){_0x4af43e&&typeof _0x4af43e==='object'&&_0x4af43e[_0x596f24(0x1a0)]&&(_0x2a7a73[_0x230f02]=_0x4af43e);}const _0xacffa9=_0x4ce411||_0x44d784||resolveDefaultAppName(_0x37a72e),_0x193dd0=Object['keys'](_0x2a7a73)[_0x596f24(0x190)]>0x0,_0x421145=_0x35e747||_0x4ce411||_0x215355||_0x44d784||_0xacffa9||undefined,_0xf2c117=stringConfigValue(_0xe9763c[_0x596f24(0x1a0)]),_0x4a51c6=_0xf2c117?Object[_0x596f24(0x1a5)](_0x2a7a73)[_0x596f24(0x18b)](([,_0x1a0ced])=>_0x1a0ced?.[_0x596f24(0x1a0)]===_0xf2c117):[],_0x1484ff=_0x35e747&&_0x2a7a73[_0x35e747]?.[_0x596f24(0x1a0)]===_0xf2c117?[_0x35e747,_0x2a7a73[_0x35e747]]:undefined,_0xec6c6c=_0x1484ff??(_0x4a51c6['length']===0x1?_0x4a51c6[0x0]:undefined),_0xc14265=_0xec6c6c?.[0x0],_0x25dc2c=_0xec6c6c?.[0x1],_0x5dca3a=_0xf2c117?_0xc14265:_0x421145;let _0x3439b1=_0x5dca3a&&_0x2a7a73[_0x5dca3a]?_0x2a7a73[_0x5dca3a]:undefined;_0xf2c117&&_0x25dc2c&&(_0x3439b1=_0x25dc2c);const _0x4d9893=_0xf2c117?_0x25dc2c??_0x3439b1:_0x3439b1,_0x75a8d2=!_0x35e747&&!_0x4ce411&&_0x215355&&_0x5dca3a===_0x215355,_0x5cc380=_0x35e747||(_0x75a8d2?_0x215355:undefined)||(_0xf2c117?_0xc14265:undefined),_0x30e14a=_0x4d9893?.[_0x596f24(0x1a0)],_0x4b78f9=_0x5e6e88?resolveTopLevelAppCode(_0x1994a1):undefined,_0x14d121=_0x45ca79?resolveTopLevelAppCode(_0x2ecb99):undefined,_0x23aab7=_0x35e747||_0x4ce411?_0x30e14a:undefined,_0x21d9ca=!_0x35e747&&!_0x4ce411?_0x30e14a:undefined,_0x17a780=_0xf2c117||_0x23aab7||_0x4b78f9||_0x21d9ca||_0x14d121||undefined,_0x4b5407=_0x5e6e88?stringConfigValue(_0x1994a1[_0x596f24(0x1a3)]):undefined,_0x124858=_0x45ca79?stringConfigValue(_0x2ecb99[_0x596f24(0x1a3)]):undefined,_0x1c40af=_0xe9763c[_0x596f24(0x1a3)]||_0x4d9893?.[_0x596f24(0x1a3)]||_0x4b5407||_0x125e21(_0x596f24(0x181))||_0x124858||_0x37a72e[_0x596f24(0x1a3)]||DEFAULT_CONFIG_VALUES[_0x596f24(0x1a3)],_0x14c51b=_0x4d9893?.['locale']||_0x37a72e['locale']||DEFAULT_CONFIG_VALUES[_0x596f24(0x184)],_0xc56f25=_0x125e21(_0x596f24(0x194))||_0x4d9893?.['cookie']||_0x37a72e['cookie']||undefined,_0x2f0cc2=_0x125e21(_0x596f24(0x19d))||_0x4d9893?.[_0x596f24(0x17f)]||_0x37a72e[_0x596f24(0x17f)]||undefined,_0x3bee0a=_0xe9763c[_0x596f24(0x17d)]||_0x125e21(_0x596f24(0x197))||_0x4d9893?.[_0x596f24(0x17d)]||_0x37a72e[_0x596f24(0x17d)],_0x175ea2=normalizeLegacyOutputFormat(_0x3bee0a),_0x364720=_0x125e21(_0x596f24(0x192))||_0x4d9893?.[_0x596f24(0x18a)]||_0x37a72e['pageSize'],_0x24bd42=_0x364720?Number(_0x364720)||undefined:undefined,_0x28cd57=_0x55ee46?[_0x55ee46[_0x596f24(0x18c)][_0x596f24(0x1a1)],_0x55ee46[_0x596f24(0x187)][_0x596f24(0x1a1)]]:[_0x37a72e[_0x596f24(0x1a1)]],_0x51627f=resolveRiskCeiling(..._0x28cd57,_0x4d9893?.[_0x596f24(0x1a1)]),_0x254b8c=resolveRiskCeiling(_0x51627f,_0x125e21('RISK_LEVEL')),_0x3513f9=_0x125e21(_0x596f24(0x18f)),_0x2519ee=_0x3513f9==='1'||_0x3513f9===_0x596f24(0x196),_0x55a653=_0x4d9893?.['apiDir']||_0x37a72e['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x3ba9a6=selectConfiguredRegion({'appRegion':_0x4d9893?.[_0x596f24(0x180)],'projectRegion':_0x5e6e88?_0x1994a1[_0x596f24(0x180)]:undefined,'globalRegion':_0x5e6e88||_0x45ca79?_0x2ecb99[_0x596f24(0x180)]:undefined,'mergedRegion':_0x37a72e['region']}),_0x12a9f1=normalizeLovrabetRegion(_0x3ba9a6['value'])??DEFAULT_LOVRABET_REGION,_0x4fac60=isDaily(normalizeEnv(String(_0x1c40af)))?_0x596f24(0x183):'production';return{'appCode':typeof _0x17a780===_0x596f24(0x199)&&_0x17a780[_0x596f24(0x1a6)]()?_0x17a780[_0x596f24(0x1a6)]():undefined,'region':_0x12a9f1,'regionConfiguredValue':_0x3ba9a6[_0x596f24(0x19a)],'regionSource':_0x3ba9a6[_0x596f24(0x19f)],'env':_0x4fac60,'locale':_0x14c51b,'cookie':_0xc56f25,'accessKey':_0x2f0cc2,'format':_0x175ea2,'pageSize':_0x24bd42,'riskLevel':_0x254b8c,'verbose':_0x2519ee,'apiDir':_0x55a653,'apps':_0x2a7a73,'defaultApp':_0xacffa9,'currentApp':_0x193dd0?_0x5dca3a:undefined,'explicitAppName':_0x5cc380};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1795e6,_0x436a88){const _0x76caf7=a268_0x58ca,_0x56c86b=_0x1795e6();while(!![]){try{const _0x4b4acc=parseInt(_0x76caf7(0xe5))/0x1*(-parseInt(_0x76caf7(0xec))/0x2)+-parseInt(_0x76caf7(0xe9))/0x3+-parseInt(_0x76caf7(0xe2))/0x4+parseInt(_0x76caf7(0xea))/0x5+parseInt(_0x76caf7(0xe4))/0x6*(-parseInt(_0x76caf7(0xe7))/0x7)+-parseInt(_0x76caf7(0xe6))/0x8+-parseInt(_0x76caf7(0xeb))/0x9*(-parseInt(_0x76caf7(0xe3))/0xa);if(_0x4b4acc===_0x436a88)break;else _0x56c86b['push'](_0x56c86b['shift']());}catch(_0x3615d7){_0x56c86b['push'](_0x56c86b['shift']());}}}(a268_0x3a45,0xbf2ef));import{getIsSessionValid}from'../auth/is-session-valid.js';function a268_0x3a45(){const _0x57480a=['../auth/get-cookie.js','4388628eDDqyK','2894495xUodER','45vlKTZj','2GGjLrv','1444528IkagHz','10209100MrhUgp','483714KqAzAw','1153340XwqjQF','4419928tHlbPw','119OCavnx'];a268_0x3a45=function(){return _0x57480a;};return a268_0x3a45();}function a268_0x58ca(_0x46e3e2,_0x183e07){_0x46e3e2=_0x46e3e2-0xe2;const _0x3a45da=a268_0x3a45();let _0x58ca4b=_0x3a45da[_0x46e3e2];return _0x58ca4b;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1eb9ff){const _0x290582=a268_0x58ca,{getCookie:_0xe1ada7}=await import(_0x290582(0xe8)),_0x551d14=_0x1eb9ff['cookie']||_0xe1ada7(),_0x42118e=_0x551d14?await getIsSessionValid():![];return{'cookie':_0x551d14,'isLoggedIn':_0x42118e,async 'getOrLogin'(){if(_0x551d14&&_0x42118e)return _0x551d14;throw CliErrors['authRequired']();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a269_0x874071=a269_0x2c3d;(function(_0x4b52d1,_0x154280){const _0x6ece1=a269_0x2c3d,_0xe6ec95=_0x4b52d1();while(!![]){try{const _0x178619=parseInt(_0x6ece1(0xa8))/0x1+parseInt(_0x6ece1(0x89))/0x2+-parseInt(_0x6ece1(0x76))/0x3+parseInt(_0x6ece1(0xa5))/0x4+-parseInt(_0x6ece1(0x86))/0x5*(parseInt(_0x6ece1(0x80))/0x6)+parseInt(_0x6ece1(0x7a))/0x7*(-parseInt(_0x6ece1(0x91))/0x8)+parseInt(_0x6ece1(0x83))/0x9*(-parseInt(_0x6ece1(0x97))/0xa);if(_0x178619===_0x154280)break;else _0xe6ec95['push'](_0xe6ec95['shift']());}catch(_0x985fec){_0xe6ec95['push'](_0xe6ec95['shift']());}}}(a269_0x23dc,0x3a1b7));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='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2ddc01){for(const _0x161f69 of CONFIG_NAMES){const _0x2fafcb=resolve(_0x2ddc01,_0x161f69);if(existsSync(_0x2fafcb))return _0x2fafcb;}return undefined;}function a269_0x23dc(){const _0x1ee89f=['app','kbDomain','project','error','1544164KsqawD','utf8','appDomain','432219cycRSS','cwd','region','empty','617979foAUHi','inherit','set','string','43946yOAWTI','silent','config','\x0a\x20\x20','accessKey','apiDir','1092NVEnAJ','appcode','.tmp','54HTDucg','migrated','defaultApp','11920eJxuBa','format','status','547160wZQJMH','missing','pageSize','userDomain','warn','cookie','message','apiDomain','16eaappE','length','apps','Project','object','certificateDomain','335660EUlxUn','data','riskLevel','trim','stringify','runtimeDomain','keys','routing','parse','locale'];a269_0x23dc=function(){return _0x1ee89f;};return a269_0x23dc();}export function findProjectRootDirectory(_0x324a23=process[a269_0x874071(0xa9)]()){let _0x306f85=resolve(_0x324a23);const {root:_0x27afb6}=parse(_0x306f85),_0x321b1d=homedir();while(!![]){if(resolveConfigPath(_0x306f85)){if(_0x306f85===_0x321b1d)break;return _0x306f85;}if(_0x306f85===_0x27afb6||_0x306f85===_0x321b1d)break;const _0x2753fc=dirname(_0x306f85);if(_0x2753fc===_0x306f85)break;_0x306f85=_0x2753fc;}return resolve(_0x324a23);}export function getProjectConfigPath(){const _0x2d58ba=a269_0x874071;return resolveConfigPath(process[_0x2d58ba(0xa9)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x348de4){const _0x19c4b1=a269_0x874071;if(!existsSync(_0x348de4))return{'status':_0x19c4b1(0x8a)};try{const _0x36cff4=readFileSync(_0x348de4,{'encoding':_0x19c4b1(0xa6)});if(!_0x36cff4?.[_0x19c4b1(0x9a)]())return{'status':_0x19c4b1(0xab)};const _0x556069=JSON[_0x19c4b1(0x9f)](_0x36cff4);return{'status':'ok','data':_0x556069};}catch(_0x518ed5){return{'status':_0x19c4b1(0xa4),'message':_0x518ed5 instanceof Error?_0x518ed5[_0x19c4b1(0x8f)]:String(_0x518ed5)};}}function parseCliConfigJsonFile(_0x24abac,_0xa48b8,_0x57ae5c){const _0x60929c=a269_0x874071,_0x2fa498=inspectCliConfigJsonFile(_0x24abac);if(_0x2fa498[_0x60929c(0x88)]==='missing'||_0x2fa498[_0x60929c(0x88)]===_0x60929c(0xab))return{};if(_0x2fa498[_0x60929c(0x88)]==='ok')return _0x2fa498[_0x60929c(0x98)];return _0xa48b8===_0x60929c(0x8d)&&_0x57ae5c&&console[_0x60929c(0xa4)](CLI_BIN_NAME+':\x20'+_0x57ae5c+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x24abac+_0x60929c(0x7d)+_0x2fa498['message']),{};}function normalizeLegacyConfigShape(_0x57df31){const _0x5a2814=a269_0x874071;if(!_0x57df31||typeof _0x57df31!==_0x5a2814(0x95))return{'config':{},'migrated':![]};const _0x27708d={..._0x57df31},_0x58bab3=_0x27708d[_0x5a2814(0x93)]&&typeof _0x27708d[_0x5a2814(0x93)]==='object'?{..._0x27708d[_0x5a2814(0x93)]}:{},_0x1b4ea0=Object[_0x5a2814(0x9d)](_0x58bab3)[_0x5a2814(0x92)],_0x2878d5=_0x27708d[_0x5a2814(0x81)]||_0x27708d[_0x5a2814(0xa1)];let _0xa4bcff=![];if(_0x2878d5&&_0x1b4ea0===0x0){const _0x20505a=typeof _0x27708d[_0x5a2814(0x85)]===_0x5a2814(0x79)&&_0x27708d[_0x5a2814(0x85)][_0x5a2814(0x9a)]()?_0x27708d[_0x5a2814(0x85)]:String(_0x2878d5)[_0x5a2814(0x9a)]();_0x58bab3[_0x20505a]={'appcode':String(_0x2878d5)[_0x5a2814(0x9a)](),..._0x27708d['env']!=null?{'env':_0x27708d['env']}:{},..._0x27708d[_0x5a2814(0x7f)]!=null?{'apiDir':_0x27708d[_0x5a2814(0x7f)]}:{},..._0x27708d['cookie']!=null?{'cookie':_0x27708d[_0x5a2814(0x8e)]}:{},..._0x27708d[_0x5a2814(0x7e)]!=null?{'accessKey':_0x27708d['accessKey']}:{},..._0x27708d[_0x5a2814(0x87)]!=null?{'format':_0x27708d[_0x5a2814(0x87)]}:{},..._0x27708d[_0x5a2814(0x8b)]!=null?{'pageSize':_0x27708d['pageSize']}:{},..._0x27708d[_0x5a2814(0x99)]!=null?{'riskLevel':_0x27708d[_0x5a2814(0x99)]}:{},..._0x27708d[_0x5a2814(0xa0)]!=null?{'locale':_0x27708d['locale']}:{}},_0x27708d[_0x5a2814(0x93)]=_0x58bab3,delete _0x27708d[_0x5a2814(0x85)],_0xa4bcff=!![];}return(_0x5a2814(0x81)in _0x27708d||_0x5a2814(0xa1)in _0x27708d)&&(delete _0x27708d[_0x5a2814(0x81)],delete _0x27708d[_0x5a2814(0xa1)],_0xa4bcff=!![]),{'config':_0x27708d,'migrated':_0xa4bcff};}function writeNormalizedConfigIfNeeded(_0x84cf2b,_0x26bd42){const _0xb394a9=a269_0x874071,_0x159473=JSON[_0xb394a9(0x9b)](normalizeConfigForWrite(_0x26bd42),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x84cf2b)===_0x159473)return;writeConfigFile(_0x84cf2b,_0x26bd42),normalizedWriteCache[_0xb394a9(0x78)](_0x84cf2b,_0x159473);}function parseAndNormalizeConfig(_0x2fcf6e,_0x14dd9d,_0x1d8ec1){const _0x3ce18=a269_0x874071,_0x13ff05=parseCliConfigJsonFile(_0x2fcf6e,_0x14dd9d,_0x1d8ec1),_0x1aa8d2=normalizeLegacyConfigShape(_0x13ff05);if(_0x1aa8d2[_0x3ce18(0x84)])try{writeNormalizedConfigIfNeeded(_0x2fcf6e,_0x1aa8d2[_0x3ce18(0x7c)]);}catch{}return _0x1aa8d2[_0x3ce18(0x7c)];}export function loadRawConfigLayers(_0x1fa3ef){const _0x26f99c=a269_0x874071;let _0x2eb7a2={},_0x467e65={};const _0x445c57=resolveConfigPath(homedir());_0x445c57&&(_0x2eb7a2=parseAndNormalizeConfig(_0x445c57,'warn','Global'));const _0x5cbc6a=_0x1fa3ef??findProjectRootDirectory(),_0x53281f=resolveConfigPath(_0x5cbc6a);return _0x53281f&&(_0x467e65=parseAndNormalizeConfig(_0x53281f,_0x26f99c(0x8d),_0x26f99c(0x94))),{'globalPath':_0x445c57,'projectPath':_0x53281f,'globalConfig':_0x2eb7a2,'projectConfig':_0x467e65};}const INHERIT_WHITELIST=[a269_0x874071(0x8e),a269_0x874071(0x7e),'locale','format',a269_0x874071(0x99),a269_0x874071(0x8b),a269_0x874071(0xaa),a269_0x874071(0x9e),a269_0x874071(0x8c),a269_0x874071(0x90),a269_0x874071(0x9c),'skillDomain',a269_0x874071(0xa2),'kbServiceDomain',a269_0x874071(0xa7),'localDomain',a269_0x874071(0x96)];export function mergeRawConfigLayers(_0x1388b4){const _0x5baeea=a269_0x874071,{globalConfig:_0x1936a9,projectConfig:_0x2aeb11}=_0x1388b4,_0x5f317d=!!_0x1388b4['projectPath']||Object[_0x5baeea(0x9d)](_0x2aeb11)[_0x5baeea(0x92)]>0x0;if(!_0x5f317d)return mergeGlobalOnly(_0x1936a9);return mergeProjectFirst(_0x1936a9,_0x2aeb11);}function mergeGlobalOnly(_0x366f82){const _0x70559c=a269_0x874071,_0x384a8c={..._0x366f82};delete _0x384a8c[_0x70559c(0x77)];const _0x54d012=_0x366f82['apps']&&typeof _0x366f82[_0x70559c(0x93)]===_0x70559c(0x95)?_0x366f82[_0x70559c(0x93)]:{};if(Object[_0x70559c(0x9d)](_0x54d012)[_0x70559c(0x92)]>0x0)_0x384a8c['apps']=_0x54d012;if(_0x366f82[_0x70559c(0x85)])_0x384a8c[_0x70559c(0x85)]=_0x366f82[_0x70559c(0x85)];return _0x384a8c;}function a269_0x2c3d(_0x1352b5,_0x2c24ff){_0x1352b5=_0x1352b5-0x76;const _0x23dc47=a269_0x23dc();let _0x2c3dfd=_0x23dc47[_0x1352b5];return _0x2c3dfd;}function mergeProjectFirst(_0xe50ab5,_0x3b79af){const _0x21e97c=a269_0x874071,_0x247ad5={..._0x3b79af};delete _0x247ad5[_0x21e97c(0x77)];for(const _0x1a53be of INHERIT_WHITELIST){!(_0x1a53be in _0x247ad5)&&_0x1a53be in _0xe50ab5&&(_0x247ad5[_0x1a53be]=_0xe50ab5[_0x1a53be]);}const _0x4c77ef=_0x3b79af[_0x21e97c(0x93)]&&typeof _0x3b79af[_0x21e97c(0x93)]===_0x21e97c(0x95)?_0x3b79af[_0x21e97c(0x93)]:{};return Object[_0x21e97c(0x9d)](_0x4c77ef)[_0x21e97c(0x92)]>0x0?_0x247ad5[_0x21e97c(0x93)]=_0x4c77ef:delete _0x247ad5[_0x21e97c(0x93)],_0x21e97c(0x85)in _0x3b79af?_0x247ad5['defaultApp']=_0x3b79af[_0x21e97c(0x85)]:delete _0x247ad5[_0x21e97c(0x85)],_0x247ad5;}export function readRawConfigWithLayers(_0x15cc43){const _0x256b69=loadRawConfigLayers(_0x15cc43);return{'config':mergeRawConfigLayers(_0x256b69),'layers':_0x256b69};}export function readRawConfig(_0x272f48){return mergeRawConfigLayers(loadRawConfigLayers(_0x272f48));}export function readConfigFile(_0x480f64){const _0x1858ae=a269_0x874071;return parseAndNormalizeConfig(_0x480f64,_0x1858ae(0x7b));}export function writeConfigFile(_0x125a76,_0x38d9d4){const _0x4ebb4f=a269_0x874071,_0x141823=dirname(_0x125a76);!existsSync(_0x141823)&&mkdirSync(_0x141823,{'recursive':!![]});const _0x1d9c6b=_0x125a76+_0x4ebb4f(0x82);try{const _0x5e795e=normalizeConfigForWrite(_0x38d9d4);writeFileSync(_0x1d9c6b,JSON[_0x4ebb4f(0x9b)](_0x5e795e,null,0x2)+'\x0a',{'encoding':_0x4ebb4f(0xa6),'mode':0x180}),renameSync(_0x1d9c6b,_0x125a76);}catch(_0x119609){try{unlinkSync(_0x1d9c6b);}catch{}throw _0x119609;}}export function resolveWriteConfigPath(_0x1c0cbc){const _0x5ba37d=a269_0x874071,_0x1760e6=_0x1c0cbc===_0x5ba37d(0xa3)?process[_0x5ba37d(0xa9)]():homedir(),_0x3416af=resolveConfigPath(_0x1760e6);return _0x3416af??resolve(_0x1760e6,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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)];}
|
|
1
|
+
const a270_0xdc89d9=a270_0x4921;(function(_0x1729da,_0x465aca){const _0x26f1bd=a270_0x4921,_0x542f8f=_0x1729da();while(!![]){try{const _0x18e41f=parseInt(_0x26f1bd(0x150))/0x1*(parseInt(_0x26f1bd(0x13f))/0x2)+-parseInt(_0x26f1bd(0x155))/0x3*(parseInt(_0x26f1bd(0x173))/0x4)+parseInt(_0x26f1bd(0x17a))/0x5+parseInt(_0x26f1bd(0x15d))/0x6*(-parseInt(_0x26f1bd(0x151))/0x7)+-parseInt(_0x26f1bd(0x183))/0x8*(parseInt(_0x26f1bd(0x160))/0x9)+parseInt(_0x26f1bd(0x179))/0xa*(-parseInt(_0x26f1bd(0x176))/0xb)+-parseInt(_0x26f1bd(0x178))/0xc*(-parseInt(_0x26f1bd(0x14e))/0xd);if(_0x18e41f===_0x465aca)break;else _0x542f8f['push'](_0x542f8f['shift']());}catch(_0x3eb537){_0x542f8f['push'](_0x542f8f['shift']());}}}(a270_0x567e,0x48943));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x7b94ea){return process.env[`RABETBASE_${_0x7b94ea}`]||process.env[`LOVRABET_${_0x7b94ea}`]||undefined;}function optionalString(_0x1c2de1){const _0x20b477=a270_0x4921;return typeof _0x1c2de1==='string'&&_0x1c2de1[_0x20b477(0x152)]()?_0x1c2de1['trim']():undefined;}export function isRoutingRecoveryService(_0x58df3c){const _0x448e6a=a270_0x4921;return _0x58df3c===_0x448e6a(0x147)||_0x58df3c===_0x448e6a(0x142);}export async function createContext(_0x3a80bf){const _0x740ed=a270_0x4921,{config:_0x143d0d,layers:_0x2e3323}=readRawConfigWithLayers(),_0x1cfef4=buildConfig(_0x143d0d,_0x3a80bf,_0x2e3323);await initGlobalEnvironment(_0x1cfef4);const {getUserDomain:_0x198c98,getApiDomain:_0x31b554}=await import(_0x740ed(0x16e)),_0x132a01={'apiDomain':_0x31b554(),'userDomain':_0x198c98()},_0x180b25=await buildAuth(_0x1cfef4);logger[_0x740ed(0x13c)](process[_0x740ed(0x184)]());const _0x59866a=(CLI_BIN_NAME+'\x20'+process[_0x740ed(0x162)][_0x740ed(0x14b)](0x2)['join']('\x20'))[_0x740ed(0x152)]();logger[_0x740ed(0x189)](_0x59866a);const {isNonInteractive:_0x4dc68e}=await import(_0x740ed(0x163)),_0x47561f=_0x4dc68e(_0x3a80bf);return{'config':_0x1cfef4,'auth':_0x180b25,'logger':logger,'env':_0x132a01,'nonInteractive':_0x47561f};}function a270_0x567e(){const _0x231365=['regionLocation','351BrrfMf','keys','15UPumDS','189SRfiUl','trim','hasOwnProperty','domains','1209564iRJxgT','platformDomain','skillHubDomain','prototype','./constant/env.js','skillDomain','template_base_url','projectConfig','88368ymlzWl','appDomain','cdn','297XbHFcN','production','argv','./utils/is-non-interactive.js','localDomain','daily','apiGroup','raw','certificateDomain','regionSource','length','filePath','source','app','./constant/domain.js','apiDomain','object','userDomain','string','4UsDYXM','project','routingConfig','19833nWeypZ','some','563880ZtMOBH','2180YRpKpW','823610gcWtGm','https://g.lovrabet.com/dist/lovrabet-skill','env','runtimeDomain','routing','appcode','call','agentDomain','app\x20profile\x20\x22','69976QAkJDq','cwd','region','replace','currentApp','project\x20Rabetbase\x20configuration','setRawCommand','setLogPath','apiDir','kbDomain','46184fILcyf','configuredRegion','cookie','doctor','entries','global','kbServiceDomain','apps','config','defaultApp','Rabetbase\x20configuration','merged','slice','globalConfig'];a270_0x567e=function(){return _0x231365;};return a270_0x567e();}export function buildConfigFromFlags(_0x4f5894){const {config:_0x4265d4,layers:_0x3db51c}=readRawConfigWithLayers();return buildConfig(_0x4265d4,_0x4f5894,_0x3db51c);}export async function initGlobalEnvironment(_0x538665){const _0x20437a=a270_0x4921,_0xdeb248=_0x538665[_0x20437a(0x169)]==='app'&&_0x538665[_0x20437a(0x187)]?_0x20437a(0x182)+_0x538665[_0x20437a(0x187)]+'\x22':_0x538665['regionSource']===_0x20437a(0x174)?_0x20437a(0x188):_0x538665[_0x20437a(0x169)]===_0x20437a(0x144)?'global\x20Rabetbase\x20configuration':_0x20437a(0x149);await initConfiguredEnvironment({'raw':_0x538665[_0x20437a(0x167)],'configuredRegion':_0x538665['regionConfiguredValue']??_0x538665[_0x20437a(0x167)]?.[_0x20437a(0x185)]??_0x538665[_0x20437a(0x185)],'regionLocation':_0xdeb248,'targetEnv':_0x538665[_0x20437a(0x17c)]});}async function initConfiguredEnvironment(_0x26d350){const _0x63562=a270_0x4921,_0x16313f=resolveConfiguredRegion(_0x26d350[_0x63562(0x140)],_0x26d350[_0x63562(0x14d)]),_0x691fa5=resolveEnterpriseRoutingManifest(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17e)]),_0x17d954={'region':_0x16313f,'apiDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x16f)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x16f)]),'userDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x171)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x171)]),'runtimeDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x17d)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17d)]),'skillDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x15a)]:optionalString(_0x26d350['raw']?.[_0x63562(0x15a)])||optionalString(_0x26d350[_0x63562(0x167)]?.['skillHubDomain'])||optionalString(_0x26d350['raw']?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x13e)]:optionalString(_0x26d350['raw']?.[_0x63562(0x13e)])||optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbServiceDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x145)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x145)]),'appDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x15e)]:optionalString(_0x26d350['raw']?.['appDomain']),'localDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x164)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x164)]),'certificateDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)]['certificateDomain']:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x168)]),'cdn':_0x691fa5?.[_0x63562(0x15f)],'allowOfficialKbServiceDefault':!(_0x691fa5!==undefined||[_0x63562(0x16f),_0x63562(0x171),_0x63562(0x17d),_0x63562(0x15a),_0x63562(0x157),'kbDomain',_0x63562(0x145),_0x63562(0x181),_0x63562(0x156),_0x63562(0x15e),'localDomain',_0x63562(0x168)][_0x63562(0x177)](_0x11dd03=>Object[_0x63562(0x158)][_0x63562(0x153)][_0x63562(0x180)](_0x26d350[_0x63562(0x167)]??{},_0x11dd03)))},{initEnv:_0xd816ca}=await import(_0x63562(0x159)),{initDomains:_0x1dc928}=await import('./constant/domain.js');_0xd816ca(_0x26d350['targetEnv']),_0x1dc928(_0x17d954);}export async function initMultiAppEnvironment(_0x47c776){const _0x206bac=a270_0x4921;await initConfiguredEnvironment({'raw':_0x47c776[_0x206bac(0x175)],'configuredRegion':_0x47c776['region'],'regionLocation':_0x206bac(0x182)+_0x47c776['name']+'\x22','targetEnv':_0x47c776[_0x206bac(0x17c)]===_0x206bac(0x165)?'daily':_0x206bac(0x161)});}export function getConfigAppCode(_0x202be3){const _0x625648=a270_0x4921,_0x203040=readRawConfig(_0x202be3);if(_0x203040['apps']&&typeof _0x203040[_0x625648(0x146)]===_0x625648(0x170)){const _0x469855=_0x203040[_0x625648(0x148)];if(_0x469855)return _0x203040[_0x625648(0x146)][_0x469855]?.[_0x625648(0x17f)]?String(_0x203040[_0x625648(0x146)][_0x469855][_0x625648(0x17f)])['trim']():undefined;const _0x36d215=Object['values'](_0x203040[_0x625648(0x146)]);if(_0x36d215[_0x625648(0x16a)]===0x1&&_0x36d215[0x0]?.[_0x625648(0x17f)])return String(_0x36d215[0x0]['appcode'])[_0x625648(0x152)]();}const _0x472f17=_0x203040[_0x625648(0x17f)]||_0x203040[_0x625648(0x16d)];if(typeof _0x472f17!==_0x625648(0x172)||_0x472f17['trim']()==='')return undefined;return _0x472f17[_0x625648(0x152)]();}const CONNECTION_ROUTING_KEYS=[a270_0xdc89d9(0x17e),a270_0xdc89d9(0x16f),a270_0xdc89d9(0x171),'runtimeDomain','skillDomain',a270_0xdc89d9(0x157),'kbDomain',a270_0xdc89d9(0x145),a270_0xdc89d9(0x181),a270_0xdc89d9(0x156),a270_0xdc89d9(0x15e),a270_0xdc89d9(0x164),'certificateDomain'];function withAppProfileRouting(_0x4765e5,_0x20c875){const _0x37b246=a270_0xdc89d9;if(!_0x20c875||_0x20c875[_0x37b246(0x145)]===undefined)return _0x4765e5;return{..._0x4765e5,'kbServiceDomain':_0x20c875['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x41cceb,_0x348eff){const _0x10d358={'region':_0x348eff};for(const _0x538195 of CONNECTION_ROUTING_KEYS){if(_0x41cceb[_0x538195]!==undefined)_0x10d358[_0x538195]=_0x41cceb[_0x538195];}return _0x10d358;}export function getMultiAppConfigs(_0x1c6ab1=a270_0xdc89d9(0x174),_0x5d910e){const _0x1c6634=a270_0xdc89d9,_0x46349a=loadRawConfigLayers(_0x5d910e);let _0x3863b9,_0x2781f4;const _0x2af7b4=mergeRawConfigLayers(_0x46349a),_0x39e786=_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]===_0x1c6634(0x170)?_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]:{},_0x205d54=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]==='object'?_0x46349a['projectConfig'][_0x1c6634(0x146)]:{};_0x1c6ab1===_0x1c6634(0x14a)?(_0x3863b9={..._0x39e786,..._0x205d54},_0x2781f4=_0x2af7b4[_0x1c6634(0x148)]):(_0x3863b9=_0x46349a['projectConfig'][_0x1c6634(0x146)],_0x2781f4=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x148)]);!_0x2781f4&&_0x3863b9&&typeof _0x3863b9==='object'&&Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x1&&(_0x2781f4=Object[_0x1c6634(0x14f)](_0x3863b9)[0x0]);if(!_0x3863b9||typeof _0x3863b9!=='object'||Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x0)return null;return Object[_0x1c6634(0x143)](_0x3863b9)['map'](([_0xa3c0aa,_0x16f94c])=>{const _0x2372de=_0x1c6634,_0x31235f=_0x1c6ab1===_0x2372de(0x174)||Object[_0x2372de(0x158)][_0x2372de(0x153)][_0x2372de(0x180)](_0x205d54,_0xa3c0aa),_0x531a58=withAppProfileRouting(_0x31235f?_0x2af7b4:_0x46349a[_0x2372de(0x14c)],_0x16f94c),_0x4d9151=resolveEffectiveRegion({'appRegion':_0x16f94c?.[_0x2372de(0x185)],'projectRegion':_0x31235f?_0x46349a[_0x2372de(0x15c)][_0x2372de(0x185)]:undefined,'globalRegion':_0x46349a[_0x2372de(0x14c)][_0x2372de(0x185)],'mergedRegion':_0x531a58['region'],'appName':_0xa3c0aa});return{'name':_0xa3c0aa,'appcode':_0x16f94c?.[_0x2372de(0x17f)]||'','apiGroup':optionalString(_0x16f94c?.[_0x2372de(0x166)]),'isDefault':_0xa3c0aa===_0x2781f4,'region':_0x4d9151[_0x2372de(0x185)],'regionSource':_0x4d9151[_0x2372de(0x16c)],'env':_0x16f94c?.['env'],'apiDir':optionalString(_0x16f94c?.[_0x2372de(0x13d)])||optionalString(_0x531a58[_0x2372de(0x13d)]),'cookie':_0x16f94c?.[_0x2372de(0x141)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x531a58,_0x4d9151[_0x2372de(0x185)])};})['filter'](_0xb29358=>_0xb29358[_0x1c6634(0x17f)]);}export function getTemplateBaseUrl(_0x2a3358){const _0x27a3aa=a270_0xdc89d9,_0x172d31=readRawConfig(_0x2a3358);if(_0x172d31[_0x27a3aa(0x15b)]&&typeof _0x172d31['template_base_url']===_0x27a3aa(0x172))return _0x172d31[_0x27a3aa(0x15b)][_0x27a3aa(0x186)](/\/$/,'');return _0x27a3aa(0x17b);}function buildConfig(_0x3d4803,_0x454b0c,_0x55daac){const _0xe072d2=a270_0xdc89d9,_0x292193=resolveAppConfig({'raw':_0x3d4803,'flags':_0x454b0c,'layers':_0x55daac,'readEnv':env}),_0x206c33=_0x292193[_0xe072d2(0x187)]?_0x292193['apps'][_0x292193['currentApp']]:undefined;return{..._0x292193,'raw':withAppProfileRouting(_0x3d4803,_0x206c33)};}function a270_0x4921(_0x4dd83d,_0x9d5dfd){_0x4dd83d=_0x4dd83d-0x13c;const _0x567ea6=a270_0x567e();let _0x492139=_0x567ea6[_0x4dd83d];return _0x492139;}export function resolveApiFilePath(_0x1ede17,_0xd74b2d,_0x76073a){const _0x591f60=a270_0xdc89d9;return resolveApiModelSource(_0x1ede17,_0xd74b2d,_0x76073a)[_0x591f60(0x16b)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a271_0x317f9d=a271_0x5d0a;(function(_0x408234,_0x6c3bbb){const _0x151bc6=a271_0x5d0a,_0x309ac6=_0x408234();while(!![]){try{const _0x55283b=-parseInt(_0x151bc6(0x12b))/0x1+parseInt(_0x151bc6(0x11c))/0x2*(parseInt(_0x151bc6(0x13b))/0x3)+-parseInt(_0x151bc6(0x127))/0x4+parseInt(_0x151bc6(0x124))/0x5*(-parseInt(_0x151bc6(0x12c))/0x6)+-parseInt(_0x151bc6(0x137))/0x7*(parseInt(_0x151bc6(0x128))/0x8)+-parseInt(_0x151bc6(0x141))/0x9*(-parseInt(_0x151bc6(0x121))/0xa)+parseInt(_0x151bc6(0x131))/0xb;if(_0x55283b===_0x6c3bbb)break;else _0x309ac6['push'](_0x309ac6['shift']());}catch(_0x54ac0e){_0x309ac6['push'](_0x309ac6['shift']());}}}(a271_0x4aeb,0x1b348));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a271_0x317f9d(0x12a),a271_0x317f9d(0x139),'.mts',a271_0x317f9d(0x11d),'.js',a271_0x317f9d(0x123),a271_0x317f9d(0x132),a271_0x317f9d(0x138)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a271_0x317f9d(0x12a),a271_0x317f9d(0x139)],'.jsx':[a271_0x317f9d(0x139)],'.mjs':[a271_0x317f9d(0x13e)],'.cjs':[a271_0x317f9d(0x11d)]};function parseApiFile(_0x39e0dd){const _0x8aed06=a271_0x317f9d;return parseLegacyApiModels(_0x39e0dd)[_0x8aed06(0x13a)](_0x12d279=>_0x12d279[_0x8aed06(0x119)]?[{'alias':_0x12d279[_0x8aed06(0x119)],'datasetCode':_0x12d279[_0x8aed06(0x13c)],'tableName':_0x12d279[_0x8aed06(0x12f)],'name':_0x12d279[_0x8aed06(0x122)]}]:[]);}function isWithinRoot(_0x2c2a23,_0x381952){const _0x2df8c4=a271_0x317f9d,_0x1d3a56=relative(_0x2c2a23,_0x381952);return _0x1d3a56===''||!_0x1d3a56[_0x2df8c4(0x130)]('..')&&!isAbsolute(_0x1d3a56);}function resolveExistingFile(_0x36e22e){if(!existsSync(_0x36e22e))return undefined;try{return statSync(_0x36e22e)['isFile']()?realpathSync(_0x36e22e):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x5587c6){const _0x47fbfd=a271_0x317f9d,_0x10e0d7=extname(_0x5587c6);if(!_0x10e0d7)return[...SOURCE_FILE_EXTENSIONS['map'](_0x361846=>''+_0x5587c6+_0x361846),...SOURCE_FILE_EXTENSIONS[_0x47fbfd(0x11a)](_0x1a4bac=>resolve(_0x5587c6,_0x47fbfd(0x11e)+_0x1a4bac))];const _0x3f168b=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x10e0d7];if(!_0x3f168b)return[_0x5587c6];const _0x1c4a03=_0x5587c6[_0x47fbfd(0x13d)](0x0,-_0x10e0d7['length']);return[..._0x3f168b[_0x47fbfd(0x11a)](_0x510f1e=>''+_0x1c4a03+_0x510f1e),_0x5587c6];}function resolveLocalReexport(_0x47a36d,_0x4dc375,_0x2a386e){const _0x18e51a=a271_0x317f9d;if(!_0x4dc375[_0x18e51a(0x130)]('./')&&!_0x4dc375[_0x18e51a(0x130)](_0x18e51a(0x125)))return undefined;const _0x179232=resolve(dirname(_0x47a36d),_0x4dc375);if(!isWithinRoot(_0x2a386e,_0x179232))return undefined;for(const _0x3798a5 of reexportCandidatePaths(_0x179232)){const _0x1a4e69=resolveExistingFile(_0x3798a5);if(_0x1a4e69&&isWithinRoot(_0x2a386e,_0x1a4e69))return _0x1a4e69;}return undefined;}function parseApiFileTree(_0x500657,_0x4c01f9,_0x17dcd0,_0x2375f8){const _0x395f79=a271_0x317f9d,_0xde02fa=resolveExistingFile(_0x500657);if(!_0xde02fa)return[];const _0x1055fa=_0x17dcd0[_0x395f79(0x13f)](_0xde02fa);if(_0x1055fa!==undefined&&_0x1055fa<=_0x2375f8)return[];_0x17dcd0[_0x395f79(0x12e)](_0xde02fa,_0x2375f8);const _0x1598a2=readFileSync(_0xde02fa,_0x395f79(0x135)),_0x23538f=parseApiFile(_0x1598a2);if(_0x2375f8>=MAX_LOCAL_REEXPORT_DEPTH)return _0x23538f;const _0xef4452=new RegExp(LOCAL_REEXPORT_RE[_0x395f79(0x129)],LOCAL_REEXPORT_RE[_0x395f79(0x133)]);let _0x1a4dad;while((_0x1a4dad=_0xef4452['exec'](_0x1598a2))!==null){const _0x18c998=resolveLocalReexport(_0xde02fa,_0x1a4dad[0x1],_0x4c01f9);_0x18c998&&_0x23538f[_0x395f79(0x134)](...parseApiFileTree(_0x18c998,_0x4c01f9,_0x17dcd0,_0x2375f8+0x1));}return _0x23538f;}function aliasProjectRoot(_0x2232ce){const _0x232538=findProjectRootDirectory(dirname(_0x2232ce));try{return realpathSync(_0x232538);}catch{return _0x232538;}}function uniqueAliasEntries(_0x59e7f8){const _0x174009=a271_0x317f9d,_0x14afcb=new Set();return _0x59e7f8[_0x174009(0x11b)](_0x11ca08=>{const _0x4ebe73=_0x174009,_0xaa6a38=JSON[_0x4ebe73(0x136)](_0x11ca08);if(_0x14afcb[_0x4ebe73(0x120)](_0xaa6a38))return![];return _0x14afcb['add'](_0xaa6a38),!![];});}function a271_0x4aeb(){const _0x4d398a=['source','.ts','196397CcziUy','6FSmmuc','api.ts','set','tableName','startsWith','5955631yBfoPd','.mjs','flags','push','utf-8','stringify','594027dBBXrg','.cjs','.tsx','flatMap','12TmjNXB','datasetCode','slice','.mts','get','cwd','133173LqJkcz','alias','map','filter','15508wlZxcP','.cts','index','size','has','100oDvoQZ','name','.jsx','529915DmPeor','../','endsWith','886936TLxyTo','8jrLnQh'];a271_0x4aeb=function(){return _0x4d398a;};return a271_0x4aeb();}function a271_0x5d0a(_0x12802f,_0x2157d3){_0x12802f=_0x12802f-0x119;const _0x4aebdd=a271_0x4aeb();let _0x5d0ad2=_0x4aebdd[_0x12802f];return _0x5d0ad2;}export function loadAliasMap(_0x5280f1,_0x19b757,_0x4ecf98,_0x149335){const _0x3c5176=a271_0x317f9d,_0x4beb10=resolve(_0x4ecf98??resolve(process[_0x3c5176(0x140)](),_0x5280f1,_0x3c5176(0x12d))),_0x5e5771=_0x149335?_0x4beb10+'#'+_0x149335:_0x4beb10;if(cache[_0x3c5176(0x120)](_0x5e5771))return cache[_0x3c5176(0x13f)](_0x5e5771);if(!existsSync(_0x4beb10))return cache[_0x3c5176(0x12e)](_0x5e5771,[]),[];try{if(_0x4beb10[_0x3c5176(0x126)](MODEL_REGISTRY_FILE_NAME)){const _0x42cd26=readModelRegistry(_0x4beb10),_0x393494=_0x149335??_0x42cd26?.['defaultProfile'],_0x1f28ac=_0x393494&&_0x42cd26?getProfileModels(_0x42cd26,_0x393494):[],_0x4cf0b9=uniqueAliasEntries(_0x1f28ac[_0x3c5176(0x13a)](_0x4ff338=>_0x4ff338[_0x3c5176(0x119)]?[{'alias':_0x4ff338[_0x3c5176(0x119)],'datasetCode':_0x4ff338[_0x3c5176(0x13c)],'tableName':_0x4ff338[_0x3c5176(0x12f)],'name':_0x4ff338['name']}]:[]));return cache[_0x3c5176(0x12e)](_0x5e5771,_0x4cf0b9),_0x4cf0b9;}const _0x228e8a=uniqueAliasEntries(parseApiFileTree(_0x4beb10,aliasProjectRoot(_0x4beb10),new Map(),0x0));return cache['set'](_0x5e5771,_0x228e8a),_0x228e8a;}catch{return cache[_0x3c5176(0x12e)](_0x5e5771,[]),[];}}export function resolveAlias(_0x10cf06,_0x3a0e85,_0x3ae92f,_0x494eab,_0x5122d0){const _0x417a22=a271_0x317f9d;if(!_0x3a0e85)return undefined;const _0x4e1d66=loadAliasMap(_0x10cf06,_0x3ae92f,_0x494eab,_0x5122d0),_0x2cb2ce=new Set(_0x4e1d66[_0x417a22(0x11b)](_0x7472ce=>_0x7472ce[_0x417a22(0x119)]===_0x3a0e85)[_0x417a22(0x11a)](_0x5308fe=>_0x5308fe[_0x417a22(0x13c)]));return _0x2cb2ce[_0x417a22(0x11f)]===0x1?[..._0x2cb2ce][0x0]:undefined;}export function listAliases(_0x204fbf,_0x550c10,_0x2bf196,_0x3f6778){return loadAliasMap(_0x204fbf,_0x550c10,_0x2bf196,_0x3f6778);}
|
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(unionId: string): Promise<boolean>;
|
|
60
62
|
export interface PlatformFetchOptions {
|
|
61
63
|
method?: "GET" | "POST";
|
|
62
64
|
body?: Record<string, any>;
|