@lovrabet/rabetbase-cli 2.4.7-beta.2 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x4ff980=a207_0x1de0;(function(_0x28c124,_0x34456d){const _0x33192e=a207_0x1de0,_0xa1b8b0=_0x28c124();while(!![]){try{const _0x26c21c=-parseInt(_0x33192e(0x14e))/0x1*(parseInt(_0x33192e(0x14a))/0x2)+-parseInt(_0x33192e(0x141))/0x3*(-parseInt(_0x33192e(0x150))/0x4)+parseInt(_0x33192e(0x151))/0x5+parseInt(_0x33192e(0x148))/0x6*(parseInt(_0x33192e(0x152))/0x7)+-parseInt(_0x33192e(0x131))/0x8+-parseInt(_0x33192e(0x146))/0x9+parseInt(_0x33192e(0x136))/0xa;if(_0x26c21c===_0x34456d)break;else _0xa1b8b0['push'](_0xa1b8b0['shift']());}catch(_0x37d450){_0xa1b8b0['push'](_0xa1b8b0['shift']());}}}(a207_0x29cb,0xed014));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=[a207_0x4ff980(0x13e),a207_0x4ff980(0x130),a207_0x4ff980(0x139),a207_0x4ff980(0x147),a207_0x4ff980(0x138)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x4ff980(0x13d),a207_0x4ff980(0x143),a207_0x4ff980(0x139),a207_0x4ff980(0x147),'cookie',a207_0x4ff980(0x130),a207_0x4ff980(0x13b)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x65c3a2){const _0x2b239c=a207_0x4ff980;return[..._0x65c3a2][_0x2b239c(0x14c)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x15b487){const _0x267915=a207_0x4ff980;return TOP_LEVEL_CONFIG_KEYS[_0x267915(0x134)](_0x15b487);}function a207_0x29cb(){const _0x6bceed=['1262643HLBoxe','Auth\x20cookie','env','defaultFormat','filter','9393012exrNme','format','24vnxrSz','apps','547978ZVLGJg','Risk\x20level','join','length','1xNlIaH','app','16NEHieJ','1593405MPQJub','523922QxABNb','entries','zh-CN','inherit','pageSize','toLowerCase','accessKey','1517480CksUdX','defaultApp','en-US','has','string','1765250AYHpZb','Locale','riskLevel','locale','number','apiDir','API\x20directory\x20path','appcode','cookie','Access\x20key','map'];a207_0x29cb=function(){return _0x6bceed;};return a207_0x29cb();}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a207_0x4ff980(0x13b),'cookie':a207_0x4ff980(0x13e),'accessKey':'accessKey','defaultFormat':'format','pageSize':'pageSize','riskLevel':a207_0x4ff980(0x138),'locale':a207_0x4ff980(0x139)};export function getAppProfileFlagDefs(){const _0x187296=a207_0x4ff980;return[{'name':_0x187296(0x143),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x187296(0x13b),'type':_0x187296(0x135),'description':_0x187296(0x13c)},{'name':_0x187296(0x13e),'type':_0x187296(0x135),'description':_0x187296(0x142),'hidden':!![]},{'name':'accessKey','type':_0x187296(0x135),'description':_0x187296(0x13f),'hidden':!![]},{'name':_0x187296(0x144),'type':_0x187296(0x135),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x187296(0x13a),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x187296(0x135),'description':_0x187296(0x14b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x187296(0x139),'type':'string','description':_0x187296(0x137)}];}function a207_0x1de0(_0x5e710a,_0x4dd355){_0x5e710a=_0x5e710a-0x130;const _0x29cb59=a207_0x29cb();let _0x1de031=_0x29cb59[_0x5e710a];return _0x1de031;}export function collectAppProfileOverrides(_0x4741ef){const _0x108d97=a207_0x4ff980,_0x4b07cb={};for(const [_0x28336c,_0x23d7e9]of Object[_0x108d97(0x153)](APP_PROFILE_FLAG_KEY_MAP)){const _0x33b862=_0x4741ef(_0x28336c);if(!_0x33b862)continue;_0x4b07cb[_0x23d7e9]=_0x23d7e9===_0x108d97(0x156)?Number(_0x33b862):_0x33b862;}return _0x4b07cb;}export function buildAppProfileListFields(_0x3cc20e){const _0x3f5fc8=a207_0x4ff980;return{'env':_0x3cc20e['env']??null,'apiDir':_0x3cc20e[_0x3f5fc8(0x13b)]??null,'hasCookie':!!_0x3cc20e[_0x3f5fc8(0x13e)],'hasAccessKey':!!_0x3cc20e[_0x3f5fc8(0x130)],'format':_0x3cc20e[_0x3f5fc8(0x147)]??null,'pageSize':_0x3cc20e['pageSize']??null,'riskLevel':_0x3cc20e[_0x3f5fc8(0x138)]??null,'locale':_0x3cc20e[_0x3f5fc8(0x139)]??null};}export function buildAppDoctorFields(_0x35c0c0,_0x4b9b45){const _0x4a9cb6=a207_0x4ff980;return{'env':{'value':_0x35c0c0[_0x4a9cb6(0x143)]||_0x4b9b45['env'],'source':_0x35c0c0['env']?_0x4a9cb6(0x14f):_0x4a9cb6(0x155)},'apiDir':{'value':_0x35c0c0[_0x4a9cb6(0x13b)]||_0x4b9b45[_0x4a9cb6(0x13b)],'source':_0x35c0c0[_0x4a9cb6(0x13b)]?_0x4a9cb6(0x14f):'inherit'},'cookie':{'value':_0x35c0c0['cookie']||_0x4b9b45[_0x4a9cb6(0x13e)],'source':_0x35c0c0[_0x4a9cb6(0x13e)]?'app':_0x4a9cb6(0x155)},'accessKey':{'value':_0x35c0c0[_0x4a9cb6(0x130)]||_0x4b9b45[_0x4a9cb6(0x130)],'source':_0x35c0c0[_0x4a9cb6(0x130)]?_0x4a9cb6(0x14f):_0x4a9cb6(0x155)}};}export function buildCanonicalAppConfig(_0x1dbf92,_0x6e2e1){const _0x305740=a207_0x4ff980,_0x453441=_0x1dbf92[_0x305740(0x140)](_0x3166b0=>String(_0x3166b0||'')['trim']())[_0x305740(0x145)](Boolean);if(_0x453441[_0x305740(0x14d)]===0x0)return{};const _0x4a5413={};for(const _0x42e49f of _0x453441){_0x4a5413[_0x42e49f]=_0x6e2e1?{'appcode':_0x42e49f,'env':_0x6e2e1}:{'appcode':_0x42e49f};}return{'apps':_0x4a5413,'defaultApp':_0x453441[0x0]};}export function buildCanonicalProjectConfig(_0x14ad8b,_0x51e493){const _0x4c9a24=a207_0x4ff980,{appCodes:appCodes=[],env:_0x42c56a,metadata:_0x15898d}=_0x51e493,_0x2c0bbe={..._0x14ad8b,..._0x15898d||{}};delete _0x2c0bbe['appcode'],delete _0x2c0bbe[_0x4c9a24(0x14f)];if(_0x42c56a)_0x2c0bbe[_0x4c9a24(0x143)]=_0x42c56a;else!_0x2c0bbe['env']&&(_0x2c0bbe['env']=DEFAULT_CONFIG_VALUES[_0x4c9a24(0x143)]);const _0x3fab73=buildCanonicalAppConfig(appCodes,_0x2c0bbe[_0x4c9a24(0x143)]);return Object['keys'](_0x3fab73)['length']>0x0&&(_0x2c0bbe['apps']=_0x3fab73[_0x4c9a24(0x149)],_0x2c0bbe[_0x4c9a24(0x132)]=_0x3fab73[_0x4c9a24(0x132)]),_0x2c0bbe;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a207_0x4ff980(0x154),'en':'en-US','en-us':'en-US','en_us':a207_0x4ff980(0x133)};export function normalizeLocale(_0x45d889){const _0x3fd597=a207_0x4ff980;if(!_0x45d889)return null;return LOCALE_MAP[_0x45d889[_0x3fd597(0x157)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x3aad63=a208_0x2643;(function(_0x3d6dd4,_0x1674c9){const _0x21e8e0=a208_0x2643,_0x27b99c=_0x3d6dd4();while(!![]){try{const _0x522985=parseInt(_0x21e8e0(0x7c))/0x1+-parseInt(_0x21e8e0(0x83))/0x2+-parseInt(_0x21e8e0(0x7a))/0x3*(parseInt(_0x21e8e0(0x7f))/0x4)+parseInt(_0x21e8e0(0x82))/0x5*(-parseInt(_0x21e8e0(0x7e))/0x6)+-parseInt(_0x21e8e0(0x79))/0x7+-parseInt(_0x21e8e0(0x7d))/0x8+parseInt(_0x21e8e0(0x7b))/0x9*(parseInt(_0x21e8e0(0x80))/0xa);if(_0x522985===_0x1674c9)break;else _0x27b99c['push'](_0x27b99c['shift']());}catch(_0x448f1d){_0x27b99c['push'](_0x27b99c['shift']());}}}(a208_0xadce,0xe1f59));export const RABETBASE_CDN_BASE_URL=a208_0x3aad63(0x84);function a208_0x2643(_0x972313,_0xcd9ca7){_0x972313=_0x972313-0x79;const _0xadce50=a208_0xadce();let _0x26432d=_0xadce50[_0x972313];return _0x26432d;}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x3aad63(0x81);function a208_0xadce(){const _0x24e486=['5669601DgFImQ','30eRZJSM','42202341fDYAyi','1298416PMVIKN','8582040LNBGHU','191346wBCPFT','700012PKFpTf','10uElzbp','/config/index.json','205TkpJTa','243554lbBbpY','https://g.lovrabet.com/dist/rabetbase-cli'];a208_0xadce=function(){return _0x24e486;};return a208_0xadce();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a209_0x160e74=a209_0x3ae1;function a209_0x3c47(){const _0x1ee14a=['Page\x20size','Name','force','Output\x20path','query','key','format','4676856oKPztI','app','17180379TeTvDy','json\x20|\x20pretty\x20|\x20compress','DB\x20ID','Verbose\x20output','Dataset\x20code','menu-ids','Title','Page\x20number','function-node','SQL\x20code','Confirm\x20destructive\x20action','Keyword\x20filter','Show\x20help','Expected\x20affected\x20count','Operation\x20type','Override\x20appcode','expect-path','task-id','tags','schemas','Config\x20value','<expr>','parentId','sqlname','Read\x20value\x20from\x20environment\x20variable','Read\x20value\x20from\x20stdin','Apply\x20to\x20all','env','Enable\x20Backend\x20Function\x20save','Use\x20global\x20config\x20scope','target','operation','Asynchronous\x20task\x20ID','remote','value','confirm','fromEntries','type','non-interactive','parent-id','topk','Menu\x20sort\x20value','Menu\x20label','keyword','map','file','Reveal\x20sensitive\x20value','project','Environment','meowKey','rabetbase','17310yTwrMX','Schemas','stdin','description-file','code','skip-imports','@lovrabet/rabetbase-cli','SQL\x20string','pagesize','Tags','439683dtWwSp','params','Code\x20filter','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','File\x20path','clear','Config\x20key','expected-count','name','expectPath','page','datasetcode','string','expected-children-count','12rEZQQF','Use\x20project\x20config\x20scope','Expected\x20current\x20parent\x20menu\x20id','Alias\x20for\x20--non-interactive','enableBffSave','help','SQL\x20name','menuIds','verbose','all','global','db-id','appcode','reveal','Maximum\x20search\x20hits','Skip\x20import\x20generation','title','1232opvIoP','dbid','fromEnv','Record\x20ID','yes','production\x20|\x20daily','Use\x20remote','Preview\x20operation\x20without\x20executing','Expected\x20current\x20menu\x20path','skipImports','10pXdsPt','Description','sort','label','nonInteractive','description','sqlcode','988426aEzkXz','Select\x20app\x20profile\x20by\x20name','Clear','652480OAowxL','enable-bff-save','expectedChildrenCount','output','dry-run','Expected\x20current\x20child\x20count','expect-parent-id','dryRun','boolean','Skip\x20confirmation\x20for\x20high-risk\x20writes','sql-name','Rabetbase\x20CLI','269765mlUgQD','Comma-separated\x20menu\x20IDs','operation-type','sqlName'];a209_0x3c47=function(){return _0x1ee14a;};return a209_0x3c47();}(function(_0x5b3400,_0x173ba4){const _0x678153=a209_0x3ae1,_0x36f417=_0x5b3400();while(!![]){try{const _0x31fd86=-parseInt(_0x678153(0x22e))/0x1+parseInt(_0x678153(0x22b))/0x2+-parseInt(_0x678153(0x1fa))/0x3+-parseInt(_0x678153(0x209))/0x4*(-parseInt(_0x678153(0x23a))/0x5)+parseInt(_0x678153(0x1f0))/0x6*(-parseInt(_0x678153(0x21a))/0x7)+-parseInt(_0x678153(0x245))/0x8+parseInt(_0x678153(0x247))/0x9*(parseInt(_0x678153(0x224))/0xa);if(_0x31fd86===_0x173ba4)break;else _0x36f417['push'](_0x36f417['shift']());}catch(_0x25cfd8){_0x36f417['push'](_0x36f417['shift']());}}}(a209_0x3c47,0xa473b));export const CLI_BIN_NAME=a209_0x160e74(0x1ef);export const CLI_DISPLAY_NAME=a209_0x160e74(0x239);function a209_0x3ae1(_0xfd8f6d,_0x1aacdc){_0xfd8f6d=_0xfd8f6d-0x1cf;const _0x3c47d0=a209_0x3c47();let _0x3ae120=_0x3c47d0[_0xfd8f6d];return _0x3ae120;}export const NPM_PACKAGE_NAME=a209_0x160e74(0x1f6);export const GLOBAL_FLAGS=[{'name':a209_0x160e74(0x215),'meowKey':a209_0x160e74(0x215),'type':'string','description':a209_0x160e74(0x256),'hint':'<code>'},{'name':a209_0x160e74(0x246),'meowKey':a209_0x160e74(0x246),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x22c),'hint':'<name>'},{'name':a209_0x160e74(0x1d8),'meowKey':a209_0x160e74(0x1d8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1ed),'hint':a209_0x160e74(0x21f)},{'name':a209_0x160e74(0x244),'meowKey':a209_0x160e74(0x244),'type':a209_0x160e74(0x207),'description':'Output\x20format','hint':a209_0x160e74(0x248)},{'name':'jq','meowKey':'jq','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1fd),'hint':a209_0x160e74(0x1d2)},{'name':'dry-run','meowKey':a209_0x160e74(0x235),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x221)},{'name':a209_0x160e74(0x21e),'meowKey':a209_0x160e74(0x21e),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x237)},{'name':a209_0x160e74(0x1e3),'meowKey':a209_0x160e74(0x228),'type':a209_0x160e74(0x236),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a209_0x160e74(0x213),'meowKey':'global','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1da)},{'name':a209_0x160e74(0x1ec),'meowKey':a209_0x160e74(0x1ec),'type':'boolean','description':a209_0x160e74(0x20a)},{'name':'ci','meowKey':'ci','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x20c),'hidden':!![]},{'name':a209_0x160e74(0x20e),'meowKey':a209_0x160e74(0x20e),'type':'boolean','description':a209_0x160e74(0x253)},{'name':a209_0x160e74(0x203),'meowKey':a209_0x160e74(0x203),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23f),'hidden':!![]},{'name':a209_0x160e74(0x219),'meowKey':a209_0x160e74(0x219),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x24d),'hidden':!![]},{'name':a209_0x160e74(0x242),'meowKey':a209_0x160e74(0x242),'type':a209_0x160e74(0x207),'description':'Search\x20query','hidden':!![]},{'name':a209_0x160e74(0x1e5),'meowKey':a209_0x160e74(0x1e5),'type':'string','description':a209_0x160e74(0x217),'hidden':!![]},{'name':'clear','meowKey':a209_0x160e74(0x200),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x22d),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a209_0x160e74(0x236),'description':'Watch\x20mode','hidden':!![]},{'name':a209_0x160e74(0x231),'meowKey':'output','type':'string','description':a209_0x160e74(0x241),'hidden':!![]},{'name':a209_0x160e74(0x1fb),'meowKey':a209_0x160e74(0x1fb),'type':a209_0x160e74(0x207),'description':'JSON\x20params','hidden':!![]},{'name':a209_0x160e74(0x206),'meowKey':a209_0x160e74(0x206),'type':'string','description':a209_0x160e74(0x24b),'hidden':!![]},{'name':a209_0x160e74(0x212),'meowKey':'all','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d7),'hidden':!![]},{'name':a209_0x160e74(0x22f),'meowKey':a209_0x160e74(0x20d),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d9),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x21d),'hidden':!![]},{'name':a209_0x160e74(0x1e2),'meowKey':a209_0x160e74(0x1e2),'type':a209_0x160e74(0x207),'description':'Type\x20filter','hidden':!![]},{'name':a209_0x160e74(0x1ea),'meowKey':a209_0x160e74(0x1ea),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1ff),'hidden':!![]},{'name':a209_0x160e74(0x22a),'meowKey':a209_0x160e74(0x22a),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x250),'hidden':!![]},{'name':a209_0x160e74(0x238),'meowKey':a209_0x160e74(0x23d),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x20f),'hidden':!![]},{'name':a209_0x160e74(0x1d4),'meowKey':a209_0x160e74(0x1d4),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x20f),'hidden':!![]},{'name':a209_0x160e74(0x214),'meowKey':'dbId','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x249),'hidden':!![]},{'name':a209_0x160e74(0x21b),'meowKey':a209_0x160e74(0x21b),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x249),'hidden':!![]},{'name':'description','meowKey':a209_0x160e74(0x229),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x225),'hidden':!![]},{'name':a209_0x160e74(0x1f3),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':'page','meowKey':a209_0x160e74(0x205),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x24e),'hidden':!![]},{'name':'pagesize','meowKey':a209_0x160e74(0x1f8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23e),'hidden':!![]},{'name':'keyword','meowKey':a209_0x160e74(0x1e8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x252),'hidden':!![]},{'name':a209_0x160e74(0x1f4),'meowKey':'code','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1fc),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1f7),'hidden':!![]},{'name':a209_0x160e74(0x1d0),'meowKey':a209_0x160e74(0x1d0),'type':'string','description':a209_0x160e74(0x1f1),'hidden':!![]},{'name':a209_0x160e74(0x1dc),'meowKey':a209_0x160e74(0x1dc),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x255),'hidden':!![]},{'name':'target','meowKey':a209_0x160e74(0x1db),'type':a209_0x160e74(0x207),'description':'Target\x20path','hidden':!![]},{'name':a209_0x160e74(0x1f5),'meowKey':a209_0x160e74(0x223),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x218),'hidden':!![]},{'name':a209_0x160e74(0x243),'meowKey':a209_0x160e74(0x243),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x201),'hidden':!![]},{'name':a209_0x160e74(0x1df),'meowKey':a209_0x160e74(0x1df),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1d1),'hidden':!![]},{'name':a209_0x160e74(0x1cf),'meowKey':'tags','type':'string','description':a209_0x160e74(0x1f9),'hidden':!![]},{'name':a209_0x160e74(0x1f2),'meowKey':'stdin','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d6),'hidden':!![]},{'name':'from-env','meowKey':a209_0x160e74(0x21c),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1d5),'hidden':!![]},{'name':a209_0x160e74(0x216),'meowKey':a209_0x160e74(0x216),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1eb),'hidden':!![]},{'name':'force','meowKey':a209_0x160e74(0x240),'type':a209_0x160e74(0x236),'description':'Force\x20overwrite','hidden':!![]},{'name':a209_0x160e74(0x1e0),'meowKey':'confirm','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x251),'hidden':!![]},{'name':'remote','meowKey':a209_0x160e74(0x1de),'type':'boolean','description':a209_0x160e74(0x220),'hidden':!![]},{'name':a209_0x160e74(0x211),'meowKey':a209_0x160e74(0x211),'type':'boolean','description':a209_0x160e74(0x24a),'hidden':!![]},{'name':a209_0x160e74(0x202),'meowKey':'expectedCount','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x254),'hidden':!![]},{'name':a209_0x160e74(0x227),'meowKey':'label','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1e7),'hidden':!![]},{'name':a209_0x160e74(0x1e4),'meowKey':a209_0x160e74(0x1d3),'type':a209_0x160e74(0x207),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a209_0x160e74(0x226),'meowKey':a209_0x160e74(0x226),'type':'string','description':a209_0x160e74(0x1e6),'hidden':!![]},{'name':a209_0x160e74(0x234),'meowKey':'expectParentId','type':'string','description':a209_0x160e74(0x20b),'hidden':!![]},{'name':a209_0x160e74(0x257),'meowKey':a209_0x160e74(0x204),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x222),'hidden':!![]},{'name':a209_0x160e74(0x208),'meowKey':a209_0x160e74(0x230),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x233),'hidden':!![]},{'name':a209_0x160e74(0x24c),'meowKey':a209_0x160e74(0x210),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23b),'hidden':!![]},{'name':a209_0x160e74(0x258),'meowKey':'taskId','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1dd),'hidden':!![]},{'name':a209_0x160e74(0x23c),'meowKey':'operationType','type':a209_0x160e74(0x207),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x160e74(0x24f),'meowKey':a209_0x160e74(0x1fe),'type':a209_0x160e74(0x207),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x160e74(0x215),'app',a209_0x160e74(0x1d8),a209_0x160e74(0x244),'jq',a209_0x160e74(0x232),a209_0x160e74(0x21e),a209_0x160e74(0x1e3),'ci']);export function buildMeowFlags(){const _0x40c80b=a209_0x160e74;return Object[_0x40c80b(0x1e1)](GLOBAL_FLAGS[_0x40c80b(0x1e9)](_0x4c6ed5=>[_0x4c6ed5[_0x40c80b(0x1ee)],{'type':_0x4c6ed5['type']}]));}
|
|
1
|
+
const a209_0x11de2d=a209_0x1b88;(function(_0x450b1c,_0x4000d4){const _0x5bdcfb=a209_0x1b88,_0x2418cb=_0x450b1c();while(!![]){try{const _0x2b95fb=parseInt(_0x5bdcfb(0xe5))/0x1*(-parseInt(_0x5bdcfb(0x102))/0x2)+parseInt(_0x5bdcfb(0xc8))/0x3*(parseInt(_0x5bdcfb(0x111))/0x4)+parseInt(_0x5bdcfb(0xdd))/0x5+parseInt(_0x5bdcfb(0xc6))/0x6+parseInt(_0x5bdcfb(0xd7))/0x7+parseInt(_0x5bdcfb(0x10c))/0x8+-parseInt(_0x5bdcfb(0xac))/0x9*(parseInt(_0x5bdcfb(0x110))/0xa);if(_0x2b95fb===_0x4000d4)break;else _0x2418cb['push'](_0x2418cb['shift']());}catch(_0x1c8f2e){_0x2418cb['push'](_0x2418cb['shift']());}}}(a209_0x454f,0xe3806));export const CLI_BIN_NAME=a209_0x11de2d(0xf4);function a209_0x1b88(_0x3d84c0,_0x1f5d49){_0x3d84c0=_0x3d84c0-0x93;const _0x454f25=a209_0x454f();let _0x1b88b8=_0x454f25[_0x3d84c0];return _0x1b88b8;}export const CLI_DISPLAY_NAME=a209_0x11de2d(0xdf);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a209_0x454f(){const _0x3e071a=['verbose','Enable\x20Backend\x20Function\x20save','code','Alias\x20for\x20--non-interactive','parent-id','description-file','nonInteractive','Config\x20key','operation','target','tags','6874587ZqDqSf','clear','enableBffSave','Use\x20remote','Output\x20path','output','schemas','label','parentId','Override\x20appcode','menu-ids','non-interactive','sqlName','params','Function\x20node','appcode','Expected\x20current\x20child\x20count','skipImports','sqlname','db-id','app','fromEnv','value','Description','string','expected-count','8672892EVidmX','Parent\x20menu\x20id','716601gLCtQj','expected-children-count','Select\x20app\x20profile\x20by\x20name','Target\x20path','expectPath','Skip\x20confirmation\x20for\x20high-risk\x20writes','Keyword\x20filter','Description\x20file','project','sql-name','Menu\x20sort\x20value','functionNode','Environment','DB\x20ID','Read\x20value\x20from\x20environment\x20variable','9720270lQFtIs','title','key','dry-run','all','sqlcode','1637890zeUwRN','yes','Rabetbase\x20CLI','expectedChildrenCount','Page\x20size','remote','Apply\x20to\x20all','Search\x20query','3SprtvI','stdin','dryRun','Show\x20help','Tags','Expected\x20affected\x20count','from-env','page','topk','Config\x20value','<code>','SQL\x20name','Code\x20filter','type','description','rabetbase','sql','function-node','reveal','Menu\x20label','Preview\x20operation\x20without\x20executing','format','descriptionFile','Comma-separated\x20menu\x20IDs','skip-imports','query','Skip\x20import\x20generation','Schemas','pagesize','220730vmUPPj','datasetcode','boolean','sort','Watch\x20mode','global','production\x20|\x20daily','Verbose\x20output','name','help','13452952jzFLUr','Operation\x20type','<expr>','dbId','50nDICDM','4BkEoCl','env','enable-bff-save','expect-path','Read\x20value\x20from\x20stdin','Reveal\x20sensitive\x20value','watch','Maximum\x20search\x20hits','operationType','file','json\x20|\x20pretty\x20|\x20compress','SQL\x20string','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Expected\x20current\x20menu\x20path','<name>','Force\x20overwrite','task-id','taskId','confirm','Asynchronous\x20task\x20ID'];a209_0x454f=function(){return _0x3e071a;};return a209_0x454f();}export const GLOBAL_FLAGS=[{'name':a209_0x11de2d(0xbb),'meowKey':a209_0x11de2d(0xbb),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xb5),'hint':a209_0x11de2d(0xef)},{'name':'app','meowKey':a209_0x11de2d(0xc0),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xca),'hint':a209_0x11de2d(0x9b)},{'name':'env','meowKey':a209_0x11de2d(0x112),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd4),'hint':a209_0x11de2d(0x108)},{'name':a209_0x11de2d(0xfa),'meowKey':a209_0x11de2d(0xfa),'type':a209_0x11de2d(0xc4),'description':'Output\x20format','hint':a209_0x11de2d(0x97)},{'name':'jq','meowKey':'jq','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x99),'hint':a209_0x11de2d(0x10e)},{'name':a209_0x11de2d(0xda),'meowKey':a209_0x11de2d(0xe7),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xf9)},{'name':a209_0x11de2d(0xde),'meowKey':a209_0x11de2d(0xde),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xcd)},{'name':a209_0x11de2d(0xb7),'meowKey':a209_0x11de2d(0xa7),'type':a209_0x11de2d(0x104),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a209_0x11de2d(0x107),'meowKey':a209_0x11de2d(0x107),'type':a209_0x11de2d(0x104),'description':'Use\x20global\x20config\x20scope'},{'name':a209_0x11de2d(0xd0),'meowKey':a209_0x11de2d(0xd0),'type':a209_0x11de2d(0x104),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xa4),'hidden':!![]},{'name':a209_0x11de2d(0x10b),'meowKey':'help','type':'boolean','description':a209_0x11de2d(0xe8)},{'name':a209_0x11de2d(0x10a),'meowKey':a209_0x11de2d(0x10a),'type':a209_0x11de2d(0xc4),'description':'Name','hidden':!![]},{'name':a209_0x11de2d(0xd8),'meowKey':a209_0x11de2d(0xd8),'type':a209_0x11de2d(0xc4),'description':'Title','hidden':!![]},{'name':a209_0x11de2d(0xfe),'meowKey':a209_0x11de2d(0xfe),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xe4),'hidden':!![]},{'name':'topk','meowKey':a209_0x11de2d(0xed),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x94),'hidden':!![]},{'name':a209_0x11de2d(0xad),'meowKey':a209_0x11de2d(0xad),'type':a209_0x11de2d(0x104),'description':'Clear','hidden':!![]},{'name':a209_0x11de2d(0x93),'meowKey':a209_0x11de2d(0x93),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0x106),'hidden':!![]},{'name':a209_0x11de2d(0xb1),'meowKey':a209_0x11de2d(0xb1),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xb0),'hidden':!![]},{'name':a209_0x11de2d(0xb9),'meowKey':a209_0x11de2d(0xb9),'type':a209_0x11de2d(0xc4),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':a209_0x11de2d(0x103),'type':a209_0x11de2d(0xc4),'description':'Dataset\x20code','hidden':!![]},{'name':a209_0x11de2d(0xdb),'meowKey':'all','type':'boolean','description':a209_0x11de2d(0xe3),'hidden':!![]},{'name':a209_0x11de2d(0x113),'meowKey':a209_0x11de2d(0xae),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xa2),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x11de2d(0xc4),'description':'Record\x20ID','hidden':!![]},{'name':a209_0x11de2d(0xf2),'meowKey':a209_0x11de2d(0xf2),'type':a209_0x11de2d(0xc4),'description':'Type\x20filter','hidden':!![]},{'name':a209_0x11de2d(0x96),'meowKey':'file','type':a209_0x11de2d(0xc4),'description':'File\x20path','hidden':!![]},{'name':a209_0x11de2d(0xdc),'meowKey':a209_0x11de2d(0xdc),'type':'string','description':'SQL\x20code','hidden':!![]},{'name':a209_0x11de2d(0xd1),'meowKey':a209_0x11de2d(0xb8),'type':a209_0x11de2d(0xc4),'description':'SQL\x20name','hidden':!![]},{'name':a209_0x11de2d(0xbe),'meowKey':a209_0x11de2d(0xbe),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xf0),'hidden':!![]},{'name':a209_0x11de2d(0xbf),'meowKey':a209_0x11de2d(0x10f),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd5),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd5),'hidden':!![]},{'name':a209_0x11de2d(0xf3),'meowKey':'description','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xc3),'hidden':!![]},{'name':a209_0x11de2d(0xa6),'meowKey':a209_0x11de2d(0xfb),'type':'string','description':a209_0x11de2d(0xcf),'hidden':!![]},{'name':a209_0x11de2d(0xec),'meowKey':a209_0x11de2d(0xec),'type':a209_0x11de2d(0xc4),'description':'Page\x20number','hidden':!![]},{'name':a209_0x11de2d(0x101),'meowKey':a209_0x11de2d(0x101),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xe1),'hidden':!![]},{'name':'keyword','meowKey':'keyword','type':'string','description':a209_0x11de2d(0xce),'hidden':!![]},{'name':a209_0x11de2d(0xa3),'meowKey':a209_0x11de2d(0xa3),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xf1),'hidden':!![]},{'name':a209_0x11de2d(0xf5),'meowKey':a209_0x11de2d(0xf5),'type':'string','description':a209_0x11de2d(0x98),'hidden':!![]},{'name':a209_0x11de2d(0xb2),'meowKey':a209_0x11de2d(0xb2),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x100),'hidden':!![]},{'name':a209_0x11de2d(0xa9),'meowKey':a209_0x11de2d(0xa9),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x10d),'hidden':!![]},{'name':'target','meowKey':a209_0x11de2d(0xaa),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xcb),'hidden':!![]},{'name':a209_0x11de2d(0xfd),'meowKey':a209_0x11de2d(0xbd),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xff),'hidden':!![]},{'name':'key','meowKey':a209_0x11de2d(0xd9),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xa8),'hidden':!![]},{'name':a209_0x11de2d(0xc2),'meowKey':a209_0x11de2d(0xc2),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xee),'hidden':!![]},{'name':a209_0x11de2d(0xab),'meowKey':a209_0x11de2d(0xab),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xe9),'hidden':!![]},{'name':'stdin','meowKey':a209_0x11de2d(0xe6),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0x115),'hidden':!![]},{'name':a209_0x11de2d(0xeb),'meowKey':a209_0x11de2d(0xc1),'type':'string','description':a209_0x11de2d(0xd6),'hidden':!![]},{'name':'reveal','meowKey':a209_0x11de2d(0xf7),'type':'boolean','description':a209_0x11de2d(0x116),'hidden':!![]},{'name':'force','meowKey':'force','type':'boolean','description':a209_0x11de2d(0x9c),'hidden':!![]},{'name':a209_0x11de2d(0x9f),'meowKey':'confirm','type':a209_0x11de2d(0x104),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a209_0x11de2d(0xe2),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xaf),'hidden':!![]},{'name':a209_0x11de2d(0xa1),'meowKey':a209_0x11de2d(0xa1),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0x109),'hidden':!![]},{'name':a209_0x11de2d(0xc5),'meowKey':'expectedCount','type':'string','description':a209_0x11de2d(0xea),'hidden':!![]},{'name':a209_0x11de2d(0xb3),'meowKey':a209_0x11de2d(0xb3),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xf8),'hidden':!![]},{'name':a209_0x11de2d(0xa5),'meowKey':a209_0x11de2d(0xb4),'type':'string','description':a209_0x11de2d(0xc7),'hidden':!![]},{'name':a209_0x11de2d(0x105),'meowKey':a209_0x11de2d(0x105),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd2),'hidden':!![]},{'name':'expect-parent-id','meowKey':'expectParentId','type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a209_0x11de2d(0x114),'meowKey':a209_0x11de2d(0xcc),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x9a),'hidden':!![]},{'name':a209_0x11de2d(0xc9),'meowKey':a209_0x11de2d(0xe0),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xbc),'hidden':!![]},{'name':a209_0x11de2d(0xb6),'meowKey':'menuIds','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xfc),'hidden':!![]},{'name':a209_0x11de2d(0x9d),'meowKey':a209_0x11de2d(0x9e),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xa0),'hidden':!![]},{'name':'operation-type','meowKey':a209_0x11de2d(0x95),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x10d),'hidden':!![]},{'name':a209_0x11de2d(0xf6),'meowKey':a209_0x11de2d(0xd3),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xba),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a209_0x11de2d(0xc0),'env',a209_0x11de2d(0xfa),'jq',a209_0x11de2d(0xda),a209_0x11de2d(0xde),'non-interactive','ci']);export function buildMeowFlags(){const _0x1dde0e=a209_0x11de2d;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x579c48=>[_0x579c48['meowKey'],{'type':_0x579c48[_0x1dde0e(0xf2)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a210_0x898052=a210_0x5783;(function(_0x34c028,_0x1c49e6){const _0x3599b1=a210_0x5783,_0x13927a=_0x34c028();while(!![]){try{const _0x1fcce8=-parseInt(_0x3599b1(0x16e))/0x1*(-parseInt(_0x3599b1(0x173))/0x2)+parseInt(_0x3599b1(0x175))/0x3+-parseInt(_0x3599b1(0x174))/0x4*(parseInt(_0x3599b1(0x179))/0x5)+-parseInt(_0x3599b1(0x172))/0x6*(parseInt(_0x3599b1(0x171))/0x7)+-parseInt(_0x3599b1(0x170))/0x8*(parseInt(_0x3599b1(0x17a))/0x9)+parseInt(_0x3599b1(0x178))/0xa+parseInt(_0x3599b1(0x176))/0xb*(parseInt(_0x3599b1(0x17b))/0xc);if(_0x1fcce8===_0x1c49e6)break;else _0x13927a['push'](_0x13927a['shift']());}catch(_0x31eb27){_0x13927a['push'](_0x13927a['shift']());}}}(a210_0x3a5b,0xbbc5e));import{DEFAULT_API_DIR}from'../constant/paths.js';function a210_0x5783(_0xa7657f,_0x2e9b15){_0xa7657f=_0xa7657f-0x16e;const _0x3a5b56=a210_0x3a5b();let _0x57831e=_0x3a5b56[_0xa7657f];return _0x57831e;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a210_0x898052(0x177),'locale':a210_0x898052(0x16f),'riskLevel':'write','apiDir':DEFAULT_API_DIR};function a210_0x3a5b(){const _0xc7a3a2=['en-US','4331776KltBht','16079vdyCKS','3204FqFIMo','4LsVveB','116XhaHMY','68610bfrBhm','33rfcZZc','compress','10606180XjyNRL','59105wTKWkW','9JYCzcd','6960372UkNiKO','28208CnBAin'];a210_0x3a5b=function(){return _0xc7a3a2;};return a210_0x3a5b();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a211_0x4d9ff6=a211_0x48f6;function a211_0x48f6(_0x2f75f4,_0x30df84){_0x2f75f4=_0x2f75f4-0x70;const _0x430952=a211_0x4309();let _0x48f6a6=_0x430952[_0x2f75f4];return _0x48f6a6;}(function(_0x420b34,_0x347b22){const _0x1dcd6a=a211_0x48f6,_0x1ae1b5=_0x420b34();while(!![]){try{const _0x8a2a44=-parseInt(_0x1dcd6a(0x85))/0x1+-parseInt(_0x1dcd6a(0x74))/0x2*(-parseInt(_0x1dcd6a(0x78))/0x3)+parseInt(_0x1dcd6a(0x83))/0x4*(-parseInt(_0x1dcd6a(0x71))/0x5)+parseInt(_0x1dcd6a(0x73))/0x6+parseInt(_0x1dcd6a(0x7a))/0x7*(-parseInt(_0x1dcd6a(0x84))/0x8)+-parseInt(_0x1dcd6a(0x7b))/0x9*(parseInt(_0x1dcd6a(0x70))/0xa)+parseInt(_0x1dcd6a(0x77))/0xb;if(_0x8a2a44===_0x347b22)break;else _0x1ae1b5['push'](_0x1ae1b5['shift']());}catch(_0x36ae91){_0x1ae1b5['push'](_0x1ae1b5['shift']());}}}(a211_0x4309,0x6f4cb));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x23d002){const _0x4ef75a=a211_0x48f6;customApiDomain=_0x23d002?.[_0x4ef75a(0x72)],customUserDomain=_0x23d002?.[_0x4ef75a(0x80)],customRuntimeDomain=_0x23d002?.[_0x4ef75a(0x82)];}function a211_0x4309(){const _0x39ac15=['apiDomain','2524500cVnwEf','750BQlxXr','https://daily.lovrabet.com','https://app.lovrabet.com','24826637AsKkOf','1047yMdPFr','https://daily-runtime.lovrabet.com','4233271vOTmjS','1241829ayHVvJ','https://user.lovrabet.com','/app/','/web-app/app/','https://daily-api.lovrabet.com','userDomain','https://api.lovrabet.com','runtimeDomain','112660VSjkVf','8axBAPm','548237FMxrKv','https://runtime.lovrabet.com','40gfNmpG','115eHpOHV'];a211_0x4309=function(){return _0x39ac15;};return a211_0x4309();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a211_0x4d9ff6(0x7c):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a211_0x4d9ff6(0x81):a211_0x4d9ff6(0x7f));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a211_0x4d9ff6(0x86):a211_0x4d9ff6(0x79));export const getAppDomain=()=>isProduction(getEnv())?a211_0x4d9ff6(0x76):a211_0x4d9ff6(0x75);export const getAppBaseUrl=_0x17b553=>{const _0x4ad2bc=a211_0x4d9ff6,_0x5059a9=encodeURIComponent(_0x17b553['trim']());return isProduction(getEnv())?getAppDomain()+_0x4ad2bc(0x7d)+_0x5059a9:getAppDomain()+_0x4ad2bc(0x7e)+_0x5059a9;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x254c83=a212_0x34c2;(function(_0x463c7a,_0x385ea2){const _0x260e6b=a212_0x34c2,_0x23f5d7=_0x463c7a();while(!![]){try{const _0x2c00ec=-parseInt(_0x260e6b(0xe1))/0x1+-parseInt(_0x260e6b(0xe0))/0x2+-parseInt(_0x260e6b(0xe2))/0x3+parseInt(_0x260e6b(0xe8))/0x4+parseInt(_0x260e6b(0xe3))/0x5*(-parseInt(_0x260e6b(0xdf))/0x6)+parseInt(_0x260e6b(0xe4))/0x7+-parseInt(_0x260e6b(0xdc))/0x8*(-parseInt(_0x260e6b(0xde))/0x9);if(_0x2c00ec===_0x385ea2)break;else _0x23f5d7['push'](_0x23f5d7['shift']());}catch(_0xcb8ece){_0x23f5d7['push'](_0x23f5d7['shift']());}}}(a212_0x5f5c,0xb84c6));function a212_0x5f5c(){const _0x1feb5f=['dev','2978412IrSpXi','1304ZIVxoO','daily','185715mUYnYC','18xRBHdL','2425204HSzsPf','756792naKAvi','2841861khrNBX','2212845WmnCRp','6238162UzFNAZ','production','online'];a212_0x5f5c=function(){return _0x1feb5f;};return a212_0x5f5c();}export const RABETBASE_ENV_VALUES=[a212_0x254c83(0xe5),a212_0x254c83(0xdd)];export function normalizeEnv(_0x339d9f){const _0x274f26=a212_0x254c83;return _0x339d9f===_0x274f26(0xe6)?_0x274f26(0xe5):_0x339d9f;}export function isProduction(_0x3aef1d){return normalizeEnv(_0x3aef1d)==='production';}export function isDaily(_0x1f6370){const _0x353288=a212_0x254c83;return normalizeEnv(_0x1f6370)===_0x353288(0xdd);}export function isDev(_0x4650cf){const _0x27ed65=a212_0x254c83,_0x519f17=normalizeEnv(_0x4650cf);return _0x519f17==='development'||_0x519f17===_0x27ed65(0xe7);}function a212_0x34c2(_0x29a8c3,_0x32189d){_0x29a8c3=_0x29a8c3-0xdc;const _0x5f5ca6=a212_0x5f5c();let _0x34c2c1=_0x5f5ca6[_0x29a8c3];return _0x34c2c1;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x254c83(0xe5));export function getEnv(){return env;}export function initEnv(_0x5b4f48){env=normalizeEnv(_0x5b4f48);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a213_0x9d3e(_0x2ec141,_0xb6855c){_0x2ec141=_0x2ec141-0x1e6;const _0x31c653=a213_0x31c6();let _0x9d3ed6=_0x31c653[_0x2ec141];return _0x9d3ed6;}const a213_0x26505c=a213_0x9d3e;(function(_0x4367f5,_0x192e92){const _0x1009da=a213_0x9d3e,_0x40dba9=_0x4367f5();while(!![]){try{const _0x3c1bfa=parseInt(_0x1009da(0x1e6))/0x1*(-parseInt(_0x1009da(0x1ed))/0x2)+parseInt(_0x1009da(0x1e8))/0x3+-parseInt(_0x1009da(0x1ec))/0x4+parseInt(_0x1009da(0x1ea))/0x5+parseInt(_0x1009da(0x1e7))/0x6*(-parseInt(_0x1009da(0x1eb))/0x7)+parseInt(_0x1009da(0x1e9))/0x8+parseInt(_0x1009da(0x1ee))/0x9*(parseInt(_0x1009da(0x1f0))/0xa);if(_0x3c1bfa===_0x192e92)break;else _0x40dba9['push'](_0x40dba9['shift']());}catch(_0x586603){_0x40dba9['push'](_0x40dba9['shift']());}}}(a213_0x31c6,0x2b207));function a213_0x31c6(){const _0x1260f3=['151236YkqsbK','2809432HanGzb','1024235JNSINc','61929kqAnSL','1092096BCSgpD','45572UgAEwq','9RelsyB','pretty','2860950hmZSPu','14qumCMY','84TwDraz'];a213_0x31c6=function(){return _0x1260f3;};return a213_0x31c6();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a213_0x26505c(0x1ef),'compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a214_0x3f8cb5=a214_0x1ac2;(function(_0x8f6047,_0x53de94){const _0x104086=a214_0x1ac2,_0x4ce383=_0x8f6047();while(!![]){try{const _0x49521a=-parseInt(_0x104086(0x6e))/0x1+-parseInt(_0x104086(0x6b))/0x2+parseInt(_0x104086(0x65))/0x3*(-parseInt(_0x104086(0x6d))/0x4)+parseInt(_0x104086(0x64))/0x5+parseInt(_0x104086(0x67))/0x6*(parseInt(_0x104086(0x69))/0x7)+-parseInt(_0x104086(0x6a))/0x8*(-parseInt(_0x104086(0x66))/0x9)+parseInt(_0x104086(0x68))/0xa*(parseInt(_0x104086(0x6c))/0xb);if(_0x49521a===_0x53de94)break;else _0x4ce383['push'](_0x4ce383['shift']());}catch(_0x2ec1a1){_0x4ce383['push'](_0x4ce383['shift']());}}}(a214_0x112f,0xe2aad));function a214_0x1ac2(_0x1ff61a,_0x486bb8){_0x1ff61a=_0x1ff61a-0x64;const _0x112fc3=a214_0x112f();let _0x1ac2f6=_0x112fc3[_0x1ff61a];return _0x1ac2f6;}function a214_0x112f(){const _0x28f7df=['1044044WygSPM','79849jGQoFr','./src/api','7677735YGDets','18WtCaXU','3411qjETwo','204IrGopn','24730xlQmpt','193067FTHWjC','4848kmTOEn','3576028duBkRR','7381NymQne'];a214_0x112f=function(){return _0x28f7df;};return a214_0x112f();}export const DEFAULT_API_DIR=a214_0x3f8cb5(0x6f);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a215_0xcbdc6b=a215_0x3411;(function(_0x1372eb,_0xa76312){const _0x9b92d2=a215_0x3411,_0x4f00f8=_0x1372eb();while(!![]){try{const _0x15d214=-parseInt(_0x9b92d2(0x144))/0x1*(parseInt(_0x9b92d2(0x142))/0x2)+-parseInt(_0x9b92d2(0x140))/0x3+-parseInt(_0x9b92d2(0x146))/0x4+parseInt(_0x9b92d2(0x143))/0x5*(-parseInt(_0x9b92d2(0x141))/0x6)+-parseInt(_0x9b92d2(0x13f))/0x7+parseInt(_0x9b92d2(0x145))/0x8+parseInt(_0x9b92d2(0x13e))/0x9;if(_0x15d214===_0xa76312)break;else _0x4f00f8['push'](_0x4f00f8['shift']());}catch(_0x59fdea){_0x4f00f8['push'](_0x4f00f8['shift']());}}}(a215_0x14a1,0xddc1b));function a215_0x3411(_0x4c40e8,_0x123927){_0x4c40e8=_0x4c40e8-0x13d;const _0x14a1cf=a215_0x14a1();let _0x341137=_0x14a1cf[_0x4c40e8];return _0x341137;}export const RISK_LEVEL_VALUES=['read',a215_0xcbdc6b(0x13d),'high-risk-write'];function a215_0x14a1(){const _0x165d5a=['41400hxEKHx','81992uPKnjx','write','43518807abuXbd','5517785OAmFux','4326654FDZBAs','2175942AyieQu','527462QzGfbh','5TwiXkN','5ueQNCc'];a215_0x14a1=function(){return _0x165d5a;};return a215_0x14a1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b5927,_0x1d1fc5){const _0x2ef720=a216_0x1f64,_0x2cf7b0=_0x5b5927();while(!![]){try{const _0x2fa636=parseInt(_0x2ef720(0x187))/0x1+-parseInt(_0x2ef720(0x17d))/0x2*(-parseInt(_0x2ef720(0x18b))/0x3)+parseInt(_0x2ef720(0x18d))/0x4+parseInt(_0x2ef720(0x181))/0x5+parseInt(_0x2ef720(0x16e))/0x6+-parseInt(_0x2ef720(0x195))/0x7+-parseInt(_0x2ef720(0x16f))/0x8*(parseInt(_0x2ef720(0x17b))/0x9);if(_0x2fa636===_0x1d1fc5)break;else _0x2cf7b0['push'](_0x2cf7b0['shift']());}catch(_0x1cca81){_0x2cf7b0['push'](_0x2cf7b0['shift']());}}}(a216_0x1e52,0x25c4f));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x2b2b56){const _0x5d37d0=a216_0x1f64;return typeof _0x2b2b56==='string'&&_0x2b2b56[_0x5d37d0(0x196)]()?_0x2b2b56[_0x5d37d0(0x196)]():undefined;}function appProfiles(_0x2ee853){const _0x3ab563=a216_0x1f64;return _0x2ee853[_0x3ab563(0x17c)]&&typeof _0x2ee853[_0x3ab563(0x17c)]===_0x3ab563(0x194)?_0x2ee853[_0x3ab563(0x17c)]:{};}function resolveDefaultAppName(_0x178b89){const _0x3c5937=a216_0x1f64,_0x44295a=stringConfigValue(_0x178b89[_0x3c5937(0x191)]);if(_0x44295a)return _0x44295a;return Object[_0x3c5937(0x190)](appProfiles(_0x178b89))[0x0];}function resolveTopLevelAppCode(_0xbcd8be){const _0x2d72ac=a216_0x1f64;return stringConfigValue(_0xbcd8be[_0x2d72ac(0x18f)])||stringConfigValue(_0xbcd8be[_0x2d72ac(0x19a)]);}function normalizeRiskCeiling(_0x33581b){const _0x1fdbc7=a216_0x1f64;if(_0x33581b===undefined||_0x33581b===null)return undefined;if(_0x33581b===_0x1fdbc7(0x188)||_0x33581b===_0x1fdbc7(0x189)||_0x33581b==='high-risk-write')return _0x33581b;return _0x1fdbc7(0x188);}function resolveRiskCeiling(..._0x1245d8){const _0x4262ef=a216_0x1f64;let _0x38ccc2;for(const _0x25430c of _0x1245d8){const _0x3a00b=normalizeRiskCeiling(_0x25430c);_0x3a00b&&(!_0x38ccc2||riskLevelOrder(_0x3a00b)<riskLevelOrder(_0x38ccc2))&&(_0x38ccc2=_0x3a00b);}return _0x38ccc2??DEFAULT_CONFIG_VALUES[_0x4262ef(0x171)];}function a216_0x1f64(_0x511fc3,_0x1034d6){_0x511fc3=_0x511fc3-0x16e;const _0x1e52a3=a216_0x1e52();let _0x1f647f=_0x1e52a3[_0x511fc3];return _0x1f647f;}function a216_0x1e52(){const _0xce71af=['1196980dGtrZx','maxRisk','appcode','keys','defaultApp','locale','globalConfig','object','1749468eojrur','trim','VERBOSE','apiDir','projectConfig','app','777720iwoMNM','32hKhLGS','length','riskLevel','ACCESS_KEY','production','prototype','hasOwnProperty','FORMAT','COOKIE','accessKey','string','PAGE_SIZE','1074474PIvWrM','apps','349562mVFdNi','env','APP','call','1028240HIbHdI','cookie','format','daily','entries','inherit','72877YlqTUD','read','write','MAX_RISK','3apzkvg','pageSize'];a216_0x1e52=function(){return _0xce71af;};return a216_0x1e52();}function configuredRiskCeilings(_0x280cd5){const _0x924dab=a216_0x1f64;return[...Object[_0x924dab(0x174)][_0x924dab(0x175)][_0x924dab(0x180)](_0x280cd5,_0x924dab(0x18e))?[_0x280cd5['maxRisk']]:[],...Object[_0x924dab(0x174)][_0x924dab(0x175)]['call'](_0x280cd5,_0x924dab(0x171))?[_0x280cd5[_0x924dab(0x171)]]:[]];}export function resolveAppConfig({raw:_0xba9551,flags:_0x453051,layers:_0x274149,readEnv:_0x26839e}){const _0x30190e=a216_0x1f64,_0x29a7c4=_0x274149?.[_0x30190e(0x199)]??{},_0xa5641f=_0x274149?.[_0x30190e(0x193)]??{},_0x196272=Object['keys'](_0x29a7c4)[_0x30190e(0x170)]>0x0,_0x3b7006=!_0x196272||_0x29a7c4[_0x30190e(0x186)]===!![],_0x12b970=_0x196272?resolveDefaultAppName(_0x29a7c4):undefined,_0x5e1c83=_0x3b7006?resolveDefaultAppName(_0xa5641f):undefined,_0x1a345a=stringConfigValue(_0x453051[_0x30190e(0x19a)]),_0x4014ca=_0x26839e(_0x30190e(0x17f)),_0x5127a6={};if(_0xba9551[_0x30190e(0x17c)]&&typeof _0xba9551[_0x30190e(0x17c)]===_0x30190e(0x194))for(const [_0x37e04b,_0x568304]of Object[_0x30190e(0x185)](_0xba9551[_0x30190e(0x17c)])){_0x568304&&typeof _0x568304===_0x30190e(0x194)&&_0x568304[_0x30190e(0x18f)]&&(_0x5127a6[_0x37e04b]=_0x568304);}const _0x420665=_0xba9551[_0x30190e(0x191)]||undefined,_0xc4502=Object[_0x30190e(0x190)](_0x5127a6)[_0x30190e(0x170)]>0x0,_0xb0f40f=_0x1a345a||_0x12b970||_0x4014ca||_0x5e1c83||_0x420665||undefined,_0x1fb256=stringConfigValue(_0x453051['appcode']),_0x4888a5=_0x1fb256?Object[_0x30190e(0x185)](_0x5127a6)['find'](([,_0x6f43b2])=>_0x6f43b2?.[_0x30190e(0x18f)]===_0x1fb256):undefined,_0x4da2ff=_0x4888a5?.[0x0],_0x2b6f60=_0x4888a5?.[0x1],_0x2fcce0=_0x1fb256?_0x4da2ff:_0xb0f40f;let _0x45cf1d=_0x2fcce0&&_0x5127a6[_0x2fcce0]?_0x5127a6[_0x2fcce0]:undefined;_0x1fb256&&_0x2b6f60&&(_0x45cf1d=_0x2b6f60);const _0x31c23a=_0x1fb256?_0x2b6f60??_0x45cf1d:_0x45cf1d,_0x59dc79=!_0x1a345a&&!_0x12b970&&_0x4014ca&&_0x2fcce0===_0x4014ca,_0x4c11c2=_0x1a345a||(_0x59dc79?_0x4014ca:undefined)||(_0x1fb256?_0x4da2ff:undefined),_0x551956=_0x31c23a?.['appcode'],_0x2014c4=_0x196272?resolveTopLevelAppCode(_0x29a7c4):undefined,_0x48643c=_0x3b7006?resolveTopLevelAppCode(_0xa5641f):undefined,_0x448358=_0x1a345a||_0x12b970?_0x551956:undefined,_0x480329=!_0x1a345a&&!_0x12b970?_0x551956:undefined,_0x256299=_0x1fb256||_0x448358||_0x2014c4||_0x480329||_0x48643c||undefined,_0x2d0766=_0x196272?stringConfigValue(_0x29a7c4[_0x30190e(0x17e)]):undefined,_0x41d6c2=_0x3b7006?stringConfigValue(_0xa5641f[_0x30190e(0x17e)]):undefined,_0xceaef9=_0x453051[_0x30190e(0x17e)]||_0x31c23a?.[_0x30190e(0x17e)]||_0x2d0766||_0x26839e('ENV')||_0x41d6c2||_0xba9551['env']||DEFAULT_CONFIG_VALUES[_0x30190e(0x17e)],_0x141df2=_0x31c23a?.[_0x30190e(0x192)]||_0xba9551[_0x30190e(0x192)]||DEFAULT_CONFIG_VALUES[_0x30190e(0x192)],_0x25f42f=_0x26839e(_0x30190e(0x177))||_0x31c23a?.[_0x30190e(0x182)]||_0xba9551['cookie']||undefined,_0x2e12d7=_0x26839e(_0x30190e(0x172))||_0x31c23a?.['accessKey']||_0xba9551[_0x30190e(0x178)]||undefined,_0x178dcf=_0x453051[_0x30190e(0x183)]||_0x26839e(_0x30190e(0x176))||_0x31c23a?.['format']||_0xba9551[_0x30190e(0x183)],_0x815fec=normalizeLegacyOutputFormat(_0x178dcf),_0x9479bf=_0x26839e(_0x30190e(0x17a))||_0x31c23a?.[_0x30190e(0x18c)]||_0xba9551['pageSize'],_0x4a90ca=_0x9479bf?Number(_0x9479bf)||undefined:undefined,_0x49bb97=_0x274149?[...configuredRiskCeilings(_0x274149['globalConfig']),...configuredRiskCeilings(_0x274149[_0x30190e(0x199)])]:configuredRiskCeilings(_0xba9551),_0x1fa586=resolveRiskCeiling(..._0x49bb97,_0x31c23a?.[_0x30190e(0x171)]),_0xf7de84=resolveRiskCeiling(_0x1fa586,_0x26839e('RISK_LEVEL'),_0x26839e(_0x30190e(0x18a))),_0x464c5b=_0x26839e(_0x30190e(0x197)),_0x41a4bb=_0x464c5b==='1'||_0x464c5b==='true',_0x35456e=_0x31c23a?.['apiDir']||_0xba9551['apiDir']||DEFAULT_CONFIG_VALUES[_0x30190e(0x198)],_0x35f55e=isDaily(normalizeEnv(String(_0xceaef9)))?_0x30190e(0x184):_0x30190e(0x173);return{'appCode':typeof _0x256299===_0x30190e(0x179)&&_0x256299[_0x30190e(0x196)]()?_0x256299[_0x30190e(0x196)]():undefined,'env':_0x35f55e,'locale':_0x141df2,'cookie':_0x25f42f,'accessKey':_0x2e12d7,'format':_0x815fec,'pageSize':_0x4a90ca,'riskLevel':_0xf7de84,'verbose':_0x41a4bb,'apiDir':_0x35456e,'apps':_0x5127a6,'defaultApp':_0x420665,'currentApp':_0xc4502?_0x2fcce0:undefined,'explicitAppName':_0x4c11c2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a217_0x4d5b(_0x10825d,_0x26b806){_0x10825d=_0x10825d-0x74;const _0x537e22=a217_0x537e();let _0x4d5b5c=_0x537e22[_0x10825d];return _0x4d5b5c;}(function(_0x58f351,_0x13312b){const _0x5f343d=a217_0x4d5b,_0x12cf83=_0x58f351();while(!![]){try{const _0xa72586=-parseInt(_0x5f343d(0x7d))/0x1+-parseInt(_0x5f343d(0x7c))/0x2*(parseInt(_0x5f343d(0x80))/0x3)+parseInt(_0x5f343d(0x7b))/0x4+parseInt(_0x5f343d(0x76))/0x5+-parseInt(_0x5f343d(0x7f))/0x6+parseInt(_0x5f343d(0x74))/0x7*(parseInt(_0x5f343d(0x77))/0x8)+-parseInt(_0x5f343d(0x78))/0x9*(-parseInt(_0x5f343d(0x7a))/0xa);if(_0xa72586===_0x13312b)break;else _0x12cf83['push'](_0x12cf83['shift']());}catch(_0x210907){_0x12cf83['push'](_0x12cf83['shift']());}}}(a217_0x537e,0x1be61));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a217_0x537e(){const _0xa6ab6=['200hlcLYO','171164qnkllz','authRequired','473784JMZpwR','1083WsOeuM','14777pYfXjb','../auth/get-cookie.js','415950QSAqDA','360pDqbxm','18doBTmL','cookie','255670HxShzs','684728FwvOGD'];a217_0x537e=function(){return _0xa6ab6;};return a217_0x537e();}export async function buildAuth(_0x223c56){const _0x4eca2f=a217_0x4d5b,{getCookie:_0x36ae0b}=await import(_0x4eca2f(0x75)),_0x37255b=_0x223c56[_0x4eca2f(0x79)]||_0x36ae0b(),_0x3c1281=_0x37255b?await getIsSessionValid():![];return{'cookie':_0x37255b,'isLoggedIn':_0x3c1281,async 'getOrLogin'(){const _0x252c73=_0x4eca2f;if(_0x37255b&&_0x3c1281)return _0x37255b;throw CliErrors[_0x252c73(0x7e)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a218_0x21198e=a218_0x37a6;(function(_0x2a3b67,_0x575f4){const _0x38b944=a218_0x37a6,_0x57d568=_0x2a3b67();while(!![]){try{const _0x382513=-parseInt(_0x38b944(0x1d5))/0x1+parseInt(_0x38b944(0x1f9))/0x2+-parseInt(_0x38b944(0x1d8))/0x3*(-parseInt(_0x38b944(0x1e3))/0x4)+parseInt(_0x38b944(0x1eb))/0x5*(-parseInt(_0x38b944(0x1d9))/0x6)+parseInt(_0x38b944(0x1fe))/0x7*(parseInt(_0x38b944(0x1d4))/0x8)+-parseInt(_0x38b944(0x1e8))/0x9+parseInt(_0x38b944(0x1ec))/0xa*(parseInt(_0x38b944(0x1cb))/0xb);if(_0x382513===_0x575f4)break;else _0x57d568['push'](_0x57d568['shift']());}catch(_0x211141){_0x57d568['push'](_0x57d568['shift']());}}}(a218_0x4c46,0xd5185));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=a218_0x21198e(0x1fc);export const CONFIG_NAMES=['.rabetbase.json',a218_0x21198e(0x1da),a218_0x21198e(0x1e1)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1b4af8=>_0x1b4af8!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4abeb0){for(const _0x12617f of CONFIG_NAMES){const _0x1a1d7d=resolve(_0x4abeb0,_0x12617f);if(existsSync(_0x1a1d7d))return _0x1a1d7d;}return undefined;}function a218_0x37a6(_0x1a4e5d,_0x353d87){_0x1a4e5d=_0x1a4e5d-0x1cb;const _0x4c46c9=a218_0x4c46();let _0x37a636=_0x4c46c9[_0x1a4e5d];return _0x37a636;}export function findProjectRootDirectory(_0x27a6d5=process['cwd']()){let _0x1da1c6=resolve(_0x27a6d5);const {root:_0x4f4390}=parse(_0x1da1c6),_0x15f224=homedir();while(!![]){if(resolveConfigPath(_0x1da1c6)){if(_0x1da1c6===_0x15f224)break;return _0x1da1c6;}if(_0x1da1c6===_0x4f4390||_0x1da1c6===_0x15f224)break;const _0x25e373=dirname(_0x1da1c6);if(_0x25e373===_0x1da1c6)break;_0x1da1c6=_0x25e373;}return resolve(_0x27a6d5);}export function getProjectConfigPath(){const _0xdfd459=a218_0x21198e;return resolveConfigPath(process[_0xdfd459(0x1cc)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x9fa624){const _0xb73b09=a218_0x21198e;if(!existsSync(_0x9fa624))return{'status':_0xb73b09(0x1f4)};try{const _0x523651=readFileSync(_0x9fa624,{'encoding':_0xb73b09(0x1d0)});if(!_0x523651?.[_0xb73b09(0x1fb)]())return{'status':_0xb73b09(0x1e4)};const _0x4f1248=JSON[_0xb73b09(0x1db)](_0x523651);return{'status':'ok','data':_0x4f1248};}catch(_0x1c56d8){return{'status':_0xb73b09(0x1e2),'message':_0x1c56d8 instanceof Error?_0x1c56d8[_0xb73b09(0x1e7)]:String(_0x1c56d8)};}}function parseCliConfigJsonFile(_0x2f49cd,_0x3af492,_0x4a5b32){const _0x19ac7c=a218_0x21198e,_0x395275=inspectCliConfigJsonFile(_0x2f49cd);if(_0x395275[_0x19ac7c(0x1e6)]===_0x19ac7c(0x1f4)||_0x395275[_0x19ac7c(0x1e6)]===_0x19ac7c(0x1e4))return{};if(_0x395275[_0x19ac7c(0x1e6)]==='ok')return _0x395275[_0x19ac7c(0x1df)];return _0x3af492===_0x19ac7c(0x1ce)&&_0x4a5b32&&console[_0x19ac7c(0x1e2)](CLI_BIN_NAME+':\x20'+_0x4a5b32+_0x19ac7c(0x1de)+_0x2f49cd+_0x19ac7c(0x1dc)+_0x395275[_0x19ac7c(0x1e7)]),{};}function normalizeLegacyConfigShape(_0x2ac5e2){const _0x41c6db=a218_0x21198e;if(!_0x2ac5e2||typeof _0x2ac5e2!==_0x41c6db(0x1ef))return{'config':{},'migrated':![]};const _0x25cd1c={..._0x2ac5e2},_0x5f36d5=_0x25cd1c[_0x41c6db(0x1d3)]&&typeof _0x25cd1c[_0x41c6db(0x1d3)]===_0x41c6db(0x1ef)?{..._0x25cd1c[_0x41c6db(0x1d3)]}:{},_0x40cc09=Object[_0x41c6db(0x1f3)](_0x5f36d5)[_0x41c6db(0x1e5)],_0x496221=_0x25cd1c[_0x41c6db(0x1f7)]||_0x25cd1c[_0x41c6db(0x1e9)];let _0xc20325=![];if(_0x496221&&_0x40cc09===0x0){const _0x5c06e3=typeof _0x25cd1c['defaultApp']==='string'&&_0x25cd1c[_0x41c6db(0x1e0)][_0x41c6db(0x1fb)]()?_0x25cd1c['defaultApp']:String(_0x496221)[_0x41c6db(0x1fb)]();_0x5f36d5[_0x5c06e3]={'appcode':String(_0x496221)[_0x41c6db(0x1fb)](),..._0x25cd1c[_0x41c6db(0x1f5)]!=null?{'env':_0x25cd1c[_0x41c6db(0x1f5)]}:{},..._0x25cd1c[_0x41c6db(0x1d7)]!=null?{'apiDir':_0x25cd1c[_0x41c6db(0x1d7)]}:{},..._0x25cd1c[_0x41c6db(0x1fa)]!=null?{'cookie':_0x25cd1c['cookie']}:{},..._0x25cd1c[_0x41c6db(0x1f1)]!=null?{'accessKey':_0x25cd1c[_0x41c6db(0x1f1)]}:{},..._0x25cd1c['format']!=null?{'format':_0x25cd1c[_0x41c6db(0x1f2)]}:{},..._0x25cd1c[_0x41c6db(0x1dd)]!=null?{'pageSize':_0x25cd1c[_0x41c6db(0x1dd)]}:{},..._0x25cd1c[_0x41c6db(0x1f0)]!=null?{'riskLevel':_0x25cd1c[_0x41c6db(0x1f0)]}:{},..._0x25cd1c['locale']!=null?{'locale':_0x25cd1c[_0x41c6db(0x1cd)]}:{}},_0x25cd1c['apps']=_0x5f36d5;if(!_0x25cd1c[_0x41c6db(0x1e0)])_0x25cd1c[_0x41c6db(0x1e0)]=_0x5c06e3;_0xc20325=!![];}return(_0x41c6db(0x1f7)in _0x25cd1c||_0x41c6db(0x1e9)in _0x25cd1c)&&(delete _0x25cd1c[_0x41c6db(0x1f7)],delete _0x25cd1c['app'],_0xc20325=!![]),{'config':_0x25cd1c,'migrated':_0xc20325};}function writeNormalizedConfigIfNeeded(_0xad571d,_0x44bf71){const _0x3795bb=a218_0x21198e,_0x3b6d8b=JSON['stringify'](_0x44bf71,null,0x2)+'\x0a';if(normalizedWriteCache[_0x3795bb(0x1d2)](_0xad571d)===_0x3b6d8b)return;writeConfigFile(_0xad571d,_0x44bf71),normalizedWriteCache[_0x3795bb(0x1d6)](_0xad571d,_0x3b6d8b);}function a218_0x4c46(){const _0x5e6f06=['silent','utf8','project','get','apps','9269488oqLnNJ','1181813pzkHeM','set','apiDir','1691748unhxDs','114HWjabz','.lovrabet.json','parse','\x0a\x20\x20','pageSize','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','data','defaultApp','.lovrabetrc','error','8mSAyln','empty','length','status','message','11460384ZRCLjG','app','Project','237430ONFnKf','8041450tFRbjP','config','inherit','object','riskLevel','accessKey','format','keys','missing','env','Global','appcode','migrated','2279194kqElJg','cookie','trim','.rabetbase.json','stringify','7mvyXdz','11UnIglx','cwd','locale','warn'];a218_0x4c46=function(){return _0x5e6f06;};return a218_0x4c46();}function parseAndNormalizeConfig(_0x56aa57,_0x5be29a,_0x40171a){const _0x134593=a218_0x21198e,_0x35f853=parseCliConfigJsonFile(_0x56aa57,_0x5be29a,_0x40171a),_0x18da9e=normalizeLegacyConfigShape(_0x35f853);if(_0x18da9e[_0x134593(0x1f8)])try{writeNormalizedConfigIfNeeded(_0x56aa57,_0x18da9e[_0x134593(0x1ed)]);}catch{}return _0x18da9e[_0x134593(0x1ed)];}export function loadRawConfigLayers(_0x1fdfbc){const _0x1c3644=a218_0x21198e;let _0x1e41fc={},_0x28eab2={};const _0x303113=resolveConfigPath(homedir());_0x303113&&(_0x1e41fc=parseAndNormalizeConfig(_0x303113,_0x1c3644(0x1ce),_0x1c3644(0x1f6)));const _0x27c674=_0x1fdfbc??findProjectRootDirectory(),_0xad665e=resolveConfigPath(_0x27c674);return _0xad665e&&(_0x28eab2=parseAndNormalizeConfig(_0xad665e,_0x1c3644(0x1ce),_0x1c3644(0x1ea))),{'globalPath':_0x303113,'projectPath':_0xad665e,'globalConfig':_0x1e41fc,'projectConfig':_0x28eab2};}const INHERIT_WHITELIST=[a218_0x21198e(0x1fa),a218_0x21198e(0x1f1),'locale',a218_0x21198e(0x1f2),a218_0x21198e(0x1f0),a218_0x21198e(0x1dd)];export function mergeRawConfigLayers(_0x4bcc61){const _0x3e17d2=a218_0x21198e,{globalConfig:_0x3c1a6a,projectConfig:_0x37797f}=_0x4bcc61,_0x363d55=Object[_0x3e17d2(0x1f3)](_0x37797f)[_0x3e17d2(0x1e5)]>0x0;if(!_0x363d55)return mergeGlobalOnly(_0x3c1a6a);if(_0x37797f[_0x3e17d2(0x1ee)]===!![])return mergeFullInherit(_0x3c1a6a,_0x37797f);if(_0x37797f[_0x3e17d2(0x1ee)]===![])return mergeIsolated(_0x37797f);return mergeProjectFirst(_0x3c1a6a,_0x37797f);}function mergeGlobalOnly(_0x14bdd7){const _0x53bc1c=a218_0x21198e,_0x448d90={..._0x14bdd7},_0x591c21=_0x14bdd7[_0x53bc1c(0x1d3)]&&typeof _0x14bdd7[_0x53bc1c(0x1d3)]===_0x53bc1c(0x1ef)?_0x14bdd7[_0x53bc1c(0x1d3)]:{};if(Object[_0x53bc1c(0x1f3)](_0x591c21)[_0x53bc1c(0x1e5)]>0x0)_0x448d90[_0x53bc1c(0x1d3)]=_0x591c21;if(_0x14bdd7[_0x53bc1c(0x1e0)])_0x448d90[_0x53bc1c(0x1e0)]=_0x14bdd7[_0x53bc1c(0x1e0)];else{const _0x35e291=Object[_0x53bc1c(0x1f3)](_0x591c21);if(_0x35e291[_0x53bc1c(0x1e5)]>0x0)_0x448d90[_0x53bc1c(0x1e0)]=_0x35e291[0x0];}return _0x448d90;}function mergeIsolated(_0x1f5265){const _0x267eba=a218_0x21198e,_0x5bf6de={..._0x1f5265};delete _0x5bf6de['inherit'];const _0x4351bc=_0x1f5265[_0x267eba(0x1d3)]&&typeof _0x1f5265[_0x267eba(0x1d3)]===_0x267eba(0x1ef)?_0x1f5265['apps']:{};Object[_0x267eba(0x1f3)](_0x4351bc)[_0x267eba(0x1e5)]>0x0?_0x5bf6de[_0x267eba(0x1d3)]=_0x4351bc:delete _0x5bf6de[_0x267eba(0x1d3)];if(_0x267eba(0x1e0)in _0x1f5265)_0x5bf6de['defaultApp']=_0x1f5265[_0x267eba(0x1e0)];else Object['keys'](_0x4351bc)[_0x267eba(0x1e5)]>0x0?_0x5bf6de['defaultApp']=Object[_0x267eba(0x1f3)](_0x4351bc)[0x0]:delete _0x5bf6de[_0x267eba(0x1e0)];return _0x5bf6de;}function mergeProjectFirst(_0x4d4a16,_0x1036f1){const _0x2b04a0=a218_0x21198e,_0x4cb5d9={..._0x1036f1};delete _0x4cb5d9[_0x2b04a0(0x1ee)];for(const _0x392f96 of INHERIT_WHITELIST){!(_0x392f96 in _0x4cb5d9)&&_0x392f96 in _0x4d4a16&&(_0x4cb5d9[_0x392f96]=_0x4d4a16[_0x392f96]);}const _0x4e6050=_0x1036f1[_0x2b04a0(0x1d3)]&&typeof _0x1036f1[_0x2b04a0(0x1d3)]===_0x2b04a0(0x1ef)?_0x1036f1[_0x2b04a0(0x1d3)]:{};Object['keys'](_0x4e6050)['length']>0x0?_0x4cb5d9[_0x2b04a0(0x1d3)]=_0x4e6050:delete _0x4cb5d9[_0x2b04a0(0x1d3)];if('defaultApp'in _0x1036f1)_0x4cb5d9[_0x2b04a0(0x1e0)]=_0x1036f1[_0x2b04a0(0x1e0)];else Object[_0x2b04a0(0x1f3)](_0x4e6050)[_0x2b04a0(0x1e5)]>0x0?_0x4cb5d9['defaultApp']=Object[_0x2b04a0(0x1f3)](_0x4e6050)[0x0]:delete _0x4cb5d9[_0x2b04a0(0x1e0)];return _0x4cb5d9;}function mergeFullInherit(_0x197d79,_0x51e44d){const _0x2ef898=a218_0x21198e,_0x11f68f=_0x197d79[_0x2ef898(0x1d3)]&&typeof _0x197d79[_0x2ef898(0x1d3)]===_0x2ef898(0x1ef)?_0x197d79['apps']:{},_0x1c4042=_0x51e44d[_0x2ef898(0x1d3)]&&typeof _0x51e44d['apps']==='object'?_0x51e44d['apps']:{},_0x568081={..._0x11f68f,..._0x1c4042},_0x14a2c6={..._0x197d79,..._0x51e44d};delete _0x14a2c6[_0x2ef898(0x1ee)];if(Object[_0x2ef898(0x1f3)](_0x568081)['length']>0x0)_0x14a2c6[_0x2ef898(0x1d3)]=_0x568081;if(_0x2ef898(0x1e0)in _0x51e44d)_0x14a2c6[_0x2ef898(0x1e0)]=_0x51e44d['defaultApp'];else{if(Object['keys'](_0x1c4042)['length']>0x0)_0x14a2c6[_0x2ef898(0x1e0)]=Object[_0x2ef898(0x1f3)](_0x1c4042)[0x0];else{if(_0x197d79[_0x2ef898(0x1e0)])_0x14a2c6[_0x2ef898(0x1e0)]=_0x197d79[_0x2ef898(0x1e0)];else{const _0xd5d41f=Object[_0x2ef898(0x1f3)](_0x11f68f);if(_0xd5d41f[_0x2ef898(0x1e5)]>0x0)_0x14a2c6[_0x2ef898(0x1e0)]=_0xd5d41f[0x0];}}}return _0x14a2c6;}export function readRawConfigWithLayers(_0x3d8b7a){const _0xfd13ec=loadRawConfigLayers(_0x3d8b7a);return{'config':mergeRawConfigLayers(_0xfd13ec),'layers':_0xfd13ec};}export function readRawConfig(_0x4f4334){return mergeRawConfigLayers(loadRawConfigLayers(_0x4f4334));}export function readConfigFile(_0x5aee41){const _0x150c26=a218_0x21198e;return parseAndNormalizeConfig(_0x5aee41,_0x150c26(0x1cf));}export function writeConfigFile(_0x4227c5,_0x3e61f0){const _0x4f05d4=a218_0x21198e,_0x53aa55=dirname(_0x4227c5);!existsSync(_0x53aa55)&&mkdirSync(_0x53aa55,{'recursive':!![]});const _0x4e2b0a=_0x4227c5+'.tmp';try{writeFileSync(_0x4e2b0a,JSON[_0x4f05d4(0x1fd)](_0x3e61f0,null,0x2)+'\x0a',{'encoding':_0x4f05d4(0x1d0),'mode':0x180}),renameSync(_0x4e2b0a,_0x4227c5);}catch(_0x77f73d){try{unlinkSync(_0x4e2b0a);}catch{}throw _0x77f73d;}}export function resolveWriteConfigPath(_0x20215a){const _0x535d77=a218_0x21198e,_0x4ddc7c=_0x20215a===_0x535d77(0x1d1)?process['cwd']():homedir(),_0x16a775=resolveConfigPath(_0x4ddc7c);return _0x16a775??resolve(_0x4ddc7c,NEW_CONFIG_NAME);}
|
|
1
|
+
const a218_0x3a8f5c=a218_0x434f;(function(_0x587aeb,_0x57db89){const _0x21b9f7=a218_0x434f,_0x383e05=_0x587aeb();while(!![]){try{const _0x4fbe7a=parseInt(_0x21b9f7(0x1da))/0x1*(-parseInt(_0x21b9f7(0x1d2))/0x2)+parseInt(_0x21b9f7(0x1e0))/0x3+-parseInt(_0x21b9f7(0x1de))/0x4+-parseInt(_0x21b9f7(0x1e5))/0x5+-parseInt(_0x21b9f7(0x1d0))/0x6+parseInt(_0x21b9f7(0x1db))/0x7*(parseInt(_0x21b9f7(0x1ca))/0x8)+parseInt(_0x21b9f7(0x1ce))/0x9;if(_0x4fbe7a===_0x57db89)break;else _0x383e05['push'](_0x383e05['shift']());}catch(_0x443a2d){_0x383e05['push'](_0x383e05['shift']());}}}(a218_0x5f4e,0x73c9d));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=a218_0x3a8f5c(0x1c4);export const CONFIG_NAMES=['.rabetbase.json','.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x467539=>_0x467539!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x1a3a89){for(const _0x4465fb of CONFIG_NAMES){const _0x2b972c=resolve(_0x1a3a89,_0x4465fb);if(existsSync(_0x2b972c))return _0x2b972c;}return undefined;}function a218_0x434f(_0x372ee1,_0x1e05ec){_0x372ee1=_0x372ee1-0x1bb;const _0x5f4ef0=a218_0x5f4e();let _0x434fdb=_0x5f4ef0[_0x372ee1];return _0x434fdb;}export function findProjectRootDirectory(_0x4553f6=process[a218_0x3a8f5c(0x1c5)]()){let _0x22770c=resolve(_0x4553f6);const {root:_0x14d70c}=parse(_0x22770c),_0x327300=homedir();while(!![]){if(resolveConfigPath(_0x22770c)){if(_0x22770c===_0x327300)break;return _0x22770c;}if(_0x22770c===_0x14d70c||_0x22770c===_0x327300)break;const _0x2988ed=dirname(_0x22770c);if(_0x2988ed===_0x22770c)break;_0x22770c=_0x2988ed;}return resolve(_0x4553f6);}export function getProjectConfigPath(){const _0x41e28c=a218_0x3a8f5c;return resolveConfigPath(process[_0x41e28c(0x1c5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x188c59){const _0x278c6f=a218_0x3a8f5c;if(!existsSync(_0x188c59))return{'status':_0x278c6f(0x1d1)};try{const _0x41da72=readFileSync(_0x188c59,{'encoding':_0x278c6f(0x1bd)});if(!_0x41da72?.[_0x278c6f(0x1bc)]())return{'status':_0x278c6f(0x1cc)};const _0x3acba4=JSON['parse'](_0x41da72);return{'status':'ok','data':_0x3acba4};}catch(_0x48e6bd){return{'status':'error','message':_0x48e6bd instanceof Error?_0x48e6bd['message']:String(_0x48e6bd)};}}function parseCliConfigJsonFile(_0x556ea6,_0x53c9cc,_0x1b6941){const _0x2ba5ab=a218_0x3a8f5c,_0x311ed4=inspectCliConfigJsonFile(_0x556ea6);if(_0x311ed4[_0x2ba5ab(0x1bb)]===_0x2ba5ab(0x1d1)||_0x311ed4[_0x2ba5ab(0x1bb)]===_0x2ba5ab(0x1cc))return{};if(_0x311ed4[_0x2ba5ab(0x1bb)]==='ok')return _0x311ed4[_0x2ba5ab(0x1c1)];return _0x53c9cc==='warn'&&_0x1b6941&&console[_0x2ba5ab(0x1d3)](CLI_BIN_NAME+':\x20'+_0x1b6941+_0x2ba5ab(0x1c8)+_0x556ea6+_0x2ba5ab(0x1e7)+_0x311ed4[_0x2ba5ab(0x1cd)]),{};}function normalizeLegacyConfigShape(_0x5db91a){const _0x51d987=a218_0x3a8f5c;if(!_0x5db91a||typeof _0x5db91a!==_0x51d987(0x1c0))return{'config':{},'migrated':![]};const _0x1f9091={..._0x5db91a},_0x511328=_0x1f9091[_0x51d987(0x1e8)]&&typeof _0x1f9091[_0x51d987(0x1e8)]==='object'?{..._0x1f9091[_0x51d987(0x1e8)]}:{},_0x44f129=Object['keys'](_0x511328)[_0x51d987(0x1d5)],_0xf54d28=_0x1f9091[_0x51d987(0x1d7)]||_0x1f9091[_0x51d987(0x1d6)];let _0x3dbe12=![];if(_0xf54d28&&_0x44f129===0x0){const _0xe233e6=typeof _0x1f9091[_0x51d987(0x1bf)]===_0x51d987(0x1dd)&&_0x1f9091[_0x51d987(0x1bf)][_0x51d987(0x1bc)]()?_0x1f9091[_0x51d987(0x1bf)]:String(_0xf54d28)[_0x51d987(0x1bc)]();_0x511328[_0xe233e6]={'appcode':String(_0xf54d28)[_0x51d987(0x1bc)](),..._0x1f9091[_0x51d987(0x1e4)]!=null?{'env':_0x1f9091[_0x51d987(0x1e4)]}:{},..._0x1f9091[_0x51d987(0x1c3)]!=null?{'apiDir':_0x1f9091['apiDir']}:{},..._0x1f9091[_0x51d987(0x1e6)]!=null?{'cookie':_0x1f9091['cookie']}:{},..._0x1f9091[_0x51d987(0x1d9)]!=null?{'accessKey':_0x1f9091[_0x51d987(0x1d9)]}:{},..._0x1f9091[_0x51d987(0x1c9)]!=null?{'format':_0x1f9091[_0x51d987(0x1c9)]}:{},..._0x1f9091[_0x51d987(0x1e2)]!=null?{'pageSize':_0x1f9091[_0x51d987(0x1e2)]}:{},..._0x1f9091[_0x51d987(0x1c2)]!=null?{'riskLevel':_0x1f9091[_0x51d987(0x1c2)]}:{},..._0x1f9091['locale']!=null?{'locale':_0x1f9091[_0x51d987(0x1be)]}:{}},_0x1f9091[_0x51d987(0x1e8)]=_0x511328;if(!_0x1f9091[_0x51d987(0x1bf)])_0x1f9091[_0x51d987(0x1bf)]=_0xe233e6;_0x3dbe12=!![];}return(_0x51d987(0x1d7)in _0x1f9091||_0x51d987(0x1d6)in _0x1f9091)&&(delete _0x1f9091[_0x51d987(0x1d7)],delete _0x1f9091[_0x51d987(0x1d6)],_0x3dbe12=!![]),{'config':_0x1f9091,'migrated':_0x3dbe12};}function writeNormalizedConfigIfNeeded(_0xd7be2d,_0x41ec6d){const _0x3b7bf2=a218_0x3a8f5c,_0x4e6194=JSON[_0x3b7bf2(0x1cf)](_0x41ec6d,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0xd7be2d)===_0x4e6194)return;writeConfigFile(_0xd7be2d,_0x41ec6d),normalizedWriteCache[_0x3b7bf2(0x1d4)](_0xd7be2d,_0x4e6194);}function parseAndNormalizeConfig(_0x1df7c7,_0x41a5f2,_0x1386e2){const _0x4cea69=a218_0x3a8f5c,_0x295ebb=parseCliConfigJsonFile(_0x1df7c7,_0x41a5f2,_0x1386e2),_0x4c6f5b=normalizeLegacyConfigShape(_0x295ebb);if(_0x4c6f5b['migrated'])try{writeNormalizedConfigIfNeeded(_0x1df7c7,_0x4c6f5b[_0x4cea69(0x1cb)]);}catch{}return _0x4c6f5b[_0x4cea69(0x1cb)];}export function loadRawConfigLayers(_0x537965){const _0x38d391=a218_0x3a8f5c;let _0x19514b={},_0x430562={};const _0xe89906=resolveConfigPath(homedir());_0xe89906&&(_0x19514b=parseAndNormalizeConfig(_0xe89906,_0x38d391(0x1c6),_0x38d391(0x1e3)));const _0x428e6e=_0x537965??findProjectRootDirectory(),_0x300301=resolveConfigPath(_0x428e6e);return _0x300301&&(_0x430562=parseAndNormalizeConfig(_0x300301,_0x38d391(0x1c6),_0x38d391(0x1dc))),{'globalPath':_0xe89906,'projectPath':_0x300301,'globalConfig':_0x19514b,'projectConfig':_0x430562};}const INHERIT_WHITELIST=[a218_0x3a8f5c(0x1e6),a218_0x3a8f5c(0x1d9),a218_0x3a8f5c(0x1be),'format',a218_0x3a8f5c(0x1c2),'pageSize'];export function mergeRawConfigLayers(_0x33471c){const _0x4fb7d2=a218_0x3a8f5c,{globalConfig:_0x17dd6e,projectConfig:_0x4c4a12}=_0x33471c,_0x20a8b5=Object[_0x4fb7d2(0x1df)](_0x4c4a12)[_0x4fb7d2(0x1d5)]>0x0;if(!_0x20a8b5)return mergeGlobalOnly(_0x17dd6e);if(_0x4c4a12[_0x4fb7d2(0x1d8)]===!![])return mergeFullInherit(_0x17dd6e,_0x4c4a12);if(_0x4c4a12[_0x4fb7d2(0x1d8)]===![])return mergeIsolated(_0x4c4a12);return mergeProjectFirst(_0x17dd6e,_0x4c4a12);}function mergeGlobalOnly(_0x3fcb92){const _0x3bda41=a218_0x3a8f5c,_0x208980={..._0x3fcb92},_0x4106f8=_0x3fcb92['apps']&&typeof _0x3fcb92['apps']==='object'?_0x3fcb92[_0x3bda41(0x1e8)]:{};if(Object[_0x3bda41(0x1df)](_0x4106f8)['length']>0x0)_0x208980[_0x3bda41(0x1e8)]=_0x4106f8;if(_0x3fcb92['defaultApp'])_0x208980[_0x3bda41(0x1bf)]=_0x3fcb92[_0x3bda41(0x1bf)];else{const _0x5b774c=Object['keys'](_0x4106f8);if(_0x5b774c[_0x3bda41(0x1d5)]>0x0)_0x208980['defaultApp']=_0x5b774c[0x0];}return _0x208980;}function mergeIsolated(_0x9b7af1){const _0x27090d=a218_0x3a8f5c,_0x3986c4={..._0x9b7af1};delete _0x3986c4['inherit'];const _0x573ef4=_0x9b7af1[_0x27090d(0x1e8)]&&typeof _0x9b7af1[_0x27090d(0x1e8)]===_0x27090d(0x1c0)?_0x9b7af1[_0x27090d(0x1e8)]:{};Object[_0x27090d(0x1df)](_0x573ef4)[_0x27090d(0x1d5)]>0x0?_0x3986c4[_0x27090d(0x1e8)]=_0x573ef4:delete _0x3986c4[_0x27090d(0x1e8)];if(_0x27090d(0x1bf)in _0x9b7af1)_0x3986c4[_0x27090d(0x1bf)]=_0x9b7af1['defaultApp'];else Object[_0x27090d(0x1df)](_0x573ef4)[_0x27090d(0x1d5)]>0x0?_0x3986c4[_0x27090d(0x1bf)]=Object[_0x27090d(0x1df)](_0x573ef4)[0x0]:delete _0x3986c4[_0x27090d(0x1bf)];return _0x3986c4;}function mergeProjectFirst(_0x20de5d,_0x281bef){const _0x5f38d2=a218_0x3a8f5c,_0x3e2878={..._0x281bef};delete _0x3e2878[_0x5f38d2(0x1d8)];for(const _0x5326b6 of INHERIT_WHITELIST){!(_0x5326b6 in _0x3e2878)&&_0x5326b6 in _0x20de5d&&(_0x3e2878[_0x5326b6]=_0x20de5d[_0x5326b6]);}const _0x3435d4=_0x281bef[_0x5f38d2(0x1e8)]&&typeof _0x281bef['apps']===_0x5f38d2(0x1c0)?_0x281bef[_0x5f38d2(0x1e8)]:{};Object['keys'](_0x3435d4)[_0x5f38d2(0x1d5)]>0x0?_0x3e2878[_0x5f38d2(0x1e8)]=_0x3435d4:delete _0x3e2878['apps'];if(_0x5f38d2(0x1bf)in _0x281bef)_0x3e2878[_0x5f38d2(0x1bf)]=_0x281bef[_0x5f38d2(0x1bf)];else Object[_0x5f38d2(0x1df)](_0x3435d4)[_0x5f38d2(0x1d5)]>0x0?_0x3e2878[_0x5f38d2(0x1bf)]=Object[_0x5f38d2(0x1df)](_0x3435d4)[0x0]:delete _0x3e2878[_0x5f38d2(0x1bf)];return _0x3e2878;}function mergeFullInherit(_0x2b9a25,_0x471917){const _0xf2dfee=a218_0x3a8f5c,_0x3665cd=_0x2b9a25[_0xf2dfee(0x1e8)]&&typeof _0x2b9a25[_0xf2dfee(0x1e8)]===_0xf2dfee(0x1c0)?_0x2b9a25[_0xf2dfee(0x1e8)]:{},_0x4903c2=_0x471917[_0xf2dfee(0x1e8)]&&typeof _0x471917[_0xf2dfee(0x1e8)]===_0xf2dfee(0x1c0)?_0x471917['apps']:{},_0x4b80b2={..._0x3665cd,..._0x4903c2},_0x47b4d1={..._0x2b9a25,..._0x471917};delete _0x47b4d1[_0xf2dfee(0x1d8)];if(Object[_0xf2dfee(0x1df)](_0x4b80b2)[_0xf2dfee(0x1d5)]>0x0)_0x47b4d1[_0xf2dfee(0x1e8)]=_0x4b80b2;if(_0xf2dfee(0x1bf)in _0x471917)_0x47b4d1[_0xf2dfee(0x1bf)]=_0x471917[_0xf2dfee(0x1bf)];else{if(Object[_0xf2dfee(0x1df)](_0x4903c2)[_0xf2dfee(0x1d5)]>0x0)_0x47b4d1[_0xf2dfee(0x1bf)]=Object['keys'](_0x4903c2)[0x0];else{if(_0x2b9a25[_0xf2dfee(0x1bf)])_0x47b4d1[_0xf2dfee(0x1bf)]=_0x2b9a25[_0xf2dfee(0x1bf)];else{const _0x3f51e8=Object[_0xf2dfee(0x1df)](_0x3665cd);if(_0x3f51e8['length']>0x0)_0x47b4d1['defaultApp']=_0x3f51e8[0x0];}}}return _0x47b4d1;}export function readRawConfigWithLayers(_0x3bacba){const _0x1ce792=loadRawConfigLayers(_0x3bacba);return{'config':mergeRawConfigLayers(_0x1ce792),'layers':_0x1ce792};}export function readRawConfig(_0x51845f){return mergeRawConfigLayers(loadRawConfigLayers(_0x51845f));}export function readConfigFile(_0x178387){const _0x2e9b64=a218_0x3a8f5c;return parseAndNormalizeConfig(_0x178387,_0x2e9b64(0x1c7));}export function writeConfigFile(_0x1155cc,_0x350824){const _0x26603c=a218_0x3a8f5c,_0x5ebdf5=dirname(_0x1155cc);!existsSync(_0x5ebdf5)&&mkdirSync(_0x5ebdf5,{'recursive':!![]});const _0xb2a9a5=_0x1155cc+_0x26603c(0x1e1);try{writeFileSync(_0xb2a9a5,JSON[_0x26603c(0x1cf)](_0x350824,null,0x2)+'\x0a',{'encoding':_0x26603c(0x1bd),'mode':0x180}),renameSync(_0xb2a9a5,_0x1155cc);}catch(_0x1eeaad){try{unlinkSync(_0xb2a9a5);}catch{}throw _0x1eeaad;}}export function resolveWriteConfigPath(_0x478a6a){const _0x36e605=a218_0x3a8f5c,_0xbad1d7=_0x478a6a==='project'?process[_0x36e605(0x1c5)]():homedir(),_0x35e7f3=resolveConfigPath(_0xbad1d7);return _0x35e7f3??resolve(_0xbad1d7,NEW_CONFIG_NAME);}function a218_0x5f4e(){const _0x217815=['format','153472ChgwAd','config','empty','message','8817984AHrOpT','stringify','2310732cvQRrB','missing','3348ZmBZHE','error','set','length','app','appcode','inherit','accessKey','302rRrfSP','217NLTsWV','Project','string','2681036mGlznF','keys','1410489fBgjqu','.tmp','pageSize','Global','env','47225cIwGtF','cookie','\x0a\x20\x20','apps','status','trim','utf8','locale','defaultApp','object','data','riskLevel','apiDir','.rabetbase.json','cwd','warn','silent','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'];a218_0x5f4e=function(){return _0x217815;};return a218_0x5f4e();}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a219_0xf26c9d=a219_0x24eb;(function(_0x5e0d3e,_0x3218a2){const _0x4cbd20=a219_0x24eb,_0x244331=_0x5e0d3e();while(!![]){try{const _0x13b399=parseInt(_0x4cbd20(0x114))/0x1*(-parseInt(_0x4cbd20(0x11a))/0x2)+parseInt(_0x4cbd20(0x105))/0x3+-parseInt(_0x4cbd20(0x11c))/0x4*(-parseInt(_0x4cbd20(0x12e))/0x5)+-parseInt(_0x4cbd20(0x106))/0x6+-parseInt(_0x4cbd20(0x11f))/0x7*(-parseInt(_0x4cbd20(0x108))/0x8)+parseInt(_0x4cbd20(0x110))/0x9+-parseInt(_0x4cbd20(0x124))/0xa*(parseInt(_0x4cbd20(0x107))/0xb);if(_0x13b399===_0x3218a2)break;else _0x244331['push'](_0x244331['shift']());}catch(_0x3290ef){_0x244331['push'](_0x244331['shift']());}}}(a219_0x1ba3,0x60682));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';function a219_0x24eb(_0x23401f,_0x221142){_0x23401f=_0x23401f-0x104;const _0x1ba35c=a219_0x1ba3();let _0x24ebc8=_0x1ba35c[_0x23401f];return _0x24ebc8;}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(_0x4a37ee){return process.env[`RABETBASE_${_0x4a37ee}`]||process.env[`LOVRABET_${_0x4a37ee}`]||undefined;}function optionalString(_0x63a880){const _0x45dd46=a219_0x24eb;return typeof _0x63a880===_0x45dd46(0x11b)&&_0x63a880['trim']()?_0x63a880['trim']():undefined;}export async function createContext(_0x48fc07){const _0x87fc63=a219_0x24eb,{config:_0x622d55,layers:_0x349537}=readRawConfigWithLayers(),_0x36f10d=buildConfig(_0x622d55,_0x48fc07,_0x349537);await initGlobalEnvironment(_0x36f10d);const {getUserDomain:_0x3d2a5d,getApiDomain:_0x284ce5}=await import(_0x87fc63(0x117)),_0x4cf4e4={'apiDomain':_0x284ce5(),'userDomain':_0x3d2a5d()},_0x22b4a5=await buildAuth(_0x36f10d);logger['setLogPath'](process[_0x87fc63(0x115)]());const _0x3d52c7=(CLI_BIN_NAME+'\x20'+process[_0x87fc63(0x126)][_0x87fc63(0x10f)](0x2)[_0x87fc63(0x120)]('\x20'))['trim']();logger[_0x87fc63(0x127)](_0x3d52c7);const {isNonInteractive:_0x3bfa66}=await import(_0x87fc63(0x10d)),_0x3fb8c1=_0x3bfa66(_0x48fc07);return{'config':_0x36f10d,'auth':_0x22b4a5,'logger':logger,'env':_0x4cf4e4,'nonInteractive':_0x3fb8c1};}export function buildConfigFromFlags(_0xb2ff54){const {config:_0x48bf05,layers:_0x406566}=readRawConfigWithLayers();return buildConfig(_0x48bf05,_0xb2ff54,_0x406566);}export async function initGlobalEnvironment(_0x4ce386){const _0x4b32e8=a219_0x24eb,{initEnv:_0x7eb194}=await import(_0x4b32e8(0x10b));_0x7eb194(_0x4ce386[_0x4b32e8(0x111)]);const {initDomains:_0x13b33c}=await import(_0x4b32e8(0x117));_0x13b33c({'apiDomain':optionalString(_0x4ce386[_0x4b32e8(0x12a)]?.['apiDomain']),'userDomain':optionalString(_0x4ce386['raw']?.['userDomain']),'runtimeDomain':optionalString(_0x4ce386[_0x4b32e8(0x12a)]?.[_0x4b32e8(0x12b)])});}export function getConfigAppCode(_0x59251b){const _0x520aac=a219_0x24eb,_0x1da15d=readRawConfig(_0x59251b);if(_0x1da15d[_0x520aac(0x116)]&&typeof _0x1da15d[_0x520aac(0x116)]===_0x520aac(0x12d)){const _0x184ce8=_0x1da15d[_0x520aac(0x123)];if(_0x184ce8&&_0x1da15d[_0x520aac(0x116)][_0x184ce8]?.['appcode'])return String(_0x1da15d[_0x520aac(0x116)][_0x184ce8][_0x520aac(0x129)])[_0x520aac(0x119)]();const _0x113a23=Object[_0x520aac(0x113)](_0x1da15d['apps'])[0x0];if(_0x113a23?.[_0x520aac(0x129)])return String(_0x113a23['appcode'])['trim']();}const _0x322a14=_0x1da15d[_0x520aac(0x129)]||_0x1da15d['app'];if(typeof _0x322a14!=='string'||_0x322a14[_0x520aac(0x119)]()==='')return undefined;return _0x322a14[_0x520aac(0x119)]();}export function getMultiAppConfigs(_0x2135de=a219_0xf26c9d(0x11d),_0x543852){const _0x5b46ae=a219_0xf26c9d,_0x788d41=loadRawConfigLayers(_0x543852);let _0x157c98,_0x233082;if(_0x2135de===_0x5b46ae(0x112)){const _0x1cbbec=_0x788d41[_0x5b46ae(0x104)][_0x5b46ae(0x116)]&&typeof _0x788d41['globalConfig'][_0x5b46ae(0x116)]===_0x5b46ae(0x12d)?_0x788d41[_0x5b46ae(0x104)][_0x5b46ae(0x116)]:{},_0x4735b5=_0x788d41[_0x5b46ae(0x11e)][_0x5b46ae(0x116)]&&typeof _0x788d41[_0x5b46ae(0x11e)][_0x5b46ae(0x116)]===_0x5b46ae(0x12d)?_0x788d41[_0x5b46ae(0x11e)]['apps']:{};_0x157c98={..._0x1cbbec,..._0x4735b5};const _0x3aa541=readRawConfig(_0x543852);_0x233082=_0x3aa541['defaultApp'];}else _0x157c98=_0x788d41[_0x5b46ae(0x11e)][_0x5b46ae(0x116)],_0x233082=_0x788d41['projectConfig'][_0x5b46ae(0x123)];if(!_0x157c98||typeof _0x157c98!==_0x5b46ae(0x12d)||Object[_0x5b46ae(0x10e)](_0x157c98)[_0x5b46ae(0x10c)]===0x0)return null;return Object[_0x5b46ae(0x118)](_0x157c98)[_0x5b46ae(0x128)](([_0x1fa503,_0x495066])=>({'name':_0x1fa503,'appcode':_0x495066?.[_0x5b46ae(0x129)]||'','isDefault':_0x1fa503===_0x233082,'env':_0x495066?.[_0x5b46ae(0x111)],'apiDir':_0x495066?.['apiDir'],'cookie':_0x495066?.[_0x5b46ae(0x125)]||undefined}))['filter'](_0x5dc21d=>_0x5dc21d[_0x5b46ae(0x129)]);}function a219_0x1ba3(){const _0x27cb81=['appcode','raw','runtimeDomain','-api.ts','object','2690pqSLbY','globalConfig','173208WNhxyg','1561794IDjCzf','1657931nPMuwl','96448bKcdSn','https://g.lovrabet.com/dist/lovrabet-skill','apiDir','./constant/env.js','length','./utils/is-non-interactive.js','keys','slice','161730wMUrSQ','env','merged','values','33hKmegY','cwd','apps','./constant/domain.js','entries','trim','19308FhHnpm','string','3764CGnero','project','projectConfig','315fQkUxB','join','template_base_url','api.ts','defaultApp','10hLPcLn','cookie','argv','setRawCommand','map'];a219_0x1ba3=function(){return _0x27cb81;};return a219_0x1ba3();}export function getTemplateBaseUrl(_0x3ad389){const _0x5849c6=a219_0xf26c9d,_0x3eefa9=readRawConfig(_0x3ad389);if(_0x3eefa9['template_base_url']&&typeof _0x3eefa9['template_base_url']===_0x5849c6(0x11b))return _0x3eefa9[_0x5849c6(0x121)]['replace'](/\/$/,'');return _0x5849c6(0x109);}function buildConfig(_0x445297,_0x18a234,_0x4a77be){return{...resolveAppConfig({'raw':_0x445297,'flags':_0x18a234,'layers':_0x4a77be,'readEnv':env}),'raw':_0x445297};}export function resolveApiFilePath(_0x5cea84,_0x44c987){const _0x3b3b00=a219_0xf26c9d,_0x1cacf3=resolve(process[_0x3b3b00(0x115)](),_0x5cea84),_0x42142f=resolve(_0x1cacf3,_0x3b3b00(0x122));if(!_0x44c987)return _0x42142f;const _0x272fda=readRawConfig(),_0x34b542=_0x272fda[_0x3b3b00(0x116)]&&typeof _0x272fda[_0x3b3b00(0x116)]===_0x3b3b00(0x12d)?_0x272fda['apps']:{},_0x302ea2=Object[_0x3b3b00(0x118)](_0x34b542)['find'](([,_0x4fe0cf])=>_0x4fe0cf?.[_0x3b3b00(0x129)]===_0x44c987);if(!_0x302ea2)return _0x42142f;const [_0x4263cc,_0x3c9f8b]=_0x302ea2,_0x320d4e=typeof _0x272fda[_0x3b3b00(0x123)]==='string'?_0x272fda['defaultApp']:undefined;if(_0x3c9f8b?.[_0x3b3b00(0x10a)])return _0x42142f;if(_0x320d4e&&_0x4263cc!==_0x320d4e)return resolve(_0x1cacf3,_0x4263cc+_0x3b3b00(0x12c));return _0x42142f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a220_0x1770(_0xd98f17,_0xb2afa1){_0xd98f17=_0xd98f17-0x159;const _0x227b2a=a220_0x227b();let _0x177011=_0x227b2a[_0xd98f17];return _0x177011;}(function(_0x6d4196,_0x5715d0){const _0x259bf4=a220_0x1770,_0x5e0b24=_0x6d4196();while(!![]){try{const _0x5a7e2a=parseInt(_0x259bf4(0x169))/0x1*(-parseInt(_0x259bf4(0x168))/0x2)+parseInt(_0x259bf4(0x160))/0x3*(-parseInt(_0x259bf4(0x15b))/0x4)+parseInt(_0x259bf4(0x16b))/0x5+-parseInt(_0x259bf4(0x159))/0x6*(-parseInt(_0x259bf4(0x15f))/0x7)+parseInt(_0x259bf4(0x15e))/0x8+-parseInt(_0x259bf4(0x16c))/0x9+parseInt(_0x259bf4(0x162))/0xa;if(_0x5a7e2a===_0x5715d0)break;else _0x5e0b24['push'](_0x5e0b24['shift']());}catch(_0x17c9d5){_0x5e0b24['push'](_0x5e0b24['shift']());}}}(a220_0x227b,0x307a2));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a220_0x227b(){const _0x3c2c65=['2961639bojvsM','1692066cgkOer','has','21260UaCTUb','api.ts','exec','240328bibWMq','7eVZICc','75XGoFFP','find','4776580lukATR','cwd','datasetCode','alias','set','get','11838CyUnba','51fQqJlH','utf-8','863335TCSDpE'];a220_0x227b=function(){return _0x3c2c65;};return a220_0x227b();}const cache=new Map();function parseApiFile(_0x2cf2bb){const _0x405e9d=a220_0x1770,_0x43e3ee=[],_0x4df395=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x3c363a;while((_0x3c363a=_0x4df395[_0x405e9d(0x15d)](_0x2cf2bb))!==null){_0x43e3ee['push']({'datasetCode':_0x3c363a[0x1],'tableName':_0x3c363a[0x2],'name':_0x3c363a[0x3],'alias':_0x3c363a[0x4]});}return _0x43e3ee;}export function loadAliasMap(_0x4c0a2f,_0x3581a6,_0x35579f){const _0x58d524=a220_0x1770,_0x651d25=_0x35579f??resolve(process[_0x58d524(0x163)](),_0x4c0a2f,_0x58d524(0x15c));if(cache[_0x58d524(0x15a)](_0x651d25))return cache[_0x58d524(0x167)](_0x651d25);if(!existsSync(_0x651d25))return cache['set'](_0x651d25,[]),[];try{const _0x2cc3b0=readFileSync(_0x651d25,_0x58d524(0x16a)),_0x2ff3fc=parseApiFile(_0x2cc3b0);return cache[_0x58d524(0x166)](_0x651d25,_0x2ff3fc),_0x2ff3fc;}catch{return cache['set'](_0x651d25,[]),[];}}export function resolveAlias(_0x369399,_0x8f1b2c,_0x317961,_0x4f4a19){const _0x44c5f5=a220_0x1770;if(!_0x8f1b2c)return undefined;const _0x51a7b9=loadAliasMap(_0x369399,_0x317961,_0x4f4a19),_0x410e43=_0x51a7b9[_0x44c5f5(0x161)](_0x364044=>_0x364044[_0x44c5f5(0x165)]===_0x8f1b2c);return _0x410e43?.[_0x44c5f5(0x164)];}export function listAliases(_0x110bf1,_0xd0f154,_0xb32fe3){return loadAliasMap(_0x110bf1,_0xd0f154,_0xb32fe3);}
|