@lovrabet/rabetbase-cli 2.3.15 → 2.3.16-beta.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/README.md +7 -2
- 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/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.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 -0
- package/lib/commands/kb/delete.js +1 -0
- package/lib/commands/kb/detail.js +1 -0
- package/lib/commands/kb/index.js +1 -0
- package/lib/commands/kb/list.js +1 -0
- package/lib/commands/kb/shared.js +1 -0
- package/lib/commands/kb/update.js +1 -0
- 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/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/init.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/save.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/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.js +1 -1
- package/lib/help.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 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a191_0x202a0e=a191_0x3a58;function a191_0x1e78(){const _0x3dc8bc=['12bUVYea','1577562kXwEYe','40772720MZjmSE','1039287lMHOim','workspace\x20add','4430232xVrPvr','name','write','6420540gbxIeL','579186sOjawB','1456530lyzWCk','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','9XeUprq'];a191_0x1e78=function(){return _0x3dc8bc;};return a191_0x1e78();}function a191_0x3a58(_0x52d96b,_0x3547d7){_0x52d96b=_0x52d96b-0x158;const _0x1e78a6=a191_0x1e78();let _0x3a584a=_0x1e78a6[_0x52d96b];return _0x3a584a;}(function(_0x5137f8,_0x510467){const _0x3456b4=a191_0x3a58,_0x15e6af=_0x5137f8();while(!![]){try{const _0x4df1b8=-parseInt(_0x3456b4(0x15d))/0x1+parseInt(_0x3456b4(0x158))/0x2+-parseInt(_0x3456b4(0x15f))/0x3*(parseInt(_0x3456b4(0x15c))/0x4)+-parseInt(_0x3456b4(0x159))/0x5+-parseInt(_0x3456b4(0x161))/0x6+-parseInt(_0x3456b4(0x164))/0x7+parseInt(_0x3456b4(0x15e))/0x8*(parseInt(_0x3456b4(0x15b))/0x9);if(_0x4df1b8===_0x510467)break;else _0x15e6af['push'](_0x15e6af['shift']());}catch(_0x715bf){_0x15e6af['push'](_0x15e6af['shift']());}}}(a191_0x1e78,0xc8ca4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a191_0x202a0e(0x15a),'risk':a191_0x202a0e(0x163),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a191_0x202a0e(0x162),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x735d7c=>validateAppName(_0x735d7c,'workspace\x20add'),'execute':_0x26ba25=>runAppAdd(_0x26ba25,a191_0x202a0e(0x160))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a192_0x4a19db=a192_0x24f2;(function(_0x984031,_0x5734db){const _0x25c2e6=a192_0x24f2,_0x30c445=_0x984031();while(!![]){try{const _0x41e7e8=parseInt(_0x25c2e6(0xbc))/0x1*(parseInt(_0x25c2e6(0x98))/0x2)+-parseInt(_0x25c2e6(0x9d))/0x3+parseInt(_0x25c2e6(0xa3))/0x4*(-parseInt(_0x25c2e6(0x96))/0x5)+parseInt(_0x25c2e6(0xb4))/0x6*(parseInt(_0x25c2e6(0xa2))/0x7)+parseInt(_0x25c2e6(0x93))/0x8+parseInt(_0x25c2e6(0xaf))/0x9*(-parseInt(_0x25c2e6(0xbd))/0xa)+parseInt(_0x25c2e6(0xba))/0xb;if(_0x41e7e8===_0x5734db)break;else _0x30c445['push'](_0x30c445['shift']());}catch(_0x2ca798){_0x30c445['push'](_0x30c445['shift']());}}}(a192_0xc2bd,0xe4b7b));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+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a192_0x4a19db(0xb1),a192_0x4a19db(0xa5),a192_0x4a19db(0x95),a192_0x4a19db(0x8e),a192_0x4a19db(0xae),a192_0x4a19db(0x9f),a192_0x4a19db(0xb5)],workspaceFlags=[{'name':a192_0x4a19db(0xa6),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xa7)},{'name':a192_0x4a19db(0xb1),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x97)},{'name':a192_0x4a19db(0xa5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x94),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'defaultFormat','type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xc6),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a192_0x4a19db(0xae),'type':a192_0x4a19db(0xa0),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':'string','description':a192_0x4a19db(0xb7),'enum':[...RISK_LEVEL_VALUES]},{'name':a192_0x4a19db(0xb5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x90)}];function isRecord(_0x3847c0){const _0x69bfbe=a192_0x4a19db;return!!_0x3847c0&&typeof _0x3847c0==='object'&&!Array[_0x69bfbe(0x9e)](_0x3847c0);}function a192_0x24f2(_0x5e451c,_0x2e1abf){_0x5e451c=_0x5e451c-0x8e;const _0xc2bdb=a192_0xc2bd();let _0x24f243=_0xc2bdb[_0x5e451c];return _0x24f243;}function assertValidAppcode(_0x2e2247){const _0x54333b=a192_0x4a19db,{valid:_0x1133a9,message:_0x5927d3}=validateAppcode(_0x2e2247);if(!_0x1133a9)throw CliErrors[_0x54333b(0xac)]('Invalid\x20appcode:\x20'+_0x2e2247,_0x5927d3);}function sanitizeProfile(_0x44de46){if(!isRecord(_0x44de46))return{};const _0x51e0d4={};for(const _0x87120a of SAFE_PROFILE_KEYS){if(_0x44de46[_0x87120a]!==undefined)_0x51e0d4[_0x87120a]=_0x44de46[_0x87120a];}return _0x51e0d4;}function cloneProfile(_0x49db0a){return isRecord(_0x49db0a)?{..._0x49db0a}:{};}function collectWorkspaceProfileOverrides(_0x2b2fe6){const _0x3e8390=a192_0x4a19db,_0x2ecc2a={},_0x32a75a=_0x2b2fe6[_0x3e8390(0xbe)]('env'),_0x230640=_0x2b2fe6['str'](_0x3e8390(0x95)),_0x10227e=_0x2b2fe6[_0x3e8390(0xbe)](_0x3e8390(0xbf)),_0x38b5b8=_0x2b2fe6[_0x3e8390(0x91)]('pageSize'),_0xc93a1b=_0x2b2fe6['str'](_0x3e8390(0x9f)),_0x3435e9=_0x2b2fe6[_0x3e8390(0xbe)]('locale');if(_0x32a75a)_0x2ecc2a[_0x3e8390(0xa5)]=_0x32a75a;if(_0x230640)_0x2ecc2a['apiDir']=_0x230640;if(_0x10227e)_0x2ecc2a['format']=_0x10227e;if(_0x38b5b8!==undefined&&_0x38b5b8!=='')_0x2ecc2a[_0x3e8390(0xae)]=Number(_0x38b5b8);if(_0xc93a1b)_0x2ecc2a[_0x3e8390(0x9f)]=_0xc93a1b;if(_0x3435e9)_0x2ecc2a[_0x3e8390(0xb5)]=_0x3435e9;return _0x2ecc2a;}async function validateWorkspaceArgs(_0x4bb04b){const _0x123883=a192_0x4a19db,_0x169d84=_0x4bb04b[_0x123883(0xbe)]('app')[_0x123883(0xc5)](),_0x12fa11=_0x4bb04b[_0x123883(0xbe)](_0x123883(0xb1))['trim']();if(!_0x169d84&&!_0x12fa11)throw CliErrors[_0x123883(0xac)](_0x123883(0x9b),'Use\x20`'+CLI_BIN_NAME+_0x123883(0x9c)+CLI_BIN_NAME+_0x123883(0xa4));if(_0x12fa11)assertValidAppcode(_0x12fa11);}function a192_0xc2bd(){const _0x25fa8f=['keys','\x20--appcode\x20<code>`.','use','trim','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','format','write','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','\x20workspace\x20','11953728IbPwAt','Target\x20environment','apiDir','7008740IjjzBA','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4076PITmJo','string',').\x20Config:\x20','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','3252219SJEwrc','isArray','riskLevel','number','updated','33572yABQih','4JGVsVg','\x20workspace\x20use\x20--app\x20<name>`.','env','app','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','workspace','\x22\x20not\x20found.','apps','length','validation','Use\x20`','pageSize','432yPOJfq','workspace.','appcode','globalConfig','\x20(appcode:\x20','726wzsJhf','locale','App\x20\x22','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Switch\x20the\x20current\x20workspace\x20app\x20binding','init','5225594kZcpYa','defaultApp','881lkDGtK','192170cVWzKi','str','defaultFormat','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Workspace\x20'];a192_0xc2bd=function(){return _0x25fa8f;};return a192_0xc2bd();}function resolveKnownApps(){const _0x5e3165=a192_0x4a19db,{config:_0x36196c,layers:_0x514dd3}=readRawConfigWithLayers(),_0x450df7=isRecord(_0x36196c[_0x5e3165(0xaa)])?_0x36196c[_0x5e3165(0xaa)]:{},_0x1fc2f4=isRecord(_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)])?_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)]:{};return{..._0x1fc2f4,..._0x450df7};}async function configureWorkspace(_0x11ee0b,_0x17cc5b){const _0x311587=a192_0x4a19db,_0x783a99=_0x11ee0b[_0x311587(0xbe)]('app')[_0x311587(0xc5)](),_0x5eafa7=_0x11ee0b[_0x311587(0xbe)](_0x311587(0xb1))['trim'](),_0x14aec4=_0x783a99||_0x5eafa7;if(!_0x14aec4)throw CliErrors[_0x311587(0xac)]('Missing\x20workspace\x20app\x20selector.',_0x311587(0xad)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x5eafa7)assertValidAppcode(_0x5eafa7);const _0x3c6fcd=resolveWriteConfigPath('project'),_0x277b2c=readConfigFile(_0x3c6fcd),_0x327ada=resolveKnownApps(),_0x585e73=isRecord(_0x277b2c[_0x311587(0xaa)])?{..._0x277b2c[_0x311587(0xaa)]}:{},_0x84c149=cloneProfile(_0x585e73[_0x14aec4]),_0x7dda47=sanitizeProfile(_0x327ada[_0x14aec4]),_0x3d69b5=_0x5eafa7?{}:_0x7dda47,_0x43c050=_0x5eafa7||_0x3d69b5[_0x311587(0xb1)];if(!_0x43c050){const _0xc364ca=Object[_0x311587(0xc2)](_0x327ada),_0x3db5ab=_0xc364ca[_0x311587(0xab)]===0x0?_0x311587(0xad)+CLI_BIN_NAME+_0x311587(0x92)+_0x17cc5b+'\x20--app\x20'+_0x14aec4+_0x311587(0xc3):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0xc364ca['join'](',\x20');throw CliErrors[_0x311587(0xac)](_0x311587(0xb6)+_0x14aec4+_0x311587(0xa9),_0x3db5ab);}assertValidAppcode(String(_0x43c050));const _0x5597de={..._0x3d69b5,..._0x84c149,'appcode':String(_0x43c050),...collectWorkspaceProfileOverrides(_0x11ee0b)};return _0x585e73[_0x14aec4]=_0x5597de,_0x277b2c[_0x311587(0xaa)]=_0x585e73,_0x277b2c[_0x311587(0xbb)]=_0x14aec4,delete _0x277b2c[_0x311587(0xb1)],delete _0x277b2c[_0x311587(0xa6)],_0x5597de[_0x311587(0xa5)]&&(_0x277b2c[_0x311587(0xa5)]=_0x5597de['env']),writeConfigFile(_0x3c6fcd,_0x277b2c),{'ok':!![],'message':_0x311587(0xc1)+(_0x17cc5b==='init'?'initialized':_0x311587(0xa1))+':\x20'+_0x14aec4+_0x311587(0xb3)+_0x5597de[_0x311587(0xb1)]+_0x311587(0x9a)+_0x3c6fcd+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x311587(0xb0)+_0x17cc5b,'configPath':_0x3c6fcd,'app':_0x14aec4,'appcode':_0x5597de[_0x311587(0xb1)],'env':_0x5597de[_0x311587(0xa5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a192_0x4a19db(0xa8),'command':a192_0x4a19db(0xb9),'description':a192_0x4a19db(0xc0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xb2c100=>configureWorkspace(_0xb2c100,'init')},workspaceUseDefinition={'service':a192_0x4a19db(0xa8),'command':'use','description':a192_0x4a19db(0xb8),'risk':a192_0x4a19db(0x8f),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5bb683=>configureWorkspace(_0x5bb683,a192_0x4a19db(0xc4))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a193_0x35d15d=a193_0x1fe8;function a193_0x209b(){const _0x44860b=['305418tQGOhk','208019dFIRQl','280FqwKUO','name','301108OzBCFa','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20remove','3EZiIhV','1363150IllQjv','2876292QKkdVq','workspace','11742039ifeSPr','remove','145OvogLH','43755950ZVoghF'];a193_0x209b=function(){return _0x44860b;};return a193_0x209b();}(function(_0x1b7ffa,_0x1bd61b){const _0x67ca70=a193_0x1fe8,_0x21a3ed=_0x1b7ffa();while(!![]){try{const _0x3b26f1=-parseInt(_0x67ca70(0x14a))/0x1+-parseInt(_0x67ca70(0x14b))/0x2+-parseInt(_0x67ca70(0x149))/0x3*(-parseInt(_0x67ca70(0x146))/0x4)+-parseInt(_0x67ca70(0x14f))/0x5*(-parseInt(_0x67ca70(0x151))/0x6)+-parseInt(_0x67ca70(0x143))/0x7*(parseInt(_0x67ca70(0x144))/0x8)+-parseInt(_0x67ca70(0x14d))/0x9+parseInt(_0x67ca70(0x150))/0xa;if(_0x3b26f1===_0x1bd61b)break;else _0x21a3ed['push'](_0x21a3ed['shift']());}catch(_0x314a38){_0x21a3ed['push'](_0x21a3ed['shift']());}}}(a193_0x209b,0xbeac5));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a193_0x1fe8(_0x41d6d1,_0x5c26fd){_0x41d6d1=_0x41d6d1-0x143;const _0x209b14=a193_0x209b();let _0x1fe8e5=_0x209b14[_0x41d6d1];return _0x1fe8e5;}export const workspaceRemoveDefinition={'service':a193_0x35d15d(0x14c),'command':a193_0x35d15d(0x14e),'description':a193_0x35d15d(0x147),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a193_0x35d15d(0x145),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x393af3=>validateAppName(_0x393af3,'workspace\x20remove'),'execute':_0x2ca895=>runAppRemove(_0x2ca895,a193_0x35d15d(0x148))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a194_0x5db17b=a194_0x37ab;(function(_0x2b4c2b,_0x390623){const _0x73ecac=a194_0x37ab,_0x40119d=_0x2b4c2b();while(!![]){try{const _0x328014=parseInt(_0x73ecac(0x1d6))/0x1*(parseInt(_0x73ecac(0x1e5))/0x2)+-parseInt(_0x73ecac(0x1f0))/0x3*(-parseInt(_0x73ecac(0x1d5))/0x4)+parseInt(_0x73ecac(0x1ef))/0x5*(parseInt(_0x73ecac(0x1c9))/0x6)+parseInt(_0x73ecac(0x1ea))/0x7+parseInt(_0x73ecac(0x1d8))/0x8*(parseInt(_0x73ecac(0x1e3))/0x9)+parseInt(_0x73ecac(0x1de))/0xa+parseInt(_0x73ecac(0x1e1))/0xb*(-parseInt(_0x73ecac(0x1ed))/0xc);if(_0x328014===_0x390623)break;else _0x40119d['push'](_0x40119d['shift']());}catch(_0x493c65){_0x40119d['push'](_0x40119d['shift']());}}}(a194_0x522b,0x35f2f));function a194_0x522b(){const _0x409b0d=['entries','9rgPsVV','filter','346YdRfgk','join','defaultFormat','inherit','apps','885374aMxElH','Auth\x20cookie','accessKey','2064pydcgx','locale','15cWZlpE','396PlRQdP','Default\x20page\x20size','env','cookie','660798GdRaaA','number','trim','format','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','keys','apiDir','Access\x20key','riskLevel','app','pageSize','defaultApp','1464uFVrpd','1322wOXfxd','zh-CN','481672nHaDBF','has','toLowerCase','appcode','length','API\x20directory\x20path','2361270ptEFrt','en-US','string','51755hFAJVm'];a194_0x522b=function(){return _0x409b0d;};return a194_0x522b();}function a194_0x37ab(_0x4cd520,_0x244a53){_0x4cd520=_0x4cd520-0x1c9;const _0x522bed=a194_0x522b();let _0x37ab8e=_0x522bed[_0x4cd520];return _0x37ab8e;}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=['cookie',a194_0x5db17b(0x1ec),a194_0x5db17b(0x1ee),a194_0x5db17b(0x1cc),a194_0x5db17b(0x1d1)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a194_0x5db17b(0x1f2),a194_0x5db17b(0x1ee),'format',a194_0x5db17b(0x1f3),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x37e051){const _0x396197=a194_0x5db17b;return[..._0x37e051][_0x396197(0x1e6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xaade22){const _0x5bf3cc=a194_0x5db17b;return TOP_LEVEL_CONFIG_KEYS[_0x5bf3cc(0x1d9)](_0xaade22);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a194_0x5db17b(0x1f2),'apiDir':a194_0x5db17b(0x1cf),'cookie':a194_0x5db17b(0x1f3),'accessKey':a194_0x5db17b(0x1ec),'defaultFormat':a194_0x5db17b(0x1cc),'pageSize':a194_0x5db17b(0x1d3),'riskLevel':a194_0x5db17b(0x1d1),'locale':a194_0x5db17b(0x1ee)};export function getAppProfileFlagDefs(){const _0x134194=a194_0x5db17b;return[{'name':_0x134194(0x1f2),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x134194(0x1e0),'description':_0x134194(0x1dd)},{'name':_0x134194(0x1f3),'type':'string','description':_0x134194(0x1eb),'hidden':!![]},{'name':_0x134194(0x1ec),'type':_0x134194(0x1e0),'description':_0x134194(0x1d0),'hidden':!![]},{'name':_0x134194(0x1e7),'type':_0x134194(0x1e0),'description':_0x134194(0x1cd),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x134194(0x1d3),'type':_0x134194(0x1ca),'description':_0x134194(0x1f1)},{'name':_0x134194(0x1d1),'type':_0x134194(0x1e0),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x134194(0x1ee),'type':_0x134194(0x1e0),'description':'Locale'}];}export function collectAppProfileOverrides(_0x194664){const _0x7c9b84=a194_0x5db17b,_0x4a804b={};for(const [_0x1aad82,_0x2052b4]of Object[_0x7c9b84(0x1e2)](APP_PROFILE_FLAG_KEY_MAP)){const _0x520f27=_0x194664(_0x1aad82);if(!_0x520f27)continue;_0x4a804b[_0x2052b4]=_0x2052b4==='pageSize'?Number(_0x520f27):_0x520f27;}return _0x4a804b;}export function buildAppProfileListFields(_0x473178){const _0x52d05d=a194_0x5db17b;return{'env':_0x473178['env']??null,'apiDir':_0x473178[_0x52d05d(0x1cf)]??null,'hasCookie':!!_0x473178[_0x52d05d(0x1f3)],'hasAccessKey':!!_0x473178['accessKey'],'format':_0x473178[_0x52d05d(0x1cc)]??null,'pageSize':_0x473178['pageSize']??null,'riskLevel':_0x473178[_0x52d05d(0x1d1)]??null,'locale':_0x473178[_0x52d05d(0x1ee)]??null};}export function buildAppDoctorFields(_0x55dd45,_0x861df5){const _0x4d2016=a194_0x5db17b;return{'env':{'value':_0x55dd45[_0x4d2016(0x1f2)]||_0x861df5[_0x4d2016(0x1f2)],'source':_0x55dd45[_0x4d2016(0x1f2)]?'app':_0x4d2016(0x1e8)},'apiDir':{'value':_0x55dd45[_0x4d2016(0x1cf)]||_0x861df5[_0x4d2016(0x1cf)],'source':_0x55dd45[_0x4d2016(0x1cf)]?'app':_0x4d2016(0x1e8)},'cookie':{'value':_0x55dd45['cookie']||_0x861df5[_0x4d2016(0x1f3)],'source':_0x55dd45[_0x4d2016(0x1f3)]?_0x4d2016(0x1d2):_0x4d2016(0x1e8)},'accessKey':{'value':_0x55dd45[_0x4d2016(0x1ec)]||_0x861df5[_0x4d2016(0x1ec)],'source':_0x55dd45['accessKey']?_0x4d2016(0x1d2):_0x4d2016(0x1e8)}};}export function buildCanonicalAppConfig(_0x43bbd2,_0x449131){const _0x450e61=a194_0x5db17b,_0x36316c=_0x43bbd2['map'](_0x5d3b19=>String(_0x5d3b19||'')[_0x450e61(0x1cb)]())[_0x450e61(0x1e4)](Boolean);if(_0x36316c['length']===0x0)return{};const _0x21e3a6={};for(const _0x3ba578 of _0x36316c){_0x21e3a6[_0x3ba578]=_0x449131?{'appcode':_0x3ba578,'env':_0x449131}:{'appcode':_0x3ba578};}return{'apps':_0x21e3a6,'defaultApp':_0x36316c[0x0]};}export function buildCanonicalProjectConfig(_0x39f85f,_0x58b975){const _0x55d4e1=a194_0x5db17b,{appCodes:appCodes=[],env:_0xf7b8e7,metadata:_0xa9b2a2}=_0x58b975,_0x340f20={..._0x39f85f,..._0xa9b2a2||{}};delete _0x340f20[_0x55d4e1(0x1db)],delete _0x340f20[_0x55d4e1(0x1d2)];if(_0xf7b8e7)_0x340f20[_0x55d4e1(0x1f2)]=_0xf7b8e7;else!_0x340f20['env']&&(_0x340f20[_0x55d4e1(0x1f2)]=DEFAULT_CONFIG_VALUES[_0x55d4e1(0x1f2)]);const _0x1f9f93=buildCanonicalAppConfig(appCodes,_0x340f20[_0x55d4e1(0x1f2)]);return Object[_0x55d4e1(0x1ce)](_0x1f9f93)[_0x55d4e1(0x1dc)]>0x0&&(_0x340f20[_0x55d4e1(0x1e9)]=_0x1f9f93['apps'],_0x340f20[_0x55d4e1(0x1d4)]=_0x1f9f93[_0x55d4e1(0x1d4)]),_0x340f20;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a194_0x5db17b(0x1d7),'en':'en-US','en-us':a194_0x5db17b(0x1df),'en_us':a194_0x5db17b(0x1df)};export function normalizeLocale(_0x13bf9f){const _0x4dedac=a194_0x5db17b;if(!_0x13bf9f)return null;return LOCALE_MAP[_0x13bf9f[_0x4dedac(0x1da)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a195_0x1af3(_0x5b8288,_0x1c9d38){_0x5b8288=_0x5b8288-0x1cd;const _0x2cde33=a195_0x2cde();let _0x1af3d0=_0x2cde33[_0x5b8288];return _0x1af3d0;}const a195_0x57ffc5=a195_0x1af3;(function(_0x4e177c,_0x3bf3a4){const _0x194e3e=a195_0x1af3,_0x28a4ca=_0x4e177c();while(!![]){try{const _0x2d3315=-parseInt(_0x194e3e(0x1d2))/0x1+-parseInt(_0x194e3e(0x1d6))/0x2+parseInt(_0x194e3e(0x1cf))/0x3*(-parseInt(_0x194e3e(0x1d3))/0x4)+parseInt(_0x194e3e(0x1d0))/0x5*(parseInt(_0x194e3e(0x1d1))/0x6)+parseInt(_0x194e3e(0x1d5))/0x7+parseInt(_0x194e3e(0x1d4))/0x8+parseInt(_0x194e3e(0x1cd))/0x9;if(_0x2d3315===_0x3bf3a4)break;else _0x28a4ca['push'](_0x28a4ca['shift']());}catch(_0x4b43b4){_0x28a4ca['push'](_0x28a4ca['shift']());}}}(a195_0x2cde,0x57c61));function a195_0x2cde(){const _0x56e421=['1184192xAHMvZ','4944544OGNuCl','834127UcOnfv','57554NfSZKY','488781LVzCZy','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3MmBCuC','25yOionI','125286ZBIBgm','211597iAXEgI'];a195_0x2cde=function(){return _0x56e421;};return a195_0x2cde();}export const CLI_VERSION_POLICY_URL=a195_0x57ffc5(0x1ce);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a189_0x461991=a189_0x5820;(function(_0x12333c,_0x5c61df){const _0x2cccde=a189_0x5820,_0x2b9b27=_0x12333c();while(!![]){try{const _0x48747b=-parseInt(_0x2cccde(0x1fb))/0x1+parseInt(_0x2cccde(0x20f))/0x2+-parseInt(_0x2cccde(0x207))/0x3+parseInt(_0x2cccde(0x1d0))/0x4+-parseInt(_0x2cccde(0x210))/0x5*(parseInt(_0x2cccde(0x1a8))/0x6)+-parseInt(_0x2cccde(0x211))/0x7*(-parseInt(_0x2cccde(0x1f4))/0x8)+-parseInt(_0x2cccde(0x1c2))/0x9;if(_0x48747b===_0x5c61df)break;else _0x2b9b27['push'](_0x2b9b27['shift']());}catch(_0x25d488){_0x2b9b27['push'](_0x2b9b27['shift']());}}}(a189_0x39ca,0xeae65));export const CLI_BIN_NAME=a189_0x461991(0x1c6);export const CLI_DISPLAY_NAME=a189_0x461991(0x19b);function a189_0x39ca(){const _0x1799fc=['Clear','Function\x20node','value','tags','appcode','29454AkxsYK','Menu\x20label','skip-imports','expectPath','Description','name','confirm','schemas','format','app','datasetcode','key','target','Keyword\x20filter','Comma-separated\x20menu\x20IDs','boolean','Title','<code>','dbid','string','Config\x20key','title','Description\x20file','operation-type','type','Asynchronous\x20task\x20ID','17656254hUjcDg','enableBffSave','Skip\x20confirmation\x20for\x20high-risk\x20writes','label','rabetbase','nonInteractive','expectedCount','keyword','parentId','functionNode','operation','clear','watch','Enable\x20BFF\x20save','7116788teKHLp','file','File\x20path','expectParentId','sqlName','pagesize','page','Menu\x20sort\x20value','dbId','<name>','task-id','Environment','production\x20|\x20daily','dry-run','operationType','help','Code\x20filter','Page\x20size','from-env','SQL\x20name','reveal','Tags','Expected\x20current\x20menu\x20path','verbose','Alias\x20for\x20--non-interactive','Output\x20format','DB\x20ID','global','expectedChildrenCount','stdin','Config\x20value','sort','@lovrabet/rabetbase-cli','skipImports','Watch\x20mode','yes','16NAizTV','descriptionFile','<expr>','SQL\x20string','sqlname','Expected\x20affected\x20count','meowKey','860150bmGRzk','Expected\x20current\x20child\x20count','sql-name','dryRun','params','all','expect-parent-id','Output\x20path','Dataset\x20code','Force\x20non-interactive\x20mode\x20(CI)','sqlcode','Expected\x20current\x20parent\x20menu\x20id','852036qSEZmV','Show\x20help','sql','Type\x20filter','Schemas','force','expected-count','map','2995386xEPsbR','615MjjVZE','4882619iSxfnD','Record\x20ID','non-interactive','SQL\x20code','remote','function-node','Confirm\x20destructive\x20action','Target\x20path','json\x20|\x20pretty\x20|\x20compress','project','menuIds','Page\x20number','Read\x20value\x20from\x20environment\x20variable','output','Force\x20overwrite','Rabetbase\x20CLI','description','Use\x20remote','fromEnv','db-id','code','Name','env'];a189_0x39ca=function(){return _0x1799fc;};return a189_0x39ca();}export const NPM_PACKAGE_NAME=a189_0x461991(0x1f0);export const GLOBAL_FLAGS=[{'name':a189_0x461991(0x1a7),'meowKey':a189_0x461991(0x1a7),'type':a189_0x461991(0x1bb),'description':'Override\x20appcode','hint':a189_0x461991(0x1b9)},{'name':'app','meowKey':a189_0x461991(0x1b1),'type':a189_0x461991(0x1bb),'description':'Select\x20app\x20profile\x20by\x20name','hint':a189_0x461991(0x1d9)},{'name':a189_0x461991(0x1a2),'meowKey':a189_0x461991(0x1a2),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1db),'hint':a189_0x461991(0x1dc)},{'name':a189_0x461991(0x1b0),'meowKey':a189_0x461991(0x1b0),'type':'string','description':a189_0x461991(0x1e9),'hint':a189_0x461991(0x194)},{'name':'jq','meowKey':'jq','type':a189_0x461991(0x1bb),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a189_0x461991(0x1f6)},{'name':'dry-run','meowKey':a189_0x461991(0x1fe),'type':a189_0x461991(0x1b7),'description':'Preview\x20operation\x20without\x20executing'},{'name':a189_0x461991(0x1f3),'meowKey':a189_0x461991(0x1f3),'type':'boolean','description':a189_0x461991(0x1c4)},{'name':a189_0x461991(0x18e),'meowKey':a189_0x461991(0x1c7),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x204)},{'name':a189_0x461991(0x1eb),'meowKey':a189_0x461991(0x1eb),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a189_0x461991(0x195),'type':a189_0x461991(0x1b7),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a189_0x461991(0x1e8),'hidden':!![]},{'name':a189_0x461991(0x1df),'meowKey':a189_0x461991(0x1df),'type':'boolean','description':a189_0x461991(0x208)},{'name':a189_0x461991(0x1ad),'meowKey':'name','type':'string','description':a189_0x461991(0x1a1),'hidden':!![]},{'name':a189_0x461991(0x1bd),'meowKey':a189_0x461991(0x1bd),'type':'string','description':a189_0x461991(0x1b8),'hidden':!![]},{'name':a189_0x461991(0x1cd),'meowKey':a189_0x461991(0x1cd),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x1a3),'hidden':!![]},{'name':a189_0x461991(0x1ce),'meowKey':a189_0x461991(0x1ce),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x1f2),'hidden':!![]},{'name':a189_0x461991(0x199),'meowKey':a189_0x461991(0x199),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x202),'hidden':!![]},{'name':a189_0x461991(0x1ff),'meowKey':a189_0x461991(0x1ff),'type':a189_0x461991(0x1bb),'description':'JSON\x20params','hidden':!![]},{'name':a189_0x461991(0x1b2),'meowKey':'datasetcode','type':'string','description':a189_0x461991(0x203),'hidden':!![]},{'name':a189_0x461991(0x200),'meowKey':a189_0x461991(0x200),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a189_0x461991(0x1c3),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x1cf),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a189_0x461991(0x212),'hidden':!![]},{'name':a189_0x461991(0x1c0),'meowKey':'type','type':a189_0x461991(0x1bb),'description':a189_0x461991(0x20a),'hidden':!![]},{'name':'file','meowKey':a189_0x461991(0x1d1),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1d2),'hidden':!![]},{'name':'sqlcode','meowKey':a189_0x461991(0x205),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x18f),'hidden':!![]},{'name':a189_0x461991(0x1fd),'meowKey':a189_0x461991(0x1d4),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1e3),'hidden':!![]},{'name':a189_0x461991(0x1f8),'meowKey':a189_0x461991(0x1f8),'type':a189_0x461991(0x1bb),'description':'SQL\x20name','hidden':!![]},{'name':a189_0x461991(0x19f),'meowKey':a189_0x461991(0x1d8),'type':'string','description':a189_0x461991(0x1ea),'hidden':!![]},{'name':a189_0x461991(0x1ba),'meowKey':a189_0x461991(0x1ba),'type':'string','description':a189_0x461991(0x1ea),'hidden':!![]},{'name':'description','meowKey':a189_0x461991(0x19c),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1ac),'hidden':!![]},{'name':'description-file','meowKey':a189_0x461991(0x1f5),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1be),'hidden':!![]},{'name':'page','meowKey':a189_0x461991(0x1d6),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x197),'hidden':!![]},{'name':a189_0x461991(0x1d5),'meowKey':a189_0x461991(0x1d5),'type':'string','description':a189_0x461991(0x1e1),'hidden':!![]},{'name':a189_0x461991(0x1c9),'meowKey':'keyword','type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1b5),'hidden':!![]},{'name':a189_0x461991(0x1a0),'meowKey':a189_0x461991(0x1a0),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1e0),'hidden':!![]},{'name':a189_0x461991(0x209),'meowKey':'sql','type':'string','description':a189_0x461991(0x1f7),'hidden':!![]},{'name':a189_0x461991(0x1af),'meowKey':a189_0x461991(0x1af),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x20b),'hidden':!![]},{'name':a189_0x461991(0x1cc),'meowKey':a189_0x461991(0x1cc),'type':a189_0x461991(0x1bb),'description':'Operation\x20type','hidden':!![]},{'name':a189_0x461991(0x1b4),'meowKey':a189_0x461991(0x1b4),'type':'string','description':a189_0x461991(0x193),'hidden':!![]},{'name':a189_0x461991(0x1aa),'meowKey':a189_0x461991(0x1f1),'type':a189_0x461991(0x1b7),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a189_0x461991(0x1b3),'meowKey':a189_0x461991(0x1b3),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1bc),'hidden':!![]},{'name':a189_0x461991(0x1a5),'meowKey':a189_0x461991(0x1a5),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1ee),'hidden':!![]},{'name':a189_0x461991(0x1a6),'meowKey':a189_0x461991(0x1a6),'type':'string','description':a189_0x461991(0x1e5),'hidden':!![]},{'name':'stdin','meowKey':a189_0x461991(0x1ed),'type':a189_0x461991(0x1b7),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a189_0x461991(0x1e2),'meowKey':a189_0x461991(0x19e),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x198),'hidden':!![]},{'name':a189_0x461991(0x1e4),'meowKey':a189_0x461991(0x1e4),'type':a189_0x461991(0x1b7),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a189_0x461991(0x20c),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x19a),'hidden':!![]},{'name':a189_0x461991(0x1ae),'meowKey':'confirm','type':'boolean','description':a189_0x461991(0x192),'hidden':!![]},{'name':a189_0x461991(0x190),'meowKey':a189_0x461991(0x190),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x19d),'hidden':!![]},{'name':a189_0x461991(0x1e7),'meowKey':'verbose','type':a189_0x461991(0x1b7),'description':'Verbose\x20output','hidden':!![]},{'name':a189_0x461991(0x20d),'meowKey':a189_0x461991(0x1c8),'type':'string','description':a189_0x461991(0x1f9),'hidden':!![]},{'name':a189_0x461991(0x1c5),'meowKey':a189_0x461991(0x1c5),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1a9),'hidden':!![]},{'name':'parent-id','meowKey':a189_0x461991(0x1ca),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a189_0x461991(0x1ef),'meowKey':a189_0x461991(0x1ef),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1d7),'hidden':!![]},{'name':a189_0x461991(0x201),'meowKey':a189_0x461991(0x1d3),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x206),'hidden':!![]},{'name':'expect-path','meowKey':a189_0x461991(0x1ab),'type':'string','description':a189_0x461991(0x1e6),'hidden':!![]},{'name':'expected-children-count','meowKey':a189_0x461991(0x1ec),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1fc),'hidden':!![]},{'name':'menu-ids','meowKey':a189_0x461991(0x196),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1b6),'hidden':!![]},{'name':a189_0x461991(0x1da),'meowKey':'taskId','type':'string','description':a189_0x461991(0x1c1),'hidden':!![]},{'name':a189_0x461991(0x1bf),'meowKey':a189_0x461991(0x1de),'type':a189_0x461991(0x1bb),'description':'Operation\x20type','hidden':!![]},{'name':a189_0x461991(0x191),'meowKey':a189_0x461991(0x1cb),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1a4),'hidden':!![]}];function a189_0x5820(_0x3efd24,_0x459768){_0x3efd24=_0x3efd24-0x18e;const _0x39ca5a=a189_0x39ca();let _0x5820ed=_0x39ca5a[_0x3efd24];return _0x5820ed;}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a189_0x461991(0x1b1),a189_0x461991(0x1a2),a189_0x461991(0x1b0),'jq',a189_0x461991(0x1dd),a189_0x461991(0x1f3),a189_0x461991(0x18e),'ci']);export function buildMeowFlags(){const _0x4b7dc2=a189_0x461991;return Object['fromEntries'](GLOBAL_FLAGS[_0x4b7dc2(0x20e)](_0x11e9b5=>[_0x11e9b5[_0x4b7dc2(0x1fa)],{'type':_0x11e9b5['type']}]));}
|
|
1
|
+
const a196_0xf951fb=a196_0x3af9;(function(_0x26bf8d,_0x52d35e){const _0x2aad5e=a196_0x3af9,_0x102dd3=_0x26bf8d();while(!![]){try{const _0x565c72=-parseInt(_0x2aad5e(0x125))/0x1+-parseInt(_0x2aad5e(0xfd))/0x2+parseInt(_0x2aad5e(0xe3))/0x3+-parseInt(_0x2aad5e(0xdb))/0x4*(parseInt(_0x2aad5e(0xf0))/0x5)+parseInt(_0x2aad5e(0xc8))/0x6+-parseInt(_0x2aad5e(0x101))/0x7+-parseInt(_0x2aad5e(0x10a))/0x8*(-parseInt(_0x2aad5e(0x114))/0x9);if(_0x565c72===_0x52d35e)break;else _0x102dd3['push'](_0x102dd3['shift']());}catch(_0x594628){_0x102dd3['push'](_0x102dd3['shift']());}}}(a196_0x5573,0x64faf));function a196_0x3af9(_0x372d9c,_0x2cb1e7){_0x372d9c=_0x372d9c-0xc8;const _0x557354=a196_0x5573();let _0x3af92a=_0x557354[_0x372d9c];return _0x3af92a;}export const CLI_BIN_NAME=a196_0xf951fb(0x115);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a196_0xf951fb(0xfb);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a196_0xf951fb(0x12d),'type':a196_0xf951fb(0xf9),'description':'Override\x20appcode','hint':a196_0xf951fb(0xd7)},{'name':a196_0xf951fb(0x118),'meowKey':'app','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcd),'hint':a196_0xf951fb(0xf7)},{'name':a196_0xf951fb(0x117),'meowKey':'env','type':a196_0xf951fb(0xf9),'description':'Environment','hint':a196_0xf951fb(0x123)},{'name':'format','meowKey':a196_0xf951fb(0x105),'type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a196_0xf951fb(0xcf),'hint':a196_0xf951fb(0x119)},{'name':a196_0xf951fb(0xd0),'meowKey':'dryRun','type':a196_0xf951fb(0x139),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a196_0xf951fb(0x128),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xd4)},{'name':a196_0xf951fb(0xcb),'meowKey':'nonInteractive','type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x10f)},{'name':a196_0xf951fb(0x129),'meowKey':a196_0xf951fb(0x129),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xdc)},{'name':a196_0xf951fb(0x100),'meowKey':a196_0xf951fb(0x100),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x13e)},{'name':'ci','meowKey':'ci','type':a196_0xf951fb(0x139),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a196_0xf951fb(0xf1),'meowKey':'help','type':a196_0xf951fb(0x139),'description':'Show\x20help'},{'name':a196_0xf951fb(0x134),'meowKey':'name','type':a196_0xf951fb(0xf9),'description':'Name','hidden':!![]},{'name':a196_0xf951fb(0xc9),'meowKey':a196_0xf951fb(0xc9),'type':'string','description':a196_0xf951fb(0xf2),'hidden':!![]},{'name':a196_0xf951fb(0x13c),'meowKey':a196_0xf951fb(0x13c),'type':a196_0xf951fb(0x139),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a196_0xf951fb(0x104),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x12c),'hidden':!![]},{'name':'output','meowKey':a196_0xf951fb(0xe7),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe1),'hidden':!![]},{'name':a196_0xf951fb(0x121),'meowKey':a196_0xf951fb(0x121),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xff),'hidden':!![]},{'name':a196_0xf951fb(0xda),'meowKey':'datasetcode','type':'string','description':a196_0xf951fb(0xf5),'hidden':!![]},{'name':a196_0xf951fb(0xdd),'meowKey':a196_0xf951fb(0xdd),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x138),'hidden':!![]},{'name':a196_0xf951fb(0xd1),'meowKey':a196_0xf951fb(0x11d),'type':'boolean','description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x108),'hidden':!![]},{'name':a196_0xf951fb(0x106),'meowKey':'type','type':a196_0xf951fb(0xf9),'description':'Type\x20filter','hidden':!![]},{'name':a196_0xf951fb(0xe8),'meowKey':a196_0xf951fb(0xe8),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x136),'hidden':!![]},{'name':a196_0xf951fb(0x111),'meowKey':a196_0xf951fb(0x111),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xd2),'hidden':!![]},{'name':a196_0xf951fb(0xe6),'meowKey':'sqlName','type':a196_0xf951fb(0xf9),'description':'SQL\x20name','hidden':!![]},{'name':a196_0xf951fb(0x13d),'meowKey':a196_0xf951fb(0x13d),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x110),'hidden':!![]},{'name':a196_0xf951fb(0xed),'meowKey':'dbId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0xde),'meowKey':'dbid','type':'string','description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0x135),'meowKey':'description','type':'string','description':a196_0xf951fb(0x124),'hidden':!![]},{'name':a196_0xf951fb(0xf6),'meowKey':'descriptionFile','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10b),'hidden':!![]},{'name':a196_0xf951fb(0xd6),'meowKey':'page','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10c),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a196_0xf951fb(0xf9),'description':'Page\x20size','hidden':!![]},{'name':a196_0xf951fb(0x10d),'meowKey':a196_0xf951fb(0x10d),'type':'string','description':a196_0xf951fb(0xf8),'hidden':!![]},{'name':a196_0xf951fb(0xe0),'meowKey':'code','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x113),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x131),'hidden':!![]},{'name':a196_0xf951fb(0x12e),'meowKey':a196_0xf951fb(0x12e),'type':a196_0xf951fb(0xf9),'description':'Schemas','hidden':!![]},{'name':a196_0xf951fb(0xd3),'meowKey':'operation','type':'string','description':a196_0xf951fb(0x12f),'hidden':!![]},{'name':a196_0xf951fb(0xd9),'meowKey':a196_0xf951fb(0xd9),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xfe),'hidden':!![]},{'name':'skip-imports','meowKey':a196_0xf951fb(0xec),'type':a196_0xf951fb(0x139),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0xf951fb(0x102),'meowKey':a196_0xf951fb(0x102),'type':a196_0xf951fb(0xf9),'description':'Config\x20key','hidden':!![]},{'name':a196_0xf951fb(0xd8),'meowKey':'value','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcc),'hidden':!![]},{'name':a196_0xf951fb(0xdf),'meowKey':a196_0xf951fb(0xdf),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x109),'hidden':!![]},{'name':a196_0xf951fb(0x13b),'meowKey':a196_0xf951fb(0x13b),'type':a196_0xf951fb(0x139),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a196_0xf951fb(0x11e),'meowKey':a196_0xf951fb(0xce),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11c),'hidden':!![]},{'name':'reveal','meowKey':a196_0xf951fb(0x12a),'type':a196_0xf951fb(0x139),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a196_0xf951fb(0xd5),'meowKey':a196_0xf951fb(0xd5),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xfa),'hidden':!![]},{'name':a196_0xf951fb(0xe4),'meowKey':a196_0xf951fb(0xe4),'type':a196_0xf951fb(0x139),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0xf951fb(0x107),'meowKey':'remote','type':'boolean','description':a196_0xf951fb(0x120),'hidden':!![]},{'name':a196_0xf951fb(0x10e),'meowKey':a196_0xf951fb(0x10e),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xe5),'hidden':!![]},{'name':a196_0xf951fb(0xee),'meowKey':a196_0xf951fb(0x13a),'type':'string','description':a196_0xf951fb(0xf4),'hidden':!![]},{'name':a196_0xf951fb(0x126),'meowKey':a196_0xf951fb(0x126),'type':a196_0xf951fb(0xf9),'description':'Menu\x20label','hidden':!![]},{'name':a196_0xf951fb(0x116),'meowKey':a196_0xf951fb(0xea),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11a),'hidden':!![]},{'name':'sort','meowKey':a196_0xf951fb(0x132),'type':a196_0xf951fb(0xf9),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a196_0xf951fb(0x133),'meowKey':'expectParentId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xf3),'hidden':!![]},{'name':a196_0xf951fb(0x122),'meowKey':'expectPath','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xef),'hidden':!![]},{'name':'expected-children-count','meowKey':a196_0xf951fb(0x11f),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x13f),'hidden':!![]},{'name':a196_0xf951fb(0x112),'meowKey':a196_0xf951fb(0x130),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe2),'hidden':!![]},{'name':'task-id','meowKey':a196_0xf951fb(0x11b),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xeb),'hidden':!![]},{'name':a196_0xf951fb(0x137),'meowKey':a196_0xf951fb(0x103),'type':a196_0xf951fb(0xf9),'description':'Operation\x20type','hidden':!![]},{'name':a196_0xf951fb(0xfc),'meowKey':'functionNode','type':'string','description':a196_0xf951fb(0xe9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0xf951fb(0x12d),a196_0xf951fb(0x118),a196_0xf951fb(0x117),a196_0xf951fb(0x105),'jq','dry-run','yes',a196_0xf951fb(0xcb),'ci']);export function buildMeowFlags(){const _0x32f589=a196_0xf951fb;return Object[_0x32f589(0x12b)](GLOBAL_FLAGS[_0x32f589(0xca)](_0x38bc41=>[_0x38bc41['meowKey'],{'type':_0x38bc41[_0x32f589(0x106)]}]));}function a196_0x5573(){const _0x8da5ac=['Use\x20global\x20config\x20scope','all','dbid','tags','code','Output\x20path','Comma-separated\x20menu\x20IDs','809091CnEGjP','confirm','Verbose\x20output','sql-name','output','file','Function\x20node','parentId','Asynchronous\x20task\x20ID','skipImports','db-id','expected-count','Expected\x20current\x20menu\x20path','690155jaJGXM','help','Title','Expected\x20current\x20parent\x20menu\x20id','Expected\x20affected\x20count','Dataset\x20code','description-file','<name>','Keyword\x20filter','string','Force\x20overwrite','@lovrabet/rabetbase-cli','function-node','1623650DSHDbk','Target\x20path','JSON\x20params','project','5535803bUAGWG','key','operationType','watch','format','type','remote','Record\x20ID','Tags','200yRnqzs','Description\x20file','Page\x20number','keyword','verbose','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20name','sqlcode','menu-ids','Code\x20filter','645876BUIeoT','rabetbase','parent-id','env','app','<expr>','Parent\x20menu\x20id','taskId','Read\x20value\x20from\x20environment\x20variable','enableBffSave','from-env','expectedChildrenCount','Use\x20remote','params','expect-path','production\x20|\x20daily','Description','409960VisVBT','label','DB\x20ID','yes','global','reveal','fromEntries','Watch\x20mode','appcode','schemas','Operation\x20type','menuIds','SQL\x20string','sort','expect-parent-id','name','description','File\x20path','operation-type','Apply\x20to\x20all','boolean','expectedCount','stdin','clear','sqlname','Use\x20project\x20config\x20scope','Expected\x20current\x20child\x20count','3002778wAJCqa','title','map','non-interactive','Config\x20value','Select\x20app\x20profile\x20by\x20name','fromEnv','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','dry-run','enable-bff-save','SQL\x20code','operation','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','page','<code>','value','target','datasetcode','4PymzfP'];a196_0x5573=function(){return _0x8da5ac;};return a196_0x5573();}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a197_0x250a(_0x24df64,_0x2579a6){_0x24df64=_0x24df64-0xfb;const _0x262d26=a197_0x262d();let _0x250adc=_0x262d26[_0x24df64];return _0x250adc;}const a197_0x167446=a197_0x250a;function a197_0x262d(){const _0x1163a8=['3EeFsMu','5829936EdyjcY','high-risk-write','3563034xiFqni','5615015sqMLUJ','production','5XvLKsi','123496FJByvy','137196FBivWV','en-US','compress','21677859ZkKobX','993798HnqPhF'];a197_0x262d=function(){return _0x1163a8;};return a197_0x262d();}(function(_0x9ab36c,_0x306c30){const _0x2d5ab3=a197_0x250a,_0x1b4899=_0x9ab36c();while(!![]){try{const _0x308040=-parseInt(_0x2d5ab3(0x101))/0x1*(parseInt(_0x2d5ab3(0xfc))/0x2)+parseInt(_0x2d5ab3(0x100))/0x3+-parseInt(_0x2d5ab3(0xfb))/0x4*(-parseInt(_0x2d5ab3(0x107))/0x5)+-parseInt(_0x2d5ab3(0x104))/0x6+-parseInt(_0x2d5ab3(0x105))/0x7+-parseInt(_0x2d5ab3(0x102))/0x8+parseInt(_0x2d5ab3(0xff))/0x9;if(_0x308040===_0x306c30)break;else _0x1b4899['push'](_0x1b4899['shift']());}catch(_0x50ac5c){_0x1b4899['push'](_0x1b4899['shift']());}}}(a197_0x262d,0x6b7cf));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a197_0x167446(0x106),'format':a197_0x167446(0xfe),'locale':a197_0x167446(0xfd),'riskLevel':a197_0x167446(0x103),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x167446(0xfe);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x323bd6=a198_0xa54c;(function(_0x4506f8,_0x3c9fe9){const _0x1bd918=a198_0xa54c,_0x1d4b57=_0x4506f8();while(!![]){try{const _0x3eb4ec=-parseInt(_0x1bd918(0x1ef))/0x1+-parseInt(_0x1bd918(0x1fe))/0x2*(-parseInt(_0x1bd918(0x1f0))/0x3)+parseInt(_0x1bd918(0x1f6))/0x4*(-parseInt(_0x1bd918(0x1ed))/0x5)+parseInt(_0x1bd918(0x1fa))/0x6+parseInt(_0x1bd918(0x1f3))/0x7+parseInt(_0x1bd918(0x1f5))/0x8+-parseInt(_0x1bd918(0x1fd))/0x9;if(_0x3eb4ec===_0x3c9fe9)break;else _0x1d4b57['push'](_0x1d4b57['shift']());}catch(_0x493404){_0x1d4b57['push'](_0x1d4b57['shift']());}}}(a198_0x519c,0x20b97));import{getEnv,isProduction}from'../constant/env.js';function a198_0x519c(){const _0x3da033=['902484RnZwgf','runtimeDomain','https://daily.lovrabet.com','https://user-daily.lovrabet.com','1351896Fvqyyr','userDomain','/web-app/app/','387909prElAm','302oryOXh','trim','5pBEBWr','https://user.lovrabet.com','58123ekYjjf','3561aUSIVE','https://api.lovrabet.com','https://daily-api.lovrabet.com','128093oqxNMn','/app/','304256Tauaki'];a198_0x519c=function(){return _0x3da033;};return a198_0x519c();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4c679e){const _0x5a8604=a198_0xa54c;customApiDomain=_0x4c679e?.['apiDomain'],customUserDomain=_0x4c679e?.[_0x5a8604(0x1fb)],customRuntimeDomain=_0x4c679e?.[_0x5a8604(0x1f7)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x323bd6(0x1ee):a198_0x323bd6(0x1f9));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a198_0x323bd6(0x1f1):a198_0x323bd6(0x1f2));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a198_0x323bd6(0x1f8);function a198_0xa54c(_0x2a318c,_0x127af9){_0x2a318c=_0x2a318c-0x1ec;const _0x519c93=a198_0x519c();let _0xa54cc0=_0x519c93[_0x2a318c];return _0xa54cc0;}export const getAppBaseUrl=_0x20eb52=>{const _0x529b2f=a198_0x323bd6,_0x54ac0c=encodeURIComponent(_0x20eb52[_0x529b2f(0x1ec)]());return isProduction(getEnv())?getAppDomain()+_0x529b2f(0x1f4)+_0x54ac0c:getAppDomain()+_0x529b2f(0x1fc)+_0x54ac0c;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a199_0x586b79=a199_0x38f6;function a199_0x38f6(_0x5cc1a4,_0x21c8b1){_0x5cc1a4=_0x5cc1a4-0x16b;const _0xcd32eb=a199_0xcd32();let _0x38f6e1=_0xcd32eb[_0x5cc1a4];return _0x38f6e1;}(function(_0x707905,_0x3f160b){const _0x29be73=a199_0x38f6,_0x5cccec=_0x707905();while(!![]){try{const _0x1de34e=parseInt(_0x29be73(0x16e))/0x1+-parseInt(_0x29be73(0x16c))/0x2*(-parseInt(_0x29be73(0x177))/0x3)+parseInt(_0x29be73(0x16b))/0x4*(parseInt(_0x29be73(0x170))/0x5)+-parseInt(_0x29be73(0x16d))/0x6+-parseInt(_0x29be73(0x172))/0x7*(parseInt(_0x29be73(0x16f))/0x8)+parseInt(_0x29be73(0x174))/0x9+-parseInt(_0x29be73(0x176))/0xa;if(_0x1de34e===_0x3f160b)break;else _0x5cccec['push'](_0x5cccec['shift']());}catch(_0x15f764){_0x5cccec['push'](_0x5cccec['shift']());}}}(a199_0xcd32,0xab18d));export const RABETBASE_ENV_VALUES=[a199_0x586b79(0x179),a199_0x586b79(0x171)];export function normalizeEnv(_0x15e9af){const _0x5b58be=a199_0x586b79;return _0x15e9af===_0x5b58be(0x175)?_0x5b58be(0x179):_0x15e9af;}export function isProduction(_0x1a5243){const _0x237448=a199_0x586b79;return normalizeEnv(_0x1a5243)===_0x237448(0x179);}export function isDaily(_0x308112){const _0x4852d8=a199_0x586b79;return normalizeEnv(_0x308112)===_0x4852d8(0x171);}export function isDev(_0x40b989){const _0x416f55=a199_0x586b79,_0x4f86b7=normalizeEnv(_0x40b989);return _0x4f86b7===_0x416f55(0x178)||_0x4f86b7===_0x416f55(0x173);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x586b79(0x179));function a199_0xcd32(){const _0x17b7d5=['1219752aWINox','1060djbOuc','daily','42SZIcsF','dev','11238993YWYmIC','online','7933350gcwTTM','1638108EXoEYV','development','production','17852zKwUeO','2gJRPIW','4502682CgpTYL','418440WilFGz'];a199_0xcd32=function(){return _0x17b7d5;};return a199_0xcd32();}export function getEnv(){return env;}export function initEnv(_0x2b7472){env=normalizeEnv(_0x2b7472);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a200_0x2fa73d=a200_0x41df;(function(_0x7eb5fb,_0x16d5fe){const _0x47283b=a200_0x41df,_0x376c0d=_0x7eb5fb();while(!![]){try{const _0x34cac5=-parseInt(_0x47283b(0x1e8))/0x1*(parseInt(_0x47283b(0x1ea))/0x2)+-parseInt(_0x47283b(0x1e9))/0x3+parseInt(_0x47283b(0x1e6))/0x4+parseInt(_0x47283b(0x1e7))/0x5+-parseInt(_0x47283b(0x1ef))/0x6*(parseInt(_0x47283b(0x1eb))/0x7)+-parseInt(_0x47283b(0x1ee))/0x8+parseInt(_0x47283b(0x1ec))/0x9*(parseInt(_0x47283b(0x1e4))/0xa);if(_0x34cac5===_0x16d5fe)break;else _0x376c0d['push'](_0x376c0d['shift']());}catch(_0x4e348d){_0x376c0d['push'](_0x376c0d['shift']());}}}(a200_0x2f40,0x96764));function a200_0x41df(_0x37b1ba,_0x3cc587){_0x37b1ba=_0x37b1ba-0x1e4;const _0x2f4028=a200_0x2f40();let _0x41dff4=_0x2f4028[_0x37b1ba];return _0x41dff4;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x2fa73d(0x1e5),a200_0x2fa73d(0x1ed),a200_0x2fa73d(0x1f0)];function a200_0x2f40(){const _0x56735d=['4396000Qggpsf','2OOgxqf','3662460CnqGgO','267532pvlZJX','2598239INITQI','9sQPtMQ','pretty','7366928DDLJto','18YZuKYj','compress','22879910DDZbch','json','3887400LliFHm'];a200_0x2f40=function(){return _0x56735d;};return a200_0x2f40();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a201_0x450e74=a201_0x4baa;function a201_0x4baa(_0x322094,_0x46f088){_0x322094=_0x322094-0xa6;const _0xfe1d0c=a201_0xfe1d();let _0x4baa4b=_0xfe1d0c[_0x322094];return _0x4baa4b;}(function(_0x3bac98,_0x23e580){const _0x189ec7=a201_0x4baa,_0x5526bc=_0x3bac98();while(!![]){try{const _0x4a0efa=-parseInt(_0x189ec7(0xae))/0x1+-parseInt(_0x189ec7(0xaa))/0x2*(-parseInt(_0x189ec7(0xaf))/0x3)+parseInt(_0x189ec7(0xa7))/0x4+parseInt(_0x189ec7(0xa9))/0x5+parseInt(_0x189ec7(0xad))/0x6+parseInt(_0x189ec7(0xab))/0x7+parseInt(_0x189ec7(0xa8))/0x8*(-parseInt(_0x189ec7(0xac))/0x9);if(_0x4a0efa===_0x23e580)break;else _0x5526bc['push'](_0x5526bc['shift']());}catch(_0x342e8f){_0x5526bc['push'](_0x5526bc['shift']());}}}(a201_0xfe1d,0xea4a1));export const DEFAULT_API_DIR=a201_0x450e74(0xa6);function a201_0xfe1d(){const _0x5f587e=['6148276qTORui','2792oLmmai','8926005PHVnyZ','285582OXNOtP','260393YbRvWB','76185GVscTg','2969388OagUUg','511597ufybJV','12OkJMCG','./src/api'];a201_0xfe1d=function(){return _0x5f587e;};return a201_0xfe1d();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a202_0x740c(){const _0x31cefa=['21qUHmwq','611086lnqiiO','1010mkWlBg','high-risk-write','13542FrckkZ','6773388WDdmYD','write','40WYCtNR','read','81788TzPYHO','510nrzGae','89881ICXmtT','211848jZFywK','2zNsGDK','938943maAthI'];a202_0x740c=function(){return _0x31cefa;};return a202_0x740c();}function a202_0xb7bb(_0x3ab825,_0x416c12){_0x3ab825=_0x3ab825-0x114;const _0x740cf1=a202_0x740c();let _0xb7bb2=_0x740cf1[_0x3ab825];return _0xb7bb2;}const a202_0x185160=a202_0xb7bb;(function(_0x24d41b,_0x2b2831){const _0x28d2de=a202_0xb7bb,_0xd2d7c3=_0x24d41b();while(!![]){try{const _0x272458=parseInt(_0x28d2de(0x11c))/0x1*(parseInt(_0x28d2de(0x11f))/0x2)+parseInt(_0x28d2de(0x11e))/0x3*(parseInt(_0x28d2de(0x11b))/0x4)+parseInt(_0x28d2de(0x119))/0x5*(-parseInt(_0x28d2de(0x122))/0x6)+-parseInt(_0x28d2de(0x118))/0x7+-parseInt(_0x28d2de(0x116))/0x8*(parseInt(_0x28d2de(0x11d))/0x9)+parseInt(_0x28d2de(0x120))/0xa*(parseInt(_0x28d2de(0x11a))/0xb)+-parseInt(_0x28d2de(0x114))/0xc;if(_0x272458===_0x2b2831)break;else _0xd2d7c3['push'](_0xd2d7c3['shift']());}catch(_0x429d0f){_0xd2d7c3['push'](_0xd2d7c3['shift']());}}}(a202_0x740c,0x74f85));export const RISK_LEVEL_VALUES=[a202_0x185160(0x117),a202_0x185160(0x115),a202_0x185160(0x121)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x533d38,_0x1d9278){const _0x3be4b6=a203_0x38da,_0x490311=_0x533d38();while(!![]){try{const _0x3348be=-parseInt(_0x3be4b6(0x18e))/0x1+parseInt(_0x3be4b6(0x1a0))/0x2+parseInt(_0x3be4b6(0x189))/0x3+parseInt(_0x3be4b6(0x1a2))/0x4*(parseInt(_0x3be4b6(0x18c))/0x5)+-parseInt(_0x3be4b6(0x196))/0x6*(-parseInt(_0x3be4b6(0x1a4))/0x7)+parseInt(_0x3be4b6(0x18b))/0x8+-parseInt(_0x3be4b6(0x19a))/0x9*(parseInt(_0x3be4b6(0x19c))/0xa);if(_0x3348be===_0x1d9278)break;else _0x490311['push'](_0x490311['shift']());}catch(_0x26abea){_0x490311['push'](_0x490311['shift']());}}}(a203_0x30cf,0x320b7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x587395){const _0x5be3c5=a203_0x38da;return typeof _0x587395===_0x5be3c5(0x18f)&&_0x587395[_0x5be3c5(0x19d)]()?_0x587395[_0x5be3c5(0x19d)]():undefined;}function appProfiles(_0x1e217c){const _0x27e801=a203_0x38da;return _0x1e217c[_0x27e801(0x199)]&&typeof _0x1e217c[_0x27e801(0x199)]===_0x27e801(0x187)?_0x1e217c[_0x27e801(0x199)]:{};}function resolveDefaultAppName(_0x426e07){const _0x12f7cb=a203_0x38da,_0x443ec2=stringConfigValue(_0x426e07['defaultApp']);if(_0x443ec2)return _0x443ec2;return Object[_0x12f7cb(0x1a1)](appProfiles(_0x426e07))[0x0];}function resolveTopLevelAppCode(_0xfb9f21){const _0x2576b8=a203_0x38da;return stringConfigValue(_0xfb9f21[_0x2576b8(0x1a5)])||stringConfigValue(_0xfb9f21[_0x2576b8(0x19f)]);}function a203_0x38da(_0x20179d,_0x3eae3d){_0x20179d=_0x20179d-0x180;const _0x30cf52=a203_0x30cf();let _0x38da75=_0x30cf52[_0x20179d];return _0x38da75;}function a203_0x30cf(){const _0x36189d=['app','88436nnCaju','keys','383140PXXRwV','riskLevel','7RXriCA','appcode','daily','ENV','FORMAT','pageSize','locale','format','true','RISK_LEVEL','object','cookie','200829NmGOCe','read','2562976IvIpab','10dPEjsq','PAGE_SIZE','121704omVrhV','string','env','apiDir','entries','maxRisk','COOKIE','globalConfig','1896726VSHqMX','MAX_RISK','accessKey','apps','9621blqQYQ','length','5730ZPDobw','trim','inherit'];a203_0x30cf=function(){return _0x36189d;};return a203_0x30cf();}export function resolveAppConfig({raw:_0x423f9d,flags:_0x67e062,layers:_0x3145b9,readEnv:_0x10938c}){const _0x4c036a=a203_0x38da,_0x33d005=_0x3145b9?.['projectConfig']??{},_0x1012b3=_0x3145b9?.[_0x4c036a(0x195)]??{},_0x5ac3f4=Object[_0x4c036a(0x1a1)](_0x33d005)[_0x4c036a(0x19b)]>0x0,_0x2322bc=!_0x5ac3f4||_0x33d005[_0x4c036a(0x19e)]===!![],_0x14329c=_0x5ac3f4?resolveDefaultAppName(_0x33d005):undefined,_0x3ca976=_0x2322bc?resolveDefaultAppName(_0x1012b3):undefined,_0x14197b=stringConfigValue(_0x67e062['app']),_0x4e7f09=_0x10938c('APP'),_0x20fa38={};if(_0x423f9d[_0x4c036a(0x199)]&&typeof _0x423f9d[_0x4c036a(0x199)]===_0x4c036a(0x187))for(const [_0x3f3273,_0x1fe6b0]of Object[_0x4c036a(0x192)](_0x423f9d[_0x4c036a(0x199)])){_0x1fe6b0&&typeof _0x1fe6b0==='object'&&_0x1fe6b0['appcode']&&(_0x20fa38[_0x3f3273]=_0x1fe6b0);}const _0x1f7b46=_0x423f9d['defaultApp']||undefined,_0x3dbf9c=Object['keys'](_0x20fa38)['length']>0x0,_0x1362c8=_0x14197b||_0x14329c||_0x4e7f09||_0x3ca976||_0x1f7b46||undefined,_0x52a748=stringConfigValue(_0x67e062[_0x4c036a(0x1a5)]),_0x5b3492=_0x52a748?Object[_0x4c036a(0x192)](_0x20fa38)['find'](([,_0x5278fa])=>_0x5278fa?.[_0x4c036a(0x1a5)]===_0x52a748):undefined,_0x478467=_0x5b3492?.[0x0],_0x5283d9=_0x5b3492?.[0x1],_0x2ab661=_0x52a748?_0x478467:_0x1362c8;let _0x1d58a9=_0x2ab661&&_0x20fa38[_0x2ab661]?_0x20fa38[_0x2ab661]:undefined;_0x52a748&&_0x5283d9&&(_0x1d58a9=_0x5283d9);const _0x3cd03b=_0x52a748?_0x5283d9??_0x1d58a9:_0x1d58a9,_0x27a873=!_0x14197b&&!_0x14329c&&_0x4e7f09&&_0x2ab661===_0x4e7f09,_0x4f3c36=_0x14197b||(_0x27a873?_0x4e7f09:undefined)||(_0x52a748?_0x478467:undefined),_0x542cc8=_0x3cd03b?.[_0x4c036a(0x1a5)],_0x4692b8=_0x5ac3f4?resolveTopLevelAppCode(_0x33d005):undefined,_0x1bb3c1=_0x2322bc?resolveTopLevelAppCode(_0x1012b3):undefined,_0x47f40e=_0x14197b||_0x14329c?_0x542cc8:undefined,_0x45ad17=!_0x14197b&&!_0x14329c?_0x542cc8:undefined,_0x32dd01=_0x52a748||_0x47f40e||_0x4692b8||_0x45ad17||_0x1bb3c1||undefined,_0x3e4851=_0x5ac3f4?stringConfigValue(_0x33d005[_0x4c036a(0x190)]):undefined,_0x42f28a=_0x2322bc?stringConfigValue(_0x1012b3[_0x4c036a(0x190)]):undefined,_0x69219d=_0x67e062[_0x4c036a(0x190)]||_0x3cd03b?.[_0x4c036a(0x190)]||_0x3e4851||_0x10938c(_0x4c036a(0x180))||_0x42f28a||_0x423f9d['env']||DEFAULT_CONFIG_VALUES[_0x4c036a(0x190)],_0x346b36=_0x3cd03b?.[_0x4c036a(0x183)]||_0x423f9d[_0x4c036a(0x183)]||DEFAULT_CONFIG_VALUES['locale'],_0x393558=_0x10938c(_0x4c036a(0x194))||_0x3cd03b?.[_0x4c036a(0x188)]||_0x423f9d[_0x4c036a(0x188)]||undefined,_0x29d3b8=_0x10938c('ACCESS_KEY')||_0x3cd03b?.[_0x4c036a(0x198)]||_0x423f9d[_0x4c036a(0x198)]||undefined,_0x27a8e5=_0x67e062[_0x4c036a(0x184)]||_0x10938c(_0x4c036a(0x181))||_0x3cd03b?.[_0x4c036a(0x184)]||_0x423f9d[_0x4c036a(0x184)],_0x2ec50d=normalizeLegacyOutputFormat(_0x27a8e5),_0x4e2ec0=_0x10938c(_0x4c036a(0x18d))||_0x3cd03b?.[_0x4c036a(0x182)]||_0x423f9d[_0x4c036a(0x182)],_0x181d33=_0x4e2ec0?Number(_0x4e2ec0)||undefined:undefined,_0x20e194=_0x10938c(_0x4c036a(0x186))||_0x10938c(_0x4c036a(0x197))||_0x3cd03b?.[_0x4c036a(0x1a3)]||_0x423f9d[_0x4c036a(0x1a3)]||_0x423f9d[_0x4c036a(0x193)],_0x5b13de=_0x20e194===_0x4c036a(0x18a)||_0x20e194==='write'?_0x20e194:DEFAULT_CONFIG_VALUES[_0x4c036a(0x1a3)],_0x21f335=_0x10938c('VERBOSE'),_0x3ab9a1=_0x21f335==='1'||_0x21f335===_0x4c036a(0x185),_0x14e991=_0x3cd03b?.[_0x4c036a(0x191)]||_0x423f9d[_0x4c036a(0x191)]||DEFAULT_CONFIG_VALUES[_0x4c036a(0x191)],_0x3eeb60=isDaily(normalizeEnv(String(_0x69219d)))?_0x4c036a(0x1a6):'production';return{'appCode':typeof _0x32dd01===_0x4c036a(0x18f)&&_0x32dd01[_0x4c036a(0x19d)]()?_0x32dd01['trim']():undefined,'env':_0x3eeb60,'locale':_0x346b36,'cookie':_0x393558,'accessKey':_0x29d3b8,'format':_0x2ec50d,'pageSize':_0x181d33,'riskLevel':_0x5b13de,'verbose':_0x3ab9a1,'apiDir':_0x14e991,'apps':_0x20fa38,'defaultApp':_0x1f7b46,'currentApp':_0x3dbf9c?_0x2ab661:undefined,'explicitAppName':_0x4f3c36};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a204_0x2ac5(_0x471171,_0x4e9390){_0x471171=_0x471171-0x11b;const _0x5253a5=a204_0x5253();let _0x2ac506=_0x5253a5[_0x471171];return _0x2ac506;}(function(_0x5c5d83,_0x233e21){const _0x5f1f13=a204_0x2ac5,_0xad6d71=_0x5c5d83();while(!![]){try{const _0x559502=parseInt(_0x5f1f13(0x11e))/0x1*(-parseInt(_0x5f1f13(0x11b))/0x2)+parseInt(_0x5f1f13(0x122))/0x3+parseInt(_0x5f1f13(0x121))/0x4*(parseInt(_0x5f1f13(0x125))/0x5)+-parseInt(_0x5f1f13(0x124))/0x6+parseInt(_0x5f1f13(0x123))/0x7+-parseInt(_0x5f1f13(0x120))/0x8+parseInt(_0x5f1f13(0x11c))/0x9;if(_0x559502===_0x233e21)break;else _0xad6d71['push'](_0xad6d71['shift']());}catch(_0x1d1c7b){_0xad6d71['push'](_0xad6d71['shift']());}}}(a204_0x5253,0x3df61));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x29405d){const _0x556239=a204_0x2ac5,{getCookie:_0x53a7f1}=await import(_0x556239(0x11f)),_0x18f940=_0x29405d[_0x556239(0x11d)]||_0x53a7f1(),_0x5daa59=_0x18f940?await getIsSessionValid():![];return{'cookie':_0x18f940,'isLoggedIn':_0x5daa59,async 'getOrLogin'(){if(_0x18f940&&_0x5daa59)return _0x18f940;throw CliErrors['authRequired']();}};}function a204_0x5253(){const _0x5c415b=['719010MmRZHZ','2362479ikyDaL','1043922aQZRFt','75OwRbEX','148102pTeFfc','2493081qGxnTN','cookie','2fqwmVh','../auth/get-cookie.js','2307712atNVUh','2712NFbaCd'];a204_0x5253=function(){return _0x5c415b;};return a204_0x5253();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a198_0x574baf=a198_0x537b;(function(_0x331ac5,_0x37c197){const _0x54dd8e=a198_0x537b,_0x31e176=_0x331ac5();while(!![]){try{const _0x3cfec0=-parseInt(_0x54dd8e(0x88))/0x1+parseInt(_0x54dd8e(0x9a))/0x2*(-parseInt(_0x54dd8e(0xa0))/0x3)+parseInt(_0x54dd8e(0x8d))/0x4*(-parseInt(_0x54dd8e(0x8f))/0x5)+parseInt(_0x54dd8e(0x97))/0x6+parseInt(_0x54dd8e(0xa4))/0x7*(parseInt(_0x54dd8e(0xb4))/0x8)+parseInt(_0x54dd8e(0xaf))/0x9*(parseInt(_0x54dd8e(0x87))/0xa)+parseInt(_0x54dd8e(0xa2))/0xb;if(_0x3cfec0===_0x37c197)break;else _0x31e176['push'](_0x31e176['shift']());}catch(_0x37d6e0){_0x31e176['push'](_0x31e176['shift']());}}}(a198_0x33ba,0x46a02));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=a198_0x574baf(0xa1);export const CONFIG_NAMES=[a198_0x574baf(0xa1),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a198_0x574baf(0xac)](_0x56f3d9=>_0x56f3d9!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3c7628){for(const _0x4a8deb of CONFIG_NAMES){const _0x92ea8c=resolve(_0x3c7628,_0x4a8deb);if(existsSync(_0x92ea8c))return _0x92ea8c;}return undefined;}export function findProjectRootDirectory(_0x18b107=process[a198_0x574baf(0x99)]()){let _0x214191=resolve(_0x18b107);const {root:_0x1a2b2b}=parse(_0x214191),_0x330447=homedir();while(!![]){if(resolveConfigPath(_0x214191)){if(_0x214191===_0x330447)break;return _0x214191;}if(_0x214191===_0x1a2b2b||_0x214191===_0x330447)break;const _0xe3bc26=dirname(_0x214191);if(_0xe3bc26===_0x214191)break;_0x214191=_0xe3bc26;}return resolve(_0x18b107);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1731b5){const _0x1c7962=a198_0x574baf;if(!existsSync(_0x1731b5))return{'status':'missing'};try{const _0xcee966=readFileSync(_0x1731b5,{'encoding':'utf8'});if(!_0xcee966?.[_0x1c7962(0x98)]())return{'status':_0x1c7962(0xa5)};const _0x205964=JSON['parse'](_0xcee966);return{'status':'ok','data':_0x205964};}catch(_0x43d3e0){return{'status':_0x1c7962(0x95),'message':_0x43d3e0 instanceof Error?_0x43d3e0[_0x1c7962(0xad)]:String(_0x43d3e0)};}}function parseCliConfigJsonFile(_0x48e81f,_0x595a20,_0x4c4dee){const _0x1b45b3=a198_0x574baf,_0xa66537=inspectCliConfigJsonFile(_0x48e81f);if(_0xa66537[_0x1b45b3(0x8e)]==='missing'||_0xa66537[_0x1b45b3(0x8e)]===_0x1b45b3(0xa5))return{};if(_0xa66537[_0x1b45b3(0x8e)]==='ok')return _0xa66537['data'];return _0x595a20===_0x1b45b3(0x9c)&&_0x4c4dee&&console['error'](CLI_BIN_NAME+':\x20'+_0x4c4dee+_0x1b45b3(0xa6)+_0x48e81f+'\x0a\x20\x20'+_0xa66537[_0x1b45b3(0xad)]),{};}function normalizeLegacyConfigShape(_0x3331a7){const _0x336887=a198_0x574baf;if(!_0x3331a7||typeof _0x3331a7!==_0x336887(0xab))return{'config':{},'migrated':![]};const _0x628e40={..._0x3331a7},_0x48692a=_0x628e40['apps']&&typeof _0x628e40[_0x336887(0xae)]===_0x336887(0xab)?{..._0x628e40[_0x336887(0xae)]}:{},_0x918600=Object['keys'](_0x48692a)[_0x336887(0xa8)],_0x4621b0=_0x628e40[_0x336887(0xa9)]||_0x628e40['app'];let _0xb02577=![];if(_0x4621b0&&_0x918600===0x0){const _0xeeea2b=typeof _0x628e40[_0x336887(0xb0)]===_0x336887(0x8b)&&_0x628e40[_0x336887(0xb0)][_0x336887(0x98)]()?_0x628e40[_0x336887(0xb0)]:String(_0x4621b0)[_0x336887(0x98)]();_0x48692a[_0xeeea2b]={'appcode':String(_0x4621b0)[_0x336887(0x98)](),..._0x628e40['env']!=null?{'env':_0x628e40[_0x336887(0xaa)]}:{},..._0x628e40[_0x336887(0x9e)]!=null?{'apiDir':_0x628e40[_0x336887(0x9e)]}:{},..._0x628e40['cookie']!=null?{'cookie':_0x628e40[_0x336887(0x9f)]}:{},..._0x628e40[_0x336887(0x9b)]!=null?{'accessKey':_0x628e40[_0x336887(0x9b)]}:{},..._0x628e40[_0x336887(0x94)]!=null?{'format':_0x628e40[_0x336887(0x94)]}:{},..._0x628e40[_0x336887(0xa3)]!=null?{'pageSize':_0x628e40[_0x336887(0xa3)]}:{},..._0x628e40[_0x336887(0x96)]!=null?{'riskLevel':_0x628e40[_0x336887(0x96)]}:{},..._0x628e40[_0x336887(0xb1)]!=null?{'locale':_0x628e40['locale']}:{}},_0x628e40['apps']=_0x48692a;if(!_0x628e40[_0x336887(0xb0)])_0x628e40[_0x336887(0xb0)]=_0xeeea2b;_0xb02577=!![];}return(_0x336887(0xa9)in _0x628e40||'app'in _0x628e40)&&(delete _0x628e40['appcode'],delete _0x628e40[_0x336887(0x9d)],_0xb02577=!![]),{'config':_0x628e40,'migrated':_0xb02577};}function writeNormalizedConfigIfNeeded(_0x4db6cf,_0x5693e4){const _0x14a426=a198_0x574baf,_0xdd8119=JSON[_0x14a426(0x8c)](_0x5693e4,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x4db6cf)===_0xdd8119)return;writeConfigFile(_0x4db6cf,_0x5693e4),normalizedWriteCache[_0x14a426(0x91)](_0x4db6cf,_0xdd8119);}function a198_0x33ba(){const _0x8cc96c=['set','silent','config','format','error','riskLevel','2844804JFbCql','trim','cwd','176MqnDKE','accessKey','warn','app','apiDir','cookie','9186RMCthk','.rabetbase.json','3050828EPRdYk','pageSize','98105dHrNfS','empty','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','Project','length','appcode','env','object','filter','message','apps','1591767YEWBmT','defaultApp','locale','keys','project','152emmFSm','20TOIHPQ','567783hNTcwS','inherit','utf8','string','stringify','5384exvdSi','status','910MxSZMp','migrated'];a198_0x33ba=function(){return _0x8cc96c;};return a198_0x33ba();}function parseAndNormalizeConfig(_0x5a6dcb,_0x5646b9,_0x3f1c24){const _0x5cd369=a198_0x574baf,_0x45204b=parseCliConfigJsonFile(_0x5a6dcb,_0x5646b9,_0x3f1c24),_0x2808cc=normalizeLegacyConfigShape(_0x45204b);if(_0x2808cc[_0x5cd369(0x90)])try{writeNormalizedConfigIfNeeded(_0x5a6dcb,_0x2808cc[_0x5cd369(0x93)]);}catch{}return _0x2808cc[_0x5cd369(0x93)];}export function loadRawConfigLayers(_0x298ec5){const _0x4901ce=a198_0x574baf;let _0x14967f={},_0x1de98b={};const _0x35766d=resolveConfigPath(homedir());_0x35766d&&(_0x14967f=parseAndNormalizeConfig(_0x35766d,_0x4901ce(0x9c),'Global'));const _0x130084=_0x298ec5??findProjectRootDirectory(),_0x12f46f=resolveConfigPath(_0x130084);return _0x12f46f&&(_0x1de98b=parseAndNormalizeConfig(_0x12f46f,_0x4901ce(0x9c),_0x4901ce(0xa7))),{'globalPath':_0x35766d,'projectPath':_0x12f46f,'globalConfig':_0x14967f,'projectConfig':_0x1de98b};}const INHERIT_WHITELIST=['cookie',a198_0x574baf(0x9b),'locale',a198_0x574baf(0x94),a198_0x574baf(0x96),a198_0x574baf(0xa3)];export function mergeRawConfigLayers(_0x4becce){const _0xade805=a198_0x574baf,{globalConfig:_0x1f91b6,projectConfig:_0x21a52e}=_0x4becce,_0x3271fc=Object[_0xade805(0xb2)](_0x21a52e)[_0xade805(0xa8)]>0x0;if(!_0x3271fc)return mergeGlobalOnly(_0x1f91b6);if(_0x21a52e['inherit']===!![])return mergeFullInherit(_0x1f91b6,_0x21a52e);if(_0x21a52e['inherit']===![])return mergeIsolated(_0x21a52e);return mergeProjectFirst(_0x1f91b6,_0x21a52e);}function mergeGlobalOnly(_0x38ce02){const _0x4a3e8d=a198_0x574baf,_0x1feae4={..._0x38ce02},_0x3559d6=_0x38ce02[_0x4a3e8d(0xae)]&&typeof _0x38ce02[_0x4a3e8d(0xae)]===_0x4a3e8d(0xab)?_0x38ce02[_0x4a3e8d(0xae)]:{};if(Object[_0x4a3e8d(0xb2)](_0x3559d6)['length']>0x0)_0x1feae4[_0x4a3e8d(0xae)]=_0x3559d6;if(_0x38ce02[_0x4a3e8d(0xb0)])_0x1feae4[_0x4a3e8d(0xb0)]=_0x38ce02[_0x4a3e8d(0xb0)];else{const _0x407cc2=Object['keys'](_0x3559d6);if(_0x407cc2[_0x4a3e8d(0xa8)]>0x0)_0x1feae4['defaultApp']=_0x407cc2[0x0];}return _0x1feae4;}function mergeIsolated(_0x121a64){const _0x8db158=a198_0x574baf,_0x2744f7={..._0x121a64};delete _0x2744f7[_0x8db158(0x89)];const _0x33a0ea=_0x121a64[_0x8db158(0xae)]&&typeof _0x121a64['apps']===_0x8db158(0xab)?_0x121a64['apps']:{};Object[_0x8db158(0xb2)](_0x33a0ea)[_0x8db158(0xa8)]>0x0?_0x2744f7[_0x8db158(0xae)]=_0x33a0ea:delete _0x2744f7[_0x8db158(0xae)];if(_0x8db158(0xb0)in _0x121a64)_0x2744f7['defaultApp']=_0x121a64[_0x8db158(0xb0)];else Object['keys'](_0x33a0ea)[_0x8db158(0xa8)]>0x0?_0x2744f7[_0x8db158(0xb0)]=Object[_0x8db158(0xb2)](_0x33a0ea)[0x0]:delete _0x2744f7[_0x8db158(0xb0)];return _0x2744f7;}function a198_0x537b(_0x3a9f85,_0x4aedd1){_0x3a9f85=_0x3a9f85-0x87;const _0x33ba9e=a198_0x33ba();let _0x537bca=_0x33ba9e[_0x3a9f85];return _0x537bca;}function mergeProjectFirst(_0x3a9d5b,_0x3b0e5f){const _0x32c41b=a198_0x574baf,_0x4405a9={..._0x3b0e5f};delete _0x4405a9['inherit'];for(const _0x11649a of INHERIT_WHITELIST){!(_0x11649a in _0x4405a9)&&_0x11649a in _0x3a9d5b&&(_0x4405a9[_0x11649a]=_0x3a9d5b[_0x11649a]);}const _0xd76bf4=_0x3b0e5f[_0x32c41b(0xae)]&&typeof _0x3b0e5f['apps']==='object'?_0x3b0e5f['apps']:{};Object[_0x32c41b(0xb2)](_0xd76bf4)[_0x32c41b(0xa8)]>0x0?_0x4405a9['apps']=_0xd76bf4:delete _0x4405a9[_0x32c41b(0xae)];if(_0x32c41b(0xb0)in _0x3b0e5f)_0x4405a9[_0x32c41b(0xb0)]=_0x3b0e5f['defaultApp'];else Object['keys'](_0xd76bf4)[_0x32c41b(0xa8)]>0x0?_0x4405a9[_0x32c41b(0xb0)]=Object[_0x32c41b(0xb2)](_0xd76bf4)[0x0]:delete _0x4405a9[_0x32c41b(0xb0)];return _0x4405a9;}function mergeFullInherit(_0x172b0e,_0x1f9416){const _0x48c7c6=a198_0x574baf,_0x1386d9=_0x172b0e[_0x48c7c6(0xae)]&&typeof _0x172b0e['apps']==='object'?_0x172b0e[_0x48c7c6(0xae)]:{},_0x167b18=_0x1f9416[_0x48c7c6(0xae)]&&typeof _0x1f9416[_0x48c7c6(0xae)]===_0x48c7c6(0xab)?_0x1f9416[_0x48c7c6(0xae)]:{},_0x20a095={..._0x1386d9,..._0x167b18},_0x4310a2={..._0x172b0e,..._0x1f9416};delete _0x4310a2[_0x48c7c6(0x89)];if(Object[_0x48c7c6(0xb2)](_0x20a095)[_0x48c7c6(0xa8)]>0x0)_0x4310a2[_0x48c7c6(0xae)]=_0x20a095;if(_0x48c7c6(0xb0)in _0x1f9416)_0x4310a2[_0x48c7c6(0xb0)]=_0x1f9416[_0x48c7c6(0xb0)];else{if(Object['keys'](_0x167b18)[_0x48c7c6(0xa8)]>0x0)_0x4310a2[_0x48c7c6(0xb0)]=Object[_0x48c7c6(0xb2)](_0x167b18)[0x0];else{if(_0x172b0e[_0x48c7c6(0xb0)])_0x4310a2[_0x48c7c6(0xb0)]=_0x172b0e[_0x48c7c6(0xb0)];else{const _0x2f2a9b=Object[_0x48c7c6(0xb2)](_0x1386d9);if(_0x2f2a9b[_0x48c7c6(0xa8)]>0x0)_0x4310a2[_0x48c7c6(0xb0)]=_0x2f2a9b[0x0];}}}return _0x4310a2;}export function readRawConfigWithLayers(_0x2e298b){const _0x4d0473=loadRawConfigLayers(_0x2e298b);return{'config':mergeRawConfigLayers(_0x4d0473),'layers':_0x4d0473};}export function readRawConfig(_0x419098){return mergeRawConfigLayers(loadRawConfigLayers(_0x419098));}export function readConfigFile(_0x1d9b28){const _0x261462=a198_0x574baf;return parseAndNormalizeConfig(_0x1d9b28,_0x261462(0x92));}export function writeConfigFile(_0x8ddb38,_0x2ba851){const _0x40061b=a198_0x574baf,_0xb06739=dirname(_0x8ddb38);!existsSync(_0xb06739)&&mkdirSync(_0xb06739,{'recursive':!![]});const _0x14ff6a=_0x8ddb38+'.tmp';try{writeFileSync(_0x14ff6a,JSON['stringify'](_0x2ba851,null,0x2)+'\x0a',{'encoding':_0x40061b(0x8a),'mode':0x180}),renameSync(_0x14ff6a,_0x8ddb38);}catch(_0x353567){try{unlinkSync(_0x14ff6a);}catch{}throw _0x353567;}}export function resolveWriteConfigPath(_0x131d46){const _0x2982dc=a198_0x574baf,_0x2115b4=_0x131d46===_0x2982dc(0xb3)?process[_0x2982dc(0x99)]():homedir(),_0x3ebb56=resolveConfigPath(_0x2115b4);return _0x3ebb56??resolve(_0x2115b4,NEW_CONFIG_NAME);}
|
|
1
|
+
const a205_0x217270=a205_0x592b;(function(_0x573e27,_0x427b8c){const _0x462749=a205_0x592b,_0x4b0f36=_0x573e27();while(!![]){try{const _0x3cfb67=-parseInt(_0x462749(0x155))/0x1+-parseInt(_0x462749(0x157))/0x2*(parseInt(_0x462749(0x168))/0x3)+-parseInt(_0x462749(0x162))/0x4*(-parseInt(_0x462749(0x16f))/0x5)+-parseInt(_0x462749(0x151))/0x6+-parseInt(_0x462749(0x170))/0x7+-parseInt(_0x462749(0x16b))/0x8*(-parseInt(_0x462749(0x164))/0x9)+parseInt(_0x462749(0x14c))/0xa;if(_0x3cfb67===_0x427b8c)break;else _0x4b0f36['push'](_0x4b0f36['shift']());}catch(_0x117263){_0x4b0f36['push'](_0x4b0f36['shift']());}}}(a205_0x46d7,0xa24e1));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';function a205_0x592b(_0x4b81fa,_0x5d65a2){_0x4b81fa=_0x4b81fa-0x146;const _0x46d798=a205_0x46d7();let _0x592b19=_0x46d798[_0x4b81fa];return _0x592b19;}import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a205_0x217270(0x169);export const CONFIG_NAMES=['.rabetbase.json',a205_0x217270(0x14a),a205_0x217270(0x172)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a205_0x217270(0x16c)](_0x5191d7=>_0x5191d7!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x1bbf5c){for(const _0x3f818c of CONFIG_NAMES){const _0x27b9ec=resolve(_0x1bbf5c,_0x3f818c);if(existsSync(_0x27b9ec))return _0x27b9ec;}return undefined;}export function findProjectRootDirectory(_0x5ba754=process['cwd']()){let _0x21c462=resolve(_0x5ba754);const {root:_0x5323c9}=parse(_0x21c462),_0xda0890=homedir();while(!![]){if(resolveConfigPath(_0x21c462)){if(_0x21c462===_0xda0890)break;return _0x21c462;}if(_0x21c462===_0x5323c9||_0x21c462===_0xda0890)break;const _0x34f182=dirname(_0x21c462);if(_0x34f182===_0x21c462)break;_0x21c462=_0x34f182;}return resolve(_0x5ba754);}function a205_0x46d7(){const _0x335b0f=['16265nuktrI','8837563cXxuXS','parse','.lovrabetrc','warn','app','env','accessKey','missing','set','.lovrabet.json','length','20817260EOFFAl','message','.tmp','locale','inherit','2510424ZBMugB','trim','config','defaultApp','1221503GIbmeI','format','4KcrFJo','appcode','empty','cookie','pageSize','utf8','Project','data','keys','status','riskLevel','708rSwxep','error','443214hCIUgT','object','apps','project','38946VxYREs','.rabetbase.json','silent','152LrMdKF','filter','stringify','cwd'];a205_0x46d7=function(){return _0x335b0f;};return a205_0x46d7();}export function getProjectConfigPath(){const _0x250556=a205_0x217270;return resolveConfigPath(process[_0x250556(0x16e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x74253){const _0x5049f0=a205_0x217270;if(!existsSync(_0x74253))return{'status':'missing'};try{const _0x372b0f=readFileSync(_0x74253,{'encoding':_0x5049f0(0x15c)});if(!_0x372b0f?.[_0x5049f0(0x152)]())return{'status':_0x5049f0(0x159)};const _0x131dc2=JSON[_0x5049f0(0x171)](_0x372b0f);return{'status':'ok','data':_0x131dc2};}catch(_0x2352de){return{'status':_0x5049f0(0x163),'message':_0x2352de instanceof Error?_0x2352de[_0x5049f0(0x14d)]:String(_0x2352de)};}}function parseCliConfigJsonFile(_0x1f5184,_0x2e9367,_0x18b1b7){const _0x4cf84c=a205_0x217270,_0x4fe6d7=inspectCliConfigJsonFile(_0x1f5184);if(_0x4fe6d7[_0x4cf84c(0x160)]===_0x4cf84c(0x148)||_0x4fe6d7['status']==='empty')return{};if(_0x4fe6d7['status']==='ok')return _0x4fe6d7[_0x4cf84c(0x15e)];return _0x2e9367===_0x4cf84c(0x173)&&_0x18b1b7&&console['error'](CLI_BIN_NAME+':\x20'+_0x18b1b7+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x1f5184+'\x0a\x20\x20'+_0x4fe6d7[_0x4cf84c(0x14d)]),{};}function normalizeLegacyConfigShape(_0x3623f3){const _0x28b9fc=a205_0x217270;if(!_0x3623f3||typeof _0x3623f3!==_0x28b9fc(0x165))return{'config':{},'migrated':![]};const _0x57c525={..._0x3623f3},_0x5c69ae=_0x57c525[_0x28b9fc(0x166)]&&typeof _0x57c525[_0x28b9fc(0x166)]===_0x28b9fc(0x165)?{..._0x57c525[_0x28b9fc(0x166)]}:{},_0xaf4c84=Object[_0x28b9fc(0x15f)](_0x5c69ae)['length'],_0x19cd31=_0x57c525['appcode']||_0x57c525['app'];let _0x2d094f=![];if(_0x19cd31&&_0xaf4c84===0x0){const _0x57fdcf=typeof _0x57c525['defaultApp']==='string'&&_0x57c525[_0x28b9fc(0x154)]['trim']()?_0x57c525[_0x28b9fc(0x154)]:String(_0x19cd31)[_0x28b9fc(0x152)]();_0x5c69ae[_0x57fdcf]={'appcode':String(_0x19cd31)['trim'](),..._0x57c525[_0x28b9fc(0x146)]!=null?{'env':_0x57c525[_0x28b9fc(0x146)]}:{},..._0x57c525['apiDir']!=null?{'apiDir':_0x57c525['apiDir']}:{},..._0x57c525[_0x28b9fc(0x15a)]!=null?{'cookie':_0x57c525[_0x28b9fc(0x15a)]}:{},..._0x57c525[_0x28b9fc(0x147)]!=null?{'accessKey':_0x57c525[_0x28b9fc(0x147)]}:{},..._0x57c525['format']!=null?{'format':_0x57c525[_0x28b9fc(0x156)]}:{},..._0x57c525['pageSize']!=null?{'pageSize':_0x57c525[_0x28b9fc(0x15b)]}:{},..._0x57c525[_0x28b9fc(0x161)]!=null?{'riskLevel':_0x57c525[_0x28b9fc(0x161)]}:{},..._0x57c525['locale']!=null?{'locale':_0x57c525[_0x28b9fc(0x14f)]}:{}},_0x57c525[_0x28b9fc(0x166)]=_0x5c69ae;if(!_0x57c525[_0x28b9fc(0x154)])_0x57c525[_0x28b9fc(0x154)]=_0x57fdcf;_0x2d094f=!![];}return(_0x28b9fc(0x158)in _0x57c525||_0x28b9fc(0x174)in _0x57c525)&&(delete _0x57c525[_0x28b9fc(0x158)],delete _0x57c525[_0x28b9fc(0x174)],_0x2d094f=!![]),{'config':_0x57c525,'migrated':_0x2d094f};}function writeNormalizedConfigIfNeeded(_0x2df50d,_0x3b11ab){const _0x2e64c8=a205_0x217270,_0x463401=JSON[_0x2e64c8(0x16d)](_0x3b11ab,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2df50d)===_0x463401)return;writeConfigFile(_0x2df50d,_0x3b11ab),normalizedWriteCache[_0x2e64c8(0x149)](_0x2df50d,_0x463401);}function parseAndNormalizeConfig(_0x5a3e78,_0xaf0e76,_0x184e1f){const _0x134c9d=a205_0x217270,_0x3507c1=parseCliConfigJsonFile(_0x5a3e78,_0xaf0e76,_0x184e1f),_0x3fe59b=normalizeLegacyConfigShape(_0x3507c1);if(_0x3fe59b['migrated'])try{writeNormalizedConfigIfNeeded(_0x5a3e78,_0x3fe59b[_0x134c9d(0x153)]);}catch{}return _0x3fe59b[_0x134c9d(0x153)];}export function loadRawConfigLayers(_0x301f7d){const _0x262801=a205_0x217270;let _0x4b7b17={},_0x4b2b52={};const _0x5ead46=resolveConfigPath(homedir());_0x5ead46&&(_0x4b7b17=parseAndNormalizeConfig(_0x5ead46,'warn','Global'));const _0x2913b3=_0x301f7d??findProjectRootDirectory(),_0x50e52d=resolveConfigPath(_0x2913b3);return _0x50e52d&&(_0x4b2b52=parseAndNormalizeConfig(_0x50e52d,'warn',_0x262801(0x15d))),{'globalPath':_0x5ead46,'projectPath':_0x50e52d,'globalConfig':_0x4b7b17,'projectConfig':_0x4b2b52};}const INHERIT_WHITELIST=[a205_0x217270(0x15a),'accessKey',a205_0x217270(0x14f),a205_0x217270(0x156),'riskLevel',a205_0x217270(0x15b)];export function mergeRawConfigLayers(_0x390a62){const _0xef336f=a205_0x217270,{globalConfig:_0x6a1fc3,projectConfig:_0x276e28}=_0x390a62,_0x378780=Object[_0xef336f(0x15f)](_0x276e28)['length']>0x0;if(!_0x378780)return mergeGlobalOnly(_0x6a1fc3);if(_0x276e28[_0xef336f(0x150)]===!![])return mergeFullInherit(_0x6a1fc3,_0x276e28);if(_0x276e28[_0xef336f(0x150)]===![])return mergeIsolated(_0x276e28);return mergeProjectFirst(_0x6a1fc3,_0x276e28);}function mergeGlobalOnly(_0x5e5b0d){const _0x2424e5=a205_0x217270,_0x2f28da={..._0x5e5b0d},_0x283bc1=_0x5e5b0d['apps']&&typeof _0x5e5b0d[_0x2424e5(0x166)]===_0x2424e5(0x165)?_0x5e5b0d['apps']:{};if(Object['keys'](_0x283bc1)[_0x2424e5(0x14b)]>0x0)_0x2f28da['apps']=_0x283bc1;if(_0x5e5b0d[_0x2424e5(0x154)])_0x2f28da[_0x2424e5(0x154)]=_0x5e5b0d[_0x2424e5(0x154)];else{const _0x53a098=Object[_0x2424e5(0x15f)](_0x283bc1);if(_0x53a098[_0x2424e5(0x14b)]>0x0)_0x2f28da['defaultApp']=_0x53a098[0x0];}return _0x2f28da;}function mergeIsolated(_0x1f0231){const _0x431f66=a205_0x217270,_0x1de170={..._0x1f0231};delete _0x1de170[_0x431f66(0x150)];const _0x458f18=_0x1f0231[_0x431f66(0x166)]&&typeof _0x1f0231[_0x431f66(0x166)]===_0x431f66(0x165)?_0x1f0231[_0x431f66(0x166)]:{};Object[_0x431f66(0x15f)](_0x458f18)[_0x431f66(0x14b)]>0x0?_0x1de170[_0x431f66(0x166)]=_0x458f18:delete _0x1de170[_0x431f66(0x166)];if(_0x431f66(0x154)in _0x1f0231)_0x1de170['defaultApp']=_0x1f0231[_0x431f66(0x154)];else Object[_0x431f66(0x15f)](_0x458f18)[_0x431f66(0x14b)]>0x0?_0x1de170[_0x431f66(0x154)]=Object['keys'](_0x458f18)[0x0]:delete _0x1de170[_0x431f66(0x154)];return _0x1de170;}function mergeProjectFirst(_0x2accfe,_0x5a91b3){const _0x58eb27=a205_0x217270,_0x3b910b={..._0x5a91b3};delete _0x3b910b['inherit'];for(const _0x1410fe of INHERIT_WHITELIST){!(_0x1410fe in _0x3b910b)&&_0x1410fe in _0x2accfe&&(_0x3b910b[_0x1410fe]=_0x2accfe[_0x1410fe]);}const _0x5ebfb4=_0x5a91b3[_0x58eb27(0x166)]&&typeof _0x5a91b3[_0x58eb27(0x166)]===_0x58eb27(0x165)?_0x5a91b3[_0x58eb27(0x166)]:{};Object[_0x58eb27(0x15f)](_0x5ebfb4)[_0x58eb27(0x14b)]>0x0?_0x3b910b[_0x58eb27(0x166)]=_0x5ebfb4:delete _0x3b910b[_0x58eb27(0x166)];if('defaultApp'in _0x5a91b3)_0x3b910b[_0x58eb27(0x154)]=_0x5a91b3[_0x58eb27(0x154)];else Object['keys'](_0x5ebfb4)['length']>0x0?_0x3b910b[_0x58eb27(0x154)]=Object['keys'](_0x5ebfb4)[0x0]:delete _0x3b910b[_0x58eb27(0x154)];return _0x3b910b;}function mergeFullInherit(_0x139550,_0x3b5189){const _0x7e56cd=a205_0x217270,_0x3130b0=_0x139550[_0x7e56cd(0x166)]&&typeof _0x139550[_0x7e56cd(0x166)]===_0x7e56cd(0x165)?_0x139550[_0x7e56cd(0x166)]:{},_0x1238ee=_0x3b5189[_0x7e56cd(0x166)]&&typeof _0x3b5189[_0x7e56cd(0x166)]===_0x7e56cd(0x165)?_0x3b5189['apps']:{},_0x3c5b68={..._0x3130b0,..._0x1238ee},_0x5be7e7={..._0x139550,..._0x3b5189};delete _0x5be7e7[_0x7e56cd(0x150)];if(Object[_0x7e56cd(0x15f)](_0x3c5b68)[_0x7e56cd(0x14b)]>0x0)_0x5be7e7[_0x7e56cd(0x166)]=_0x3c5b68;if(_0x7e56cd(0x154)in _0x3b5189)_0x5be7e7[_0x7e56cd(0x154)]=_0x3b5189[_0x7e56cd(0x154)];else{if(Object[_0x7e56cd(0x15f)](_0x1238ee)['length']>0x0)_0x5be7e7[_0x7e56cd(0x154)]=Object[_0x7e56cd(0x15f)](_0x1238ee)[0x0];else{if(_0x139550[_0x7e56cd(0x154)])_0x5be7e7[_0x7e56cd(0x154)]=_0x139550['defaultApp'];else{const _0x24971e=Object[_0x7e56cd(0x15f)](_0x3130b0);if(_0x24971e[_0x7e56cd(0x14b)]>0x0)_0x5be7e7['defaultApp']=_0x24971e[0x0];}}}return _0x5be7e7;}export function readRawConfigWithLayers(_0x2b0a3a){const _0x4be1a1=loadRawConfigLayers(_0x2b0a3a);return{'config':mergeRawConfigLayers(_0x4be1a1),'layers':_0x4be1a1};}export function readRawConfig(_0x5d4547){return mergeRawConfigLayers(loadRawConfigLayers(_0x5d4547));}export function readConfigFile(_0x588282){const _0x5ddaab=a205_0x217270;return parseAndNormalizeConfig(_0x588282,_0x5ddaab(0x16a));}export function writeConfigFile(_0x2115a4,_0x4c65f8){const _0x4b4d35=a205_0x217270,_0x14c98f=dirname(_0x2115a4);!existsSync(_0x14c98f)&&mkdirSync(_0x14c98f,{'recursive':!![]});const _0x11ac83=_0x2115a4+_0x4b4d35(0x14e);try{writeFileSync(_0x11ac83,JSON[_0x4b4d35(0x16d)](_0x4c65f8,null,0x2)+'\x0a',{'encoding':_0x4b4d35(0x15c),'mode':0x180}),renameSync(_0x11ac83,_0x2115a4);}catch(_0x3f3b49){try{unlinkSync(_0x11ac83);}catch{}throw _0x3f3b49;}}export function resolveWriteConfigPath(_0x164eb8){const _0x33b36f=a205_0x217270,_0x1b9c7f=_0x164eb8===_0x33b36f(0x167)?process['cwd']():homedir(),_0x378fdf=resolveConfigPath(_0x1b9c7f);return _0x378fdf??resolve(_0x1b9c7f,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x5554ce=a206_0x52e6;(function(_0x24b7af,_0x3cc99c){const _0x2205c1=a206_0x52e6,_0x535e7b=_0x24b7af();while(!![]){try{const _0x21ce0c=-parseInt(_0x2205c1(0xc6))/0x1+-parseInt(_0x2205c1(0xc4))/0x2*(-parseInt(_0x2205c1(0xd5))/0x3)+-parseInt(_0x2205c1(0xb8))/0x4*(-parseInt(_0x2205c1(0xcc))/0x5)+-parseInt(_0x2205c1(0xc2))/0x6*(-parseInt(_0x2205c1(0xc9))/0x7)+-parseInt(_0x2205c1(0xce))/0x8+parseInt(_0x2205c1(0xc8))/0x9*(-parseInt(_0x2205c1(0xc1))/0xa)+parseInt(_0x2205c1(0xbe))/0xb;if(_0x21ce0c===_0x3cc99c)break;else _0x535e7b['push'](_0x535e7b['shift']());}catch(_0x4bf7a8){_0x535e7b['push'](_0x535e7b['shift']());}}}(a206_0x5885,0xea815));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(_0x1215de){return process.env[`RABETBASE_${_0x1215de}`]||process.env[`LOVRABET_${_0x1215de}`]||undefined;}export async function createContext(_0x5be51a){const _0x6b93f4=a206_0x52e6,{config:_0x46738f,layers:_0x26b4fa}=readRawConfigWithLayers(),_0x2602d4=buildConfig(_0x46738f,_0x5be51a,_0x26b4fa),{initEnv:_0x5b70aa}=await import('./constant/env.js');if(_0x2602d4[_0x6b93f4(0xd2)])_0x5b70aa(_0x2602d4[_0x6b93f4(0xd2)]);else _0x5be51a[_0x6b93f4(0xd2)]&&typeof _0x5be51a[_0x6b93f4(0xd2)]===_0x6b93f4(0xd9)&&_0x5b70aa(_0x5be51a[_0x6b93f4(0xd2)]);const {initDomains:_0x36cbbf,getUserDomain:_0x188f51,getApiDomain:_0xdb8503}=await import(_0x6b93f4(0xb9));_0x36cbbf({'apiDomain':_0x46738f[_0x6b93f4(0xbc)]||undefined,'userDomain':_0x46738f[_0x6b93f4(0xb2)]||undefined,'runtimeDomain':_0x46738f['runtimeDomain']||undefined});const _0x1ddc4b={'apiDomain':_0xdb8503(),'userDomain':_0x188f51()},_0x27712a=await buildAuth(_0x2602d4);logger[_0x6b93f4(0xd8)](process[_0x6b93f4(0xd1)]());const _0x3d8ebd=(CLI_BIN_NAME+'\x20'+process[_0x6b93f4(0xb6)][_0x6b93f4(0xca)](0x2)['join']('\x20'))[_0x6b93f4(0xc5)]();logger[_0x6b93f4(0xcb)](_0x3d8ebd);const {isNonInteractive:_0x3084cf}=await import('./utils/is-non-interactive.js'),_0x3fef51=_0x3084cf(_0x5be51a);return{'config':_0x2602d4,'auth':_0x27712a,'logger':logger,'env':_0x1ddc4b,'nonInteractive':_0x3fef51};}export function buildConfigFromFlags(_0x265b98){const {config:_0x25adc2,layers:_0x1e3c95}=readRawConfigWithLayers();return buildConfig(_0x25adc2,_0x265b98,_0x1e3c95);}export function getConfigAppCode(_0x4a853b){const _0x18d741=a206_0x52e6,_0x3a90d0=readRawConfig(_0x4a853b);if(_0x3a90d0['apps']&&typeof _0x3a90d0[_0x18d741(0xd3)]===_0x18d741(0xba)){const _0x4c7738=_0x3a90d0[_0x18d741(0xb4)];if(_0x4c7738&&_0x3a90d0[_0x18d741(0xd3)][_0x4c7738]?.[_0x18d741(0xd4)])return String(_0x3a90d0[_0x18d741(0xd3)][_0x4c7738][_0x18d741(0xd4)])[_0x18d741(0xc5)]();const _0x1ec514=Object[_0x18d741(0xd0)](_0x3a90d0['apps'])[0x0];if(_0x1ec514?.[_0x18d741(0xd4)])return String(_0x1ec514[_0x18d741(0xd4)])[_0x18d741(0xc5)]();}const _0x45868b=_0x3a90d0[_0x18d741(0xd4)]||_0x3a90d0[_0x18d741(0xb7)];if(typeof _0x45868b!==_0x18d741(0xd9)||_0x45868b[_0x18d741(0xc5)]()==='')return undefined;return _0x45868b[_0x18d741(0xc5)]();}export function getMultiAppConfigs(_0x520606=a206_0x5554ce(0xc0),_0x3d89f5){const _0x408652=a206_0x5554ce,_0x3255ef=loadRawConfigLayers(_0x3d89f5);let _0x170f99,_0x597783;if(_0x520606===_0x408652(0xb5)){const _0x827001=_0x3255ef[_0x408652(0xcd)][_0x408652(0xd3)]&&typeof _0x3255ef['globalConfig']['apps']===_0x408652(0xba)?_0x3255ef['globalConfig']['apps']:{},_0x2f2405=_0x3255ef[_0x408652(0xc3)][_0x408652(0xd3)]&&typeof _0x3255ef[_0x408652(0xc3)][_0x408652(0xd3)]===_0x408652(0xba)?_0x3255ef[_0x408652(0xc3)][_0x408652(0xd3)]:{};_0x170f99={..._0x827001,..._0x2f2405};const _0x32cd56=readRawConfig(_0x3d89f5);_0x597783=_0x32cd56[_0x408652(0xb4)];}else _0x170f99=_0x3255ef[_0x408652(0xc3)][_0x408652(0xd3)],_0x597783=_0x3255ef[_0x408652(0xc3)]['defaultApp'];if(!_0x170f99||typeof _0x170f99!=='object'||Object['keys'](_0x170f99)[_0x408652(0xbf)]===0x0)return null;return Object['entries'](_0x170f99)[_0x408652(0xbb)](([_0x5e50bf,_0x160bd4])=>({'name':_0x5e50bf,'appcode':_0x160bd4?.[_0x408652(0xd4)]||'','isDefault':_0x5e50bf===_0x597783,'env':_0x160bd4?.[_0x408652(0xd2)],'apiDir':_0x160bd4?.[_0x408652(0xc7)],'cookie':_0x160bd4?.[_0x408652(0xb3)]||undefined}))['filter'](_0x5b425c=>_0x5b425c[_0x408652(0xd4)]);}function a206_0x5885(){const _0x491d79=['defaultApp','merged','argv','app','136IajPYm','./constant/domain.js','object','map','apiDomain','api.ts','18927502gpFILf','length','project','109060ZkpJKV','6pjDHPX','projectConfig','1354QzLasc','trim','1025598nSYAdW','apiDir','1278tvsMgK','2793658uUCWHb','slice','setRawCommand','209735EwcwoP','globalConfig','5424288BiRCeR','template_base_url','values','cwd','env','apps','appcode','2955bzuMOK','entries','find','setLogPath','string','userDomain','cookie'];a206_0x5885=function(){return _0x491d79;};return a206_0x5885();}export function getTemplateBaseUrl(_0x562ba7){const _0x3bdaa8=a206_0x5554ce,_0x34827b=readRawConfig(_0x562ba7);if(_0x34827b[_0x3bdaa8(0xcf)]&&typeof _0x34827b['template_base_url']===_0x3bdaa8(0xd9))return _0x34827b['template_base_url']['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function a206_0x52e6(_0x55eef0,_0x50ae58){_0x55eef0=_0x55eef0-0xb2;const _0x588531=a206_0x5885();let _0x52e6e2=_0x588531[_0x55eef0];return _0x52e6e2;}function buildConfig(_0x1329a8,_0x1aff0e,_0x283c62){return{...resolveAppConfig({'raw':_0x1329a8,'flags':_0x1aff0e,'layers':_0x283c62,'readEnv':env}),'raw':_0x1329a8};}export function resolveApiFilePath(_0xef4a90,_0x34ecab){const _0x2d0ce8=a206_0x5554ce,_0xeb7aa3=resolve(process[_0x2d0ce8(0xd1)](),_0xef4a90),_0x24424b=resolve(_0xeb7aa3,_0x2d0ce8(0xbd));if(!_0x34ecab)return _0x24424b;const _0x1152c5=readRawConfig(),_0x2bc195=_0x1152c5[_0x2d0ce8(0xd3)]&&typeof _0x1152c5[_0x2d0ce8(0xd3)]===_0x2d0ce8(0xba)?_0x1152c5['apps']:{},_0x20d254=Object[_0x2d0ce8(0xd6)](_0x2bc195)[_0x2d0ce8(0xd7)](([,_0x350b08])=>_0x350b08?.[_0x2d0ce8(0xd4)]===_0x34ecab);if(!_0x20d254)return _0x24424b;const [_0x3cfe39,_0x203b27]=_0x20d254,_0xc32da4=typeof _0x1152c5[_0x2d0ce8(0xb4)]==='string'?_0x1152c5[_0x2d0ce8(0xb4)]:undefined;if(_0x203b27?.[_0x2d0ce8(0xc7)])return _0x24424b;if(_0xc32da4&&_0x3cfe39!==_0xc32da4)return resolve(_0xeb7aa3,_0x3cfe39+'-api.ts');return _0x24424b;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5525ed,_0x4f63e2){const _0x3124a8=a207_0x4f1c,_0xd732b9=_0x5525ed();while(!![]){try{const _0x1e9ed0=parseInt(_0x3124a8(0x114))/0x1+-parseInt(_0x3124a8(0x113))/0x2*(parseInt(_0x3124a8(0x110))/0x3)+-parseInt(_0x3124a8(0x120))/0x4*(-parseInt(_0x3124a8(0x119))/0x5)+-parseInt(_0x3124a8(0x11f))/0x6+-parseInt(_0x3124a8(0x11b))/0x7*(-parseInt(_0x3124a8(0x122))/0x8)+parseInt(_0x3124a8(0x123))/0x9+parseInt(_0x3124a8(0x117))/0xa*(-parseInt(_0x3124a8(0x11a))/0xb);if(_0x1e9ed0===_0x4f63e2)break;else _0xd732b9['push'](_0xd732b9['shift']());}catch(_0x3c7834){_0xd732b9['push'](_0xd732b9['shift']());}}}(a207_0x4d15,0xe0186));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a207_0x4d15(){const _0x1c54d9=['120durDst','cwd','84355jhVrbN','1268245rSavji','521983gRdQXP','get','push','alias','3639036DMrumY','156WULpnp','set','88MdFBVc','9946251kLOSmn','2227818qNUPdD','find','api.ts','2JqtfVu','1067179YUNySC','datasetCode','exec'];a207_0x4d15=function(){return _0x1c54d9;};return a207_0x4d15();}const cache=new Map();function parseApiFile(_0x1da6c6){const _0x1d2ecf=a207_0x4f1c,_0x5851c0=[],_0x4ea657=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x223947;while((_0x223947=_0x4ea657[_0x1d2ecf(0x116)](_0x1da6c6))!==null){_0x5851c0[_0x1d2ecf(0x11d)]({'datasetCode':_0x223947[0x1],'tableName':_0x223947[0x2],'name':_0x223947[0x3],'alias':_0x223947[0x4]});}return _0x5851c0;}function a207_0x4f1c(_0x233116,_0x2b8c2c){_0x233116=_0x233116-0x110;const _0x4d1589=a207_0x4d15();let _0x4f1c0c=_0x4d1589[_0x233116];return _0x4f1c0c;}export function loadAliasMap(_0x4b75f6,_0x314592,_0x38f2e8){const _0x2e48a5=a207_0x4f1c,_0x504272=_0x38f2e8??resolve(process[_0x2e48a5(0x118)](),_0x4b75f6,_0x2e48a5(0x112));if(cache['has'](_0x504272))return cache[_0x2e48a5(0x11c)](_0x504272);if(!existsSync(_0x504272))return cache[_0x2e48a5(0x121)](_0x504272,[]),[];try{const _0x177575=readFileSync(_0x504272,'utf-8'),_0x17a22a=parseApiFile(_0x177575);return cache['set'](_0x504272,_0x17a22a),_0x17a22a;}catch{return cache['set'](_0x504272,[]),[];}}export function resolveAlias(_0x3080cf,_0x2ac01c,_0x5e2ccd,_0x130244){const _0x335020=a207_0x4f1c;if(!_0x2ac01c)return undefined;const _0x1cbc8b=loadAliasMap(_0x3080cf,_0x5e2ccd,_0x130244),_0x5b2edb=_0x1cbc8b[_0x335020(0x111)](_0x354dd6=>_0x354dd6[_0x335020(0x11e)]===_0x2ac01c);return _0x5b2edb?.[_0x335020(0x115)];}export function listAliases(_0x2b0423,_0x22315c,_0x80c6ab){return loadAliasMap(_0x2b0423,_0x22315c,_0x80c6ab);}
|