@lovrabet/rabetbase-cli 2.4.1-beta.1 → 2.4.1
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/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/get.js +1 -1
- package/lib/commands/config/index.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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.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.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/init/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/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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.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/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.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/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/non-interactive.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/create.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/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/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/copy-directory.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/rules-cdn.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.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x407cc0=a202_0x4d15;(function(_0x34612d,_0x2a1dd8){const _0x4fb8cc=a202_0x4d15,_0x887c2c=_0x34612d();while(!![]){try{const _0x345275=-parseInt(_0x4fb8cc(0x121))/0x1+parseInt(_0x4fb8cc(0x124))/0x2*(-parseInt(_0x4fb8cc(0x135))/0x3)+parseInt(_0x4fb8cc(0x12e))/0x4+-parseInt(_0x4fb8cc(0x125))/0x5+-parseInt(_0x4fb8cc(0x12c))/0x6+-parseInt(_0x4fb8cc(0x137))/0x7*(parseInt(_0x4fb8cc(0x140))/0x8)+parseInt(_0x4fb8cc(0x127))/0x9;if(_0x345275===_0x2a1dd8)break;else _0x887c2c['push'](_0x887c2c['shift']());}catch(_0x589056){_0x887c2c['push'](_0x887c2c['shift']());}}}(a202_0x2e54,0xc46dd));function a202_0x4d15(_0x1e1919,_0x3c9bc8){_0x1e1919=_0x1e1919-0x11b;const _0x2e54d9=a202_0x2e54();let _0x4d151d=_0x2e54d9[_0x1e1919];return _0x4d151d;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a202_0x407cc0(0x14b),SAFE_PROFILE_KEYS=[a202_0x407cc0(0x130),a202_0x407cc0(0x149),a202_0x407cc0(0x151),'format',a202_0x407cc0(0x12b),'riskLevel','locale'],workspaceFlags=[{'name':a202_0x407cc0(0x12f),'type':a202_0x407cc0(0x13c),'description':a202_0x407cc0(0x134)},{'name':a202_0x407cc0(0x130),'type':a202_0x407cc0(0x13c),'description':a202_0x407cc0(0x13a)},{'name':a202_0x407cc0(0x149),'type':'string','description':a202_0x407cc0(0x120),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x407cc0(0x151),'type':'string','description':a202_0x407cc0(0x144)},{'name':a202_0x407cc0(0x150),'type':'string','description':a202_0x407cc0(0x141),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':a202_0x407cc0(0x13b)},{'name':a202_0x407cc0(0x13d),'type':a202_0x407cc0(0x13c),'description':a202_0x407cc0(0x122),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':a202_0x407cc0(0x11b)}];function isRecord(_0x1de8bb){const _0x348699=a202_0x407cc0;return!!_0x1de8bb&&typeof _0x1de8bb===_0x348699(0x12a)&&!Array[_0x348699(0x143)](_0x1de8bb);}function assertValidAppcode(_0x34817a){const _0x5700eb=a202_0x407cc0,{valid:_0x337056,message:_0x1ca25e}=validateAppcode(_0x34817a);if(!_0x337056)throw CliErrors[_0x5700eb(0x11f)](_0x5700eb(0x14e)+_0x34817a,_0x1ca25e);}function sanitizeProfile(_0x1e36bf){if(!isRecord(_0x1e36bf))return{};const _0x5ee10b={};for(const _0x2be20b of SAFE_PROFILE_KEYS){if(_0x1e36bf[_0x2be20b]!==undefined)_0x5ee10b[_0x2be20b]=_0x1e36bf[_0x2be20b];}return _0x5ee10b;}function cloneProfile(_0x5e6ffd){return isRecord(_0x5e6ffd)?{..._0x5e6ffd}:{};}function collectWorkspaceProfileOverrides(_0x434667){const _0x3ecdf5=a202_0x407cc0,_0x34994d={},_0x282680=_0x434667[_0x3ecdf5(0x132)](_0x3ecdf5(0x149)),_0x37346d=_0x434667[_0x3ecdf5(0x132)](_0x3ecdf5(0x151)),_0x27399a=_0x434667[_0x3ecdf5(0x132)]('defaultFormat'),_0x4457c9=_0x434667[_0x3ecdf5(0x142)]('pageSize'),_0x180cc1=_0x434667[_0x3ecdf5(0x132)]('riskLevel'),_0x5f296b=_0x434667[_0x3ecdf5(0x132)]('locale');if(_0x282680)_0x34994d[_0x3ecdf5(0x149)]=_0x282680;if(_0x37346d)_0x34994d['apiDir']=_0x37346d;if(_0x27399a)_0x34994d['format']=_0x27399a;if(_0x4457c9!==undefined&&_0x4457c9!=='')_0x34994d['pageSize']=Number(_0x4457c9);if(_0x180cc1)_0x34994d[_0x3ecdf5(0x13d)]=_0x180cc1;if(_0x5f296b)_0x34994d[_0x3ecdf5(0x133)]=_0x5f296b;return _0x34994d;}async function validateWorkspaceArgs(_0x268584){const _0x267fb7=a202_0x407cc0,_0x3f4397=_0x268584[_0x267fb7(0x132)]('app')[_0x267fb7(0x126)](),_0x2e4803=_0x268584[_0x267fb7(0x132)]('appcode')['trim']();if(!_0x3f4397&&!_0x2e4803)throw CliErrors[_0x267fb7(0x11f)](_0x267fb7(0x14f),'Use\x20`'+CLI_BIN_NAME+_0x267fb7(0x146)+CLI_BIN_NAME+_0x267fb7(0x14d));if(_0x2e4803)assertValidAppcode(_0x2e4803);}function resolveKnownApps(){const _0x2e20b1=a202_0x407cc0,{config:_0x398697,layers:_0x34fd13}=readRawConfigWithLayers(),_0x1920aa=isRecord(_0x398697[_0x2e20b1(0x12d)])?_0x398697[_0x2e20b1(0x12d)]:{},_0x1bf866=isRecord(_0x34fd13[_0x2e20b1(0x147)][_0x2e20b1(0x12d)])?_0x34fd13[_0x2e20b1(0x147)][_0x2e20b1(0x12d)]:{};return{..._0x1bf866,..._0x1920aa};}async function configureWorkspace(_0x351c12,_0xcc4b6d){const _0x3981c4=a202_0x407cc0,_0x5e92d4=_0x351c12[_0x3981c4(0x132)](_0x3981c4(0x12f))[_0x3981c4(0x126)](),_0x4b726e=_0x351c12[_0x3981c4(0x132)]('appcode')[_0x3981c4(0x126)](),_0x58f9ed=_0x5e92d4||_0x4b726e;if(!_0x58f9ed)throw CliErrors['validation'](_0x3981c4(0x14f),_0x3981c4(0x123)+CLI_BIN_NAME+_0x3981c4(0x146)+CLI_BIN_NAME+_0x3981c4(0x14d));if(_0x4b726e)assertValidAppcode(_0x4b726e);const _0x41b924=resolveWriteConfigPath(_0x3981c4(0x11e)),_0x36bd60=readConfigFile(_0x41b924),_0x16edb9=resolveKnownApps(),_0x5be848=isRecord(_0x36bd60[_0x3981c4(0x12d)])?{..._0x36bd60[_0x3981c4(0x12d)]}:{},_0x53f2a1=cloneProfile(_0x5be848[_0x58f9ed]),_0x597089=sanitizeProfile(_0x16edb9[_0x58f9ed]),_0x48849c=_0x4b726e?{}:_0x597089,_0x4ada90=_0x4b726e||_0x48849c[_0x3981c4(0x130)];if(!_0x4ada90){const _0x1f54b7=Object[_0x3981c4(0x128)](_0x16edb9),_0x30e5f2=_0x1f54b7['length']===0x0?_0x3981c4(0x123)+CLI_BIN_NAME+'\x20workspace\x20'+_0xcc4b6d+'\x20--app\x20'+_0x58f9ed+_0x3981c4(0x14a):_0x3981c4(0x138)+_0x1f54b7['join'](',\x20');throw CliErrors[_0x3981c4(0x11f)](_0x3981c4(0x11c)+_0x58f9ed+_0x3981c4(0x14c),_0x30e5f2);}assertValidAppcode(String(_0x4ada90));const _0x264681={..._0x48849c,..._0x53f2a1,'appcode':String(_0x4ada90),...collectWorkspaceProfileOverrides(_0x351c12)};return _0x5be848[_0x58f9ed]=_0x264681,_0x36bd60[_0x3981c4(0x12d)]=_0x5be848,_0x36bd60['defaultApp']=_0x58f9ed,delete _0x36bd60[_0x3981c4(0x130)],delete _0x36bd60[_0x3981c4(0x12f)],_0x264681[_0x3981c4(0x149)]&&(_0x36bd60[_0x3981c4(0x149)]=_0x264681[_0x3981c4(0x149)]),writeConfigFile(_0x41b924,_0x36bd60),{'ok':!![],'message':'Workspace\x20'+(_0xcc4b6d===_0x3981c4(0x129)?'initialized':'updated')+':\x20'+_0x58f9ed+_0x3981c4(0x131)+_0x264681['appcode']+_0x3981c4(0x139)+_0x41b924+_0x3981c4(0x152),'data':{'operation':_0x3981c4(0x145)+_0xcc4b6d,'configPath':_0x41b924,'app':_0x58f9ed,'appcode':_0x264681[_0x3981c4(0x130)],'env':_0x264681['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a202_0x407cc0(0x136),'command':a202_0x407cc0(0x129),'description':a202_0x407cc0(0x11d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x402eb5=>configureWorkspace(_0x402eb5,a202_0x407cc0(0x129))},workspaceUseDefinition={'service':a202_0x407cc0(0x136),'command':a202_0x407cc0(0x148),'description':a202_0x407cc0(0x13f),'risk':a202_0x407cc0(0x13e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x8034a=>configureWorkspace(_0x8034a,a202_0x407cc0(0x148))};function a202_0x2e54(){const _0x21d73a=[').\x20Config:\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','string','riskLevel','write','Switch\x20the\x20current\x20workspace\x20app\x20binding','88GDwaJn','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','flag','isArray','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','workspace.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','globalConfig','use','env','\x20--appcode\x20<code>`.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','\x22\x20not\x20found.','\x20workspace\x20use\x20--app\x20<name>`.','Invalid\x20appcode:\x20','Missing\x20workspace\x20app\x20selector.','defaultFormat','apiDir','.\x20Credentials:\x20not\x20written.','Locale\x20for\x20this\x20workspace\x20app\x20profile','App\x20\x22','Initialize\x20the\x20current\x20workspace\x20app\x20binding','project','validation','Target\x20environment','22966qeqYJk','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Use\x20`','10YWNbhf','4033670JNlYpK','trim','21285378OcPNXd','keys','init','object','pageSize','492474kNufpd','apps','2844588ynNxBK','app','appcode','\x20(appcode:\x20','str','locale','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','397680DgKEjS','workspace','443569NOKKsy','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'];a202_0x2e54=function(){return _0x21d73a;};return a202_0x2e54();}export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a203_0x2e5c55=a203_0x4074;(function(_0x30a5d0,_0x9838a5){const _0x15ca67=a203_0x4074,_0x50d66c=_0x30a5d0();while(!![]){try{const _0x5c1db4=parseInt(_0x15ca67(0x8d))/0x1*(parseInt(_0x15ca67(0x8c))/0x2)+parseInt(_0x15ca67(0x85))/0x3*(parseInt(_0x15ca67(0x94))/0x4)+parseInt(_0x15ca67(0x8f))/0x5*(parseInt(_0x15ca67(0x8b))/0x6)+parseInt(_0x15ca67(0x91))/0x7*(parseInt(_0x15ca67(0x8e))/0x8)+parseInt(_0x15ca67(0x92))/0x9+parseInt(_0x15ca67(0x86))/0xa*(parseInt(_0x15ca67(0x87))/0xb)+-parseInt(_0x15ca67(0x88))/0xc;if(_0x5c1db4===_0x9838a5)break;else _0x50d66c['push'](_0x50d66c['shift']());}catch(_0x1bfdbb){_0x50d66c['push'](_0x50d66c['shift']());}}}(a203_0x5ee5,0x639d5));function a203_0x4074(_0x327548,_0x26dcd0){_0x327548=_0x327548-0x84;const _0x5ee58c=a203_0x5ee5();let _0x407421=_0x5ee58c[_0x327548];return _0x407421;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a203_0x5ee5(){const _0x34092d=['4222150kLzrQW','11PkLESD','16804056KsClMc','App\x20profile\x20name\x20to\x20remove','workspace\x20remove','6VIbpnU','75538bNwVlY','13jvQNSf','8YrEKtD','167380ODNjdY','workspace','3499321bWzlTF','2495583ZjpSVz','write','4VwoPwJ','name','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','253443usdmIL'];a203_0x5ee5=function(){return _0x34092d;};return a203_0x5ee5();}export const workspaceRemoveDefinition={'service':a203_0x2e5c55(0x90),'command':'remove','description':a203_0x2e5c55(0x84),'risk':a203_0x2e5c55(0x93),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x2e5c55(0x95),'description':a203_0x2e5c55(0x89),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x577a17=>validateAppName(_0x577a17,a203_0x2e5c55(0x8a)),'execute':_0x1e3f63=>runAppRemove(_0x1e3f63,'workspace\x20remove')};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a204_0x29d742=a204_0x4d75;function a204_0x4e97(){const _0x33efc2=['en-US','accessKey','pageSize','defaultApp','API\x20directory\x20path','9gESuUJ','format','riskLevel','Default\x20page\x20size','inherit','5066320zlapSU','locale','app','408942cFNHol','3823528YUssNo','toLowerCase','appcode','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','376568JmaKiB','7WKpYAf','1652970mVaPAP','Config\x20key\x20(','join','string','env','331878FaXYfZ','apiDir','apps','length','zh-CN','6ElhuOP','Risk\x20level','Target\x20environment','defaultFormat','357298mroqeN','cookie','trim','number'];a204_0x4e97=function(){return _0x33efc2;};return a204_0x4e97();}(function(_0x1d3513,_0x5c9c4e){const _0x26a5ea=a204_0x4d75,_0x33579e=_0x1d3513();while(!![]){try{const _0x39e517=-parseInt(_0x26a5ea(0x78))/0x1+-parseInt(_0x26a5ea(0x9a))/0x2*(-parseInt(_0x26a5ea(0x95))/0x3)+-parseInt(_0x26a5ea(0x8e))/0x4+parseInt(_0x26a5ea(0x90))/0x5+-parseInt(_0x26a5ea(0x89))/0x6*(-parseInt(_0x26a5ea(0x8f))/0x7)+-parseInt(_0x26a5ea(0x8a))/0x8*(-parseInt(_0x26a5ea(0x81))/0x9)+-parseInt(_0x26a5ea(0x86))/0xa;if(_0x39e517===_0x5c9c4e)break;else _0x33579e['push'](_0x33579e['shift']());}catch(_0x5f1b53){_0x33579e['push'](_0x33579e['shift']());}}}(a204_0x4e97,0x3d282));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a204_0x29d742(0x79),a204_0x29d742(0x7d),'locale',a204_0x29d742(0x82),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env','locale',a204_0x29d742(0x82),a204_0x29d742(0x79),a204_0x29d742(0x7d),a204_0x29d742(0x96)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5a70f8){const _0x43781c=a204_0x29d742;return[..._0x5a70f8][_0x43781c(0x92)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x159743){return TOP_LEVEL_CONFIG_KEYS['has'](_0x159743);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x156814=a204_0x29d742;return _0x156814(0x91)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a204_0x29d742(0x94),'apiDir':a204_0x29d742(0x96),'cookie':a204_0x29d742(0x79),'accessKey':a204_0x29d742(0x7d),'defaultFormat':a204_0x29d742(0x82),'pageSize':'pageSize','riskLevel':a204_0x29d742(0x83),'locale':a204_0x29d742(0x87)};function a204_0x4d75(_0x5a1d33,_0x30f01e){_0x5a1d33=_0x5a1d33-0x78;const _0x4e977c=a204_0x4e97();let _0x4d7512=_0x4e977c[_0x5a1d33];return _0x4d7512;}export function getAppProfileFlagDefs(){const _0x43a594=a204_0x29d742;return[{'name':_0x43a594(0x94),'type':'string','description':_0x43a594(0x9c),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x43a594(0x96),'type':'string','description':_0x43a594(0x80)},{'name':_0x43a594(0x79),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x43a594(0x7d),'type':'string','description':'Access\x20key','hidden':!![]},{'name':_0x43a594(0x9d),'type':_0x43a594(0x93),'description':_0x43a594(0x8d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x43a594(0x7e),'type':_0x43a594(0x7b),'description':_0x43a594(0x84)},{'name':_0x43a594(0x83),'type':_0x43a594(0x93),'description':_0x43a594(0x9b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x43a594(0x87),'type':_0x43a594(0x93),'description':'Locale'}];}export function collectAppProfileOverrides(_0x27b8e8){const _0xa10667={};for(const [_0xb69fc,_0x3e5313]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x54b6f1=_0x27b8e8(_0xb69fc);if(!_0x54b6f1)continue;_0xa10667[_0x3e5313]=_0x3e5313==='pageSize'?Number(_0x54b6f1):_0x54b6f1;}return _0xa10667;}export function buildAppProfileListFields(_0x1cecb2){const _0x4c8569=a204_0x29d742;return{'env':_0x1cecb2[_0x4c8569(0x94)]??null,'apiDir':_0x1cecb2['apiDir']??null,'hasCookie':!!_0x1cecb2[_0x4c8569(0x79)],'hasAccessKey':!!_0x1cecb2[_0x4c8569(0x7d)],'format':_0x1cecb2[_0x4c8569(0x82)]??null,'pageSize':_0x1cecb2['pageSize']??null,'riskLevel':_0x1cecb2['riskLevel']??null,'locale':_0x1cecb2['locale']??null};}export function buildAppDoctorFields(_0x34f04f,_0x512517){const _0x4130b5=a204_0x29d742;return{'env':{'value':_0x34f04f[_0x4130b5(0x94)]||_0x512517[_0x4130b5(0x94)],'source':_0x34f04f['env']?'app':'inherit'},'apiDir':{'value':_0x34f04f['apiDir']||_0x512517[_0x4130b5(0x96)],'source':_0x34f04f[_0x4130b5(0x96)]?_0x4130b5(0x88):_0x4130b5(0x85)},'cookie':{'value':_0x34f04f[_0x4130b5(0x79)]||_0x512517[_0x4130b5(0x79)],'source':_0x34f04f['cookie']?_0x4130b5(0x88):'inherit'},'accessKey':{'value':_0x34f04f[_0x4130b5(0x7d)]||_0x512517[_0x4130b5(0x7d)],'source':_0x34f04f[_0x4130b5(0x7d)]?_0x4130b5(0x88):'inherit'}};}export function buildCanonicalAppConfig(_0xacd99b,_0x3c6527){const _0x3843ad=a204_0x29d742,_0x206b90=_0xacd99b['map'](_0x24c837=>String(_0x24c837||'')[_0x3843ad(0x7a)]())['filter'](Boolean);if(_0x206b90[_0x3843ad(0x98)]===0x0)return{};const _0x59b278={};for(const _0x419a34 of _0x206b90){_0x59b278[_0x419a34]=_0x3c6527?{'appcode':_0x419a34,'env':_0x3c6527}:{'appcode':_0x419a34};}return{'apps':_0x59b278,'defaultApp':_0x206b90[0x0]};}export function buildCanonicalProjectConfig(_0x442aff,_0xa21494){const _0x59cd73=a204_0x29d742,{appCodes:appCodes=[],env:_0x30c55c,metadata:_0xdce8c4}=_0xa21494,_0x3a451a={..._0x442aff,..._0xdce8c4||{}};delete _0x3a451a[_0x59cd73(0x8c)],delete _0x3a451a[_0x59cd73(0x88)];if(_0x30c55c)_0x3a451a[_0x59cd73(0x94)]=_0x30c55c;else!_0x3a451a[_0x59cd73(0x94)]&&(_0x3a451a[_0x59cd73(0x94)]=DEFAULT_CONFIG_VALUES['env']);const _0x2657b3=buildCanonicalAppConfig(appCodes,_0x3a451a['env']);return Object['keys'](_0x2657b3)[_0x59cd73(0x98)]>0x0&&(_0x3a451a[_0x59cd73(0x97)]=_0x2657b3[_0x59cd73(0x97)],_0x3a451a['defaultApp']=_0x2657b3[_0x59cd73(0x7f)]),_0x3a451a;}const LOCALE_MAP={'zh':a204_0x29d742(0x99),'zh-cn':'zh-CN','zh_cn':a204_0x29d742(0x99),'en':'en-US','en-us':'en-US','en_us':a204_0x29d742(0x7c)};export function normalizeLocale(_0x265f6){const _0xd30eba=a204_0x29d742;if(!_0x265f6)return null;return LOCALE_MAP[_0x265f6[_0xd30eba(0x8b)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a205_0x515941=a205_0x4568;(function(_0x5710d9,_0x4bc923){const _0x3f08b2=a205_0x4568,_0x4725be=_0x5710d9();while(!![]){try{const _0x541dca=parseInt(_0x3f08b2(0x1f6))/0x1*(-parseInt(_0x3f08b2(0x1f9))/0x2)+parseInt(_0x3f08b2(0x1f5))/0x3*(-parseInt(_0x3f08b2(0x1f1))/0x4)+-parseInt(_0x3f08b2(0x1f0))/0x5+-parseInt(_0x3f08b2(0x1ed))/0x6*(-parseInt(_0x3f08b2(0x1f7))/0x7)+-parseInt(_0x3f08b2(0x1ef))/0x8*(parseInt(_0x3f08b2(0x1f3))/0x9)+-parseInt(_0x3f08b2(0x1f8))/0xa+parseInt(_0x3f08b2(0x1f2))/0xb*(parseInt(_0x3f08b2(0x1f4))/0xc);if(_0x541dca===_0x4bc923)break;else _0x4725be['push'](_0x4725be['shift']());}catch(_0x181a79){_0x4725be['push'](_0x4725be['shift']());}}}(a205_0x48b3,0xd91bc));function a205_0x4568(_0x2fae31,_0x5252a4){_0x2fae31=_0x2fae31-0x1ed;const _0x48b39c=a205_0x48b3();let _0x456870=_0x48b39c[_0x2fae31];return _0x456870;}export const CLI_VERSION_POLICY_URL=a205_0x515941(0x1ee);function a205_0x48b3(){const _0x518fe6=['144334BlKrdq','1179605ABUnir','10590360iTlxJK','6iDziVN','42CrJEXU','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','161336QQsQJL','8708285xLlXuy','102964JZoNnS','11VgBoAG','693kcwLvB','71252652ZzguoZ','168ZhMpWA'];a205_0x48b3=function(){return _0x518fe6;};return a205_0x48b3();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a206_0x2f5825=a206_0x9c94;(function(_0x19d525,_0x44dc85){const _0x44ef1d=a206_0x9c94,_0x5c2d85=_0x19d525();while(!![]){try{const _0x3821a0=-parseInt(_0x44ef1d(0x1af))/0x1+parseInt(_0x44ef1d(0x1c9))/0x2*(parseInt(_0x44ef1d(0x19b))/0x3)+-parseInt(_0x44ef1d(0x20d))/0x4+-parseInt(_0x44ef1d(0x1e2))/0x5*(-parseInt(_0x44ef1d(0x1cf))/0x6)+-parseInt(_0x44ef1d(0x1c5))/0x7*(-parseInt(_0x44ef1d(0x1a2))/0x8)+parseInt(_0x44ef1d(0x1c0))/0x9+parseInt(_0x44ef1d(0x1a7))/0xa*(-parseInt(_0x44ef1d(0x19e))/0xb);if(_0x3821a0===_0x44dc85)break;else _0x5c2d85['push'](_0x5c2d85['shift']());}catch(_0x5dd267){_0x5c2d85['push'](_0x5c2d85['shift']());}}}(a206_0x26ea,0xc4032));export const CLI_BIN_NAME='rabetbase';function a206_0x9c94(_0x639831,_0x44f88a){_0x639831=_0x639831-0x196;const _0x26eaab=a206_0x26ea();let _0x9c9405=_0x26eaab[_0x639831];return _0x9c9405;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a206_0x2f5825(0x1b8),'meowKey':a206_0x2f5825(0x1b8),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1aa),'hint':a206_0x2f5825(0x1a3)},{'name':a206_0x2f5825(0x1ee),'meowKey':'app','type':'string','description':a206_0x2f5825(0x215),'hint':'<name>'},{'name':a206_0x2f5825(0x1f9),'meowKey':a206_0x2f5825(0x1f9),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1d1),'hint':a206_0x2f5825(0x19f)},{'name':a206_0x2f5825(0x1c6),'meowKey':a206_0x2f5825(0x1c6),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1a1),'hint':a206_0x2f5825(0x1f7)},{'name':'jq','meowKey':'jq','type':a206_0x2f5825(0x1f2),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a206_0x2f5825(0x1d2)},{'name':a206_0x2f5825(0x1ba),'meowKey':a206_0x2f5825(0x1d0),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x19a)},{'name':a206_0x2f5825(0x213),'meowKey':a206_0x2f5825(0x213),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1a8)},{'name':'non-interactive','meowKey':a206_0x2f5825(0x1b6),'type':'boolean','description':a206_0x2f5825(0x1f5)},{'name':a206_0x2f5825(0x1cc),'meowKey':a206_0x2f5825(0x1cc),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1db)},{'name':a206_0x2f5825(0x211),'meowKey':a206_0x2f5825(0x211),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1fc)},{'name':'ci','meowKey':'ci','type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1a5),'hidden':!![]},{'name':'help','meowKey':a206_0x2f5825(0x20f),'type':a206_0x2f5825(0x1e9),'description':'Show\x20help'},{'name':a206_0x2f5825(0x203),'meowKey':a206_0x2f5825(0x203),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x198),'hidden':!![]},{'name':a206_0x2f5825(0x1b2),'meowKey':a206_0x2f5825(0x1b2),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1bc),'hidden':!![]},{'name':'clear','meowKey':a206_0x2f5825(0x197),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1ed),'hidden':!![]},{'name':a206_0x2f5825(0x1fa),'meowKey':'watch','type':a206_0x2f5825(0x1e9),'description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':a206_0x2f5825(0x204),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1b4),'hidden':!![]},{'name':'params','meowKey':a206_0x2f5825(0x212),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x216),'hidden':!![]},{'name':a206_0x2f5825(0x1b3),'meowKey':a206_0x2f5825(0x1b3),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a206_0x2f5825(0x1a9),'meowKey':a206_0x2f5825(0x1a9),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1f1),'hidden':!![]},{'name':a206_0x2f5825(0x1c2),'meowKey':a206_0x2f5825(0x1fe),'type':a206_0x2f5825(0x1e9),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1cd),'hidden':!![]},{'name':a206_0x2f5825(0x1ef),'meowKey':a206_0x2f5825(0x1ef),'type':a206_0x2f5825(0x1f2),'description':'Type\x20filter','hidden':!![]},{'name':a206_0x2f5825(0x1f8),'meowKey':'file','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1f4),'hidden':!![]},{'name':a206_0x2f5825(0x1d5),'meowKey':a206_0x2f5825(0x1d5),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1a0),'hidden':!![]},{'name':'sql-name','meowKey':a206_0x2f5825(0x1e7),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1c1),'hidden':!![]},{'name':a206_0x2f5825(0x1de),'meowKey':a206_0x2f5825(0x1de),'type':a206_0x2f5825(0x1f2),'description':'SQL\x20name','hidden':!![]},{'name':a206_0x2f5825(0x209),'meowKey':'dbId','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x20b),'hidden':!![]},{'name':a206_0x2f5825(0x1a6),'meowKey':a206_0x2f5825(0x1a6),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x20b),'hidden':!![]},{'name':a206_0x2f5825(0x1ae),'meowKey':'description','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x20c),'hidden':!![]},{'name':a206_0x2f5825(0x1bb),'meowKey':a206_0x2f5825(0x1d4),'type':'string','description':a206_0x2f5825(0x1ea),'hidden':!![]},{'name':a206_0x2f5825(0x208),'meowKey':a206_0x2f5825(0x208),'type':'string','description':a206_0x2f5825(0x205),'hidden':!![]},{'name':a206_0x2f5825(0x201),'meowKey':'pagesize','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x19d),'hidden':!![]},{'name':a206_0x2f5825(0x1f0),'meowKey':a206_0x2f5825(0x1f0),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x196),'hidden':!![]},{'name':a206_0x2f5825(0x20e),'meowKey':a206_0x2f5825(0x20e),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1c7),'hidden':!![]},{'name':a206_0x2f5825(0x1fb),'meowKey':a206_0x2f5825(0x1fb),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1b1),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1ca),'hidden':!![]},{'name':'operation','meowKey':a206_0x2f5825(0x202),'type':a206_0x2f5825(0x1f2),'description':'Operation\x20type','hidden':!![]},{'name':a206_0x2f5825(0x1d9),'meowKey':a206_0x2f5825(0x1d9),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1ad),'hidden':!![]},{'name':'skip-imports','meowKey':a206_0x2f5825(0x1d7),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1b5),'hidden':!![]},{'name':a206_0x2f5825(0x1fd),'meowKey':a206_0x2f5825(0x1fd),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1e1),'hidden':!![]},{'name':'value','meowKey':a206_0x2f5825(0x1ab),'type':'string','description':a206_0x2f5825(0x206),'hidden':!![]},{'name':a206_0x2f5825(0x1b7),'meowKey':'tags','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1c3),'hidden':!![]},{'name':'stdin','meowKey':'stdin','type':'boolean','description':a206_0x2f5825(0x1d3),'hidden':!![]},{'name':a206_0x2f5825(0x1b0),'meowKey':a206_0x2f5825(0x1d8),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x19c),'hidden':!![]},{'name':a206_0x2f5825(0x1ec),'meowKey':a206_0x2f5825(0x1ec),'type':'boolean','description':a206_0x2f5825(0x210),'hidden':!![]},{'name':a206_0x2f5825(0x200),'meowKey':a206_0x2f5825(0x200),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1c8),'hidden':!![]},{'name':a206_0x2f5825(0x1a4),'meowKey':a206_0x2f5825(0x1a4),'type':a206_0x2f5825(0x1e9),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a206_0x2f5825(0x1e5),'type':'boolean','description':a206_0x2f5825(0x1e6),'hidden':!![]},{'name':a206_0x2f5825(0x207),'meowKey':'verbose','type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x20a),'hidden':!![]},{'name':a206_0x2f5825(0x1bf),'meowKey':a206_0x2f5825(0x1f3),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x214),'hidden':!![]},{'name':a206_0x2f5825(0x1df),'meowKey':a206_0x2f5825(0x1df),'type':'string','description':a206_0x2f5825(0x1ff),'hidden':!![]},{'name':a206_0x2f5825(0x1e0),'meowKey':'parentId','type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a206_0x2f5825(0x1b9),'meowKey':'sort','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1e3),'hidden':!![]},{'name':'expect-parent-id','meowKey':a206_0x2f5825(0x1ac),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x199),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x2f5825(0x1cb),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1e8),'hidden':!![]},{'name':a206_0x2f5825(0x1c4),'meowKey':'expectedChildrenCount','type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':'string','description':a206_0x2f5825(0x1bd),'hidden':!![]},{'name':a206_0x2f5825(0x1dd),'meowKey':a206_0x2f5825(0x1be),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1d6),'hidden':!![]},{'name':a206_0x2f5825(0x1da),'meowKey':a206_0x2f5825(0x1e4),'type':'string','description':a206_0x2f5825(0x1dc),'hidden':!![]},{'name':a206_0x2f5825(0x1f6),'meowKey':a206_0x2f5825(0x1ce),'type':a206_0x2f5825(0x1f2),'description':'Function\x20node','hidden':!![]}];function a206_0x26ea(){const _0xc5c8a9=['nonInteractive','tags','appcode','sort','dry-run','description-file','Title','Comma-separated\x20menu\x20IDs','taskId','expected-count','8905410UBCIUE','SQL\x20name','enable-bff-save','Tags','expected-children-count','7sjhqFp','format','Code\x20filter','Force\x20overwrite','8tDuGXJ','Schemas','expectPath','global','Record\x20ID','functionNode','90COmFDD','dryRun','Environment','<expr>','Read\x20value\x20from\x20stdin','descriptionFile','sqlcode','Asynchronous\x20task\x20ID','skipImports','fromEnv','target','operation-type','Use\x20global\x20config\x20scope','Operation\x20type','task-id','sqlname','label','parent-id','Config\x20key','55090XkMEth','Menu\x20sort\x20value','operationType','remote','Use\x20remote','sqlName','Expected\x20current\x20menu\x20path','boolean','Description\x20file','non-interactive','reveal','Clear','app','type','keyword','Apply\x20to\x20all','string','expectedCount','File\x20path','Force\x20non-interactive\x20mode\x20(CI)','function-node','json\x20|\x20pretty\x20|\x20compress','file','env','watch','sql','Use\x20project\x20config\x20scope','key','enableBffSave','Menu\x20label','force','pagesize','operation','name','output','Page\x20number','Config\x20value','verbose','page','db-id','Verbose\x20output','DB\x20ID','Description','1619444hBzDGN','code','help','Reveal\x20sensitive\x20value','project','params','yes','Expected\x20affected\x20count','Select\x20app\x20profile\x20by\x20name','JSON\x20params','Keyword\x20filter','clear','Name','Expected\x20current\x20parent\x20menu\x20id','Preview\x20operation\x20without\x20executing','469437XgDHos','Read\x20value\x20from\x20environment\x20variable','Page\x20size','11SGXrQR','production\x20|\x20daily','SQL\x20code','Output\x20format','11531320drsLuG','<code>','confirm','Alias\x20for\x20--non-interactive','dbid','11330170vpWOIy','Skip\x20confirmation\x20for\x20high-risk\x20writes','all','Override\x20appcode','value','expectParentId','Target\x20path','description','881347XcUzcE','from-env','SQL\x20string','title','datasetcode','Output\x20path','Skip\x20import\x20generation'];a206_0x26ea=function(){return _0xc5c8a9;};return a206_0x26ea();}export const PIPELINE_FLAG_NAMES=new Set([a206_0x2f5825(0x1b8),'app',a206_0x2f5825(0x1f9),'format','jq',a206_0x2f5825(0x1ba),a206_0x2f5825(0x213),a206_0x2f5825(0x1eb),'ci']);export function buildMeowFlags(){const _0x4e42ff=a206_0x2f5825;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x5c1c02=>[_0x5c1c02['meowKey'],{'type':_0x5c1c02[_0x4e42ff(0x1ef)]}]));}
|
|
1
|
+
const a206_0x1aa692=a206_0x551b;(function(_0x1550e6,_0x5c763f){const _0x5a7d26=a206_0x551b,_0x21525b=_0x1550e6();while(!![]){try{const _0x33ba07=parseInt(_0x5a7d26(0x141))/0x1+-parseInt(_0x5a7d26(0xea))/0x2*(parseInt(_0x5a7d26(0xe1))/0x3)+parseInt(_0x5a7d26(0xde))/0x4*(parseInt(_0x5a7d26(0x144))/0x5)+-parseInt(_0x5a7d26(0x149))/0x6+-parseInt(_0x5a7d26(0x137))/0x7+parseInt(_0x5a7d26(0xf7))/0x8*(-parseInt(_0x5a7d26(0xdb))/0x9)+parseInt(_0x5a7d26(0xee))/0xa;if(_0x33ba07===_0x5c763f)break;else _0x21525b['push'](_0x21525b['shift']());}catch(_0x38b7b3){_0x21525b['push'](_0x21525b['shift']());}}}(a206_0x2d1a,0x4603e));export const CLI_BIN_NAME=a206_0x1aa692(0x10f);function a206_0x551b(_0x30d2f3,_0x5b50e7){_0x30d2f3=_0x30d2f3-0xcc;const _0x2d1a2f=a206_0x2d1a();let _0x551bb0=_0x2d1a2f[_0x30d2f3];return _0x551bb0;}function a206_0x2d1a(){const _0x4952df=['rabetbase','functionNode','Force\x20overwrite','operationType','Apply\x20to\x20all','type','sort','dry-run','@lovrabet/rabetbase-cli','<code>','all','Watch\x20mode','datasetcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expectedCount','Title','Menu\x20label','Schemas','file','Tags','Description','File\x20path','parentId','clear','params','name','sqlcode','Select\x20app\x20profile\x20by\x20name','expected-count','pagesize','Record\x20ID','DB\x20ID','expected-children-count','env','Menu\x20sort\x20value','Expected\x20current\x20menu\x20path','value','menu-ids','Show\x20help','from-env','3712660Wouwoy','Read\x20value\x20from\x20stdin','expectedChildrenCount','description-file','Function\x20node','meowKey','boolean','Operation\x20type','Config\x20value','key','432776Lynimd','Skip\x20import\x20generation','Verbose\x20output','1480175oAYXdM','Use\x20global\x20config\x20scope','output','Parent\x20menu\x20id','json\x20|\x20pretty\x20|\x20compress','2325030bPgmOg','parent-id','expectPath','keyword','dbid','yes','Use\x20remote','Expected\x20current\x20child\x20count','target','help','Override\x20appcode','expect-path','non-interactive','Read\x20value\x20from\x20environment\x20variable','description','sqlname','verbose','99jHQDYE','descriptionFile','Comma-separated\x20menu\x20IDs','4snQwzK','<expr>','schemas','3ZRdzKe','Asynchronous\x20task\x20ID','expect-parent-id','Confirm\x20destructive\x20action','operation','string','Skip\x20confirmation\x20for\x20high-risk\x20writes','Target\x20path','force','1051628iTIKRi','taskId','Config\x20key','Type\x20filter','15486670FrAtfu','appcode','Expected\x20affected\x20count','production\x20|\x20daily','sql','Use\x20project\x20config\x20scope','Page\x20number','menuIds','Clear','397816gcOmMR','db-id','project','SQL\x20name','Output\x20path','code','sql-name','title','stdin','dbId','Dataset\x20code','fromEntries','page','SQL\x20code','JSON\x20params','Preview\x20operation\x20without\x20executing','global','app','skip-imports','SQL\x20string','watch','format','Code\x20filter','remote'];a206_0x2d1a=function(){return _0x4952df;};return a206_0x2d1a();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a206_0x1aa692(0x117);export const GLOBAL_FLAGS=[{'name':a206_0x1aa692(0xef),'meowKey':a206_0x1aa692(0xef),'type':'string','description':a206_0x1aa692(0xd4),'hint':a206_0x1aa692(0x118)},{'name':a206_0x1aa692(0x108),'meowKey':a206_0x1aa692(0x108),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12a),'hint':'<name>'},{'name':'env','meowKey':a206_0x1aa692(0x130),'type':a206_0x1aa692(0xe6),'description':'Environment','hint':a206_0x1aa692(0xf1)},{'name':a206_0x1aa692(0x10c),'meowKey':a206_0x1aa692(0x10c),'type':a206_0x1aa692(0xe6),'description':'Output\x20format','hint':a206_0x1aa692(0x148)},{'name':'jq','meowKey':'jq','type':'string','description':a206_0x1aa692(0x11c),'hint':a206_0x1aa692(0xdf)},{'name':a206_0x1aa692(0x116),'meowKey':'dryRun','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x106)},{'name':'yes','meowKey':a206_0x1aa692(0xcf),'type':'boolean','description':a206_0x1aa692(0xe7)},{'name':a206_0x1aa692(0xd6),'meowKey':'nonInteractive','type':a206_0x1aa692(0x13d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a206_0x1aa692(0x107),'meowKey':'global','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x145)},{'name':a206_0x1aa692(0xf9),'meowKey':a206_0x1aa692(0xf9),'type':'boolean','description':a206_0x1aa692(0xf3)},{'name':'ci','meowKey':'ci','type':a206_0x1aa692(0x13d),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a206_0x1aa692(0xd3),'meowKey':a206_0x1aa692(0xd3),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x135)},{'name':'name','meowKey':a206_0x1aa692(0x128),'type':a206_0x1aa692(0xe6),'description':'Name','hidden':!![]},{'name':a206_0x1aa692(0xfe),'meowKey':a206_0x1aa692(0xfe),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x11e),'hidden':!![]},{'name':a206_0x1aa692(0x126),'meowKey':a206_0x1aa692(0x126),'type':'boolean','description':a206_0x1aa692(0xf6),'hidden':!![]},{'name':a206_0x1aa692(0x10b),'meowKey':'watch','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x11a),'hidden':!![]},{'name':a206_0x1aa692(0x146),'meowKey':'output','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfb),'hidden':!![]},{'name':'params','meowKey':a206_0x1aa692(0x127),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x105),'hidden':!![]},{'name':'datasetcode','meowKey':a206_0x1aa692(0x11b),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x101),'hidden':!![]},{'name':'all','meowKey':a206_0x1aa692(0x119),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x113),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a206_0x1aa692(0x13d),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12d),'hidden':!![]},{'name':'type','meowKey':a206_0x1aa692(0x114),'type':'string','description':a206_0x1aa692(0xed),'hidden':!![]},{'name':a206_0x1aa692(0x121),'meowKey':'file','type':'string','description':a206_0x1aa692(0x124),'hidden':!![]},{'name':a206_0x1aa692(0x129),'meowKey':a206_0x1aa692(0x129),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x104),'hidden':!![]},{'name':a206_0x1aa692(0xfd),'meowKey':'sqlName','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfa),'hidden':!![]},{'name':a206_0x1aa692(0xd9),'meowKey':a206_0x1aa692(0xd9),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfa),'hidden':!![]},{'name':a206_0x1aa692(0xf8),'meowKey':a206_0x1aa692(0x100),'type':'string','description':a206_0x1aa692(0x12e),'hidden':!![]},{'name':a206_0x1aa692(0xce),'meowKey':'dbid','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12e),'hidden':!![]},{'name':a206_0x1aa692(0xd8),'meowKey':a206_0x1aa692(0xd8),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x123),'hidden':!![]},{'name':a206_0x1aa692(0x13a),'meowKey':a206_0x1aa692(0xdc),'type':'string','description':'Description\x20file','hidden':!![]},{'name':a206_0x1aa692(0x103),'meowKey':a206_0x1aa692(0x103),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xf4),'hidden':!![]},{'name':a206_0x1aa692(0x12c),'meowKey':'pagesize','type':a206_0x1aa692(0xe6),'description':'Page\x20size','hidden':!![]},{'name':a206_0x1aa692(0xcd),'meowKey':a206_0x1aa692(0xcd),'type':a206_0x1aa692(0xe6),'description':'Keyword\x20filter','hidden':!![]},{'name':a206_0x1aa692(0xfc),'meowKey':a206_0x1aa692(0xfc),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x10d),'hidden':!![]},{'name':a206_0x1aa692(0xf2),'meowKey':a206_0x1aa692(0xf2),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x10a),'hidden':!![]},{'name':a206_0x1aa692(0xe0),'meowKey':a206_0x1aa692(0xe0),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x120),'hidden':!![]},{'name':a206_0x1aa692(0xe5),'meowKey':a206_0x1aa692(0xe5),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a206_0x1aa692(0xd2),'meowKey':'target','type':'string','description':a206_0x1aa692(0xe8),'hidden':!![]},{'name':a206_0x1aa692(0x109),'meowKey':'skipImports','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x142),'hidden':!![]},{'name':a206_0x1aa692(0x140),'meowKey':a206_0x1aa692(0x140),'type':'string','description':a206_0x1aa692(0xec),'hidden':!![]},{'name':a206_0x1aa692(0x133),'meowKey':'value','type':'string','description':a206_0x1aa692(0x13f),'hidden':!![]},{'name':'tags','meowKey':'tags','type':'string','description':a206_0x1aa692(0x122),'hidden':!![]},{'name':a206_0x1aa692(0xff),'meowKey':'stdin','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x138),'hidden':!![]},{'name':a206_0x1aa692(0x136),'meowKey':'fromEnv','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xd7),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a206_0x1aa692(0x13d),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a206_0x1aa692(0xe9),'meowKey':'force','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x111),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0xe4),'hidden':!![]},{'name':'remote','meowKey':a206_0x1aa692(0x10e),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0xd0),'hidden':!![]},{'name':a206_0x1aa692(0xda),'meowKey':'verbose','type':'boolean','description':a206_0x1aa692(0x143),'hidden':!![]},{'name':a206_0x1aa692(0x12b),'meowKey':a206_0x1aa692(0x11d),'type':'string','description':a206_0x1aa692(0xf0),'hidden':!![]},{'name':'label','meowKey':'label','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x11f),'hidden':!![]},{'name':a206_0x1aa692(0x14a),'meowKey':a206_0x1aa692(0x125),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x147),'hidden':!![]},{'name':a206_0x1aa692(0x115),'meowKey':'sort','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x131),'hidden':!![]},{'name':a206_0x1aa692(0xe3),'meowKey':'expectParentId','type':a206_0x1aa692(0xe6),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a206_0x1aa692(0xd5),'meowKey':a206_0x1aa692(0xcc),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x132),'hidden':!![]},{'name':a206_0x1aa692(0x12f),'meowKey':a206_0x1aa692(0x139),'type':'string','description':a206_0x1aa692(0xd1),'hidden':!![]},{'name':a206_0x1aa692(0x134),'meowKey':a206_0x1aa692(0xf5),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xdd),'hidden':!![]},{'name':'task-id','meowKey':a206_0x1aa692(0xeb),'type':'string','description':a206_0x1aa692(0xe2),'hidden':!![]},{'name':'operation-type','meowKey':a206_0x1aa692(0x112),'type':'string','description':a206_0x1aa692(0x13e),'hidden':!![]},{'name':'function-node','meowKey':a206_0x1aa692(0x110),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x13b),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a206_0x1aa692(0xef),'app',a206_0x1aa692(0x130),a206_0x1aa692(0x10c),'jq',a206_0x1aa692(0x116),a206_0x1aa692(0xcf),a206_0x1aa692(0xd6),'ci']);export function buildMeowFlags(){const _0x4c9b83=a206_0x1aa692;return Object[_0x4c9b83(0x102)](GLOBAL_FLAGS['map'](_0x4456fe=>[_0x4456fe[_0x4c9b83(0x13c)],{'type':_0x4456fe['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x9592b8=a207_0x18f0;function a207_0x18f0(_0x1030ce,_0x5ac67f){_0x1030ce=_0x1030ce-0x16b;const _0x43aa85=a207_0x43aa();let _0x18f0da=_0x43aa85[_0x1030ce];return _0x18f0da;}(function(_0x277b39,_0x41e7bd){const _0x40c7e3=a207_0x18f0,_0x45ecfa=_0x277b39();while(!![]){try{const _0x2ff2ab=-parseInt(_0x40c7e3(0x174))/0x1*(parseInt(_0x40c7e3(0x16e))/0x2)+parseInt(_0x40c7e3(0x171))/0x3+-parseInt(_0x40c7e3(0x16f))/0x4*(-parseInt(_0x40c7e3(0x173))/0x5)+-parseInt(_0x40c7e3(0x16d))/0x6*(-parseInt(_0x40c7e3(0x175))/0x7)+-parseInt(_0x40c7e3(0x16c))/0x8+parseInt(_0x40c7e3(0x16b))/0x9*(-parseInt(_0x40c7e3(0x177))/0xa)+parseInt(_0x40c7e3(0x176))/0xb;if(_0x2ff2ab===_0x41e7bd)break;else _0x45ecfa['push'](_0x45ecfa['shift']());}catch(_0x2d4231){_0x45ecfa['push'](_0x45ecfa['shift']());}}}(a207_0x43aa,0xd83a6));import{DEFAULT_API_DIR}from'../constant/paths.js';function a207_0x43aa(){const _0x348b03=['1103052KkCjFN','compress','6535IIPwIU','5835IYQmSx','5628644lyVtUn','26760811iETSWZ','1513210vfWPVn','36vfkIvP','9807160nbrelz','6prrukh','466yUhUVq','1444afwFyD','high-risk-write'];a207_0x43aa=function(){return _0x348b03;};return a207_0x43aa();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x9592b8(0x172),'locale':'en-US','riskLevel':a207_0x9592b8(0x170),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x9592b8(0x172);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a208_0x250c(){const _0x340a60=['133794LFjPwu','https://daily-runtime.lovrabet.com','3613047EKvUdj','/web-app/app/','https://api.lovrabet.com','1988038ELIIjn','10RAtYtl','6742060LxKRql','https://runtime.lovrabet.com','11XJLpIW','https://user-daily.lovrabet.com','632uDCSiJ','userDomain','1650268VqgUsP','https://user.lovrabet.com','9221934uYVdoP','1TSLoDe','trim','/app/','runtimeDomain','5671644VOuWTh','https://daily.lovrabet.com','https://daily-api.lovrabet.com','apiDomain','26qqvpeC','7JfrEgx'];a208_0x250c=function(){return _0x340a60;};return a208_0x250c();}const a208_0x216616=a208_0x236f;(function(_0x46bd1a,_0x44aa0e){const _0x25cf34=a208_0x236f,_0x32e3c6=_0x46bd1a();while(!![]){try{const _0x594828=-parseInt(_0x25cf34(0x92))/0x1*(parseInt(_0x25cf34(0x87))/0x2)+parseInt(_0x25cf34(0x84))/0x3+parseInt(_0x25cf34(0x8f))/0x4*(parseInt(_0x25cf34(0x88))/0x5)+-parseInt(_0x25cf34(0x91))/0x6*(parseInt(_0x25cf34(0x81))/0x7)+parseInt(_0x25cf34(0x8d))/0x8*(parseInt(_0x25cf34(0x82))/0x9)+-parseInt(_0x25cf34(0x89))/0xa*(parseInt(_0x25cf34(0x8b))/0xb)+-parseInt(_0x25cf34(0x96))/0xc*(-parseInt(_0x25cf34(0x80))/0xd);if(_0x594828===_0x44aa0e)break;else _0x32e3c6['push'](_0x32e3c6['shift']());}catch(_0x1123f3){_0x32e3c6['push'](_0x32e3c6['shift']());}}}(a208_0x250c,0xe6755));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x59106e){const _0x95d4a7=a208_0x236f;customApiDomain=_0x59106e?.[_0x95d4a7(0x99)],customUserDomain=_0x59106e?.[_0x95d4a7(0x8e)],customRuntimeDomain=_0x59106e?.[_0x95d4a7(0x95)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x216616(0x90):a208_0x216616(0x8c));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x216616(0x86):a208_0x216616(0x98));function a208_0x236f(_0x34bac0,_0x339976){_0x34bac0=_0x34bac0-0x80;const _0x250c30=a208_0x250c();let _0x236fdc=_0x250c30[_0x34bac0];return _0x236fdc;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x216616(0x8a):a208_0x216616(0x83));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a208_0x216616(0x97);export const getAppBaseUrl=_0x443557=>{const _0x56aeed=a208_0x216616,_0xbe632d=encodeURIComponent(_0x443557[_0x56aeed(0x93)]());return isProduction(getEnv())?getAppDomain()+_0x56aeed(0x94)+_0xbe632d:getAppDomain()+_0x56aeed(0x85)+_0xbe632d;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x4852cb=a209_0x3cc3;(function(_0x2b7d08,_0x469791){const _0x445f3f=a209_0x3cc3,_0x29293c=_0x2b7d08();while(!![]){try{const _0x54cb3a=-parseInt(_0x445f3f(0x16e))/0x1*(-parseInt(_0x445f3f(0x16a))/0x2)+parseInt(_0x445f3f(0x16f))/0x3+-parseInt(_0x445f3f(0x164))/0x4+parseInt(_0x445f3f(0x170))/0x5*(parseInt(_0x445f3f(0x16c))/0x6)+parseInt(_0x445f3f(0x166))/0x7+parseInt(_0x445f3f(0x169))/0x8*(-parseInt(_0x445f3f(0x16d))/0x9)+-parseInt(_0x445f3f(0x162))/0xa*(parseInt(_0x445f3f(0x16b))/0xb);if(_0x54cb3a===_0x469791)break;else _0x29293c['push'](_0x29293c['shift']());}catch(_0x45358c){_0x29293c['push'](_0x29293c['shift']());}}}(a209_0x1e80,0x5f28e));function a209_0x1e80(){const _0x11abab=['daily','16uAfwgA','298DVotlJ','187TRHLUK','1871274OJNJVa','1600074ohxkCw','4679Iczfly','1759380TRlQOd','10pQJgqB','870850tGDEyS','production','1362540pAyKAo','dev','4613259hMWasN','online'];a209_0x1e80=function(){return _0x11abab;};return a209_0x1e80();}export const RABETBASE_ENV_VALUES=['production',a209_0x4852cb(0x168)];export function normalizeEnv(_0x55c0e1){const _0x2027ef=a209_0x4852cb;return _0x55c0e1===_0x2027ef(0x167)?_0x2027ef(0x163):_0x55c0e1;}function a209_0x3cc3(_0x23d39a,_0x471e78){_0x23d39a=_0x23d39a-0x162;const _0x1e8056=a209_0x1e80();let _0x3cc3e6=_0x1e8056[_0x23d39a];return _0x3cc3e6;}export function isProduction(_0x2ba4f0){const _0x498d5d=a209_0x4852cb;return normalizeEnv(_0x2ba4f0)===_0x498d5d(0x163);}export function isDaily(_0x5e6bcb){const _0x4b7629=a209_0x4852cb;return normalizeEnv(_0x5e6bcb)===_0x4b7629(0x168);}export function isDev(_0x4ac15e){const _0xb910e0=a209_0x4852cb,_0x5a679b=normalizeEnv(_0x4ac15e);return _0x5a679b==='development'||_0x5a679b===_0xb910e0(0x165);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a209_0x4852cb(0x163));export function getEnv(){return env;}export function initEnv(_0x2a7d93){env=normalizeEnv(_0x2a7d93);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0xb085(_0x2e5e4e,_0x1bdb8a){_0x2e5e4e=_0x2e5e4e-0x191;const _0x58dedf=a210_0x58de();let _0xb085e=_0x58dedf[_0x2e5e4e];return _0xb085e;}function a210_0x58de(){const _0x3a6de3=['compress','540294mbjQnt','80970LgGMmO','8BprxnF','14775oxMGEL','143FnsPCn','json','2557608Acsvfg','1010433DbuHRg','pretty','630OgDhBj','25txgUNz','24JbwuXJ','6870206tppKRM','1053544sSDREl'];a210_0x58de=function(){return _0x3a6de3;};return a210_0x58de();}const a210_0x3bc5dc=a210_0xb085;(function(_0x4ee1f9,_0x11b74a){const _0x685af2=a210_0xb085,_0x496ab0=_0x4ee1f9();while(!![]){try{const _0x5d569e=parseInt(_0x685af2(0x19d))/0x1+parseInt(_0x685af2(0x194))/0x2+-parseInt(_0x685af2(0x199))/0x3*(parseInt(_0x685af2(0x192))/0x4)+-parseInt(_0x685af2(0x191))/0x5*(-parseInt(_0x685af2(0x196))/0x6)+-parseInt(_0x685af2(0x193))/0x7*(-parseInt(_0x685af2(0x198))/0x8)+-parseInt(_0x685af2(0x19f))/0x9*(-parseInt(_0x685af2(0x197))/0xa)+parseInt(_0x685af2(0x19a))/0xb*(-parseInt(_0x685af2(0x19c))/0xc);if(_0x5d569e===_0x11b74a)break;else _0x496ab0['push'](_0x496ab0['shift']());}catch(_0x3278ed){_0x496ab0['push'](_0x496ab0['shift']());}}}(a210_0x58de,0xb38ae));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a210_0x3bc5dc(0x19b),a210_0x3bc5dc(0x19e),a210_0x3bc5dc(0x195)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a211_0x87e9(_0x1f0b60,_0xdb0441){_0x1f0b60=_0x1f0b60-0xdf;const _0xe4cc2=a211_0xe4cc();let _0x87e9f6=_0xe4cc2[_0x1f0b60];return _0x87e9f6;}const a211_0x573c8e=a211_0x87e9;function a211_0xe4cc(){const _0x47000d=['1313921MjYoeN','603940yMCqJE','517FTbOTd','356EjGuQd','./src/api','912085zuBXUN','6RyblCp','13621894upiCFz','90GgwHUr','7269tquwQU','2042BwHXgd','6937944RQmrTl'];a211_0xe4cc=function(){return _0x47000d;};return a211_0xe4cc();}(function(_0xbbbf12,_0x55e8a7){const _0xb8e9c6=a211_0x87e9,_0x2be6ae=_0xbbbf12();while(!![]){try{const _0x59ed21=-parseInt(_0xb8e9c6(0xe1))/0x1*(-parseInt(_0xb8e9c6(0xe9))/0x2)+-parseInt(_0xb8e9c6(0xe8))/0x3*(-parseInt(_0xb8e9c6(0xe2))/0x4)+-parseInt(_0xb8e9c6(0xe4))/0x5+parseInt(_0xb8e9c6(0xe5))/0x6*(parseInt(_0xb8e9c6(0xdf))/0x7)+-parseInt(_0xb8e9c6(0xea))/0x8+-parseInt(_0xb8e9c6(0xe7))/0x9*(parseInt(_0xb8e9c6(0xe0))/0xa)+parseInt(_0xb8e9c6(0xe6))/0xb;if(_0x59ed21===_0x55e8a7)break;else _0x2be6ae['push'](_0x2be6ae['shift']());}catch(_0x2c54ff){_0x2be6ae['push'](_0x2be6ae['shift']());}}}(a211_0xe4cc,0x7df79));export const DEFAULT_API_DIR=a211_0x573c8e(0xe3);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a212_0x3ab2(_0x212829,_0x25c26e){_0x212829=_0x212829-0x177;const _0x52a2aa=a212_0x52a2();let _0x3ab280=_0x52a2aa[_0x212829];return _0x3ab280;}const a212_0x7005a6=a212_0x3ab2;(function(_0x46eb20,_0x17e9bd){const _0x4003e2=a212_0x3ab2,_0x108cbf=_0x46eb20();while(!![]){try{const _0x2fb8fb=parseInt(_0x4003e2(0x17b))/0x1+-parseInt(_0x4003e2(0x179))/0x2+parseInt(_0x4003e2(0x182))/0x3+parseInt(_0x4003e2(0x177))/0x4+parseInt(_0x4003e2(0x17d))/0x5+parseInt(_0x4003e2(0x180))/0x6*(parseInt(_0x4003e2(0x17a))/0x7)+parseInt(_0x4003e2(0x181))/0x8*(-parseInt(_0x4003e2(0x17c))/0x9);if(_0x2fb8fb===_0x17e9bd)break;else _0x108cbf['push'](_0x108cbf['shift']());}catch(_0xa8b181){_0x108cbf['push'](_0x108cbf['shift']());}}}(a212_0x52a2,0xf3a42));function a212_0x52a2(){const _0x515cbd=['read','high-risk-write','6DOeKkV','45259904nBMgkP','5662362ldvaPq','6690404EjlOLC','write','1517128eDNzgt','11074497WoTOqs','1520844MBRvfu','9sLpOPh','3755180lRfGZh'];a212_0x52a2=function(){return _0x515cbd;};return a212_0x52a2();}export const RISK_LEVEL_VALUES=[a212_0x7005a6(0x17e),a212_0x7005a6(0x178),a212_0x7005a6(0x17f)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3598ed,_0x544a25){const _0x25e224=a213_0x38ba,_0x1d8e30=_0x3598ed();while(!![]){try{const _0x2428ff=parseInt(_0x25e224(0xb5))/0x1*(parseInt(_0x25e224(0xb1))/0x2)+-parseInt(_0x25e224(0xb2))/0x3*(parseInt(_0x25e224(0x9b))/0x4)+-parseInt(_0x25e224(0xba))/0x5*(-parseInt(_0x25e224(0xa9))/0x6)+-parseInt(_0x25e224(0xb7))/0x7*(-parseInt(_0x25e224(0xa5))/0x8)+parseInt(_0x25e224(0xa1))/0x9+parseInt(_0x25e224(0x9e))/0xa+-parseInt(_0x25e224(0xac))/0xb;if(_0x2428ff===_0x544a25)break;else _0x1d8e30['push'](_0x1d8e30['shift']());}catch(_0x126270){_0x1d8e30['push'](_0x1d8e30['shift']());}}}(a213_0x209a,0x2ba2d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a213_0x38ba(_0x408095,_0x5e22d1){_0x408095=_0x408095-0x95;const _0x209a67=a213_0x209a();let _0x38bacf=_0x209a67[_0x408095];return _0x38bacf;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x1e8055){const _0x3ea463=a213_0x38ba;return typeof _0x1e8055===_0x3ea463(0xa4)&&_0x1e8055['trim']()?_0x1e8055['trim']():undefined;}function a213_0x209a(){const _0x50e823=['defaultApp','373680RDrdMm','keys','object','562869RqOWAx','prototype','trim','string','808hfGszf','format','COOKIE','hasOwnProperty','1056COrtxf','globalConfig','inherit','4765508KKLsPW','apps','projectConfig','read','call','2mWnOuP','477Ezhopn','maxRisk','ACCESS_KEY','347473HlkLwT','production','2471FCUgZR','FORMAT','APP','4015dpVZHP','cookie','accessKey','VERBOSE','app','appcode','apiDir','true','locale','MAX_RISK','PAGE_SIZE','riskLevel','daily','pageSize','env','length','312yVbnOJ','high-risk-write'];a213_0x209a=function(){return _0x50e823;};return a213_0x209a();}function appProfiles(_0x1178bc){const _0x3fe63e=a213_0x38ba;return _0x1178bc['apps']&&typeof _0x1178bc['apps']===_0x3fe63e(0xa0)?_0x1178bc[_0x3fe63e(0xad)]:{};}function resolveDefaultAppName(_0x480f05){const _0x58d57d=a213_0x38ba,_0x37572d=stringConfigValue(_0x480f05[_0x58d57d(0x9d)]);if(_0x37572d)return _0x37572d;return Object[_0x58d57d(0x9f)](appProfiles(_0x480f05))[0x0];}function resolveTopLevelAppCode(_0x347572){const _0x3248c7=a213_0x38ba;return stringConfigValue(_0x347572[_0x3248c7(0xbf)])||stringConfigValue(_0x347572[_0x3248c7(0xbe)]);}function normalizeRiskCeiling(_0x244bbd){const _0x98493=a213_0x38ba;if(_0x244bbd===undefined||_0x244bbd===null)return undefined;if(_0x244bbd==='read'||_0x244bbd==='write'||_0x244bbd===_0x98493(0x9c))return _0x244bbd;return _0x98493(0xaf);}function resolveRiskCeiling(..._0x29721c){const _0x4c6b3b=a213_0x38ba;let _0x18d4e3=DEFAULT_CONFIG_VALUES[_0x4c6b3b(0x96)];for(const _0x309105 of _0x29721c){const _0x371b79=normalizeRiskCeiling(_0x309105);_0x371b79&&riskLevelOrder(_0x371b79)<riskLevelOrder(_0x18d4e3)&&(_0x18d4e3=_0x371b79);}return _0x18d4e3;}function configuredRiskCeilings(_0x390ba7){const _0x46b822=a213_0x38ba;return[...Object[_0x46b822(0xa2)][_0x46b822(0xa8)][_0x46b822(0xb0)](_0x390ba7,_0x46b822(0xb3))?[_0x390ba7['maxRisk']]:[],...Object[_0x46b822(0xa2)]['hasOwnProperty'][_0x46b822(0xb0)](_0x390ba7,_0x46b822(0x96))?[_0x390ba7[_0x46b822(0x96)]]:[]];}export function resolveAppConfig({raw:_0x5f27b9,flags:_0x31bb25,layers:_0x3cf727,readEnv:_0x151bba}){const _0x1bca36=a213_0x38ba,_0x1558ec=_0x3cf727?.[_0x1bca36(0xae)]??{},_0xeebf42=_0x3cf727?.[_0x1bca36(0xaa)]??{},_0x5e3afd=Object[_0x1bca36(0x9f)](_0x1558ec)[_0x1bca36(0x9a)]>0x0,_0x1724da=!_0x5e3afd||_0x1558ec[_0x1bca36(0xab)]===!![],_0x5e1865=_0x5e3afd?resolveDefaultAppName(_0x1558ec):undefined,_0x577dd2=_0x1724da?resolveDefaultAppName(_0xeebf42):undefined,_0x4163a3=stringConfigValue(_0x31bb25['app']),_0x4f6e28=_0x151bba(_0x1bca36(0xb9)),_0x12e1fe={};if(_0x5f27b9[_0x1bca36(0xad)]&&typeof _0x5f27b9[_0x1bca36(0xad)]===_0x1bca36(0xa0))for(const [_0x1b55d3,_0x40d36d]of Object['entries'](_0x5f27b9['apps'])){_0x40d36d&&typeof _0x40d36d===_0x1bca36(0xa0)&&_0x40d36d[_0x1bca36(0xbf)]&&(_0x12e1fe[_0x1b55d3]=_0x40d36d);}const _0x34aaef=_0x5f27b9[_0x1bca36(0x9d)]||undefined,_0x5b936a=Object[_0x1bca36(0x9f)](_0x12e1fe)[_0x1bca36(0x9a)]>0x0,_0x5f03c3=_0x4163a3||_0x5e1865||_0x4f6e28||_0x577dd2||_0x34aaef||undefined,_0x330191=stringConfigValue(_0x31bb25['appcode']),_0x131b45=_0x330191?Object['entries'](_0x12e1fe)['find'](([,_0x59a7e3])=>_0x59a7e3?.[_0x1bca36(0xbf)]===_0x330191):undefined,_0x5402de=_0x131b45?.[0x0],_0x28477e=_0x131b45?.[0x1],_0xc976e5=_0x330191?_0x5402de:_0x5f03c3;let _0x5936fe=_0xc976e5&&_0x12e1fe[_0xc976e5]?_0x12e1fe[_0xc976e5]:undefined;_0x330191&&_0x28477e&&(_0x5936fe=_0x28477e);const _0x442cb1=_0x330191?_0x28477e??_0x5936fe:_0x5936fe,_0x86cd76=!_0x4163a3&&!_0x5e1865&&_0x4f6e28&&_0xc976e5===_0x4f6e28,_0x2ae738=_0x4163a3||(_0x86cd76?_0x4f6e28:undefined)||(_0x330191?_0x5402de:undefined),_0x42b204=_0x442cb1?.[_0x1bca36(0xbf)],_0x17cd0f=_0x5e3afd?resolveTopLevelAppCode(_0x1558ec):undefined,_0x474e51=_0x1724da?resolveTopLevelAppCode(_0xeebf42):undefined,_0x153d52=_0x4163a3||_0x5e1865?_0x42b204:undefined,_0xf4f7aa=!_0x4163a3&&!_0x5e1865?_0x42b204:undefined,_0x3f8c7a=_0x330191||_0x153d52||_0x17cd0f||_0xf4f7aa||_0x474e51||undefined,_0x5686c5=_0x5e3afd?stringConfigValue(_0x1558ec[_0x1bca36(0x99)]):undefined,_0x2947b1=_0x1724da?stringConfigValue(_0xeebf42[_0x1bca36(0x99)]):undefined,_0x306269=_0x31bb25[_0x1bca36(0x99)]||_0x442cb1?.['env']||_0x5686c5||_0x151bba('ENV')||_0x2947b1||_0x5f27b9[_0x1bca36(0x99)]||DEFAULT_CONFIG_VALUES[_0x1bca36(0x99)],_0x3e73ce=_0x442cb1?.[_0x1bca36(0xc2)]||_0x5f27b9[_0x1bca36(0xc2)]||DEFAULT_CONFIG_VALUES[_0x1bca36(0xc2)],_0x2a9516=_0x151bba(_0x1bca36(0xa7))||_0x442cb1?.[_0x1bca36(0xbb)]||_0x5f27b9[_0x1bca36(0xbb)]||undefined,_0x317dbd=_0x151bba(_0x1bca36(0xb4))||_0x442cb1?.[_0x1bca36(0xbc)]||_0x5f27b9[_0x1bca36(0xbc)]||undefined,_0x2dd0bb=_0x31bb25[_0x1bca36(0xa6)]||_0x151bba(_0x1bca36(0xb8))||_0x442cb1?.['format']||_0x5f27b9['format'],_0x12acb1=normalizeLegacyOutputFormat(_0x2dd0bb),_0x17766e=_0x151bba(_0x1bca36(0x95))||_0x442cb1?.[_0x1bca36(0x98)]||_0x5f27b9[_0x1bca36(0x98)],_0x359b12=_0x17766e?Number(_0x17766e)||undefined:undefined,_0x83781a=_0x3cf727?[...configuredRiskCeilings(_0x3cf727[_0x1bca36(0xaa)]),...configuredRiskCeilings(_0x3cf727['projectConfig'])]:configuredRiskCeilings(_0x5f27b9),_0x1c07a3=resolveRiskCeiling(..._0x83781a,_0x442cb1?.[_0x1bca36(0x96)],_0x151bba('RISK_LEVEL'),_0x151bba(_0x1bca36(0xc3))),_0xa7329a=_0x151bba(_0x1bca36(0xbd)),_0x3d1159=_0xa7329a==='1'||_0xa7329a===_0x1bca36(0xc1),_0x2f6edc=_0x442cb1?.[_0x1bca36(0xc0)]||_0x5f27b9[_0x1bca36(0xc0)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x30247d=isDaily(normalizeEnv(String(_0x306269)))?_0x1bca36(0x97):_0x1bca36(0xb6);return{'appCode':typeof _0x3f8c7a==='string'&&_0x3f8c7a[_0x1bca36(0xa3)]()?_0x3f8c7a[_0x1bca36(0xa3)]():undefined,'env':_0x30247d,'locale':_0x3e73ce,'cookie':_0x2a9516,'accessKey':_0x317dbd,'format':_0x12acb1,'pageSize':_0x359b12,'riskLevel':_0x1c07a3,'verbose':_0x3d1159,'apiDir':_0x2f6edc,'apps':_0x12e1fe,'defaultApp':_0x34aaef,'currentApp':_0x5b936a?_0xc976e5:undefined,'explicitAppName':_0x2ae738};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bf764,_0x412c84){const _0x1feeda=a214_0x2ecf,_0x4290f4=_0x5bf764();while(!![]){try{const _0xe29aea=parseInt(_0x1feeda(0x1b0))/0x1+parseInt(_0x1feeda(0x1b9))/0x2*(parseInt(_0x1feeda(0x1b2))/0x3)+parseInt(_0x1feeda(0x1b6))/0x4*(-parseInt(_0x1feeda(0x1b8))/0x5)+-parseInt(_0x1feeda(0x1b4))/0x6*(-parseInt(_0x1feeda(0x1b5))/0x7)+-parseInt(_0x1feeda(0x1af))/0x8*(-parseInt(_0x1feeda(0x1ac))/0x9)+parseInt(_0x1feeda(0x1b1))/0xa+parseInt(_0x1feeda(0x1b7))/0xb*(-parseInt(_0x1feeda(0x1ad))/0xc);if(_0xe29aea===_0x412c84)break;else _0x4290f4['push'](_0x4290f4['shift']());}catch(_0x135903){_0x4290f4['push'](_0x4290f4['shift']());}}}(a214_0x5bd2,0x35424));import{getIsSessionValid}from'../auth/is-session-valid.js';function a214_0x5bd2(){const _0x2cc428=['../auth/get-cookie.js','2260476vnqhdT','3363204qmyxRt','authRequired','8yTLTAc','262185kijGKC','4104290vlUDQB','3ZnnxbL','cookie','6HrdxsV','2765210vXzecS','44188attRTh','44iGBgah','75lUecct','372226BRmRax'];a214_0x5bd2=function(){return _0x2cc428;};return a214_0x5bd2();}function a214_0x2ecf(_0x41111d,_0x586889){_0x41111d=_0x41111d-0x1ab;const _0x5bd25e=a214_0x5bd2();let _0x2ecfdc=_0x5bd25e[_0x41111d];return _0x2ecfdc;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x546836){const _0x5b987e=a214_0x2ecf,{getCookie:_0x3d3293}=await import(_0x5b987e(0x1ab)),_0x5307c4=_0x546836[_0x5b987e(0x1b3)]||_0x3d3293(),_0x20dfd0=_0x5307c4?await getIsSessionValid():![];return{'cookie':_0x5307c4,'isLoggedIn':_0x20dfd0,async 'getOrLogin'(){const _0x2ebed9=_0x5b987e;if(_0x5307c4&&_0x20dfd0)return _0x5307c4;throw CliErrors[_0x2ebed9(0x1ae)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a215_0x36861c=a215_0x32cf;(function(_0x50a496,_0x49016e){const _0x3a664c=a215_0x32cf,_0x5ebde3=_0x50a496();while(!![]){try{const _0x5975a6=-parseInt(_0x3a664c(0x9d))/0x1+-parseInt(_0x3a664c(0xbc))/0x2*(-parseInt(_0x3a664c(0xa2))/0x3)+-parseInt(_0x3a664c(0x9a))/0x4*(parseInt(_0x3a664c(0xb7))/0x5)+parseInt(_0x3a664c(0x9e))/0x6+parseInt(_0x3a664c(0x93))/0x7*(parseInt(_0x3a664c(0xb2))/0x8)+-parseInt(_0x3a664c(0xb9))/0x9*(-parseInt(_0x3a664c(0x8a))/0xa)+parseInt(_0x3a664c(0x97))/0xb*(parseInt(_0x3a664c(0xa1))/0xc);if(_0x5975a6===_0x49016e)break;else _0x5ebde3['push'](_0x5ebde3['shift']());}catch(_0x2ea776){_0x5ebde3['push'](_0x5ebde3['shift']());}}}(a215_0x8b3a,0xf1421));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x36861c(0x9b);export const CONFIG_NAMES=['.rabetbase.json',a215_0x36861c(0xb8),a215_0x36861c(0x91)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a215_0x36861c(0xa7)](_0x5a9604=>_0x5a9604!==NEW_CONFIG_NAME);function a215_0x8b3a(){const _0x53b9b1=['cwd','10157qJRBjb','string','parse','.tmp','1110934XNQAoA','error','data','24woTWcG','.rabetbase.json','warn','1424972kRzVry','131034IutIOg','apiDir','stringify','108qHYiBD','3MbjCgn','format','keys','utf8','Global','filter','message','locale','env','apps','appcode','riskLevel','accessKey','project','pageSize','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','3592EfhOqZ','config','object','empty','length','965155OZNiSc','.lovrabet.json','2799450GwZjxL','Project','cookie','2111834qfHlwL','trim','silent','30SHBLza','migrated','defaultApp','app','missing','status','inherit','.lovrabetrc'];a215_0x8b3a=function(){return _0x53b9b1;};return a215_0x8b3a();}const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3d97f4){for(const _0x3c4031 of CONFIG_NAMES){const _0x40c028=resolve(_0x3d97f4,_0x3c4031);if(existsSync(_0x40c028))return _0x40c028;}return undefined;}export function findProjectRootDirectory(_0x16fe9a=process[a215_0x36861c(0x92)]()){let _0x4d14d2=resolve(_0x16fe9a);const {root:_0x499c6d}=parse(_0x4d14d2),_0x2cc7cf=homedir();while(!![]){if(resolveConfigPath(_0x4d14d2)){if(_0x4d14d2===_0x2cc7cf)break;return _0x4d14d2;}if(_0x4d14d2===_0x499c6d||_0x4d14d2===_0x2cc7cf)break;const _0x52f972=dirname(_0x4d14d2);if(_0x52f972===_0x4d14d2)break;_0x4d14d2=_0x52f972;}return resolve(_0x16fe9a);}export function getProjectConfigPath(){const _0x275e76=a215_0x36861c;return resolveConfigPath(process[_0x275e76(0x92)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a215_0x32cf(_0x55f0fb,_0x281fa7){_0x55f0fb=_0x55f0fb-0x88;const _0x8b3a0d=a215_0x8b3a();let _0x32cf24=_0x8b3a0d[_0x55f0fb];return _0x32cf24;}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x176a01){const _0x11bb20=a215_0x36861c;if(!existsSync(_0x176a01))return{'status':_0x11bb20(0x8e)};try{const _0xe4f5b7=readFileSync(_0x176a01,{'encoding':_0x11bb20(0xa5)});if(!_0xe4f5b7?.['trim']())return{'status':'empty'};const _0x1b581e=JSON[_0x11bb20(0x95)](_0xe4f5b7);return{'status':'ok','data':_0x1b581e};}catch(_0x8b90cd){return{'status':_0x11bb20(0x98),'message':_0x8b90cd instanceof Error?_0x8b90cd[_0x11bb20(0xa8)]:String(_0x8b90cd)};}}function parseCliConfigJsonFile(_0x5d7a7e,_0x38af4d,_0x2aa855){const _0xf85e9f=a215_0x36861c,_0x48de45=inspectCliConfigJsonFile(_0x5d7a7e);if(_0x48de45[_0xf85e9f(0x8f)]===_0xf85e9f(0x8e)||_0x48de45[_0xf85e9f(0x8f)]===_0xf85e9f(0xb5))return{};if(_0x48de45[_0xf85e9f(0x8f)]==='ok')return _0x48de45[_0xf85e9f(0x99)];return _0x38af4d===_0xf85e9f(0x9c)&&_0x2aa855&&console[_0xf85e9f(0x98)](CLI_BIN_NAME+':\x20'+_0x2aa855+_0xf85e9f(0xb1)+_0x5d7a7e+'\x0a\x20\x20'+_0x48de45[_0xf85e9f(0xa8)]),{};}function normalizeLegacyConfigShape(_0x383fc6){const _0x24c7d4=a215_0x36861c;if(!_0x383fc6||typeof _0x383fc6!=='object')return{'config':{},'migrated':![]};const _0x59864f={..._0x383fc6},_0x3b4648=_0x59864f[_0x24c7d4(0xab)]&&typeof _0x59864f[_0x24c7d4(0xab)]===_0x24c7d4(0xb4)?{..._0x59864f[_0x24c7d4(0xab)]}:{},_0xedc5dd=Object[_0x24c7d4(0xa4)](_0x3b4648)[_0x24c7d4(0xb6)],_0x1732d7=_0x59864f[_0x24c7d4(0xac)]||_0x59864f[_0x24c7d4(0x8d)];let _0x20164a=![];if(_0x1732d7&&_0xedc5dd===0x0){const _0x5bdffa=typeof _0x59864f[_0x24c7d4(0x8c)]===_0x24c7d4(0x94)&&_0x59864f[_0x24c7d4(0x8c)][_0x24c7d4(0x88)]()?_0x59864f[_0x24c7d4(0x8c)]:String(_0x1732d7)[_0x24c7d4(0x88)]();_0x3b4648[_0x5bdffa]={'appcode':String(_0x1732d7)['trim'](),..._0x59864f['env']!=null?{'env':_0x59864f[_0x24c7d4(0xaa)]}:{},..._0x59864f['apiDir']!=null?{'apiDir':_0x59864f[_0x24c7d4(0x9f)]}:{},..._0x59864f['cookie']!=null?{'cookie':_0x59864f[_0x24c7d4(0xbb)]}:{},..._0x59864f[_0x24c7d4(0xae)]!=null?{'accessKey':_0x59864f[_0x24c7d4(0xae)]}:{},..._0x59864f[_0x24c7d4(0xa3)]!=null?{'format':_0x59864f['format']}:{},..._0x59864f[_0x24c7d4(0xb0)]!=null?{'pageSize':_0x59864f[_0x24c7d4(0xb0)]}:{},..._0x59864f[_0x24c7d4(0xad)]!=null?{'riskLevel':_0x59864f['riskLevel']}:{},..._0x59864f[_0x24c7d4(0xa9)]!=null?{'locale':_0x59864f['locale']}:{}},_0x59864f['apps']=_0x3b4648;if(!_0x59864f[_0x24c7d4(0x8c)])_0x59864f[_0x24c7d4(0x8c)]=_0x5bdffa;_0x20164a=!![];}return(_0x24c7d4(0xac)in _0x59864f||_0x24c7d4(0x8d)in _0x59864f)&&(delete _0x59864f[_0x24c7d4(0xac)],delete _0x59864f[_0x24c7d4(0x8d)],_0x20164a=!![]),{'config':_0x59864f,'migrated':_0x20164a};}function writeNormalizedConfigIfNeeded(_0x291589,_0x464925){const _0xf91e3c=a215_0x36861c,_0x1f83a6=JSON[_0xf91e3c(0xa0)](_0x464925,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x291589)===_0x1f83a6)return;writeConfigFile(_0x291589,_0x464925),normalizedWriteCache['set'](_0x291589,_0x1f83a6);}function parseAndNormalizeConfig(_0x356762,_0x187a5c,_0x64eac){const _0x1ee26d=a215_0x36861c,_0x338fdc=parseCliConfigJsonFile(_0x356762,_0x187a5c,_0x64eac),_0xad1823=normalizeLegacyConfigShape(_0x338fdc);if(_0xad1823[_0x1ee26d(0x8b)])try{writeNormalizedConfigIfNeeded(_0x356762,_0xad1823[_0x1ee26d(0xb3)]);}catch{}return _0xad1823['config'];}export function loadRawConfigLayers(_0x5d9128){const _0x592e39=a215_0x36861c;let _0x16074b={},_0x38294c={};const _0x494db7=resolveConfigPath(homedir());_0x494db7&&(_0x16074b=parseAndNormalizeConfig(_0x494db7,'warn',_0x592e39(0xa6)));const _0x2be44d=_0x5d9128??findProjectRootDirectory(),_0x5ae4c7=resolveConfigPath(_0x2be44d);return _0x5ae4c7&&(_0x38294c=parseAndNormalizeConfig(_0x5ae4c7,_0x592e39(0x9c),_0x592e39(0xba))),{'globalPath':_0x494db7,'projectPath':_0x5ae4c7,'globalConfig':_0x16074b,'projectConfig':_0x38294c};}const INHERIT_WHITELIST=[a215_0x36861c(0xbb),a215_0x36861c(0xae),a215_0x36861c(0xa9),'format',a215_0x36861c(0xad),'pageSize'];export function mergeRawConfigLayers(_0x502bb0){const _0x5650f1=a215_0x36861c,{globalConfig:_0x9088b9,projectConfig:_0x2851b1}=_0x502bb0,_0x5874e7=Object[_0x5650f1(0xa4)](_0x2851b1)[_0x5650f1(0xb6)]>0x0;if(!_0x5874e7)return mergeGlobalOnly(_0x9088b9);if(_0x2851b1[_0x5650f1(0x90)]===!![])return mergeFullInherit(_0x9088b9,_0x2851b1);if(_0x2851b1['inherit']===![])return mergeIsolated(_0x2851b1);return mergeProjectFirst(_0x9088b9,_0x2851b1);}function mergeGlobalOnly(_0x45987f){const _0x5cfe1d=a215_0x36861c,_0x7466b0={..._0x45987f},_0x19b5fd=_0x45987f[_0x5cfe1d(0xab)]&&typeof _0x45987f[_0x5cfe1d(0xab)]==='object'?_0x45987f['apps']:{};if(Object[_0x5cfe1d(0xa4)](_0x19b5fd)[_0x5cfe1d(0xb6)]>0x0)_0x7466b0[_0x5cfe1d(0xab)]=_0x19b5fd;if(_0x45987f[_0x5cfe1d(0x8c)])_0x7466b0[_0x5cfe1d(0x8c)]=_0x45987f[_0x5cfe1d(0x8c)];else{const _0x5ce258=Object[_0x5cfe1d(0xa4)](_0x19b5fd);if(_0x5ce258['length']>0x0)_0x7466b0[_0x5cfe1d(0x8c)]=_0x5ce258[0x0];}return _0x7466b0;}function mergeIsolated(_0x446858){const _0x483459=a215_0x36861c,_0x3b627d={..._0x446858};delete _0x3b627d[_0x483459(0x90)];const _0x2a8a80=_0x446858['apps']&&typeof _0x446858['apps']===_0x483459(0xb4)?_0x446858[_0x483459(0xab)]:{};Object[_0x483459(0xa4)](_0x2a8a80)[_0x483459(0xb6)]>0x0?_0x3b627d[_0x483459(0xab)]=_0x2a8a80:delete _0x3b627d[_0x483459(0xab)];if(_0x483459(0x8c)in _0x446858)_0x3b627d[_0x483459(0x8c)]=_0x446858[_0x483459(0x8c)];else Object[_0x483459(0xa4)](_0x2a8a80)[_0x483459(0xb6)]>0x0?_0x3b627d[_0x483459(0x8c)]=Object['keys'](_0x2a8a80)[0x0]:delete _0x3b627d[_0x483459(0x8c)];return _0x3b627d;}function mergeProjectFirst(_0x2e34fd,_0x21b233){const _0x207e35=a215_0x36861c,_0x7eddee={..._0x21b233};delete _0x7eddee[_0x207e35(0x90)];for(const _0x568159 of INHERIT_WHITELIST){!(_0x568159 in _0x7eddee)&&_0x568159 in _0x2e34fd&&(_0x7eddee[_0x568159]=_0x2e34fd[_0x568159]);}const _0x3cb46e=_0x21b233[_0x207e35(0xab)]&&typeof _0x21b233[_0x207e35(0xab)]===_0x207e35(0xb4)?_0x21b233['apps']:{};Object['keys'](_0x3cb46e)[_0x207e35(0xb6)]>0x0?_0x7eddee['apps']=_0x3cb46e:delete _0x7eddee['apps'];if(_0x207e35(0x8c)in _0x21b233)_0x7eddee[_0x207e35(0x8c)]=_0x21b233[_0x207e35(0x8c)];else Object[_0x207e35(0xa4)](_0x3cb46e)[_0x207e35(0xb6)]>0x0?_0x7eddee[_0x207e35(0x8c)]=Object[_0x207e35(0xa4)](_0x3cb46e)[0x0]:delete _0x7eddee['defaultApp'];return _0x7eddee;}function mergeFullInherit(_0x585208,_0x423c5c){const _0x1713d6=a215_0x36861c,_0x2e7203=_0x585208[_0x1713d6(0xab)]&&typeof _0x585208[_0x1713d6(0xab)]===_0x1713d6(0xb4)?_0x585208[_0x1713d6(0xab)]:{},_0x5db877=_0x423c5c[_0x1713d6(0xab)]&&typeof _0x423c5c[_0x1713d6(0xab)]===_0x1713d6(0xb4)?_0x423c5c[_0x1713d6(0xab)]:{},_0xe29a51={..._0x2e7203,..._0x5db877},_0x9a9fed={..._0x585208,..._0x423c5c};delete _0x9a9fed[_0x1713d6(0x90)];if(Object[_0x1713d6(0xa4)](_0xe29a51)[_0x1713d6(0xb6)]>0x0)_0x9a9fed[_0x1713d6(0xab)]=_0xe29a51;if(_0x1713d6(0x8c)in _0x423c5c)_0x9a9fed[_0x1713d6(0x8c)]=_0x423c5c['defaultApp'];else{if(Object[_0x1713d6(0xa4)](_0x5db877)[_0x1713d6(0xb6)]>0x0)_0x9a9fed[_0x1713d6(0x8c)]=Object[_0x1713d6(0xa4)](_0x5db877)[0x0];else{if(_0x585208['defaultApp'])_0x9a9fed['defaultApp']=_0x585208['defaultApp'];else{const _0x1200dc=Object['keys'](_0x2e7203);if(_0x1200dc[_0x1713d6(0xb6)]>0x0)_0x9a9fed[_0x1713d6(0x8c)]=_0x1200dc[0x0];}}}return _0x9a9fed;}export function readRawConfigWithLayers(_0x366088){const _0x55939c=loadRawConfigLayers(_0x366088);return{'config':mergeRawConfigLayers(_0x55939c),'layers':_0x55939c};}export function readRawConfig(_0x3e2ba0){return mergeRawConfigLayers(loadRawConfigLayers(_0x3e2ba0));}export function readConfigFile(_0x1b95e8){const _0x3e7dcf=a215_0x36861c;return parseAndNormalizeConfig(_0x1b95e8,_0x3e7dcf(0x89));}export function writeConfigFile(_0x1ff9d8,_0x5773eb){const _0x390a43=a215_0x36861c,_0x50905a=dirname(_0x1ff9d8);!existsSync(_0x50905a)&&mkdirSync(_0x50905a,{'recursive':!![]});const _0x5c25aa=_0x1ff9d8+_0x390a43(0x96);try{writeFileSync(_0x5c25aa,JSON['stringify'](_0x5773eb,null,0x2)+'\x0a',{'encoding':_0x390a43(0xa5),'mode':0x180}),renameSync(_0x5c25aa,_0x1ff9d8);}catch(_0x1374ff){try{unlinkSync(_0x5c25aa);}catch{}throw _0x1374ff;}}export function resolveWriteConfigPath(_0x55baa4){const _0x22bce8=a215_0x36861c,_0x54adbb=_0x55baa4===_0x22bce8(0xaf)?process[_0x22bce8(0x92)]():homedir(),_0x24e8c1=resolveConfigPath(_0x54adbb);return _0x24e8c1??resolve(_0x54adbb,NEW_CONFIG_NAME);}
|
|
1
|
+
const a215_0x39dede=a215_0x4725;(function(_0x3883e9,_0x5caa5f){const _0x3041bd=a215_0x4725,_0x5786=_0x3883e9();while(!![]){try{const _0x4854f6=parseInt(_0x3041bd(0x11c))/0x1*(parseInt(_0x3041bd(0x13d))/0x2)+parseInt(_0x3041bd(0x121))/0x3*(parseInt(_0x3041bd(0x125))/0x4)+parseInt(_0x3041bd(0x140))/0x5*(parseInt(_0x3041bd(0x129))/0x6)+parseInt(_0x3041bd(0x144))/0x7*(-parseInt(_0x3041bd(0x132))/0x8)+-parseInt(_0x3041bd(0x122))/0x9+parseInt(_0x3041bd(0x123))/0xa*(parseInt(_0x3041bd(0x131))/0xb)+-parseInt(_0x3041bd(0x12a))/0xc;if(_0x4854f6===_0x5caa5f)break;else _0x5786['push'](_0x5786['shift']());}catch(_0x577f79){_0x5786['push'](_0x5786['shift']());}}}(a215_0x1ecc,0xca698));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x39dede(0x13f);export const CONFIG_NAMES=[a215_0x39dede(0x13f),'.lovrabet.json',a215_0x39dede(0x127)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1babfa=>_0x1babfa!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x190d1b){for(const _0x1b32b0 of CONFIG_NAMES){const _0x222472=resolve(_0x190d1b,_0x1b32b0);if(existsSync(_0x222472))return _0x222472;}return undefined;}function a215_0x1ecc(){const _0x425eec=['warn','parse','466795lkpoYx','keys','pageSize','Global','format','.tmp','defaultApp','accessKey','26613FdRplP','trim','cwd','object','apps','57MZBVcD','2398023TXbecq','4186670zzMtms','config','55152JhJWXY','migrated','.lovrabetrc','Project','1050XBfNVM','948048OsTQMA','set','apiDir','\x0a\x20\x20','message','status','missing','11kLyIly','8hKEqdu','riskLevel','app','env','stringify','length','silent','locale','empty','appcode','inherit','8EjPBds','utf8','.rabetbase.json','12975vyDlTw','cookie'];a215_0x1ecc=function(){return _0x425eec;};return a215_0x1ecc();}export function findProjectRootDirectory(_0x4e4632=process[a215_0x39dede(0x11e)]()){let _0x4dec11=resolve(_0x4e4632);const {root:_0x14880c}=parse(_0x4dec11),_0x474d2d=homedir();while(!![]){if(resolveConfigPath(_0x4dec11)){if(_0x4dec11===_0x474d2d)break;return _0x4dec11;}if(_0x4dec11===_0x14880c||_0x4dec11===_0x474d2d)break;const _0x3c82da=dirname(_0x4dec11);if(_0x3c82da===_0x4dec11)break;_0x4dec11=_0x3c82da;}return resolve(_0x4e4632);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x420d19){const _0x42a228=a215_0x39dede;if(!existsSync(_0x420d19))return{'status':_0x42a228(0x130)};try{const _0x4f87ba=readFileSync(_0x420d19,{'encoding':_0x42a228(0x13e)});if(!_0x4f87ba?.[_0x42a228(0x11d)]())return{'status':_0x42a228(0x13a)};const _0x2453f0=JSON[_0x42a228(0x143)](_0x4f87ba);return{'status':'ok','data':_0x2453f0};}catch(_0x5354c6){return{'status':'error','message':_0x5354c6 instanceof Error?_0x5354c6[_0x42a228(0x12e)]:String(_0x5354c6)};}}function a215_0x4725(_0x4bdc1d,_0x570952){_0x4bdc1d=_0x4bdc1d-0x118;const _0x1ecc34=a215_0x1ecc();let _0x4725ee=_0x1ecc34[_0x4bdc1d];return _0x4725ee;}function parseCliConfigJsonFile(_0x114703,_0x4105a9,_0x57b132){const _0x4aab57=a215_0x39dede,_0x30e051=inspectCliConfigJsonFile(_0x114703);if(_0x30e051['status']===_0x4aab57(0x130)||_0x30e051['status']==='empty')return{};if(_0x30e051[_0x4aab57(0x12f)]==='ok')return _0x30e051['data'];return _0x4105a9===_0x4aab57(0x142)&&_0x57b132&&console['error'](CLI_BIN_NAME+':\x20'+_0x57b132+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x114703+_0x4aab57(0x12d)+_0x30e051[_0x4aab57(0x12e)]),{};}function normalizeLegacyConfigShape(_0x3c4add){const _0xc89bbb=a215_0x39dede;if(!_0x3c4add||typeof _0x3c4add!=='object')return{'config':{},'migrated':![]};const _0x5a8d62={..._0x3c4add},_0x2d99cd=_0x5a8d62[_0xc89bbb(0x120)]&&typeof _0x5a8d62[_0xc89bbb(0x120)]==='object'?{..._0x5a8d62[_0xc89bbb(0x120)]}:{},_0x131551=Object[_0xc89bbb(0x145)](_0x2d99cd)[_0xc89bbb(0x137)],_0x54f3dc=_0x5a8d62[_0xc89bbb(0x13b)]||_0x5a8d62[_0xc89bbb(0x134)];let _0x138043=![];if(_0x54f3dc&&_0x131551===0x0){const _0x1b810b=typeof _0x5a8d62[_0xc89bbb(0x11a)]==='string'&&_0x5a8d62['defaultApp'][_0xc89bbb(0x11d)]()?_0x5a8d62['defaultApp']:String(_0x54f3dc)[_0xc89bbb(0x11d)]();_0x2d99cd[_0x1b810b]={'appcode':String(_0x54f3dc)[_0xc89bbb(0x11d)](),..._0x5a8d62[_0xc89bbb(0x135)]!=null?{'env':_0x5a8d62[_0xc89bbb(0x135)]}:{},..._0x5a8d62[_0xc89bbb(0x12c)]!=null?{'apiDir':_0x5a8d62[_0xc89bbb(0x12c)]}:{},..._0x5a8d62['cookie']!=null?{'cookie':_0x5a8d62[_0xc89bbb(0x141)]}:{},..._0x5a8d62[_0xc89bbb(0x11b)]!=null?{'accessKey':_0x5a8d62[_0xc89bbb(0x11b)]}:{},..._0x5a8d62[_0xc89bbb(0x118)]!=null?{'format':_0x5a8d62['format']}:{},..._0x5a8d62[_0xc89bbb(0x146)]!=null?{'pageSize':_0x5a8d62['pageSize']}:{},..._0x5a8d62[_0xc89bbb(0x133)]!=null?{'riskLevel':_0x5a8d62['riskLevel']}:{},..._0x5a8d62[_0xc89bbb(0x139)]!=null?{'locale':_0x5a8d62[_0xc89bbb(0x139)]}:{}},_0x5a8d62[_0xc89bbb(0x120)]=_0x2d99cd;if(!_0x5a8d62[_0xc89bbb(0x11a)])_0x5a8d62[_0xc89bbb(0x11a)]=_0x1b810b;_0x138043=!![];}return('appcode'in _0x5a8d62||'app'in _0x5a8d62)&&(delete _0x5a8d62[_0xc89bbb(0x13b)],delete _0x5a8d62['app'],_0x138043=!![]),{'config':_0x5a8d62,'migrated':_0x138043};}function writeNormalizedConfigIfNeeded(_0x2923b7,_0x21a6e8){const _0x279547=a215_0x39dede,_0x2320f4=JSON[_0x279547(0x136)](_0x21a6e8,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2923b7)===_0x2320f4)return;writeConfigFile(_0x2923b7,_0x21a6e8),normalizedWriteCache[_0x279547(0x12b)](_0x2923b7,_0x2320f4);}function parseAndNormalizeConfig(_0x13cf1c,_0x73fc8a,_0x1ab3ca){const _0x17a99c=a215_0x39dede,_0x33311a=parseCliConfigJsonFile(_0x13cf1c,_0x73fc8a,_0x1ab3ca),_0x3b301a=normalizeLegacyConfigShape(_0x33311a);if(_0x3b301a[_0x17a99c(0x126)])try{writeNormalizedConfigIfNeeded(_0x13cf1c,_0x3b301a['config']);}catch{}return _0x3b301a[_0x17a99c(0x124)];}export function loadRawConfigLayers(_0x5c68c7){const _0x3343c9=a215_0x39dede;let _0x2cff5d={},_0x2e72d5={};const _0x4cb560=resolveConfigPath(homedir());_0x4cb560&&(_0x2cff5d=parseAndNormalizeConfig(_0x4cb560,_0x3343c9(0x142),_0x3343c9(0x147)));const _0x5df165=_0x5c68c7??findProjectRootDirectory(),_0x18299f=resolveConfigPath(_0x5df165);return _0x18299f&&(_0x2e72d5=parseAndNormalizeConfig(_0x18299f,_0x3343c9(0x142),_0x3343c9(0x128))),{'globalPath':_0x4cb560,'projectPath':_0x18299f,'globalConfig':_0x2cff5d,'projectConfig':_0x2e72d5};}const INHERIT_WHITELIST=[a215_0x39dede(0x141),a215_0x39dede(0x11b),a215_0x39dede(0x139),a215_0x39dede(0x118),a215_0x39dede(0x133),a215_0x39dede(0x146)];export function mergeRawConfigLayers(_0x3c4b0d){const _0x1ead59=a215_0x39dede,{globalConfig:_0x391929,projectConfig:_0x1bf859}=_0x3c4b0d,_0xf9d5ca=Object[_0x1ead59(0x145)](_0x1bf859)[_0x1ead59(0x137)]>0x0;if(!_0xf9d5ca)return mergeGlobalOnly(_0x391929);if(_0x1bf859[_0x1ead59(0x13c)]===!![])return mergeFullInherit(_0x391929,_0x1bf859);if(_0x1bf859['inherit']===![])return mergeIsolated(_0x1bf859);return mergeProjectFirst(_0x391929,_0x1bf859);}function mergeGlobalOnly(_0x1b75bf){const _0xf2f973=a215_0x39dede,_0x258887={..._0x1b75bf},_0x3cea76=_0x1b75bf['apps']&&typeof _0x1b75bf[_0xf2f973(0x120)]==='object'?_0x1b75bf[_0xf2f973(0x120)]:{};if(Object[_0xf2f973(0x145)](_0x3cea76)[_0xf2f973(0x137)]>0x0)_0x258887[_0xf2f973(0x120)]=_0x3cea76;if(_0x1b75bf['defaultApp'])_0x258887[_0xf2f973(0x11a)]=_0x1b75bf[_0xf2f973(0x11a)];else{const _0x3b7f17=Object[_0xf2f973(0x145)](_0x3cea76);if(_0x3b7f17['length']>0x0)_0x258887[_0xf2f973(0x11a)]=_0x3b7f17[0x0];}return _0x258887;}function mergeIsolated(_0x254d9f){const _0x1d058c=a215_0x39dede,_0x365b62={..._0x254d9f};delete _0x365b62[_0x1d058c(0x13c)];const _0x454239=_0x254d9f['apps']&&typeof _0x254d9f[_0x1d058c(0x120)]===_0x1d058c(0x11f)?_0x254d9f[_0x1d058c(0x120)]:{};Object[_0x1d058c(0x145)](_0x454239)[_0x1d058c(0x137)]>0x0?_0x365b62['apps']=_0x454239:delete _0x365b62[_0x1d058c(0x120)];if('defaultApp'in _0x254d9f)_0x365b62['defaultApp']=_0x254d9f['defaultApp'];else Object['keys'](_0x454239)[_0x1d058c(0x137)]>0x0?_0x365b62[_0x1d058c(0x11a)]=Object[_0x1d058c(0x145)](_0x454239)[0x0]:delete _0x365b62['defaultApp'];return _0x365b62;}function mergeProjectFirst(_0x1f6f74,_0x19fc48){const _0x5dd7b0=a215_0x39dede,_0x567d20={..._0x19fc48};delete _0x567d20[_0x5dd7b0(0x13c)];for(const _0x3e9335 of INHERIT_WHITELIST){!(_0x3e9335 in _0x567d20)&&_0x3e9335 in _0x1f6f74&&(_0x567d20[_0x3e9335]=_0x1f6f74[_0x3e9335]);}const _0x134cc5=_0x19fc48[_0x5dd7b0(0x120)]&&typeof _0x19fc48['apps']===_0x5dd7b0(0x11f)?_0x19fc48[_0x5dd7b0(0x120)]:{};Object[_0x5dd7b0(0x145)](_0x134cc5)['length']>0x0?_0x567d20[_0x5dd7b0(0x120)]=_0x134cc5:delete _0x567d20[_0x5dd7b0(0x120)];if(_0x5dd7b0(0x11a)in _0x19fc48)_0x567d20[_0x5dd7b0(0x11a)]=_0x19fc48[_0x5dd7b0(0x11a)];else Object['keys'](_0x134cc5)[_0x5dd7b0(0x137)]>0x0?_0x567d20[_0x5dd7b0(0x11a)]=Object[_0x5dd7b0(0x145)](_0x134cc5)[0x0]:delete _0x567d20[_0x5dd7b0(0x11a)];return _0x567d20;}function mergeFullInherit(_0x524255,_0x16cc55){const _0x2a8dc0=a215_0x39dede,_0x127b56=_0x524255['apps']&&typeof _0x524255['apps']===_0x2a8dc0(0x11f)?_0x524255[_0x2a8dc0(0x120)]:{},_0x3303c9=_0x16cc55[_0x2a8dc0(0x120)]&&typeof _0x16cc55['apps']===_0x2a8dc0(0x11f)?_0x16cc55[_0x2a8dc0(0x120)]:{},_0x1962e2={..._0x127b56,..._0x3303c9},_0x15dd81={..._0x524255,..._0x16cc55};delete _0x15dd81['inherit'];if(Object[_0x2a8dc0(0x145)](_0x1962e2)['length']>0x0)_0x15dd81[_0x2a8dc0(0x120)]=_0x1962e2;if(_0x2a8dc0(0x11a)in _0x16cc55)_0x15dd81[_0x2a8dc0(0x11a)]=_0x16cc55[_0x2a8dc0(0x11a)];else{if(Object['keys'](_0x3303c9)[_0x2a8dc0(0x137)]>0x0)_0x15dd81[_0x2a8dc0(0x11a)]=Object[_0x2a8dc0(0x145)](_0x3303c9)[0x0];else{if(_0x524255['defaultApp'])_0x15dd81[_0x2a8dc0(0x11a)]=_0x524255['defaultApp'];else{const _0x4a24ee=Object[_0x2a8dc0(0x145)](_0x127b56);if(_0x4a24ee[_0x2a8dc0(0x137)]>0x0)_0x15dd81[_0x2a8dc0(0x11a)]=_0x4a24ee[0x0];}}}return _0x15dd81;}export function readRawConfigWithLayers(_0x2e9539){const _0x4febac=loadRawConfigLayers(_0x2e9539);return{'config':mergeRawConfigLayers(_0x4febac),'layers':_0x4febac};}export function readRawConfig(_0x46efa8){return mergeRawConfigLayers(loadRawConfigLayers(_0x46efa8));}export function readConfigFile(_0x39c301){const _0x129c40=a215_0x39dede;return parseAndNormalizeConfig(_0x39c301,_0x129c40(0x138));}export function writeConfigFile(_0x1d4fd2,_0x304c31){const _0x3f9544=a215_0x39dede,_0x296ec4=dirname(_0x1d4fd2);!existsSync(_0x296ec4)&&mkdirSync(_0x296ec4,{'recursive':!![]});const _0x53d308=_0x1d4fd2+_0x3f9544(0x119);try{writeFileSync(_0x53d308,JSON[_0x3f9544(0x136)](_0x304c31,null,0x2)+'\x0a',{'encoding':_0x3f9544(0x13e),'mode':0x180}),renameSync(_0x53d308,_0x1d4fd2);}catch(_0x418168){try{unlinkSync(_0x53d308);}catch{}throw _0x418168;}}export function resolveWriteConfigPath(_0x4c3cb1){const _0x5d4b43=a215_0x39dede,_0x19a05a=_0x4c3cb1==='project'?process[_0x5d4b43(0x11e)]():homedir(),_0x260594=resolveConfigPath(_0x19a05a);return _0x260594??resolve(_0x19a05a,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a216_0x4f5d21=a216_0x4f25;(function(_0x5bd992,_0x17c4c8){const _0x3d431e=a216_0x4f25,_0x3a19a8=_0x5bd992();while(!![]){try{const _0x4a933e=parseInt(_0x3d431e(0x18a))/0x1*(parseInt(_0x3d431e(0x173))/0x2)+-parseInt(_0x3d431e(0x186))/0x3*(-parseInt(_0x3d431e(0x17f))/0x4)+parseInt(_0x3d431e(0x189))/0x5+-parseInt(_0x3d431e(0x168))/0x6*(parseInt(_0x3d431e(0x18d))/0x7)+-parseInt(_0x3d431e(0x16f))/0x8*(-parseInt(_0x3d431e(0x16e))/0x9)+parseInt(_0x3d431e(0x167))/0xa+-parseInt(_0x3d431e(0x164))/0xb*(parseInt(_0x3d431e(0x17e))/0xc);if(_0x4a933e===_0x17c4c8)break;else _0x3a19a8['push'](_0x3a19a8['shift']());}catch(_0x5d55ef){_0x3a19a8['push'](_0x3a19a8['shift']());}}}(a216_0x2d1a,0x6262b));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,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x103e58){return process.env[`RABETBASE_${_0x103e58}`]||process.env[`LOVRABET_${_0x103e58}`]||undefined;}function optionalString(_0x13f4f9){const _0x1bf918=a216_0x4f25;return typeof _0x13f4f9===_0x1bf918(0x163)&&_0x13f4f9[_0x1bf918(0x181)]()?_0x13f4f9[_0x1bf918(0x181)]():undefined;}export async function createContext(_0x1fcae1){const _0x1c8107=a216_0x4f25,{config:_0x457aaa,layers:_0x804234}=readRawConfigWithLayers(),_0x518f22=buildConfig(_0x457aaa,_0x1fcae1,_0x804234);await initGlobalEnvironment(_0x518f22);const {getUserDomain:_0xaa1acb,getApiDomain:_0x239aa8}=await import(_0x1c8107(0x187)),_0x39553f={'apiDomain':_0x239aa8(),'userDomain':_0xaa1acb()},_0x2cb05a=await buildAuth(_0x518f22);logger[_0x1c8107(0x171)](process[_0x1c8107(0x185)]());const _0x5e307c=(CLI_BIN_NAME+'\x20'+process[_0x1c8107(0x176)]['slice'](0x2)['join']('\x20'))[_0x1c8107(0x181)]();logger[_0x1c8107(0x165)](_0x5e307c);const {isNonInteractive:_0x487c4f}=await import(_0x1c8107(0x166)),_0x506429=_0x487c4f(_0x1fcae1);return{'config':_0x518f22,'auth':_0x2cb05a,'logger':logger,'env':_0x39553f,'nonInteractive':_0x506429};}export function buildConfigFromFlags(_0x555edf){const {config:_0x4b42b7,layers:_0x22de69}=readRawConfigWithLayers();return buildConfig(_0x4b42b7,_0x555edf,_0x22de69);}function a216_0x4f25(_0x2bda0b,_0x279d95){_0x2bda0b=_0x2bda0b-0x162;const _0x2d1abf=a216_0x2d1a();let _0x4f25b8=_0x2d1abf[_0x2bda0b];return _0x4f25b8;}export async function initGlobalEnvironment(_0x5d2707){const _0x1cb141=a216_0x4f25,{initEnv:_0x21d3fb}=await import('./constant/env.js');_0x21d3fb(_0x5d2707[_0x1cb141(0x179)]);const {initDomains:_0x22dd22}=await import(_0x1cb141(0x187));_0x22dd22({'apiDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.[_0x1cb141(0x18c)]),'userDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.[_0x1cb141(0x17c)]),'runtimeDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.['runtimeDomain'])});}export function getConfigAppCode(_0x1bfca8){const _0x389f86=a216_0x4f25,_0x4d41fc=readRawConfig(_0x1bfca8);if(_0x4d41fc['apps']&&typeof _0x4d41fc[_0x389f86(0x184)]===_0x389f86(0x16c)){const _0x416349=_0x4d41fc[_0x389f86(0x169)];if(_0x416349&&_0x4d41fc[_0x389f86(0x184)][_0x416349]?.[_0x389f86(0x180)])return String(_0x4d41fc['apps'][_0x416349][_0x389f86(0x180)])[_0x389f86(0x181)]();const _0xd72f0f=Object[_0x389f86(0x16d)](_0x4d41fc[_0x389f86(0x184)])[0x0];if(_0xd72f0f?.[_0x389f86(0x180)])return String(_0xd72f0f[_0x389f86(0x180)])[_0x389f86(0x181)]();}const _0x582f16=_0x4d41fc[_0x389f86(0x180)]||_0x4d41fc[_0x389f86(0x177)];if(typeof _0x582f16!=='string'||_0x582f16['trim']()==='')return undefined;return _0x582f16[_0x389f86(0x181)]();}export function getMultiAppConfigs(_0x5f5047=a216_0x4f5d21(0x162),_0x3dad30){const _0x57b16d=a216_0x4f5d21,_0x4c5699=loadRawConfigLayers(_0x3dad30);let _0x45b8a6,_0x5b920b;if(_0x5f5047===_0x57b16d(0x170)){const _0x2554cb=_0x4c5699[_0x57b16d(0x174)][_0x57b16d(0x184)]&&typeof _0x4c5699[_0x57b16d(0x174)]['apps']==='object'?_0x4c5699[_0x57b16d(0x174)][_0x57b16d(0x184)]:{},_0x4dc7a0=_0x4c5699[_0x57b16d(0x16b)][_0x57b16d(0x184)]&&typeof _0x4c5699[_0x57b16d(0x16b)]['apps']===_0x57b16d(0x16c)?_0x4c5699[_0x57b16d(0x16b)][_0x57b16d(0x184)]:{};_0x45b8a6={..._0x2554cb,..._0x4dc7a0};const _0x419837=readRawConfig(_0x3dad30);_0x5b920b=_0x419837[_0x57b16d(0x169)];}else _0x45b8a6=_0x4c5699[_0x57b16d(0x16b)]['apps'],_0x5b920b=_0x4c5699['projectConfig'][_0x57b16d(0x169)];if(!_0x45b8a6||typeof _0x45b8a6!==_0x57b16d(0x16c)||Object[_0x57b16d(0x17d)](_0x45b8a6)[_0x57b16d(0x16a)]===0x0)return null;return Object[_0x57b16d(0x17b)](_0x45b8a6)['map'](([_0x372546,_0x4159f3])=>({'name':_0x372546,'appcode':_0x4159f3?.['appcode']||'','isDefault':_0x372546===_0x5b920b,'env':_0x4159f3?.[_0x57b16d(0x179)],'apiDir':_0x4159f3?.['apiDir'],'cookie':_0x4159f3?.[_0x57b16d(0x17a)]||undefined}))[_0x57b16d(0x188)](_0x4cd00a=>_0x4cd00a[_0x57b16d(0x180)]);}export function getTemplateBaseUrl(_0x5d969c){const _0x4c5fb4=a216_0x4f5d21,_0x422646=readRawConfig(_0x5d969c);if(_0x422646[_0x4c5fb4(0x175)]&&typeof _0x422646[_0x4c5fb4(0x175)]===_0x4c5fb4(0x163))return _0x422646[_0x4c5fb4(0x175)][_0x4c5fb4(0x178)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function a216_0x2d1a(){const _0x40b7c8=['defaultApp','length','projectConfig','object','values','131022vSDnKK','320BOaBXO','merged','setLogPath','raw','2gUlusq','globalConfig','template_base_url','argv','app','replace','env','cookie','entries','userDomain','keys','88572DCtLls','4xHhBZs','appcode','trim','apiDir','api.ts','apps','cwd','767526NVOUia','./constant/domain.js','filter','1328495ilUjcz','148711uvthWN','find','apiDomain','7VuuGRo','project','string','1892pmacQg','setRawCommand','./utils/is-non-interactive.js','7100000wlzPFw','1740318oDzfdr'];a216_0x2d1a=function(){return _0x40b7c8;};return a216_0x2d1a();}function buildConfig(_0x438b95,_0x26d140,_0x454a9f){return{...resolveAppConfig({'raw':_0x438b95,'flags':_0x26d140,'layers':_0x454a9f,'readEnv':env}),'raw':_0x438b95};}export function resolveApiFilePath(_0x4d86ff,_0x1c9348){const _0x198218=a216_0x4f5d21,_0x543e99=resolve(process[_0x198218(0x185)](),_0x4d86ff),_0x357279=resolve(_0x543e99,_0x198218(0x183));if(!_0x1c9348)return _0x357279;const _0x309ce0=readRawConfig(),_0x26aeff=_0x309ce0[_0x198218(0x184)]&&typeof _0x309ce0[_0x198218(0x184)]==='object'?_0x309ce0[_0x198218(0x184)]:{},_0x3e3bbd=Object[_0x198218(0x17b)](_0x26aeff)[_0x198218(0x18b)](([,_0x654e4f])=>_0x654e4f?.['appcode']===_0x1c9348);if(!_0x3e3bbd)return _0x357279;const [_0x198ebd,_0x56c485]=_0x3e3bbd,_0x12c0fc=typeof _0x309ce0['defaultApp']===_0x198218(0x163)?_0x309ce0[_0x198218(0x169)]:undefined;if(_0x56c485?.[_0x198218(0x182)])return _0x357279;if(_0x12c0fc&&_0x198ebd!==_0x12c0fc)return resolve(_0x543e99,_0x198ebd+'-api.ts');return _0x357279;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf8439b,_0x13fee1){const _0x266050=a217_0x250a,_0x55767d=_0xf8439b();while(!![]){try{const _0x138f72=-parseInt(_0x266050(0x130))/0x1+-parseInt(_0x266050(0x12b))/0x2*(-parseInt(_0x266050(0x12c))/0x3)+-parseInt(_0x266050(0x13a))/0x4*(parseInt(_0x266050(0x13b))/0x5)+-parseInt(_0x266050(0x136))/0x6+-parseInt(_0x266050(0x12d))/0x7*(-parseInt(_0x266050(0x131))/0x8)+-parseInt(_0x266050(0x12a))/0x9*(-parseInt(_0x266050(0x138))/0xa)+parseInt(_0x266050(0x135))/0xb*(parseInt(_0x266050(0x134))/0xc);if(_0x138f72===_0x13fee1)break;else _0x55767d['push'](_0x55767d['shift']());}catch(_0x8b2e12){_0x55767d['push'](_0x55767d['shift']());}}}(a217_0x5d3d,0xbf58b));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x5f2a12){const _0x2401ba=a217_0x250a,_0x119129=[],_0x3580f3=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x4ac0d7;while((_0x4ac0d7=_0x3580f3[_0x2401ba(0x137)](_0x5f2a12))!==null){_0x119129[_0x2401ba(0x128)]({'datasetCode':_0x4ac0d7[0x1],'tableName':_0x4ac0d7[0x2],'name':_0x4ac0d7[0x3],'alias':_0x4ac0d7[0x4]});}return _0x119129;}function a217_0x250a(_0x3307b7,_0x24e883){_0x3307b7=_0x3307b7-0x128;const _0x5d3d74=a217_0x5d3d();let _0x250afc=_0x5d3d74[_0x3307b7];return _0x250afc;}export function loadAliasMap(_0x3b4d6e,_0x4c915f,_0x360619){const _0x5623f4=a217_0x250a,_0x521369=_0x360619??resolve(process[_0x5623f4(0x139)](),_0x3b4d6e,_0x5623f4(0x129));if(cache[_0x5623f4(0x133)](_0x521369))return cache[_0x5623f4(0x13c)](_0x521369);if(!existsSync(_0x521369))return cache[_0x5623f4(0x12e)](_0x521369,[]),[];try{const _0x194989=readFileSync(_0x521369,'utf-8'),_0x1db102=parseApiFile(_0x194989);return cache[_0x5623f4(0x12e)](_0x521369,_0x1db102),_0x1db102;}catch{return cache[_0x5623f4(0x12e)](_0x521369,[]),[];}}export function resolveAlias(_0x3ece6f,_0x621f0b,_0x4f51cf,_0x151c75){const _0x3ae905=a217_0x250a;if(!_0x621f0b)return undefined;const _0x46a29e=loadAliasMap(_0x3ece6f,_0x4f51cf,_0x151c75),_0x1d9d08=_0x46a29e['find'](_0x588fbe=>_0x588fbe[_0x3ae905(0x132)]===_0x621f0b);return _0x1d9d08?.[_0x3ae905(0x12f)];}export function listAliases(_0x2ecb2b,_0x3d15d1,_0x484c64){return loadAliasMap(_0x2ecb2b,_0x3d15d1,_0x484c64);}function a217_0x5d3d(){const _0x4d0846=['api.ts','115191buVeSF','1165768bYiQFa','3PFLOsk','7NJTyIr','set','datasetCode','626273XRVcNB','1520104jguZJc','alias','has','5063280ryULUt','44tzsyGw','5303508cXEdhL','exec','30qbZxRy','cwd','8728nUhRHc','470NcmXcZ','get','push'];a217_0x5d3d=function(){return _0x4d0846;};return a217_0x5d3d();}
|