@lovrabet/rabetbase-cli 2.5.0-beta.2 → 2.5.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.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/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/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/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/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-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/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/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.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/template.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/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/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/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.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/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.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/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/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.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 +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-custom-list.md +5 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a205_0x387a43=a205_0x896b;(function(_0x2febce,_0x2c7a73){const _0x5aa11b=a205_0x896b,_0x1aa860=_0x2febce();while(!![]){try{const _0x424651=parseInt(_0x5aa11b(0xea))/0x1+parseInt(_0x5aa11b(0xcf))/0x2*(-parseInt(_0x5aa11b(0xe6))/0x3)+parseInt(_0x5aa11b(0xf0))/0x4+-parseInt(_0x5aa11b(0xe2))/0x5*(-parseInt(_0x5aa11b(0xe9))/0x6)+parseInt(_0x5aa11b(0xd2))/0x7*(parseInt(_0x5aa11b(0xf5))/0x8)+-parseInt(_0x5aa11b(0xd4))/0x9+-parseInt(_0x5aa11b(0xef))/0xa*(parseInt(_0x5aa11b(0xdd))/0xb);if(_0x424651===_0x2c7a73)break;else _0x1aa860['push'](_0x1aa860['shift']());}catch(_0x106b26){_0x1aa860['push'](_0x1aa860['shift']());}}}(a205_0x54e5,0x7f87a));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a205_0x387a43(0xce),a205_0x387a43(0xf7),a205_0x387a43(0xe7),a205_0x387a43(0xe3),a205_0x387a43(0xe8),'appDomain'];function a205_0x896b(_0x243750,_0x2ef020){_0x243750=_0x243750-0xcb;const _0x54e56e=a205_0x54e5();let _0x896b10=_0x54e56e[_0x243750];return _0x896b10;}const DOMAIN_FLAGS={'userDomain':a205_0x387a43(0xf6),'apiDomain':'api-domain','runtimeDomain':a205_0x387a43(0xf9),'skillDomain':a205_0x387a43(0xe4),'kbDomain':'kb-domain','appDomain':'app-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a205_0x387a43(0xdf),a205_0x387a43(0xed),a205_0x387a43(0xf2)];export function normalizeDomainOrigin(_0x134269,_0x2313fc){const _0x3d5512=a205_0x387a43;if(typeof _0x2313fc!=='string'||!_0x2313fc['trim']())throw CliErrors[_0x3d5512(0xdb)](_0x3d5512(0xf8)+_0x134269+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x1fbae0;try{_0x1fbae0=new URL(_0x2313fc['trim']());}catch{throw CliErrors[_0x3d5512(0xdb)](_0x3d5512(0xf8)+_0x134269+_0x3d5512(0xd8)+_0x2313fc+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x1fbae0[_0x3d5512(0xd3)]!=='https:'||_0x1fbae0[_0x3d5512(0xd5)]||_0x1fbae0['password']||_0x1fbae0['pathname']!=='/'&&_0x1fbae0[_0x3d5512(0xe0)]!==''||_0x1fbae0[_0x3d5512(0xcd)]||_0x1fbae0[_0x3d5512(0xe1)])throw CliErrors['validation'](_0x3d5512(0xf8)+_0x134269+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x3d5512(0xeb));return _0x1fbae0[_0x3d5512(0xf1)];}export function readDomainConfig(_0x2feff1){const _0x367b0f=a205_0x387a43,_0x470e98=isAbsolute(_0x2feff1)?_0x2feff1:resolve(process['cwd'](),_0x2feff1);if(!existsSync(_0x470e98))throw CliErrors[_0x367b0f(0xdb)](_0x367b0f(0xda)+_0x470e98);let _0x2143d0;try{_0x2143d0=JSON[_0x367b0f(0xde)](readFileSync(_0x470e98,_0x367b0f(0xd0)));}catch{throw CliErrors[_0x367b0f(0xdb)](_0x367b0f(0xfb)+_0x470e98);}if(!_0x2143d0||typeof _0x2143d0!==_0x367b0f(0xd1)||Array[_0x367b0f(0xee)](_0x2143d0))throw CliErrors['validation'](_0x367b0f(0xec));const _0x266a6b=_0x2143d0,_0x574b78=Object[_0x367b0f(0xfa)](_0x266a6b)[_0x367b0f(0xd6)](_0x297863=>!DOMAIN_CONFIG_FIELDS['includes'](_0x297863));if(_0x574b78[_0x367b0f(0xd9)]>0x0)throw CliErrors['validation'](_0x367b0f(0xe5)+_0x574b78[_0x367b0f(0xd7)](',\x20'),_0x367b0f(0xcb)+DOMAIN_CONFIG_FIELDS[_0x367b0f(0xd7)](',\x20'));const _0x74ba74={};for(const _0x506ea6 of DOMAIN_CONFIG_FIELDS){_0x266a6b[_0x506ea6]!==undefined&&(_0x74ba74[_0x506ea6]=normalizeDomainOrigin(_0x506ea6,_0x266a6b[_0x506ea6]));}if(Object[_0x367b0f(0xfa)](_0x74ba74)['length']===0x0)throw CliErrors[_0x367b0f(0xdb)](_0x367b0f(0xcc));return _0x74ba74;}function a205_0x54e5(){const _0x9d8a93=['For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','platformDomain','isArray','9930nsbMrg','4132140mEmyYJ','origin','skillHubDomain','trim','domain-config','1128KjqhHR','user-domain','apiDomain','Invalid\x20','runtime-domain','keys','Invalid\x20domain\x20config\x20JSON:\x20','Allowed\x20fields:\x20','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','search','userDomain','120336wJjJLy','utf8','object','19103yWKfDp','protocol','1632465JTrcAn','username','filter','join',':\x20\x22','length','Domain\x20config\x20file\x20not\x20found:\x20','validation','str','24717wwzXfh','parse','agentDomain','pathname','hash','5BhSErk','skillDomain','skill-domain','Unsupported\x20domain\x20config\x20field(s):\x20','18ZwOCEg','runtimeDomain','kbDomain','5954772deMoiO','885740VbYgRV'];a205_0x54e5=function(){return _0x9d8a93;};return a205_0x54e5();}export function resolveDomainFlags(_0x1183b7){const _0x1b317c=a205_0x387a43,_0x2e1510=(_0x1183b7[_0x1b317c(0xdc)](_0x1b317c(0xf4))||'')[_0x1b317c(0xf3)](),_0x11fca7=_0x2e1510?readDomainConfig(_0x2e1510):{};for(const _0x3040f7 of DOMAIN_CONFIG_FIELDS){const _0x3af343=(_0x1183b7[_0x1b317c(0xdc)](DOMAIN_FLAGS[_0x3040f7])||'')[_0x1b317c(0xf3)]();if(_0x3af343)_0x11fca7[_0x3040f7]=normalizeDomainOrigin(_0x3040f7,_0x3af343);}return _0x11fca7;}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x43bad2=a206_0x4923;(function(_0x8207b1,_0x1bce83){const _0x6f6432=a206_0x4923,_0x14cd3d=_0x8207b1();while(!![]){try{const _0x884610=-parseInt(_0x6f6432(0xed))/0x1+-parseInt(_0x6f6432(0xee))/0x2+-parseInt(_0x6f6432(0x10c))/0x3*(-parseInt(_0x6f6432(0x10b))/0x4)+parseInt(_0x6f6432(0x11a))/0x5*(-parseInt(_0x6f6432(0xf7))/0x6)+-parseInt(_0x6f6432(0x118))/0x7+parseInt(_0x6f6432(0xf8))/0x8*(-parseInt(_0x6f6432(0xff))/0x9)+-parseInt(_0x6f6432(0x119))/0xa*(-parseInt(_0x6f6432(0x117))/0xb);if(_0x884610===_0x1bce83)break;else _0x14cd3d['push'](_0x14cd3d['shift']());}catch(_0xe1d3cd){_0x14cd3d['push'](_0x14cd3d['shift']());}}}(a206_0xb1c9,0x5eae7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a206_0xb1c9(){const _0xfbeb72=['appDomain','has','trim','length','1108mVThYd','2781FYFtXy','Target\x20environment','keys','locale','en-US','string','apps','userDomain','app','inherit','defaultApp','2407966YXoeFG','1359729SDtXwI','90HMYIWA','45RbQoKp','cookie','169668Eyqudv','1287764qkbKWY','number','env','format','zh-CN','join','apiDomain','Auth\x20cookie','Default\x20page\x20size','424236eIZKLt','24ikedUn','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','appcode','defaultFormat','Config\x20key\x20(','riskLevel','skillDomain','584901gyfNUs','runtimeDomain','kbDomain','accessKey','pageSize','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','apiDir','region'];a206_0xb1c9=function(){return _0xfbeb72;};return a206_0xb1c9();}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a206_0x43bad2(0x11b),a206_0x43bad2(0x102),a206_0x43bad2(0x10f),'format','riskLevel',a206_0x43bad2(0x106),a206_0x43bad2(0x113),a206_0x43bad2(0xf4),'runtimeDomain','skillDomain',a206_0x43bad2(0x101),a206_0x43bad2(0x107)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a206_0x43bad2(0xf0),a206_0x43bad2(0x10f),a206_0x43bad2(0xf1),'cookie',a206_0x43bad2(0x102),a206_0x43bad2(0x105),a206_0x43bad2(0x106),a206_0x43bad2(0x113),'apiDomain',a206_0x43bad2(0x100),a206_0x43bad2(0xfe),'kbDomain','appDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x55182c){const _0x40e1f5=a206_0x43bad2;return[..._0x55182c][_0x40e1f5(0xf3)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x242030){const _0xa70e17=a206_0x43bad2;return TOP_LEVEL_CONFIG_KEYS[_0xa70e17(0x108)](_0x242030);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1bb873=a206_0x43bad2;return _0x1bb873(0xfc)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a206_0x43bad2(0x105),'cookie':a206_0x43bad2(0x11b),'accessKey':a206_0x43bad2(0x102),'defaultFormat':a206_0x43bad2(0xf1),'pageSize':a206_0x43bad2(0x103),'riskLevel':'riskLevel','locale':a206_0x43bad2(0x10f)};export function getAppProfileFlagDefs(){const _0x3c7538=a206_0x43bad2;return[{'name':_0x3c7538(0xf0),'type':_0x3c7538(0x111),'description':_0x3c7538(0x10d),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3c7538(0x105),'type':_0x3c7538(0x111),'description':'API\x20directory\x20path'},{'name':_0x3c7538(0x11b),'type':_0x3c7538(0x111),'description':_0x3c7538(0xf5),'hidden':!![]},{'name':_0x3c7538(0x102),'type':_0x3c7538(0x111),'description':'Access\x20key','hidden':!![]},{'name':_0x3c7538(0xfb),'type':_0x3c7538(0x111),'description':_0x3c7538(0x104),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x3c7538(0xef),'description':_0x3c7538(0xf6)},{'name':_0x3c7538(0xfd),'type':_0x3c7538(0x111),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x3c7538(0xf9)}];}export function collectAppProfileOverrides(_0xa0f21f){const _0x4f51e4=a206_0x43bad2,_0x204864={};for(const [_0x5140e5,_0x4f7089]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x2dacd6=_0xa0f21f(_0x5140e5);if(!_0x2dacd6)continue;_0x204864[_0x4f7089]=_0x4f7089===_0x4f51e4(0x103)?Number(_0x2dacd6):_0x2dacd6;}return _0x204864;}export function buildAppProfileListFields(_0x101e71){const _0x2476d3=a206_0x43bad2;return{'env':_0x101e71[_0x2476d3(0xf0)]??null,'apiDir':_0x101e71[_0x2476d3(0x105)]??null,'hasCookie':!!_0x101e71[_0x2476d3(0x11b)],'hasAccessKey':!!_0x101e71[_0x2476d3(0x102)],'format':_0x101e71[_0x2476d3(0xf1)]??null,'pageSize':_0x101e71[_0x2476d3(0x103)]??null,'riskLevel':_0x101e71[_0x2476d3(0xfd)]??null,'locale':_0x101e71[_0x2476d3(0x10f)]??null};}export function buildAppDoctorFields(_0x6ba9cd,_0x563d8c){const _0x50199c=a206_0x43bad2;return{'env':{'value':_0x6ba9cd['env']||_0x563d8c[_0x50199c(0xf0)],'source':_0x6ba9cd[_0x50199c(0xf0)]?_0x50199c(0x114):_0x50199c(0x115)},'apiDir':{'value':_0x6ba9cd[_0x50199c(0x105)]||_0x563d8c[_0x50199c(0x105)],'source':_0x6ba9cd[_0x50199c(0x105)]?_0x50199c(0x114):_0x50199c(0x115)},'cookie':{'value':_0x6ba9cd[_0x50199c(0x11b)]||_0x563d8c['cookie'],'source':_0x6ba9cd[_0x50199c(0x11b)]?_0x50199c(0x114):_0x50199c(0x115)},'accessKey':{'value':_0x6ba9cd[_0x50199c(0x102)]||_0x563d8c[_0x50199c(0x102)],'source':_0x6ba9cd['accessKey']?_0x50199c(0x114):_0x50199c(0x115)}};}export function buildCanonicalAppConfig(_0x3fe88d,_0x4571e8){const _0x5b50d8=a206_0x43bad2,_0x597693=_0x3fe88d['map'](_0x4c418e=>String(_0x4c418e||'')[_0x5b50d8(0x109)]())['filter'](Boolean);if(_0x597693[_0x5b50d8(0x10a)]===0x0)return{};const _0x578b8b={};for(const _0x1ae532 of _0x597693){_0x578b8b[_0x1ae532]=_0x4571e8?{'appcode':_0x1ae532,'env':_0x4571e8}:{'appcode':_0x1ae532};}return _0x597693[_0x5b50d8(0x10a)]>0x1?{'apps':_0x578b8b,'defaultApp':_0x597693[0x0]}:{'apps':_0x578b8b};}function a206_0x4923(_0x43742f,_0x3ee4ab){_0x43742f=_0x43742f-0xed;const _0xb1c95b=a206_0xb1c9();let _0x492313=_0xb1c95b[_0x43742f];return _0x492313;}export function normalizeStoredDefaultApp(_0x2acec9,_0x236820){const _0x470b72=a206_0x43bad2,_0x3d777a=_0x2acec9[_0x470b72(0x112)]&&typeof _0x2acec9[_0x470b72(0x112)]==='object'?_0x2acec9[_0x470b72(0x112)]:{},_0x5d36d1=Object[_0x470b72(0x10e)](_0x3d777a);if(_0x5d36d1[_0x470b72(0x10a)]<=0x1)return delete _0x2acec9[_0x470b72(0x116)],undefined;const _0x2704a2=typeof _0x2acec9[_0x470b72(0x116)]===_0x470b72(0x111)&&_0x3d777a[_0x2acec9[_0x470b72(0x116)]]?_0x2acec9[_0x470b72(0x116)]:undefined,_0x3cbdbf=_0x236820&&_0x3d777a[_0x236820]?_0x236820:_0x2704a2;if(_0x3cbdbf)return _0x2acec9[_0x470b72(0x116)]=_0x3cbdbf,_0x3cbdbf;return delete _0x2acec9['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x536927,_0x5aa3a5){const _0x3ce426=a206_0x43bad2,{appCodes:appCodes=[],env:_0x2103c8,metadata:_0x5d92a1}=_0x5aa3a5,_0x51314a={..._0x536927,..._0x5d92a1||{}};delete _0x51314a[_0x3ce426(0xfa)],delete _0x51314a['app'];if(_0x2103c8)_0x51314a[_0x3ce426(0xf0)]=_0x2103c8;else!_0x51314a[_0x3ce426(0xf0)]&&(_0x51314a[_0x3ce426(0xf0)]=DEFAULT_CONFIG_VALUES[_0x3ce426(0xf0)]);const _0xbb592a=buildCanonicalAppConfig(appCodes,_0x51314a[_0x3ce426(0xf0)]);if(Object[_0x3ce426(0x10e)](_0xbb592a)[_0x3ce426(0x10a)]>0x0){_0x51314a[_0x3ce426(0x112)]=_0xbb592a['apps'];if(_0xbb592a[_0x3ce426(0x116)])_0x51314a['defaultApp']=_0xbb592a['defaultApp'];else delete _0x51314a['defaultApp'];}return _0x51314a;}const LOCALE_MAP={'zh':a206_0x43bad2(0xf2),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a206_0x43bad2(0x110),'en-us':a206_0x43bad2(0x110),'en_us':a206_0x43bad2(0x110)};export function normalizeLocale(_0x10cb6d){if(!_0x10cb6d)return null;return LOCALE_MAP[_0x10cb6d['toLowerCase']()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x26198a=a207_0x3d6b;function a207_0x19cb(){const _0x31c8f1=['4036980YbfLct','/config/index.json','2487552NiTGnD','556558cbMiIu','1057VXheii','27784LMySkm','556NTPQTA','230UhgXzs','35730vsmwHb','2160540CfhjgR','https://g.lovrabet.com/dist/rabetbase-cli','486963uqxXhS'];a207_0x19cb=function(){return _0x31c8f1;};return a207_0x19cb();}(function(_0x4dc043,_0x6b822f){const _0x5191f2=a207_0x3d6b,_0x433830=_0x4dc043();while(!![]){try{const _0x2789f1=-parseInt(_0x5191f2(0x1b8))/0x1+-parseInt(_0x5191f2(0x1b7))/0x2+-parseInt(_0x5191f2(0x1b2))/0x3+parseInt(_0x5191f2(0x1bb))/0x4*(parseInt(_0x5191f2(0x1bd))/0x5)+parseInt(_0x5191f2(0x1b5))/0x6+parseInt(_0x5191f2(0x1b9))/0x7*(parseInt(_0x5191f2(0x1ba))/0x8)+parseInt(_0x5191f2(0x1b4))/0x9*(parseInt(_0x5191f2(0x1bc))/0xa);if(_0x2789f1===_0x6b822f)break;else _0x433830['push'](_0x433830['shift']());}catch(_0x4093d4){_0x433830['push'](_0x433830['shift']());}}}(a207_0x19cb,0xdf43e));function a207_0x3d6b(_0x36e8c3,_0x3ef25a){_0x36e8c3=_0x36e8c3-0x1b2;const _0x19cbe1=a207_0x19cb();let _0x3d6b67=_0x19cbe1[_0x36e8c3];return _0x3d6b67;}export const RABETBASE_CDN_BASE_URL=a207_0x26198a(0x1b3);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a207_0x26198a(0x1b6);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a208_0x3ffdc2=a208_0x428b;(function(_0x1bf91c,_0x6b6cc1){const _0x572894=a208_0x428b,_0x2dfe9b=_0x1bf91c();while(!![]){try{const _0x508c86=-parseInt(_0x572894(0x1eb))/0x1*(parseInt(_0x572894(0x22a))/0x2)+-parseInt(_0x572894(0x260))/0x3+-parseInt(_0x572894(0x245))/0x4*(-parseInt(_0x572894(0x1e0))/0x5)+parseInt(_0x572894(0x217))/0x6*(-parseInt(_0x572894(0x20b))/0x7)+parseInt(_0x572894(0x236))/0x8+-parseInt(_0x572894(0x23d))/0x9+parseInt(_0x572894(0x23e))/0xa;if(_0x508c86===_0x6b6cc1)break;else _0x2dfe9b['push'](_0x2dfe9b['shift']());}catch(_0x27b015){_0x2dfe9b['push'](_0x2dfe9b['shift']());}}}(a208_0x29ce,0x2a00a));function a208_0x29ce(){const _0x20b63d=['App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','map','Record\x20ID','label','description-file','1454616aZCrgZ','5367650hIcLlC','expect-path','@lovrabet/rabetbase-cli','Output\x20format','expectParentId','appcode','fromEnv','4MqFmhU','menu-ids','Environment','nonInteractive','non-interactive','key','env','Target\x20path','function-node','sql-name','menuIds','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20stdin','Enable\x20Backend\x20Function\x20save','<code>','parent-id','verbose','sql','descriptionFile','expectedChildrenCount','target','Menu\x20label','skip-imports','topk','locale','operation','file','911805YlLkvb','Search\x20query','type','dbid','skipImports','query','Use\x20remote','1677685tsayqn','string','yes','name','Use\x20project\x20config\x20scope','taskId','stdin','fromEntries','SQL\x20name','Keyword\x20filter','value','263137uexCbq','code','Show\x20help','Config\x20key','force','clear','DB\x20ID','expected-count','output','global','rabetbase','Tags','params','SQL\x20string','description','dry-run','page','dryRun','format','Type\x20filter','pagesize','all','datasetcode','Expected\x20current\x20parent\x20menu\x20id','Apply\x20to\x20all','boolean','json\x20|\x20pretty\x20|\x20compress','Expected\x20affected\x20count','Watch\x20mode','keyword','tags','reveal','1181467IuoBoj','Menu\x20sort\x20value','dbId','sqlname','Maximum\x20search\x20hits','confirm','title','Select\x20app\x20profile\x20by\x20name','expectedCount','JSON\x20params','Output\x20path','Dataset\x20code','6ThwPYh','Force\x20overwrite','Reveal\x20sensitive\x20value','Description\x20file','sort','app','operation-type','zh-CN\x20|\x20en-US','Page\x20number','Preview\x20operation\x20without\x20executing','remote','Schemas','help','functionNode','enable-bff-save','production\x20|\x20daily','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20import\x20generation','Name','2QdMpFl','Rabetbase\x20CLI','expectPath','schemas','Operation\x20type','File\x20path','Asynchronous\x20task\x20ID','Comma-separated\x20menu\x20IDs','watch','Code\x20filter','sqlcode','task-id','1577736rTsWJI','Override\x20appcode'];a208_0x29ce=function(){return _0x20b63d;};return a208_0x29ce();}export const CLI_BIN_NAME=a208_0x3ffdc2(0x1f5);export const CLI_DISPLAY_NAME=a208_0x3ffdc2(0x22b);function a208_0x428b(_0x1717ed,_0x324844){_0x1717ed=_0x1717ed-0x1da;const _0x29ce16=a208_0x29ce();let _0x428b01=_0x29ce16[_0x1717ed];return _0x428b01;}export const NPM_PACKAGE_NAME=a208_0x3ffdc2(0x240);export const GLOBAL_FLAGS=[{'name':a208_0x3ffdc2(0x243),'meowKey':a208_0x3ffdc2(0x243),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x237),'hint':a208_0x3ffdc2(0x253)},{'name':a208_0x3ffdc2(0x21c),'meowKey':'app','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x212),'hint':'<name>'},{'name':'env','meowKey':a208_0x3ffdc2(0x24b),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x247),'hint':a208_0x3ffdc2(0x226)},{'name':a208_0x3ffdc2(0x1fd),'meowKey':a208_0x3ffdc2(0x1fd),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x241),'hint':a208_0x3ffdc2(0x205)},{'name':'jq','meowKey':'jq','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x250),'hint':'<expr>'},{'name':a208_0x3ffdc2(0x1fa),'meowKey':a208_0x3ffdc2(0x1fc),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x220)},{'name':a208_0x3ffdc2(0x1e2),'meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a208_0x3ffdc2(0x248),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x227)},{'name':a208_0x3ffdc2(0x1f4),'meowKey':a208_0x3ffdc2(0x1f4),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':'project','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x1e4)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a208_0x3ffdc2(0x223),'meowKey':'help','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x1ed)},{'name':a208_0x3ffdc2(0x25d),'meowKey':a208_0x3ffdc2(0x25d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x238),'hidden':!![],'hint':a208_0x3ffdc2(0x21e)},{'name':a208_0x3ffdc2(0x1e3),'meowKey':'name','type':'string','description':a208_0x3ffdc2(0x229),'hidden':!![]},{'name':a208_0x3ffdc2(0x211),'meowKey':a208_0x3ffdc2(0x211),'type':a208_0x3ffdc2(0x1e1),'description':'Title','hidden':!![]},{'name':a208_0x3ffdc2(0x1de),'meowKey':a208_0x3ffdc2(0x1de),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1da),'hidden':!![]},{'name':a208_0x3ffdc2(0x25c),'meowKey':'topk','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x20f),'hidden':!![]},{'name':'clear','meowKey':a208_0x3ffdc2(0x1f0),'type':a208_0x3ffdc2(0x204),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a208_0x3ffdc2(0x232),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x207),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f3),'meowKey':'output','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x215),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f7),'meowKey':'params','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x214),'hidden':!![]},{'name':a208_0x3ffdc2(0x201),'meowKey':a208_0x3ffdc2(0x201),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x216),'hidden':!![]},{'name':'all','meowKey':a208_0x3ffdc2(0x200),'type':'boolean','description':a208_0x3ffdc2(0x203),'hidden':!![]},{'name':a208_0x3ffdc2(0x225),'meowKey':'enableBffSave','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x252),'hidden':!![]},{'name':'id','meowKey':'id','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x23a),'hidden':!![]},{'name':a208_0x3ffdc2(0x1db),'meowKey':a208_0x3ffdc2(0x1db),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1fe),'hidden':!![]},{'name':'file','meowKey':a208_0x3ffdc2(0x25f),'type':'string','description':a208_0x3ffdc2(0x22f),'hidden':!![]},{'name':a208_0x3ffdc2(0x234),'meowKey':a208_0x3ffdc2(0x234),'type':a208_0x3ffdc2(0x1e1),'description':'SQL\x20code','hidden':!![]},{'name':a208_0x3ffdc2(0x24e),'meowKey':'sqlName','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e8),'hidden':!![]},{'name':'sqlname','meowKey':a208_0x3ffdc2(0x20e),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e8),'hidden':!![]},{'name':'db-id','meowKey':a208_0x3ffdc2(0x20d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f1),'hidden':!![]},{'name':a208_0x3ffdc2(0x1dc),'meowKey':a208_0x3ffdc2(0x1dc),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f1),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f9),'meowKey':'description','type':a208_0x3ffdc2(0x1e1),'description':'Description','hidden':!![]},{'name':a208_0x3ffdc2(0x23c),'meowKey':a208_0x3ffdc2(0x257),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x21a),'hidden':!![]},{'name':a208_0x3ffdc2(0x1fb),'meowKey':a208_0x3ffdc2(0x1fb),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x21f),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ff),'meowKey':'pagesize','type':a208_0x3ffdc2(0x1e1),'description':'Page\x20size','hidden':!![]},{'name':a208_0x3ffdc2(0x208),'meowKey':a208_0x3ffdc2(0x208),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e9),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ec),'meowKey':a208_0x3ffdc2(0x1ec),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x233),'hidden':!![]},{'name':a208_0x3ffdc2(0x256),'meowKey':'sql','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f8),'hidden':!![]},{'name':a208_0x3ffdc2(0x22d),'meowKey':a208_0x3ffdc2(0x22d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x222),'hidden':!![]},{'name':'operation','meowKey':a208_0x3ffdc2(0x25e),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a208_0x3ffdc2(0x259),'meowKey':'target','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x24c),'hidden':!![]},{'name':a208_0x3ffdc2(0x25b),'meowKey':a208_0x3ffdc2(0x1dd),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x228),'hidden':!![]},{'name':a208_0x3ffdc2(0x24a),'meowKey':a208_0x3ffdc2(0x24a),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1ee),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ea),'meowKey':a208_0x3ffdc2(0x1ea),'type':a208_0x3ffdc2(0x1e1),'description':'Config\x20value','hidden':!![]},{'name':a208_0x3ffdc2(0x209),'meowKey':a208_0x3ffdc2(0x209),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f6),'hidden':!![]},{'name':a208_0x3ffdc2(0x1e6),'meowKey':'stdin','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x251),'hidden':!![]},{'name':'from-env','meowKey':a208_0x3ffdc2(0x244),'type':a208_0x3ffdc2(0x1e1),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a208_0x3ffdc2(0x20a),'meowKey':a208_0x3ffdc2(0x20a),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x219),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ef),'meowKey':'force','type':'boolean','description':a208_0x3ffdc2(0x218),'hidden':!![]},{'name':a208_0x3ffdc2(0x210),'meowKey':a208_0x3ffdc2(0x210),'type':a208_0x3ffdc2(0x204),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a208_0x3ffdc2(0x221),'meowKey':a208_0x3ffdc2(0x221),'type':'boolean','description':a208_0x3ffdc2(0x1df),'hidden':!![]},{'name':a208_0x3ffdc2(0x255),'meowKey':a208_0x3ffdc2(0x255),'type':a208_0x3ffdc2(0x204),'description':'Verbose\x20output','hidden':!![]},{'name':a208_0x3ffdc2(0x1f2),'meowKey':a208_0x3ffdc2(0x213),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x206),'hidden':!![]},{'name':a208_0x3ffdc2(0x23b),'meowKey':a208_0x3ffdc2(0x23b),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x25a),'hidden':!![]},{'name':a208_0x3ffdc2(0x254),'meowKey':'parentId','type':a208_0x3ffdc2(0x1e1),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a208_0x3ffdc2(0x21b),'meowKey':a208_0x3ffdc2(0x21b),'type':'string','description':a208_0x3ffdc2(0x20c),'hidden':!![]},{'name':'expect-parent-id','meowKey':a208_0x3ffdc2(0x242),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x202),'hidden':!![]},{'name':a208_0x3ffdc2(0x23f),'meowKey':a208_0x3ffdc2(0x22c),'type':a208_0x3ffdc2(0x1e1),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a208_0x3ffdc2(0x258),'type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a208_0x3ffdc2(0x246),'meowKey':a208_0x3ffdc2(0x24f),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x231),'hidden':!![]},{'name':a208_0x3ffdc2(0x235),'meowKey':a208_0x3ffdc2(0x1e5),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x230),'hidden':!![]},{'name':a208_0x3ffdc2(0x21d),'meowKey':'operationType','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x22e),'hidden':!![]},{'name':a208_0x3ffdc2(0x24d),'meowKey':a208_0x3ffdc2(0x224),'type':a208_0x3ffdc2(0x1e1),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a208_0x3ffdc2(0x21c),a208_0x3ffdc2(0x24b),a208_0x3ffdc2(0x1fd),'jq',a208_0x3ffdc2(0x1fa),a208_0x3ffdc2(0x1e2),a208_0x3ffdc2(0x249),'ci']);export function buildMeowFlags(){const _0x213eed=a208_0x3ffdc2;return Object[_0x213eed(0x1e7)](GLOBAL_FLAGS[_0x213eed(0x239)](_0x22fc68=>[_0x22fc68['meowKey'],{'type':_0x22fc68[_0x213eed(0x1db)]}]));}
|
|
1
|
+
function a208_0x208a(){const _0x44d1d7=['<name>','<code>','Name','operation','file','Title','SQL\x20code','Dataset\x20code','title','description','Asynchronous\x20task\x20ID','Config\x20key','DB\x20ID','Tags','7840626jevheW','dry-run','expect-parent-id','Expected\x20current\x20parent\x20menu\x20id','352kNwBpO','Force\x20non-interactive\x20mode\x20(CI)','keyword','SQL\x20name','skip-imports','SQL\x20string','Use\x20global\x20config\x20scope','stdin','enableBffSave','Menu\x20label','db-id','skipImports','code','dryRun','all','2421226VHcDzv','non-interactive','Expected\x20current\x20menu\x20path','zh-CN\x20|\x20en-US','Read\x20value\x20from\x20stdin','menuIds','Environment','2675905aktEjV','expectedCount','datasetcode','menu-ids','production\x20|\x20daily','Alias\x20for\x20--non-interactive','Confirm\x20destructive\x20action','3551136UlFjEE','sqlname','expect-path','topk','reveal','expectedChildrenCount','task-id','page','File\x20path','rabetbase','Search\x20query','query','7NpqzRr','tags','Use\x20project\x20config\x20scope','verbose','Rabetbase\x20CLI','Preview\x20operation\x20without\x20executing','Clear','Function\x20node','Config\x20value','Show\x20help','fromEnv','Description\x20file','nonInteractive','214002GrCCfk','sql-name','Select\x20app\x20profile\x20by\x20name','app','13564490VtzHQr','Use\x20remote','from-env','Description','yes','Target\x20path','schemas','@lovrabet/rabetbase-cli','Keyword\x20filter','map','Expected\x20current\x20child\x20count','dbId','<expr>','enable-bff-save','appcode','Record\x20ID','Read\x20value\x20from\x20environment\x20variable','sql','Menu\x20sort\x20value','Type\x20filter','sort','1XhObgh','clear','pagesize','description-file','force','Schemas','label','watch','format','taskId','Apply\x20to\x20all','1718121krwbQF','fromEntries','sqlcode','env','Watch\x20mode','descriptionFile','Parent\x20menu\x20id','boolean','Force\x20overwrite','functionNode','expected-count','key','type','Reveal\x20sensitive\x20value','remote','Expected\x20affected\x20count','parentId','locale','Verbose\x20output','target','Skip\x20confirmation\x20for\x20high-risk\x20writes','JSON\x20params','project','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','sqlName','output','value','string','operationType','expected-children-count','Operation\x20type','params','confirm'];a208_0x208a=function(){return _0x44d1d7;};return a208_0x208a();}const a208_0x510648=a208_0x47d4;(function(_0x509d6c,_0xccc7cc){const _0x597f12=a208_0x47d4,_0x3b8b06=_0x509d6c();while(!![]){try{const _0x134f28=-parseInt(_0x597f12(0x1a7))/0x1*(parseInt(_0x597f12(0x1f4))/0x2)+-parseInt(_0x597f12(0x1b2))/0x3+parseInt(_0x597f12(0x202))/0x4+parseInt(_0x597f12(0x1fb))/0x5+-parseInt(_0x597f12(0x1e1))/0x6*(parseInt(_0x597f12(0x20e))/0x7)+parseInt(_0x597f12(0x1e5))/0x8*(parseInt(_0x597f12(0x21b))/0x9)+parseInt(_0x597f12(0x21f))/0xa;if(_0x134f28===_0xccc7cc)break;else _0x3b8b06['push'](_0x3b8b06['shift']());}catch(_0x392677){_0x3b8b06['push'](_0x3b8b06['shift']());}}}(a208_0x208a,0xb3943));export const CLI_BIN_NAME=a208_0x510648(0x20b);export const CLI_DISPLAY_NAME=a208_0x510648(0x212);export const NPM_PACKAGE_NAME=a208_0x510648(0x226);export const GLOBAL_FLAGS=[{'name':a208_0x510648(0x1a0),'meowKey':a208_0x510648(0x1a0),'type':'string','description':'Override\x20appcode','hint':a208_0x510648(0x1d4)},{'name':a208_0x510648(0x21e),'meowKey':'app','type':'string','description':a208_0x510648(0x21d),'hint':a208_0x510648(0x1d3)},{'name':a208_0x510648(0x1b5),'meowKey':'env','type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1fa),'hint':a208_0x510648(0x1ff)},{'name':a208_0x510648(0x1af),'meowKey':a208_0x510648(0x1af),'type':a208_0x510648(0x1cd),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a208_0x510648(0x1cd),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a208_0x510648(0x19e)},{'name':a208_0x510648(0x1e2),'meowKey':a208_0x510648(0x1f2),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x213)},{'name':a208_0x510648(0x223),'meowKey':a208_0x510648(0x223),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1c6)},{'name':a208_0x510648(0x1f5),'meowKey':a208_0x510648(0x21a),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1e6)},{'name':'global','meowKey':'global','type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1eb)},{'name':a208_0x510648(0x1c8),'meowKey':a208_0x510648(0x1c8),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x210)},{'name':'ci','meowKey':'ci','type':'boolean','description':a208_0x510648(0x200),'hidden':!![]},{'name':'help','meowKey':'help','type':a208_0x510648(0x1b9),'description':a208_0x510648(0x217)},{'name':a208_0x510648(0x1c3),'meowKey':a208_0x510648(0x1c3),'type':'string','description':a208_0x510648(0x1c9),'hidden':!![],'hint':a208_0x510648(0x1f7)},{'name':'name','meowKey':'name','type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1d5),'hidden':!![]},{'name':a208_0x510648(0x1db),'meowKey':a208_0x510648(0x1db),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1d8),'hidden':!![]},{'name':a208_0x510648(0x20d),'meowKey':a208_0x510648(0x20d),'type':'string','description':a208_0x510648(0x20c),'hidden':!![]},{'name':a208_0x510648(0x205),'meowKey':a208_0x510648(0x205),'type':a208_0x510648(0x1cd),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a208_0x510648(0x1a8),'meowKey':a208_0x510648(0x1a8),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x214),'hidden':!![]},{'name':a208_0x510648(0x1ae),'meowKey':'watch','type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1b6),'hidden':!![]},{'name':a208_0x510648(0x1cb),'meowKey':a208_0x510648(0x1cb),'type':a208_0x510648(0x1cd),'description':'Output\x20path','hidden':!![]},{'name':'params','meowKey':a208_0x510648(0x1d1),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1c7),'hidden':!![]},{'name':a208_0x510648(0x1fd),'meowKey':a208_0x510648(0x1fd),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1da),'hidden':!![]},{'name':a208_0x510648(0x1f3),'meowKey':'all','type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1b1),'hidden':!![]},{'name':a208_0x510648(0x19f),'meowKey':a208_0x510648(0x1ed),'type':'boolean','description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a208_0x510648(0x1a1),'hidden':!![]},{'name':a208_0x510648(0x1be),'meowKey':a208_0x510648(0x1be),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1a5),'hidden':!![]},{'name':a208_0x510648(0x1d7),'meowKey':a208_0x510648(0x1d7),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x20a),'hidden':!![]},{'name':a208_0x510648(0x1b4),'meowKey':'sqlcode','type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1d9),'hidden':!![]},{'name':a208_0x510648(0x21c),'meowKey':a208_0x510648(0x1ca),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1e8),'hidden':!![]},{'name':'sqlname','meowKey':a208_0x510648(0x203),'type':a208_0x510648(0x1cd),'description':'SQL\x20name','hidden':!![]},{'name':a208_0x510648(0x1ef),'meowKey':a208_0x510648(0x22a),'type':'string','description':a208_0x510648(0x1df),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':'string','description':'DB\x20ID','hidden':!![]},{'name':a208_0x510648(0x1dc),'meowKey':a208_0x510648(0x1dc),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x222),'hidden':!![]},{'name':a208_0x510648(0x1aa),'meowKey':a208_0x510648(0x1b7),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x219),'hidden':!![]},{'name':a208_0x510648(0x209),'meowKey':a208_0x510648(0x209),'type':a208_0x510648(0x1cd),'description':'Page\x20number','hidden':!![]},{'name':a208_0x510648(0x1a9),'meowKey':a208_0x510648(0x1a9),'type':'string','description':'Page\x20size','hidden':!![]},{'name':a208_0x510648(0x1e7),'meowKey':a208_0x510648(0x1e7),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x227),'hidden':!![]},{'name':a208_0x510648(0x1f1),'meowKey':a208_0x510648(0x1f1),'type':a208_0x510648(0x1cd),'description':'Code\x20filter','hidden':!![]},{'name':a208_0x510648(0x1a3),'meowKey':a208_0x510648(0x1a3),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1ea),'hidden':!![]},{'name':a208_0x510648(0x225),'meowKey':'schemas','type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1ac),'hidden':!![]},{'name':a208_0x510648(0x1d6),'meowKey':a208_0x510648(0x1d6),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1d0),'hidden':!![]},{'name':a208_0x510648(0x1c5),'meowKey':'target','type':a208_0x510648(0x1cd),'description':a208_0x510648(0x224),'hidden':!![]},{'name':a208_0x510648(0x1e9),'meowKey':a208_0x510648(0x1f0),'type':a208_0x510648(0x1b9),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a208_0x510648(0x1bd),'meowKey':a208_0x510648(0x1bd),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1de),'hidden':!![]},{'name':a208_0x510648(0x1cc),'meowKey':a208_0x510648(0x1cc),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x216),'hidden':!![]},{'name':a208_0x510648(0x20f),'meowKey':a208_0x510648(0x20f),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1e0),'hidden':!![]},{'name':'stdin','meowKey':a208_0x510648(0x1ec),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1f8),'hidden':!![]},{'name':a208_0x510648(0x221),'meowKey':a208_0x510648(0x218),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1a2),'hidden':!![]},{'name':a208_0x510648(0x206),'meowKey':a208_0x510648(0x206),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1bf),'hidden':!![]},{'name':'force','meowKey':a208_0x510648(0x1ab),'type':'boolean','description':a208_0x510648(0x1ba),'hidden':!![]},{'name':a208_0x510648(0x1d2),'meowKey':a208_0x510648(0x1d2),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x201),'hidden':!![]},{'name':a208_0x510648(0x1c0),'meowKey':a208_0x510648(0x1c0),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x220),'hidden':!![]},{'name':a208_0x510648(0x211),'meowKey':a208_0x510648(0x211),'type':a208_0x510648(0x1b9),'description':a208_0x510648(0x1c4),'hidden':!![]},{'name':a208_0x510648(0x1bc),'meowKey':a208_0x510648(0x1fc),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1c1),'hidden':!![]},{'name':a208_0x510648(0x1ad),'meowKey':a208_0x510648(0x1ad),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1ee),'hidden':!![]},{'name':'parent-id','meowKey':a208_0x510648(0x1c2),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1b8),'hidden':!![]},{'name':a208_0x510648(0x1a6),'meowKey':a208_0x510648(0x1a6),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1a4),'hidden':!![]},{'name':a208_0x510648(0x1e3),'meowKey':'expectParentId','type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1e4),'hidden':!![]},{'name':a208_0x510648(0x204),'meowKey':'expectPath','type':'string','description':a208_0x510648(0x1f6),'hidden':!![]},{'name':a208_0x510648(0x1cf),'meowKey':a208_0x510648(0x207),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x229),'hidden':!![]},{'name':a208_0x510648(0x1fe),'meowKey':a208_0x510648(0x1f9),'type':a208_0x510648(0x1cd),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a208_0x510648(0x208),'meowKey':a208_0x510648(0x1b0),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1dd),'hidden':!![]},{'name':'operation-type','meowKey':a208_0x510648(0x1ce),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x1d0),'hidden':!![]},{'name':'function-node','meowKey':a208_0x510648(0x1bb),'type':a208_0x510648(0x1cd),'description':a208_0x510648(0x215),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a208_0x510648(0x1a0),a208_0x510648(0x21e),a208_0x510648(0x1b5),a208_0x510648(0x1af),'jq',a208_0x510648(0x1e2),a208_0x510648(0x223),a208_0x510648(0x1f5),'ci']);function a208_0x47d4(_0x402dd5,_0x28b9ce){_0x402dd5=_0x402dd5-0x19e;const _0x208a34=a208_0x208a();let _0x47d422=_0x208a34[_0x402dd5];return _0x47d422;}export function buildMeowFlags(){const _0x494878=a208_0x510648;return Object[_0x494878(0x1b3)](GLOBAL_FLAGS[_0x494878(0x228)](_0x499b97=>[_0x499b97['meowKey'],{'type':_0x499b97[_0x494878(0x1be)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x3f286d=a209_0x2b4d;function a209_0x2b4d(_0x262c0e,_0x16a56e){_0x262c0e=_0x262c0e-0xf1;const _0x1f8b0e=a209_0x1f8b();let _0x2b4d81=_0x1f8b0e[_0x262c0e];return _0x2b4d81;}(function(_0x46664e,_0x324f29){const _0x270519=a209_0x2b4d,_0x127823=_0x46664e();while(!![]){try{const _0x55831a=parseInt(_0x270519(0xf3))/0x1+-parseInt(_0x270519(0xfc))/0x2+parseInt(_0x270519(0xfb))/0x3+-parseInt(_0x270519(0xfa))/0x4*(-parseInt(_0x270519(0xfd))/0x5)+parseInt(_0x270519(0xf5))/0x6*(-parseInt(_0x270519(0xf1))/0x7)+parseInt(_0x270519(0xf4))/0x8*(parseInt(_0x270519(0xf8))/0x9)+parseInt(_0x270519(0xf7))/0xa;if(_0x55831a===_0x324f29)break;else _0x127823['push'](_0x127823['shift']());}catch(_0x16ccc6){_0x127823['push'](_0x127823['shift']());}}}(a209_0x1f8b,0xeb317));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a209_0x3f286d(0xf9),'format':a209_0x3f286d(0xf2),'locale':'en-US','riskLevel':a209_0x3f286d(0xf6),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a209_0x3f286d(0xf2);function a209_0x1f8b(){const _0x545265=['12717817cKFXtP','compress','1313624bFPuDP','4285384ININTY','6XWSYVV','write','3291650GyFDAD','9tUlHZr','production','24urKcHB','2749257MWThKw','955294QyWHms','135790UQbNUY'];a209_0x1f8b=function(){return _0x545265;};return a209_0x1f8b();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0x1559e6=a210_0x2294;(function(_0x5ef8bf,_0x3a1cac){const _0x27d550=a210_0x2294,_0x4f5a83=_0x5ef8bf();while(!![]){try{const _0x5307b0=-parseInt(_0x27d550(0xd7))/0x1+-parseInt(_0x27d550(0xd3))/0x2*(-parseInt(_0x27d550(0xc4))/0x3)+parseInt(_0x27d550(0xd2))/0x4+parseInt(_0x27d550(0xb2))/0x5+parseInt(_0x27d550(0xcd))/0x6+-parseInt(_0x27d550(0xc5))/0x7*(parseInt(_0x27d550(0xc0))/0x8)+parseInt(_0x27d550(0xcc))/0x9*(-parseInt(_0x27d550(0xbf))/0xa);if(_0x5307b0===_0x3a1cac)break;else _0x4f5a83['push'](_0x4f5a83['shift']());}catch(_0x333994){_0x4f5a83['push'](_0x4f5a83['shift']());}}}(a210_0x10a4,0xa0505));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a210_0x1559e6(0xc9),'api':a210_0x1559e6(0xb3),'runtime':a210_0x1559e6(0xb6),'skill':'https://skills.lovrabet.com','kb':a210_0x1559e6(0xb3),'app':a210_0x1559e6(0xae)},'nonProduction':{'user':a210_0x1559e6(0xbe),'api':a210_0x1559e6(0xce),'runtime':a210_0x1559e6(0xd8),'skill':a210_0x1559e6(0xc7),'kb':a210_0x1559e6(0xce),'app':a210_0x1559e6(0xdc)}},'id':{'production':{'user':a210_0x1559e6(0xad),'api':a210_0x1559e6(0xc6),'runtime':a210_0x1559e6(0xc8),'skill':a210_0x1559e6(0xb5),'kb':a210_0x1559e6(0xc6),'app':'https://app.lovrabet.id'},'nonProduction':{'user':a210_0x1559e6(0xb9),'api':a210_0x1559e6(0xa9),'runtime':a210_0x1559e6(0xc2),'skill':a210_0x1559e6(0xab),'kb':'https://daily-api.lovrabet.id','app':a210_0x1559e6(0xca)}},'global':{'production':{'user':a210_0x1559e6(0xb4),'api':a210_0x1559e6(0xb7),'runtime':a210_0x1559e6(0xaf),'skill':a210_0x1559e6(0xc1),'kb':'https://api.lovrabet.ai','app':a210_0x1559e6(0xd6)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a210_0x1559e6(0xd5),'runtime':a210_0x1559e6(0xcb),'skill':a210_0x1559e6(0xd1),'kb':a210_0x1559e6(0xd5),'app':a210_0x1559e6(0xbd)}}};function a210_0x2294(_0x308d0f,_0x5d2417){_0x308d0f=_0x308d0f-0xa9;const _0x10a48e=a210_0x10a4();let _0x229484=_0x10a48e[_0x308d0f];return _0x229484;}function getActiveRegionDomains(){const _0x1f5f6a=a210_0x1559e6;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?_0x1f5f6a(0xcf):_0x1f5f6a(0xb0)];}export function initDomains(_0x123d42){const _0x394da3=a210_0x1559e6;customApiDomain=_0x123d42?.[_0x394da3(0xd9)],customUserDomain=_0x123d42?.['userDomain'],customRuntimeDomain=_0x123d42?.['runtimeDomain'],customSkillDomain=_0x123d42?.[_0x394da3(0xc3)],customKbDomain=_0x123d42?.['kbDomain'],customAppDomain=_0x123d42?.[_0x394da3(0xb1)],activeRegion=_0x123d42?.[_0x394da3(0xaa)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a210_0x1559e6(0xbb)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a210_0x1559e6(0xd0)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a210_0x1559e6(0xda)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a210_0x1559e6(0xb8)];function a210_0x10a4(){const _0x5d3252=['10010640sVAWnI','8284888HxwUvX','https://skills.lovrabet.ai','https://daily-runtime.lovrabet.id','skillDomain','151707zQzZwY','7CAkGxh','https://api.lovrabet.id','https://skills-daily.lovrabet.com','https://runtime.lovrabet.id','https://user.lovrabet.com','https://daily.lovrabet.id','https://daily-runtime.lovrabet.ai','9vHxbvg','6443370waIMBd','https://daily-api.lovrabet.com','production','api','https://skills-daily.lovrabet.ai','3487716WFOWXI','26qiVjME','hostname','https://daily-api.lovrabet.ai','https://app.lovrabet.ai','584938CficbB','https://daily-runtime.lovrabet.com','apiDomain','runtime','global','https://daily.lovrabet.com','https://daily-api.lovrabet.id','region','https://skills-daily.lovrabet.id','/web-app/app/','https://user.lovrabet.id','https://app.lovrabet.com','https://runtime.lovrabet.ai','nonProduction','appDomain','3375185shtUzL','https://api.lovrabet.com','https://user.lovrabet.ai','https://skills.lovrabet.id','https://runtime.lovrabet.com','https://api.lovrabet.ai','skill','https://user-daily.lovrabet.id','trim','user','origin','https://daily.lovrabet.ai','https://user-daily.lovrabet.com'];a210_0x10a4=function(){return _0x5d3252;};return a210_0x10a4();}export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export function getSdkClientRoutingConfig(){const _0x350afa=a210_0x1559e6;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x350afa(0xda)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x350afa(0xdb))return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x5d3c2f=>{const _0x1794d7=a210_0x1559e6,_0x11b4b3=encodeURIComponent(_0x5d3c2f[_0x1794d7(0xba)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x11b4b3:getAppDomain()+_0x1794d7(0xac)+_0x11b4b3;};export const getPublishedAppDomain=_0x8688bc=>{const _0x1a404e=a210_0x1559e6,_0x404482=new URL(getAppDomain());return _0x404482['hostname']=_0x8688bc[_0x1a404e(0xba)]()+'.'+_0x404482[_0x1a404e(0xd4)],_0x404482[_0x1a404e(0xbc)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a211_0x1924cb=a211_0x4c18;(function(_0x1b2c5b,_0x3e5a98){const _0x29e9c6=a211_0x4c18,_0x4c8225=_0x1b2c5b();while(!![]){try{const _0x3c4bdb=-parseInt(_0x29e9c6(0xe4))/0x1+parseInt(_0x29e9c6(0xde))/0x2*(parseInt(_0x29e9c6(0xdf))/0x3)+parseInt(_0x29e9c6(0xe3))/0x4+parseInt(_0x29e9c6(0xdc))/0x5+-parseInt(_0x29e9c6(0xe5))/0x6+parseInt(_0x29e9c6(0xe2))/0x7*(-parseInt(_0x29e9c6(0xe1))/0x8)+-parseInt(_0x29e9c6(0xe8))/0x9*(-parseInt(_0x29e9c6(0xe0))/0xa);if(_0x3c4bdb===_0x3e5a98)break;else _0x4c8225['push'](_0x4c8225['shift']());}catch(_0x1ac582){_0x4c8225['push'](_0x4c8225['shift']());}}}(a211_0x7d78,0x6f765));export const RABETBASE_ENV_VALUES=[a211_0x1924cb(0xe6),a211_0x1924cb(0xdd)];function a211_0x7d78(){const _0xef0677=['20320yWKKWT','1862KmjBIb','2943920XfKUOM','239260UVtKoy','2265018nJXDGf','production','dev','1062AYTdeY','4107785ivIUEW','daily','1514VwLFOm','543qjDZDb','4610ydjhJd'];a211_0x7d78=function(){return _0xef0677;};return a211_0x7d78();}export function normalizeEnv(_0x46860d){const _0x2ad185=a211_0x1924cb;return _0x46860d==='online'?_0x2ad185(0xe6):_0x46860d;}function a211_0x4c18(_0x329efe,_0x5a90df){_0x329efe=_0x329efe-0xdc;const _0x7d7800=a211_0x7d78();let _0x4c1806=_0x7d7800[_0x329efe];return _0x4c1806;}export function isProduction(_0x2e4765){return normalizeEnv(_0x2e4765)==='production';}export function isDaily(_0x1aa2da){return normalizeEnv(_0x1aa2da)==='daily';}export function isDev(_0x39b390){const _0x2db8f6=a211_0x1924cb,_0x54f3f3=normalizeEnv(_0x39b390);return _0x54f3f3==='development'||_0x54f3f3===_0x2db8f6(0xe7);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a211_0x1924cb(0xe6));export function getEnv(){return env;}export function initEnv(_0x2a5bca){env=normalizeEnv(_0x2a5bca);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x4c10e9=a212_0x50a4;(function(_0x391cfd,_0x1dfa1e){const _0x298be8=a212_0x50a4,_0x15f753=_0x391cfd();while(!![]){try{const _0x66f2c2=-parseInt(_0x298be8(0x156))/0x1+parseInt(_0x298be8(0x15a))/0x2*(-parseInt(_0x298be8(0x160))/0x3)+parseInt(_0x298be8(0x159))/0x4*(parseInt(_0x298be8(0x158))/0x5)+-parseInt(_0x298be8(0x15d))/0x6+parseInt(_0x298be8(0x155))/0x7+-parseInt(_0x298be8(0x15e))/0x8*(-parseInt(_0x298be8(0x15b))/0x9)+-parseInt(_0x298be8(0x157))/0xa;if(_0x66f2c2===_0x1dfa1e)break;else _0x15f753['push'](_0x15f753['shift']());}catch(_0x1d53fa){_0x15f753['push'](_0x15f753['shift']());}}}(a212_0x5cd4,0x26a3b));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a212_0x4c10e9(0x15c),a212_0x4c10e9(0x15f)];function a212_0x50a4(_0x2293f3,_0x4f4de5){_0x2293f3=_0x2293f3-0x155;const _0x5cd42c=a212_0x5cd4();let _0x50a404=_0x5cd42c[_0x2293f3];return _0x50a404;}function a212_0x5cd4(){const _0x333487=['27780PMcgly','1399307WILvxj','156383xkzUKd','650820bkJnHs','2535YkpfEp','1068kqpiRk','36mtTJGs','74016YKQnAO','pretty','558876sxogBR','296NTJGBw','compress'];a212_0x5cd4=function(){return _0x333487;};return a212_0x5cd4();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a213_0x2ad0b0=a213_0x1969;function a213_0x1969(_0x40c070,_0x2b208e){_0x40c070=_0x40c070-0x10d;const _0x471880=a213_0x4718();let _0x19692a=_0x471880[_0x40c070];return _0x19692a;}(function(_0x336a38,_0x3f9d30){const _0x914050=a213_0x1969,_0x36f0fb=_0x336a38();while(!![]){try{const _0x19be2f=parseInt(_0x914050(0x112))/0x1*(-parseInt(_0x914050(0x115))/0x2)+-parseInt(_0x914050(0x114))/0x3*(parseInt(_0x914050(0x119))/0x4)+-parseInt(_0x914050(0x118))/0x5*(parseInt(_0x914050(0x113))/0x6)+-parseInt(_0x914050(0x11a))/0x7*(parseInt(_0x914050(0x10e))/0x8)+-parseInt(_0x914050(0x110))/0x9*(-parseInt(_0x914050(0x117))/0xa)+parseInt(_0x914050(0x10d))/0xb+-parseInt(_0x914050(0x116))/0xc*(-parseInt(_0x914050(0x111))/0xd);if(_0x19be2f===_0x3f9d30)break;else _0x36f0fb['push'](_0x36f0fb['shift']());}catch(_0x3fd244){_0x36f0fb['push'](_0x36f0fb['shift']());}}}(a213_0x4718,0x1b00b));function a213_0x4718(){const _0x2c1d49=['18ZlzKeC','12hjukwa','450BZEOeC','295KBBKKj','89988jdSEiF','14AMmOIT','156948rhGPgX','704608TjIgsh','./src/api','10917QBllcM','7608991UerEXU','12637wwuDPn','14358CaecwR','15tVyBQa'];a213_0x4718=function(){return _0x2c1d49;};return a213_0x4718();}export const DEFAULT_API_DIR=a213_0x2ad0b0(0x10f);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a214_0x531e(_0x610aab,_0x468cac){_0x610aab=_0x610aab-0x121;const _0xd5e60e=a214_0xd5e6();let _0x531e0b=_0xd5e60e[_0x610aab];return _0x531e0b;}const a214_0x36801=a214_0x531e;function a214_0xd5e6(){const _0x1517d3=['5668nJmqGX','4JGHDPU','china','9wGPXHY','492GWfawz','2965308YijpEE','includes','string','12KRfKFY','16208753urWQVI','global','5222136czRjyd','13948570gZrjPz','14SXiqoz','7658965VuOllg','367473ckWBNF'];a214_0xd5e6=function(){return _0x1517d3;};return a214_0xd5e6();}(function(_0xd8db1a,_0x2e26e3){const _0x308cf5=a214_0x531e,_0x5cce60=_0xd8db1a();while(!![]){try{const _0x3e8274=-parseInt(_0x308cf5(0x130))/0x1+-parseInt(_0x308cf5(0x121))/0x2*(parseInt(_0x308cf5(0x125))/0x3)+parseInt(_0x308cf5(0x122))/0x4*(-parseInt(_0x308cf5(0x12f))/0x5)+-parseInt(_0x308cf5(0x126))/0x6*(-parseInt(_0x308cf5(0x12e))/0x7)+-parseInt(_0x308cf5(0x12c))/0x8*(parseInt(_0x308cf5(0x124))/0x9)+parseInt(_0x308cf5(0x12d))/0xa+-parseInt(_0x308cf5(0x12a))/0xb*(-parseInt(_0x308cf5(0x129))/0xc);if(_0x3e8274===_0x2e26e3)break;else _0x5cce60['push'](_0x5cce60['shift']());}catch(_0x1b0364){_0x5cce60['push'](_0x5cce60['shift']());}}}(a214_0xd5e6,0xcd147));export const LOVRABET_REGION_VALUES=['cn','id',a214_0x36801(0x12b)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x163f25){const _0x405298=a214_0x36801;return typeof _0x163f25==='string'&&LOVRABET_REGION_VALUES[_0x405298(0x127)](_0x163f25);}export function isEnabledLovrabetRegion(_0x193789){const _0x34c244=a214_0x36801;return typeof _0x193789===_0x34c244(0x128)&&ENABLED_LOVRABET_REGION_VALUES[_0x34c244(0x127)](_0x193789);}export function normalizeLovrabetRegion(_0x534873){const _0x5efc01=a214_0x36801;if(_0x534873===_0x5efc01(0x123))return'cn';if(_0x534873==='indonesia')return'id';return isLovrabetRegion(_0x534873)?_0x534873:DEFAULT_LOVRABET_REGION;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a215_0x486482=a215_0x4372;function a215_0x4372(_0x1cb95f,_0x113e02){_0x1cb95f=_0x1cb95f-0x6d;const _0x3bbff1=a215_0x3bbf();let _0x4372a6=_0x3bbff1[_0x1cb95f];return _0x4372a6;}(function(_0x3b3bb3,_0x2d856a){const _0x22f482=a215_0x4372,_0x3ab2da=_0x3b3bb3();while(!![]){try{const _0x107768=parseInt(_0x22f482(0x76))/0x1+-parseInt(_0x22f482(0x79))/0x2*(parseInt(_0x22f482(0x73))/0x3)+-parseInt(_0x22f482(0x6d))/0x4+parseInt(_0x22f482(0x74))/0x5*(parseInt(_0x22f482(0x72))/0x6)+parseInt(_0x22f482(0x77))/0x7+parseInt(_0x22f482(0x71))/0x8+parseInt(_0x22f482(0x6e))/0x9*(-parseInt(_0x22f482(0x70))/0xa);if(_0x107768===_0x2d856a)break;else _0x3ab2da['push'](_0x3ab2da['shift']());}catch(_0x32852c){_0x3ab2da['push'](_0x3ab2da['shift']());}}}(a215_0x3bbf,0xef0e7));function a215_0x3bbf(){const _0x592a7d=['1554755jqWKAj','write','158548aTCdrW','4269433qvBkLn','read','2uguPUo','4087088QKcgYr','9CEkcAP','high-risk-write','3592370pocuVK','9970440UwSvwS','36TjGlag','4560882barKPj'];a215_0x3bbf=function(){return _0x592a7d;};return a215_0x3bbf();}export const RISK_LEVEL_VALUES=[a215_0x486482(0x78),a215_0x486482(0x75),a215_0x486482(0x6f)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e4d6d,_0x1e9c5d){const _0x5ebfae=a216_0xd7a1,_0xe11484=_0x3e4d6d();while(!![]){try{const _0x2312a1=parseInt(_0x5ebfae(0xae))/0x1*(parseInt(_0x5ebfae(0xbe))/0x2)+-parseInt(_0x5ebfae(0xc7))/0x3+parseInt(_0x5ebfae(0xad))/0x4+parseInt(_0x5ebfae(0xc8))/0x5*(-parseInt(_0x5ebfae(0xb4))/0x6)+parseInt(_0x5ebfae(0xbb))/0x7*(-parseInt(_0x5ebfae(0xb6))/0x8)+parseInt(_0x5ebfae(0xbf))/0x9*(parseInt(_0x5ebfae(0xc6))/0xa)+parseInt(_0x5ebfae(0xd3))/0xb;if(_0x2312a1===_0x1e9c5d)break;else _0xe11484['push'](_0xe11484['shift']());}catch(_0x28dc2e){_0xe11484['push'](_0xe11484['shift']());}}}(a216_0x3c7d,0xc0bae));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a216_0xd7a1(_0x41d35f,_0x38f9b4){_0x41d35f=_0x41d35f-0xad;const _0x3c7da0=a216_0x3c7d();let _0xd7a199=_0x3c7da0[_0x41d35f];return _0xd7a199;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x2abcf9){const _0x2fd441=a216_0xd7a1;return typeof _0x2abcf9===_0x2fd441(0xd0)&&_0x2abcf9[_0x2fd441(0xb0)]()?_0x2abcf9[_0x2fd441(0xb0)]():undefined;}function appProfiles(_0x18fdce){const _0x3f3a1f=a216_0xd7a1;return _0x18fdce[_0x3f3a1f(0xd2)]&&typeof _0x18fdce[_0x3f3a1f(0xd2)]===_0x3f3a1f(0xb2)?_0x18fdce[_0x3f3a1f(0xd2)]:{};}function resolveDefaultAppName(_0x4379da){const _0x228bb2=a216_0xd7a1,_0x9a14c3=stringConfigValue(_0x4379da[_0x228bb2(0xb1)]);if(_0x9a14c3)return _0x9a14c3;const _0x4e4b17=Object[_0x228bb2(0xaf)](appProfiles(_0x4379da));return _0x4e4b17['length']===0x1?_0x4e4b17[0x0]:undefined;}function resolveTopLevelAppCode(_0xa2735a){const _0x44b3a8=a216_0xd7a1;return stringConfigValue(_0xa2735a[_0x44b3a8(0xcd)])||stringConfigValue(_0xa2735a[_0x44b3a8(0xba)]);}function normalizeRiskCeiling(_0x3c5fd0){const _0x2c7fd6=a216_0xd7a1;if(_0x3c5fd0===undefined||_0x3c5fd0===null)return undefined;if(_0x3c5fd0==='read'||_0x3c5fd0===_0x2c7fd6(0xb7)||_0x3c5fd0==='high-risk-write')return _0x3c5fd0;return'read';}function a216_0x3c7d(){const _0x356cc9=['RISK_LEVEL','apiDir','pageSize','PAGE_SIZE','entries','projectConfig','3477470ccCpsP','511398COTEfF','125ClrLMW','cookie','FORMAT','length','riskLevel','appcode','prototype','env','string','daily','apps','5492201sSYkMY','VERBOSE','accessKey','maxRisk','680812WfayaC','360NigvfJ','keys','trim','defaultApp','object','true','210552JtoHYQ','format','286184gWEzTM','write','projectPath','APP','app','7VBtENB','production','hasOwnProperty','4754dzYevk','9WnImea'];a216_0x3c7d=function(){return _0x356cc9;};return a216_0x3c7d();}function resolveRiskCeiling(..._0x18a039){const _0x4c6d30=a216_0xd7a1;let _0x390e2b;for(const _0x2fb02f of _0x18a039){const _0x1b7f4a=normalizeRiskCeiling(_0x2fb02f);_0x1b7f4a&&(!_0x390e2b||riskLevelOrder(_0x1b7f4a)<riskLevelOrder(_0x390e2b))&&(_0x390e2b=_0x1b7f4a);}return _0x390e2b??DEFAULT_CONFIG_VALUES[_0x4c6d30(0xcc)];}function configuredRiskCeilings(_0x4e3be0){const _0x1a62ff=a216_0xd7a1;return[...Object[_0x1a62ff(0xce)][_0x1a62ff(0xbd)]['call'](_0x4e3be0,_0x1a62ff(0xd6))?[_0x4e3be0[_0x1a62ff(0xd6)]]:[],...Object[_0x1a62ff(0xce)][_0x1a62ff(0xbd)]['call'](_0x4e3be0,_0x1a62ff(0xcc))?[_0x4e3be0[_0x1a62ff(0xcc)]]:[]];}export function resolveAppConfig({raw:_0x47b562,flags:_0x264173,layers:_0xc95d4e,readEnv:_0x3fa2e8}){const _0x53d9db=a216_0xd7a1,_0x16d4fb=_0xc95d4e?.[_0x53d9db(0xc5)]??{},_0x12ad14=_0xc95d4e?.['globalConfig']??{},_0x46b240=!!_0xc95d4e?.[_0x53d9db(0xb8)]||Object[_0x53d9db(0xaf)](_0x16d4fb)[_0x53d9db(0xcb)]>0x0,_0xcef6d6=!_0x46b240,_0xbaf848=_0x46b240?resolveDefaultAppName(_0x16d4fb):undefined,_0x480b68=_0xcef6d6?resolveDefaultAppName(_0x12ad14):undefined,_0x328e41=stringConfigValue(_0x264173[_0x53d9db(0xba)]),_0x5cfc89=_0x3fa2e8(_0x53d9db(0xb9)),_0x2703e0={};if(_0x47b562[_0x53d9db(0xd2)]&&typeof _0x47b562[_0x53d9db(0xd2)]===_0x53d9db(0xb2))for(const [_0x22bdae,_0x3422aa]of Object['entries'](_0x47b562[_0x53d9db(0xd2)])){_0x3422aa&&typeof _0x3422aa===_0x53d9db(0xb2)&&_0x3422aa[_0x53d9db(0xcd)]&&(_0x2703e0[_0x22bdae]=_0x3422aa);}const _0x12754d=_0xbaf848||_0x480b68||resolveDefaultAppName(_0x47b562),_0x3a61d4=Object['keys'](_0x2703e0)[_0x53d9db(0xcb)]>0x0,_0x1d0c87=_0x328e41||_0xbaf848||_0x5cfc89||_0x480b68||_0x12754d||undefined,_0x528ecc=stringConfigValue(_0x264173[_0x53d9db(0xcd)]),_0xe0afc2=_0x528ecc?Object[_0x53d9db(0xc4)](_0x2703e0)['find'](([,_0x343c44])=>_0x343c44?.[_0x53d9db(0xcd)]===_0x528ecc):undefined,_0x5418b4=_0xe0afc2?.[0x0],_0x47134a=_0xe0afc2?.[0x1],_0x24d006=_0x528ecc?_0x5418b4:_0x1d0c87;let _0x1ce763=_0x24d006&&_0x2703e0[_0x24d006]?_0x2703e0[_0x24d006]:undefined;_0x528ecc&&_0x47134a&&(_0x1ce763=_0x47134a);const _0x477384=_0x528ecc?_0x47134a??_0x1ce763:_0x1ce763,_0x5e87ba=!_0x328e41&&!_0xbaf848&&_0x5cfc89&&_0x24d006===_0x5cfc89,_0xcc63f8=_0x328e41||(_0x5e87ba?_0x5cfc89:undefined)||(_0x528ecc?_0x5418b4:undefined),_0x39a756=_0x477384?.['appcode'],_0x48e66f=_0x46b240?resolveTopLevelAppCode(_0x16d4fb):undefined,_0x45de3a=_0xcef6d6?resolveTopLevelAppCode(_0x12ad14):undefined,_0x583dbf=_0x328e41||_0xbaf848?_0x39a756:undefined,_0x3b936d=!_0x328e41&&!_0xbaf848?_0x39a756:undefined,_0x290be0=_0x528ecc||_0x583dbf||_0x48e66f||_0x3b936d||_0x45de3a||undefined,_0x40a1d0=_0x46b240?stringConfigValue(_0x16d4fb[_0x53d9db(0xcf)]):undefined,_0xe9340d=_0xcef6d6?stringConfigValue(_0x12ad14[_0x53d9db(0xcf)]):undefined,_0x16ef30=_0x264173['env']||_0x477384?.[_0x53d9db(0xcf)]||_0x40a1d0||_0x3fa2e8('ENV')||_0xe9340d||_0x47b562[_0x53d9db(0xcf)]||DEFAULT_CONFIG_VALUES[_0x53d9db(0xcf)],_0x4ea060=_0x477384?.['locale']||_0x47b562['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x14da40=_0x3fa2e8('COOKIE')||_0x477384?.[_0x53d9db(0xc9)]||_0x47b562['cookie']||undefined,_0x45e673=_0x3fa2e8('ACCESS_KEY')||_0x477384?.[_0x53d9db(0xd5)]||_0x47b562[_0x53d9db(0xd5)]||undefined,_0x35daf6=_0x264173[_0x53d9db(0xb5)]||_0x3fa2e8(_0x53d9db(0xca))||_0x477384?.[_0x53d9db(0xb5)]||_0x47b562[_0x53d9db(0xb5)],_0x31745b=normalizeLegacyOutputFormat(_0x35daf6),_0x330c89=_0x3fa2e8(_0x53d9db(0xc3))||_0x477384?.[_0x53d9db(0xc2)]||_0x47b562[_0x53d9db(0xc2)],_0x53b275=_0x330c89?Number(_0x330c89)||undefined:undefined,_0x568781=_0xc95d4e?[...configuredRiskCeilings(_0xc95d4e['globalConfig']),...configuredRiskCeilings(_0xc95d4e['projectConfig'])]:configuredRiskCeilings(_0x47b562),_0x2fb82a=resolveRiskCeiling(..._0x568781,_0x477384?.['riskLevel']),_0x40cfd7=resolveRiskCeiling(_0x2fb82a,_0x3fa2e8(_0x53d9db(0xc0)),_0x3fa2e8('MAX_RISK')),_0x48ae51=_0x3fa2e8(_0x53d9db(0xd4)),_0x3188d9=_0x48ae51==='1'||_0x48ae51===_0x53d9db(0xb3),_0x51924b=_0x477384?.[_0x53d9db(0xc1)]||_0x47b562[_0x53d9db(0xc1)]||DEFAULT_CONFIG_VALUES[_0x53d9db(0xc1)],_0x4f3dc6=isDaily(normalizeEnv(String(_0x16ef30)))?_0x53d9db(0xd1):_0x53d9db(0xbc);return{'appCode':typeof _0x290be0===_0x53d9db(0xd0)&&_0x290be0[_0x53d9db(0xb0)]()?_0x290be0[_0x53d9db(0xb0)]():undefined,'env':_0x4f3dc6,'locale':_0x4ea060,'cookie':_0x14da40,'accessKey':_0x45e673,'format':_0x31745b,'pageSize':_0x53b275,'riskLevel':_0x40cfd7,'verbose':_0x3188d9,'apiDir':_0x51924b,'apps':_0x2703e0,'defaultApp':_0x12754d,'currentApp':_0x3a61d4?_0x24d006:undefined,'explicitAppName':_0xcc63f8};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a217_0xe79a(){const _0x552d7c=['623718QYfpre','../auth/get-cookie.js','1045488oWoUaY','928032uLwxSL','3093225FAiszB','1867593xgLWqI','329137awjICV','2606948HlLLYj','2QuDUoM','cookie','16GdCzYJ'];a217_0xe79a=function(){return _0x552d7c;};return a217_0xe79a();}(function(_0x3262c2,_0x5bdbe1){const _0x25c4ad=a217_0x998e,_0x1b0c27=_0x3262c2();while(!![]){try{const _0x1cd082=parseInt(_0x25c4ad(0x19c))/0x1*(-parseInt(_0x25c4ad(0x19e))/0x2)+-parseInt(_0x25c4ad(0x199))/0x3+parseInt(_0x25c4ad(0x19d))/0x4+parseInt(_0x25c4ad(0x19a))/0x5+-parseInt(_0x25c4ad(0x198))/0x6+-parseInt(_0x25c4ad(0x19b))/0x7+-parseInt(_0x25c4ad(0x195))/0x8*(-parseInt(_0x25c4ad(0x196))/0x9);if(_0x1cd082===_0x5bdbe1)break;else _0x1b0c27['push'](_0x1b0c27['shift']());}catch(_0x2ff0fb){_0x1b0c27['push'](_0x1b0c27['shift']());}}}(a217_0xe79a,0x506f2));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a217_0x998e(_0x347ec6,_0xb1d7ff){_0x347ec6=_0x347ec6-0x195;const _0xe79ad6=a217_0xe79a();let _0x998e7b=_0xe79ad6[_0x347ec6];return _0x998e7b;}export async function buildAuth(_0x5b3701){const _0x9c39fe=a217_0x998e,{getCookie:_0xa024db}=await import(_0x9c39fe(0x197)),_0x516e9a=_0x5b3701[_0x9c39fe(0x19f)]||_0xa024db(),_0x2b9658=_0x516e9a?await getIsSessionValid():![];return{'cookie':_0x516e9a,'isLoggedIn':_0x2b9658,async 'getOrLogin'(){if(_0x516e9a&&_0x2b9658)return _0x516e9a;throw CliErrors['authRequired']();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0xeaab7a=a218_0x2ba4;(function(_0x4d04a5,_0x351c16){const _0x3e746f=a218_0x2ba4,_0x4b95a5=_0x4d04a5();while(!![]){try{const _0x201203=-parseInt(_0x3e746f(0x18a))/0x1*(-parseInt(_0x3e746f(0x17b))/0x2)+parseInt(_0x3e746f(0x174))/0x3*(-parseInt(_0x3e746f(0x172))/0x4)+-parseInt(_0x3e746f(0x188))/0x5+-parseInt(_0x3e746f(0x170))/0x6+-parseInt(_0x3e746f(0x193))/0x7+parseInt(_0x3e746f(0x171))/0x8+parseInt(_0x3e746f(0x18d))/0x9*(parseInt(_0x3e746f(0x17a))/0xa);if(_0x201203===_0x351c16)break;else _0x4b95a5['push'](_0x4b95a5['shift']());}catch(_0x4da5ae){_0x4b95a5['push'](_0x4b95a5['shift']());}}}(a218_0x346b,0x770ca));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a218_0x346b(){const _0x5edacb=['runtimeDomain','inherit','empty','message','accessKey','config','stringify','format','projectPath','status','appcode','.tmp','apps','data','2198316XxYVrT','5081248NxZIPO','5804XalkKJ','app','1707BAEOnS','defaultApp','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','get','set','warn','3982510ftrWqd','58cklPIh','\x0a\x20\x20','trim','silent','locale','length','.rabetbase.json','region','apiDir','cwd','error','cookie','userDomain','439545QkYmiQ','riskLevel','20528LqvIPe','Project','env','27cghsOQ','object','project','utf8','migrated','pageSize','4603767lrhHYx','parse'];a218_0x346b=function(){return _0x5edacb;};return a218_0x346b();}import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a218_0xeaab7a(0x181);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x182f13){for(const _0x515751 of CONFIG_NAMES){const _0xd20316=resolve(_0x182f13,_0x515751);if(existsSync(_0xd20316))return _0xd20316;}return undefined;}export function findProjectRootDirectory(_0x4b1b6f=process[a218_0xeaab7a(0x184)]()){let _0x3b8f4c=resolve(_0x4b1b6f);const {root:_0x4b66a5}=parse(_0x3b8f4c),_0x3aaca3=homedir();while(!![]){if(resolveConfigPath(_0x3b8f4c)){if(_0x3b8f4c===_0x3aaca3)break;return _0x3b8f4c;}if(_0x3b8f4c===_0x4b66a5||_0x3b8f4c===_0x3aaca3)break;const _0x4ff69a=dirname(_0x3b8f4c);if(_0x4ff69a===_0x3b8f4c)break;_0x3b8f4c=_0x4ff69a;}return resolve(_0x4b1b6f);}export function getProjectConfigPath(){const _0x251946=a218_0xeaab7a;return resolveConfigPath(process[_0x251946(0x184)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2d99d0){const _0x3fbf44=a218_0xeaab7a;if(!existsSync(_0x2d99d0))return{'status':'missing'};try{const _0x48a0fa=readFileSync(_0x2d99d0,{'encoding':_0x3fbf44(0x190)});if(!_0x48a0fa?.[_0x3fbf44(0x17d)]())return{'status':_0x3fbf44(0x164)};const _0x1f041b=JSON[_0x3fbf44(0x194)](_0x48a0fa);return{'status':'ok','data':_0x1f041b};}catch(_0xd18487){return{'status':_0x3fbf44(0x185),'message':_0xd18487 instanceof Error?_0xd18487[_0x3fbf44(0x165)]:String(_0xd18487)};}}function parseCliConfigJsonFile(_0x2981a7,_0x1ea0ee,_0x400935){const _0x106b31=a218_0xeaab7a,_0x3d7edc=inspectCliConfigJsonFile(_0x2981a7);if(_0x3d7edc[_0x106b31(0x16b)]==='missing'||_0x3d7edc[_0x106b31(0x16b)]==='empty')return{};if(_0x3d7edc['status']==='ok')return _0x3d7edc[_0x106b31(0x16f)];return _0x1ea0ee===_0x106b31(0x179)&&_0x400935&&console[_0x106b31(0x185)](CLI_BIN_NAME+':\x20'+_0x400935+_0x106b31(0x176)+_0x2981a7+_0x106b31(0x17c)+_0x3d7edc[_0x106b31(0x165)]),{};}function a218_0x2ba4(_0x3d2d99,_0x4173fd){_0x3d2d99=_0x3d2d99-0x162;const _0x346b14=a218_0x346b();let _0x2ba4ea=_0x346b14[_0x3d2d99];return _0x2ba4ea;}function normalizeLegacyConfigShape(_0xddb96d){const _0x4d6b63=a218_0xeaab7a;if(!_0xddb96d||typeof _0xddb96d!==_0x4d6b63(0x18e))return{'config':{},'migrated':![]};const _0x28430d={..._0xddb96d},_0x13136e=_0x28430d[_0x4d6b63(0x16e)]&&typeof _0x28430d[_0x4d6b63(0x16e)]===_0x4d6b63(0x18e)?{..._0x28430d['apps']}:{},_0x2dc31f=Object['keys'](_0x13136e)['length'],_0x18647f=_0x28430d[_0x4d6b63(0x16c)]||_0x28430d[_0x4d6b63(0x173)];let _0xb8a8d=![];if(_0x18647f&&_0x2dc31f===0x0){const _0x4729bd=typeof _0x28430d[_0x4d6b63(0x175)]==='string'&&_0x28430d[_0x4d6b63(0x175)][_0x4d6b63(0x17d)]()?_0x28430d[_0x4d6b63(0x175)]:String(_0x18647f)[_0x4d6b63(0x17d)]();_0x13136e[_0x4729bd]={'appcode':String(_0x18647f)['trim'](),..._0x28430d['env']!=null?{'env':_0x28430d[_0x4d6b63(0x18c)]}:{},..._0x28430d[_0x4d6b63(0x183)]!=null?{'apiDir':_0x28430d['apiDir']}:{},..._0x28430d[_0x4d6b63(0x186)]!=null?{'cookie':_0x28430d[_0x4d6b63(0x186)]}:{},..._0x28430d['accessKey']!=null?{'accessKey':_0x28430d['accessKey']}:{},..._0x28430d[_0x4d6b63(0x169)]!=null?{'format':_0x28430d[_0x4d6b63(0x169)]}:{},..._0x28430d[_0x4d6b63(0x192)]!=null?{'pageSize':_0x28430d[_0x4d6b63(0x192)]}:{},..._0x28430d[_0x4d6b63(0x189)]!=null?{'riskLevel':_0x28430d[_0x4d6b63(0x189)]}:{},..._0x28430d[_0x4d6b63(0x17f)]!=null?{'locale':_0x28430d[_0x4d6b63(0x17f)]}:{}},_0x28430d[_0x4d6b63(0x16e)]=_0x13136e,delete _0x28430d['defaultApp'],_0xb8a8d=!![];}return(_0x4d6b63(0x16c)in _0x28430d||_0x4d6b63(0x173)in _0x28430d)&&(delete _0x28430d[_0x4d6b63(0x16c)],delete _0x28430d['app'],_0xb8a8d=!![]),{'config':_0x28430d,'migrated':_0xb8a8d};}function writeNormalizedConfigIfNeeded(_0x5d6d1d,_0xfa71b9){const _0x2be53a=a218_0xeaab7a,_0x5418d9=JSON[_0x2be53a(0x168)](_0xfa71b9,null,0x2)+'\x0a';if(normalizedWriteCache[_0x2be53a(0x177)](_0x5d6d1d)===_0x5418d9)return;writeConfigFile(_0x5d6d1d,_0xfa71b9),normalizedWriteCache[_0x2be53a(0x178)](_0x5d6d1d,_0x5418d9);}function parseAndNormalizeConfig(_0x241b22,_0x1bd605,_0x16815f){const _0x2158db=a218_0xeaab7a,_0x26ded0=parseCliConfigJsonFile(_0x241b22,_0x1bd605,_0x16815f),_0x407936=normalizeLegacyConfigShape(_0x26ded0);if(_0x407936[_0x2158db(0x191)])try{writeNormalizedConfigIfNeeded(_0x241b22,_0x407936[_0x2158db(0x167)]);}catch{}return _0x407936[_0x2158db(0x167)];}export function loadRawConfigLayers(_0x2bb930){const _0x179e4d=a218_0xeaab7a;let _0x10d183={},_0x38c3c1={};const _0x31527b=resolveConfigPath(homedir());_0x31527b&&(_0x10d183=parseAndNormalizeConfig(_0x31527b,'warn','Global'));const _0x2008a5=_0x2bb930??findProjectRootDirectory(),_0xcbcf83=resolveConfigPath(_0x2008a5);return _0xcbcf83&&(_0x38c3c1=parseAndNormalizeConfig(_0xcbcf83,'warn',_0x179e4d(0x18b))),{'globalPath':_0x31527b,'projectPath':_0xcbcf83,'globalConfig':_0x10d183,'projectConfig':_0x38c3c1};}const INHERIT_WHITELIST=['cookie',a218_0xeaab7a(0x166),a218_0xeaab7a(0x17f),'format','riskLevel',a218_0xeaab7a(0x192),a218_0xeaab7a(0x182),a218_0xeaab7a(0x187),'apiDomain',a218_0xeaab7a(0x162),'skillDomain','kbDomain','appDomain'];export function mergeRawConfigLayers(_0x52ef98){const _0x175492=a218_0xeaab7a,{globalConfig:_0x5a0e68,projectConfig:_0x5f1942}=_0x52ef98,_0xcad9f9=!!_0x52ef98[_0x175492(0x16a)]||Object['keys'](_0x5f1942)['length']>0x0;if(!_0xcad9f9)return mergeGlobalOnly(_0x5a0e68);return mergeProjectFirst(_0x5a0e68,_0x5f1942);}function mergeGlobalOnly(_0xd9ad11){const _0x5c951e=a218_0xeaab7a,_0x1f576f={..._0xd9ad11};delete _0x1f576f['inherit'];const _0x21dc77=_0xd9ad11[_0x5c951e(0x16e)]&&typeof _0xd9ad11[_0x5c951e(0x16e)]==='object'?_0xd9ad11[_0x5c951e(0x16e)]:{};if(Object['keys'](_0x21dc77)[_0x5c951e(0x180)]>0x0)_0x1f576f[_0x5c951e(0x16e)]=_0x21dc77;if(_0xd9ad11['defaultApp'])_0x1f576f['defaultApp']=_0xd9ad11[_0x5c951e(0x175)];return _0x1f576f;}function mergeProjectFirst(_0x52f3b1,_0x29de92){const _0x25bcd0=a218_0xeaab7a,_0x4e1dc0={..._0x29de92};delete _0x4e1dc0[_0x25bcd0(0x163)];for(const _0x4c1015 of INHERIT_WHITELIST){!(_0x4c1015 in _0x4e1dc0)&&_0x4c1015 in _0x52f3b1&&(_0x4e1dc0[_0x4c1015]=_0x52f3b1[_0x4c1015]);}const _0x50ba63=_0x29de92['apps']&&typeof _0x29de92[_0x25bcd0(0x16e)]===_0x25bcd0(0x18e)?_0x29de92[_0x25bcd0(0x16e)]:{};return Object['keys'](_0x50ba63)['length']>0x0?_0x4e1dc0[_0x25bcd0(0x16e)]=_0x50ba63:delete _0x4e1dc0[_0x25bcd0(0x16e)],_0x25bcd0(0x175)in _0x29de92?_0x4e1dc0[_0x25bcd0(0x175)]=_0x29de92[_0x25bcd0(0x175)]:delete _0x4e1dc0[_0x25bcd0(0x175)],_0x4e1dc0;}export function readRawConfigWithLayers(_0x43fcb4){const _0x576928=loadRawConfigLayers(_0x43fcb4);return{'config':mergeRawConfigLayers(_0x576928),'layers':_0x576928};}export function readRawConfig(_0x3f62fe){return mergeRawConfigLayers(loadRawConfigLayers(_0x3f62fe));}export function readConfigFile(_0x2923a0){const _0x2032c7=a218_0xeaab7a;return parseAndNormalizeConfig(_0x2923a0,_0x2032c7(0x17e));}export function writeConfigFile(_0xd92d3e,_0x31f8e2){const _0x4d5736=a218_0xeaab7a,_0x42389b=dirname(_0xd92d3e);!existsSync(_0x42389b)&&mkdirSync(_0x42389b,{'recursive':!![]});const _0x8c2ace=_0xd92d3e+_0x4d5736(0x16d);try{writeFileSync(_0x8c2ace,JSON[_0x4d5736(0x168)](_0x31f8e2,null,0x2)+'\x0a',{'encoding':_0x4d5736(0x190),'mode':0x180}),renameSync(_0x8c2ace,_0xd92d3e);}catch(_0xb86dc5){try{unlinkSync(_0x8c2ace);}catch{}throw _0xb86dc5;}}export function resolveWriteConfigPath(_0x550c3b){const _0x400c3e=a218_0xeaab7a,_0x59414b=_0x550c3b===_0x400c3e(0x18f)?process['cwd']():homedir(),_0x2b7006=resolveConfigPath(_0x59414b);return _0x2b7006??resolve(_0x59414b,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a219_0x5f0df8=a219_0x45a3;(function(_0x3da5c2,_0x2aee7c){const _0x3ab9d8=a219_0x45a3,_0x2fd43f=_0x3da5c2();while(!![]){try{const _0x1fc4fb=parseInt(_0x3ab9d8(0x115))/0x1*(-parseInt(_0x3ab9d8(0x10b))/0x2)+-parseInt(_0x3ab9d8(0x10c))/0x3*(parseInt(_0x3ab9d8(0xf8))/0x4)+-parseInt(_0x3ab9d8(0xf5))/0x5*(parseInt(_0x3ab9d8(0x111))/0x6)+parseInt(_0x3ab9d8(0xe8))/0x7*(parseInt(_0x3ab9d8(0xf2))/0x8)+-parseInt(_0x3ab9d8(0xea))/0x9*(-parseInt(_0x3ab9d8(0xef))/0xa)+parseInt(_0x3ab9d8(0x110))/0xb*(-parseInt(_0x3ab9d8(0xff))/0xc)+parseInt(_0x3ab9d8(0xf3))/0xd;if(_0x1fc4fb===_0x2aee7c)break;else _0x2fd43f['push'](_0x2fd43f['shift']());}catch(_0x45efa){_0x2fd43f['push'](_0x2fd43f['shift']());}}}(a219_0x3927,0x8d093));import{resolve}from'node:path';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{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x4eb8c4){return process.env[`RABETBASE_${_0x4eb8c4}`]||process.env[`LOVRABET_${_0x4eb8c4}`]||undefined;}function optionalString(_0x356318){const _0x17c54d=a219_0x45a3;return typeof _0x356318===_0x17c54d(0x108)&&_0x356318['trim']()?_0x356318[_0x17c54d(0x117)]():undefined;}export async function createContext(_0x50b3eb){const _0x5c3d76=a219_0x45a3,{config:_0xf15aa2,layers:_0x4aa495}=readRawConfigWithLayers(),_0x153b2e=buildConfig(_0xf15aa2,_0x50b3eb,_0x4aa495);await initGlobalEnvironment(_0x153b2e);const {getUserDomain:_0x49cfe3,getApiDomain:_0x7a369e}=await import(_0x5c3d76(0x105)),_0x1c9b08={'apiDomain':_0x7a369e(),'userDomain':_0x49cfe3()},_0x4d17ac=await buildAuth(_0x153b2e);logger[_0x5c3d76(0x119)](process['cwd']());const _0x1d6ef1=(CLI_BIN_NAME+'\x20'+process[_0x5c3d76(0xec)][_0x5c3d76(0x118)](0x2)[_0x5c3d76(0x10a)]('\x20'))['trim']();logger[_0x5c3d76(0x100)](_0x1d6ef1);const {isNonInteractive:_0x3fdf1b}=await import(_0x5c3d76(0x10f)),_0x4d62af=_0x3fdf1b(_0x50b3eb);return{'config':_0x153b2e,'auth':_0x4d17ac,'logger':logger,'env':_0x1c9b08,'nonInteractive':_0x4d62af};}function a219_0x45a3(_0x195faa,_0x2c4cb3){_0x195faa=_0x195faa-0xe7;const _0x3927f3=a219_0x3927();let _0x45a30a=_0x3927f3[_0x195faa];return _0x45a30a;}export function buildConfigFromFlags(_0x5da672){const {config:_0x4666a3,layers:_0x5ddcf2}=readRawConfigWithLayers();return buildConfig(_0x4666a3,_0x5da672,_0x5ddcf2);}export async function initGlobalEnvironment(_0x2c8c93){const _0x2bf9c9=a219_0x45a3,{initEnv:_0x1348b5}=await import('./constant/env.js');_0x1348b5(_0x2c8c93[_0x2bf9c9(0x102)]);const {initDomains:_0x3c2376}=await import(_0x2bf9c9(0x105));_0x3c2376({'region':normalizeLovrabetRegion(_0x2c8c93[_0x2bf9c9(0xed)]?.[_0x2bf9c9(0x104)]),'apiDomain':optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.['apiDomain']),'userDomain':optionalString(_0x2c8c93['raw']?.[_0x2bf9c9(0x106)]),'runtimeDomain':optionalString(_0x2c8c93['raw']?.[_0x2bf9c9(0xf9)]),'skillDomain':optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.[_0x2bf9c9(0x113)])||optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.[_0x2bf9c9(0x112)])||optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.[_0x2bf9c9(0x103)])||optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.[_0x2bf9c9(0xf0)]),'kbDomain':optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.[_0x2bf9c9(0x11a)])||optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.[_0x2bf9c9(0x103)])||optionalString(_0x2c8c93['raw']?.[_0x2bf9c9(0xf0)]),'appDomain':optionalString(_0x2c8c93[_0x2bf9c9(0xed)]?.['appDomain'])});}export function getConfigAppCode(_0x4c73a6){const _0x3b78e=a219_0x45a3,_0x4490ca=readRawConfig(_0x4c73a6);if(_0x4490ca['apps']&&typeof _0x4490ca[_0x3b78e(0x10e)]===_0x3b78e(0x107)){const _0x4873b5=_0x4490ca[_0x3b78e(0xfb)];if(_0x4873b5)return _0x4490ca['apps'][_0x4873b5]?.[_0x3b78e(0x114)]?String(_0x4490ca[_0x3b78e(0x10e)][_0x4873b5][_0x3b78e(0x114)])[_0x3b78e(0x117)]():undefined;const _0x4bd026=Object[_0x3b78e(0xf6)](_0x4490ca[_0x3b78e(0x10e)]);if(_0x4bd026[_0x3b78e(0xfe)]===0x1&&_0x4bd026[0x0]?.['appcode'])return String(_0x4bd026[0x0]['appcode'])[_0x3b78e(0x117)]();}const _0x293564=_0x4490ca[_0x3b78e(0x114)]||_0x4490ca[_0x3b78e(0xeb)];if(typeof _0x293564!==_0x3b78e(0x108)||_0x293564['trim']()==='')return undefined;return _0x293564[_0x3b78e(0x117)]();}export function getMultiAppConfigs(_0x3b62a7=a219_0x5f0df8(0xe7),_0x31e1f8){const _0x5559f4=a219_0x5f0df8,_0x2c8dfd=loadRawConfigLayers(_0x31e1f8);let _0x51e984,_0x4ca6c4;if(_0x3b62a7===_0x5559f4(0xe9)){const _0x4aa5a5=_0x2c8dfd[_0x5559f4(0xf7)][_0x5559f4(0x10e)]&&typeof _0x2c8dfd[_0x5559f4(0xf7)][_0x5559f4(0x10e)]===_0x5559f4(0x107)?_0x2c8dfd[_0x5559f4(0xf7)][_0x5559f4(0x10e)]:{},_0x25ac56=_0x2c8dfd[_0x5559f4(0x116)][_0x5559f4(0x10e)]&&typeof _0x2c8dfd[_0x5559f4(0x116)]['apps']===_0x5559f4(0x107)?_0x2c8dfd[_0x5559f4(0x116)][_0x5559f4(0x10e)]:{};_0x51e984={..._0x4aa5a5,..._0x25ac56};const _0x56d89d=readRawConfig(_0x31e1f8);_0x4ca6c4=_0x56d89d[_0x5559f4(0xfb)];}else _0x51e984=_0x2c8dfd['projectConfig'][_0x5559f4(0x10e)],_0x4ca6c4=_0x2c8dfd[_0x5559f4(0x116)][_0x5559f4(0xfb)];!_0x4ca6c4&&_0x51e984&&typeof _0x51e984===_0x5559f4(0x107)&&Object[_0x5559f4(0x109)](_0x51e984)[_0x5559f4(0xfe)]===0x1&&(_0x4ca6c4=Object['keys'](_0x51e984)[0x0]);if(!_0x51e984||typeof _0x51e984!==_0x5559f4(0x107)||Object['keys'](_0x51e984)[_0x5559f4(0xfe)]===0x0)return null;return Object[_0x5559f4(0xfa)](_0x51e984)['map'](([_0x45c06f,_0x14e957])=>({'name':_0x45c06f,'appcode':_0x14e957?.[_0x5559f4(0x114)]||'','isDefault':_0x45c06f===_0x4ca6c4,'env':_0x14e957?.['env'],'apiDir':_0x14e957?.[_0x5559f4(0x10d)],'cookie':_0x14e957?.['cookie']||undefined}))[_0x5559f4(0xf1)](_0x536f69=>_0x536f69[_0x5559f4(0x114)]);}export function getTemplateBaseUrl(_0x4807cf){const _0x211a01=a219_0x5f0df8,_0x17159c=readRawConfig(_0x4807cf);if(_0x17159c[_0x211a01(0x101)]&&typeof _0x17159c[_0x211a01(0x101)]==='string')return _0x17159c[_0x211a01(0x101)]['replace'](/\/$/,'');return _0x211a01(0xf4);}function a219_0x3927(){const _0x22ede7=['values','globalConfig','832088pHZmky','runtimeDomain','entries','defaultApp','cwd','-api.ts','length','158316ivCGMX','setRawCommand','template_base_url','env','agentDomain','region','./constant/domain.js','userDomain','object','string','keys','join','846fDmwtT','6kXPWoz','apiDir','apps','./utils/is-non-interactive.js','55OrrjYY','10620Ryfcga','skillHubDomain','skillDomain','appcode','393DpfSri','projectConfig','trim','slice','setLogPath','kbDomain','project','8267oMWukZ','merged','817416iglxHw','app','argv','raw','api.ts','80BIygxa','platformDomain','filter','1912AQencc','13314600qekCJW','https://g.lovrabet.com/dist/lovrabet-skill','2280fNrGzq'];a219_0x3927=function(){return _0x22ede7;};return a219_0x3927();}function buildConfig(_0x4f93c7,_0x4b37e3,_0x35eee5){return{...resolveAppConfig({'raw':_0x4f93c7,'flags':_0x4b37e3,'layers':_0x35eee5,'readEnv':env}),'raw':_0x4f93c7};}export function resolveApiFilePath(_0x2eee92,_0x3bf02d){const _0x560607=a219_0x5f0df8,_0x16cd2f=resolve(process[_0x560607(0xfc)](),_0x2eee92),_0x426aea=resolve(_0x16cd2f,_0x560607(0xee));if(!_0x3bf02d)return _0x426aea;const _0x1d7d6f=readRawConfig(),_0x3c9de1=_0x1d7d6f[_0x560607(0x10e)]&&typeof _0x1d7d6f[_0x560607(0x10e)]===_0x560607(0x107)?_0x1d7d6f[_0x560607(0x10e)]:{},_0x544393=Object[_0x560607(0xfa)](_0x3c9de1)['find'](([,_0x230269])=>_0x230269?.['appcode']===_0x3bf02d);if(!_0x544393)return _0x426aea;const [_0x76a75e,_0x4f8ccb]=_0x544393,_0x245463=typeof _0x1d7d6f[_0x560607(0xfb)]===_0x560607(0x108)?_0x1d7d6f[_0x560607(0xfb)]:undefined;if(_0x4f8ccb?.['apiDir'])return _0x426aea;if(_0x245463&&_0x76a75e!==_0x245463)return resolve(_0x16cd2f,_0x76a75e+_0x560607(0xfd));return _0x426aea;}
|