@lovrabet/rabetbase-cli 2.4.6-beta.2 → 2.4.6
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/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 +3 -3
- package/skills/rabetbase/references/rabetbase-ocr.md +17 -2
- package/skills/rabetbase.manifest.json +3 -3
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x42f482=a206_0x477d;(function(_0x5b10bb,_0x299edf){const _0x3cbfe4=a206_0x477d,_0x38156d=_0x5b10bb();while(!![]){try{const _0x53b70c=-parseInt(_0x3cbfe4(0xb8))/0x1*(-parseInt(_0x3cbfe4(0xb1))/0x2)+parseInt(_0x3cbfe4(0xb2))/0x3*(parseInt(_0x3cbfe4(0xcc))/0x4)+-parseInt(_0x3cbfe4(0xd8))/0x5+-parseInt(_0x3cbfe4(0xb4))/0x6+-parseInt(_0x3cbfe4(0xcd))/0x7+-parseInt(_0x3cbfe4(0xd3))/0x8*(parseInt(_0x3cbfe4(0xd9))/0x9)+parseInt(_0x3cbfe4(0xc9))/0xa;if(_0x53b70c===_0x299edf)break;else _0x38156d['push'](_0x38156d['shift']());}catch(_0x599ebd){_0x38156d['push'](_0x38156d['shift']());}}}(a206_0x151e,0xa699c));function a206_0x477d(_0x21184f,_0x4b6283){_0x21184f=_0x21184f-0xb1;const _0x151e0b=a206_0x151e();let _0x477d4f=_0x151e0b[_0x21184f];return _0x477d4f;}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';function a206_0x151e(){const _0x232868=['defaultApp','app','filter','Risk\x20level','Target\x20environment','40yUTMNn','keys','env','string','number','1859440RAEhOO','1583163mPgwvA','locale','riskLevel','length','cookie','1316pWORlH','483cGWSlc','Access\x20key','5103936lXFSBK','Locale','trim','entries','1001AuSbSF','accessKey','inherit','pageSize','API\x20directory\x20path','defaultFormat','en-US','appcode','has','apps','zh-CN','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','apiDir','toLowerCase','map','Auth\x20cookie','Default\x20page\x20size','17285210bDXYyS','join','format','14328tJKfHI','1255842ASapnY'];a206_0x151e=function(){return _0x232868;};return a206_0x151e();}export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a206_0x42f482(0xb9),a206_0x42f482(0xda),a206_0x42f482(0xcb),a206_0x42f482(0xdb)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a206_0x42f482(0xbf),a206_0x42f482(0xd5),a206_0x42f482(0xda),a206_0x42f482(0xcb),a206_0x42f482(0xdd),'accessKey',a206_0x42f482(0xc4)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0xae2c7d){const _0x526501=a206_0x42f482;return[..._0xae2c7d][_0x526501(0xca)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x70425b){const _0x462e7c=a206_0x42f482;return TOP_LEVEL_CONFIG_KEYS[_0x462e7c(0xc0)](_0x70425b);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a206_0x42f482(0xd5),'apiDir':a206_0x42f482(0xc4),'cookie':a206_0x42f482(0xdd),'accessKey':a206_0x42f482(0xb9),'defaultFormat':'format','pageSize':a206_0x42f482(0xbb),'riskLevel':'riskLevel','locale':a206_0x42f482(0xda)};export function getAppProfileFlagDefs(){const _0xfe58a8=a206_0x42f482;return[{'name':_0xfe58a8(0xd5),'type':'string','description':_0xfe58a8(0xd2),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0xfe58a8(0xc4),'type':'string','description':_0xfe58a8(0xbc)},{'name':_0xfe58a8(0xdd),'type':_0xfe58a8(0xd6),'description':_0xfe58a8(0xc7),'hidden':!![]},{'name':_0xfe58a8(0xb9),'type':_0xfe58a8(0xd6),'description':_0xfe58a8(0xb3),'hidden':!![]},{'name':_0xfe58a8(0xbd),'type':_0xfe58a8(0xd6),'description':_0xfe58a8(0xc3),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0xfe58a8(0xbb),'type':_0xfe58a8(0xd7),'description':_0xfe58a8(0xc8)},{'name':_0xfe58a8(0xdb),'type':_0xfe58a8(0xd6),'description':_0xfe58a8(0xd1),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0xfe58a8(0xd6),'description':_0xfe58a8(0xb5)}];}export function collectAppProfileOverrides(_0x13a9c5){const _0x2ea547=a206_0x42f482,_0x128b97={};for(const [_0xe8f48a,_0x3e4c5e]of Object[_0x2ea547(0xb7)](APP_PROFILE_FLAG_KEY_MAP)){const _0x177df3=_0x13a9c5(_0xe8f48a);if(!_0x177df3)continue;_0x128b97[_0x3e4c5e]=_0x3e4c5e===_0x2ea547(0xbb)?Number(_0x177df3):_0x177df3;}return _0x128b97;}export function buildAppProfileListFields(_0x14d26b){const _0x7c914e=a206_0x42f482;return{'env':_0x14d26b[_0x7c914e(0xd5)]??null,'apiDir':_0x14d26b[_0x7c914e(0xc4)]??null,'hasCookie':!!_0x14d26b[_0x7c914e(0xdd)],'hasAccessKey':!!_0x14d26b['accessKey'],'format':_0x14d26b[_0x7c914e(0xcb)]??null,'pageSize':_0x14d26b[_0x7c914e(0xbb)]??null,'riskLevel':_0x14d26b['riskLevel']??null,'locale':_0x14d26b[_0x7c914e(0xda)]??null};}export function buildAppDoctorFields(_0x3322de,_0x3f8abb){const _0x2ced59=a206_0x42f482;return{'env':{'value':_0x3322de[_0x2ced59(0xd5)]||_0x3f8abb['env'],'source':_0x3322de['env']?_0x2ced59(0xcf):'inherit'},'apiDir':{'value':_0x3322de[_0x2ced59(0xc4)]||_0x3f8abb[_0x2ced59(0xc4)],'source':_0x3322de[_0x2ced59(0xc4)]?'app':_0x2ced59(0xba)},'cookie':{'value':_0x3322de['cookie']||_0x3f8abb[_0x2ced59(0xdd)],'source':_0x3322de['cookie']?_0x2ced59(0xcf):_0x2ced59(0xba)},'accessKey':{'value':_0x3322de['accessKey']||_0x3f8abb['accessKey'],'source':_0x3322de['accessKey']?_0x2ced59(0xcf):'inherit'}};}export function buildCanonicalAppConfig(_0x29898e,_0x520a1e){const _0x5c6c90=a206_0x42f482,_0x17396b=_0x29898e[_0x5c6c90(0xc6)](_0x4aa1c7=>String(_0x4aa1c7||'')[_0x5c6c90(0xb6)]())[_0x5c6c90(0xd0)](Boolean);if(_0x17396b[_0x5c6c90(0xdc)]===0x0)return{};const _0x384a42={};for(const _0x22b8ff of _0x17396b){_0x384a42[_0x22b8ff]=_0x520a1e?{'appcode':_0x22b8ff,'env':_0x520a1e}:{'appcode':_0x22b8ff};}return{'apps':_0x384a42,'defaultApp':_0x17396b[0x0]};}export function buildCanonicalProjectConfig(_0x2880a3,_0x2e13bf){const _0x541859=a206_0x42f482,{appCodes:appCodes=[],env:_0xb32ac7,metadata:_0x127eb6}=_0x2e13bf,_0x591218={..._0x2880a3,..._0x127eb6||{}};delete _0x591218['appcode'],delete _0x591218[_0x541859(0xcf)];if(_0xb32ac7)_0x591218[_0x541859(0xd5)]=_0xb32ac7;else!_0x591218['env']&&(_0x591218[_0x541859(0xd5)]=DEFAULT_CONFIG_VALUES[_0x541859(0xd5)]);const _0x3ba45e=buildCanonicalAppConfig(appCodes,_0x591218[_0x541859(0xd5)]);return Object[_0x541859(0xd4)](_0x3ba45e)['length']>0x0&&(_0x591218[_0x541859(0xc1)]=_0x3ba45e[_0x541859(0xc1)],_0x591218[_0x541859(0xce)]=_0x3ba45e[_0x541859(0xce)]),_0x591218;}const LOCALE_MAP={'zh':a206_0x42f482(0xc2),'zh-cn':a206_0x42f482(0xc2),'zh_cn':a206_0x42f482(0xc2),'en':a206_0x42f482(0xbe),'en-us':a206_0x42f482(0xbe),'en_us':a206_0x42f482(0xbe)};export function normalizeLocale(_0x366b81){const _0x522de3=a206_0x42f482;if(!_0x366b81)return null;return LOCALE_MAP[_0x366b81[_0x522de3(0xc5)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a207_0x4d16(){const _0x58cfaa=['10kcunjF','352324tNibUm','1697773MLLvOM','1129278vStllJ','5402772wjDfRm','30XMghuN','8EoXZay','1hhjRfu','https://g.lovrabet.com/dist/rabetbase-cli','15IabeNf','367742LfMIZc','2541519AUxNtI','1781241jopJgh'];a207_0x4d16=function(){return _0x58cfaa;};return a207_0x4d16();}const a207_0x3a929b=a207_0x16a2;(function(_0x5ac538,_0x226912){const _0x216bd0=a207_0x16a2,_0x2c8754=_0x5ac538();while(!![]){try{const _0x44d469=parseInt(_0x216bd0(0x125))/0x1*(parseInt(_0x216bd0(0x128))/0x2)+-parseInt(_0x216bd0(0x127))/0x3*(parseInt(_0x216bd0(0x11f))/0x4)+parseInt(_0x216bd0(0x11e))/0x5*(-parseInt(_0x216bd0(0x121))/0x6)+parseInt(_0x216bd0(0x12a))/0x7+-parseInt(_0x216bd0(0x124))/0x8*(parseInt(_0x216bd0(0x129))/0x9)+parseInt(_0x216bd0(0x123))/0xa*(parseInt(_0x216bd0(0x120))/0xb)+parseInt(_0x216bd0(0x122))/0xc;if(_0x44d469===_0x226912)break;else _0x2c8754['push'](_0x2c8754['shift']());}catch(_0x262271){_0x2c8754['push'](_0x2c8754['shift']());}}}(a207_0x4d16,0x3d9d4));export const RABETBASE_CDN_BASE_URL=a207_0x3a929b(0x126);function a207_0x16a2(_0x5ba31a,_0xfcc6b4){_0x5ba31a=_0x5ba31a-0x11e;const _0x4d164d=a207_0x4d16();let _0x16a2f2=_0x4d164d[_0x5ba31a];return _0x16a2f2;}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a208_0x2f1edb=a208_0x5708;(function(_0x44dbb8,_0x2b94fd){const _0x43feed=a208_0x5708,_0x7e7121=_0x44dbb8();while(!![]){try{const _0x262b8b=parseInt(_0x43feed(0x245))/0x1*(parseInt(_0x43feed(0x207))/0x2)+parseInt(_0x43feed(0x229))/0x3+parseInt(_0x43feed(0x1d8))/0x4*(-parseInt(_0x43feed(0x1cc))/0x5)+-parseInt(_0x43feed(0x1df))/0x6*(parseInt(_0x43feed(0x1f7))/0x7)+parseInt(_0x43feed(0x1e1))/0x8*(parseInt(_0x43feed(0x220))/0x9)+-parseInt(_0x43feed(0x225))/0xa+parseInt(_0x43feed(0x231))/0xb*(parseInt(_0x43feed(0x235))/0xc);if(_0x262b8b===_0x2b94fd)break;else _0x7e7121['push'](_0x7e7121['shift']());}catch(_0x34fb55){_0x7e7121['push'](_0x7e7121['shift']());}}}(a208_0x1b56,0x6cabb));export const CLI_BIN_NAME=a208_0x2f1edb(0x1e5);export const CLI_DISPLAY_NAME=a208_0x2f1edb(0x1e3);function a208_0x5708(_0x2072ad,_0xdcccd0){_0x2072ad=_0x2072ad-0x1c6;const _0x1b5611=a208_0x1b56();let _0x570878=_0x1b5611[_0x2072ad];return _0x570878;}function a208_0x1b56(){const _0x45248d=['sql','enableBffSave','output','12FmDHHi','Watch\x20mode','DB\x20ID','enable-bff-save','functionNode','Output\x20format','dry-run','target','meowKey','SQL\x20string','nonInteractive','Read\x20value\x20from\x20environment\x20variable','fromEnv','datasetcode','file','verbose','84PdEiPy','yes','name','<name>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Tags','Function\x20node','description','expected-children-count','25vwylUH','Record\x20ID','json\x20|\x20pretty\x20|\x20compress','params','parentId','Use\x20project\x20config\x20scope','Config\x20value','title','Override\x20appcode','production\x20|\x20daily','Asynchronous\x20task\x20ID','SQL\x20code','295600jQYZRy','label','expectParentId','boolean','help','descriptionFile','operation','13326vvEEEr','page','7042600eNoFpc','code','Rabetbase\x20CLI','expectedCount','rabetbase','description-file','Title','skipImports','key','expectPath','app','sqlcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','tags','Show\x20help','parent-id','all','watch','confirm','Target\x20path','Use\x20global\x20config\x20scope','Keyword\x20filter','2429cjaRwn','<code>','Description\x20file','string','Use\x20remote','clear','from-env','function-node','type','Skip\x20import\x20generation','Reveal\x20sensitive\x20value','fromEntries','dryRun','Dataset\x20code','menuIds','Confirm\x20destructive\x20action','3606QwVEJa','Schemas','db-id','pagesize','dbid','format','JSON\x20params','sqlName','Preview\x20operation\x20without\x20executing','sqlname','taskId','sql-name','Type\x20filter','force','Name','menu-ids','Apply\x20to\x20all','Operation\x20type','Expected\x20affected\x20count','schemas','remote','sort','keyword','Enable\x20BFF\x20save','expect-parent-id','9yvTbdh','global','SQL\x20name','Parent\x20menu\x20id','Expected\x20current\x20menu\x20path','7035700BqFmdr','Force\x20overwrite','Verbose\x20output','expect-path','2139924bDXXWB','env','Config\x20key','appcode','expected-count','non-interactive','value','project','5981657lLtzIw'];a208_0x1b56=function(){return _0x45248d;};return a208_0x1b56();}export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a208_0x2f1edb(0x22c),'meowKey':a208_0x2f1edb(0x22c),'type':'string','description':a208_0x2f1edb(0x1d4),'hint':a208_0x2f1edb(0x1f8)},{'name':a208_0x2f1edb(0x1eb),'meowKey':a208_0x2f1edb(0x1eb),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a208_0x2f1edb(0x1c6)},{'name':a208_0x2f1edb(0x22a),'meowKey':a208_0x2f1edb(0x22a),'type':a208_0x2f1edb(0x1fa),'description':'Environment','hint':a208_0x2f1edb(0x1d5)},{'name':'format','meowKey':'format','type':'string','description':a208_0x2f1edb(0x23a),'hint':a208_0x2f1edb(0x1ce)},{'name':'jq','meowKey':'jq','type':'string','description':a208_0x2f1edb(0x1c7),'hint':'<expr>'},{'name':a208_0x2f1edb(0x23b),'meowKey':a208_0x2f1edb(0x203),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x20f)},{'name':a208_0x2f1edb(0x246),'meowKey':a208_0x2f1edb(0x246),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x1ed)},{'name':a208_0x2f1edb(0x22e),'meowKey':a208_0x2f1edb(0x23f),'type':a208_0x2f1edb(0x1db),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a208_0x2f1edb(0x221),'meowKey':a208_0x2f1edb(0x221),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x1f5)},{'name':a208_0x2f1edb(0x230),'meowKey':a208_0x2f1edb(0x230),'type':'boolean','description':a208_0x2f1edb(0x1d1)},{'name':'ci','meowKey':'ci','type':a208_0x2f1edb(0x1db),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a208_0x2f1edb(0x1dc),'meowKey':a208_0x2f1edb(0x1dc),'type':'boolean','description':a208_0x2f1edb(0x1ef)},{'name':a208_0x2f1edb(0x247),'meowKey':a208_0x2f1edb(0x247),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x215),'hidden':!![]},{'name':a208_0x2f1edb(0x1d3),'meowKey':'title','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1e7),'hidden':!![]},{'name':a208_0x2f1edb(0x1fc),'meowKey':a208_0x2f1edb(0x1fc),'type':a208_0x2f1edb(0x1db),'description':'Clear','hidden':!![]},{'name':a208_0x2f1edb(0x1f2),'meowKey':a208_0x2f1edb(0x1f2),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x236),'hidden':!![]},{'name':'output','meowKey':a208_0x2f1edb(0x234),'type':a208_0x2f1edb(0x1fa),'description':'Output\x20path','hidden':!![]},{'name':a208_0x2f1edb(0x1cf),'meowKey':'params','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x20d),'hidden':!![]},{'name':a208_0x2f1edb(0x242),'meowKey':a208_0x2f1edb(0x242),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x204),'hidden':!![]},{'name':a208_0x2f1edb(0x1f1),'meowKey':a208_0x2f1edb(0x1f1),'type':'boolean','description':a208_0x2f1edb(0x217),'hidden':!![]},{'name':a208_0x2f1edb(0x238),'meowKey':a208_0x2f1edb(0x233),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x21e),'hidden':!![]},{'name':'id','meowKey':'id','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1cd),'hidden':!![]},{'name':a208_0x2f1edb(0x1ff),'meowKey':'type','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x213),'hidden':!![]},{'name':a208_0x2f1edb(0x243),'meowKey':a208_0x2f1edb(0x243),'type':a208_0x2f1edb(0x1fa),'description':'File\x20path','hidden':!![]},{'name':a208_0x2f1edb(0x1ec),'meowKey':a208_0x2f1edb(0x1ec),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1d7),'hidden':!![]},{'name':a208_0x2f1edb(0x212),'meowKey':a208_0x2f1edb(0x20e),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x222),'hidden':!![]},{'name':a208_0x2f1edb(0x210),'meowKey':a208_0x2f1edb(0x210),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a208_0x2f1edb(0x209),'meowKey':'dbId','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x237),'hidden':!![]},{'name':a208_0x2f1edb(0x20b),'meowKey':a208_0x2f1edb(0x20b),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x237),'hidden':!![]},{'name':a208_0x2f1edb(0x1ca),'meowKey':'description','type':a208_0x2f1edb(0x1fa),'description':'Description','hidden':!![]},{'name':a208_0x2f1edb(0x1e6),'meowKey':a208_0x2f1edb(0x1dd),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1f9),'hidden':!![]},{'name':'page','meowKey':a208_0x2f1edb(0x1e0),'type':a208_0x2f1edb(0x1fa),'description':'Page\x20number','hidden':!![]},{'name':a208_0x2f1edb(0x20a),'meowKey':a208_0x2f1edb(0x20a),'type':a208_0x2f1edb(0x1fa),'description':'Page\x20size','hidden':!![]},{'name':a208_0x2f1edb(0x21d),'meowKey':a208_0x2f1edb(0x21d),'type':'string','description':a208_0x2f1edb(0x1f6),'hidden':!![]},{'name':a208_0x2f1edb(0x1e2),'meowKey':a208_0x2f1edb(0x1e2),'type':a208_0x2f1edb(0x1fa),'description':'Code\x20filter','hidden':!![]},{'name':a208_0x2f1edb(0x232),'meowKey':a208_0x2f1edb(0x232),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x23e),'hidden':!![]},{'name':a208_0x2f1edb(0x21a),'meowKey':'schemas','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x208),'hidden':!![]},{'name':a208_0x2f1edb(0x1de),'meowKey':a208_0x2f1edb(0x1de),'type':a208_0x2f1edb(0x1fa),'description':'Operation\x20type','hidden':!![]},{'name':'target','meowKey':a208_0x2f1edb(0x23c),'type':'string','description':a208_0x2f1edb(0x1f4),'hidden':!![]},{'name':'skip-imports','meowKey':a208_0x2f1edb(0x1e8),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x200),'hidden':!![]},{'name':a208_0x2f1edb(0x1e9),'meowKey':'key','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x22b),'hidden':!![]},{'name':a208_0x2f1edb(0x22f),'meowKey':a208_0x2f1edb(0x22f),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1d2),'hidden':!![]},{'name':a208_0x2f1edb(0x1ee),'meowKey':a208_0x2f1edb(0x1ee),'type':'string','description':a208_0x2f1edb(0x1c8),'hidden':!![]},{'name':'stdin','meowKey':'stdin','type':a208_0x2f1edb(0x1db),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a208_0x2f1edb(0x1fd),'meowKey':a208_0x2f1edb(0x241),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x240),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x201),'hidden':!![]},{'name':a208_0x2f1edb(0x214),'meowKey':a208_0x2f1edb(0x214),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x226),'hidden':!![]},{'name':a208_0x2f1edb(0x1f3),'meowKey':a208_0x2f1edb(0x1f3),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x206),'hidden':!![]},{'name':a208_0x2f1edb(0x21b),'meowKey':a208_0x2f1edb(0x21b),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x1fb),'hidden':!![]},{'name':a208_0x2f1edb(0x244),'meowKey':'verbose','type':'boolean','description':a208_0x2f1edb(0x227),'hidden':!![]},{'name':a208_0x2f1edb(0x22d),'meowKey':a208_0x2f1edb(0x1e4),'type':'string','description':a208_0x2f1edb(0x219),'hidden':!![]},{'name':a208_0x2f1edb(0x1d9),'meowKey':a208_0x2f1edb(0x1d9),'type':a208_0x2f1edb(0x1fa),'description':'Menu\x20label','hidden':!![]},{'name':a208_0x2f1edb(0x1f0),'meowKey':a208_0x2f1edb(0x1d0),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x223),'hidden':!![]},{'name':a208_0x2f1edb(0x21c),'meowKey':'sort','type':a208_0x2f1edb(0x1fa),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a208_0x2f1edb(0x21f),'meowKey':a208_0x2f1edb(0x1da),'type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a208_0x2f1edb(0x228),'meowKey':a208_0x2f1edb(0x1ea),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x224),'hidden':!![]},{'name':a208_0x2f1edb(0x1cb),'meowKey':'expectedChildrenCount','type':a208_0x2f1edb(0x1fa),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a208_0x2f1edb(0x216),'meowKey':a208_0x2f1edb(0x205),'type':a208_0x2f1edb(0x1fa),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a208_0x2f1edb(0x211),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1d6),'hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x218),'hidden':!![]},{'name':a208_0x2f1edb(0x1fe),'meowKey':a208_0x2f1edb(0x239),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1c9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a208_0x2f1edb(0x22c),a208_0x2f1edb(0x1eb),a208_0x2f1edb(0x22a),a208_0x2f1edb(0x20c),'jq','dry-run',a208_0x2f1edb(0x246),a208_0x2f1edb(0x22e),'ci']);export function buildMeowFlags(){const _0xb60fb5=a208_0x2f1edb;return Object[_0xb60fb5(0x202)](GLOBAL_FLAGS['map'](_0x5a1345=>[_0x5a1345[_0xb60fb5(0x23d)],{'type':_0x5a1345[_0xb60fb5(0x1ff)]}]));}
|
|
1
|
+
const a208_0x2c4aec=a208_0x9c3b;(function(_0x8cd1e5,_0x24edc5){const _0x4b9222=a208_0x9c3b,_0xbacf2=_0x8cd1e5();while(!![]){try{const _0x14e749=parseInt(_0x4b9222(0x21d))/0x1+-parseInt(_0x4b9222(0x1e5))/0x2*(-parseInt(_0x4b9222(0x1c5))/0x3)+-parseInt(_0x4b9222(0x23b))/0x4+-parseInt(_0x4b9222(0x207))/0x5*(parseInt(_0x4b9222(0x212))/0x6)+-parseInt(_0x4b9222(0x1da))/0x7*(-parseInt(_0x4b9222(0x206))/0x8)+-parseInt(_0x4b9222(0x223))/0x9*(parseInt(_0x4b9222(0x1cd))/0xa)+-parseInt(_0x4b9222(0x1d2))/0xb*(-parseInt(_0x4b9222(0x22b))/0xc);if(_0x14e749===_0x24edc5)break;else _0xbacf2['push'](_0xbacf2['shift']());}catch(_0x588dec){_0xbacf2['push'](_0xbacf2['shift']());}}}(a208_0x2fb0,0xccc9d));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a208_0x2c4aec(0x232);export const GLOBAL_FLAGS=[{'name':a208_0x2c4aec(0x220),'meowKey':a208_0x2c4aec(0x220),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x22e),'hint':a208_0x2c4aec(0x1e3)},{'name':a208_0x2c4aec(0x222),'meowKey':a208_0x2c4aec(0x222),'type':'string','description':a208_0x2c4aec(0x237),'hint':a208_0x2c4aec(0x216)},{'name':a208_0x2c4aec(0x204),'meowKey':a208_0x2c4aec(0x204),'type':a208_0x2c4aec(0x23c),'description':'Environment','hint':a208_0x2c4aec(0x1e7)},{'name':'format','meowKey':a208_0x2c4aec(0x1e2),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1f3),'hint':a208_0x2c4aec(0x20b)},{'name':'jq','meowKey':'jq','type':a208_0x2c4aec(0x23c),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a208_0x2c4aec(0x22a)},{'name':a208_0x2c4aec(0x1ed),'meowKey':a208_0x2c4aec(0x1ec),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x1cc)},{'name':'yes','meowKey':'yes','type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x240)},{'name':a208_0x2c4aec(0x1fc),'meowKey':a208_0x2c4aec(0x1d7),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x209)},{'name':a208_0x2c4aec(0x231),'meowKey':a208_0x2c4aec(0x231),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x227)},{'name':a208_0x2c4aec(0x1fe),'meowKey':'project','type':a208_0x2c4aec(0x1fa),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x235),'hidden':!![]},{'name':'help','meowKey':a208_0x2c4aec(0x210),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x20d)},{'name':a208_0x2c4aec(0x1ff),'meowKey':a208_0x2c4aec(0x1ff),'type':'string','description':a208_0x2c4aec(0x236),'hidden':!![]},{'name':a208_0x2c4aec(0x22d),'meowKey':'title','type':'string','description':a208_0x2c4aec(0x219),'hidden':!![]},{'name':a208_0x2c4aec(0x238),'meowKey':'clear','type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x229),'hidden':!![]},{'name':a208_0x2c4aec(0x1ef),'meowKey':a208_0x2c4aec(0x1ef),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x214),'hidden':!![]},{'name':a208_0x2c4aec(0x1e4),'meowKey':a208_0x2c4aec(0x1e4),'type':'string','description':a208_0x2c4aec(0x22f),'hidden':!![]},{'name':a208_0x2c4aec(0x22c),'meowKey':a208_0x2c4aec(0x22c),'type':'string','description':a208_0x2c4aec(0x23a),'hidden':!![]},{'name':'datasetcode','meowKey':a208_0x2c4aec(0x233),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1f2),'hidden':!![]},{'name':a208_0x2c4aec(0x241),'meowKey':a208_0x2c4aec(0x241),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':a208_0x2c4aec(0x230),'meowKey':a208_0x2c4aec(0x225),'type':a208_0x2c4aec(0x1fa),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1ce),'hidden':!![]},{'name':a208_0x2c4aec(0x224),'meowKey':a208_0x2c4aec(0x224),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x201),'hidden':!![]},{'name':a208_0x2c4aec(0x21f),'meowKey':a208_0x2c4aec(0x21f),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x24c),'hidden':!![]},{'name':a208_0x2c4aec(0x1d9),'meowKey':a208_0x2c4aec(0x1d9),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x21a),'hidden':!![]},{'name':a208_0x2c4aec(0x1e8),'meowKey':'sqlName','type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1fd),'hidden':!![]},{'name':a208_0x2c4aec(0x1f7),'meowKey':a208_0x2c4aec(0x1f7),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1fd),'hidden':!![]},{'name':a208_0x2c4aec(0x21c),'meowKey':a208_0x2c4aec(0x1f1),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x23f),'hidden':!![]},{'name':a208_0x2c4aec(0x1dc),'meowKey':a208_0x2c4aec(0x1dc),'type':a208_0x2c4aec(0x23c),'description':'DB\x20ID','hidden':!![]},{'name':a208_0x2c4aec(0x217),'meowKey':a208_0x2c4aec(0x217),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x203),'hidden':!![]},{'name':a208_0x2c4aec(0x200),'meowKey':a208_0x2c4aec(0x1f9),'type':'string','description':a208_0x2c4aec(0x245),'hidden':!![]},{'name':a208_0x2c4aec(0x1fb),'meowKey':'page','type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x246),'hidden':!![]},{'name':a208_0x2c4aec(0x226),'meowKey':a208_0x2c4aec(0x226),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x20e),'hidden':!![]},{'name':a208_0x2c4aec(0x1c9),'meowKey':a208_0x2c4aec(0x1c9),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1f8),'hidden':!![]},{'name':a208_0x2c4aec(0x1e9),'meowKey':a208_0x2c4aec(0x1e9),'type':'string','description':a208_0x2c4aec(0x1e1),'hidden':!![]},{'name':a208_0x2c4aec(0x1d5),'meowKey':'sql','type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1cb),'hidden':!![]},{'name':a208_0x2c4aec(0x249),'meowKey':a208_0x2c4aec(0x249),'type':a208_0x2c4aec(0x23c),'description':'Schemas','hidden':!![]},{'name':a208_0x2c4aec(0x1d4),'meowKey':a208_0x2c4aec(0x1d4),'type':a208_0x2c4aec(0x23c),'description':'Operation\x20type','hidden':!![]},{'name':a208_0x2c4aec(0x1dd),'meowKey':a208_0x2c4aec(0x1dd),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x21e),'hidden':!![]},{'name':a208_0x2c4aec(0x1f5),'meowKey':a208_0x2c4aec(0x234),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x1c6),'hidden':!![]},{'name':'key','meowKey':a208_0x2c4aec(0x202),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x21b),'hidden':!![]},{'name':'value','meowKey':a208_0x2c4aec(0x1f4),'type':a208_0x2c4aec(0x23c),'description':'Config\x20value','hidden':!![]},{'name':a208_0x2c4aec(0x20c),'meowKey':a208_0x2c4aec(0x20c),'type':a208_0x2c4aec(0x23c),'description':'Tags','hidden':!![]},{'name':a208_0x2c4aec(0x1d3),'meowKey':a208_0x2c4aec(0x1d3),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x221),'hidden':!![]},{'name':a208_0x2c4aec(0x1c8),'meowKey':'fromEnv','type':a208_0x2c4aec(0x23c),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a208_0x2c4aec(0x1f6),'meowKey':a208_0x2c4aec(0x1f6),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x218),'hidden':!![]},{'name':a208_0x2c4aec(0x1f0),'meowKey':a208_0x2c4aec(0x1f0),'type':'boolean','description':'Force\x20overwrite','hidden':!![]},{'name':a208_0x2c4aec(0x1cf),'meowKey':a208_0x2c4aec(0x1cf),'type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a208_0x2c4aec(0x1ee),'meowKey':a208_0x2c4aec(0x1ee),'type':a208_0x2c4aec(0x1fa),'description':a208_0x2c4aec(0x205),'hidden':!![]},{'name':'verbose','meowKey':a208_0x2c4aec(0x228),'type':'boolean','description':a208_0x2c4aec(0x1eb),'hidden':!![]},{'name':'expected-count','meowKey':a208_0x2c4aec(0x1e6),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x248),'hidden':!![]},{'name':a208_0x2c4aec(0x24a),'meowKey':a208_0x2c4aec(0x24a),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x208),'hidden':!![]},{'name':a208_0x2c4aec(0x242),'meowKey':a208_0x2c4aec(0x1df),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1e0),'hidden':!![]},{'name':'sort','meowKey':a208_0x2c4aec(0x1c7),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x20a),'hidden':!![]},{'name':a208_0x2c4aec(0x24b),'meowKey':'expectParentId','type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x247),'hidden':!![]},{'name':a208_0x2c4aec(0x1de),'meowKey':'expectPath','type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x243),'hidden':!![]},{'name':a208_0x2c4aec(0x1db),'meowKey':a208_0x2c4aec(0x213),'type':'string','description':a208_0x2c4aec(0x23d),'hidden':!![]},{'name':a208_0x2c4aec(0x1ca),'meowKey':a208_0x2c4aec(0x20f),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1d8),'hidden':!![]},{'name':a208_0x2c4aec(0x1d1),'meowKey':a208_0x2c4aec(0x215),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x1d6),'hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a208_0x2c4aec(0x23c),'description':'Operation\x20type','hidden':!![]},{'name':a208_0x2c4aec(0x1d0),'meowKey':a208_0x2c4aec(0x1ea),'type':a208_0x2c4aec(0x23c),'description':a208_0x2c4aec(0x239),'hidden':!![]}];function a208_0x2fb0(){const _0xa2548a=['functionNode','Verbose\x20output','dryRun','dry-run','remote','watch','force','dbId','Dataset\x20code','Output\x20format','value','skip-imports','reveal','sqlname','Keyword\x20filter','descriptionFile','boolean','page','non-interactive','SQL\x20name','project','name','description-file','Type\x20filter','key','Description','env','Use\x20remote','63552dQWUDs','555sBkhXn','Menu\x20label','Force\x20non-interactive\x20mode\x20(CI)','Menu\x20sort\x20value','json\x20|\x20pretty\x20|\x20compress','tags','Show\x20help','Page\x20size','menuIds','help','meowKey','63078eWaqri','expectedChildrenCount','Watch\x20mode','taskId','<name>','description','Reveal\x20sensitive\x20value','Title','SQL\x20code','Config\x20key','db-id','74909MJoshm','Target\x20path','file','appcode','Read\x20value\x20from\x20stdin','app','270rZBtyj','type','enableBffSave','pagesize','Use\x20global\x20config\x20scope','verbose','Clear','<expr>','552tPyoNi','params','title','Override\x20appcode','Output\x20path','enable-bff-save','global','@lovrabet/rabetbase-cli','datasetcode','skipImports','Alias\x20for\x20--non-interactive','Name','Select\x20app\x20profile\x20by\x20name','clear','Function\x20node','JSON\x20params','1960108FCjsHC','string','Expected\x20current\x20child\x20count','fromEntries','DB\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','all','parent-id','Expected\x20current\x20menu\x20path','yes','Description\x20file','Page\x20number','Expected\x20current\x20parent\x20menu\x20id','Expected\x20affected\x20count','schemas','label','expect-parent-id','File\x20path','35718OBAYkZ','Skip\x20import\x20generation','sort','from-env','keyword','menu-ids','SQL\x20string','Preview\x20operation\x20without\x20executing','14040PKYRak','Record\x20ID','confirm','function-node','task-id','581383ucedkA','stdin','operation','sql','Asynchronous\x20task\x20ID','nonInteractive','Comma-separated\x20menu\x20IDs','sqlcode','7tWhqAx','expected-children-count','dbid','target','expect-path','parentId','Parent\x20menu\x20id','Code\x20filter','format','<code>','output','4ogMTbX','expectedCount','production\x20|\x20daily','sql-name','code'];a208_0x2fb0=function(){return _0xa2548a;};return a208_0x2fb0();}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a208_0x2c4aec(0x222),a208_0x2c4aec(0x204),a208_0x2c4aec(0x1e2),'jq',a208_0x2c4aec(0x1ed),a208_0x2c4aec(0x244),a208_0x2c4aec(0x1fc),'ci']);function a208_0x9c3b(_0x4d801d,_0x58f2b5){_0x4d801d=_0x4d801d-0x1c5;const _0x2fb0d1=a208_0x2fb0();let _0x9c3bdf=_0x2fb0d1[_0x4d801d];return _0x9c3bdf;}export function buildMeowFlags(){const _0x5c5935=a208_0x2c4aec;return Object[_0x5c5935(0x23e)](GLOBAL_FLAGS['map'](_0x2a496c=>[_0x2a496c[_0x5c5935(0x211)],{'type':_0x2a496c[_0x5c5935(0x224)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a209_0x5b1d(){const _0x178575=['2170359iccKsV','compress','24528380KozgnU','8466YQvjoV','en-US','4715ebzGYo','582844kTOLnA','81ivLuSZ','production','9301607Pugpvk','write','472280pulxVY','10804SjMeOF','264xsFjQp'];a209_0x5b1d=function(){return _0x178575;};return a209_0x5b1d();}const a209_0x462055=a209_0x1595;(function(_0x38d5a1,_0x56f082){const _0x5d6ddd=a209_0x1595,_0x281c89=_0x38d5a1();while(!![]){try{const _0x34b39c=-parseInt(_0x5d6ddd(0x1ed))/0x1*(-parseInt(_0x5d6ddd(0x1ee))/0x2)+-parseInt(_0x5d6ddd(0x1ef))/0x3+-parseInt(_0x5d6ddd(0x1e7))/0x4+parseInt(_0x5d6ddd(0x1e6))/0x5*(-parseInt(_0x5d6ddd(0x1f2))/0x6)+-parseInt(_0x5d6ddd(0x1ea))/0x7+parseInt(_0x5d6ddd(0x1ec))/0x8*(parseInt(_0x5d6ddd(0x1e8))/0x9)+parseInt(_0x5d6ddd(0x1f1))/0xa;if(_0x34b39c===_0x56f082)break;else _0x281c89['push'](_0x281c89['shift']());}catch(_0x2d26eb){_0x281c89['push'](_0x281c89['shift']());}}}(a209_0x5b1d,0xd744f));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a209_0x462055(0x1e9),'format':a209_0x462055(0x1f0),'locale':a209_0x462055(0x1f3),'riskLevel':a209_0x462055(0x1eb),'apiDir':DEFAULT_API_DIR};function a209_0x1595(_0x5c219f,_0x31500f){_0x5c219f=_0x5c219f-0x1e6;const _0x5b1de1=a209_0x5b1d();let _0x159590=_0x5b1de1[_0x5c219f];return _0x159590;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a209_0x462055(0x1f0);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a210_0x520cb4=a210_0x8871;(function(_0xb2875e,_0x1dfcaa){const _0x3f4170=a210_0x8871,_0x10983d=_0xb2875e();while(!![]){try{const _0x315410=parseInt(_0x3f4170(0x19e))/0x1*(-parseInt(_0x3f4170(0x192))/0x2)+-parseInt(_0x3f4170(0x19f))/0x3+parseInt(_0x3f4170(0x197))/0x4+parseInt(_0x3f4170(0x19b))/0x5*(parseInt(_0x3f4170(0x1a2))/0x6)+parseInt(_0x3f4170(0x195))/0x7+-parseInt(_0x3f4170(0x194))/0x8*(parseInt(_0x3f4170(0x1a1))/0x9)+parseInt(_0x3f4170(0x19d))/0xa;if(_0x315410===_0x1dfcaa)break;else _0x10983d['push'](_0x10983d['shift']());}catch(_0x2a24ff){_0x10983d['push'](_0x10983d['shift']());}}}(a210_0x3b20,0x9bc6c));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x9caf24){const _0x42b0c4=a210_0x8871;customApiDomain=_0x9caf24?.['apiDomain'],customUserDomain=_0x9caf24?.[_0x42b0c4(0x198)],customRuntimeDomain=_0x9caf24?.[_0x42b0c4(0x19a)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a210_0x520cb4(0x193));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a210_0x520cb4(0x199));function a210_0x8871(_0x284994,_0x4d143d){_0x284994=_0x284994-0x192;const _0x3b2059=a210_0x3b20();let _0x8871ec=_0x3b2059[_0x284994];return _0x8871ec;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?a210_0x520cb4(0x196):'https://daily.lovrabet.com';function a210_0x3b20(){const _0x2fcc90=['https://app.lovrabet.com','1609124svsdBR','userDomain','https://daily-api.lovrabet.com','runtimeDomain','829415gKLrRU','trim','17732200WwkNPI','288xJLElh','2883513hikNBj','/app/','9HHGxSj','24VPmEwx','7960INEokY','https://user-daily.lovrabet.com','3339832qzwSof','2267419bnTnjN'];a210_0x3b20=function(){return _0x2fcc90;};return a210_0x3b20();}export const getAppBaseUrl=_0x21c084=>{const _0x1107d2=a210_0x520cb4,_0x2502c9=encodeURIComponent(_0x21c084[_0x1107d2(0x19c)]());return isProduction(getEnv())?getAppDomain()+_0x1107d2(0x1a0)+_0x2502c9:getAppDomain()+'/web-app/app/'+_0x2502c9;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a211_0x1d03(_0x179360,_0x129c0a){_0x179360=_0x179360-0x1e3;const _0x1cc182=a211_0x1cc1();let _0x1d032c=_0x1cc182[_0x179360];return _0x1d032c;}const a211_0x236120=a211_0x1d03;(function(_0x150368,_0x5739a7){const _0x3b64c8=a211_0x1d03,_0x6d9b30=_0x150368();while(!![]){try{const _0x45aab0=-parseInt(_0x3b64c8(0x1e4))/0x1+-parseInt(_0x3b64c8(0x1ee))/0x2*(-parseInt(_0x3b64c8(0x1ef))/0x3)+parseInt(_0x3b64c8(0x1e7))/0x4*(-parseInt(_0x3b64c8(0x1e6))/0x5)+parseInt(_0x3b64c8(0x1ea))/0x6*(parseInt(_0x3b64c8(0x1e9))/0x7)+parseInt(_0x3b64c8(0x1ec))/0x8*(-parseInt(_0x3b64c8(0x1eb))/0x9)+-parseInt(_0x3b64c8(0x1ed))/0xa+parseInt(_0x3b64c8(0x1e8))/0xb;if(_0x45aab0===_0x5739a7)break;else _0x6d9b30['push'](_0x6d9b30['shift']());}catch(_0x2bd446){_0x6d9b30['push'](_0x6d9b30['shift']());}}}(a211_0x1cc1,0x9d253));export const RABETBASE_ENV_VALUES=[a211_0x236120(0x1e5),a211_0x236120(0x1e3)];export function normalizeEnv(_0x4a915b){const _0x33a097=a211_0x236120;return _0x4a915b==='online'?_0x33a097(0x1e5):_0x4a915b;}export function isProduction(_0x4b3ae8){const _0x143a19=a211_0x236120;return normalizeEnv(_0x4b3ae8)===_0x143a19(0x1e5);}export function isDaily(_0x40f4e8){return normalizeEnv(_0x40f4e8)==='daily';}function a211_0x1cc1(){const _0x53d84a=['3725490VQeqxI','439836skfrwc','9tgdtHy','daily','638834xcDjXk','production','84855EYjPip','252VDGqaF','17700749ktDNKM','7QIwNaY','4766478nLUjnv','9QbPLws','2712824HTXxdf'];a211_0x1cc1=function(){return _0x53d84a;};return a211_0x1cc1();}export function isDev(_0x534d1d){const _0x1c58b1=normalizeEnv(_0x534d1d);return _0x1c58b1==='development'||_0x1c58b1==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a211_0x236120(0x1e5));export function getEnv(){return env;}export function initEnv(_0x479df4){env=normalizeEnv(_0x479df4);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a212_0x2c4b(){const _0x453ccc=['7FJLbKe','5224635khQojE','json','668641VfXPNh','11331639UDUGzP','compress','pretty','1724190qAvrLc','2444236kEHsDG','6054704cbgZFw','10lFcErm','2163590YvySai'];a212_0x2c4b=function(){return _0x453ccc;};return a212_0x2c4b();}function a212_0x5ca6(_0x1d223a,_0x5bb622){_0x1d223a=_0x1d223a-0x133;const _0x2c4ba7=a212_0x2c4b();let _0x5ca650=_0x2c4ba7[_0x1d223a];return _0x5ca650;}const a212_0x269b22=a212_0x5ca6;(function(_0x453a97,_0x37f955){const _0x1da567=a212_0x5ca6,_0x2ffcd7=_0x453a97();while(!![]){try{const _0x587d6f=-parseInt(_0x1da567(0x133))/0x1+-parseInt(_0x1da567(0x13b))/0x2+parseInt(_0x1da567(0x13d))/0x3+parseInt(_0x1da567(0x138))/0x4*(parseInt(_0x1da567(0x13a))/0x5)+parseInt(_0x1da567(0x137))/0x6*(parseInt(_0x1da567(0x13c))/0x7)+parseInt(_0x1da567(0x139))/0x8+-parseInt(_0x1da567(0x134))/0x9;if(_0x587d6f===_0x37f955)break;else _0x2ffcd7['push'](_0x2ffcd7['shift']());}catch(_0x2b88d2){_0x2ffcd7['push'](_0x2ffcd7['shift']());}}}(a212_0x2c4b,0xf3bd7));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a212_0x269b22(0x13e),a212_0x269b22(0x136),a212_0x269b22(0x135)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a213_0x54ad(_0x441549,_0x3325ba){_0x441549=_0x441549-0x131;const _0xf17b17=a213_0xf17b();let _0x54adc7=_0xf17b17[_0x441549];return _0x54adc7;}const a213_0x5ce659=a213_0x54ad;(function(_0xe20b61,_0x20506d){const _0x2abfff=a213_0x54ad,_0x4a7b7b=_0xe20b61();while(!![]){try{const _0x26cbb0=parseInt(_0x2abfff(0x139))/0x1*(parseInt(_0x2abfff(0x134))/0x2)+parseInt(_0x2abfff(0x13a))/0x3+-parseInt(_0x2abfff(0x132))/0x4*(-parseInt(_0x2abfff(0x136))/0x5)+-parseInt(_0x2abfff(0x137))/0x6*(parseInt(_0x2abfff(0x138))/0x7)+parseInt(_0x2abfff(0x13b))/0x8+-parseInt(_0x2abfff(0x135))/0x9*(-parseInt(_0x2abfff(0x131))/0xa)+-parseInt(_0x2abfff(0x133))/0xb;if(_0x26cbb0===_0x20506d)break;else _0x4a7b7b['push'](_0x4a7b7b['shift']());}catch(_0x75e6a1){_0x4a7b7b['push'](_0x4a7b7b['shift']());}}}(a213_0xf17b,0x9b6ca));export const DEFAULT_API_DIR=a213_0x5ce659(0x13c);function a213_0xf17b(){const _0x313bf7=['2ehkixq','5399217JKWNQq','3643815pOfixw','456upuEQX','14126rQTZEe','699257XHXtLe','2170524AghzBL','7827328grhFUH','./src/api','20JmbWwi','4nIoiuu','38937624zoVaCe'];a213_0xf17b=function(){return _0x313bf7;};return a213_0xf17b();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a214_0x5492c6=a214_0xa959;(function(_0x46cba9,_0x29ba9f){const _0x498352=a214_0xa959,_0x3f037c=_0x46cba9();while(!![]){try{const _0x2c6414=parseInt(_0x498352(0xd2))/0x1*(parseInt(_0x498352(0xd5))/0x2)+-parseInt(_0x498352(0xd3))/0x3+parseInt(_0x498352(0xcd))/0x4*(parseInt(_0x498352(0xcf))/0x5)+-parseInt(_0x498352(0xce))/0x6*(parseInt(_0x498352(0xcc))/0x7)+-parseInt(_0x498352(0xd0))/0x8+parseInt(_0x498352(0xcb))/0x9+parseInt(_0x498352(0xd6))/0xa;if(_0x2c6414===_0x29ba9f)break;else _0x3f037c['push'](_0x3f037c['shift']());}catch(_0x28d87e){_0x3f037c['push'](_0x3f037c['shift']());}}}(a214_0x1c18,0x3f510));function a214_0xa959(_0x554d51,_0x3a99a9){_0x554d51=_0x554d51-0xcb;const _0x1c1843=a214_0x1c18();let _0xa959b1=_0x1c1843[_0x554d51];return _0xa959b1;}function a214_0x1c18(){const _0x205ec7=['56aamtll','1172xuriNw','352494IFnqBs','8440TToBxU','952136JqfXZr','write','1761uCLBFy','1535523GLbQTJ','read','230kbcNPx','3042100tcHWnK','3229965VjBKyL'];a214_0x1c18=function(){return _0x205ec7;};return a214_0x1c18();}export const RISK_LEVEL_VALUES=[a214_0x5492c6(0xd4),a214_0x5492c6(0xd1),'high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20bdba,_0x5ebaf5){const _0x4bb222=a215_0x24d9,_0xad7925=_0x20bdba();while(!![]){try{const _0x59dd3d=-parseInt(_0x4bb222(0x117))/0x1+-parseInt(_0x4bb222(0xfa))/0x2+parseInt(_0x4bb222(0xfc))/0x3*(parseInt(_0x4bb222(0x115))/0x4)+-parseInt(_0x4bb222(0xfe))/0x5+-parseInt(_0x4bb222(0x11c))/0x6+parseInt(_0x4bb222(0x120))/0x7+parseInt(_0x4bb222(0x111))/0x8;if(_0x59dd3d===_0x5ebaf5)break;else _0xad7925['push'](_0xad7925['shift']());}catch(_0x389be0){_0xad7925['push'](_0xad7925['shift']());}}}(a215_0x37a6,0xcccbe));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a215_0x37a6(){const _0x313a0c=['FORMAT','appcode','1779050dhBZpv','projectConfig','972801pWHCoj','prototype','7769410JYvqKc','hasOwnProperty','length','object','call','PAGE_SIZE','APP','find','locale','env','entries','trim','cookie','RISK_LEVEL','string','app','globalConfig','daily','apiDir','28146360GCbNCZ','write','read','COOKIE','4YDzbJS','high-risk-write','419351admDNe','accessKey','keys','VERBOSE','defaultApp','6620472dpnsvE','format','ENV','riskLevel','6737178lYhNCW','true','maxRisk','apps'];a215_0x37a6=function(){return _0x313a0c;};return a215_0x37a6();}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x36361d){const _0x378d05=a215_0x24d9;return typeof _0x36361d===_0x378d05(0x10c)&&_0x36361d[_0x378d05(0x109)]()?_0x36361d['trim']():undefined;}function a215_0x24d9(_0x1873ef,_0x4f084b){_0x1873ef=_0x1873ef-0xf7;const _0x37a62c=a215_0x37a6();let _0x24d987=_0x37a62c[_0x1873ef];return _0x24d987;}function appProfiles(_0x2c82b1){const _0x299685=a215_0x24d9;return _0x2c82b1[_0x299685(0xf7)]&&typeof _0x2c82b1['apps']===_0x299685(0x101)?_0x2c82b1[_0x299685(0xf7)]:{};}function resolveDefaultAppName(_0x31d53e){const _0x105ed8=a215_0x24d9,_0x23df5f=stringConfigValue(_0x31d53e[_0x105ed8(0x11b)]);if(_0x23df5f)return _0x23df5f;return Object[_0x105ed8(0x119)](appProfiles(_0x31d53e))[0x0];}function resolveTopLevelAppCode(_0x2371ba){return stringConfigValue(_0x2371ba['appcode'])||stringConfigValue(_0x2371ba['app']);}function normalizeRiskCeiling(_0x36a95d){const _0x31e380=a215_0x24d9;if(_0x36a95d===undefined||_0x36a95d===null)return undefined;if(_0x36a95d===_0x31e380(0x113)||_0x36a95d===_0x31e380(0x112)||_0x36a95d===_0x31e380(0x116))return _0x36a95d;return _0x31e380(0x113);}function resolveRiskCeiling(..._0x188092){const _0x265c5a=a215_0x24d9;let _0x5a2849;for(const _0x30cb88 of _0x188092){const _0x5a85ce=normalizeRiskCeiling(_0x30cb88);_0x5a85ce&&(!_0x5a2849||riskLevelOrder(_0x5a85ce)<riskLevelOrder(_0x5a2849))&&(_0x5a2849=_0x5a85ce);}return _0x5a2849??DEFAULT_CONFIG_VALUES[_0x265c5a(0x11f)];}function configuredRiskCeilings(_0x5e2a3d){const _0x106bbf=a215_0x24d9;return[...Object[_0x106bbf(0xfd)][_0x106bbf(0xff)]['call'](_0x5e2a3d,_0x106bbf(0x122))?[_0x5e2a3d[_0x106bbf(0x122)]]:[],...Object['prototype']['hasOwnProperty'][_0x106bbf(0x102)](_0x5e2a3d,_0x106bbf(0x11f))?[_0x5e2a3d[_0x106bbf(0x11f)]]:[]];}export function resolveAppConfig({raw:_0x78db99,flags:_0x57baf5,layers:_0x4d4f49,readEnv:_0x189b7c}){const _0x323752=a215_0x24d9,_0xb404aa=_0x4d4f49?.[_0x323752(0xfb)]??{},_0x4d1736=_0x4d4f49?.[_0x323752(0x10e)]??{},_0x3692e9=Object[_0x323752(0x119)](_0xb404aa)[_0x323752(0x100)]>0x0,_0x593a10=!_0x3692e9||_0xb404aa['inherit']===!![],_0x3b412b=_0x3692e9?resolveDefaultAppName(_0xb404aa):undefined,_0x2b820a=_0x593a10?resolveDefaultAppName(_0x4d1736):undefined,_0x581575=stringConfigValue(_0x57baf5[_0x323752(0x10d)]),_0x24ee67=_0x189b7c(_0x323752(0x104)),_0x3cb35={};if(_0x78db99[_0x323752(0xf7)]&&typeof _0x78db99[_0x323752(0xf7)]===_0x323752(0x101))for(const [_0x12bd81,_0x3511f4]of Object[_0x323752(0x108)](_0x78db99[_0x323752(0xf7)])){_0x3511f4&&typeof _0x3511f4===_0x323752(0x101)&&_0x3511f4[_0x323752(0xf9)]&&(_0x3cb35[_0x12bd81]=_0x3511f4);}const _0x311bf3=_0x78db99[_0x323752(0x11b)]||undefined,_0x1b4edb=Object['keys'](_0x3cb35)[_0x323752(0x100)]>0x0,_0x16eeef=_0x581575||_0x3b412b||_0x24ee67||_0x2b820a||_0x311bf3||undefined,_0x2e8df7=stringConfigValue(_0x57baf5['appcode']),_0x296034=_0x2e8df7?Object[_0x323752(0x108)](_0x3cb35)[_0x323752(0x105)](([,_0x1bb594])=>_0x1bb594?.['appcode']===_0x2e8df7):undefined,_0x131c42=_0x296034?.[0x0],_0x468ac4=_0x296034?.[0x1],_0x3e7e86=_0x2e8df7?_0x131c42:_0x16eeef;let _0x30bdd2=_0x3e7e86&&_0x3cb35[_0x3e7e86]?_0x3cb35[_0x3e7e86]:undefined;_0x2e8df7&&_0x468ac4&&(_0x30bdd2=_0x468ac4);const _0x586392=_0x2e8df7?_0x468ac4??_0x30bdd2:_0x30bdd2,_0x2c342c=!_0x581575&&!_0x3b412b&&_0x24ee67&&_0x3e7e86===_0x24ee67,_0x1f67cd=_0x581575||(_0x2c342c?_0x24ee67:undefined)||(_0x2e8df7?_0x131c42:undefined),_0x3a695c=_0x586392?.[_0x323752(0xf9)],_0x465f7b=_0x3692e9?resolveTopLevelAppCode(_0xb404aa):undefined,_0x20eafa=_0x593a10?resolveTopLevelAppCode(_0x4d1736):undefined,_0x5f2078=_0x581575||_0x3b412b?_0x3a695c:undefined,_0x1eb390=!_0x581575&&!_0x3b412b?_0x3a695c:undefined,_0x183157=_0x2e8df7||_0x5f2078||_0x465f7b||_0x1eb390||_0x20eafa||undefined,_0x43f953=_0x3692e9?stringConfigValue(_0xb404aa['env']):undefined,_0x5e1943=_0x593a10?stringConfigValue(_0x4d1736[_0x323752(0x107)]):undefined,_0x4e8cfd=_0x57baf5[_0x323752(0x107)]||_0x586392?.[_0x323752(0x107)]||_0x43f953||_0x189b7c(_0x323752(0x11e))||_0x5e1943||_0x78db99[_0x323752(0x107)]||DEFAULT_CONFIG_VALUES['env'],_0x1d6a9e=_0x586392?.[_0x323752(0x106)]||_0x78db99['locale']||DEFAULT_CONFIG_VALUES[_0x323752(0x106)],_0x374ab2=_0x189b7c(_0x323752(0x114))||_0x586392?.[_0x323752(0x10a)]||_0x78db99[_0x323752(0x10a)]||undefined,_0x46ffd0=_0x189b7c('ACCESS_KEY')||_0x586392?.[_0x323752(0x118)]||_0x78db99[_0x323752(0x118)]||undefined,_0x1c363d=_0x57baf5[_0x323752(0x11d)]||_0x189b7c(_0x323752(0xf8))||_0x586392?.[_0x323752(0x11d)]||_0x78db99[_0x323752(0x11d)],_0x3d2605=normalizeLegacyOutputFormat(_0x1c363d),_0x2eaee1=_0x189b7c(_0x323752(0x103))||_0x586392?.['pageSize']||_0x78db99['pageSize'],_0x1ac48f=_0x2eaee1?Number(_0x2eaee1)||undefined:undefined,_0x8579c7=_0x4d4f49?[...configuredRiskCeilings(_0x4d4f49[_0x323752(0x10e)]),...configuredRiskCeilings(_0x4d4f49['projectConfig'])]:configuredRiskCeilings(_0x78db99),_0x1fa592=resolveRiskCeiling(..._0x8579c7,_0x586392?.['riskLevel']),_0xa74366=resolveRiskCeiling(_0x1fa592,_0x189b7c(_0x323752(0x10b)),_0x189b7c('MAX_RISK')),_0x240f13=_0x189b7c(_0x323752(0x11a)),_0x2d68c7=_0x240f13==='1'||_0x240f13===_0x323752(0x121),_0x1a6249=_0x586392?.['apiDir']||_0x78db99['apiDir']||DEFAULT_CONFIG_VALUES[_0x323752(0x110)],_0x157184=isDaily(normalizeEnv(String(_0x4e8cfd)))?_0x323752(0x10f):'production';return{'appCode':typeof _0x183157===_0x323752(0x10c)&&_0x183157[_0x323752(0x109)]()?_0x183157[_0x323752(0x109)]():undefined,'env':_0x157184,'locale':_0x1d6a9e,'cookie':_0x374ab2,'accessKey':_0x46ffd0,'format':_0x3d2605,'pageSize':_0x1ac48f,'riskLevel':_0xa74366,'verbose':_0x2d68c7,'apiDir':_0x1a6249,'apps':_0x3cb35,'defaultApp':_0x311bf3,'currentApp':_0x1b4edb?_0x3e7e86:undefined,'explicitAppName':_0x1f67cd};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdcf36f,_0x3658cc){const _0x48082e=a216_0x409d,_0x2cce46=_0xdcf36f();while(!![]){try{const _0x2a8919=-parseInt(_0x48082e(0xa7))/0x1*(parseInt(_0x48082e(0x9e))/0x2)+parseInt(_0x48082e(0x9f))/0x3*(parseInt(_0x48082e(0xa5))/0x4)+-parseInt(_0x48082e(0x9d))/0x5+parseInt(_0x48082e(0x9c))/0x6+-parseInt(_0x48082e(0xa1))/0x7+parseInt(_0x48082e(0xa2))/0x8*(-parseInt(_0x48082e(0xa6))/0x9)+parseInt(_0x48082e(0xa0))/0xa;if(_0x2a8919===_0x3658cc)break;else _0x2cce46['push'](_0x2cce46['shift']());}catch(_0x560f3d){_0x2cce46['push'](_0x2cce46['shift']());}}}(a216_0x50fb,0xe945a));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a216_0x409d(_0x33b14f,_0x53d4dc){_0x33b14f=_0x33b14f-0x9c;const _0x50fbd3=a216_0x50fb();let _0x409da9=_0x50fbd3[_0x33b14f];return _0x409da9;}export async function buildAuth(_0x363f67){const _0x4695b3=a216_0x409d,{getCookie:_0x4921b6}=await import(_0x4695b3(0xa3)),_0x3fe121=_0x363f67[_0x4695b3(0xa4)]||_0x4921b6(),_0x3c84cd=_0x3fe121?await getIsSessionValid():![];return{'cookie':_0x3fe121,'isLoggedIn':_0x3c84cd,async 'getOrLogin'(){const _0x22d74c=_0x4695b3;if(_0x3fe121&&_0x3c84cd)return _0x3fe121;throw CliErrors[_0x22d74c(0xa8)]();}};}function a216_0x50fb(){const _0x411999=['authRequired','7358154WZguCS','4381355ACiONy','712WFMKKA','48cJAIwL','37910430WZJesq','11067805WnmEKZ','7014416DBNfZI','../auth/get-cookie.js','cookie','196584mQNjWN','9udpoPk','4253tkXfqT'];a216_0x50fb=function(){return _0x411999;};return a216_0x50fb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a217_0x289b2a=a217_0x389c;(function(_0x5c262e,_0xf15dea){const _0x46e9b7=a217_0x389c,_0x543bff=_0x5c262e();while(!![]){try{const _0x40d2fc=parseInt(_0x46e9b7(0x16b))/0x1+-parseInt(_0x46e9b7(0x14e))/0x2+parseInt(_0x46e9b7(0x157))/0x3*(-parseInt(_0x46e9b7(0x161))/0x4)+parseInt(_0x46e9b7(0x141))/0x5+-parseInt(_0x46e9b7(0x163))/0x6+parseInt(_0x46e9b7(0x154))/0x7+-parseInt(_0x46e9b7(0x151))/0x8*(-parseInt(_0x46e9b7(0x145))/0x9);if(_0x40d2fc===_0xf15dea)break;else _0x543bff['push'](_0x543bff['shift']());}catch(_0x56408e){_0x543bff['push'](_0x543bff['shift']());}}}(a217_0x5254,0xc8880));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a217_0x5254(){const _0x43eecc=['project','trim','missing','set','empty','length','apps','2288288ABxEsU','object','pageSize','6917000AVRzdL','keys','warn','3994284ptUxpc','format','.rabetbase.json','1216443FlVpKL','app','accessKey','inherit','data','env','riskLevel','defaultApp','.lovrabetrc','.lovrabet.json','4SVaFjC','stringify','956190yFwcdt','utf8','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cookie','appcode','Global','silent','migrated','126133lLhzLB','locale','error','cwd','get','string','4844980XmHIPS','filter','status','apiDir','9SGDwGN','message'];a217_0x5254=function(){return _0x43eecc;};return a217_0x5254();}import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';function a217_0x389c(_0x2dbf7e,_0x4049f1){_0x2dbf7e=_0x2dbf7e-0x140;const _0x5254cd=a217_0x5254();let _0x389c26=_0x5254cd[_0x2dbf7e];return _0x389c26;}export const NEW_CONFIG_NAME=a217_0x289b2a(0x156);export const CONFIG_NAMES=[a217_0x289b2a(0x156),a217_0x289b2a(0x160),a217_0x289b2a(0x15f)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a217_0x289b2a(0x142)](_0x10d618=>_0x10d618!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x236a7f){for(const _0x35f83a of CONFIG_NAMES){const _0x95dfcd=resolve(_0x236a7f,_0x35f83a);if(existsSync(_0x95dfcd))return _0x95dfcd;}return undefined;}export function findProjectRootDirectory(_0x41a138=process[a217_0x289b2a(0x16e)]()){let _0x12d78f=resolve(_0x41a138);const {root:_0x42805f}=parse(_0x12d78f),_0x496e7b=homedir();while(!![]){if(resolveConfigPath(_0x12d78f)){if(_0x12d78f===_0x496e7b)break;return _0x12d78f;}if(_0x12d78f===_0x42805f||_0x12d78f===_0x496e7b)break;const _0x18777e=dirname(_0x12d78f);if(_0x18777e===_0x12d78f)break;_0x12d78f=_0x18777e;}return resolve(_0x41a138);}export function getProjectConfigPath(){const _0x4dcf84=a217_0x289b2a;return resolveConfigPath(process[_0x4dcf84(0x16e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3e69a9){const _0x48fc3a=a217_0x289b2a;if(!existsSync(_0x3e69a9))return{'status':_0x48fc3a(0x149)};try{const _0x5976c3=readFileSync(_0x3e69a9,{'encoding':'utf8'});if(!_0x5976c3?.[_0x48fc3a(0x148)]())return{'status':_0x48fc3a(0x14b)};const _0x3dec60=JSON['parse'](_0x5976c3);return{'status':'ok','data':_0x3dec60};}catch(_0x3accbc){return{'status':'error','message':_0x3accbc instanceof Error?_0x3accbc['message']:String(_0x3accbc)};}}function parseCliConfigJsonFile(_0x535596,_0x2fa338,_0x35a77a){const _0x533b1f=a217_0x289b2a,_0x2b2671=inspectCliConfigJsonFile(_0x535596);if(_0x2b2671['status']===_0x533b1f(0x149)||_0x2b2671[_0x533b1f(0x143)]===_0x533b1f(0x14b))return{};if(_0x2b2671['status']==='ok')return _0x2b2671[_0x533b1f(0x15b)];return _0x2fa338==='warn'&&_0x35a77a&&console[_0x533b1f(0x16d)](CLI_BIN_NAME+':\x20'+_0x35a77a+_0x533b1f(0x165)+_0x535596+'\x0a\x20\x20'+_0x2b2671[_0x533b1f(0x146)]),{};}function normalizeLegacyConfigShape(_0x7e29fa){const _0x3387b3=a217_0x289b2a;if(!_0x7e29fa||typeof _0x7e29fa!==_0x3387b3(0x14f))return{'config':{},'migrated':![]};const _0x5acb12={..._0x7e29fa},_0x1a4dce=_0x5acb12[_0x3387b3(0x14d)]&&typeof _0x5acb12[_0x3387b3(0x14d)]===_0x3387b3(0x14f)?{..._0x5acb12[_0x3387b3(0x14d)]}:{},_0x4eca6a=Object[_0x3387b3(0x152)](_0x1a4dce)[_0x3387b3(0x14c)],_0x15d75d=_0x5acb12[_0x3387b3(0x167)]||_0x5acb12['app'];let _0x5f467a=![];if(_0x15d75d&&_0x4eca6a===0x0){const _0x3d9c65=typeof _0x5acb12[_0x3387b3(0x15e)]===_0x3387b3(0x140)&&_0x5acb12[_0x3387b3(0x15e)][_0x3387b3(0x148)]()?_0x5acb12[_0x3387b3(0x15e)]:String(_0x15d75d)[_0x3387b3(0x148)]();_0x1a4dce[_0x3d9c65]={'appcode':String(_0x15d75d)[_0x3387b3(0x148)](),..._0x5acb12[_0x3387b3(0x15c)]!=null?{'env':_0x5acb12[_0x3387b3(0x15c)]}:{},..._0x5acb12['apiDir']!=null?{'apiDir':_0x5acb12[_0x3387b3(0x144)]}:{},..._0x5acb12[_0x3387b3(0x166)]!=null?{'cookie':_0x5acb12[_0x3387b3(0x166)]}:{},..._0x5acb12[_0x3387b3(0x159)]!=null?{'accessKey':_0x5acb12[_0x3387b3(0x159)]}:{},..._0x5acb12['format']!=null?{'format':_0x5acb12[_0x3387b3(0x155)]}:{},..._0x5acb12[_0x3387b3(0x150)]!=null?{'pageSize':_0x5acb12['pageSize']}:{},..._0x5acb12[_0x3387b3(0x15d)]!=null?{'riskLevel':_0x5acb12[_0x3387b3(0x15d)]}:{},..._0x5acb12['locale']!=null?{'locale':_0x5acb12[_0x3387b3(0x16c)]}:{}},_0x5acb12[_0x3387b3(0x14d)]=_0x1a4dce;if(!_0x5acb12[_0x3387b3(0x15e)])_0x5acb12['defaultApp']=_0x3d9c65;_0x5f467a=!![];}return(_0x3387b3(0x167)in _0x5acb12||_0x3387b3(0x158)in _0x5acb12)&&(delete _0x5acb12['appcode'],delete _0x5acb12[_0x3387b3(0x158)],_0x5f467a=!![]),{'config':_0x5acb12,'migrated':_0x5f467a};}function writeNormalizedConfigIfNeeded(_0x35b40d,_0x31b9e9){const _0x1e7aff=a217_0x289b2a,_0x2f4daf=JSON[_0x1e7aff(0x162)](_0x31b9e9,null,0x2)+'\x0a';if(normalizedWriteCache[_0x1e7aff(0x16f)](_0x35b40d)===_0x2f4daf)return;writeConfigFile(_0x35b40d,_0x31b9e9),normalizedWriteCache[_0x1e7aff(0x14a)](_0x35b40d,_0x2f4daf);}function parseAndNormalizeConfig(_0x136145,_0x1479a6,_0x5ed5ae){const _0x23c26b=a217_0x289b2a,_0x2be5ee=parseCliConfigJsonFile(_0x136145,_0x1479a6,_0x5ed5ae),_0x26d044=normalizeLegacyConfigShape(_0x2be5ee);if(_0x26d044[_0x23c26b(0x16a)])try{writeNormalizedConfigIfNeeded(_0x136145,_0x26d044['config']);}catch{}return _0x26d044['config'];}export function loadRawConfigLayers(_0xf4d777){const _0x24a5f0=a217_0x289b2a;let _0x5dfa3e={},_0x36ee13={};const _0x4576e6=resolveConfigPath(homedir());_0x4576e6&&(_0x5dfa3e=parseAndNormalizeConfig(_0x4576e6,_0x24a5f0(0x153),_0x24a5f0(0x168)));const _0x257aee=_0xf4d777??findProjectRootDirectory(),_0x21939f=resolveConfigPath(_0x257aee);return _0x21939f&&(_0x36ee13=parseAndNormalizeConfig(_0x21939f,_0x24a5f0(0x153),'Project')),{'globalPath':_0x4576e6,'projectPath':_0x21939f,'globalConfig':_0x5dfa3e,'projectConfig':_0x36ee13};}const INHERIT_WHITELIST=[a217_0x289b2a(0x166),a217_0x289b2a(0x159),'locale','format','riskLevel','pageSize'];export function mergeRawConfigLayers(_0x3a24f0){const _0x432079=a217_0x289b2a,{globalConfig:_0x4903d8,projectConfig:_0x1d9bde}=_0x3a24f0,_0x5249b0=Object[_0x432079(0x152)](_0x1d9bde)[_0x432079(0x14c)]>0x0;if(!_0x5249b0)return mergeGlobalOnly(_0x4903d8);if(_0x1d9bde[_0x432079(0x15a)]===!![])return mergeFullInherit(_0x4903d8,_0x1d9bde);if(_0x1d9bde[_0x432079(0x15a)]===![])return mergeIsolated(_0x1d9bde);return mergeProjectFirst(_0x4903d8,_0x1d9bde);}function mergeGlobalOnly(_0x47ee72){const _0x27f564=a217_0x289b2a,_0x32dd08={..._0x47ee72},_0x59bbfb=_0x47ee72['apps']&&typeof _0x47ee72['apps']===_0x27f564(0x14f)?_0x47ee72['apps']:{};if(Object['keys'](_0x59bbfb)[_0x27f564(0x14c)]>0x0)_0x32dd08['apps']=_0x59bbfb;if(_0x47ee72[_0x27f564(0x15e)])_0x32dd08[_0x27f564(0x15e)]=_0x47ee72['defaultApp'];else{const _0x10a1f5=Object[_0x27f564(0x152)](_0x59bbfb);if(_0x10a1f5[_0x27f564(0x14c)]>0x0)_0x32dd08['defaultApp']=_0x10a1f5[0x0];}return _0x32dd08;}function mergeIsolated(_0x267b29){const _0x3ef44b=a217_0x289b2a,_0x79f52a={..._0x267b29};delete _0x79f52a[_0x3ef44b(0x15a)];const _0x4baeb9=_0x267b29[_0x3ef44b(0x14d)]&&typeof _0x267b29[_0x3ef44b(0x14d)]===_0x3ef44b(0x14f)?_0x267b29['apps']:{};Object[_0x3ef44b(0x152)](_0x4baeb9)[_0x3ef44b(0x14c)]>0x0?_0x79f52a[_0x3ef44b(0x14d)]=_0x4baeb9:delete _0x79f52a[_0x3ef44b(0x14d)];if(_0x3ef44b(0x15e)in _0x267b29)_0x79f52a[_0x3ef44b(0x15e)]=_0x267b29[_0x3ef44b(0x15e)];else Object[_0x3ef44b(0x152)](_0x4baeb9)[_0x3ef44b(0x14c)]>0x0?_0x79f52a['defaultApp']=Object[_0x3ef44b(0x152)](_0x4baeb9)[0x0]:delete _0x79f52a['defaultApp'];return _0x79f52a;}function mergeProjectFirst(_0x3b0d72,_0x576a3f){const _0x504d7f=a217_0x289b2a,_0x32574d={..._0x576a3f};delete _0x32574d['inherit'];for(const _0x5591af of INHERIT_WHITELIST){!(_0x5591af in _0x32574d)&&_0x5591af in _0x3b0d72&&(_0x32574d[_0x5591af]=_0x3b0d72[_0x5591af]);}const _0x1c951e=_0x576a3f[_0x504d7f(0x14d)]&&typeof _0x576a3f[_0x504d7f(0x14d)]===_0x504d7f(0x14f)?_0x576a3f[_0x504d7f(0x14d)]:{};Object[_0x504d7f(0x152)](_0x1c951e)[_0x504d7f(0x14c)]>0x0?_0x32574d[_0x504d7f(0x14d)]=_0x1c951e:delete _0x32574d['apps'];if('defaultApp'in _0x576a3f)_0x32574d[_0x504d7f(0x15e)]=_0x576a3f[_0x504d7f(0x15e)];else Object[_0x504d7f(0x152)](_0x1c951e)[_0x504d7f(0x14c)]>0x0?_0x32574d[_0x504d7f(0x15e)]=Object[_0x504d7f(0x152)](_0x1c951e)[0x0]:delete _0x32574d[_0x504d7f(0x15e)];return _0x32574d;}function mergeFullInherit(_0x5b447a,_0x42f6d5){const _0x59f168=a217_0x289b2a,_0x581cdf=_0x5b447a[_0x59f168(0x14d)]&&typeof _0x5b447a[_0x59f168(0x14d)]===_0x59f168(0x14f)?_0x5b447a['apps']:{},_0x530924=_0x42f6d5[_0x59f168(0x14d)]&&typeof _0x42f6d5[_0x59f168(0x14d)]===_0x59f168(0x14f)?_0x42f6d5[_0x59f168(0x14d)]:{},_0x405922={..._0x581cdf,..._0x530924},_0x5b6629={..._0x5b447a,..._0x42f6d5};delete _0x5b6629[_0x59f168(0x15a)];if(Object[_0x59f168(0x152)](_0x405922)['length']>0x0)_0x5b6629['apps']=_0x405922;if(_0x59f168(0x15e)in _0x42f6d5)_0x5b6629[_0x59f168(0x15e)]=_0x42f6d5['defaultApp'];else{if(Object[_0x59f168(0x152)](_0x530924)[_0x59f168(0x14c)]>0x0)_0x5b6629[_0x59f168(0x15e)]=Object[_0x59f168(0x152)](_0x530924)[0x0];else{if(_0x5b447a[_0x59f168(0x15e)])_0x5b6629[_0x59f168(0x15e)]=_0x5b447a[_0x59f168(0x15e)];else{const _0x509781=Object['keys'](_0x581cdf);if(_0x509781[_0x59f168(0x14c)]>0x0)_0x5b6629['defaultApp']=_0x509781[0x0];}}}return _0x5b6629;}export function readRawConfigWithLayers(_0x1e4ebf){const _0x3bc5e8=loadRawConfigLayers(_0x1e4ebf);return{'config':mergeRawConfigLayers(_0x3bc5e8),'layers':_0x3bc5e8};}export function readRawConfig(_0x32b134){return mergeRawConfigLayers(loadRawConfigLayers(_0x32b134));}export function readConfigFile(_0x161516){const _0x5b765a=a217_0x289b2a;return parseAndNormalizeConfig(_0x161516,_0x5b765a(0x169));}export function writeConfigFile(_0xe351ba,_0x145068){const _0x207333=a217_0x289b2a,_0xcc1923=dirname(_0xe351ba);!existsSync(_0xcc1923)&&mkdirSync(_0xcc1923,{'recursive':!![]});const _0x2f3ad4=_0xe351ba+'.tmp';try{writeFileSync(_0x2f3ad4,JSON[_0x207333(0x162)](_0x145068,null,0x2)+'\x0a',{'encoding':_0x207333(0x164),'mode':0x180}),renameSync(_0x2f3ad4,_0xe351ba);}catch(_0x36187d){try{unlinkSync(_0x2f3ad4);}catch{}throw _0x36187d;}}export function resolveWriteConfigPath(_0x2e0523){const _0x221008=a217_0x289b2a,_0x5e71c7=_0x2e0523===_0x221008(0x147)?process['cwd']():homedir(),_0x502d2b=resolveConfigPath(_0x5e71c7);return _0x502d2b??resolve(_0x5e71c7,NEW_CONFIG_NAME);}
|
|
1
|
+
const a217_0x7d2bb9=a217_0x1785;(function(_0x52a36c,_0x22e1ef){const _0x213973=a217_0x1785,_0x49c108=_0x52a36c();while(!![]){try{const _0x3bc85a=parseInt(_0x213973(0xe6))/0x1*(parseInt(_0x213973(0xe5))/0x2)+parseInt(_0x213973(0xee))/0x3*(parseInt(_0x213973(0xf6))/0x4)+-parseInt(_0x213973(0xfa))/0x5*(-parseInt(_0x213973(0xf8))/0x6)+parseInt(_0x213973(0x109))/0x7+-parseInt(_0x213973(0xf7))/0x8*(parseInt(_0x213973(0xff))/0x9)+-parseInt(_0x213973(0x101))/0xa*(-parseInt(_0x213973(0xe1))/0xb)+parseInt(_0x213973(0x108))/0xc*(-parseInt(_0x213973(0xe9))/0xd);if(_0x3bc85a===_0x22e1ef)break;else _0x49c108['push'](_0x49c108['shift']());}catch(_0x1d8063){_0x49c108['push'](_0x49c108['shift']());}}}(a217_0x3bde,0xda030));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=a217_0x7d2bb9(0xef);export const CONFIG_NAMES=[a217_0x7d2bb9(0xef),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x35d30b=>_0x35d30b!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3da608){for(const _0x1b54ae of CONFIG_NAMES){const _0x47a74e=resolve(_0x3da608,_0x1b54ae);if(existsSync(_0x47a74e))return _0x47a74e;}return undefined;}export function findProjectRootDirectory(_0x338610=process['cwd']()){let _0x766097=resolve(_0x338610);const {root:_0x14f0bb}=parse(_0x766097),_0x42c442=homedir();while(!![]){if(resolveConfigPath(_0x766097)){if(_0x766097===_0x42c442)break;return _0x766097;}if(_0x766097===_0x14f0bb||_0x766097===_0x42c442)break;const _0x3dc0cc=dirname(_0x766097);if(_0x3dc0cc===_0x766097)break;_0x766097=_0x3dc0cc;}return resolve(_0x338610);}export function getProjectConfigPath(){const _0x174f07=a217_0x7d2bb9;return resolveConfigPath(process[_0x174f07(0x104)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3dcd5e){const _0x359af7=a217_0x7d2bb9;if(!existsSync(_0x3dcd5e))return{'status':_0x359af7(0xe0)};try{const _0xdd9228=readFileSync(_0x3dcd5e,{'encoding':_0x359af7(0xf1)});if(!_0xdd9228?.['trim']())return{'status':_0x359af7(0xf2)};const _0x23338b=JSON[_0x359af7(0xe4)](_0xdd9228);return{'status':'ok','data':_0x23338b};}catch(_0xc728a0){return{'status':_0x359af7(0xeb),'message':_0xc728a0 instanceof Error?_0xc728a0[_0x359af7(0xe2)]:String(_0xc728a0)};}}function parseCliConfigJsonFile(_0x2e23b4,_0x39c581,_0x3eb48f){const _0x17ca44=a217_0x7d2bb9,_0x34a5ba=inspectCliConfigJsonFile(_0x2e23b4);if(_0x34a5ba[_0x17ca44(0x102)]===_0x17ca44(0xe0)||_0x34a5ba['status']==='empty')return{};if(_0x34a5ba[_0x17ca44(0x102)]==='ok')return _0x34a5ba[_0x17ca44(0xfc)];return _0x39c581===_0x17ca44(0xea)&&_0x3eb48f&&console['error'](CLI_BIN_NAME+':\x20'+_0x3eb48f+_0x17ca44(0xfb)+_0x2e23b4+'\x0a\x20\x20'+_0x34a5ba[_0x17ca44(0xe2)]),{};}function normalizeLegacyConfigShape(_0x26acfe){const _0x5ed9c7=a217_0x7d2bb9;if(!_0x26acfe||typeof _0x26acfe!==_0x5ed9c7(0xdc))return{'config':{},'migrated':![]};const _0x807ea4={..._0x26acfe},_0x10fb96=_0x807ea4[_0x5ed9c7(0x10c)]&&typeof _0x807ea4[_0x5ed9c7(0x10c)]===_0x5ed9c7(0xdc)?{..._0x807ea4[_0x5ed9c7(0x10c)]}:{},_0x3f0275=Object['keys'](_0x10fb96)[_0x5ed9c7(0xf0)],_0x4b1b2f=_0x807ea4['appcode']||_0x807ea4['app'];let _0x1d3a4a=![];if(_0x4b1b2f&&_0x3f0275===0x0){const _0x46cb9b=typeof _0x807ea4['defaultApp']==='string'&&_0x807ea4['defaultApp'][_0x5ed9c7(0xf4)]()?_0x807ea4['defaultApp']:String(_0x4b1b2f)[_0x5ed9c7(0xf4)]();_0x10fb96[_0x46cb9b]={'appcode':String(_0x4b1b2f)['trim'](),..._0x807ea4[_0x5ed9c7(0xed)]!=null?{'env':_0x807ea4[_0x5ed9c7(0xed)]}:{},..._0x807ea4[_0x5ed9c7(0x10e)]!=null?{'apiDir':_0x807ea4[_0x5ed9c7(0x10e)]}:{},..._0x807ea4['cookie']!=null?{'cookie':_0x807ea4[_0x5ed9c7(0xdd)]}:{},..._0x807ea4[_0x5ed9c7(0x10a)]!=null?{'accessKey':_0x807ea4['accessKey']}:{},..._0x807ea4[_0x5ed9c7(0xe8)]!=null?{'format':_0x807ea4['format']}:{},..._0x807ea4[_0x5ed9c7(0xe7)]!=null?{'pageSize':_0x807ea4[_0x5ed9c7(0xe7)]}:{},..._0x807ea4[_0x5ed9c7(0xf3)]!=null?{'riskLevel':_0x807ea4['riskLevel']}:{},..._0x807ea4['locale']!=null?{'locale':_0x807ea4[_0x5ed9c7(0x100)]}:{}},_0x807ea4[_0x5ed9c7(0x10c)]=_0x10fb96;if(!_0x807ea4[_0x5ed9c7(0x10b)])_0x807ea4['defaultApp']=_0x46cb9b;_0x1d3a4a=!![];}return(_0x5ed9c7(0xf9)in _0x807ea4||_0x5ed9c7(0xe3)in _0x807ea4)&&(delete _0x807ea4['appcode'],delete _0x807ea4[_0x5ed9c7(0xe3)],_0x1d3a4a=!![]),{'config':_0x807ea4,'migrated':_0x1d3a4a};}function writeNormalizedConfigIfNeeded(_0x11f518,_0x3f6eb7){const _0x19bc1f=a217_0x7d2bb9,_0x304571=JSON['stringify'](_0x3f6eb7,null,0x2)+'\x0a';if(normalizedWriteCache[_0x19bc1f(0x106)](_0x11f518)===_0x304571)return;writeConfigFile(_0x11f518,_0x3f6eb7),normalizedWriteCache[_0x19bc1f(0xde)](_0x11f518,_0x304571);}function parseAndNormalizeConfig(_0x4fce17,_0x23f0a7,_0x5b9099){const _0x2beba1=a217_0x7d2bb9,_0xae866=parseCliConfigJsonFile(_0x4fce17,_0x23f0a7,_0x5b9099),_0xa6ea35=normalizeLegacyConfigShape(_0xae866);if(_0xa6ea35[_0x2beba1(0xfd)])try{writeNormalizedConfigIfNeeded(_0x4fce17,_0xa6ea35[_0x2beba1(0x103)]);}catch{}return _0xa6ea35[_0x2beba1(0x103)];}export function loadRawConfigLayers(_0x3c065d){const _0x24d61e=a217_0x7d2bb9;let _0x357707={},_0x447b77={};const _0x4a758a=resolveConfigPath(homedir());_0x4a758a&&(_0x357707=parseAndNormalizeConfig(_0x4a758a,_0x24d61e(0xea),'Global'));const _0x1f385c=_0x3c065d??findProjectRootDirectory(),_0x159a22=resolveConfigPath(_0x1f385c);return _0x159a22&&(_0x447b77=parseAndNormalizeConfig(_0x159a22,_0x24d61e(0xea),_0x24d61e(0xfe))),{'globalPath':_0x4a758a,'projectPath':_0x159a22,'globalConfig':_0x357707,'projectConfig':_0x447b77};}const INHERIT_WHITELIST=['cookie',a217_0x7d2bb9(0x10a),a217_0x7d2bb9(0x100),a217_0x7d2bb9(0xe8),a217_0x7d2bb9(0xf3),'pageSize'];function a217_0x3bde(){const _0x45e9ce=['cookie','set','project','missing','470789tYIpsV','message','app','parse','1406972tfoHTC','1bNxzpo','pageSize','format','156mrWdcr','warn','error','silent','env','15EUqiwf','.rabetbase.json','length','utf8','empty','riskLevel','trim','keys','1235192iUVMGG','136HXeiaZ','1992624vzBJUq','appcode','5cLUOFI','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','data','migrated','Project','107469FfRAVM','locale','50XeLgGH','status','config','cwd','inherit','get','.tmp','3113436tcrGVz','9910838sGDFwL','accessKey','defaultApp','apps','stringify','apiDir','object'];a217_0x3bde=function(){return _0x45e9ce;};return a217_0x3bde();}function a217_0x1785(_0x348cb6,_0x5ab239){_0x348cb6=_0x348cb6-0xdc;const _0x3bdecb=a217_0x3bde();let _0x178563=_0x3bdecb[_0x348cb6];return _0x178563;}export function mergeRawConfigLayers(_0x423017){const _0x3461a6=a217_0x7d2bb9,{globalConfig:_0x3f3b2c,projectConfig:_0x140bc4}=_0x423017,_0x3432a1=Object[_0x3461a6(0xf5)](_0x140bc4)['length']>0x0;if(!_0x3432a1)return mergeGlobalOnly(_0x3f3b2c);if(_0x140bc4['inherit']===!![])return mergeFullInherit(_0x3f3b2c,_0x140bc4);if(_0x140bc4[_0x3461a6(0x105)]===![])return mergeIsolated(_0x140bc4);return mergeProjectFirst(_0x3f3b2c,_0x140bc4);}function mergeGlobalOnly(_0x4d3455){const _0x307fe6=a217_0x7d2bb9,_0x261dbb={..._0x4d3455},_0x2c272c=_0x4d3455[_0x307fe6(0x10c)]&&typeof _0x4d3455['apps']===_0x307fe6(0xdc)?_0x4d3455['apps']:{};if(Object['keys'](_0x2c272c)[_0x307fe6(0xf0)]>0x0)_0x261dbb[_0x307fe6(0x10c)]=_0x2c272c;if(_0x4d3455['defaultApp'])_0x261dbb[_0x307fe6(0x10b)]=_0x4d3455[_0x307fe6(0x10b)];else{const _0x30ba60=Object[_0x307fe6(0xf5)](_0x2c272c);if(_0x30ba60[_0x307fe6(0xf0)]>0x0)_0x261dbb[_0x307fe6(0x10b)]=_0x30ba60[0x0];}return _0x261dbb;}function mergeIsolated(_0x2bc52f){const _0x4d64a4=a217_0x7d2bb9,_0x2a8184={..._0x2bc52f};delete _0x2a8184[_0x4d64a4(0x105)];const _0x3c3573=_0x2bc52f['apps']&&typeof _0x2bc52f[_0x4d64a4(0x10c)]===_0x4d64a4(0xdc)?_0x2bc52f[_0x4d64a4(0x10c)]:{};Object[_0x4d64a4(0xf5)](_0x3c3573)[_0x4d64a4(0xf0)]>0x0?_0x2a8184[_0x4d64a4(0x10c)]=_0x3c3573:delete _0x2a8184[_0x4d64a4(0x10c)];if('defaultApp'in _0x2bc52f)_0x2a8184[_0x4d64a4(0x10b)]=_0x2bc52f[_0x4d64a4(0x10b)];else Object[_0x4d64a4(0xf5)](_0x3c3573)['length']>0x0?_0x2a8184[_0x4d64a4(0x10b)]=Object[_0x4d64a4(0xf5)](_0x3c3573)[0x0]:delete _0x2a8184[_0x4d64a4(0x10b)];return _0x2a8184;}function mergeProjectFirst(_0x11fd94,_0x57adde){const _0x35554b=a217_0x7d2bb9,_0x85f8c6={..._0x57adde};delete _0x85f8c6['inherit'];for(const _0x12395b of INHERIT_WHITELIST){!(_0x12395b in _0x85f8c6)&&_0x12395b in _0x11fd94&&(_0x85f8c6[_0x12395b]=_0x11fd94[_0x12395b]);}const _0x4a62dc=_0x57adde[_0x35554b(0x10c)]&&typeof _0x57adde[_0x35554b(0x10c)]===_0x35554b(0xdc)?_0x57adde[_0x35554b(0x10c)]:{};Object[_0x35554b(0xf5)](_0x4a62dc)['length']>0x0?_0x85f8c6[_0x35554b(0x10c)]=_0x4a62dc:delete _0x85f8c6[_0x35554b(0x10c)];if(_0x35554b(0x10b)in _0x57adde)_0x85f8c6[_0x35554b(0x10b)]=_0x57adde['defaultApp'];else Object[_0x35554b(0xf5)](_0x4a62dc)[_0x35554b(0xf0)]>0x0?_0x85f8c6[_0x35554b(0x10b)]=Object[_0x35554b(0xf5)](_0x4a62dc)[0x0]:delete _0x85f8c6[_0x35554b(0x10b)];return _0x85f8c6;}function mergeFullInherit(_0x3820de,_0xbb53ed){const _0x3c1cc3=a217_0x7d2bb9,_0x3dbdc4=_0x3820de[_0x3c1cc3(0x10c)]&&typeof _0x3820de[_0x3c1cc3(0x10c)]===_0x3c1cc3(0xdc)?_0x3820de[_0x3c1cc3(0x10c)]:{},_0x36c579=_0xbb53ed['apps']&&typeof _0xbb53ed[_0x3c1cc3(0x10c)]===_0x3c1cc3(0xdc)?_0xbb53ed[_0x3c1cc3(0x10c)]:{},_0x147ab0={..._0x3dbdc4,..._0x36c579},_0x2ffc5a={..._0x3820de,..._0xbb53ed};delete _0x2ffc5a['inherit'];if(Object[_0x3c1cc3(0xf5)](_0x147ab0)[_0x3c1cc3(0xf0)]>0x0)_0x2ffc5a[_0x3c1cc3(0x10c)]=_0x147ab0;if(_0x3c1cc3(0x10b)in _0xbb53ed)_0x2ffc5a[_0x3c1cc3(0x10b)]=_0xbb53ed[_0x3c1cc3(0x10b)];else{if(Object[_0x3c1cc3(0xf5)](_0x36c579)[_0x3c1cc3(0xf0)]>0x0)_0x2ffc5a[_0x3c1cc3(0x10b)]=Object['keys'](_0x36c579)[0x0];else{if(_0x3820de['defaultApp'])_0x2ffc5a[_0x3c1cc3(0x10b)]=_0x3820de[_0x3c1cc3(0x10b)];else{const _0x115de6=Object[_0x3c1cc3(0xf5)](_0x3dbdc4);if(_0x115de6[_0x3c1cc3(0xf0)]>0x0)_0x2ffc5a[_0x3c1cc3(0x10b)]=_0x115de6[0x0];}}}return _0x2ffc5a;}export function readRawConfigWithLayers(_0x4bd15c){const _0x1df11f=loadRawConfigLayers(_0x4bd15c);return{'config':mergeRawConfigLayers(_0x1df11f),'layers':_0x1df11f};}export function readRawConfig(_0x3f6875){return mergeRawConfigLayers(loadRawConfigLayers(_0x3f6875));}export function readConfigFile(_0x5c91d7){const _0x4686b5=a217_0x7d2bb9;return parseAndNormalizeConfig(_0x5c91d7,_0x4686b5(0xec));}export function writeConfigFile(_0x2bd8c1,_0x438910){const _0x3f57e1=a217_0x7d2bb9,_0x3c1dec=dirname(_0x2bd8c1);!existsSync(_0x3c1dec)&&mkdirSync(_0x3c1dec,{'recursive':!![]});const _0x53f7b9=_0x2bd8c1+_0x3f57e1(0x107);try{writeFileSync(_0x53f7b9,JSON[_0x3f57e1(0x10d)](_0x438910,null,0x2)+'\x0a',{'encoding':_0x3f57e1(0xf1),'mode':0x180}),renameSync(_0x53f7b9,_0x2bd8c1);}catch(_0x361093){try{unlinkSync(_0x53f7b9);}catch{}throw _0x361093;}}export function resolveWriteConfigPath(_0x4920b5){const _0x5a7d5b=a217_0x7d2bb9,_0x3d23a8=_0x4920b5===_0x5a7d5b(0xdf)?process[_0x5a7d5b(0x104)]():homedir(),_0x42bd97=resolveConfigPath(_0x3d23a8);return _0x42bd97??resolve(_0x3d23a8,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x2a234c=a218_0x476f;(function(_0x53adcc,_0x1438c2){const _0x15f3a2=a218_0x476f,_0x49eb73=_0x53adcc();while(!![]){try{const _0x41f10f=-parseInt(_0x15f3a2(0xd9))/0x1+-parseInt(_0x15f3a2(0xde))/0x2+parseInt(_0x15f3a2(0xf0))/0x3*(parseInt(_0x15f3a2(0xe2))/0x4)+-parseInt(_0x15f3a2(0xd1))/0x5*(parseInt(_0x15f3a2(0xcb))/0x6)+parseInt(_0x15f3a2(0xc7))/0x7+parseInt(_0x15f3a2(0xd7))/0x8+parseInt(_0x15f3a2(0xe9))/0x9*(parseInt(_0x15f3a2(0xea))/0xa);if(_0x41f10f===_0x1438c2)break;else _0x49eb73['push'](_0x49eb73['shift']());}catch(_0x3c786c){_0x49eb73['push'](_0x49eb73['shift']());}}}(a218_0x8a62,0x6695c));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';function a218_0x8a62(){const _0x21f190=['entries','app','apiDir','./constant/env.js','16830YkSMFl','6770dcOsbF','env','object','slice','setLogPath','-api.ts','9KQgLlO','3849293sLrRMR','template_base_url','string','runtimeDomain','709026lPMlmC','trim','./constant/domain.js','project','find','raw','35LWAJrk','appcode','globalConfig','filter','apps','argv','4387792HHGKtr','map','664059uZzkAW','projectConfig','cwd','setRawCommand','https://g.lovrabet.com/dist/lovrabet-skill','1672632UdJzxt','userDomain','defaultApp','keys','511196JRQWZp','length','./utils/is-non-interactive.js'];a218_0x8a62=function(){return _0x21f190;};return a218_0x8a62();}export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x9c01f6){return process.env[`RABETBASE_${_0x9c01f6}`]||process.env[`LOVRABET_${_0x9c01f6}`]||undefined;}function optionalString(_0x29cb5e){const _0x1efac2=a218_0x476f;return typeof _0x29cb5e===_0x1efac2(0xc9)&&_0x29cb5e[_0x1efac2(0xcc)]()?_0x29cb5e[_0x1efac2(0xcc)]():undefined;}export async function createContext(_0x4e6eed){const _0x1089d4=a218_0x476f,{config:_0x224ef8,layers:_0x5bbe1f}=readRawConfigWithLayers(),_0x54966c=buildConfig(_0x224ef8,_0x4e6eed,_0x5bbe1f);await initGlobalEnvironment(_0x54966c);const {getUserDomain:_0x52c2a3,getApiDomain:_0x253956}=await import('./constant/domain.js'),_0x250f4d={'apiDomain':_0x253956(),'userDomain':_0x52c2a3()},_0x1a72a6=await buildAuth(_0x54966c);logger[_0x1089d4(0xee)](process[_0x1089d4(0xdb)]());const _0x48e88c=(CLI_BIN_NAME+'\x20'+process[_0x1089d4(0xd6)][_0x1089d4(0xed)](0x2)['join']('\x20'))['trim']();logger[_0x1089d4(0xdc)](_0x48e88c);const {isNonInteractive:_0x2d4769}=await import(_0x1089d4(0xe4)),_0x51b690=_0x2d4769(_0x4e6eed);return{'config':_0x54966c,'auth':_0x1a72a6,'logger':logger,'env':_0x250f4d,'nonInteractive':_0x51b690};}export function buildConfigFromFlags(_0x812f2){const {config:_0x1c2a14,layers:_0x55d6af}=readRawConfigWithLayers();return buildConfig(_0x1c2a14,_0x812f2,_0x55d6af);}export async function initGlobalEnvironment(_0x3d7d0a){const _0x4dd0da=a218_0x476f,{initEnv:_0x4134eb}=await import(_0x4dd0da(0xe8));_0x4134eb(_0x3d7d0a[_0x4dd0da(0xeb)]);const {initDomains:_0x541072}=await import(_0x4dd0da(0xcd));_0x541072({'apiDomain':optionalString(_0x3d7d0a[_0x4dd0da(0xd0)]?.['apiDomain']),'userDomain':optionalString(_0x3d7d0a[_0x4dd0da(0xd0)]?.[_0x4dd0da(0xdf)]),'runtimeDomain':optionalString(_0x3d7d0a[_0x4dd0da(0xd0)]?.[_0x4dd0da(0xca)])});}export function getConfigAppCode(_0x337716){const _0x51cb0d=a218_0x476f,_0x27a6b4=readRawConfig(_0x337716);if(_0x27a6b4[_0x51cb0d(0xd5)]&&typeof _0x27a6b4[_0x51cb0d(0xd5)]===_0x51cb0d(0xec)){const _0x22edd3=_0x27a6b4[_0x51cb0d(0xe0)];if(_0x22edd3&&_0x27a6b4['apps'][_0x22edd3]?.[_0x51cb0d(0xd2)])return String(_0x27a6b4[_0x51cb0d(0xd5)][_0x22edd3][_0x51cb0d(0xd2)])[_0x51cb0d(0xcc)]();const _0x9111b8=Object['values'](_0x27a6b4[_0x51cb0d(0xd5)])[0x0];if(_0x9111b8?.[_0x51cb0d(0xd2)])return String(_0x9111b8[_0x51cb0d(0xd2)])[_0x51cb0d(0xcc)]();}const _0x2cdf23=_0x27a6b4[_0x51cb0d(0xd2)]||_0x27a6b4[_0x51cb0d(0xe6)];if(typeof _0x2cdf23!==_0x51cb0d(0xc9)||_0x2cdf23[_0x51cb0d(0xcc)]()==='')return undefined;return _0x2cdf23['trim']();}export function getMultiAppConfigs(_0x1c3ad1=a218_0x2a234c(0xce),_0xeb7524){const _0x316c0e=a218_0x2a234c,_0x47a69f=loadRawConfigLayers(_0xeb7524);let _0x4f6cfb,_0x57a826;if(_0x1c3ad1==='merged'){const _0x36e247=_0x47a69f[_0x316c0e(0xd3)][_0x316c0e(0xd5)]&&typeof _0x47a69f[_0x316c0e(0xd3)][_0x316c0e(0xd5)]===_0x316c0e(0xec)?_0x47a69f[_0x316c0e(0xd3)][_0x316c0e(0xd5)]:{},_0x1015fa=_0x47a69f['projectConfig'][_0x316c0e(0xd5)]&&typeof _0x47a69f[_0x316c0e(0xda)]['apps']==='object'?_0x47a69f[_0x316c0e(0xda)][_0x316c0e(0xd5)]:{};_0x4f6cfb={..._0x36e247,..._0x1015fa};const _0x1a719b=readRawConfig(_0xeb7524);_0x57a826=_0x1a719b[_0x316c0e(0xe0)];}else _0x4f6cfb=_0x47a69f[_0x316c0e(0xda)][_0x316c0e(0xd5)],_0x57a826=_0x47a69f[_0x316c0e(0xda)]['defaultApp'];if(!_0x4f6cfb||typeof _0x4f6cfb!==_0x316c0e(0xec)||Object[_0x316c0e(0xe1)](_0x4f6cfb)[_0x316c0e(0xe3)]===0x0)return null;return Object['entries'](_0x4f6cfb)[_0x316c0e(0xd8)](([_0x26f801,_0x3f7d03])=>({'name':_0x26f801,'appcode':_0x3f7d03?.['appcode']||'','isDefault':_0x26f801===_0x57a826,'env':_0x3f7d03?.[_0x316c0e(0xeb)],'apiDir':_0x3f7d03?.[_0x316c0e(0xe7)],'cookie':_0x3f7d03?.['cookie']||undefined}))[_0x316c0e(0xd4)](_0x130457=>_0x130457['appcode']);}export function getTemplateBaseUrl(_0x1f02de){const _0x585782=a218_0x2a234c,_0x34d533=readRawConfig(_0x1f02de);if(_0x34d533[_0x585782(0xc8)]&&typeof _0x34d533[_0x585782(0xc8)]===_0x585782(0xc9))return _0x34d533['template_base_url']['replace'](/\/$/,'');return _0x585782(0xdd);}function buildConfig(_0x58c157,_0xbbb0b6,_0x289870){return{...resolveAppConfig({'raw':_0x58c157,'flags':_0xbbb0b6,'layers':_0x289870,'readEnv':env}),'raw':_0x58c157};}function a218_0x476f(_0x409d23,_0x55161e){_0x409d23=_0x409d23-0xc7;const _0x8a6258=a218_0x8a62();let _0x476f35=_0x8a6258[_0x409d23];return _0x476f35;}export function resolveApiFilePath(_0x467765,_0x362351){const _0x52c252=a218_0x2a234c,_0x317a66=resolve(process[_0x52c252(0xdb)](),_0x467765),_0x2b2f79=resolve(_0x317a66,'api.ts');if(!_0x362351)return _0x2b2f79;const _0x36e2fe=readRawConfig(),_0x5e6071=_0x36e2fe[_0x52c252(0xd5)]&&typeof _0x36e2fe[_0x52c252(0xd5)]==='object'?_0x36e2fe[_0x52c252(0xd5)]:{},_0x1b3510=Object[_0x52c252(0xe5)](_0x5e6071)[_0x52c252(0xcf)](([,_0x4ee91c])=>_0x4ee91c?.['appcode']===_0x362351);if(!_0x1b3510)return _0x2b2f79;const [_0x590974,_0x18f5e5]=_0x1b3510,_0x20c70c=typeof _0x36e2fe[_0x52c252(0xe0)]===_0x52c252(0xc9)?_0x36e2fe[_0x52c252(0xe0)]:undefined;if(_0x18f5e5?.[_0x52c252(0xe7)])return _0x2b2f79;if(_0x20c70c&&_0x590974!==_0x20c70c)return resolve(_0x317a66,_0x590974+_0x52c252(0xef));return _0x2b2f79;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f0e16,_0x198e7f){const _0x2035ab=a219_0x4160,_0x3d9f53=_0x5f0e16();while(!![]){try{const _0x70dda0=parseInt(_0x2035ab(0xcf))/0x1+parseInt(_0x2035ab(0xcd))/0x2+-parseInt(_0x2035ab(0xce))/0x3*(parseInt(_0x2035ab(0xd8))/0x4)+parseInt(_0x2035ab(0xcc))/0x5*(-parseInt(_0x2035ab(0xda))/0x6)+-parseInt(_0x2035ab(0xd4))/0x7*(-parseInt(_0x2035ab(0xc9))/0x8)+parseInt(_0x2035ab(0xd5))/0x9*(parseInt(_0x2035ab(0xd3))/0xa)+-parseInt(_0x2035ab(0xca))/0xb;if(_0x70dda0===_0x198e7f)break;else _0x3d9f53['push'](_0x3d9f53['shift']());}catch(_0x35434e){_0x3d9f53['push'](_0x3d9f53['shift']());}}}(a219_0x3a94,0x5b034));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a219_0x3a94(){const _0x3f22b8=['api.ts','755qAskYi','1289924PDjKdC','12yqRBwr','709587qayDnJ','set','datasetCode','utf-8','1250wHQSOB','1151493PvSPjy','45855yFmGKP','get','exec','558728dOPYJq','cwd','6264MVQdLx','24EUjJSs','15353371DvkTnS'];a219_0x3a94=function(){return _0x3f22b8;};return a219_0x3a94();}function a219_0x4160(_0x190c2a,_0x21a4a5){_0x190c2a=_0x190c2a-0xc9;const _0x3a9401=a219_0x3a94();let _0x4160aa=_0x3a9401[_0x190c2a];return _0x4160aa;}const cache=new Map();function parseApiFile(_0x178603){const _0x60a90a=a219_0x4160,_0x233c48=[],_0x1078f2=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x1cfe75;while((_0x1cfe75=_0x1078f2[_0x60a90a(0xd7)](_0x178603))!==null){_0x233c48['push']({'datasetCode':_0x1cfe75[0x1],'tableName':_0x1cfe75[0x2],'name':_0x1cfe75[0x3],'alias':_0x1cfe75[0x4]});}return _0x233c48;}export function loadAliasMap(_0x49b5fc,_0x1cf8b8,_0x18806b){const _0x59df1f=a219_0x4160,_0x169023=_0x18806b??resolve(process[_0x59df1f(0xd9)](),_0x49b5fc,_0x59df1f(0xcb));if(cache['has'](_0x169023))return cache[_0x59df1f(0xd6)](_0x169023);if(!existsSync(_0x169023))return cache[_0x59df1f(0xd0)](_0x169023,[]),[];try{const _0xb187e4=readFileSync(_0x169023,_0x59df1f(0xd2)),_0x263eae=parseApiFile(_0xb187e4);return cache[_0x59df1f(0xd0)](_0x169023,_0x263eae),_0x263eae;}catch{return cache['set'](_0x169023,[]),[];}}export function resolveAlias(_0x47f993,_0x3a79a5,_0x5ee21d,_0x21ebfa){const _0x476860=a219_0x4160;if(!_0x3a79a5)return undefined;const _0x9e951e=loadAliasMap(_0x47f993,_0x5ee21d,_0x21ebfa),_0x20fb0e=_0x9e951e['find'](_0x2c2ec0=>_0x2c2ec0['alias']===_0x3a79a5);return _0x20fb0e?.[_0x476860(0xd1)];}export function listAliases(_0x16f9fe,_0x39b827,_0x4f6322){return loadAliasMap(_0x16f9fe,_0x39b827,_0x4f6322);}
|