@lovrabet/rabetbase-cli 2.3.4-beta.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/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 -0
- 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 -0
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/dry-run.js +1 -0
- package/lib/commands/common/flags.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/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/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/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.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/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.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/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 -0
- package/lib/commands/permit/page-get.js +1 -0
- package/lib/commands/permit/page-set.js +1 -0
- package/lib/commands/permit/role-apis-set.js +1 -0
- package/lib/commands/permit/role-menus-set.js +1 -0
- package/lib/commands/permit/role-menus.js +1 -0
- package/lib/commands/permit/shared.js +1 -0
- 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 -0
- package/lib/commands/role/delete.js +1 -0
- package/lib/commands/role/detail.js +1 -0
- package/lib/commands/role/index.js +1 -0
- package/lib/commands/role/list.js +1 -0
- package/lib/commands/role/shared.js +1 -0
- package/lib/commands/role/update.js +1 -0
- package/lib/commands/role/user-add.js +1 -0
- package/lib/commands/role/user-remove.js +1 -0
- package/lib/commands/role/user-resolve.js +1 -0
- 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/workspace/add.js +1 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -0
- 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-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/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/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 +2 -2
- package/lib/commands/app/discover.js +0 -1
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x3b7628=a165_0x5df9;(function(_0x1854b2,_0xdff832){const _0x561d71=a165_0x5df9,_0x396bce=_0x1854b2();while(!![]){try{const _0x5d347=parseInt(_0x561d71(0x162))/0x1+-parseInt(_0x561d71(0x15e))/0x2*(-parseInt(_0x561d71(0x16f))/0x3)+-parseInt(_0x561d71(0x16b))/0x4+-parseInt(_0x561d71(0x16d))/0x5+-parseInt(_0x561d71(0x165))/0x6+parseInt(_0x561d71(0x164))/0x7+-parseInt(_0x561d71(0x176))/0x8*(-parseInt(_0x561d71(0x172))/0x9);if(_0x5d347===_0xdff832)break;else _0x396bce['push'](_0x396bce['shift']());}catch(_0x4e110c){_0x396bce['push'](_0x396bce['shift']());}}}(a165_0x4312,0x907a8));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=[a165_0x3b7628(0x166),'accessKey',a165_0x3b7628(0x15f),a165_0x3b7628(0x17a),a165_0x3b7628(0x160)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a165_0x3b7628(0x16e),'env',a165_0x3b7628(0x15f),'format',a165_0x3b7628(0x166),a165_0x3b7628(0x167),'apiDir']);function a165_0x5df9(_0x495bc1,_0x2c4fdf){_0x495bc1=_0x495bc1-0x15b;const _0x43128c=a165_0x4312();let _0x5df9dc=_0x43128c[_0x495bc1];return _0x5df9dc;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0xd72fc4){return[..._0xd72fc4]['join'](',\x20');}function a165_0x4312(){const _0x229941=['Default\x20page\x20size','toLowerCase','env','string','app','330LiXeLt','locale','riskLevel','apps','657268kIoCTh','API\x20directory\x20path','819042syPJsH','6140376YMaNgr','cookie','accessKey','length','pageSize','number','3232972VaUuik','inherit','5454980MECsAq','appcode','5505IcXXeD','map','Locale','90QDYMMS','filter','entries','zh-CN','1949896zHgExk','defaultApp','trim','apiDir','format','en-US','keys'];a165_0x4312=function(){return _0x229941;};return a165_0x4312();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3e8364){return TOP_LEVEL_CONFIG_KEYS['has'](_0x3e8364);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a165_0x3b7628(0x15b),'apiDir':'apiDir','cookie':a165_0x3b7628(0x166),'accessKey':'accessKey','defaultFormat':a165_0x3b7628(0x17a),'pageSize':'pageSize','riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x259fe2=a165_0x3b7628;return[{'name':_0x259fe2(0x15b),'type':_0x259fe2(0x15c),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x259fe2(0x15c),'description':_0x259fe2(0x163)},{'name':'cookie','type':_0x259fe2(0x15c),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x259fe2(0x167),'type':_0x259fe2(0x15c),'description':'Access\x20key','hidden':!![]},{'name':'defaultFormat','type':_0x259fe2(0x15c),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x259fe2(0x16a),'description':_0x259fe2(0x17d)},{'name':_0x259fe2(0x160),'type':_0x259fe2(0x15c),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x259fe2(0x15f),'type':_0x259fe2(0x15c),'description':_0x259fe2(0x171)}];}export function collectAppProfileOverrides(_0x30d3c0){const _0x14e65d=a165_0x3b7628,_0x1182bf={};for(const [_0x126fde,_0x2b2a8f]of Object[_0x14e65d(0x174)](APP_PROFILE_FLAG_KEY_MAP)){const _0x293971=_0x30d3c0(_0x126fde);if(!_0x293971)continue;_0x1182bf[_0x2b2a8f]=_0x2b2a8f===_0x14e65d(0x169)?Number(_0x293971):_0x293971;}return _0x1182bf;}export function buildAppProfileListFields(_0xd17b78){const _0x371f01=a165_0x3b7628;return{'env':_0xd17b78[_0x371f01(0x15b)]??null,'apiDir':_0xd17b78['apiDir']??null,'hasCookie':!!_0xd17b78['cookie'],'hasAccessKey':!!_0xd17b78[_0x371f01(0x167)],'format':_0xd17b78[_0x371f01(0x17a)]??null,'pageSize':_0xd17b78['pageSize']??null,'riskLevel':_0xd17b78[_0x371f01(0x160)]??null,'locale':_0xd17b78[_0x371f01(0x15f)]??null};}export function buildAppDoctorFields(_0xfff69d,_0x11e740){const _0xcf2b7b=a165_0x3b7628;return{'env':{'value':_0xfff69d[_0xcf2b7b(0x15b)]||_0x11e740[_0xcf2b7b(0x15b)],'source':_0xfff69d['env']?_0xcf2b7b(0x15d):'inherit'},'apiDir':{'value':_0xfff69d[_0xcf2b7b(0x179)]||_0x11e740[_0xcf2b7b(0x179)],'source':_0xfff69d[_0xcf2b7b(0x179)]?'app':_0xcf2b7b(0x16c)},'cookie':{'value':_0xfff69d[_0xcf2b7b(0x166)]||_0x11e740[_0xcf2b7b(0x166)],'source':_0xfff69d['cookie']?_0xcf2b7b(0x15d):'inherit'},'accessKey':{'value':_0xfff69d[_0xcf2b7b(0x167)]||_0x11e740[_0xcf2b7b(0x167)],'source':_0xfff69d[_0xcf2b7b(0x167)]?_0xcf2b7b(0x15d):'inherit'}};}export function buildCanonicalAppConfig(_0x12c122,_0x4060d1){const _0x362d03=a165_0x3b7628,_0x485639=_0x12c122[_0x362d03(0x170)](_0x2d189d=>String(_0x2d189d||'')[_0x362d03(0x178)]())[_0x362d03(0x173)](Boolean);if(_0x485639[_0x362d03(0x168)]===0x0)return{};const _0x31a99d={};for(const _0x34e56a of _0x485639){_0x31a99d[_0x34e56a]=_0x4060d1?{'appcode':_0x34e56a,'env':_0x4060d1}:{'appcode':_0x34e56a};}return{'apps':_0x31a99d,'defaultApp':_0x485639[0x0]};}export function buildCanonicalProjectConfig(_0x261af4,_0xdd8d47){const _0x2ab39b=a165_0x3b7628,{appCodes:appCodes=[],env:_0x2824e6,metadata:_0x4327ce}=_0xdd8d47,_0x14e1d5={..._0x261af4,..._0x4327ce||{}};delete _0x14e1d5[_0x2ab39b(0x16e)],delete _0x14e1d5[_0x2ab39b(0x15d)];if(_0x2824e6)_0x14e1d5[_0x2ab39b(0x15b)]=_0x2824e6;else!_0x14e1d5[_0x2ab39b(0x15b)]&&(_0x14e1d5[_0x2ab39b(0x15b)]=DEFAULT_CONFIG_VALUES[_0x2ab39b(0x15b)]);const _0x30d0be=buildCanonicalAppConfig(appCodes,_0x14e1d5[_0x2ab39b(0x15b)]);return Object[_0x2ab39b(0x17c)](_0x30d0be)[_0x2ab39b(0x168)]>0x0&&(_0x14e1d5[_0x2ab39b(0x161)]=_0x30d0be[_0x2ab39b(0x161)],_0x14e1d5[_0x2ab39b(0x177)]=_0x30d0be[_0x2ab39b(0x177)]),_0x14e1d5;}const LOCALE_MAP={'zh':a165_0x3b7628(0x175),'zh-cn':a165_0x3b7628(0x175),'zh_cn':a165_0x3b7628(0x175),'en':'en-US','en-us':a165_0x3b7628(0x17b),'en_us':a165_0x3b7628(0x17b)};export function normalizeLocale(_0xe16266){const _0x27bc37=a165_0x3b7628;if(!_0xe16266)return null;return LOCALE_MAP[_0xe16266[_0x27bc37(0x17e)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a166_0x3ac6e2=a166_0x1bbe;function a166_0x1f7e(){const _0x3e8e25=['59847rdLSKC','8fWbTqH','183846xynTQd','780LJajtH','22ixbRFW','39699UtHlRr','1200080qrRDyU','57068fiMRoI','24515jOqCZT','208528JlPqFq','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','24nheWAe'];a166_0x1f7e=function(){return _0x3e8e25;};return a166_0x1f7e();}function a166_0x1bbe(_0x537d6e,_0x26a1b6){_0x537d6e=_0x537d6e-0x138;const _0x1f7e8f=a166_0x1f7e();let _0x1bbe8b=_0x1f7e8f[_0x537d6e];return _0x1bbe8b;}(function(_0x20cf51,_0x3a0bf5){const _0x15dd53=a166_0x1bbe,_0x53e945=_0x20cf51();while(!![]){try{const _0x1d348b=parseInt(_0x15dd53(0x139))/0x1+parseInt(_0x15dd53(0x13b))/0x2*(-parseInt(_0x15dd53(0x143))/0x3)+-parseInt(_0x15dd53(0x140))/0x4+parseInt(_0x15dd53(0x13f))/0x5*(-parseInt(_0x15dd53(0x142))/0x6)+-parseInt(_0x15dd53(0x13d))/0x7+-parseInt(_0x15dd53(0x138))/0x8*(-parseInt(_0x15dd53(0x13c))/0x9)+parseInt(_0x15dd53(0x13a))/0xa*(parseInt(_0x15dd53(0x13e))/0xb);if(_0x1d348b===_0x3a0bf5)break;else _0x53e945['push'](_0x53e945['shift']());}catch(_0x202faf){_0x53e945['push'](_0x53e945['shift']());}}}(a166_0x1f7e,0x1fcfa));export const CLI_VERSION_POLICY_URL=a166_0x3ac6e2(0x141);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a146_0x490b77=a146_0x1d50;(function(_0x3c929e,_0x5ae70c){const _0x275b9e=a146_0x1d50,_0x6fd348=_0x3c929e();while(!![]){try{const _0x462e8b=parseInt(_0x275b9e(0x1d3))/0x1*(-parseInt(_0x275b9e(0x18f))/0x2)+parseInt(_0x275b9e(0x188))/0x3+parseInt(_0x275b9e(0x1b1))/0x4*(parseInt(_0x275b9e(0x1c2))/0x5)+parseInt(_0x275b9e(0x193))/0x6*(parseInt(_0x275b9e(0x1cb))/0x7)+parseInt(_0x275b9e(0x1ce))/0x8*(-parseInt(_0x275b9e(0x1d2))/0x9)+-parseInt(_0x275b9e(0x1cd))/0xa+parseInt(_0x275b9e(0x1c9))/0xb;if(_0x462e8b===_0x5ae70c)break;else _0x6fd348['push'](_0x6fd348['shift']());}catch(_0xfe5919){_0x6fd348['push'](_0x6fd348['shift']());}}}(a146_0x1ad3,0xeb459));export const CLI_BIN_NAME=a146_0x490b77(0x183);function a146_0x1d50(_0x73fbe6,_0x5d41b8){_0x73fbe6=_0x73fbe6-0x16f;const _0x1ad36d=a146_0x1ad3();let _0x1d50e8=_0x1ad36d[_0x73fbe6];return _0x1d50e8;}function a146_0x1ad3(){const _0x2c7a50=['<expr>','6cXWKlN','Reveal\x20sensitive\x20value','force','operation','code','clear','project','from-env','app','enableBffSave','operation-type','Skip\x20confirmation\x20for\x20high-risk\x20writes','type','Use\x20project\x20config\x20scope','Schemas','verbose','Tags','format','Keyword\x20filter','schemas','non-interactive','confirm','description-file','tags','Clear','DB\x20ID','stdin','Select\x20app\x20profile\x20by\x20name','keyword','Title','20oUrcKd','watch','help','datasetcode','Force\x20non-interactive\x20mode\x20(CI)','remote','db-id','Read\x20value\x20from\x20environment\x20variable','params','page','all','Output\x20path','expected-count','value','SQL\x20string','SQL\x20name','Target\x20path','974935OEOntx','sql','yes','Code\x20filter','appcode','Expected\x20affected\x20count','Verbose\x20output','20534756tiCCZF','file','2783333uendwR','Description\x20file','16007820xCwipn','11920DpUNtn','boolean','json\x20|\x20pretty\x20|\x20compress','Preview\x20operation\x20without\x20executing','5931eveVkt','26591cMjoec','Force\x20overwrite','Page\x20size','dryRun','Environment','pagesize','<name>','output','function-node','JSON\x20params','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Apply\x20to\x20all','Function\x20node','descriptionFile','Enable\x20BFF\x20save','fromEnv','sqlcode','@lovrabet/rabetbase-cli','target','name','Name','Operation\x20type','Config\x20key','dbid','Output\x20format','Override\x20appcode','skip-imports','Confirm\x20destructive\x20action','global','Show\x20help','skipImports','dbId','description','Use\x20remote','fromEntries','rabetbase','Record\x20ID','expectedCount','Read\x20value\x20from\x20stdin','string','3394008krZbfw','Watch\x20mode','Description','enable-bff-save','Use\x20global\x20config\x20scope','Alias\x20for\x20--non-interactive','sqlname','62KytctE','sql-name','key'];a146_0x1ad3=function(){return _0x2c7a50;};return a146_0x1ad3();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a146_0x490b77(0x171);export const GLOBAL_FLAGS=[{'name':a146_0x490b77(0x1c6),'meowKey':a146_0x490b77(0x1c6),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x179),'hint':'<code>'},{'name':'app','meowKey':a146_0x490b77(0x19b),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1ae),'hint':a146_0x490b77(0x1d9)},{'name':'env','meowKey':'env','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1d7),'hint':'production\x20|\x20daily'},{'name':a146_0x490b77(0x1a4),'meowKey':a146_0x490b77(0x1a4),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x178),'hint':a146_0x490b77(0x1d0)},{'name':'jq','meowKey':'jq','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1de),'hint':a146_0x490b77(0x192)},{'name':'dry-run','meowKey':a146_0x490b77(0x1d6),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1d1)},{'name':a146_0x490b77(0x1c4),'meowKey':a146_0x490b77(0x1c4),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x19e)},{'name':a146_0x490b77(0x1a7),'meowKey':a146_0x490b77(0x1dd),'type':'boolean','description':a146_0x490b77(0x1b5)},{'name':'global','meowKey':a146_0x490b77(0x17c),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x18c)},{'name':a146_0x490b77(0x199),'meowKey':a146_0x490b77(0x199),'type':'boolean','description':a146_0x490b77(0x1a0)},{'name':'ci','meowKey':'ci','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x18d),'hidden':!![]},{'name':a146_0x490b77(0x1b3),'meowKey':'help','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x17d)},{'name':'name','meowKey':a146_0x490b77(0x173),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x174),'hidden':!![]},{'name':'title','meowKey':'title','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1b0),'hidden':!![]},{'name':a146_0x490b77(0x198),'meowKey':'clear','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1ab),'hidden':!![]},{'name':a146_0x490b77(0x1b2),'meowKey':a146_0x490b77(0x1b2),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x189),'hidden':!![]},{'name':a146_0x490b77(0x1da),'meowKey':a146_0x490b77(0x1da),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1bc),'hidden':!![]},{'name':a146_0x490b77(0x1b9),'meowKey':a146_0x490b77(0x1b9),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1dc),'hidden':!![]},{'name':a146_0x490b77(0x1b4),'meowKey':a146_0x490b77(0x1b4),'type':a146_0x490b77(0x187),'description':'Dataset\x20code','hidden':!![]},{'name':a146_0x490b77(0x1bb),'meowKey':a146_0x490b77(0x1bb),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1df),'hidden':!![]},{'name':a146_0x490b77(0x18b),'meowKey':a146_0x490b77(0x19c),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x1e2),'hidden':!![]},{'name':'id','meowKey':'id','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x184),'hidden':!![]},{'name':a146_0x490b77(0x19f),'meowKey':'type','type':'string','description':'Type\x20filter','hidden':!![]},{'name':a146_0x490b77(0x1ca),'meowKey':a146_0x490b77(0x1ca),'type':a146_0x490b77(0x187),'description':'File\x20path','hidden':!![]},{'name':a146_0x490b77(0x170),'meowKey':a146_0x490b77(0x170),'type':a146_0x490b77(0x187),'description':'SQL\x20code','hidden':!![]},{'name':a146_0x490b77(0x190),'meowKey':'sqlName','type':a146_0x490b77(0x187),'description':'SQL\x20name','hidden':!![]},{'name':a146_0x490b77(0x18e),'meowKey':a146_0x490b77(0x18e),'type':'string','description':a146_0x490b77(0x1c0),'hidden':!![]},{'name':a146_0x490b77(0x1b7),'meowKey':a146_0x490b77(0x17f),'type':a146_0x490b77(0x187),'description':'DB\x20ID','hidden':!![]},{'name':a146_0x490b77(0x177),'meowKey':a146_0x490b77(0x177),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1ac),'hidden':!![]},{'name':a146_0x490b77(0x180),'meowKey':a146_0x490b77(0x180),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x18a),'hidden':!![]},{'name':a146_0x490b77(0x1a9),'meowKey':a146_0x490b77(0x1e1),'type':'string','description':a146_0x490b77(0x1cc),'hidden':!![]},{'name':a146_0x490b77(0x1ba),'meowKey':'page','type':'string','description':'Page\x20number','hidden':!![]},{'name':a146_0x490b77(0x1d8),'meowKey':a146_0x490b77(0x1d8),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1d5),'hidden':!![]},{'name':a146_0x490b77(0x1af),'meowKey':a146_0x490b77(0x1af),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1a5),'hidden':!![]},{'name':'code','meowKey':a146_0x490b77(0x197),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1c5),'hidden':!![]},{'name':'sql','meowKey':a146_0x490b77(0x1c3),'type':'string','description':a146_0x490b77(0x1bf),'hidden':!![]},{'name':a146_0x490b77(0x1a6),'meowKey':'schemas','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1a1),'hidden':!![]},{'name':a146_0x490b77(0x196),'meowKey':a146_0x490b77(0x196),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x175),'hidden':!![]},{'name':a146_0x490b77(0x172),'meowKey':a146_0x490b77(0x172),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1c1),'hidden':!![]},{'name':a146_0x490b77(0x17a),'meowKey':a146_0x490b77(0x17e),'type':a146_0x490b77(0x1cf),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a146_0x490b77(0x191),'meowKey':a146_0x490b77(0x191),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x176),'hidden':!![]},{'name':a146_0x490b77(0x1be),'meowKey':'value','type':a146_0x490b77(0x187),'description':'Config\x20value','hidden':!![]},{'name':a146_0x490b77(0x1aa),'meowKey':a146_0x490b77(0x1aa),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1a3),'hidden':!![]},{'name':a146_0x490b77(0x1ad),'meowKey':a146_0x490b77(0x1ad),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x186),'hidden':!![]},{'name':a146_0x490b77(0x19a),'meowKey':a146_0x490b77(0x16f),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1b8),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x194),'hidden':!![]},{'name':a146_0x490b77(0x195),'meowKey':a146_0x490b77(0x195),'type':'boolean','description':a146_0x490b77(0x1d4),'hidden':!![]},{'name':'confirm','meowKey':a146_0x490b77(0x1a8),'type':a146_0x490b77(0x1cf),'description':a146_0x490b77(0x17b),'hidden':!![]},{'name':a146_0x490b77(0x1b6),'meowKey':a146_0x490b77(0x1b6),'type':'boolean','description':a146_0x490b77(0x181),'hidden':!![]},{'name':a146_0x490b77(0x1a2),'meowKey':a146_0x490b77(0x1a2),'type':'boolean','description':a146_0x490b77(0x1c8),'hidden':!![]},{'name':a146_0x490b77(0x1bd),'meowKey':a146_0x490b77(0x185),'type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1c7),'hidden':!![]},{'name':a146_0x490b77(0x19d),'meowKey':'operationType','type':'string','description':a146_0x490b77(0x175),'hidden':!![]},{'name':a146_0x490b77(0x1db),'meowKey':'functionNode','type':a146_0x490b77(0x187),'description':a146_0x490b77(0x1e0),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a146_0x490b77(0x1c6),'app','env',a146_0x490b77(0x1a4),'jq','dry-run',a146_0x490b77(0x1c4),a146_0x490b77(0x1a7),'ci']);export function buildMeowFlags(){const _0x2263eb=a146_0x490b77;return Object[_0x2263eb(0x182)](GLOBAL_FLAGS['map'](_0x27b1f7=>[_0x27b1f7['meowKey'],{'type':_0x27b1f7[_0x2263eb(0x19f)]}]));}
|
|
1
|
+
const a167_0xc99923=a167_0x5de0;(function(_0x51f9d3,_0x2b40ec){const _0x4efb0c=a167_0x5de0,_0x220820=_0x51f9d3();while(!![]){try{const _0x65de41=parseInt(_0x4efb0c(0x13f))/0x1+parseInt(_0x4efb0c(0x16c))/0x2*(parseInt(_0x4efb0c(0x11d))/0x3)+parseInt(_0x4efb0c(0x178))/0x4+-parseInt(_0x4efb0c(0x135))/0x5*(-parseInt(_0x4efb0c(0x12c))/0x6)+-parseInt(_0x4efb0c(0x155))/0x7*(parseInt(_0x4efb0c(0x16d))/0x8)+parseInt(_0x4efb0c(0x10a))/0x9+-parseInt(_0x4efb0c(0x141))/0xa;if(_0x65de41===_0x2b40ec)break;else _0x220820['push'](_0x220820['shift']());}catch(_0x476064){_0x220820['push'](_0x220820['shift']());}}}(a167_0x1c09,0x97984));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a167_0xc99923(0x14e);export const NPM_PACKAGE_NAME=a167_0xc99923(0x149);export const GLOBAL_FLAGS=[{'name':a167_0xc99923(0x12f),'meowKey':a167_0xc99923(0x12f),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x12a),'hint':'<code>'},{'name':'app','meowKey':'app','type':a167_0xc99923(0x144),'description':a167_0xc99923(0x164),'hint':a167_0xc99923(0x17a)},{'name':a167_0xc99923(0x150),'meowKey':a167_0xc99923(0x150),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x139),'hint':a167_0xc99923(0x11f)},{'name':'format','meowKey':a167_0xc99923(0x15c),'type':'string','description':a167_0xc99923(0x113),'hint':a167_0xc99923(0x11c)},{'name':'jq','meowKey':'jq','type':a167_0xc99923(0x144),'description':a167_0xc99923(0x14b),'hint':a167_0xc99923(0x13a)},{'name':'dry-run','meowKey':'dryRun','type':a167_0xc99923(0x126),'description':a167_0xc99923(0x123)},{'name':a167_0xc99923(0x171),'meowKey':a167_0xc99923(0x171),'type':a167_0xc99923(0x126),'description':a167_0xc99923(0x147)},{'name':a167_0xc99923(0x146),'meowKey':a167_0xc99923(0x169),'type':'boolean','description':a167_0xc99923(0x154)},{'name':a167_0xc99923(0x14a),'meowKey':a167_0xc99923(0x14a),'type':a167_0xc99923(0x126),'description':a167_0xc99923(0x158)},{'name':a167_0xc99923(0x133),'meowKey':a167_0xc99923(0x133),'type':a167_0xc99923(0x126),'description':a167_0xc99923(0x13e)},{'name':'ci','meowKey':'ci','type':a167_0xc99923(0x126),'description':a167_0xc99923(0x16a),'hidden':!![]},{'name':'help','meowKey':a167_0xc99923(0x173),'type':a167_0xc99923(0x126),'description':'Show\x20help'},{'name':a167_0xc99923(0x121),'meowKey':a167_0xc99923(0x121),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x142),'hidden':!![]},{'name':'title','meowKey':a167_0xc99923(0x162),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x16f),'hidden':!![]},{'name':a167_0xc99923(0x143),'meowKey':a167_0xc99923(0x143),'type':'boolean','description':a167_0xc99923(0x125),'hidden':!![]},{'name':a167_0xc99923(0x14f),'meowKey':a167_0xc99923(0x14f),'type':a167_0xc99923(0x126),'description':a167_0xc99923(0x148),'hidden':!![]},{'name':'output','meowKey':'output','type':a167_0xc99923(0x144),'description':'Output\x20path','hidden':!![]},{'name':a167_0xc99923(0x15f),'meowKey':a167_0xc99923(0x15f),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x174),'hidden':!![]},{'name':a167_0xc99923(0x111),'meowKey':a167_0xc99923(0x111),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x156),'hidden':!![]},{'name':a167_0xc99923(0x151),'meowKey':'all','type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':a167_0xc99923(0x152),'meowKey':a167_0xc99923(0x12b),'type':'boolean','description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a167_0xc99923(0x144),'description':a167_0xc99923(0x10f),'hidden':!![]},{'name':'type','meowKey':a167_0xc99923(0x119),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x136),'hidden':!![]},{'name':a167_0xc99923(0x14d),'meowKey':a167_0xc99923(0x14d),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x120),'hidden':!![]},{'name':'sqlcode','meowKey':a167_0xc99923(0x116),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x10c),'hidden':!![]},{'name':a167_0xc99923(0x129),'meowKey':a167_0xc99923(0x15e),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x110),'hidden':!![]},{'name':a167_0xc99923(0x10e),'meowKey':'sqlname','type':'string','description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a167_0xc99923(0x137),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x11b),'hidden':!![]},{'name':'dbid','meowKey':a167_0xc99923(0x11e),'type':a167_0xc99923(0x144),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a167_0xc99923(0x170),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x109),'hidden':!![]},{'name':a167_0xc99923(0x117),'meowKey':a167_0xc99923(0x132),'type':'string','description':a167_0xc99923(0x12e),'hidden':!![]},{'name':a167_0xc99923(0x13b),'meowKey':a167_0xc99923(0x13b),'type':a167_0xc99923(0x144),'description':'Page\x20number','hidden':!![]},{'name':a167_0xc99923(0x177),'meowKey':a167_0xc99923(0x177),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x118),'hidden':!![]},{'name':a167_0xc99923(0x108),'meowKey':a167_0xc99923(0x108),'type':'string','description':a167_0xc99923(0x112),'hidden':!![]},{'name':'code','meowKey':a167_0xc99923(0x15b),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x157),'hidden':!![]},{'name':a167_0xc99923(0x159),'meowKey':a167_0xc99923(0x159),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x161),'hidden':!![]},{'name':a167_0xc99923(0x11a),'meowKey':a167_0xc99923(0x11a),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x138),'hidden':!![]},{'name':a167_0xc99923(0x165),'meowKey':'operation','type':a167_0xc99923(0x144),'description':a167_0xc99923(0x168),'hidden':!![]},{'name':a167_0xc99923(0x140),'meowKey':'target','type':a167_0xc99923(0x144),'description':a167_0xc99923(0x134),'hidden':!![]},{'name':a167_0xc99923(0x17b),'meowKey':a167_0xc99923(0x12d),'type':a167_0xc99923(0x126),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a167_0xc99923(0x130),'meowKey':'key','type':a167_0xc99923(0x144),'description':a167_0xc99923(0x131),'hidden':!![]},{'name':a167_0xc99923(0x176),'meowKey':a167_0xc99923(0x176),'type':'string','description':'Config\x20value','hidden':!![]},{'name':a167_0xc99923(0x172),'meowKey':a167_0xc99923(0x172),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x175),'hidden':!![]},{'name':a167_0xc99923(0x15d),'meowKey':'stdin','type':a167_0xc99923(0x126),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a167_0xc99923(0x179),'meowKey':a167_0xc99923(0x10d),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x127),'hidden':!![]},{'name':a167_0xc99923(0x14c),'meowKey':'reveal','type':a167_0xc99923(0x126),'description':a167_0xc99923(0x15a),'hidden':!![]},{'name':a167_0xc99923(0x166),'meowKey':a167_0xc99923(0x166),'type':'boolean','description':a167_0xc99923(0x124),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a167_0xc99923(0x126),'description':a167_0xc99923(0x114),'hidden':!![]},{'name':a167_0xc99923(0x115),'meowKey':a167_0xc99923(0x115),'type':a167_0xc99923(0x126),'description':'Use\x20remote','hidden':!![]},{'name':a167_0xc99923(0x10b),'meowKey':a167_0xc99923(0x10b),'type':a167_0xc99923(0x126),'description':a167_0xc99923(0x163),'hidden':!![]},{'name':a167_0xc99923(0x153),'meowKey':a167_0xc99923(0x167),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x13c),'hidden':!![]},{'name':a167_0xc99923(0x16e),'meowKey':a167_0xc99923(0x16b),'type':a167_0xc99923(0x144),'description':a167_0xc99923(0x168),'hidden':!![]},{'name':a167_0xc99923(0x160),'meowKey':a167_0xc99923(0x13d),'type':'string','description':'Function\x20node','hidden':!![]}];function a167_0x1c09(){const _0x3e198b=['yes','tags','help','JSON\x20params','Tags','value','pagesize','717156yYhqiI','from-env','<name>','skip-imports','keyword','Description','6278760rFFuob','verbose','SQL\x20code','fromEnv','sqlname','Record\x20ID','SQL\x20name','datasetcode','Keyword\x20filter','Output\x20format','Confirm\x20destructive\x20action','remote','sqlcode','description-file','Page\x20size','type','schemas','DB\x20ID','json\x20|\x20pretty\x20|\x20compress','1371GazfdA','dbid','production\x20|\x20daily','File\x20path','name','map','Preview\x20operation\x20without\x20executing','Force\x20overwrite','Clear','boolean','Read\x20value\x20from\x20environment\x20variable','app','sql-name','Override\x20appcode','enableBffSave','6fzhjJQ','skipImports','Description\x20file','appcode','key','Config\x20key','descriptionFile','project','Target\x20path','4325455KNjXes','Type\x20filter','dbId','Schemas','Environment','<expr>','page','Expected\x20affected\x20count','functionNode','Use\x20project\x20config\x20scope','221760tbJWQK','target','14321960vyLIan','Name','clear','string','meowKey','non-interactive','Skip\x20confirmation\x20for\x20high-risk\x20writes','Watch\x20mode','@lovrabet/rabetbase-cli','global','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','reveal','file','Rabetbase\x20CLI','watch','env','all','enable-bff-save','expected-count','Force\x20non-interactive\x20mode\x20(CI)','20433DLYULR','Dataset\x20code','Code\x20filter','Use\x20global\x20config\x20scope','sql','Reveal\x20sensitive\x20value','code','format','stdin','sqlName','params','function-node','SQL\x20string','title','Verbose\x20output','Select\x20app\x20profile\x20by\x20name','operation','force','expectedCount','Operation\x20type','nonInteractive','Alias\x20for\x20--non-interactive','operationType','2716nCGtuK','1456OkOaWo','operation-type','Title','description'];a167_0x1c09=function(){return _0x3e198b;};return a167_0x1c09();}function a167_0x5de0(_0x585104,_0x47ec3e){_0x585104=_0x585104-0x108;const _0x1c0911=a167_0x1c09();let _0x5de0b9=_0x1c0911[_0x585104];return _0x5de0b9;}export const PIPELINE_FLAG_NAMES=new Set([a167_0xc99923(0x12f),a167_0xc99923(0x128),a167_0xc99923(0x150),a167_0xc99923(0x15c),'jq','dry-run',a167_0xc99923(0x171),'non-interactive','ci']);export function buildMeowFlags(){const _0x45240c=a167_0xc99923;return Object['fromEntries'](GLOBAL_FLAGS[_0x45240c(0x122)](_0x19f30f=>[_0x19f30f[_0x45240c(0x145)],{'type':_0x19f30f[_0x45240c(0x119)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a168_0x39cf(_0x4f29cc,_0x414508){_0x4f29cc=_0x4f29cc-0x1ee;const _0x26a219=a168_0x26a2();let _0x39cf23=_0x26a219[_0x4f29cc];return _0x39cf23;}const a168_0x379f15=a168_0x39cf;(function(_0x507c57,_0x19f090){const _0x4fe173=a168_0x39cf,_0x5370e1=_0x507c57();while(!![]){try{const _0x490604=-parseInt(_0x4fe173(0x1ee))/0x1+parseInt(_0x4fe173(0x1f4))/0x2*(-parseInt(_0x4fe173(0x1f3))/0x3)+parseInt(_0x4fe173(0x1f0))/0x4+-parseInt(_0x4fe173(0x1f1))/0x5+parseInt(_0x4fe173(0x1f6))/0x6+parseInt(_0x4fe173(0x1ef))/0x7+parseInt(_0x4fe173(0x1f5))/0x8;if(_0x490604===_0x19f090)break;else _0x5370e1['push'](_0x5370e1['shift']());}catch(_0x353f45){_0x5370e1['push'](_0x5370e1['shift']());}}}(a168_0x26a2,0x6853c));import{DEFAULT_API_DIR}from'../constant/paths.js';function a168_0x26a2(){const _0x4d3862=['24FAwwVy','1577416SKWClM','3230868tJLLqR','846360qXgbIa','5762596aMpfdT','2618256BKppIR','3462095WdMxNB','compress','61836YBYeAx'];a168_0x26a2=function(){return _0x4d3862;};return a168_0x26a2();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a168_0x379f15(0x1f2),'locale':'en-US','riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a168_0x379f15(0x1f2);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a169_0x4c3488=a169_0x5bb5;(function(_0x1c784c,_0x2a2be0){const _0x56da86=a169_0x5bb5,_0x4e5eed=_0x1c784c();while(!![]){try{const _0x216f50=parseInt(_0x56da86(0x70))/0x1*(-parseInt(_0x56da86(0x71))/0x2)+-parseInt(_0x56da86(0x85))/0x3+-parseInt(_0x56da86(0x77))/0x4*(-parseInt(_0x56da86(0x82))/0x5)+-parseInt(_0x56da86(0x7f))/0x6*(-parseInt(_0x56da86(0x79))/0x7)+-parseInt(_0x56da86(0x76))/0x8*(parseInt(_0x56da86(0x75))/0x9)+-parseInt(_0x56da86(0x7e))/0xa+-parseInt(_0x56da86(0x81))/0xb*(-parseInt(_0x56da86(0x7a))/0xc);if(_0x216f50===_0x2a2be0)break;else _0x4e5eed['push'](_0x4e5eed['shift']());}catch(_0x46c262){_0x4e5eed['push'](_0x4e5eed['shift']());}}}(a169_0x32e0,0x34d3a));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x258e0a){const _0x458d26=a169_0x5bb5;customApiDomain=_0x258e0a?.['apiDomain'],customUserDomain=_0x258e0a?.[_0x458d26(0x72)],customRuntimeDomain=_0x258e0a?.[_0x458d26(0x78)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a169_0x4c3488(0x7b):a169_0x4c3488(0x74));function a169_0x5bb5(_0x1db99d,_0x333650){_0x1db99d=_0x1db99d-0x6f;const _0x32e05c=a169_0x32e0();let _0x5bb544=_0x32e05c[_0x1db99d];return _0x5bb544;}function a169_0x32e0(){const _0x31247b=['342FewgcS','29368nUkdYW','105004RzHlRe','runtimeDomain','182jaMDMI','54336RfMCGt','https://user.lovrabet.com','/web-app/app/','https://daily-runtime.lovrabet.com','4040600LcnTvx','21354JXEfop','trim','1463KEfwfm','70eNzjRf','https://daily-api.lovrabet.com','https://app.lovrabet.com','138201sHYGgX','https://daily.lovrabet.com','39FOJBUj','13142gwQEBy','userDomain','/app/','https://user-daily.lovrabet.com'];a169_0x32e0=function(){return _0x31247b;};return a169_0x32e0();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a169_0x4c3488(0x83));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a169_0x4c3488(0x7d));export const getAppDomain=()=>isProduction(getEnv())?a169_0x4c3488(0x84):a169_0x4c3488(0x6f);export const getAppBaseUrl=_0x46a04f=>{const _0x5084e9=a169_0x4c3488,_0x1e1866=encodeURIComponent(_0x46a04f[_0x5084e9(0x80)]());return isProduction(getEnv())?getAppDomain()+_0x5084e9(0x73)+_0x1e1866:getAppDomain()+_0x5084e9(0x7c)+_0x1e1866;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a170_0x285c16=a170_0x5532;(function(_0x4e1983,_0x36bab4){const _0x244af8=a170_0x5532,_0x50c88a=_0x4e1983();while(!![]){try{const _0x202cd4=parseInt(_0x244af8(0x86))/0x1+-parseInt(_0x244af8(0x81))/0x2*(-parseInt(_0x244af8(0x83))/0x3)+parseInt(_0x244af8(0x82))/0x4*(-parseInt(_0x244af8(0x80))/0x5)+-parseInt(_0x244af8(0x7f))/0x6+parseInt(_0x244af8(0x7e))/0x7+-parseInt(_0x244af8(0x7c))/0x8+-parseInt(_0x244af8(0x7a))/0x9;if(_0x202cd4===_0x36bab4)break;else _0x50c88a['push'](_0x50c88a['shift']());}catch(_0x1b86e5){_0x50c88a['push'](_0x50c88a['shift']());}}}(a170_0x4f0e,0x66475));export const RABETBASE_ENV_VALUES=[a170_0x285c16(0x85),a170_0x285c16(0x7b)];export function normalizeEnv(_0x4d22ac){const _0x1ac71d=a170_0x285c16;return _0x4d22ac==='online'?_0x1ac71d(0x85):_0x4d22ac;}export function isProduction(_0x79a07b){const _0xd90a75=a170_0x285c16;return normalizeEnv(_0x79a07b)===_0xd90a75(0x85);}function a170_0x5532(_0xa546ba,_0x2aaa92){_0xa546ba=_0xa546ba-0x7a;const _0x4f0e6a=a170_0x4f0e();let _0x5532c8=_0x4f0e6a[_0xa546ba];return _0x5532c8;}function a170_0x4f0e(){const _0x37403b=['542478nrZdvC','72764ZFwtem','6gnttAo','dev','production','821493lcIawA','10081584TFNLwt','daily','3318888jeukqX','development','4628925vGbtLv','318510AGehnK','5FNsFEY'];a170_0x4f0e=function(){return _0x37403b;};return a170_0x4f0e();}export function isDaily(_0x4e2855){const _0x2fd01b=a170_0x285c16;return normalizeEnv(_0x4e2855)===_0x2fd01b(0x7b);}export function isDev(_0x50f8bd){const _0x586390=a170_0x285c16,_0x59cb98=normalizeEnv(_0x50f8bd);return _0x59cb98===_0x586390(0x7d)||_0x59cb98===_0x586390(0x84);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a170_0x285c16(0x85));export function getEnv(){return env;}export function initEnv(_0x223b4d){env=normalizeEnv(_0x223b4d);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a171_0x187d(_0x555c83,_0x5172ec){_0x555c83=_0x555c83-0xaf;const _0xa51174=a171_0xa511();let _0x187db9=_0xa51174[_0x555c83];return _0x187db9;}const a171_0x154b49=a171_0x187d;(function(_0x2eaf92,_0x1572ba){const _0x5dc4ed=a171_0x187d,_0x445231=_0x2eaf92();while(!![]){try{const _0xb1a91a=parseInt(_0x5dc4ed(0xb7))/0x1+-parseInt(_0x5dc4ed(0xb1))/0x2*(parseInt(_0x5dc4ed(0xb3))/0x3)+-parseInt(_0x5dc4ed(0xba))/0x4*(-parseInt(_0x5dc4ed(0xb6))/0x5)+-parseInt(_0x5dc4ed(0xb9))/0x6+-parseInt(_0x5dc4ed(0xaf))/0x7*(parseInt(_0x5dc4ed(0xb4))/0x8)+parseInt(_0x5dc4ed(0xbb))/0x9*(parseInt(_0x5dc4ed(0xb2))/0xa)+parseInt(_0x5dc4ed(0xbc))/0xb;if(_0xb1a91a===_0x1572ba)break;else _0x445231['push'](_0x445231['shift']());}catch(_0x36f1f7){_0x445231['push'](_0x445231['shift']());}}}(a171_0xa511,0x6c8c4));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a171_0x154b49(0xb0),a171_0x154b49(0xb8),a171_0x154b49(0xb5)];function a171_0xa511(){const _0xf0775b=['437310ybJSiP','5912Lxxier','9JuULii','219560lLdNBT','7VAqXIj','json','827546anImbF','6008230MvKvXn','3CRpJIu','5748432UjtkoW','compress','2285kKSNeQ','353595ZmMVUv','pretty'];a171_0xa511=function(){return _0xf0775b;};return a171_0xa511();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a172_0x5357(_0x2352c6,_0x53b1b5){_0x2352c6=_0x2352c6-0x16b;const _0x316778=a172_0x3167();let _0x535772=_0x316778[_0x2352c6];return _0x535772;}const a172_0x695674=a172_0x5357;(function(_0x51897b,_0x59d892){const _0x177902=a172_0x5357,_0x40417f=_0x51897b();while(!![]){try{const _0x221ced=parseInt(_0x177902(0x172))/0x1*(-parseInt(_0x177902(0x16c))/0x2)+parseInt(_0x177902(0x176))/0x3+-parseInt(_0x177902(0x16f))/0x4+-parseInt(_0x177902(0x16e))/0x5*(parseInt(_0x177902(0x174))/0x6)+-parseInt(_0x177902(0x173))/0x7+-parseInt(_0x177902(0x170))/0x8*(-parseInt(_0x177902(0x16b))/0x9)+-parseInt(_0x177902(0x175))/0xa*(-parseInt(_0x177902(0x16d))/0xb);if(_0x221ced===_0x59d892)break;else _0x40417f['push'](_0x40417f['shift']());}catch(_0x340219){_0x40417f['push'](_0x40417f['shift']());}}}(a172_0x3167,0x5ab46));function a172_0x3167(){const _0x5066bf=['685068yOKJkA','32hVwCte','./src/api','73CzlNEe','1726543yrzDfE','1020bpBpIS','78730Benpfp','74871dcGuCo','1081422zwiXSa','4536vIPmsB','869cVdaJb','5075OsxaFb'];a172_0x3167=function(){return _0x5066bf;};return a172_0x3167();}export const DEFAULT_API_DIR=a172_0x695674(0x171);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a173_0x31fdb3=a173_0xc9a6;function a173_0xc9a6(_0x3431d7,_0x5f425c){_0x3431d7=_0x3431d7-0x1e2;const _0x35395a=a173_0x3539();let _0xc9a661=_0x35395a[_0x3431d7];return _0xc9a661;}(function(_0x54da86,_0x11e3e6){const _0x297a0a=a173_0xc9a6,_0x511b65=_0x54da86();while(!![]){try{const _0x28c095=-parseInt(_0x297a0a(0x1ea))/0x1*(parseInt(_0x297a0a(0x1ed))/0x2)+parseInt(_0x297a0a(0x1ee))/0x3+-parseInt(_0x297a0a(0x1e3))/0x4+parseInt(_0x297a0a(0x1ef))/0x5*(parseInt(_0x297a0a(0x1e9))/0x6)+-parseInt(_0x297a0a(0x1eb))/0x7+parseInt(_0x297a0a(0x1ec))/0x8*(parseInt(_0x297a0a(0x1e4))/0x9)+parseInt(_0x297a0a(0x1e8))/0xa*(parseInt(_0x297a0a(0x1e6))/0xb);if(_0x28c095===_0x11e3e6)break;else _0x511b65['push'](_0x511b65['shift']());}catch(_0x234605){_0x511b65['push'](_0x511b65['shift']());}}}(a173_0x3539,0x7065c));function a173_0x3539(){const _0x2e2e84=['read','20CQQSqp','123546OLAopO','411764yUgyLv','2946937MvZODR','10456PDqhxd','2wQcBGi','2691159jscAQn','55VpKOEY','write','2204136ZAnLnn','4113lDmDxn','high-risk-write','678238jNKAhO'];a173_0x3539=function(){return _0x2e2e84;};return a173_0x3539();}export const RISK_LEVEL_VALUES=[a173_0x31fdb3(0x1e7),a173_0x31fdb3(0x1e2),a173_0x31fdb3(0x1e5)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb2fdff,_0x1b8e14){const _0x253adc=a174_0x31e7,_0x1b9f8c=_0xb2fdff();while(!![]){try{const _0xea296f=-parseInt(_0x253adc(0x17f))/0x1+-parseInt(_0x253adc(0x185))/0x2*(parseInt(_0x253adc(0x18e))/0x3)+-parseInt(_0x253adc(0x177))/0x4+-parseInt(_0x253adc(0x17b))/0x5+-parseInt(_0x253adc(0x194))/0x6+parseInt(_0x253adc(0x181))/0x7*(-parseInt(_0x253adc(0x17d))/0x8)+-parseInt(_0x253adc(0x192))/0x9*(-parseInt(_0x253adc(0x183))/0xa);if(_0xea296f===_0x1b8e14)break;else _0x1b9f8c['push'](_0x1b9f8c['shift']());}catch(_0x420c4a){_0x1b9f8c['push'](_0x1b9f8c['shift']());}}}(a174_0x21c9,0x87f81));function a174_0x31e7(_0x3d34b3,_0x649c64){_0x3d34b3=_0x3d34b3-0x176;const _0x21c9a6=a174_0x21c9();let _0x31e717=_0x21c9a6[_0x3d34b3];return _0x31e717;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x4eec08){const _0x40246d=a174_0x31e7;return typeof _0x4eec08==='string'&&_0x4eec08[_0x40246d(0x17c)]()?_0x4eec08[_0x40246d(0x17c)]():undefined;}function appProfiles(_0xdb17af){const _0x310c68=a174_0x31e7;return _0xdb17af[_0x310c68(0x193)]&&typeof _0xdb17af['apps']===_0x310c68(0x19c)?_0xdb17af[_0x310c68(0x193)]:{};}function resolveDefaultAppName(_0x2b9779){const _0x5279a4=a174_0x31e7,_0x500a6e=stringConfigValue(_0x2b9779[_0x5279a4(0x19b)]);if(_0x500a6e)return _0x500a6e;return Object[_0x5279a4(0x191)](appProfiles(_0x2b9779))[0x0];}function resolveTopLevelAppCode(_0x4b07ca){return stringConfigValue(_0x4b07ca['appcode'])||stringConfigValue(_0x4b07ca['app']);}export function resolveAppConfig({raw:_0x29f4d7,flags:_0x5bf66a,layers:_0x264f35,readEnv:_0xfddafe}){const _0x435963=a174_0x31e7,_0x466b54=_0x264f35?.[_0x435963(0x18f)]??{},_0x9a3e7d=_0x264f35?.[_0x435963(0x17e)]??{},_0x4e987c=Object[_0x435963(0x191)](_0x466b54)['length']>0x0,_0x52c86f=!_0x4e987c||_0x466b54[_0x435963(0x19f)]===!![],_0x1d12bf=_0x4e987c?resolveDefaultAppName(_0x466b54):undefined,_0xb1a969=_0x52c86f?resolveDefaultAppName(_0x9a3e7d):undefined,_0x52494a=stringConfigValue(_0x5bf66a[_0x435963(0x18a)]),_0x252b96=_0xfddafe(_0x435963(0x190)),_0x561fd1={};if(_0x29f4d7['apps']&&typeof _0x29f4d7[_0x435963(0x193)]===_0x435963(0x19c))for(const [_0x49d3b2,_0x41a7ab]of Object[_0x435963(0x199)](_0x29f4d7[_0x435963(0x193)])){_0x41a7ab&&typeof _0x41a7ab===_0x435963(0x19c)&&_0x41a7ab['appcode']&&(_0x561fd1[_0x49d3b2]=_0x41a7ab);}const _0x44c303=_0x29f4d7['defaultApp']||undefined,_0x51e068=Object[_0x435963(0x191)](_0x561fd1)[_0x435963(0x18c)]>0x0,_0x5cdab8=_0x52494a||_0x1d12bf||_0x252b96||_0xb1a969||_0x44c303||undefined,_0x1773e2=stringConfigValue(_0x5bf66a['appcode']),_0x244d7a=_0x1773e2?Object[_0x435963(0x199)](_0x561fd1)[_0x435963(0x19d)](([,_0x5a4e06])=>_0x5a4e06?.[_0x435963(0x18b)]===_0x1773e2):undefined,_0x4f0ae9=_0x244d7a?.[0x0],_0x3d1195=_0x244d7a?.[0x1],_0x47332f=_0x1773e2?_0x4f0ae9:_0x5cdab8;let _0x502e06=_0x47332f&&_0x561fd1[_0x47332f]?_0x561fd1[_0x47332f]:undefined;_0x1773e2&&_0x3d1195&&(_0x502e06=_0x3d1195);const _0x177d46=_0x1773e2?_0x3d1195??_0x502e06:_0x502e06,_0x49283f=!_0x52494a&&!_0x1d12bf&&_0x252b96&&_0x47332f===_0x252b96,_0x3bc1b5=_0x52494a||(_0x49283f?_0x252b96:undefined)||(_0x1773e2?_0x4f0ae9:undefined),_0x2348bc=_0x177d46?.[_0x435963(0x18b)],_0x21fc45=_0x4e987c?resolveTopLevelAppCode(_0x466b54):undefined,_0x3c75fc=_0x52c86f?resolveTopLevelAppCode(_0x9a3e7d):undefined,_0x35c5ef=_0x52494a||_0x1d12bf?_0x2348bc:undefined,_0x314ef7=!_0x52494a&&!_0x1d12bf?_0x2348bc:undefined,_0x292b13=_0x1773e2||_0x35c5ef||_0x21fc45||_0x314ef7||_0x3c75fc||undefined,_0x50bee2=_0x4e987c?stringConfigValue(_0x466b54[_0x435963(0x176)]):undefined,_0x34c14c=_0x52c86f?stringConfigValue(_0x9a3e7d[_0x435963(0x176)]):undefined,_0x1f9c7b=_0x5bf66a[_0x435963(0x176)]||_0x177d46?.[_0x435963(0x176)]||_0x50bee2||_0xfddafe(_0x435963(0x17a))||_0x34c14c||_0x29f4d7[_0x435963(0x176)]||DEFAULT_CONFIG_VALUES[_0x435963(0x176)],_0xdbf3ab=_0x177d46?.[_0x435963(0x178)]||_0x29f4d7[_0x435963(0x178)]||DEFAULT_CONFIG_VALUES[_0x435963(0x178)],_0x2099ed=_0xfddafe('COOKIE')||_0x177d46?.[_0x435963(0x188)]||_0x29f4d7[_0x435963(0x188)]||undefined,_0x212aaf=_0xfddafe(_0x435963(0x186))||_0x177d46?.['accessKey']||_0x29f4d7[_0x435963(0x187)]||undefined,_0x45b1fb=_0x5bf66a[_0x435963(0x189)]||_0xfddafe(_0x435963(0x198))||_0x177d46?.['format']||_0x29f4d7[_0x435963(0x189)],_0x5af90a=normalizeLegacyOutputFormat(_0x45b1fb),_0x4845b4=_0xfddafe('PAGE_SIZE')||_0x177d46?.['pageSize']||_0x29f4d7[_0x435963(0x182)],_0x3d68b3=_0x4845b4?Number(_0x4845b4)||undefined:undefined,_0xeed0ba=_0xfddafe(_0x435963(0x19e))||_0xfddafe(_0x435963(0x195))||_0x177d46?.[_0x435963(0x180)]||_0x29f4d7[_0x435963(0x180)]||_0x29f4d7['maxRisk'],_0x1b6c4f=_0xeed0ba===_0x435963(0x19a)||_0xeed0ba==='write'?_0xeed0ba:DEFAULT_CONFIG_VALUES[_0x435963(0x180)],_0x4bcd60=_0xfddafe('VERBOSE'),_0x6e0ee9=_0x4bcd60==='1'||_0x4bcd60===_0x435963(0x179),_0x5d5f44=_0x177d46?.['apiDir']||_0x29f4d7[_0x435963(0x197)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x48886c=isDaily(normalizeEnv(String(_0x1f9c7b)))?_0x435963(0x184):_0x435963(0x18d);return{'appCode':typeof _0x292b13===_0x435963(0x196)&&_0x292b13['trim']()?_0x292b13[_0x435963(0x17c)]():undefined,'env':_0x48886c,'locale':_0xdbf3ab,'cookie':_0x2099ed,'accessKey':_0x212aaf,'format':_0x5af90a,'pageSize':_0x3d68b3,'riskLevel':_0x1b6c4f,'verbose':_0x6e0ee9,'apiDir':_0x5d5f44,'apps':_0x561fd1,'defaultApp':_0x44c303,'currentApp':_0x51e068?_0x47332f:undefined,'explicitAppName':_0x3bc1b5};}function a174_0x21c9(){const _0x494c3a=['entries','read','defaultApp','object','find','RISK_LEVEL','inherit','env','3140032DSsRDL','locale','true','ENV','3827680wRlISY','trim','16RnNkxq','globalConfig','607358BKOkcm','riskLevel','2811179dkhaAV','pageSize','10ZcutvZ','daily','1594894NWTtpr','ACCESS_KEY','accessKey','cookie','format','app','appcode','length','production','3cdFFTi','projectConfig','APP','keys','42539769xRyWeZ','apps','2467014YMdWCt','MAX_RISK','string','apiDir','FORMAT'];a174_0x21c9=function(){return _0x494c3a;};return a174_0x21c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21617b,_0x2c6dce){const _0x19f02d=a175_0x4f7a,_0x27ed65=_0x21617b();while(!![]){try{const _0x20b337=-parseInt(_0x19f02d(0xd0))/0x1+-parseInt(_0x19f02d(0xc9))/0x2*(-parseInt(_0x19f02d(0xd3))/0x3)+-parseInt(_0x19f02d(0xcd))/0x4+-parseInt(_0x19f02d(0xd2))/0x5+parseInt(_0x19f02d(0xcf))/0x6+parseInt(_0x19f02d(0xcc))/0x7*(parseInt(_0x19f02d(0xcb))/0x8)+-parseInt(_0x19f02d(0xce))/0x9*(-parseInt(_0x19f02d(0xd1))/0xa);if(_0x20b337===_0x2c6dce)break;else _0x27ed65['push'](_0x27ed65['shift']());}catch(_0x1a6f6c){_0x27ed65['push'](_0x27ed65['shift']());}}}(a175_0x38bc,0x6d617));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a175_0x4f7a(_0x58fe2a,_0x1baa91){_0x58fe2a=_0x58fe2a-0xc8;const _0x38bc15=a175_0x38bc();let _0x4f7a03=_0x38bc15[_0x58fe2a];return _0x4f7a03;}function a175_0x38bc(){const _0x16018e=['91UGEEqn','3258696iqVvoo','36hxDgfZ','4848924sJynwv','119336iJxfAa','501940CFwTHT','2253185HHiJtN','1785288kSnNyl','authRequired','2cDmBEL','../auth/get-cookie.js','140704GXWIHq'];a175_0x38bc=function(){return _0x16018e;};return a175_0x38bc();}export async function buildAuth(_0x3ee04b){const _0x589739=a175_0x4f7a,{getCookie:_0x2679bd}=await import(_0x589739(0xca)),_0x228282=_0x3ee04b['cookie']||_0x2679bd(),_0x2957b6=_0x228282?await getIsSessionValid():![];return{'cookie':_0x228282,'isLoggedIn':_0x2957b6,async 'getOrLogin'(){const _0x3a0678=_0x589739;if(_0x228282&&_0x2957b6)return _0x228282;throw CliErrors[_0x3a0678(0xc8)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a155_0x4f189b=a155_0x2ae9;(function(_0x1bf0ed,_0x51be4c){const _0xbb55e=a155_0x2ae9,_0x4fc153=_0x1bf0ed();while(!![]){try{const _0x27cff7=parseInt(_0xbb55e(0x143))/0x1*(parseInt(_0xbb55e(0x14e))/0x2)+-parseInt(_0xbb55e(0x15b))/0x3+-parseInt(_0xbb55e(0x152))/0x4*(-parseInt(_0xbb55e(0x14f))/0x5)+-parseInt(_0xbb55e(0x154))/0x6*(-parseInt(_0xbb55e(0x12e))/0x7)+parseInt(_0xbb55e(0x13e))/0x8*(-parseInt(_0xbb55e(0x132))/0x9)+parseInt(_0xbb55e(0x145))/0xa+-parseInt(_0xbb55e(0x13d))/0xb;if(_0x27cff7===_0x51be4c)break;else _0x4fc153['push'](_0x4fc153['shift']());}catch(_0x1700bb){_0x4fc153['push'](_0x4fc153['shift']());}}}(a155_0x2a5f,0x6bc2c));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=a155_0x4f189b(0x146);export const CONFIG_NAMES=[a155_0x4f189b(0x146),a155_0x4f189b(0x141),'.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a155_0x4f189b(0x12c)](_0x45825b=>_0x45825b!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x9653f4){for(const _0x326f8c of CONFIG_NAMES){const _0x4082c5=resolve(_0x9653f4,_0x326f8c);if(existsSync(_0x4082c5))return _0x4082c5;}return undefined;}export function findProjectRootDirectory(_0x1e68e5=process[a155_0x4f189b(0x142)]()){let _0x5c3a97=resolve(_0x1e68e5);const {root:_0x531da0}=parse(_0x5c3a97),_0x45369b=homedir();while(!![]){if(resolveConfigPath(_0x5c3a97)){if(_0x5c3a97===_0x45369b)break;return _0x5c3a97;}if(_0x5c3a97===_0x531da0||_0x5c3a97===_0x45369b)break;const _0x42c0b9=dirname(_0x5c3a97);if(_0x42c0b9===_0x5c3a97)break;_0x5c3a97=_0x42c0b9;}return resolve(_0x1e68e5);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2e2a38){const _0x5b7e3d=a155_0x4f189b;if(!existsSync(_0x2e2a38))return{'status':'missing'};try{const _0x551113=readFileSync(_0x2e2a38,{'encoding':_0x5b7e3d(0x150)});if(!_0x551113?.[_0x5b7e3d(0x158)]())return{'status':'empty'};const _0x24a886=JSON[_0x5b7e3d(0x13a)](_0x551113);return{'status':'ok','data':_0x24a886};}catch(_0x2dfef1){return{'status':_0x5b7e3d(0x153),'message':_0x2dfef1 instanceof Error?_0x2dfef1['message']:String(_0x2dfef1)};}}function parseCliConfigJsonFile(_0x15b4b4,_0x36323b,_0x20480d){const _0x53559b=a155_0x4f189b,_0x1bf009=inspectCliConfigJsonFile(_0x15b4b4);if(_0x1bf009['status']===_0x53559b(0x14b)||_0x1bf009[_0x53559b(0x14a)]===_0x53559b(0x13c))return{};if(_0x1bf009[_0x53559b(0x14a)]==='ok')return _0x1bf009[_0x53559b(0x149)];return _0x36323b===_0x53559b(0x140)&&_0x20480d&&console[_0x53559b(0x153)](CLI_BIN_NAME+':\x20'+_0x20480d+_0x53559b(0x144)+_0x15b4b4+'\x0a\x20\x20'+_0x1bf009[_0x53559b(0x12a)]),{};}function normalizeLegacyConfigShape(_0x3b259a){const _0x3e3e35=a155_0x4f189b;if(!_0x3b259a||typeof _0x3b259a!==_0x3e3e35(0x135))return{'config':{},'migrated':![]};const _0x12a97a={..._0x3b259a},_0x15ea57=_0x12a97a['apps']&&typeof _0x12a97a[_0x3e3e35(0x13b)]===_0x3e3e35(0x135)?{..._0x12a97a[_0x3e3e35(0x13b)]}:{},_0x51e7b5=Object[_0x3e3e35(0x137)](_0x15ea57)['length'],_0x3e890d=_0x12a97a['appcode']||_0x12a97a[_0x3e3e35(0x12b)];let _0x3e7668=![];if(_0x3e890d&&_0x51e7b5===0x0){const _0x569b15=typeof _0x12a97a['defaultApp']===_0x3e3e35(0x12f)&&_0x12a97a[_0x3e3e35(0x15a)][_0x3e3e35(0x158)]()?_0x12a97a['defaultApp']:String(_0x3e890d)[_0x3e3e35(0x158)]();_0x15ea57[_0x569b15]={'appcode':String(_0x3e890d)[_0x3e3e35(0x158)](),..._0x12a97a[_0x3e3e35(0x151)]!=null?{'env':_0x12a97a['env']}:{},..._0x12a97a['apiDir']!=null?{'apiDir':_0x12a97a['apiDir']}:{},..._0x12a97a['cookie']!=null?{'cookie':_0x12a97a[_0x3e3e35(0x14c)]}:{},..._0x12a97a[_0x3e3e35(0x133)]!=null?{'accessKey':_0x12a97a[_0x3e3e35(0x133)]}:{},..._0x12a97a[_0x3e3e35(0x14d)]!=null?{'format':_0x12a97a[_0x3e3e35(0x14d)]}:{},..._0x12a97a[_0x3e3e35(0x148)]!=null?{'pageSize':_0x12a97a[_0x3e3e35(0x148)]}:{},..._0x12a97a[_0x3e3e35(0x13f)]!=null?{'riskLevel':_0x12a97a[_0x3e3e35(0x13f)]}:{},..._0x12a97a[_0x3e3e35(0x131)]!=null?{'locale':_0x12a97a[_0x3e3e35(0x131)]}:{}},_0x12a97a[_0x3e3e35(0x13b)]=_0x15ea57;if(!_0x12a97a['defaultApp'])_0x12a97a[_0x3e3e35(0x15a)]=_0x569b15;_0x3e7668=!![];}return('appcode'in _0x12a97a||'app'in _0x12a97a)&&(delete _0x12a97a[_0x3e3e35(0x156)],delete _0x12a97a[_0x3e3e35(0x12b)],_0x3e7668=!![]),{'config':_0x12a97a,'migrated':_0x3e7668};}function writeNormalizedConfigIfNeeded(_0x3ebd2c,_0x397b13){const _0x1d4108=a155_0x4f189b,_0xd1b14d=JSON[_0x1d4108(0x136)](_0x397b13,null,0x2)+'\x0a';if(normalizedWriteCache[_0x1d4108(0x157)](_0x3ebd2c)===_0xd1b14d)return;writeConfigFile(_0x3ebd2c,_0x397b13),normalizedWriteCache[_0x1d4108(0x147)](_0x3ebd2c,_0xd1b14d);}function parseAndNormalizeConfig(_0x51f361,_0xfb1c5d,_0x4417ec){const _0x18391e=a155_0x4f189b,_0xe531df=parseCliConfigJsonFile(_0x51f361,_0xfb1c5d,_0x4417ec),_0x5c4882=normalizeLegacyConfigShape(_0xe531df);if(_0x5c4882[_0x18391e(0x134)])try{writeNormalizedConfigIfNeeded(_0x51f361,_0x5c4882['config']);}catch{}return _0x5c4882[_0x18391e(0x159)];}export function loadRawConfigLayers(_0x38a673){const _0x441984=a155_0x4f189b;let _0x5e2c4f={},_0x3e2086={};const _0x3c84de=resolveConfigPath(homedir());_0x3c84de&&(_0x5e2c4f=parseAndNormalizeConfig(_0x3c84de,'warn','Global'));const _0x5c480b=_0x38a673??findProjectRootDirectory(),_0x5807ec=resolveConfigPath(_0x5c480b);return _0x5807ec&&(_0x3e2086=parseAndNormalizeConfig(_0x5807ec,_0x441984(0x140),_0x441984(0x155))),{'globalPath':_0x3c84de,'projectPath':_0x5807ec,'globalConfig':_0x5e2c4f,'projectConfig':_0x3e2086};}const INHERIT_WHITELIST=[a155_0x4f189b(0x14c),'accessKey','locale','format',a155_0x4f189b(0x13f),'pageSize'];function a155_0x2ae9(_0x10a307,_0x119846){_0x10a307=_0x10a307-0x12a;const _0x2a5fc1=a155_0x2a5f();let _0x2ae9c9=_0x2a5fc1[_0x10a307];return _0x2ae9c9;}export function mergeRawConfigLayers(_0xeec28a){const _0x24107d=a155_0x4f189b,{globalConfig:_0x4b8db0,projectConfig:_0x5669fa}=_0xeec28a,_0x32f3e7=Object[_0x24107d(0x137)](_0x5669fa)[_0x24107d(0x130)]>0x0;if(!_0x32f3e7)return mergeGlobalOnly(_0x4b8db0);if(_0x5669fa['inherit']===!![])return mergeFullInherit(_0x4b8db0,_0x5669fa);if(_0x5669fa[_0x24107d(0x12d)]===![])return mergeIsolated(_0x5669fa);return mergeProjectFirst(_0x4b8db0,_0x5669fa);}function mergeGlobalOnly(_0x111f6){const _0x2a392d=a155_0x4f189b,_0x433147={..._0x111f6},_0x43aab9=_0x111f6[_0x2a392d(0x13b)]&&typeof _0x111f6[_0x2a392d(0x13b)]===_0x2a392d(0x135)?_0x111f6['apps']:{};if(Object[_0x2a392d(0x137)](_0x43aab9)['length']>0x0)_0x433147['apps']=_0x43aab9;if(_0x111f6[_0x2a392d(0x15a)])_0x433147[_0x2a392d(0x15a)]=_0x111f6[_0x2a392d(0x15a)];else{const _0x2bc5c7=Object['keys'](_0x43aab9);if(_0x2bc5c7['length']>0x0)_0x433147['defaultApp']=_0x2bc5c7[0x0];}return _0x433147;}function mergeIsolated(_0x3f3926){const _0x47a717=a155_0x4f189b,_0x2a101a={..._0x3f3926};delete _0x2a101a[_0x47a717(0x12d)];const _0x211590=_0x3f3926['apps']&&typeof _0x3f3926[_0x47a717(0x13b)]===_0x47a717(0x135)?_0x3f3926[_0x47a717(0x13b)]:{};Object[_0x47a717(0x137)](_0x211590)[_0x47a717(0x130)]>0x0?_0x2a101a[_0x47a717(0x13b)]=_0x211590:delete _0x2a101a[_0x47a717(0x13b)];if(_0x47a717(0x15a)in _0x3f3926)_0x2a101a[_0x47a717(0x15a)]=_0x3f3926[_0x47a717(0x15a)];else Object['keys'](_0x211590)[_0x47a717(0x130)]>0x0?_0x2a101a['defaultApp']=Object[_0x47a717(0x137)](_0x211590)[0x0]:delete _0x2a101a['defaultApp'];return _0x2a101a;}function mergeProjectFirst(_0x5df3e7,_0x320eab){const _0x2f73cd=a155_0x4f189b,_0x41459f={..._0x320eab};delete _0x41459f['inherit'];for(const _0x2dacaf of INHERIT_WHITELIST){!(_0x2dacaf in _0x41459f)&&_0x2dacaf in _0x5df3e7&&(_0x41459f[_0x2dacaf]=_0x5df3e7[_0x2dacaf]);}const _0x54388c=_0x320eab['apps']&&typeof _0x320eab[_0x2f73cd(0x13b)]===_0x2f73cd(0x135)?_0x320eab[_0x2f73cd(0x13b)]:{};Object[_0x2f73cd(0x137)](_0x54388c)[_0x2f73cd(0x130)]>0x0?_0x41459f['apps']=_0x54388c:delete _0x41459f[_0x2f73cd(0x13b)];if(_0x2f73cd(0x15a)in _0x320eab)_0x41459f[_0x2f73cd(0x15a)]=_0x320eab[_0x2f73cd(0x15a)];else Object[_0x2f73cd(0x137)](_0x54388c)[_0x2f73cd(0x130)]>0x0?_0x41459f[_0x2f73cd(0x15a)]=Object[_0x2f73cd(0x137)](_0x54388c)[0x0]:delete _0x41459f[_0x2f73cd(0x15a)];return _0x41459f;}function a155_0x2a5f(){const _0x1ff476=['584cNCbhb','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','583330IWSFaf','.rabetbase.json','set','pageSize','data','status','missing','cookie','format','1886ZUxhbC','35zGIaTw','utf8','env','436348ZzyzZy','error','344046lXzgis','Project','appcode','get','trim','config','defaultApp','655341vgExpL','message','app','filter','inherit','14lcymOp','string','length','locale','9MmuMcw','accessKey','migrated','object','stringify','keys','project','.tmp','parse','apps','empty','3404049phIKnk','4144336EuFvox','riskLevel','warn','.lovrabet.json','cwd'];a155_0x2a5f=function(){return _0x1ff476;};return a155_0x2a5f();}function mergeFullInherit(_0x104058,_0x3cb683){const _0x155f2c=a155_0x4f189b,_0x4234b1=_0x104058[_0x155f2c(0x13b)]&&typeof _0x104058['apps']===_0x155f2c(0x135)?_0x104058[_0x155f2c(0x13b)]:{},_0x493b67=_0x3cb683[_0x155f2c(0x13b)]&&typeof _0x3cb683[_0x155f2c(0x13b)]===_0x155f2c(0x135)?_0x3cb683['apps']:{},_0x5d2914={..._0x4234b1,..._0x493b67},_0x3922f3={..._0x104058,..._0x3cb683};delete _0x3922f3['inherit'];if(Object[_0x155f2c(0x137)](_0x5d2914)['length']>0x0)_0x3922f3[_0x155f2c(0x13b)]=_0x5d2914;if(_0x155f2c(0x15a)in _0x3cb683)_0x3922f3[_0x155f2c(0x15a)]=_0x3cb683[_0x155f2c(0x15a)];else{if(Object[_0x155f2c(0x137)](_0x493b67)[_0x155f2c(0x130)]>0x0)_0x3922f3[_0x155f2c(0x15a)]=Object['keys'](_0x493b67)[0x0];else{if(_0x104058['defaultApp'])_0x3922f3[_0x155f2c(0x15a)]=_0x104058[_0x155f2c(0x15a)];else{const _0x26a2f8=Object[_0x155f2c(0x137)](_0x4234b1);if(_0x26a2f8[_0x155f2c(0x130)]>0x0)_0x3922f3[_0x155f2c(0x15a)]=_0x26a2f8[0x0];}}}return _0x3922f3;}export function readRawConfigWithLayers(_0x28789a){const _0xcd51f5=loadRawConfigLayers(_0x28789a);return{'config':mergeRawConfigLayers(_0xcd51f5),'layers':_0xcd51f5};}export function readRawConfig(_0x41cda8){return mergeRawConfigLayers(loadRawConfigLayers(_0x41cda8));}export function readConfigFile(_0x19b147){return parseAndNormalizeConfig(_0x19b147,'silent');}export function writeConfigFile(_0x4e8f89,_0x54b8c2){const _0x387cad=a155_0x4f189b,_0x5522bf=dirname(_0x4e8f89);!existsSync(_0x5522bf)&&mkdirSync(_0x5522bf,{'recursive':!![]});const _0x3b8ebe=_0x4e8f89+_0x387cad(0x139);try{writeFileSync(_0x3b8ebe,JSON[_0x387cad(0x136)](_0x54b8c2,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x3b8ebe,_0x4e8f89);}catch(_0x20b719){try{unlinkSync(_0x3b8ebe);}catch{}throw _0x20b719;}}export function resolveWriteConfigPath(_0x1f5120){const _0x46a787=a155_0x4f189b,_0x40565b=_0x1f5120===_0x46a787(0x138)?process['cwd']():homedir(),_0xb411eb=resolveConfigPath(_0x40565b);return _0xb411eb??resolve(_0x40565b,NEW_CONFIG_NAME);}
|
|
1
|
+
const a176_0x4313ff=a176_0x2be6;(function(_0x2ab01f,_0x164b2f){const _0x29a576=a176_0x2be6,_0x296353=_0x2ab01f();while(!![]){try{const _0x2835b3=-parseInt(_0x29a576(0xa8))/0x1+parseInt(_0x29a576(0xa5))/0x2+-parseInt(_0x29a576(0xbe))/0x3+parseInt(_0x29a576(0x9f))/0x4*(-parseInt(_0x29a576(0x9e))/0x5)+parseInt(_0x29a576(0xa0))/0x6*(parseInt(_0x29a576(0xa4))/0x7)+parseInt(_0x29a576(0xa3))/0x8+parseInt(_0x29a576(0xa7))/0x9;if(_0x2835b3===_0x164b2f)break;else _0x296353['push'](_0x296353['shift']());}catch(_0x1682cc){_0x296353['push'](_0x296353['shift']());}}}(a176_0x4455,0xc3c1c));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='.rabetbase.json';export const CONFIG_NAMES=['.rabetbase.json',a176_0x4313ff(0x92),a176_0x4313ff(0xbb)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a176_0x4313ff(0xac)](_0x59eaa6=>_0x59eaa6!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x240fc8){for(const _0x4ae749 of CONFIG_NAMES){const _0x109e4c=resolve(_0x240fc8,_0x4ae749);if(existsSync(_0x109e4c))return _0x109e4c;}return undefined;}export function findProjectRootDirectory(_0xcb2f50=process[a176_0x4313ff(0x9c)]()){let _0xfce44a=resolve(_0xcb2f50);const {root:_0x375dec}=parse(_0xfce44a),_0x51db7e=homedir();while(!![]){if(resolveConfigPath(_0xfce44a)){if(_0xfce44a===_0x51db7e)break;return _0xfce44a;}if(_0xfce44a===_0x375dec||_0xfce44a===_0x51db7e)break;const _0x28c24b=dirname(_0xfce44a);if(_0x28c24b===_0xfce44a)break;_0xfce44a=_0x28c24b;}return resolve(_0xcb2f50);}export function getProjectConfigPath(){const _0x1b9342=a176_0x4313ff;return resolveConfigPath(process[_0x1b9342(0x9c)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1b3b63){const _0x4db85b=a176_0x4313ff;if(!existsSync(_0x1b3b63))return{'status':_0x4db85b(0xb0)};try{const _0x5cc30d=readFileSync(_0x1b3b63,{'encoding':_0x4db85b(0x96)});if(!_0x5cc30d?.['trim']())return{'status':_0x4db85b(0xba)};const _0x3f8842=JSON['parse'](_0x5cc30d);return{'status':'ok','data':_0x3f8842};}catch(_0x1ddc1a){return{'status':_0x4db85b(0xb4),'message':_0x1ddc1a instanceof Error?_0x1ddc1a['message']:String(_0x1ddc1a)};}}function parseCliConfigJsonFile(_0x2c678a,_0x550ac5,_0x36fe04){const _0x17a993=a176_0x4313ff,_0x16cab5=inspectCliConfigJsonFile(_0x2c678a);if(_0x16cab5[_0x17a993(0xc0)]===_0x17a993(0xb0)||_0x16cab5[_0x17a993(0xc0)]===_0x17a993(0xba))return{};if(_0x16cab5[_0x17a993(0xc0)]==='ok')return _0x16cab5[_0x17a993(0x97)];return _0x550ac5==='warn'&&_0x36fe04&&console[_0x17a993(0xb4)](CLI_BIN_NAME+':\x20'+_0x36fe04+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x2c678a+_0x17a993(0x9a)+_0x16cab5['message']),{};}function normalizeLegacyConfigShape(_0x1af8f2){const _0x5565c2=a176_0x4313ff;if(!_0x1af8f2||typeof _0x1af8f2!==_0x5565c2(0xb7))return{'config':{},'migrated':![]};const _0x4d6a6f={..._0x1af8f2},_0x14503c=_0x4d6a6f[_0x5565c2(0x99)]&&typeof _0x4d6a6f['apps']===_0x5565c2(0xb7)?{..._0x4d6a6f[_0x5565c2(0x99)]}:{},_0x24a0f1=Object[_0x5565c2(0x93)](_0x14503c)[_0x5565c2(0x95)],_0x4ebeae=_0x4d6a6f[_0x5565c2(0xb3)]||_0x4d6a6f[_0x5565c2(0x94)];let _0x2b56de=![];if(_0x4ebeae&&_0x24a0f1===0x0){const _0x9fbc57=typeof _0x4d6a6f[_0x5565c2(0xbc)]===_0x5565c2(0xa2)&&_0x4d6a6f[_0x5565c2(0xbc)][_0x5565c2(0xb9)]()?_0x4d6a6f[_0x5565c2(0xbc)]:String(_0x4ebeae)['trim']();_0x14503c[_0x9fbc57]={'appcode':String(_0x4ebeae)[_0x5565c2(0xb9)](),..._0x4d6a6f[_0x5565c2(0xb5)]!=null?{'env':_0x4d6a6f[_0x5565c2(0xb5)]}:{},..._0x4d6a6f[_0x5565c2(0xad)]!=null?{'apiDir':_0x4d6a6f['apiDir']}:{},..._0x4d6a6f[_0x5565c2(0x9d)]!=null?{'cookie':_0x4d6a6f[_0x5565c2(0x9d)]}:{},..._0x4d6a6f['accessKey']!=null?{'accessKey':_0x4d6a6f[_0x5565c2(0xae)]}:{},..._0x4d6a6f[_0x5565c2(0xa1)]!=null?{'format':_0x4d6a6f['format']}:{},..._0x4d6a6f[_0x5565c2(0xab)]!=null?{'pageSize':_0x4d6a6f[_0x5565c2(0xab)]}:{},..._0x4d6a6f[_0x5565c2(0xa9)]!=null?{'riskLevel':_0x4d6a6f[_0x5565c2(0xa9)]}:{},..._0x4d6a6f[_0x5565c2(0xb1)]!=null?{'locale':_0x4d6a6f[_0x5565c2(0xb1)]}:{}},_0x4d6a6f[_0x5565c2(0x99)]=_0x14503c;if(!_0x4d6a6f[_0x5565c2(0xbc)])_0x4d6a6f[_0x5565c2(0xbc)]=_0x9fbc57;_0x2b56de=!![];}return(_0x5565c2(0xb3)in _0x4d6a6f||_0x5565c2(0x94)in _0x4d6a6f)&&(delete _0x4d6a6f[_0x5565c2(0xb3)],delete _0x4d6a6f[_0x5565c2(0x94)],_0x2b56de=!![]),{'config':_0x4d6a6f,'migrated':_0x2b56de};}function writeNormalizedConfigIfNeeded(_0x179f12,_0x40ab5d){const _0xf75efc=a176_0x4313ff,_0x1ca12f=JSON['stringify'](_0x40ab5d,null,0x2)+'\x0a';if(normalizedWriteCache[_0xf75efc(0x9b)](_0x179f12)===_0x1ca12f)return;writeConfigFile(_0x179f12,_0x40ab5d),normalizedWriteCache[_0xf75efc(0xb6)](_0x179f12,_0x1ca12f);}function parseAndNormalizeConfig(_0x507b22,_0x1197b9,_0x15bfb6){const _0x18a4f9=a176_0x4313ff,_0x18dda8=parseCliConfigJsonFile(_0x507b22,_0x1197b9,_0x15bfb6),_0x187a29=normalizeLegacyConfigShape(_0x18dda8);if(_0x187a29['migrated'])try{writeNormalizedConfigIfNeeded(_0x507b22,_0x187a29[_0x18a4f9(0xb8)]);}catch{}return _0x187a29[_0x18a4f9(0xb8)];}export function loadRawConfigLayers(_0x24ff9e){const _0x12f018=a176_0x4313ff;let _0x33898={},_0x2846cd={};const _0x729814=resolveConfigPath(homedir());_0x729814&&(_0x33898=parseAndNormalizeConfig(_0x729814,'warn','Global'));const _0x411d44=_0x24ff9e??findProjectRootDirectory(),_0x27967c=resolveConfigPath(_0x411d44);return _0x27967c&&(_0x2846cd=parseAndNormalizeConfig(_0x27967c,_0x12f018(0xbd),_0x12f018(0xaa))),{'globalPath':_0x729814,'projectPath':_0x27967c,'globalConfig':_0x33898,'projectConfig':_0x2846cd};}const INHERIT_WHITELIST=[a176_0x4313ff(0x9d),a176_0x4313ff(0xae),'locale',a176_0x4313ff(0xa1),a176_0x4313ff(0xa9),'pageSize'];export function mergeRawConfigLayers(_0x14fa5e){const _0x2e4b55=a176_0x4313ff,{globalConfig:_0x436832,projectConfig:_0x34784c}=_0x14fa5e,_0xf8e0df=Object[_0x2e4b55(0x93)](_0x34784c)['length']>0x0;if(!_0xf8e0df)return mergeGlobalOnly(_0x436832);if(_0x34784c[_0x2e4b55(0xaf)]===!![])return mergeFullInherit(_0x436832,_0x34784c);if(_0x34784c[_0x2e4b55(0xaf)]===![])return mergeIsolated(_0x34784c);return mergeProjectFirst(_0x436832,_0x34784c);}function mergeGlobalOnly(_0x4c8864){const _0x1347a1=a176_0x4313ff,_0x237ad7={..._0x4c8864},_0x522681=_0x4c8864[_0x1347a1(0x99)]&&typeof _0x4c8864[_0x1347a1(0x99)]===_0x1347a1(0xb7)?_0x4c8864['apps']:{};if(Object[_0x1347a1(0x93)](_0x522681)[_0x1347a1(0x95)]>0x0)_0x237ad7[_0x1347a1(0x99)]=_0x522681;if(_0x4c8864[_0x1347a1(0xbc)])_0x237ad7[_0x1347a1(0xbc)]=_0x4c8864[_0x1347a1(0xbc)];else{const _0x405676=Object[_0x1347a1(0x93)](_0x522681);if(_0x405676['length']>0x0)_0x237ad7[_0x1347a1(0xbc)]=_0x405676[0x0];}return _0x237ad7;}function mergeIsolated(_0x1338b4){const _0x296da4=a176_0x4313ff,_0x1048de={..._0x1338b4};delete _0x1048de['inherit'];const _0x104513=_0x1338b4[_0x296da4(0x99)]&&typeof _0x1338b4[_0x296da4(0x99)]===_0x296da4(0xb7)?_0x1338b4[_0x296da4(0x99)]:{};Object[_0x296da4(0x93)](_0x104513)[_0x296da4(0x95)]>0x0?_0x1048de[_0x296da4(0x99)]=_0x104513:delete _0x1048de[_0x296da4(0x99)];if(_0x296da4(0xbc)in _0x1338b4)_0x1048de[_0x296da4(0xbc)]=_0x1338b4[_0x296da4(0xbc)];else Object['keys'](_0x104513)[_0x296da4(0x95)]>0x0?_0x1048de[_0x296da4(0xbc)]=Object['keys'](_0x104513)[0x0]:delete _0x1048de[_0x296da4(0xbc)];return _0x1048de;}function mergeProjectFirst(_0x5b0419,_0xea348f){const _0x588312=a176_0x4313ff,_0x5dfda5={..._0xea348f};delete _0x5dfda5[_0x588312(0xaf)];for(const _0x53f122 of INHERIT_WHITELIST){!(_0x53f122 in _0x5dfda5)&&_0x53f122 in _0x5b0419&&(_0x5dfda5[_0x53f122]=_0x5b0419[_0x53f122]);}const _0x2c0756=_0xea348f[_0x588312(0x99)]&&typeof _0xea348f[_0x588312(0x99)]===_0x588312(0xb7)?_0xea348f[_0x588312(0x99)]:{};Object[_0x588312(0x93)](_0x2c0756)[_0x588312(0x95)]>0x0?_0x5dfda5['apps']=_0x2c0756:delete _0x5dfda5[_0x588312(0x99)];if('defaultApp'in _0xea348f)_0x5dfda5['defaultApp']=_0xea348f[_0x588312(0xbc)];else Object[_0x588312(0x93)](_0x2c0756)[_0x588312(0x95)]>0x0?_0x5dfda5['defaultApp']=Object[_0x588312(0x93)](_0x2c0756)[0x0]:delete _0x5dfda5['defaultApp'];return _0x5dfda5;}function a176_0x4455(){const _0x40ff0a=['appcode','error','env','set','object','config','trim','empty','.lovrabetrc','defaultApp','warn','745404NAUXwB','project','status','.lovrabet.json','keys','app','length','utf8','data','silent','apps','\x0a\x20\x20','get','cwd','cookie','4835RCSBYT','940bSFDRH','663864MPCpYC','format','string','815992loQlQc','7rSSKnn','2386568fgxDHO','.tmp','10918431piuyVL','1341553lqwTRT','riskLevel','Project','pageSize','filter','apiDir','accessKey','inherit','missing','locale','stringify'];a176_0x4455=function(){return _0x40ff0a;};return a176_0x4455();}function mergeFullInherit(_0xad4cdc,_0x4915fb){const _0x15ab06=a176_0x4313ff,_0x2ff7c8=_0xad4cdc['apps']&&typeof _0xad4cdc[_0x15ab06(0x99)]==='object'?_0xad4cdc[_0x15ab06(0x99)]:{},_0x6f2932=_0x4915fb[_0x15ab06(0x99)]&&typeof _0x4915fb['apps']===_0x15ab06(0xb7)?_0x4915fb['apps']:{},_0x436f09={..._0x2ff7c8,..._0x6f2932},_0x252187={..._0xad4cdc,..._0x4915fb};delete _0x252187['inherit'];if(Object['keys'](_0x436f09)['length']>0x0)_0x252187[_0x15ab06(0x99)]=_0x436f09;if(_0x15ab06(0xbc)in _0x4915fb)_0x252187['defaultApp']=_0x4915fb[_0x15ab06(0xbc)];else{if(Object[_0x15ab06(0x93)](_0x6f2932)[_0x15ab06(0x95)]>0x0)_0x252187['defaultApp']=Object['keys'](_0x6f2932)[0x0];else{if(_0xad4cdc[_0x15ab06(0xbc)])_0x252187[_0x15ab06(0xbc)]=_0xad4cdc[_0x15ab06(0xbc)];else{const _0x326dbc=Object[_0x15ab06(0x93)](_0x2ff7c8);if(_0x326dbc['length']>0x0)_0x252187['defaultApp']=_0x326dbc[0x0];}}}return _0x252187;}export function readRawConfigWithLayers(_0x33d568){const _0x211bc2=loadRawConfigLayers(_0x33d568);return{'config':mergeRawConfigLayers(_0x211bc2),'layers':_0x211bc2};}export function readRawConfig(_0x42de09){return mergeRawConfigLayers(loadRawConfigLayers(_0x42de09));}export function readConfigFile(_0x4ba466){const _0x432f54=a176_0x4313ff;return parseAndNormalizeConfig(_0x4ba466,_0x432f54(0x98));}export function writeConfigFile(_0x56747f,_0x3b9cd9){const _0x41065b=a176_0x4313ff,_0x505f23=dirname(_0x56747f);!existsSync(_0x505f23)&&mkdirSync(_0x505f23,{'recursive':!![]});const _0x51f063=_0x56747f+_0x41065b(0xa6);try{writeFileSync(_0x51f063,JSON[_0x41065b(0xb2)](_0x3b9cd9,null,0x2)+'\x0a',{'encoding':_0x41065b(0x96),'mode':0x180}),renameSync(_0x51f063,_0x56747f);}catch(_0xb8d04c){try{unlinkSync(_0x51f063);}catch{}throw _0xb8d04c;}}function a176_0x2be6(_0x3834bc,_0x399e69){_0x3834bc=_0x3834bc-0x92;const _0x4455af=a176_0x4455();let _0x2be6fd=_0x4455af[_0x3834bc];return _0x2be6fd;}export function resolveWriteConfigPath(_0x5987de){const _0x10ff31=a176_0x4313ff,_0x40a58a=_0x5987de===_0x10ff31(0xbf)?process[_0x10ff31(0x9c)]():homedir(),_0x18f3c0=resolveConfigPath(_0x40a58a);return _0x18f3c0??resolve(_0x40a58a,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a177_0x4b802a=a177_0x45a1;(function(_0x3fb3b8,_0x97d98a){const _0x3acd27=a177_0x45a1,_0x41c121=_0x3fb3b8();while(!![]){try{const _0x1cb14f=-parseInt(_0x3acd27(0xc3))/0x1*(parseInt(_0x3acd27(0xc6))/0x2)+parseInt(_0x3acd27(0xd5))/0x3+parseInt(_0x3acd27(0xdb))/0x4+-parseInt(_0x3acd27(0xd4))/0x5*(parseInt(_0x3acd27(0xbd))/0x6)+parseInt(_0x3acd27(0xc7))/0x7*(-parseInt(_0x3acd27(0xcf))/0x8)+parseInt(_0x3acd27(0xc4))/0x9+-parseInt(_0x3acd27(0xdf))/0xa*(-parseInt(_0x3acd27(0xbb))/0xb);if(_0x1cb14f===_0x97d98a)break;else _0x41c121['push'](_0x41c121['shift']());}catch(_0x43cf71){_0x41c121['push'](_0x41c121['shift']());}}}(a177_0x28e0,0x9bf3b));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(_0x3299b8){return process.env[`RABETBASE_${_0x3299b8}`]||process.env[`LOVRABET_${_0x3299b8}`]||undefined;}function a177_0x45a1(_0xa9a60f,_0xa43b8b){_0xa9a60f=_0xa9a60f-0xb6;const _0x28e02b=a177_0x28e0();let _0x45a1d8=_0x28e02b[_0xa9a60f];return _0x45a1d8;}export async function createContext(_0x3ab6e2){const _0x5b4266=a177_0x45a1,{config:_0x810d07,layers:_0x802b1a}=readRawConfigWithLayers(),_0x1821a4=buildConfig(_0x810d07,_0x3ab6e2,_0x802b1a),{initEnv:_0x43616a}=await import(_0x5b4266(0xdc));if(_0x1821a4[_0x5b4266(0xbc)])_0x43616a(_0x1821a4[_0x5b4266(0xbc)]);else _0x3ab6e2['env']&&typeof _0x3ab6e2[_0x5b4266(0xbc)]===_0x5b4266(0xba)&&_0x43616a(_0x3ab6e2['env']);const {initDomains:_0x583867,getUserDomain:_0x3c8f08,getApiDomain:_0x13183d}=await import(_0x5b4266(0xe0));_0x583867({'apiDomain':_0x810d07[_0x5b4266(0xcc)]||undefined,'userDomain':_0x810d07[_0x5b4266(0xd1)]||undefined,'runtimeDomain':_0x810d07[_0x5b4266(0xb6)]||undefined});const _0x2f498e={'apiDomain':_0x13183d(),'userDomain':_0x3c8f08()},_0x1cef20=await buildAuth(_0x1821a4);logger[_0x5b4266(0xdd)](process[_0x5b4266(0xc1)]());const _0x186189=(CLI_BIN_NAME+'\x20'+process[_0x5b4266(0xc9)][_0x5b4266(0xd9)](0x2)[_0x5b4266(0xd6)]('\x20'))[_0x5b4266(0xda)]();logger['setRawCommand'](_0x186189);const {isNonInteractive:_0x1a530d}=await import(_0x5b4266(0xb7)),_0x5123f0=_0x1a530d(_0x3ab6e2);return{'config':_0x1821a4,'auth':_0x1cef20,'logger':logger,'env':_0x2f498e,'nonInteractive':_0x5123f0};}function a177_0x28e0(){const _0x5ea699=['trim','1258932dDGmcW','./constant/env.js','setLogPath','defaultApp','20ObecmT','./constant/domain.js','runtimeDomain','./utils/is-non-interactive.js','find','filter','string','3095554FDfLuY','env','101052sFOJAd','replace','keys','template_base_url','cwd','appcode','1104401FmvgrG','11245923FEPpyv','object','2tPxImy','217FhfIzz','app','argv','map','values','apiDomain','project','-api.ts','56616aSAQpO','apps','userDomain','globalConfig','apiDir','290PSWOps','2436885OLmpGn','join','api.ts','projectConfig','slice'];a177_0x28e0=function(){return _0x5ea699;};return a177_0x28e0();}export function buildConfigFromFlags(_0x404d2a){const {config:_0x34fbc8,layers:_0x47146b}=readRawConfigWithLayers();return buildConfig(_0x34fbc8,_0x404d2a,_0x47146b);}export function getConfigAppCode(_0x1ca379){const _0x3b1b61=a177_0x45a1,_0x8a656=readRawConfig(_0x1ca379);if(_0x8a656['apps']&&typeof _0x8a656[_0x3b1b61(0xd0)]===_0x3b1b61(0xc5)){const _0x1ef595=_0x8a656['defaultApp'];if(_0x1ef595&&_0x8a656[_0x3b1b61(0xd0)][_0x1ef595]?.['appcode'])return String(_0x8a656[_0x3b1b61(0xd0)][_0x1ef595][_0x3b1b61(0xc2)])[_0x3b1b61(0xda)]();const _0x1dd3e=Object[_0x3b1b61(0xcb)](_0x8a656[_0x3b1b61(0xd0)])[0x0];if(_0x1dd3e?.[_0x3b1b61(0xc2)])return String(_0x1dd3e['appcode'])[_0x3b1b61(0xda)]();}const _0x240003=_0x8a656['appcode']||_0x8a656[_0x3b1b61(0xc8)];if(typeof _0x240003!==_0x3b1b61(0xba)||_0x240003['trim']()==='')return undefined;return _0x240003[_0x3b1b61(0xda)]();}export function getMultiAppConfigs(_0x34541b=a177_0x4b802a(0xcd),_0x26617c){const _0x35861c=a177_0x4b802a,_0x839137=loadRawConfigLayers(_0x26617c);let _0x5cd52b,_0x49ec03;if(_0x34541b==='merged'){const _0x50ea18=_0x839137[_0x35861c(0xd2)][_0x35861c(0xd0)]&&typeof _0x839137[_0x35861c(0xd2)][_0x35861c(0xd0)]===_0x35861c(0xc5)?_0x839137[_0x35861c(0xd2)][_0x35861c(0xd0)]:{},_0x5c994b=_0x839137['projectConfig'][_0x35861c(0xd0)]&&typeof _0x839137[_0x35861c(0xd8)]['apps']===_0x35861c(0xc5)?_0x839137['projectConfig'][_0x35861c(0xd0)]:{};_0x5cd52b={..._0x50ea18,..._0x5c994b};const _0x546469=readRawConfig(_0x26617c);_0x49ec03=_0x546469[_0x35861c(0xde)];}else _0x5cd52b=_0x839137[_0x35861c(0xd8)][_0x35861c(0xd0)],_0x49ec03=_0x839137[_0x35861c(0xd8)][_0x35861c(0xde)];if(!_0x5cd52b||typeof _0x5cd52b!==_0x35861c(0xc5)||Object[_0x35861c(0xbf)](_0x5cd52b)['length']===0x0)return null;return Object['entries'](_0x5cd52b)[_0x35861c(0xca)](([_0x1b28ed,_0x390bb0])=>({'name':_0x1b28ed,'appcode':_0x390bb0?.[_0x35861c(0xc2)]||'','isDefault':_0x1b28ed===_0x49ec03,'env':_0x390bb0?.[_0x35861c(0xbc)],'apiDir':_0x390bb0?.[_0x35861c(0xd3)],'cookie':_0x390bb0?.['cookie']||undefined}))[_0x35861c(0xb9)](_0x58208e=>_0x58208e[_0x35861c(0xc2)]);}export function getTemplateBaseUrl(_0x353820){const _0x1bf0fa=a177_0x4b802a,_0x40c281=readRawConfig(_0x353820);if(_0x40c281[_0x1bf0fa(0xc0)]&&typeof _0x40c281['template_base_url']===_0x1bf0fa(0xba))return _0x40c281[_0x1bf0fa(0xc0)][_0x1bf0fa(0xbe)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x18d2d0,_0x3c9759,_0x44c8e8){return{...resolveAppConfig({'raw':_0x18d2d0,'flags':_0x3c9759,'layers':_0x44c8e8,'readEnv':env}),'raw':_0x18d2d0};}export function resolveApiFilePath(_0x1e3d0c,_0x34e6ec){const _0x58fc19=a177_0x4b802a,_0x57b498=resolve(process[_0x58fc19(0xc1)](),_0x1e3d0c),_0xded6ba=resolve(_0x57b498,_0x58fc19(0xd7));if(!_0x34e6ec)return _0xded6ba;const _0x351aa0=readRawConfig(),_0xb6ab8a=_0x351aa0[_0x58fc19(0xd0)]&&typeof _0x351aa0[_0x58fc19(0xd0)]===_0x58fc19(0xc5)?_0x351aa0[_0x58fc19(0xd0)]:{},_0x50409c=Object['entries'](_0xb6ab8a)[_0x58fc19(0xb8)](([,_0x52e3a5])=>_0x52e3a5?.[_0x58fc19(0xc2)]===_0x34e6ec);if(!_0x50409c)return _0xded6ba;const [_0x5d7738,_0x530df1]=_0x50409c,_0x2f3e32=typeof _0x351aa0[_0x58fc19(0xde)]==='string'?_0x351aa0[_0x58fc19(0xde)]:undefined;if(_0x530df1?.[_0x58fc19(0xd3)])return _0xded6ba;if(_0x2f3e32&&_0x5d7738!==_0x2f3e32)return resolve(_0x57b498,_0x5d7738+_0x58fc19(0xce));return _0xded6ba;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f22a8,_0x22a10d){const _0x4aff53=a178_0xa288,_0x70ec1=_0x2f22a8();while(!![]){try{const _0x4926dc=-parseInt(_0x4aff53(0x1ff))/0x1*(parseInt(_0x4aff53(0x1fd))/0x2)+parseInt(_0x4aff53(0x1f0))/0x3*(-parseInt(_0x4aff53(0x1f9))/0x4)+-parseInt(_0x4aff53(0x1ef))/0x5*(-parseInt(_0x4aff53(0x1f6))/0x6)+-parseInt(_0x4aff53(0x1fc))/0x7+-parseInt(_0x4aff53(0x1f3))/0x8+parseInt(_0x4aff53(0x1f7))/0x9*(parseInt(_0x4aff53(0x1fa))/0xa)+parseInt(_0x4aff53(0x1ee))/0xb;if(_0x4926dc===_0x22a10d)break;else _0x70ec1['push'](_0x70ec1['shift']());}catch(_0x561c17){_0x70ec1['push'](_0x70ec1['shift']());}}}(a178_0x512e,0xac380));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x17f5b1){const _0x53033b=a178_0xa288,_0x37a8f8=[],_0x256a0a=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x4942f0;while((_0x4942f0=_0x256a0a[_0x53033b(0x1f4)](_0x17f5b1))!==null){_0x37a8f8['push']({'datasetCode':_0x4942f0[0x1],'tableName':_0x4942f0[0x2],'name':_0x4942f0[0x3],'alias':_0x4942f0[0x4]});}return _0x37a8f8;}export function loadAliasMap(_0x3959bd,_0x7e86ab,_0x323b65){const _0x518a2c=a178_0xa288,_0x4a4c00=_0x323b65??resolve(process[_0x518a2c(0x1f5)](),_0x3959bd,_0x518a2c(0x1ed));if(cache[_0x518a2c(0x1f1)](_0x4a4c00))return cache['get'](_0x4a4c00);if(!existsSync(_0x4a4c00))return cache['set'](_0x4a4c00,[]),[];try{const _0x46eae1=readFileSync(_0x4a4c00,_0x518a2c(0x1fe)),_0x3c00cf=parseApiFile(_0x46eae1);return cache['set'](_0x4a4c00,_0x3c00cf),_0x3c00cf;}catch{return cache[_0x518a2c(0x1f8)](_0x4a4c00,[]),[];}}export function resolveAlias(_0x15db9e,_0x4015cf,_0xa31edf,_0x4286e0){const _0x18a862=a178_0xa288;if(!_0x4015cf)return undefined;const _0x3690a4=loadAliasMap(_0x15db9e,_0xa31edf,_0x4286e0),_0x2cb107=_0x3690a4[_0x18a862(0x1fb)](_0x20b8f6=>_0x20b8f6[_0x18a862(0x1ec)]===_0x4015cf);return _0x2cb107?.[_0x18a862(0x1f2)];}function a178_0x512e(){const _0x5cf89b=['alias','api.ts','26302859ENFgOm','4628385yFRcqV','249UENFtB','has','datasetCode','8229816VxwBuB','exec','cwd','6kmObXe','39636dOPAol','set','1576ZApIhe','1430STVZMu','find','7175112Moieng','56330mHacqc','utf-8','41kMhojb'];a178_0x512e=function(){return _0x5cf89b;};return a178_0x512e();}function a178_0xa288(_0x220ba5,_0x2f3201){_0x220ba5=_0x220ba5-0x1ec;const _0x512ea2=a178_0x512e();let _0xa2880f=_0x512ea2[_0x220ba5];return _0xa2880f;}export function listAliases(_0x30b478,_0x212a4a,_0x32406e){return loadAliasMap(_0x30b478,_0x212a4a,_0x32406e);}
|