@lovrabet/rabetbase-cli 2.3.15-beta.2 → 2.3.15
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 -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/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/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 a184_0x4388f2=a184_0x505c;(function(_0x8ab59f,_0x1f1c15){const _0x3401db=a184_0x505c,_0x4c1cc2=_0x8ab59f();while(!![]){try{const _0x49a570=parseInt(_0x3401db(0x1af))/0x1*(-parseInt(_0x3401db(0x1b4))/0x2)+-parseInt(_0x3401db(0x1b8))/0x3+parseInt(_0x3401db(0x1b3))/0x4*(-parseInt(_0x3401db(0x1b2))/0x5)+-parseInt(_0x3401db(0x1b0))/0x6+-parseInt(_0x3401db(0x1b1))/0x7+parseInt(_0x3401db(0x1ad))/0x8+-parseInt(_0x3401db(0x1b5))/0x9*(-parseInt(_0x3401db(0x1b6))/0xa);if(_0x49a570===_0x1f1c15)break;else _0x4c1cc2['push'](_0x4c1cc2['shift']());}catch(_0x9cb4ae){_0x4c1cc2['push'](_0x4c1cc2['shift']());}}}(a184_0x1892,0xa508e));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a184_0x505c(_0x2613ee,_0x299954){_0x2613ee=_0x2613ee-0x1ac;const _0x189290=a184_0x1892();let _0x505c76=_0x189290[_0x2613ee];return _0x505c76;}export const workspaceAddDefinition={'service':'workspace','command':'add','description':a184_0x4388f2(0x1b7),'risk':a184_0x4388f2(0x1b9),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a184_0x4388f2(0x1ac),'description':a184_0x4388f2(0x1ba),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0xe13baf=>validateAppName(_0xe13baf,a184_0x4388f2(0x1ae)),'execute':_0x13767d=>runAppAdd(_0x13767d,a184_0x4388f2(0x1ae))};function a184_0x1892(){const _0x30ec7e=['4745384WRtiYk','35RZCNwz','24116WtPrUx','70320hubfDV','867591enQCdb','170OZbBxS','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','2401617sZANvk','write','App\x20profile\x20name','name','10509864JHtLXS','workspace\x20add','1LhBMaO','4324320tmuvLO'];a184_0x1892=function(){return _0x30ec7e;};return a184_0x1892();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a185_0x57e65f=a185_0x1f9d;(function(_0x537416,_0x2df960){const _0x7c48f5=a185_0x1f9d,_0x5c6c78=_0x537416();while(!![]){try{const _0x1d14d5=parseInt(_0x7c48f5(0x1ed))/0x1+parseInt(_0x7c48f5(0x1bf))/0x2*(parseInt(_0x7c48f5(0x1ef))/0x3)+-parseInt(_0x7c48f5(0x1c3))/0x4*(-parseInt(_0x7c48f5(0x1eb))/0x5)+parseInt(_0x7c48f5(0x1c4))/0x6*(-parseInt(_0x7c48f5(0x1d2))/0x7)+-parseInt(_0x7c48f5(0x1f2))/0x8*(parseInt(_0x7c48f5(0x1d1))/0x9)+parseInt(_0x7c48f5(0x1be))/0xa+-parseInt(_0x7c48f5(0x1dc))/0xb;if(_0x1d14d5===_0x2df960)break;else _0x5c6c78['push'](_0x5c6c78['shift']());}catch(_0x472640){_0x5c6c78['push'](_0x5c6c78['shift']());}}}(a185_0x53cf,0xabcb8));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+a185_0x57e65f(0x1d9),SAFE_PROFILE_KEYS=[a185_0x57e65f(0x1d3),a185_0x57e65f(0x1bb),'apiDir',a185_0x57e65f(0x1d7),a185_0x57e65f(0x1e9),a185_0x57e65f(0x1db),a185_0x57e65f(0x1ea)],workspaceFlags=[{'name':a185_0x57e65f(0x1e4),'type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1e0)},{'name':a185_0x57e65f(0x1d3),'type':a185_0x57e65f(0x1cf),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':a185_0x57e65f(0x1bb),'type':'string','description':a185_0x57e65f(0x1c5),'enum':[...RABETBASE_ENV_VALUES]},{'name':a185_0x57e65f(0x1df),'type':'string','description':a185_0x57e65f(0x1cc)},{'name':'defaultFormat','type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1c6),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a185_0x57e65f(0x1e9),'type':a185_0x57e65f(0x1e7),'description':a185_0x57e65f(0x1bc)},{'name':'riskLevel','type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1e2),'enum':[...RISK_LEVEL_VALUES]},{'name':a185_0x57e65f(0x1ea),'type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1dd)}];function isRecord(_0x423fca){const _0x132ede=a185_0x57e65f;return!!_0x423fca&&typeof _0x423fca==='object'&&!Array[_0x132ede(0x1da)](_0x423fca);}function assertValidAppcode(_0x539c35){const _0x46dcfa=a185_0x57e65f,{valid:_0x493bf4,message:_0x4cde44}=validateAppcode(_0x539c35);if(!_0x493bf4)throw CliErrors[_0x46dcfa(0x1b9)](_0x46dcfa(0x1b7)+_0x539c35,_0x4cde44);}function sanitizeProfile(_0x35f7f3){if(!isRecord(_0x35f7f3))return{};const _0x478b7d={};for(const _0x2eb97c of SAFE_PROFILE_KEYS){if(_0x35f7f3[_0x2eb97c]!==undefined)_0x478b7d[_0x2eb97c]=_0x35f7f3[_0x2eb97c];}return _0x478b7d;}function cloneProfile(_0x2baaac){return isRecord(_0x2baaac)?{..._0x2baaac}:{};}function collectWorkspaceProfileOverrides(_0x3844ed){const _0x3911b0=a185_0x57e65f,_0x311805={},_0x18f202=_0x3844ed[_0x3911b0(0x1ec)]('env'),_0x312b1c=_0x3844ed[_0x3911b0(0x1ec)]('apiDir'),_0x3620ae=_0x3844ed[_0x3911b0(0x1ec)]('defaultFormat'),_0xe99056=_0x3844ed[_0x3911b0(0x1c1)](_0x3911b0(0x1e9)),_0xd70d6e=_0x3844ed[_0x3911b0(0x1ec)](_0x3911b0(0x1db)),_0x4cb797=_0x3844ed[_0x3911b0(0x1ec)](_0x3911b0(0x1ea));if(_0x18f202)_0x311805['env']=_0x18f202;if(_0x312b1c)_0x311805[_0x3911b0(0x1df)]=_0x312b1c;if(_0x3620ae)_0x311805[_0x3911b0(0x1d7)]=_0x3620ae;if(_0xe99056!==undefined&&_0xe99056!=='')_0x311805[_0x3911b0(0x1e9)]=Number(_0xe99056);if(_0xd70d6e)_0x311805[_0x3911b0(0x1db)]=_0xd70d6e;if(_0x4cb797)_0x311805[_0x3911b0(0x1ea)]=_0x4cb797;return _0x311805;}async function validateWorkspaceArgs(_0x1390c8){const _0x2951b4=a185_0x57e65f,_0x1cb4ea=_0x1390c8[_0x2951b4(0x1ec)](_0x2951b4(0x1e4))[_0x2951b4(0x1cd)](),_0x5828bf=_0x1390c8['str'](_0x2951b4(0x1d3))['trim']();if(!_0x1cb4ea&&!_0x5828bf)throw CliErrors[_0x2951b4(0x1b9)](_0x2951b4(0x1b6),_0x2951b4(0x1f1)+CLI_BIN_NAME+_0x2951b4(0x1ce)+CLI_BIN_NAME+_0x2951b4(0x1c0));if(_0x5828bf)assertValidAppcode(_0x5828bf);}function resolveKnownApps(){const _0x2bf6e0=a185_0x57e65f,{config:_0x28fe4b,layers:_0x412610}=readRawConfigWithLayers(),_0x584186=isRecord(_0x28fe4b[_0x2bf6e0(0x1c7)])?_0x28fe4b[_0x2bf6e0(0x1c7)]:{},_0x5e0168=isRecord(_0x412610['globalConfig']['apps'])?_0x412610['globalConfig'][_0x2bf6e0(0x1c7)]:{};return{..._0x5e0168,..._0x584186};}async function configureWorkspace(_0x26f311,_0x45fec0){const _0x2ee0ce=a185_0x57e65f,_0x4c549a=_0x26f311[_0x2ee0ce(0x1ec)](_0x2ee0ce(0x1e4))[_0x2ee0ce(0x1cd)](),_0x6eb439=_0x26f311[_0x2ee0ce(0x1ec)](_0x2ee0ce(0x1d3))[_0x2ee0ce(0x1cd)](),_0xba10a1=_0x4c549a||_0x6eb439;if(!_0xba10a1)throw CliErrors['validation'](_0x2ee0ce(0x1b6),'Use\x20`'+CLI_BIN_NAME+_0x2ee0ce(0x1ce)+CLI_BIN_NAME+_0x2ee0ce(0x1c0));if(_0x6eb439)assertValidAppcode(_0x6eb439);const _0x2acc7c=resolveWriteConfigPath(_0x2ee0ce(0x1c8)),_0x24fe2d=readConfigFile(_0x2acc7c),_0x5de587=resolveKnownApps(),_0x3788ad=isRecord(_0x24fe2d[_0x2ee0ce(0x1c7)])?{..._0x24fe2d['apps']}:{},_0x1a321f=cloneProfile(_0x3788ad[_0xba10a1]),_0x478e0e=sanitizeProfile(_0x5de587[_0xba10a1]),_0x3f4285=_0x6eb439?{}:_0x478e0e,_0x1821aa=_0x6eb439||_0x3f4285[_0x2ee0ce(0x1d3)];if(!_0x1821aa){const _0x3768c8=Object['keys'](_0x5de587),_0x492bf6=_0x3768c8[_0x2ee0ce(0x1ee)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x2ee0ce(0x1b8)+_0x45fec0+_0x2ee0ce(0x1e8)+_0xba10a1+_0x2ee0ce(0x1de):_0x2ee0ce(0x1e1)+_0x3768c8[_0x2ee0ce(0x1c2)](',\x20');throw CliErrors[_0x2ee0ce(0x1b9)](_0x2ee0ce(0x1d0)+_0xba10a1+_0x2ee0ce(0x1d6),_0x492bf6);}assertValidAppcode(String(_0x1821aa));const _0x485ab7={..._0x3f4285,..._0x1a321f,'appcode':String(_0x1821aa),...collectWorkspaceProfileOverrides(_0x26f311)};return _0x3788ad[_0xba10a1]=_0x485ab7,_0x24fe2d[_0x2ee0ce(0x1c7)]=_0x3788ad,_0x24fe2d[_0x2ee0ce(0x1c9)]=_0xba10a1,delete _0x24fe2d[_0x2ee0ce(0x1d3)],delete _0x24fe2d[_0x2ee0ce(0x1e4)],_0x485ab7[_0x2ee0ce(0x1bb)]&&(_0x24fe2d[_0x2ee0ce(0x1bb)]=_0x485ab7[_0x2ee0ce(0x1bb)]),writeConfigFile(_0x2acc7c,_0x24fe2d),{'ok':!![],'message':_0x2ee0ce(0x1d5)+(_0x45fec0===_0x2ee0ce(0x1e5)?'initialized':'updated')+':\x20'+_0xba10a1+_0x2ee0ce(0x1e6)+_0x485ab7['appcode']+_0x2ee0ce(0x1d4)+_0x2acc7c+_0x2ee0ce(0x1d8),'data':{'operation':_0x2ee0ce(0x1e3)+_0x45fec0,'configPath':_0x2acc7c,'app':_0xba10a1,'appcode':_0x485ab7[_0x2ee0ce(0x1d3)],'env':_0x485ab7[_0x2ee0ce(0x1bb)]??null,'credentialsWritten':![]}};}function a185_0x53cf(){const _0x1aed82=['env','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','write','12401530jHVbpo','60AtRReC','\x20workspace\x20use\x20--app\x20<name>`.','flag','join','2471496pUPike','6IQxPab','Target\x20environment','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','apps','project','defaultApp','workspace','use','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','trim','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','string','App\x20\x22','36ZAFLjH','6120058qfOTvw','appcode',').\x20Config:\x20','Workspace\x20','\x22\x20not\x20found.','format','.\x20Credentials:\x20not\x20written.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','isArray','riskLevel','27648357pexSGE','Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20--appcode\x20<code>`.','apiDir','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','workspace.','app','init','\x20(appcode:\x20','number','\x20--app\x20','pageSize','locale','10zTuJLS','str','889754teAnqO','length','88347tdzejp','Switch\x20the\x20current\x20workspace\x20app\x20binding','Use\x20`','315344icWTpl','Missing\x20workspace\x20app\x20selector.','Invalid\x20appcode:\x20','\x20workspace\x20','validation','Initialize\x20the\x20current\x20workspace\x20app\x20binding'];a185_0x53cf=function(){return _0x1aed82;};return a185_0x53cf();}const workspaceInitDefinition={'service':a185_0x57e65f(0x1ca),'command':a185_0x57e65f(0x1e5),'description':a185_0x57e65f(0x1ba),'risk':a185_0x57e65f(0x1bd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xe5b4da=>configureWorkspace(_0xe5b4da,a185_0x57e65f(0x1e5))},workspaceUseDefinition={'service':a185_0x57e65f(0x1ca),'command':a185_0x57e65f(0x1cb),'description':a185_0x57e65f(0x1f0),'risk':a185_0x57e65f(0x1bd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x299c8a=>configureWorkspace(_0x299c8a,a185_0x57e65f(0x1cb))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a185_0x1f9d(_0x317ee4,_0x3c282d){_0x317ee4=_0x317ee4-0x1b6;const _0x53cf14=a185_0x53cf();let _0x1f9d98=_0x53cf14[_0x317ee4];return _0x1f9d98;}export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a186_0x43d28e=a186_0xe712;function a186_0x5032(){const _0x1ea7c4=['636evIHAe','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','2956720HABxFT','591UhefZB','remove','9hRZVAW','name','App\x20profile\x20name\x20to\x20remove','1077175mOPEVu','11972zaZLWU','81utXRGl','39823YfQctj','4032760ekvten','10236NPjhft','21510346VwRZdi','workspace\x20remove','high-risk-write'];a186_0x5032=function(){return _0x1ea7c4;};return a186_0x5032();}(function(_0x1320f9,_0x17a599){const _0x2c93cc=a186_0xe712,_0x342c57=_0x1320f9();while(!![]){try{const _0x3b7da4=parseInt(_0x2c93cc(0xb9))/0x1*(parseInt(_0x2c93cc(0xb8))/0x2)+-parseInt(_0x2c93cc(0xb2))/0x3*(parseInt(_0x2c93cc(0xbc))/0x4)+-parseInt(_0x2c93cc(0xb7))/0x5+-parseInt(_0x2c93cc(0xc0))/0x6*(parseInt(_0x2c93cc(0xba))/0x7)+parseInt(_0x2c93cc(0xbb))/0x8*(-parseInt(_0x2c93cc(0xb4))/0x9)+-parseInt(_0x2c93cc(0xb1))/0xa+parseInt(_0x2c93cc(0xbd))/0xb;if(_0x3b7da4===_0x17a599)break;else _0x342c57['push'](_0x342c57['shift']());}catch(_0x59749b){_0x342c57['push'](_0x342c57['shift']());}}}(a186_0x5032,0x4da29));function a186_0xe712(_0x4898bb,_0x1d7ae8){_0x4898bb=_0x4898bb-0xb0;const _0x503201=a186_0x5032();let _0xe7125c=_0x503201[_0x4898bb];return _0xe7125c;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a186_0x43d28e(0xb3),'description':a186_0x43d28e(0xb0),'risk':a186_0x43d28e(0xbf),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a186_0x43d28e(0xb5),'description':a186_0x43d28e(0xb6),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3c635e=>validateAppName(_0x3c635e,a186_0x43d28e(0xbe)),'execute':_0xc5d5cd=>runAppRemove(_0xc5d5cd,a186_0x43d28e(0xbe))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a187_0x7d5fd6=a187_0x4bb7;(function(_0x52df9c,_0x1460c1){const _0x183e7d=a187_0x4bb7,_0x52417d=_0x52df9c();while(!![]){try{const _0x279f87=-parseInt(_0x183e7d(0x1ea))/0x1+parseInt(_0x183e7d(0x206))/0x2+-parseInt(_0x183e7d(0x1e4))/0x3+parseInt(_0x183e7d(0x1e8))/0x4+parseInt(_0x183e7d(0x201))/0x5+-parseInt(_0x183e7d(0x1f7))/0x6+parseInt(_0x183e7d(0x1ef))/0x7;if(_0x279f87===_0x1460c1)break;else _0x52417d['push'](_0x52417d['shift']());}catch(_0xe0e71f){_0x52417d['push'](_0x52417d['shift']());}}}(a187_0x2b74,0x9b209));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=[a187_0x7d5fd6(0x204),a187_0x7d5fd6(0x1fb),a187_0x7d5fd6(0x1f1),a187_0x7d5fd6(0x1ee),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a187_0x7d5fd6(0x1ec),a187_0x7d5fd6(0x200),a187_0x7d5fd6(0x1f1),a187_0x7d5fd6(0x1ee),a187_0x7d5fd6(0x204),a187_0x7d5fd6(0x1fb),'apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x458467){const _0x94925e=a187_0x7d5fd6;return[..._0x458467][_0x94925e(0x202)](',\x20');}function a187_0x4bb7(_0x5cf02a,_0x1f9bee){_0x5cf02a=_0x5cf02a-0x1e4;const _0x2b747c=a187_0x2b74();let _0x4bb777=_0x2b747c[_0x5cf02a];return _0x4bb777;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x48fd40){return TOP_LEVEL_CONFIG_KEYS['has'](_0x48fd40);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x38ec22=a187_0x7d5fd6;return _0x38ec22(0x1e7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a187_0x7d5fd6(0x203),'cookie':'cookie','accessKey':'accessKey','defaultFormat':'format','pageSize':a187_0x7d5fd6(0x1f9),'riskLevel':'riskLevel','locale':a187_0x7d5fd6(0x1f1)};export function getAppProfileFlagDefs(){const _0x331964=a187_0x7d5fd6;return[{'name':'env','type':_0x331964(0x1ed),'description':_0x331964(0x208),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x331964(0x1ed),'description':'API\x20directory\x20path'},{'name':_0x331964(0x204),'type':_0x331964(0x1ed),'description':_0x331964(0x207),'hidden':!![]},{'name':_0x331964(0x1fb),'type':_0x331964(0x1ed),'description':_0x331964(0x1f4),'hidden':!![]},{'name':'defaultFormat','type':_0x331964(0x1ed),'description':_0x331964(0x1e5),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x331964(0x1f9),'type':'number','description':_0x331964(0x1f2)},{'name':'riskLevel','type':_0x331964(0x1ed),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x331964(0x1f1),'type':_0x331964(0x1ed),'description':_0x331964(0x1fc)}];}export function collectAppProfileOverrides(_0x3c61ad){const _0x43ea75=a187_0x7d5fd6,_0x21bef7={};for(const [_0x2f6abd,_0x469464]of Object[_0x43ea75(0x1f8)](APP_PROFILE_FLAG_KEY_MAP)){const _0x203b37=_0x3c61ad(_0x2f6abd);if(!_0x203b37)continue;_0x21bef7[_0x469464]=_0x469464===_0x43ea75(0x1f9)?Number(_0x203b37):_0x203b37;}return _0x21bef7;}function a187_0x2b74(){const _0x43aa09=['filter','Config\x20key\x20(','2892456vLLrzd','riskLevel','867835sOkqPy','en-US','appcode','string','format','5948194PDqJvR','defaultApp','locale','Default\x20page\x20size','apps','Access\x20key','toLowerCase','inherit','4490100HbzpSa','entries','pageSize','trim','accessKey','Locale','zh-CN','keys','app','env','5292355QAvTmo','join','apiDir','cookie','length','400640BcQuTq','Auth\x20cookie','Target\x20environment','1740183DoUYiu','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)'];a187_0x2b74=function(){return _0x43aa09;};return a187_0x2b74();}export function buildAppProfileListFields(_0x18a570){const _0x46173d=a187_0x7d5fd6;return{'env':_0x18a570[_0x46173d(0x200)]??null,'apiDir':_0x18a570[_0x46173d(0x203)]??null,'hasCookie':!!_0x18a570[_0x46173d(0x204)],'hasAccessKey':!!_0x18a570[_0x46173d(0x1fb)],'format':_0x18a570['format']??null,'pageSize':_0x18a570['pageSize']??null,'riskLevel':_0x18a570[_0x46173d(0x1e9)]??null,'locale':_0x18a570[_0x46173d(0x1f1)]??null};}export function buildAppDoctorFields(_0x59ae49,_0x32df67){const _0xb9ad25=a187_0x7d5fd6;return{'env':{'value':_0x59ae49[_0xb9ad25(0x200)]||_0x32df67[_0xb9ad25(0x200)],'source':_0x59ae49[_0xb9ad25(0x200)]?_0xb9ad25(0x1ff):_0xb9ad25(0x1f6)},'apiDir':{'value':_0x59ae49[_0xb9ad25(0x203)]||_0x32df67['apiDir'],'source':_0x59ae49[_0xb9ad25(0x203)]?_0xb9ad25(0x1ff):_0xb9ad25(0x1f6)},'cookie':{'value':_0x59ae49['cookie']||_0x32df67[_0xb9ad25(0x204)],'source':_0x59ae49[_0xb9ad25(0x204)]?_0xb9ad25(0x1ff):_0xb9ad25(0x1f6)},'accessKey':{'value':_0x59ae49[_0xb9ad25(0x1fb)]||_0x32df67[_0xb9ad25(0x1fb)],'source':_0x59ae49[_0xb9ad25(0x1fb)]?_0xb9ad25(0x1ff):'inherit'}};}export function buildCanonicalAppConfig(_0x5eb3df,_0x1b78a9){const _0x1cd23e=a187_0x7d5fd6,_0x3dc7df=_0x5eb3df['map'](_0x3ff080=>String(_0x3ff080||'')[_0x1cd23e(0x1fa)]())[_0x1cd23e(0x1e6)](Boolean);if(_0x3dc7df[_0x1cd23e(0x205)]===0x0)return{};const _0xca2965={};for(const _0x155779 of _0x3dc7df){_0xca2965[_0x155779]=_0x1b78a9?{'appcode':_0x155779,'env':_0x1b78a9}:{'appcode':_0x155779};}return{'apps':_0xca2965,'defaultApp':_0x3dc7df[0x0]};}export function buildCanonicalProjectConfig(_0x2e294b,_0x3b63c3){const _0x9868b=a187_0x7d5fd6,{appCodes:appCodes=[],env:_0x426373,metadata:_0x317cfe}=_0x3b63c3,_0xb5421e={..._0x2e294b,..._0x317cfe||{}};delete _0xb5421e[_0x9868b(0x1ec)],delete _0xb5421e[_0x9868b(0x1ff)];if(_0x426373)_0xb5421e['env']=_0x426373;else!_0xb5421e[_0x9868b(0x200)]&&(_0xb5421e[_0x9868b(0x200)]=DEFAULT_CONFIG_VALUES[_0x9868b(0x200)]);const _0x4d8d77=buildCanonicalAppConfig(appCodes,_0xb5421e['env']);return Object[_0x9868b(0x1fe)](_0x4d8d77)['length']>0x0&&(_0xb5421e[_0x9868b(0x1f3)]=_0x4d8d77[_0x9868b(0x1f3)],_0xb5421e[_0x9868b(0x1f0)]=_0x4d8d77[_0x9868b(0x1f0)]),_0xb5421e;}const LOCALE_MAP={'zh':a187_0x7d5fd6(0x1fd),'zh-cn':a187_0x7d5fd6(0x1fd),'zh_cn':a187_0x7d5fd6(0x1fd),'en':a187_0x7d5fd6(0x1eb),'en-us':a187_0x7d5fd6(0x1eb),'en_us':a187_0x7d5fd6(0x1eb)};export function normalizeLocale(_0x313a4c){const _0x3ba724=a187_0x7d5fd6;if(!_0x313a4c)return null;return LOCALE_MAP[_0x313a4c[_0x3ba724(0x1f5)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a188_0x3928(_0x4ee53a,_0x5940ba){_0x4ee53a=_0x4ee53a-0x1ad;const _0x29b418=a188_0x29b4();let _0x392861=_0x29b418[_0x4ee53a];return _0x392861;}(function(_0x38ce74,_0xca5282){const _0x24fb5a=a188_0x3928,_0x3ef0d9=_0x38ce74();while(!![]){try{const _0x465637=-parseInt(_0x24fb5a(0x1b7))/0x1*(-parseInt(_0x24fb5a(0x1b4))/0x2)+parseInt(_0x24fb5a(0x1ad))/0x3+parseInt(_0x24fb5a(0x1b5))/0x4*(parseInt(_0x24fb5a(0x1ae))/0x5)+-parseInt(_0x24fb5a(0x1b1))/0x6+parseInt(_0x24fb5a(0x1b6))/0x7*(parseInt(_0x24fb5a(0x1b0))/0x8)+-parseInt(_0x24fb5a(0x1b2))/0x9+-parseInt(_0x24fb5a(0x1af))/0xa*(parseInt(_0x24fb5a(0x1b3))/0xb);if(_0x465637===_0xca5282)break;else _0x3ef0d9['push'](_0x3ef0d9['shift']());}catch(_0x88ab00){_0x3ef0d9['push'](_0x3ef0d9['shift']());}}}(a188_0x29b4,0x9a4e5));function a188_0x29b4(){const _0x395768=['50vqeqcR','52376Nmtpkw','7072758lOEkIj','7599474DsakWi','2587541atgdFe','2bUEkqa','268936MlppGh','1169eCNpAE','831010UwUERv','3098910egyPkg','65QWrtuJ'];a188_0x29b4=function(){return _0x395768;};return a188_0x29b4();}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a189_0x3a44f2=a189_0xf1d5;(function(_0x132502,_0x5449e0){const _0x5880a8=a189_0xf1d5,_0x2d6974=_0x132502();while(!![]){try{const _0x3bc448=parseInt(_0x5880a8(0x17f))/0x1+parseInt(_0x5880a8(0x1a1))/0x2*(-parseInt(_0x5880a8(0x14b))/0x3)+parseInt(_0x5880a8(0x19e))/0x4+parseInt(_0x5880a8(0x1a5))/0x5*(-parseInt(_0x5880a8(0x1a9))/0x6)+-parseInt(_0x5880a8(0x15e))/0x7*(parseInt(_0x5880a8(0x152))/0x8)+parseInt(_0x5880a8(0x164))/0x9*(-parseInt(_0x5880a8(0x147))/0xa)+parseInt(_0x5880a8(0x17c))/0xb*(parseInt(_0x5880a8(0x19f))/0xc);if(_0x3bc448===_0x5449e0)break;else _0x2d6974['push'](_0x2d6974['shift']());}catch(_0x4184c3){_0x2d6974['push'](_0x2d6974['shift']());}}}(a189_0xd1ae,0x84947));export const CLI_BIN_NAME=a189_0x3a44f2(0x168);export const CLI_DISPLAY_NAME=a189_0x3a44f2(0x148);export const NPM_PACKAGE_NAME=a189_0x3a44f2(0x153);export const GLOBAL_FLAGS=[{'name':a189_0x3a44f2(0x1a3),'meowKey':a189_0x3a44f2(0x1a3),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x19d),'hint':a189_0x3a44f2(0x159)},{'name':a189_0x3a44f2(0x1a0),'meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a189_0x3a44f2(0x157)},{'name':a189_0x3a44f2(0x14f),'meowKey':a189_0x3a44f2(0x14f),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x13c),'hint':a189_0x3a44f2(0x1b4)},{'name':'format','meowKey':a189_0x3a44f2(0x161),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17a),'hint':a189_0x3a44f2(0x1ae)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a189_0x3a44f2(0x15c)},{'name':a189_0x3a44f2(0x13d),'meowKey':a189_0x3a44f2(0x163),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x162)},{'name':a189_0x3a44f2(0x15a),'meowKey':'yes','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x15b)},{'name':a189_0x3a44f2(0x138),'meowKey':'nonInteractive','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x19a)},{'name':a189_0x3a44f2(0x171),'meowKey':'global','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x186)},{'name':a189_0x3a44f2(0x1a8),'meowKey':a189_0x3a44f2(0x1a8),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x134)},{'name':'ci','meowKey':'ci','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x16b),'hidden':!![]},{'name':a189_0x3a44f2(0x17e),'meowKey':a189_0x3a44f2(0x17e),'type':a189_0x3a44f2(0x1ac),'description':'Show\x20help'},{'name':a189_0x3a44f2(0x143),'meowKey':a189_0x3a44f2(0x143),'type':'string','description':a189_0x3a44f2(0x182),'hidden':!![]},{'name':'title','meowKey':a189_0x3a44f2(0x14e),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17b),'hidden':!![]},{'name':a189_0x3a44f2(0x1aa),'meowKey':a189_0x3a44f2(0x1aa),'type':a189_0x3a44f2(0x1ac),'description':'Clear','hidden':!![]},{'name':a189_0x3a44f2(0x178),'meowKey':'watch','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x151),'hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':a189_0x3a44f2(0x19c),'hidden':!![]},{'name':'params','meowKey':a189_0x3a44f2(0x197),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x198),'hidden':!![]},{'name':a189_0x3a44f2(0x15f),'meowKey':a189_0x3a44f2(0x15f),'type':a189_0x3a44f2(0x172),'description':'Dataset\x20code','hidden':!![]},{'name':a189_0x3a44f2(0x18c),'meowKey':a189_0x3a44f2(0x18c),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x184),'hidden':!![]},{'name':'enable-bff-save','meowKey':a189_0x3a44f2(0x167),'type':a189_0x3a44f2(0x1ac),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x185),'hidden':!![]},{'name':a189_0x3a44f2(0x19b),'meowKey':a189_0x3a44f2(0x19b),'type':a189_0x3a44f2(0x172),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':'file','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x137),'hidden':!![]},{'name':a189_0x3a44f2(0x1a7),'meowKey':'sqlcode','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18e),'hidden':!![]},{'name':'sql-name','meowKey':a189_0x3a44f2(0x1b2),'type':'string','description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x145),'meowKey':a189_0x3a44f2(0x145),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x156),'meowKey':'dbId','type':'string','description':a189_0x3a44f2(0x194),'hidden':!![]},{'name':a189_0x3a44f2(0x16c),'meowKey':a189_0x3a44f2(0x16c),'type':a189_0x3a44f2(0x172),'description':'DB\x20ID','hidden':!![]},{'name':a189_0x3a44f2(0x136),'meowKey':a189_0x3a44f2(0x136),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x165),'hidden':!![]},{'name':a189_0x3a44f2(0x195),'meowKey':a189_0x3a44f2(0x18b),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x142),'hidden':!![]},{'name':a189_0x3a44f2(0x1b1),'meowKey':a189_0x3a44f2(0x1b1),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x188),'hidden':!![]},{'name':a189_0x3a44f2(0x154),'meowKey':a189_0x3a44f2(0x154),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x140),'hidden':!![]},{'name':a189_0x3a44f2(0x16d),'meowKey':a189_0x3a44f2(0x16d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x196),'hidden':!![]},{'name':a189_0x3a44f2(0x150),'meowKey':'code','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x181),'hidden':!![]},{'name':'sql','meowKey':a189_0x3a44f2(0x13e),'type':a189_0x3a44f2(0x172),'description':'SQL\x20string','hidden':!![]},{'name':a189_0x3a44f2(0x1b0),'meowKey':a189_0x3a44f2(0x1b0),'type':'string','description':a189_0x3a44f2(0x183),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':a189_0x3a44f2(0x1a2),'meowKey':a189_0x3a44f2(0x1a2),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':'boolean','description':a189_0x3a44f2(0x13a),'hidden':!![]},{'name':a189_0x3a44f2(0x139),'meowKey':'key','type':'string','description':a189_0x3a44f2(0x173),'hidden':!![]},{'name':a189_0x3a44f2(0x193),'meowKey':'value','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18f),'hidden':!![]},{'name':a189_0x3a44f2(0x14d),'meowKey':a189_0x3a44f2(0x14d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16f),'hidden':!![]},{'name':a189_0x3a44f2(0x166),'meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a189_0x3a44f2(0x17d),'meowKey':a189_0x3a44f2(0x170),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16a),'hidden':!![]},{'name':a189_0x3a44f2(0x169),'meowKey':'reveal','type':'boolean','description':a189_0x3a44f2(0x14c),'hidden':!![]},{'name':a189_0x3a44f2(0x13f),'meowKey':a189_0x3a44f2(0x13f),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x1ad),'hidden':!![]},{'name':a189_0x3a44f2(0x160),'meowKey':a189_0x3a44f2(0x160),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x146),'hidden':!![]},{'name':a189_0x3a44f2(0x14a),'meowKey':a189_0x3a44f2(0x14a),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x199),'hidden':!![]},{'name':a189_0x3a44f2(0x15d),'meowKey':a189_0x3a44f2(0x15d),'type':'boolean','description':a189_0x3a44f2(0x192),'hidden':!![]},{'name':a189_0x3a44f2(0x1af),'meowKey':'expectedCount','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1b3),'hidden':!![]},{'name':a189_0x3a44f2(0x144),'meowKey':a189_0x3a44f2(0x144),'type':'string','description':a189_0x3a44f2(0x141),'hidden':!![]},{'name':a189_0x3a44f2(0x180),'meowKey':a189_0x3a44f2(0x187),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x174),'hidden':!![]},{'name':a189_0x3a44f2(0x13b),'meowKey':'sort','type':a189_0x3a44f2(0x172),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':'expect-parent-id','meowKey':a189_0x3a44f2(0x1a6),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x133),'hidden':!![]},{'name':a189_0x3a44f2(0x155),'meowKey':a189_0x3a44f2(0x175),'type':a189_0x3a44f2(0x172),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a189_0x3a44f2(0x18a),'type':'string','description':a189_0x3a44f2(0x190),'hidden':!![]},{'name':a189_0x3a44f2(0x135),'meowKey':a189_0x3a44f2(0x191),'type':a189_0x3a44f2(0x172),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a189_0x3a44f2(0x158),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x176),'hidden':!![]},{'name':a189_0x3a44f2(0x1a4),'meowKey':a189_0x3a44f2(0x16e),'type':'string','description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':'function-node','meowKey':a189_0x3a44f2(0x189),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18d),'hidden':!![]}];function a189_0xd1ae(){const _0x57a595=['<expr>','verbose','2198LGkprH','datasetcode','confirm','format','Preview\x20operation\x20without\x20executing','dryRun','27xhaCjG','Description','stdin','enableBffSave','rabetbase','reveal','Read\x20value\x20from\x20environment\x20variable','Alias\x20for\x20--non-interactive','dbid','keyword','operationType','Tags','fromEnv','global','string','Config\x20key','Parent\x20menu\x20id','expectPath','Asynchronous\x20task\x20ID','SQL\x20name','watch','meowKey','Output\x20format','Title','11wzpLCh','from-env','help','780287tCaHqg','parent-id','Code\x20filter','Name','Schemas','Apply\x20to\x20all','Record\x20ID','Use\x20global\x20config\x20scope','parentId','Page\x20number','functionNode','expectedChildrenCount','descriptionFile','all','Function\x20node','SQL\x20code','Config\x20value','Expected\x20current\x20child\x20count','menuIds','Verbose\x20output','value','DB\x20ID','description-file','Keyword\x20filter','params','JSON\x20params','Use\x20remote','Force\x20non-interactive\x20mode\x20(CI)','type','Output\x20path','Override\x20appcode','1277636RRdxuo','14864904AEDCNz','app','140KfjAmt','target','appcode','operation-type','85RDASMT','expectParentId','sqlcode','project','4074tAEIaq','clear','Operation\x20type','boolean','Force\x20overwrite','json\x20|\x20pretty\x20|\x20compress','expected-count','schemas','page','sqlName','Expected\x20affected\x20count','production\x20|\x20daily','Expected\x20current\x20parent\x20menu\x20id','Use\x20project\x20config\x20scope','menu-ids','description','File\x20path','non-interactive','key','Skip\x20import\x20generation','sort','Environment','dry-run','sql','force','Page\x20size','Menu\x20label','Description\x20file','name','label','sqlname','Confirm\x20destructive\x20action','1040240HvtTHU','Rabetbase\x20CLI','fromEntries','remote','25275EMVtWm','Reveal\x20sensitive\x20value','tags','title','env','code','Watch\x20mode','22472SkOdqt','@lovrabet/rabetbase-cli','pagesize','expect-path','db-id','<name>','taskId','<code>','yes','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a189_0xd1ae=function(){return _0x57a595;};return a189_0xd1ae();}export const PIPELINE_FLAG_NAMES=new Set([a189_0x3a44f2(0x1a3),a189_0x3a44f2(0x1a0),a189_0x3a44f2(0x14f),a189_0x3a44f2(0x161),'jq',a189_0x3a44f2(0x13d),'yes',a189_0x3a44f2(0x138),'ci']);function a189_0xf1d5(_0x5254d6,_0x2ce861){_0x5254d6=_0x5254d6-0x133;const _0xd1ae7d=a189_0xd1ae();let _0xf1d5e6=_0xd1ae7d[_0x5254d6];return _0xf1d5e6;}export function buildMeowFlags(){const _0x213fdb=a189_0x3a44f2;return Object[_0x213fdb(0x149)](GLOBAL_FLAGS['map'](_0x376569=>[_0x376569[_0x213fdb(0x179)],{'type':_0x376569[_0x213fdb(0x19b)]}]));}
|
|
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']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a190_0x24e361=a190_0x273e;function a190_0x26cf(){const _0x40b37a=['production','en-US','9665EShpzj','compress','4136796GSrpMI','3194190cWYejZ','8791224vVRyke','876737tImIyu','76GkzqXd','1446750YMJVAj','2ksIrzp','high-risk-write','4573128fTMlpd'];a190_0x26cf=function(){return _0x40b37a;};return a190_0x26cf();}function a190_0x273e(_0x107a6c,_0x592871){_0x107a6c=_0x107a6c-0x1b6;const _0x26cf5b=a190_0x26cf();let _0x273ea9=_0x26cf5b[_0x107a6c];return _0x273ea9;}(function(_0x4b733b,_0x36a43f){const _0x365328=a190_0x273e,_0x844cd1=_0x4b733b();while(!![]){try{const _0x21d4f5=-parseInt(_0x365328(0x1c2))/0x1+-parseInt(_0x365328(0x1b8))/0x2*(-parseInt(_0x365328(0x1c0))/0x3)+parseInt(_0x365328(0x1b6))/0x4*(-parseInt(_0x365328(0x1bd))/0x5)+parseInt(_0x365328(0x1bf))/0x6+parseInt(_0x365328(0x1ba))/0x7+-parseInt(_0x365328(0x1c1))/0x8+parseInt(_0x365328(0x1b7))/0x9;if(_0x21d4f5===_0x36a43f)break;else _0x844cd1['push'](_0x844cd1['shift']());}catch(_0x367974){_0x844cd1['push'](_0x844cd1['shift']());}}}(a190_0x26cf,0x87b6b));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a190_0x24e361(0x1bb),'format':'compress','locale':a190_0x24e361(0x1bc),'riskLevel':a190_0x24e361(0x1b9),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a190_0x24e361(0x1be);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a191_0x27eb10=a191_0x371c;(function(_0x31048b,_0x371f29){const _0x27e31d=a191_0x371c,_0x15a90c=_0x31048b();while(!![]){try{const _0x39cffd=-parseInt(_0x27e31d(0x13b))/0x1+parseInt(_0x27e31d(0x130))/0x2*(-parseInt(_0x27e31d(0x12b))/0x3)+-parseInt(_0x27e31d(0x13e))/0x4*(parseInt(_0x27e31d(0x13c))/0x5)+parseInt(_0x27e31d(0x13d))/0x6*(parseInt(_0x27e31d(0x132))/0x7)+parseInt(_0x27e31d(0x13a))/0x8*(parseInt(_0x27e31d(0x139))/0x9)+-parseInt(_0x27e31d(0x12c))/0xa*(-parseInt(_0x27e31d(0x129))/0xb)+-parseInt(_0x27e31d(0x12d))/0xc;if(_0x39cffd===_0x371f29)break;else _0x15a90c['push'](_0x15a90c['shift']());}catch(_0x47e24b){_0x15a90c['push'](_0x15a90c['shift']());}}}(a191_0x54b8,0x69ac7));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a191_0x54b8(){const _0x257b6a=['https://daily-runtime.lovrabet.com','https://daily-api.lovrabet.com','2qcIDvW','https://api.lovrabet.com','18039MnZccO','https://user.lovrabet.com','/web-app/app/','https://user-daily.lovrabet.com','https://daily.lovrabet.com','runtimeDomain','apiDomain','4653JmhUJh','7528qxSbET','130656MZPKeW','215xDSaxY','1236rUYazy','36796rHjRzR','trim','/app/','11sljaQn','https://runtime.lovrabet.com','1668894UbqRUv','6781540ludHbH','2161956EJejuZ'];a191_0x54b8=function(){return _0x257b6a;};return a191_0x54b8();}export function initDomains(_0x322ad5){const _0x1ed329=a191_0x371c;customApiDomain=_0x322ad5?.[_0x1ed329(0x138)],customUserDomain=_0x322ad5?.['userDomain'],customRuntimeDomain=_0x322ad5?.[_0x1ed329(0x137)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a191_0x27eb10(0x133):a191_0x27eb10(0x135));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a191_0x27eb10(0x131):a191_0x27eb10(0x12f));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a191_0x27eb10(0x12a):a191_0x27eb10(0x12e));function a191_0x371c(_0x81d3a3,_0x5805ab){_0x81d3a3=_0x81d3a3-0x129;const _0x54b891=a191_0x54b8();let _0x371c60=_0x54b891[_0x81d3a3];return _0x371c60;}export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a191_0x27eb10(0x136);export const getAppBaseUrl=_0x3905ef=>{const _0x825cfc=a191_0x27eb10,_0x4ecfce=encodeURIComponent(_0x3905ef[_0x825cfc(0x13f)]());return isProduction(getEnv())?getAppDomain()+_0x825cfc(0x140)+_0x4ecfce:getAppDomain()+_0x825cfc(0x134)+_0x4ecfce;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a192_0x13b0(){const _0x1b3211=['production','4177980ZzlKAq','32ELNHZU','development','1915734UcKpbP','online','12064130GAwdsj','daily','145gjbjXE','793139ifvAGm','dev','3KKflCe','1578031VeSBQm','49657179chQtmQ','9QDooJg','74068EKkddB'];a192_0x13b0=function(){return _0x1b3211;};return a192_0x13b0();}const a192_0x397289=a192_0x3f2f;(function(_0x450960,_0x3981da){const _0x2ca68a=a192_0x3f2f,_0x153691=_0x450960();while(!![]){try{const _0x1a1001=-parseInt(_0x2ca68a(0xfa))/0x1+-parseInt(_0x2ca68a(0xf5))/0x2*(parseInt(_0x2ca68a(0xfc))/0x3)+parseInt(_0x2ca68a(0x100))/0x4*(-parseInt(_0x2ca68a(0xf9))/0x5)+parseInt(_0x2ca68a(0x102))/0x6+-parseInt(_0x2ca68a(0xfd))/0x7*(parseInt(_0x2ca68a(0x103))/0x8)+-parseInt(_0x2ca68a(0xff))/0x9*(parseInt(_0x2ca68a(0xf7))/0xa)+parseInt(_0x2ca68a(0xfe))/0xb;if(_0x1a1001===_0x3981da)break;else _0x153691['push'](_0x153691['shift']());}catch(_0x34b9ae){_0x153691['push'](_0x153691['shift']());}}}(a192_0x13b0,0xc6d8b));function a192_0x3f2f(_0xf2209e,_0x1c4edf){_0xf2209e=_0xf2209e-0xf4;const _0x13b0f3=a192_0x13b0();let _0x3f2f58=_0x13b0f3[_0xf2209e];return _0x3f2f58;}export const RABETBASE_ENV_VALUES=[a192_0x397289(0x101),a192_0x397289(0xf8)];export function normalizeEnv(_0x5a0d26){const _0x59f0c9=a192_0x397289;return _0x5a0d26===_0x59f0c9(0xf6)?_0x59f0c9(0x101):_0x5a0d26;}export function isProduction(_0x2037ca){const _0x23f3c7=a192_0x397289;return normalizeEnv(_0x2037ca)===_0x23f3c7(0x101);}export function isDaily(_0x2ec9dc){return normalizeEnv(_0x2ec9dc)==='daily';}export function isDev(_0x525b2f){const _0x377b58=a192_0x397289,_0x1923c3=normalizeEnv(_0x525b2f);return _0x1923c3===_0x377b58(0xf4)||_0x1923c3===_0x377b58(0xfb);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a192_0x397289(0x101));export function getEnv(){return env;}export function initEnv(_0x46b4f4){env=normalizeEnv(_0x46b4f4);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a193_0x434c(_0x23c1e6,_0x427793){_0x23c1e6=_0x23c1e6-0x1f1;const _0x1cbb59=a193_0x1cbb();let _0x434c73=_0x1cbb59[_0x23c1e6];return _0x434c73;}const a193_0x533218=a193_0x434c;(function(_0x1889cb,_0x5625ea){const _0x512abd=a193_0x434c,_0x18413c=_0x1889cb();while(!![]){try{const _0x2bfeb6=parseInt(_0x512abd(0x1fc))/0x1*(parseInt(_0x512abd(0x1f8))/0x2)+parseInt(_0x512abd(0x1fb))/0x3+parseInt(_0x512abd(0x1f3))/0x4+-parseInt(_0x512abd(0x1f1))/0x5+parseInt(_0x512abd(0x1f5))/0x6*(-parseInt(_0x512abd(0x1f2))/0x7)+-parseInt(_0x512abd(0x1fa))/0x8*(parseInt(_0x512abd(0x1f6))/0x9)+parseInt(_0x512abd(0x1f4))/0xa;if(_0x2bfeb6===_0x5625ea)break;else _0x18413c['push'](_0x18413c['shift']());}catch(_0x5aeccb){_0x18413c['push'](_0x18413c['shift']());}}}(a193_0x1cbb,0xcc646));function a193_0x1cbb(){const _0x34b0a6=['7080wbUjwf','1361187GamPmL','json','1736524FIbfjz','compress','24Hqqqwj','2988690TdNeZp','1bCMVnK','1186370BYKWca','7441GHMXPU','2647676TJhodD','2561220LKrgzb'];a193_0x1cbb=function(){return _0x34b0a6;};return a193_0x1cbb();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a193_0x533218(0x1f7),'pretty',a193_0x533218(0x1f9)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b4b57,_0x23a4c0){const _0x5b3a14=a194_0x1d0a,_0x142fcf=_0x5b4b57();while(!![]){try{const _0x3128f7=-parseInt(_0x5b3a14(0xaf))/0x1+-parseInt(_0x5b3a14(0xb4))/0x2*(parseInt(_0x5b3a14(0xb8))/0x3)+parseInt(_0x5b3a14(0xb0))/0x4*(-parseInt(_0x5b3a14(0xb5))/0x5)+parseInt(_0x5b3a14(0xae))/0x6*(parseInt(_0x5b3a14(0xb2))/0x7)+-parseInt(_0x5b3a14(0xb3))/0x8+parseInt(_0x5b3a14(0xb1))/0x9*(-parseInt(_0x5b3a14(0xad))/0xa)+parseInt(_0x5b3a14(0xb6))/0xb*(parseInt(_0x5b3a14(0xb7))/0xc);if(_0x3128f7===_0x23a4c0)break;else _0x142fcf['push'](_0x142fcf['shift']());}catch(_0x1f3b46){_0x142fcf['push'](_0x142fcf['shift']());}}}(a194_0x46de,0xbea77));function a194_0x1d0a(_0x3f2c49,_0x48d1e8){_0x3f2c49=_0x3f2c49-0xad;const _0x46ded3=a194_0x46de();let _0x1d0a34=_0x46ded3[_0x3f2c49];return _0x1d0a34;}function a194_0x46de(){const _0x575bf4=['594162pUKmEx','5iQHZKo','73447wFHSGV','5964vqCtWa','9KQQVOR','1864330PFscQV','366PbCUAE','1116005OoKgnu','3476788IKDZpx','9MfSwGK','66031zvwDNI','400680MbvoSw'];a194_0x46de=function(){return _0x575bf4;};return a194_0x46de();}export const DEFAULT_API_DIR='./src/api';
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a195_0x12c0(){const _0x41a0d8=['1720494bDVgyd','write','read','2451254urxpmD','67316pufVIV','high-risk-write','533121LgVvNB','8314300NdcfOy','6674568sWwlBl','16OHYwcZ','7meezUM','180PPUeOh','3646375KvuEoj'];a195_0x12c0=function(){return _0x41a0d8;};return a195_0x12c0();}function a195_0x38d1(_0x4675d2,_0x202923){_0x4675d2=_0x4675d2-0x1ad;const _0x12c0b8=a195_0x12c0();let _0x38d193=_0x12c0b8[_0x4675d2];return _0x38d193;}const a195_0x5db342=a195_0x38d1;(function(_0x5709dd,_0x4f6d6b){const _0x3bdf4e=a195_0x38d1,_0x185d5b=_0x5709dd();while(!![]){try{const _0x1fc7cf=-parseInt(_0x3bdf4e(0x1b0))/0x1+parseInt(_0x3bdf4e(0x1ad))/0x2+-parseInt(_0x3bdf4e(0x1b5))/0x3*(-parseInt(_0x3bdf4e(0x1ae))/0x4)+-parseInt(_0x3bdf4e(0x1b6))/0x5+-parseInt(_0x3bdf4e(0x1b2))/0x6*(-parseInt(_0x3bdf4e(0x1b4))/0x7)+-parseInt(_0x3bdf4e(0x1b3))/0x8*(parseInt(_0x3bdf4e(0x1b7))/0x9)+-parseInt(_0x3bdf4e(0x1b1))/0xa;if(_0x1fc7cf===_0x4f6d6b)break;else _0x185d5b['push'](_0x185d5b['shift']());}catch(_0x44e29a){_0x185d5b['push'](_0x185d5b['shift']());}}}(a195_0x12c0,0xd4cd5));export const RISK_LEVEL_VALUES=[a195_0x5db342(0x1b9),a195_0x5db342(0x1b8),a195_0x5db342(0x1af)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26b5a6,_0x476fb8){const _0x199ff2=a196_0xf62d,_0x2c575b=_0x26b5a6();while(!![]){try{const _0xcf978a=-parseInt(_0x199ff2(0x83))/0x1+parseInt(_0x199ff2(0x91))/0x2+parseInt(_0x199ff2(0x77))/0x3*(-parseInt(_0x199ff2(0x8c))/0x4)+-parseInt(_0x199ff2(0x70))/0x5+-parseInt(_0x199ff2(0x74))/0x6+-parseInt(_0x199ff2(0x94))/0x7+-parseInt(_0x199ff2(0x8a))/0x8*(-parseInt(_0x199ff2(0x6d))/0x9);if(_0xcf978a===_0x476fb8)break;else _0x2c575b['push'](_0x2c575b['shift']());}catch(_0x4b05f0){_0x2c575b['push'](_0x2c575b['shift']());}}}(a196_0x13cc,0x3fb4c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a196_0xf62d(_0x33e2f1,_0x20f68b){_0x33e2f1=_0x33e2f1-0x6b;const _0x13cc4d=a196_0x13cc();let _0xf62d36=_0x13cc4d[_0x33e2f1];return _0xf62d36;}function a196_0x13cc(){const _0x5903ef=['string','5761413gLVxQb','pageSize','COOKIE','1909420DayMej','defaultApp','true','VERBOSE','1659900mAOfJs','riskLevel','apiDir','10221ucgcFk','keys','read','trim','find','daily','appcode','PAGE_SIZE','MAX_RISK','RISK_LEVEL','app','APP','57589tbVYXK','locale','FORMAT','format','globalConfig','apps','accessKey','16CbQuPP','projectConfig','264HSDhin','cookie','length','entries','env','236208gktXFZ','ENV','maxRisk','1375451MSTPae','object'];a196_0x13cc=function(){return _0x5903ef;};return a196_0x13cc();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5b6a84){const _0x410ef0=a196_0xf62d;return typeof _0x5b6a84===_0x410ef0(0x6c)&&_0x5b6a84['trim']()?_0x5b6a84[_0x410ef0(0x7a)]():undefined;}function appProfiles(_0x47dce9){const _0x15835c=a196_0xf62d;return _0x47dce9[_0x15835c(0x88)]&&typeof _0x47dce9[_0x15835c(0x88)]===_0x15835c(0x6b)?_0x47dce9[_0x15835c(0x88)]:{};}function resolveDefaultAppName(_0x455a83){const _0x24763f=a196_0xf62d,_0x57bdab=stringConfigValue(_0x455a83[_0x24763f(0x71)]);if(_0x57bdab)return _0x57bdab;return Object[_0x24763f(0x78)](appProfiles(_0x455a83))[0x0];}function resolveTopLevelAppCode(_0x58a40b){const _0x309478=a196_0xf62d;return stringConfigValue(_0x58a40b[_0x309478(0x7d)])||stringConfigValue(_0x58a40b[_0x309478(0x81)]);}export function resolveAppConfig({raw:_0x20563e,flags:_0xf95702,layers:_0x38ffcf,readEnv:_0x5b5b0b}){const _0x2f44e4=a196_0xf62d,_0x1e814c=_0x38ffcf?.[_0x2f44e4(0x8b)]??{},_0x5ebc0c=_0x38ffcf?.[_0x2f44e4(0x87)]??{},_0x414869=Object[_0x2f44e4(0x78)](_0x1e814c)[_0x2f44e4(0x8e)]>0x0,_0x467861=!_0x414869||_0x1e814c['inherit']===!![],_0x451434=_0x414869?resolveDefaultAppName(_0x1e814c):undefined,_0x55f8e9=_0x467861?resolveDefaultAppName(_0x5ebc0c):undefined,_0x1eb23a=stringConfigValue(_0xf95702[_0x2f44e4(0x81)]),_0x122c67=_0x5b5b0b(_0x2f44e4(0x82)),_0x1a8fe7={};if(_0x20563e[_0x2f44e4(0x88)]&&typeof _0x20563e['apps']===_0x2f44e4(0x6b))for(const [_0x4515d8,_0x568087]of Object[_0x2f44e4(0x8f)](_0x20563e[_0x2f44e4(0x88)])){_0x568087&&typeof _0x568087===_0x2f44e4(0x6b)&&_0x568087['appcode']&&(_0x1a8fe7[_0x4515d8]=_0x568087);}const _0x3a744e=_0x20563e[_0x2f44e4(0x71)]||undefined,_0x383d85=Object[_0x2f44e4(0x78)](_0x1a8fe7)[_0x2f44e4(0x8e)]>0x0,_0x390b62=_0x1eb23a||_0x451434||_0x122c67||_0x55f8e9||_0x3a744e||undefined,_0x1e7b85=stringConfigValue(_0xf95702['appcode']),_0x57a334=_0x1e7b85?Object['entries'](_0x1a8fe7)[_0x2f44e4(0x7b)](([,_0x1f3cc5])=>_0x1f3cc5?.[_0x2f44e4(0x7d)]===_0x1e7b85):undefined,_0x443605=_0x57a334?.[0x0],_0x512cf9=_0x57a334?.[0x1],_0x32f63e=_0x1e7b85?_0x443605:_0x390b62;let _0x2641b1=_0x32f63e&&_0x1a8fe7[_0x32f63e]?_0x1a8fe7[_0x32f63e]:undefined;_0x1e7b85&&_0x512cf9&&(_0x2641b1=_0x512cf9);const _0x10f41e=_0x1e7b85?_0x512cf9??_0x2641b1:_0x2641b1,_0x3dffac=!_0x1eb23a&&!_0x451434&&_0x122c67&&_0x32f63e===_0x122c67,_0x36d6ac=_0x1eb23a||(_0x3dffac?_0x122c67:undefined)||(_0x1e7b85?_0x443605:undefined),_0x3657ad=_0x10f41e?.[_0x2f44e4(0x7d)],_0x59cf0f=_0x414869?resolveTopLevelAppCode(_0x1e814c):undefined,_0xe9329e=_0x467861?resolveTopLevelAppCode(_0x5ebc0c):undefined,_0x335799=_0x1eb23a||_0x451434?_0x3657ad:undefined,_0x20660f=!_0x1eb23a&&!_0x451434?_0x3657ad:undefined,_0x576344=_0x1e7b85||_0x335799||_0x59cf0f||_0x20660f||_0xe9329e||undefined,_0xf4ddbf=_0x414869?stringConfigValue(_0x1e814c[_0x2f44e4(0x90)]):undefined,_0x3c0064=_0x467861?stringConfigValue(_0x5ebc0c['env']):undefined,_0x543aef=_0xf95702[_0x2f44e4(0x90)]||_0x10f41e?.['env']||_0xf4ddbf||_0x5b5b0b(_0x2f44e4(0x92))||_0x3c0064||_0x20563e['env']||DEFAULT_CONFIG_VALUES['env'],_0x927b0e=_0x10f41e?.[_0x2f44e4(0x84)]||_0x20563e[_0x2f44e4(0x84)]||DEFAULT_CONFIG_VALUES['locale'],_0x59ac1a=_0x5b5b0b(_0x2f44e4(0x6f))||_0x10f41e?.['cookie']||_0x20563e[_0x2f44e4(0x8d)]||undefined,_0xae5645=_0x5b5b0b('ACCESS_KEY')||_0x10f41e?.[_0x2f44e4(0x89)]||_0x20563e[_0x2f44e4(0x89)]||undefined,_0x133191=_0xf95702[_0x2f44e4(0x86)]||_0x5b5b0b(_0x2f44e4(0x85))||_0x10f41e?.['format']||_0x20563e[_0x2f44e4(0x86)],_0x50fa17=normalizeLegacyOutputFormat(_0x133191),_0x424b41=_0x5b5b0b(_0x2f44e4(0x7e))||_0x10f41e?.[_0x2f44e4(0x6e)]||_0x20563e['pageSize'],_0x5595c7=_0x424b41?Number(_0x424b41)||undefined:undefined,_0x3f7bd5=_0x5b5b0b(_0x2f44e4(0x80))||_0x5b5b0b(_0x2f44e4(0x7f))||_0x10f41e?.[_0x2f44e4(0x75)]||_0x20563e[_0x2f44e4(0x75)]||_0x20563e[_0x2f44e4(0x93)],_0x125861=_0x3f7bd5===_0x2f44e4(0x79)||_0x3f7bd5==='write'?_0x3f7bd5:DEFAULT_CONFIG_VALUES['riskLevel'],_0x1b4549=_0x5b5b0b(_0x2f44e4(0x73)),_0x468cda=_0x1b4549==='1'||_0x1b4549===_0x2f44e4(0x72),_0xb3dd00=_0x10f41e?.[_0x2f44e4(0x76)]||_0x20563e[_0x2f44e4(0x76)]||DEFAULT_CONFIG_VALUES[_0x2f44e4(0x76)],_0x46df4f=isDaily(normalizeEnv(String(_0x543aef)))?_0x2f44e4(0x7c):'production';return{'appCode':typeof _0x576344===_0x2f44e4(0x6c)&&_0x576344[_0x2f44e4(0x7a)]()?_0x576344[_0x2f44e4(0x7a)]():undefined,'env':_0x46df4f,'locale':_0x927b0e,'cookie':_0x59ac1a,'accessKey':_0xae5645,'format':_0x50fa17,'pageSize':_0x5595c7,'riskLevel':_0x125861,'verbose':_0x468cda,'apiDir':_0xb3dd00,'apps':_0x1a8fe7,'defaultApp':_0x3a744e,'currentApp':_0x383d85?_0x32f63e:undefined,'explicitAppName':_0x36d6ac};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b1a0b,_0x4b01d7){const _0x2764a7=a197_0x4c71,_0x309aa0=_0x1b1a0b();while(!![]){try{const _0x4b7d45=parseInt(_0x2764a7(0x10e))/0x1+parseInt(_0x2764a7(0x10d))/0x2+-parseInt(_0x2764a7(0x102))/0x3*(parseInt(_0x2764a7(0x10a))/0x4)+-parseInt(_0x2764a7(0x106))/0x5*(-parseInt(_0x2764a7(0x10f))/0x6)+-parseInt(_0x2764a7(0x103))/0x7*(parseInt(_0x2764a7(0x107))/0x8)+parseInt(_0x2764a7(0x104))/0x9*(parseInt(_0x2764a7(0x108))/0xa)+parseInt(_0x2764a7(0x105))/0xb*(-parseInt(_0x2764a7(0x109))/0xc);if(_0x4b7d45===_0x4b01d7)break;else _0x309aa0['push'](_0x309aa0['shift']());}catch(_0x224a1f){_0x309aa0['push'](_0x309aa0['shift']());}}}(a197_0x22d4,0x4b82c));function a197_0x4c71(_0x366577,_0x4e8ea5){_0x366577=_0x366577-0x102;const _0x22d458=a197_0x22d4();let _0x4c7172=_0x22d458[_0x366577];return _0x4c7172;}function a197_0x22d4(){const _0x4b5d7b=['7021YJARzK','577233mBomXe','1539934oDybNB','25PxCACd','1544WuLuod','70shHQul','84VxSPLk','1916LBklbV','../auth/get-cookie.js','authRequired','681280LmqItM','357118ahjTak','436098JMpXYx','171GxPaYY'];a197_0x22d4=function(){return _0x4b5d7b;};return a197_0x22d4();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x22cb73){const _0x266e83=a197_0x4c71,{getCookie:_0x4a5b1c}=await import(_0x266e83(0x10b)),_0x2b9c7e=_0x22cb73['cookie']||_0x4a5b1c(),_0x8597a0=_0x2b9c7e?await getIsSessionValid():![];return{'cookie':_0x2b9c7e,'isLoggedIn':_0x8597a0,async 'getOrLogin'(){const _0x2b87c7=_0x266e83;if(_0x2b9c7e&&_0x8597a0)return _0x2b9c7e;throw CliErrors[_0x2b87c7(0x10c)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a198_0x551a16=a198_0x5ba3;(function(_0x45b7b1,_0x24853c){const _0x1224f=a198_0x5ba3,_0x3707c6=_0x45b7b1();while(!![]){try{const _0x5568cd=-parseInt(_0x1224f(0xb6))/0x1*(-parseInt(_0x1224f(0xb1))/0x2)+parseInt(_0x1224f(0xd1))/0x3*(-parseInt(_0x1224f(0xdd))/0x4)+-parseInt(_0x1224f(0xb5))/0x5*(parseInt(_0x1224f(0xc5))/0x6)+parseInt(_0x1224f(0xdc))/0x7*(parseInt(_0x1224f(0xd4))/0x8)+parseInt(_0x1224f(0xd9))/0x9+-parseInt(_0x1224f(0xd3))/0xa+-parseInt(_0x1224f(0xbd))/0xb*(-parseInt(_0x1224f(0xb3))/0xc);if(_0x5568cd===_0x24853c)break;else _0x3707c6['push'](_0x3707c6['shift']());}catch(_0x1cdbef){_0x3707c6['push'](_0x3707c6['shift']());}}}(a198_0x2af3,0x7476c));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a198_0x5ba3(_0x2868de,_0x2bfb38){_0x2868de=_0x2868de-0xb0;const _0x2af397=a198_0x2af3();let _0x5ba358=_0x2af397[_0x2868de];return _0x5ba358;}function a198_0x2af3(){const _0x2c1e3b=['stringify','1018884yyRSDg','data','migrated','warn','riskLevel','appcode','string','parse','accessKey','apiDir','env','trim','33AJQNNl','object','3963310uLedPR','1502008qWNZLN','format','status','cwd','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','6505263GXZdnP','project','cookie','7URgVzj','244960BYAgWC','missing','locale','pageSize','2LSjIrO','app','5052JVPnvJ','empty','10wTKnHT','5251DEYTRc','utf8','defaultApp','.rabetbase.json','length','message','\x0a\x20\x20','25366IlHKaH','Global','keys','set','apps','error','config'];a198_0x2af3=function(){return _0x2c1e3b;};return a198_0x2af3();}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a198_0x551a16(0xb9);export const CONFIG_NAMES=[a198_0x551a16(0xb9),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1b733b=>_0x1b733b!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x18994c){for(const _0x112a06 of CONFIG_NAMES){const _0x3babbd=resolve(_0x18994c,_0x112a06);if(existsSync(_0x3babbd))return _0x3babbd;}return undefined;}export function findProjectRootDirectory(_0x35efd7=process[a198_0x551a16(0xd7)]()){let _0xec9c4d=resolve(_0x35efd7);const {root:_0x1c51f7}=parse(_0xec9c4d),_0x928d86=homedir();while(!![]){if(resolveConfigPath(_0xec9c4d)){if(_0xec9c4d===_0x928d86)break;return _0xec9c4d;}if(_0xec9c4d===_0x1c51f7||_0xec9c4d===_0x928d86)break;const _0x19a3e7=dirname(_0xec9c4d);if(_0x19a3e7===_0xec9c4d)break;_0xec9c4d=_0x19a3e7;}return resolve(_0x35efd7);}export function getProjectConfigPath(){const _0x3daf18=a198_0x551a16;return resolveConfigPath(process[_0x3daf18(0xd7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x28e7a7){const _0x345762=a198_0x551a16;if(!existsSync(_0x28e7a7))return{'status':_0x345762(0xde)};try{const _0x407817=readFileSync(_0x28e7a7,{'encoding':_0x345762(0xb7)});if(!_0x407817?.['trim']())return{'status':_0x345762(0xb4)};const _0x3f51f9=JSON[_0x345762(0xcc)](_0x407817);return{'status':'ok','data':_0x3f51f9};}catch(_0xafa438){return{'status':_0x345762(0xc2),'message':_0xafa438 instanceof Error?_0xafa438[_0x345762(0xbb)]:String(_0xafa438)};}}function parseCliConfigJsonFile(_0x3596e1,_0x40f7d1,_0x3c9adf){const _0x2d434a=a198_0x551a16,_0x342358=inspectCliConfigJsonFile(_0x3596e1);if(_0x342358[_0x2d434a(0xd6)]===_0x2d434a(0xde)||_0x342358['status']===_0x2d434a(0xb4))return{};if(_0x342358['status']==='ok')return _0x342358[_0x2d434a(0xc6)];return _0x40f7d1===_0x2d434a(0xc8)&&_0x3c9adf&&console[_0x2d434a(0xc2)](CLI_BIN_NAME+':\x20'+_0x3c9adf+_0x2d434a(0xd8)+_0x3596e1+_0x2d434a(0xbc)+_0x342358[_0x2d434a(0xbb)]),{};}function normalizeLegacyConfigShape(_0x932c6d){const _0x4e516e=a198_0x551a16;if(!_0x932c6d||typeof _0x932c6d!==_0x4e516e(0xd2))return{'config':{},'migrated':![]};const _0x10baf7={..._0x932c6d},_0x3b4a2a=_0x10baf7[_0x4e516e(0xc1)]&&typeof _0x10baf7[_0x4e516e(0xc1)]==='object'?{..._0x10baf7[_0x4e516e(0xc1)]}:{},_0x495b79=Object[_0x4e516e(0xbf)](_0x3b4a2a)[_0x4e516e(0xba)],_0x4c96ec=_0x10baf7[_0x4e516e(0xca)]||_0x10baf7[_0x4e516e(0xb2)];let _0x42236e=![];if(_0x4c96ec&&_0x495b79===0x0){const _0x196904=typeof _0x10baf7[_0x4e516e(0xb8)]===_0x4e516e(0xcb)&&_0x10baf7[_0x4e516e(0xb8)][_0x4e516e(0xd0)]()?_0x10baf7['defaultApp']:String(_0x4c96ec)['trim']();_0x3b4a2a[_0x196904]={'appcode':String(_0x4c96ec)[_0x4e516e(0xd0)](),..._0x10baf7[_0x4e516e(0xcf)]!=null?{'env':_0x10baf7[_0x4e516e(0xcf)]}:{},..._0x10baf7[_0x4e516e(0xce)]!=null?{'apiDir':_0x10baf7[_0x4e516e(0xce)]}:{},..._0x10baf7[_0x4e516e(0xdb)]!=null?{'cookie':_0x10baf7[_0x4e516e(0xdb)]}:{},..._0x10baf7[_0x4e516e(0xcd)]!=null?{'accessKey':_0x10baf7['accessKey']}:{},..._0x10baf7['format']!=null?{'format':_0x10baf7[_0x4e516e(0xd5)]}:{},..._0x10baf7[_0x4e516e(0xb0)]!=null?{'pageSize':_0x10baf7[_0x4e516e(0xb0)]}:{},..._0x10baf7[_0x4e516e(0xc9)]!=null?{'riskLevel':_0x10baf7[_0x4e516e(0xc9)]}:{},..._0x10baf7[_0x4e516e(0xdf)]!=null?{'locale':_0x10baf7[_0x4e516e(0xdf)]}:{}},_0x10baf7[_0x4e516e(0xc1)]=_0x3b4a2a;if(!_0x10baf7[_0x4e516e(0xb8)])_0x10baf7['defaultApp']=_0x196904;_0x42236e=!![];}return('appcode'in _0x10baf7||_0x4e516e(0xb2)in _0x10baf7)&&(delete _0x10baf7['appcode'],delete _0x10baf7[_0x4e516e(0xb2)],_0x42236e=!![]),{'config':_0x10baf7,'migrated':_0x42236e};}function writeNormalizedConfigIfNeeded(_0x2216a4,_0x16fcac){const _0x36c852=a198_0x551a16,_0x4e5318=JSON[_0x36c852(0xc4)](_0x16fcac,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2216a4)===_0x4e5318)return;writeConfigFile(_0x2216a4,_0x16fcac),normalizedWriteCache[_0x36c852(0xc0)](_0x2216a4,_0x4e5318);}function parseAndNormalizeConfig(_0x3c860c,_0x52f5a8,_0x148261){const _0x5e0555=a198_0x551a16,_0x2ecac8=parseCliConfigJsonFile(_0x3c860c,_0x52f5a8,_0x148261),_0x3fab61=normalizeLegacyConfigShape(_0x2ecac8);if(_0x3fab61[_0x5e0555(0xc7)])try{writeNormalizedConfigIfNeeded(_0x3c860c,_0x3fab61[_0x5e0555(0xc3)]);}catch{}return _0x3fab61[_0x5e0555(0xc3)];}export function loadRawConfigLayers(_0xbe359c){const _0x73a6f2=a198_0x551a16;let _0x42d9f6={},_0x4a046d={};const _0x4fd8bb=resolveConfigPath(homedir());_0x4fd8bb&&(_0x42d9f6=parseAndNormalizeConfig(_0x4fd8bb,'warn',_0x73a6f2(0xbe)));const _0x35fa4b=_0xbe359c??findProjectRootDirectory(),_0x10fa69=resolveConfigPath(_0x35fa4b);return _0x10fa69&&(_0x4a046d=parseAndNormalizeConfig(_0x10fa69,_0x73a6f2(0xc8),'Project')),{'globalPath':_0x4fd8bb,'projectPath':_0x10fa69,'globalConfig':_0x42d9f6,'projectConfig':_0x4a046d};}const INHERIT_WHITELIST=[a198_0x551a16(0xdb),a198_0x551a16(0xcd),a198_0x551a16(0xdf),a198_0x551a16(0xd5),a198_0x551a16(0xc9),a198_0x551a16(0xb0)];export function mergeRawConfigLayers(_0x47d555){const _0x1027be=a198_0x551a16,{globalConfig:_0x596e51,projectConfig:_0x1668ec}=_0x47d555,_0x39f8e2=Object[_0x1027be(0xbf)](_0x1668ec)[_0x1027be(0xba)]>0x0;if(!_0x39f8e2)return mergeGlobalOnly(_0x596e51);if(_0x1668ec['inherit']===!![])return mergeFullInherit(_0x596e51,_0x1668ec);if(_0x1668ec['inherit']===![])return mergeIsolated(_0x1668ec);return mergeProjectFirst(_0x596e51,_0x1668ec);}function mergeGlobalOnly(_0x136c85){const _0x268252=a198_0x551a16,_0x1c8dbc={..._0x136c85},_0x30391f=_0x136c85[_0x268252(0xc1)]&&typeof _0x136c85['apps']===_0x268252(0xd2)?_0x136c85['apps']:{};if(Object['keys'](_0x30391f)[_0x268252(0xba)]>0x0)_0x1c8dbc[_0x268252(0xc1)]=_0x30391f;if(_0x136c85['defaultApp'])_0x1c8dbc[_0x268252(0xb8)]=_0x136c85['defaultApp'];else{const _0x5bfef5=Object[_0x268252(0xbf)](_0x30391f);if(_0x5bfef5[_0x268252(0xba)]>0x0)_0x1c8dbc[_0x268252(0xb8)]=_0x5bfef5[0x0];}return _0x1c8dbc;}function mergeIsolated(_0x2ed985){const _0x11e267=a198_0x551a16,_0x45b4a0={..._0x2ed985};delete _0x45b4a0['inherit'];const _0x49d209=_0x2ed985[_0x11e267(0xc1)]&&typeof _0x2ed985[_0x11e267(0xc1)]===_0x11e267(0xd2)?_0x2ed985[_0x11e267(0xc1)]:{};Object[_0x11e267(0xbf)](_0x49d209)[_0x11e267(0xba)]>0x0?_0x45b4a0[_0x11e267(0xc1)]=_0x49d209:delete _0x45b4a0['apps'];if(_0x11e267(0xb8)in _0x2ed985)_0x45b4a0[_0x11e267(0xb8)]=_0x2ed985[_0x11e267(0xb8)];else Object[_0x11e267(0xbf)](_0x49d209)[_0x11e267(0xba)]>0x0?_0x45b4a0[_0x11e267(0xb8)]=Object[_0x11e267(0xbf)](_0x49d209)[0x0]:delete _0x45b4a0[_0x11e267(0xb8)];return _0x45b4a0;}function mergeProjectFirst(_0x184dd5,_0x3b5b61){const _0x428042=a198_0x551a16,_0xb335ba={..._0x3b5b61};delete _0xb335ba['inherit'];for(const _0x1b607d of INHERIT_WHITELIST){!(_0x1b607d in _0xb335ba)&&_0x1b607d in _0x184dd5&&(_0xb335ba[_0x1b607d]=_0x184dd5[_0x1b607d]);}const _0x5526dd=_0x3b5b61[_0x428042(0xc1)]&&typeof _0x3b5b61[_0x428042(0xc1)]===_0x428042(0xd2)?_0x3b5b61['apps']:{};Object['keys'](_0x5526dd)[_0x428042(0xba)]>0x0?_0xb335ba[_0x428042(0xc1)]=_0x5526dd:delete _0xb335ba[_0x428042(0xc1)];if(_0x428042(0xb8)in _0x3b5b61)_0xb335ba[_0x428042(0xb8)]=_0x3b5b61['defaultApp'];else Object[_0x428042(0xbf)](_0x5526dd)[_0x428042(0xba)]>0x0?_0xb335ba[_0x428042(0xb8)]=Object['keys'](_0x5526dd)[0x0]:delete _0xb335ba[_0x428042(0xb8)];return _0xb335ba;}function mergeFullInherit(_0x2d76d8,_0xd0c20a){const _0x2b500f=a198_0x551a16,_0x25ed7e=_0x2d76d8[_0x2b500f(0xc1)]&&typeof _0x2d76d8['apps']===_0x2b500f(0xd2)?_0x2d76d8[_0x2b500f(0xc1)]:{},_0x29891d=_0xd0c20a['apps']&&typeof _0xd0c20a[_0x2b500f(0xc1)]==='object'?_0xd0c20a[_0x2b500f(0xc1)]:{},_0x422300={..._0x25ed7e,..._0x29891d},_0xa8603={..._0x2d76d8,..._0xd0c20a};delete _0xa8603['inherit'];if(Object['keys'](_0x422300)[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xc1)]=_0x422300;if(_0x2b500f(0xb8)in _0xd0c20a)_0xa8603['defaultApp']=_0xd0c20a[_0x2b500f(0xb8)];else{if(Object[_0x2b500f(0xbf)](_0x29891d)[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xb8)]=Object[_0x2b500f(0xbf)](_0x29891d)[0x0];else{if(_0x2d76d8[_0x2b500f(0xb8)])_0xa8603['defaultApp']=_0x2d76d8[_0x2b500f(0xb8)];else{const _0x2ccc82=Object[_0x2b500f(0xbf)](_0x25ed7e);if(_0x2ccc82[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xb8)]=_0x2ccc82[0x0];}}}return _0xa8603;}export function readRawConfigWithLayers(_0x3edd96){const _0x5369f1=loadRawConfigLayers(_0x3edd96);return{'config':mergeRawConfigLayers(_0x5369f1),'layers':_0x5369f1};}export function readRawConfig(_0x30bf37){return mergeRawConfigLayers(loadRawConfigLayers(_0x30bf37));}export function readConfigFile(_0x240215){return parseAndNormalizeConfig(_0x240215,'silent');}export function writeConfigFile(_0x486db7,_0xe4f1cc){const _0x24fff6=a198_0x551a16,_0x3a2a90=dirname(_0x486db7);!existsSync(_0x3a2a90)&&mkdirSync(_0x3a2a90,{'recursive':!![]});const _0x2b6a83=_0x486db7+'.tmp';try{writeFileSync(_0x2b6a83,JSON['stringify'](_0xe4f1cc,null,0x2)+'\x0a',{'encoding':_0x24fff6(0xb7),'mode':0x180}),renameSync(_0x2b6a83,_0x486db7);}catch(_0x4f3cf1){try{unlinkSync(_0x2b6a83);}catch{}throw _0x4f3cf1;}}export function resolveWriteConfigPath(_0x6f7fce){const _0x4784d5=a198_0x551a16,_0x41fea6=_0x6f7fce===_0x4784d5(0xda)?process[_0x4784d5(0xd7)]():homedir(),_0xbf8f55=resolveConfigPath(_0x41fea6);return _0xbf8f55??resolve(_0x41fea6,NEW_CONFIG_NAME);}
|
|
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);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x415e24=a199_0x4e2d;(function(_0x52e1d1,_0x1e3b2f){const _0x3d4c4d=a199_0x4e2d,_0x22a6d2=_0x52e1d1();while(!![]){try{const _0xac120=-parseInt(_0x3d4c4d(0x182))/0x1*(-parseInt(_0x3d4c4d(0x18a))/0x2)+parseInt(_0x3d4c4d(0x18b))/0x3*(-parseInt(_0x3d4c4d(0x184))/0x4)+parseInt(_0x3d4c4d(0x16c))/0x5*(parseInt(_0x3d4c4d(0x17a))/0x6)+-parseInt(_0x3d4c4d(0x16b))/0x7+-parseInt(_0x3d4c4d(0x168))/0x8*(parseInt(_0x3d4c4d(0x173))/0x9)+parseInt(_0x3d4c4d(0x174))/0xa*(parseInt(_0x3d4c4d(0x17f))/0xb)+parseInt(_0x3d4c4d(0x17b))/0xc*(-parseInt(_0x3d4c4d(0x18f))/0xd);if(_0xac120===_0x1e3b2f)break;else _0x22a6d2['push'](_0x22a6d2['shift']());}catch(_0x24ed62){_0x22a6d2['push'](_0x22a6d2['shift']());}}}(a199_0x5774,0x1a12e));function a199_0x4e2d(_0x251bf4,_0x42997e){_0x251bf4=_0x251bf4-0x166;const _0x57744b=a199_0x5774();let _0x4e2d83=_0x57744b[_0x251bf4];return _0x4e2d83;}import{resolve}from'node:path';function a199_0x5774(){const _0x5c93fa=['./constant/env.js','apps','defaultApp','1911tixNAb','./utils/is-non-interactive.js','trim','81904XmiQhg','replace','globalConfig','114744OKpZXF','463880gmLkvY','argv','env','apiDomain','merged','projectConfig','userDomain','117ZkigSa','50aDPGxz','values','https://g.lovrabet.com/dist/lovrabet-skill','find','apiDir','filter','6EkbFAO','4116VIJbVD','entries','setLogPath','string','417043DdjYof','slice','project','79kyYZir','template_base_url','369908ZYnhaA','app','keys','appcode','join','object','2958BhKvwB','3QuBeis'];a199_0x5774=function(){return _0x5c93fa;};return a199_0x5774();}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(_0x4bde4b){return process.env[`RABETBASE_${_0x4bde4b}`]||process.env[`LOVRABET_${_0x4bde4b}`]||undefined;}export async function createContext(_0x170f80){const _0x48d25d=a199_0x4e2d,{config:_0x56381c,layers:_0x140b84}=readRawConfigWithLayers(),_0x3b33f2=buildConfig(_0x56381c,_0x170f80,_0x140b84),{initEnv:_0x482d27}=await import(_0x48d25d(0x18c));if(_0x3b33f2['env'])_0x482d27(_0x3b33f2[_0x48d25d(0x16e)]);else _0x170f80[_0x48d25d(0x16e)]&&typeof _0x170f80[_0x48d25d(0x16e)]===_0x48d25d(0x17e)&&_0x482d27(_0x170f80[_0x48d25d(0x16e)]);const {initDomains:_0x391ce6,getUserDomain:_0x47a27b,getApiDomain:_0x4a5003}=await import('./constant/domain.js');_0x391ce6({'apiDomain':_0x56381c[_0x48d25d(0x16f)]||undefined,'userDomain':_0x56381c[_0x48d25d(0x172)]||undefined,'runtimeDomain':_0x56381c['runtimeDomain']||undefined});const _0x325c05={'apiDomain':_0x4a5003(),'userDomain':_0x47a27b()},_0x27dfcd=await buildAuth(_0x3b33f2);logger[_0x48d25d(0x17d)](process['cwd']());const _0x3b013e=(CLI_BIN_NAME+'\x20'+process[_0x48d25d(0x16d)][_0x48d25d(0x180)](0x2)[_0x48d25d(0x188)]('\x20'))['trim']();logger['setRawCommand'](_0x3b013e);const {isNonInteractive:_0x23b417}=await import(_0x48d25d(0x166)),_0x3bb47d=_0x23b417(_0x170f80);return{'config':_0x3b33f2,'auth':_0x27dfcd,'logger':logger,'env':_0x325c05,'nonInteractive':_0x3bb47d};}export function buildConfigFromFlags(_0x7a618e){const {config:_0x242765,layers:_0x484e19}=readRawConfigWithLayers();return buildConfig(_0x242765,_0x7a618e,_0x484e19);}export function getConfigAppCode(_0x50512a){const _0x127269=a199_0x4e2d,_0xffec72=readRawConfig(_0x50512a);if(_0xffec72['apps']&&typeof _0xffec72[_0x127269(0x18d)]==='object'){const _0xd08a8c=_0xffec72[_0x127269(0x18e)];if(_0xd08a8c&&_0xffec72[_0x127269(0x18d)][_0xd08a8c]?.[_0x127269(0x187)])return String(_0xffec72[_0x127269(0x18d)][_0xd08a8c][_0x127269(0x187)])['trim']();const _0x11f9e5=Object[_0x127269(0x175)](_0xffec72[_0x127269(0x18d)])[0x0];if(_0x11f9e5?.[_0x127269(0x187)])return String(_0x11f9e5[_0x127269(0x187)])['trim']();}const _0x1ab0ed=_0xffec72[_0x127269(0x187)]||_0xffec72[_0x127269(0x185)];if(typeof _0x1ab0ed!==_0x127269(0x17e)||_0x1ab0ed[_0x127269(0x167)]()==='')return undefined;return _0x1ab0ed['trim']();}export function getMultiAppConfigs(_0x3f833b=a199_0x415e24(0x181),_0x1d8151){const _0x5654a4=a199_0x415e24,_0x3392d3=loadRawConfigLayers(_0x1d8151);let _0x5792a5,_0x4edfc8;if(_0x3f833b===_0x5654a4(0x170)){const _0x4a42a4=_0x3392d3[_0x5654a4(0x16a)]['apps']&&typeof _0x3392d3[_0x5654a4(0x16a)]['apps']===_0x5654a4(0x189)?_0x3392d3[_0x5654a4(0x16a)][_0x5654a4(0x18d)]:{},_0x35c415=_0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)]&&typeof _0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)]===_0x5654a4(0x189)?_0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)]:{};_0x5792a5={..._0x4a42a4,..._0x35c415};const _0x84e25e=readRawConfig(_0x1d8151);_0x4edfc8=_0x84e25e[_0x5654a4(0x18e)];}else _0x5792a5=_0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)],_0x4edfc8=_0x3392d3['projectConfig'][_0x5654a4(0x18e)];if(!_0x5792a5||typeof _0x5792a5!==_0x5654a4(0x189)||Object[_0x5654a4(0x186)](_0x5792a5)['length']===0x0)return null;return Object[_0x5654a4(0x17c)](_0x5792a5)['map'](([_0x303ec2,_0x13f22d])=>({'name':_0x303ec2,'appcode':_0x13f22d?.['appcode']||'','isDefault':_0x303ec2===_0x4edfc8,'env':_0x13f22d?.['env'],'apiDir':_0x13f22d?.[_0x5654a4(0x178)],'cookie':_0x13f22d?.['cookie']||undefined}))[_0x5654a4(0x179)](_0x224c52=>_0x224c52['appcode']);}export function getTemplateBaseUrl(_0x209359){const _0x2104a7=a199_0x415e24,_0x509024=readRawConfig(_0x209359);if(_0x509024['template_base_url']&&typeof _0x509024[_0x2104a7(0x183)]==='string')return _0x509024[_0x2104a7(0x183)][_0x2104a7(0x169)](/\/$/,'');return _0x2104a7(0x176);}function buildConfig(_0x2e649b,_0x295730,_0xc19149){return{...resolveAppConfig({'raw':_0x2e649b,'flags':_0x295730,'layers':_0xc19149,'readEnv':env}),'raw':_0x2e649b};}export function resolveApiFilePath(_0x3c0129,_0x460e34){const _0x171d14=a199_0x415e24,_0x1e7cc2=resolve(process['cwd'](),_0x3c0129),_0x2c12b8=resolve(_0x1e7cc2,'api.ts');if(!_0x460e34)return _0x2c12b8;const _0x1fe3c8=readRawConfig(),_0x4ed8c1=_0x1fe3c8[_0x171d14(0x18d)]&&typeof _0x1fe3c8[_0x171d14(0x18d)]===_0x171d14(0x189)?_0x1fe3c8['apps']:{},_0x4154ac=Object[_0x171d14(0x17c)](_0x4ed8c1)[_0x171d14(0x177)](([,_0x289c7c])=>_0x289c7c?.[_0x171d14(0x187)]===_0x460e34);if(!_0x4154ac)return _0x2c12b8;const [_0x2a6fcc,_0x2f6dc5]=_0x4154ac,_0x47b49d=typeof _0x1fe3c8[_0x171d14(0x18e)]==='string'?_0x1fe3c8[_0x171d14(0x18e)]:undefined;if(_0x2f6dc5?.[_0x171d14(0x178)])return _0x2c12b8;if(_0x47b49d&&_0x2a6fcc!==_0x47b49d)return resolve(_0x1e7cc2,_0x2a6fcc+'-api.ts');return _0x2c12b8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b3b15,_0x4e8aab){const _0x55ab7c=a200_0x2bac,_0x3b63f3=_0x2b3b15();while(!![]){try{const _0x4ba968=parseInt(_0x55ab7c(0xe4))/0x1*(parseInt(_0x55ab7c(0xec))/0x2)+parseInt(_0x55ab7c(0xe9))/0x3+parseInt(_0x55ab7c(0xee))/0x4+parseInt(_0x55ab7c(0xf0))/0x5+-parseInt(_0x55ab7c(0xed))/0x6*(parseInt(_0x55ab7c(0xf5))/0x7)+-parseInt(_0x55ab7c(0xef))/0x8*(-parseInt(_0x55ab7c(0xea))/0x9)+parseInt(_0x55ab7c(0xf3))/0xa*(-parseInt(_0x55ab7c(0xf2))/0xb);if(_0x4ba968===_0x4e8aab)break;else _0x3b63f3['push'](_0x3b63f3['shift']());}catch(_0x90eb35){_0x3b63f3['push'](_0x3b63f3['shift']());}}}(a200_0x183f,0xd8c18));function a200_0x2bac(_0x2f7dad,_0x22042b){_0x2f7dad=_0x2f7dad-0xe4;const _0x183f82=a200_0x183f();let _0x2bacd2=_0x183f82[_0x2f7dad];return _0x2bacd2;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function a200_0x183f(){const _0x265fbe=['set','utf-8','2713866cXjoDv','2595636spDKcs','find','3101402fMGUUh','902238InCpxH','3745836XVvvkO','40JMIbaU','2191650lgdQYK','datasetCode','33qcDLVP','14113090FqpvVA','has','7FvAQEh','api.ts','alias','1AsYZPQ','exec','get'];a200_0x183f=function(){return _0x265fbe;};return a200_0x183f();}function parseApiFile(_0x2822c1){const _0x13c96a=a200_0x2bac,_0x213b75=[],_0x341b17=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0xcf2a30;while((_0xcf2a30=_0x341b17[_0x13c96a(0xe5)](_0x2822c1))!==null){_0x213b75['push']({'datasetCode':_0xcf2a30[0x1],'tableName':_0xcf2a30[0x2],'name':_0xcf2a30[0x3],'alias':_0xcf2a30[0x4]});}return _0x213b75;}export function loadAliasMap(_0x5c1bfe,_0x1cae1d,_0x350466){const _0x2da672=a200_0x2bac,_0x2be0e0=_0x350466??resolve(process['cwd'](),_0x5c1bfe,_0x2da672(0xf6));if(cache[_0x2da672(0xf4)](_0x2be0e0))return cache[_0x2da672(0xe6)](_0x2be0e0);if(!existsSync(_0x2be0e0))return cache['set'](_0x2be0e0,[]),[];try{const _0x582e10=readFileSync(_0x2be0e0,_0x2da672(0xe8)),_0x20163a=parseApiFile(_0x582e10);return cache['set'](_0x2be0e0,_0x20163a),_0x20163a;}catch{return cache[_0x2da672(0xe7)](_0x2be0e0,[]),[];}}export function resolveAlias(_0x11cb27,_0x54a3ee,_0x284392,_0x3e4b53){const _0x1f3c5b=a200_0x2bac;if(!_0x54a3ee)return undefined;const _0x15c5a7=loadAliasMap(_0x11cb27,_0x284392,_0x3e4b53),_0x2d0587=_0x15c5a7[_0x1f3c5b(0xeb)](_0x222296=>_0x222296[_0x1f3c5b(0xf7)]===_0x54a3ee);return _0x2d0587?.[_0x1f3c5b(0xf1)];}export function listAliases(_0x27d50c,_0x266876,_0x14cec1){return loadAliasMap(_0x27d50c,_0x266876,_0x14cec1);}
|