@lovrabet/rabetbase-cli 2.4.4 → 2.4.5
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.d.ts +1 -0
- 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/{permit/index.d.ts → dataset/business-groups.d.ts} +1 -1
- package/lib/commands/dataset/business-groups.js +1 -0
- 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.d.ts +15 -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/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/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/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/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.d.ts +15 -17
- 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.d.ts +70 -79
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +1 -0
- 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 +18 -24
- package/skills/rabetbase/guides/database-connection-workflow.md +6 -2
- package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +28 -0
- package/skills/rabetbase/references/rabetbase-dataset-delete.md +7 -5
- package/skills/rabetbase/references/rabetbase-dataset-list.md +6 -6
- package/skills/rabetbase/references/rabetbase-dataset-restore.md +5 -5
- package/skills/rabetbase/references/rabetbase-db-create.md +3 -0
- package/skills/rabetbase/references/rabetbase-db-delete.md +10 -2
- package/skills/rabetbase/references/rabetbase-db-detail.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-list.md +3 -2
- package/skills/rabetbase/references/rabetbase-db-update.md +4 -2
- package/skills/rabetbase/references/rabetbase-role-list.md +9 -17
- package/skills/rabetbase/references/rabetbase-role-user-add.md +44 -16
- package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
- package/skills/rabetbase.manifest.json +4 -7
- package/lib/commands/permit/index.js +0 -1
- package/lib/commands/permit/page-get.d.ts +0 -2
- package/lib/commands/permit/page-get.js +0 -1
- package/lib/commands/permit/page-set.d.ts +0 -2
- package/lib/commands/permit/page-set.js +0 -1
- package/lib/commands/permit/role-apis-set.d.ts +0 -2
- package/lib/commands/permit/role-apis-set.js +0 -1
- package/lib/commands/permit/role-menus-set.d.ts +0 -2
- package/lib/commands/permit/role-menus-set.js +0 -1
- package/lib/commands/permit/role-menus.d.ts +0 -2
- package/lib/commands/permit/role-menus.js +0 -1
- package/lib/commands/permit/shared.d.ts +0 -74
- package/lib/commands/permit/shared.js +0 -1
- package/lib/commands/role/create.d.ts +0 -2
- package/lib/commands/role/create.js +0 -1
- package/skills/rabetbase/guides/role-permit-workflow.md +0 -127
- package/skills/rabetbase/references/rabetbase-permit-page-set.md +0 -69
- package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +0 -53
- package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +0 -57
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a205_0x81df(_0x51ff7e,_0x28be6b){_0x51ff7e=_0x51ff7e-0x16d;const _0xa85fd9=a205_0xa85f();let _0x81df4c=_0xa85fd9[_0x51ff7e];return _0x81df4c;}const a205_0x17eed4=a205_0x81df;(function(_0x57cc77,_0x86b96c){const _0x1a8e7e=a205_0x81df,_0xaeeb65=_0x57cc77();while(!![]){try{const _0xaf630=-parseInt(_0x1a8e7e(0x188))/0x1+parseInt(_0x1a8e7e(0x186))/0x2*(parseInt(_0x1a8e7e(0x183))/0x3)+-parseInt(_0x1a8e7e(0x177))/0x4*(parseInt(_0x1a8e7e(0x17e))/0x5)+parseInt(_0x1a8e7e(0x17f))/0x6+-parseInt(_0x1a8e7e(0x180))/0x7+-parseInt(_0x1a8e7e(0x173))/0x8+parseInt(_0x1a8e7e(0x17c))/0x9;if(_0xaf630===_0x86b96c)break;else _0xaeeb65['push'](_0xaeeb65['shift']());}catch(_0x4cccdb){_0xaeeb65['push'](_0xaeeb65['shift']());}}}(a205_0xa85f,0xe29d3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a205_0x17eed4(0x185),'accessKey',a205_0x17eed4(0x174),'format','riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a205_0x17eed4(0x18c),a205_0x17eed4(0x16e),a205_0x17eed4(0x174),'format',a205_0x17eed4(0x185),a205_0x17eed4(0x178),'apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x583ee1){const _0x185695=a205_0x17eed4;return[..._0x583ee1][_0x185695(0x18a)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2c9ff7){const _0x494051=a205_0x17eed4;return TOP_LEVEL_CONFIG_KEYS[_0x494051(0x187)](_0x2c9ff7);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3f7f7e=a205_0x17eed4;return _0x3f7f7e(0x193)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a205_0x17eed4(0x18f),'cookie':a205_0x17eed4(0x185),'accessKey':a205_0x17eed4(0x178),'defaultFormat':'format','pageSize':a205_0x17eed4(0x170),'riskLevel':a205_0x17eed4(0x181),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x5b10c2=a205_0x17eed4;return[{'name':'env','type':_0x5b10c2(0x171),'description':_0x5b10c2(0x16d),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x5b10c2(0x171),'description':'API\x20directory\x20path'},{'name':_0x5b10c2(0x185),'type':_0x5b10c2(0x171),'description':_0x5b10c2(0x17d),'hidden':!![]},{'name':_0x5b10c2(0x178),'type':_0x5b10c2(0x171),'description':_0x5b10c2(0x172),'hidden':!![]},{'name':_0x5b10c2(0x175),'type':_0x5b10c2(0x171),'description':_0x5b10c2(0x16f),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5b10c2(0x170),'type':_0x5b10c2(0x189),'description':'Default\x20page\x20size'},{'name':_0x5b10c2(0x181),'type':'string','description':_0x5b10c2(0x18e),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x5b10c2(0x176)}];}export function collectAppProfileOverrides(_0xb76a1c){const _0x242abf=a205_0x17eed4,_0x2c12bd={};for(const [_0x4b7393,_0x4da7c3]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x3b1c99=_0xb76a1c(_0x4b7393);if(!_0x3b1c99)continue;_0x2c12bd[_0x4da7c3]=_0x4da7c3===_0x242abf(0x170)?Number(_0x3b1c99):_0x3b1c99;}return _0x2c12bd;}export function buildAppProfileListFields(_0x320364){const _0x3588d0=a205_0x17eed4;return{'env':_0x320364['env']??null,'apiDir':_0x320364['apiDir']??null,'hasCookie':!!_0x320364[_0x3588d0(0x185)],'hasAccessKey':!!_0x320364[_0x3588d0(0x178)],'format':_0x320364[_0x3588d0(0x179)]??null,'pageSize':_0x320364['pageSize']??null,'riskLevel':_0x320364[_0x3588d0(0x181)]??null,'locale':_0x320364[_0x3588d0(0x174)]??null};}export function buildAppDoctorFields(_0xea70f0,_0x6daf05){const _0x392c09=a205_0x17eed4;return{'env':{'value':_0xea70f0[_0x392c09(0x16e)]||_0x6daf05[_0x392c09(0x16e)],'source':_0xea70f0[_0x392c09(0x16e)]?_0x392c09(0x17a):_0x392c09(0x18b)},'apiDir':{'value':_0xea70f0[_0x392c09(0x18f)]||_0x6daf05[_0x392c09(0x18f)],'source':_0xea70f0['apiDir']?_0x392c09(0x17a):_0x392c09(0x18b)},'cookie':{'value':_0xea70f0[_0x392c09(0x185)]||_0x6daf05[_0x392c09(0x185)],'source':_0xea70f0[_0x392c09(0x185)]?_0x392c09(0x17a):_0x392c09(0x18b)},'accessKey':{'value':_0xea70f0['accessKey']||_0x6daf05[_0x392c09(0x178)],'source':_0xea70f0[_0x392c09(0x178)]?_0x392c09(0x17a):_0x392c09(0x18b)}};}export function buildCanonicalAppConfig(_0xd56520,_0x3b039c){const _0x1d7bce=a205_0x17eed4,_0x3a4b0=_0xd56520['map'](_0x129e3c=>String(_0x129e3c||'')[_0x1d7bce(0x184)]())[_0x1d7bce(0x190)](Boolean);if(_0x3a4b0[_0x1d7bce(0x191)]===0x0)return{};const _0x222624={};for(const _0x26d99b of _0x3a4b0){_0x222624[_0x26d99b]=_0x3b039c?{'appcode':_0x26d99b,'env':_0x3b039c}:{'appcode':_0x26d99b};}return{'apps':_0x222624,'defaultApp':_0x3a4b0[0x0]};}export function buildCanonicalProjectConfig(_0x457056,_0x4a1fd6){const _0xf0311d=a205_0x17eed4,{appCodes:appCodes=[],env:_0x320141,metadata:_0xe832af}=_0x4a1fd6,_0xfc0fa9={..._0x457056,..._0xe832af||{}};delete _0xfc0fa9[_0xf0311d(0x18c)],delete _0xfc0fa9[_0xf0311d(0x17a)];if(_0x320141)_0xfc0fa9['env']=_0x320141;else!_0xfc0fa9[_0xf0311d(0x16e)]&&(_0xfc0fa9['env']=DEFAULT_CONFIG_VALUES[_0xf0311d(0x16e)]);const _0xed0bd5=buildCanonicalAppConfig(appCodes,_0xfc0fa9[_0xf0311d(0x16e)]);return Object['keys'](_0xed0bd5)['length']>0x0&&(_0xfc0fa9['apps']=_0xed0bd5['apps'],_0xfc0fa9[_0xf0311d(0x17b)]=_0xed0bd5[_0xf0311d(0x17b)]),_0xfc0fa9;}const LOCALE_MAP={'zh':a205_0x17eed4(0x192),'zh-cn':a205_0x17eed4(0x192),'zh_cn':a205_0x17eed4(0x192),'en':a205_0x17eed4(0x18d),'en-us':a205_0x17eed4(0x18d),'en_us':a205_0x17eed4(0x18d)};export function normalizeLocale(_0x4b4d2b){const _0x436875=a205_0x17eed4;if(!_0x4b4d2b)return null;return LOCALE_MAP[_0x4b4d2b[_0x436875(0x182)]()]??null;}function a205_0xa85f(){const _0x49d45e=['filter','length','zh-CN','Config\x20key\x20(','Target\x20environment','env','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','pageSize','string','Access\x20key','861376EACNTD','locale','defaultFormat','Locale','29584MHcNdS','accessKey','format','app','defaultApp','32626467ENckWa','Auth\x20cookie','815mlvGjD','1877940Fknjws','9692032OQhBTR','riskLevel','toLowerCase','753baFPLd','trim','cookie','4504IXWiiJ','has','877398OuGRNQ','number','join','inherit','appcode','en-US','Risk\x20level','apiDir'];a205_0xa85f=function(){return _0x49d45e;};return a205_0xa85f();}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a206_0x5cc2(){const _0x4f04d8=['/templates/projects','1784VIOlNk','https://g.lovrabet.com/dist/rabetbase-cli','1002130byLDDw','124329aIKcsP','3292436RnOUDL','6pHCVlg','81474vHpwQh','634488UKBqAK','7911aqBtzK','2990130OJPVqJ','/config/index.json','2KHjvkW'];a206_0x5cc2=function(){return _0x4f04d8;};return a206_0x5cc2();}const a206_0x193cbf=a206_0x1d6e;(function(_0x4e337c,_0xb78ebf){const _0x50f926=a206_0x1d6e,_0x5d0fca=_0x4e337c();while(!![]){try{const _0x50fcb5=parseInt(_0x50f926(0x10c))/0x1+parseInt(_0x50f926(0x104))/0x2*(-parseInt(_0x50f926(0x109))/0x3)+-parseInt(_0x50f926(0x100))/0x4+parseInt(_0x50f926(0x108))/0x5*(-parseInt(_0x50f926(0x10b))/0x6)+parseInt(_0x50f926(0x10a))/0x7+-parseInt(_0x50f926(0x106))/0x8*(parseInt(_0x50f926(0x101))/0x9)+parseInt(_0x50f926(0x102))/0xa;if(_0x50fcb5===_0xb78ebf)break;else _0x5d0fca['push'](_0x5d0fca['shift']());}catch(_0x3a0a53){_0x5d0fca['push'](_0x5d0fca['shift']());}}}(a206_0x5cc2,0x3e177));export const RABETBASE_CDN_BASE_URL=a206_0x193cbf(0x107);function a206_0x1d6e(_0x5928a6,_0xe62bca){_0x5928a6=_0x5928a6-0x100;const _0x5cc2a3=a206_0x5cc2();let _0x1d6e44=_0x5cc2a3[_0x5928a6];return _0x1d6e44;}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a206_0x193cbf(0x103);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a206_0x193cbf(0x105);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a214_0x55a419=a214_0x4d26;function a214_0x4d26(_0x3ace9e,_0x1624e3){_0x3ace9e=_0x3ace9e-0x1f3;const _0x5426ef=a214_0x5426();let _0x4d2682=_0x5426ef[_0x3ace9e];return _0x4d2682;}(function(_0x2dbe91,_0x4f2756){const _0x1aa193=a214_0x4d26,_0x450370=_0x2dbe91();while(!![]){try{const _0x3bba2a=parseInt(_0x1aa193(0x1f4))/0x1+-parseInt(_0x1aa193(0x22e))/0x2+parseInt(_0x1aa193(0x267))/0x3*(-parseInt(_0x1aa193(0x24e))/0x4)+parseInt(_0x1aa193(0x21c))/0x5*(-parseInt(_0x1aa193(0x1f7))/0x6)+-parseInt(_0x1aa193(0x218))/0x7*(-parseInt(_0x1aa193(0x240))/0x8)+-parseInt(_0x1aa193(0x25f))/0x9*(-parseInt(_0x1aa193(0x235))/0xa)+parseInt(_0x1aa193(0x244))/0xb*(parseInt(_0x1aa193(0x217))/0xc);if(_0x3bba2a===_0x4f2756)break;else _0x450370['push'](_0x450370['shift']());}catch(_0x5e48cd){_0x450370['push'](_0x450370['shift']());}}}(a214_0x5426,0xd255e));export const CLI_BIN_NAME=a214_0x55a419(0x241);export const CLI_DISPLAY_NAME=a214_0x55a419(0x252);export const NPM_PACKAGE_NAME=a214_0x55a419(0x253);function a214_0x5426(){const _0x1cb119=['function-node','description-file','Read\x20value\x20from\x20environment\x20variable','description','sql-name','label','json\x20|\x20pretty\x20|\x20compress','1291340ygZMzK','string','parentId','schemas','DB\x20ID','SQL\x20code','Use\x20project\x20config\x20scope','170ojRoAn','dry-run','descriptionFile','Tags','functionNode','Page\x20number','tags','Expected\x20current\x20child\x20count','confirm','clear','Output\x20path','416viFLnQ','rabetbase','Show\x20help','all','7961129KfALQS','appcode','Expected\x20affected\x20count','Alias\x20for\x20--non-interactive','Name','Description\x20file','pagesize','expected-children-count','JSON\x20params','key','4VoNSHZ','File\x20path','enable-bff-save','Config\x20key','Rabetbase\x20CLI','@lovrabet/rabetbase-cli','Preview\x20operation\x20without\x20executing','Use\x20global\x20config\x20scope','Skip\x20confirmation\x20for\x20high-risk\x20writes','<name>','db-id','Parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','target','type','remote','title','448776dVxFom','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expectParentId','menuIds','app','Schemas','Environment','code','1913523uMFcYX','parent-id','sql','sqlcode','Asynchronous\x20task\x20ID','Dataset\x20code','file','expectedCount','format','Record\x20ID','Title','operation-type','taskId','Force\x20overwrite','1019627AVYiIa','operation','nonInteractive','12bEgnVG','Menu\x20sort\x20value','project','Code\x20filter','<code>','help','Skip\x20import\x20generation','verbose','map','sqlName','Expected\x20current\x20menu\x20path','Config\x20value','page','Apply\x20to\x20all','name','output','env','Watch\x20mode','Target\x20path','SQL\x20name','Read\x20value\x20from\x20stdin','skip-imports','<expr>','Output\x20format','Operation\x20type','watch','stdin','boolean','reveal','fromEnv','Verbose\x20output','keyword','24OwmJBy','65779OGOtoK','Keyword\x20filter','Clear','Page\x20size','4145980zMyQOU','sort','dbid','sqlname','Enable\x20BFF\x20save','Function\x20node','force','datasetcode','yes','Confirm\x20destructive\x20action','params'];a214_0x5426=function(){return _0x1cb119;};return a214_0x5426();}export const GLOBAL_FLAGS=[{'name':a214_0x55a419(0x245),'meowKey':a214_0x55a419(0x245),'type':'string','description':'Override\x20appcode','hint':a214_0x55a419(0x1fb)},{'name':a214_0x55a419(0x263),'meowKey':a214_0x55a419(0x263),'type':a214_0x55a419(0x22f),'description':'Select\x20app\x20profile\x20by\x20name','hint':a214_0x55a419(0x257)},{'name':'env','meowKey':a214_0x55a419(0x207),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x265),'hint':'production\x20|\x20daily'},{'name':a214_0x55a419(0x26f),'meowKey':'format','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20e),'hint':a214_0x55a419(0x22d)},{'name':'jq','meowKey':'jq','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x260),'hint':a214_0x55a419(0x20d)},{'name':'dry-run','meowKey':'dryRun','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x254)},{'name':'yes','meowKey':'yes','type':'boolean','description':a214_0x55a419(0x256)},{'name':'non-interactive','meowKey':a214_0x55a419(0x1f6),'type':'boolean','description':a214_0x55a419(0x25a)},{'name':'global','meowKey':'global','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x255)},{'name':a214_0x55a419(0x1f9),'meowKey':'project','type':'boolean','description':a214_0x55a419(0x234)},{'name':'ci','meowKey':'ci','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x247),'hidden':!![]},{'name':a214_0x55a419(0x1fc),'meowKey':'help','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x242)},{'name':a214_0x55a419(0x205),'meowKey':'name','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x248),'hidden':!![]},{'name':'title','meowKey':a214_0x55a419(0x25e),'type':'string','description':a214_0x55a419(0x271),'hidden':!![]},{'name':a214_0x55a419(0x23e),'meowKey':a214_0x55a419(0x23e),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x21a),'hidden':!![]},{'name':a214_0x55a419(0x210),'meowKey':a214_0x55a419(0x210),'type':'boolean','description':a214_0x55a419(0x208),'hidden':!![]},{'name':a214_0x55a419(0x206),'meowKey':a214_0x55a419(0x206),'type':'string','description':a214_0x55a419(0x23f),'hidden':!![]},{'name':a214_0x55a419(0x226),'meowKey':a214_0x55a419(0x226),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x24c),'hidden':!![]},{'name':a214_0x55a419(0x223),'meowKey':a214_0x55a419(0x223),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x26c),'hidden':!![]},{'name':'all','meowKey':a214_0x55a419(0x243),'type':'boolean','description':a214_0x55a419(0x204),'hidden':!![]},{'name':a214_0x55a419(0x250),'meowKey':'enableBffSave','type':'boolean','description':a214_0x55a419(0x220),'hidden':!![]},{'name':'id','meowKey':'id','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x270),'hidden':!![]},{'name':a214_0x55a419(0x25c),'meowKey':a214_0x55a419(0x25c),'type':a214_0x55a419(0x22f),'description':'Type\x20filter','hidden':!![]},{'name':a214_0x55a419(0x26d),'meowKey':a214_0x55a419(0x26d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x24f),'hidden':!![]},{'name':a214_0x55a419(0x26a),'meowKey':a214_0x55a419(0x26a),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x233),'hidden':!![]},{'name':a214_0x55a419(0x22b),'meowKey':a214_0x55a419(0x200),'type':a214_0x55a419(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':a214_0x55a419(0x21f),'meowKey':a214_0x55a419(0x21f),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20a),'hidden':!![]},{'name':a214_0x55a419(0x258),'meowKey':'dbId','type':a214_0x55a419(0x22f),'description':'DB\x20ID','hidden':!![]},{'name':a214_0x55a419(0x21e),'meowKey':a214_0x55a419(0x21e),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x232),'hidden':!![]},{'name':a214_0x55a419(0x22a),'meowKey':'description','type':a214_0x55a419(0x22f),'description':'Description','hidden':!![]},{'name':a214_0x55a419(0x228),'meowKey':a214_0x55a419(0x237),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x249),'hidden':!![]},{'name':a214_0x55a419(0x203),'meowKey':a214_0x55a419(0x203),'type':'string','description':a214_0x55a419(0x23a),'hidden':!![]},{'name':a214_0x55a419(0x24a),'meowKey':a214_0x55a419(0x24a),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x21b),'hidden':!![]},{'name':a214_0x55a419(0x216),'meowKey':a214_0x55a419(0x216),'type':'string','description':a214_0x55a419(0x219),'hidden':!![]},{'name':a214_0x55a419(0x266),'meowKey':'code','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x1fa),'hidden':!![]},{'name':a214_0x55a419(0x269),'meowKey':a214_0x55a419(0x269),'type':a214_0x55a419(0x22f),'description':'SQL\x20string','hidden':!![]},{'name':a214_0x55a419(0x231),'meowKey':'schemas','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x264),'hidden':!![]},{'name':a214_0x55a419(0x1f5),'meowKey':a214_0x55a419(0x1f5),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20f),'hidden':!![]},{'name':a214_0x55a419(0x25b),'meowKey':a214_0x55a419(0x25b),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x209),'hidden':!![]},{'name':a214_0x55a419(0x20c),'meowKey':'skipImports','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x1fd),'hidden':!![]},{'name':a214_0x55a419(0x24d),'meowKey':a214_0x55a419(0x24d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x251),'hidden':!![]},{'name':'value','meowKey':'value','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x202),'hidden':!![]},{'name':a214_0x55a419(0x23b),'meowKey':'tags','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x238),'hidden':!![]},{'name':a214_0x55a419(0x211),'meowKey':a214_0x55a419(0x211),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x20b),'hidden':!![]},{'name':'from-env','meowKey':a214_0x55a419(0x214),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x229),'hidden':!![]},{'name':a214_0x55a419(0x213),'meowKey':a214_0x55a419(0x213),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a214_0x55a419(0x222),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x1f3),'hidden':!![]},{'name':a214_0x55a419(0x23d),'meowKey':a214_0x55a419(0x23d),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x225),'hidden':!![]},{'name':a214_0x55a419(0x25d),'meowKey':a214_0x55a419(0x25d),'type':a214_0x55a419(0x212),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a214_0x55a419(0x1fe),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x215),'hidden':!![]},{'name':'expected-count','meowKey':a214_0x55a419(0x26e),'type':'string','description':a214_0x55a419(0x246),'hidden':!![]},{'name':a214_0x55a419(0x22c),'meowKey':a214_0x55a419(0x22c),'type':'string','description':'Menu\x20label','hidden':!![]},{'name':a214_0x55a419(0x268),'meowKey':a214_0x55a419(0x230),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x259),'hidden':!![]},{'name':'sort','meowKey':a214_0x55a419(0x21d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x1f8),'hidden':!![]},{'name':'expect-parent-id','meowKey':a214_0x55a419(0x261),'type':a214_0x55a419(0x22f),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x201),'hidden':!![]},{'name':a214_0x55a419(0x24b),'meowKey':'expectedChildrenCount','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x23c),'hidden':!![]},{'name':'menu-ids','meowKey':a214_0x55a419(0x262),'type':a214_0x55a419(0x22f),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a214_0x55a419(0x273),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x26b),'hidden':!![]},{'name':a214_0x55a419(0x272),'meowKey':'operationType','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20f),'hidden':!![]},{'name':a214_0x55a419(0x227),'meowKey':a214_0x55a419(0x239),'type':'string','description':a214_0x55a419(0x221),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a214_0x55a419(0x245),'app','env',a214_0x55a419(0x26f),'jq',a214_0x55a419(0x236),a214_0x55a419(0x224),'non-interactive','ci']);export function buildMeowFlags(){const _0x255389=a214_0x55a419;return Object['fromEntries'](GLOBAL_FLAGS[_0x255389(0x1ff)](_0x40b72b=>[_0x40b72b['meowKey'],{'type':_0x40b72b[_0x255389(0x25c)]}]));}
|
|
1
|
+
const a207_0x3ba76c=a207_0x772d;(function(_0x11fb30,_0x595379){const _0x12d4a8=a207_0x772d,_0x4f227f=_0x11fb30();while(!![]){try{const _0x39bed9=parseInt(_0x12d4a8(0x19e))/0x1+parseInt(_0x12d4a8(0x1c3))/0x2*(-parseInt(_0x12d4a8(0x20a))/0x3)+-parseInt(_0x12d4a8(0x1fc))/0x4+-parseInt(_0x12d4a8(0x1be))/0x5+-parseInt(_0x12d4a8(0x1cc))/0x6+parseInt(_0x12d4a8(0x1a6))/0x7*(parseInt(_0x12d4a8(0x1e6))/0x8)+-parseInt(_0x12d4a8(0x19f))/0x9*(-parseInt(_0x12d4a8(0x200))/0xa);if(_0x39bed9===_0x595379)break;else _0x4f227f['push'](_0x4f227f['shift']());}catch(_0x48c832){_0x4f227f['push'](_0x4f227f['shift']());}}}(a207_0x428a,0x5f1f2));export const CLI_BIN_NAME=a207_0x3ba76c(0x1b9);function a207_0x772d(_0x463470,_0x3ad230){_0x463470=_0x463470-0x19b;const _0x428a6b=a207_0x428a();let _0x772d8e=_0x428a6b[_0x463470];return _0x772d8e;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a207_0x3ba76c(0x1c7);function a207_0x428a(){const _0x407b99=['expectPath','Override\x20appcode','sort','Clear','clear','confirm','Use\x20global\x20config\x20scope','enable-bff-save','db-id','JSON\x20params','fromEnv','Show\x20help','Description','Expected\x20current\x20child\x20count','force','help','Skip\x20confirmation\x20for\x20high-risk\x20writes','<name>','rabetbase','page','Environment','Confirm\x20destructive\x20action','name','1103210SKxTiy','Type\x20filter','format','stdin','function-node','78lTlXNT','Force\x20overwrite','reveal','Description\x20file','@lovrabet/rabetbase-cli','expect-parent-id','Dataset\x20code','Menu\x20label','SQL\x20name','2719482AMTvfp','Config\x20value','DB\x20ID','target','expectedCount','Title','dbId','keyword','non-interactive','nonInteractive','Enable\x20BFF\x20save','schemas','sqlname','app','enableBffSave','Config\x20key','expectedChildrenCount','Expected\x20current\x20parent\x20menu\x20id','string','Page\x20size','menu-ids','skipImports','from-env','Reveal\x20sensitive\x20value','Read\x20value\x20from\x20environment\x20variable','Tags','24GFoveU','expectParentId','dry-run','output','datasetcode','params','Parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','functionNode','Operation\x20type','yes','fromEntries','Skip\x20import\x20generation','Function\x20node','operationType','Read\x20value\x20from\x20stdin','sqlName','label','expected-children-count','project','value','operation-type','1751392YApPsI','watch','Output\x20format','env','930tNeXXk','pagesize','Name','json\x20|\x20pretty\x20|\x20compress','title','parentId','descriptionFile','SQL\x20code','type','sql-name','3681eNXfVG','map','boolean','global','Page\x20number','sql','verbose','remote','all','Use\x20remote','Watch\x20mode','Expected\x20affected\x20count','key','Menu\x20sort\x20value','385781rZIKGv','106218tGbaws','operation','appcode','<code>','tags','Keyword\x20filter','code','153629SGtvmu'];a207_0x428a=function(){return _0x407b99;};return a207_0x428a();}export const GLOBAL_FLAGS=[{'name':a207_0x3ba76c(0x1a1),'meowKey':'appcode','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1a8),'hint':a207_0x3ba76c(0x1a2)},{'name':a207_0x3ba76c(0x1d9),'meowKey':a207_0x3ba76c(0x1d9),'type':a207_0x3ba76c(0x1de),'description':'Select\x20app\x20profile\x20by\x20name','hint':a207_0x3ba76c(0x1b8)},{'name':a207_0x3ba76c(0x1ff),'meowKey':a207_0x3ba76c(0x1ff),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1bb),'hint':'production\x20|\x20daily'},{'name':a207_0x3ba76c(0x1c0),'meowKey':a207_0x3ba76c(0x1c0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1fe),'hint':a207_0x3ba76c(0x203)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':a207_0x3ba76c(0x1e8),'meowKey':'dryRun','type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a207_0x3ba76c(0x1f0),'meowKey':'yes','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1b7)},{'name':a207_0x3ba76c(0x1d4),'meowKey':a207_0x3ba76c(0x1d5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1ed)},{'name':a207_0x3ba76c(0x20d),'meowKey':a207_0x3ba76c(0x20d),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1ad)},{'name':a207_0x3ba76c(0x1f9),'meowKey':a207_0x3ba76c(0x1f9),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a207_0x3ba76c(0x20c),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a207_0x3ba76c(0x1b6),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1b2)},{'name':a207_0x3ba76c(0x1bd),'meowKey':a207_0x3ba76c(0x1bd),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x202),'hidden':!![]},{'name':a207_0x3ba76c(0x204),'meowKey':'title','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1d1),'hidden':!![]},{'name':a207_0x3ba76c(0x1ab),'meowKey':a207_0x3ba76c(0x1ab),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1aa),'hidden':!![]},{'name':a207_0x3ba76c(0x1fd),'meowKey':a207_0x3ba76c(0x1fd),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x214),'hidden':!![]},{'name':'output','meowKey':a207_0x3ba76c(0x1e9),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a207_0x3ba76c(0x1eb),'meowKey':a207_0x3ba76c(0x1eb),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1b0),'hidden':!![]},{'name':a207_0x3ba76c(0x1ea),'meowKey':a207_0x3ba76c(0x1ea),'type':'string','description':a207_0x3ba76c(0x1c9),'hidden':!![]},{'name':a207_0x3ba76c(0x212),'meowKey':a207_0x3ba76c(0x212),'type':a207_0x3ba76c(0x20c),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a207_0x3ba76c(0x1ae),'meowKey':a207_0x3ba76c(0x1da),'type':'boolean','description':a207_0x3ba76c(0x1d6),'hidden':!![]},{'name':'id','meowKey':'id','type':a207_0x3ba76c(0x1de),'description':'Record\x20ID','hidden':!![]},{'name':a207_0x3ba76c(0x208),'meowKey':a207_0x3ba76c(0x208),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1bf),'hidden':!![]},{'name':'file','meowKey':'file','type':a207_0x3ba76c(0x1de),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x207),'hidden':!![]},{'name':a207_0x3ba76c(0x209),'meowKey':a207_0x3ba76c(0x1f6),'type':'string','description':a207_0x3ba76c(0x1cb),'hidden':!![]},{'name':'sqlname','meowKey':a207_0x3ba76c(0x1d8),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1cb),'hidden':!![]},{'name':a207_0x3ba76c(0x1af),'meowKey':a207_0x3ba76c(0x1d2),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ce),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ce),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a207_0x3ba76c(0x1b3),'hidden':!![]},{'name':'description-file','meowKey':a207_0x3ba76c(0x206),'type':'string','description':a207_0x3ba76c(0x1c6),'hidden':!![]},{'name':a207_0x3ba76c(0x1ba),'meowKey':a207_0x3ba76c(0x1ba),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x20e),'hidden':!![]},{'name':a207_0x3ba76c(0x201),'meowKey':a207_0x3ba76c(0x201),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1df),'hidden':!![]},{'name':a207_0x3ba76c(0x1d3),'meowKey':a207_0x3ba76c(0x1d3),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1a4),'hidden':!![]},{'name':a207_0x3ba76c(0x1a5),'meowKey':a207_0x3ba76c(0x1a5),'type':a207_0x3ba76c(0x1de),'description':'Code\x20filter','hidden':!![]},{'name':a207_0x3ba76c(0x20f),'meowKey':a207_0x3ba76c(0x20f),'type':a207_0x3ba76c(0x1de),'description':'SQL\x20string','hidden':!![]},{'name':a207_0x3ba76c(0x1d7),'meowKey':'schemas','type':'string','description':'Schemas','hidden':!![]},{'name':a207_0x3ba76c(0x1a0),'meowKey':a207_0x3ba76c(0x1a0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ef),'hidden':!![]},{'name':a207_0x3ba76c(0x1cf),'meowKey':a207_0x3ba76c(0x1cf),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a207_0x3ba76c(0x1e1),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1f2),'hidden':!![]},{'name':'key','meowKey':a207_0x3ba76c(0x19c),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1db),'hidden':!![]},{'name':'value','meowKey':a207_0x3ba76c(0x1fa),'type':'string','description':a207_0x3ba76c(0x1cd),'hidden':!![]},{'name':a207_0x3ba76c(0x1a3),'meowKey':a207_0x3ba76c(0x1a3),'type':'string','description':a207_0x3ba76c(0x1e5),'hidden':!![]},{'name':a207_0x3ba76c(0x1c1),'meowKey':'stdin','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1f5),'hidden':!![]},{'name':a207_0x3ba76c(0x1e2),'meowKey':a207_0x3ba76c(0x1b1),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1e4),'hidden':!![]},{'name':'reveal','meowKey':a207_0x3ba76c(0x1c5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1e3),'hidden':!![]},{'name':a207_0x3ba76c(0x1b5),'meowKey':a207_0x3ba76c(0x1b5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1c4),'hidden':!![]},{'name':a207_0x3ba76c(0x1ac),'meowKey':'confirm','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1bc),'hidden':!![]},{'name':a207_0x3ba76c(0x211),'meowKey':a207_0x3ba76c(0x211),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x213),'hidden':!![]},{'name':a207_0x3ba76c(0x210),'meowKey':a207_0x3ba76c(0x210),'type':a207_0x3ba76c(0x20c),'description':'Verbose\x20output','hidden':!![]},{'name':'expected-count','meowKey':a207_0x3ba76c(0x1d0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x19b),'hidden':!![]},{'name':a207_0x3ba76c(0x1f7),'meowKey':a207_0x3ba76c(0x1f7),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ca),'hidden':!![]},{'name':'parent-id','meowKey':a207_0x3ba76c(0x205),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ec),'hidden':!![]},{'name':a207_0x3ba76c(0x1a9),'meowKey':a207_0x3ba76c(0x1a9),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x19d),'hidden':!![]},{'name':a207_0x3ba76c(0x1c8),'meowKey':a207_0x3ba76c(0x1e7),'type':'string','description':a207_0x3ba76c(0x1dd),'hidden':!![]},{'name':'expect-path','meowKey':a207_0x3ba76c(0x1a7),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a207_0x3ba76c(0x1f8),'meowKey':a207_0x3ba76c(0x1dc),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1b4),'hidden':!![]},{'name':a207_0x3ba76c(0x1e0),'meowKey':'menuIds','type':a207_0x3ba76c(0x1de),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a207_0x3ba76c(0x1de),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a207_0x3ba76c(0x1fb),'meowKey':a207_0x3ba76c(0x1f4),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ef),'hidden':!![]},{'name':a207_0x3ba76c(0x1c2),'meowKey':a207_0x3ba76c(0x1ee),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1f3),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a207_0x3ba76c(0x1a1),'app',a207_0x3ba76c(0x1ff),a207_0x3ba76c(0x1c0),'jq',a207_0x3ba76c(0x1e8),'yes',a207_0x3ba76c(0x1d4),'ci']);export function buildMeowFlags(){const _0x296f55=a207_0x3ba76c;return Object[_0x296f55(0x1f1)](GLOBAL_FLAGS[_0x296f55(0x20b)](_0x4bb19d=>[_0x4bb19d['meowKey'],{'type':_0x4bb19d[_0x296f55(0x208)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x1c2a34=a208_0x3ca0;function a208_0x5023(){const _0x5dc5a8=['1088538fuExzY','en-US','4452847vKNAkK','5476akmUIq','16wYxXYr','835fUFQXT','8889264GbXRkC','19745ErJLmM','5771970FfOpwQ','production','1835328iFSgiC','compress','4UHpXcN','write','6590YvCTTI'];a208_0x5023=function(){return _0x5dc5a8;};return a208_0x5023();}function a208_0x3ca0(_0x589b92,_0xdf29d){_0x589b92=_0x589b92-0x10d;const _0x502366=a208_0x5023();let _0x3ca0a1=_0x502366[_0x589b92];return _0x3ca0a1;}(function(_0x551358,_0x3c1cec){const _0x28fde7=a208_0x3ca0,_0x4a0c23=_0x551358();while(!![]){try{const _0x260fe8=-parseInt(_0x28fde7(0x11b))/0x1+parseInt(_0x28fde7(0x10e))/0x2*(-parseInt(_0x28fde7(0x111))/0x3)+parseInt(_0x28fde7(0x114))/0x4*(parseInt(_0x28fde7(0x116))/0x5)+parseInt(_0x28fde7(0x117))/0x6+-parseInt(_0x28fde7(0x113))/0x7*(-parseInt(_0x28fde7(0x115))/0x8)+-parseInt(_0x28fde7(0x119))/0x9+-parseInt(_0x28fde7(0x110))/0xa*(-parseInt(_0x28fde7(0x118))/0xb);if(_0x260fe8===_0x3c1cec)break;else _0x4a0c23['push'](_0x4a0c23['shift']());}catch(_0x4ab8aa){_0x4a0c23['push'](_0x4a0c23['shift']());}}}(a208_0x5023,0xeb194));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a208_0x1c2a34(0x11a),'format':a208_0x1c2a34(0x10d),'locale':a208_0x1c2a34(0x112),'riskLevel':a208_0x1c2a34(0x10f),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a208_0x1c2a34(0x10d);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x5cca50=a209_0x6997;(function(_0x3e56ae,_0x5643d8){const _0x32e907=a209_0x6997,_0x228791=_0x3e56ae();while(!![]){try{const _0x20bf10=-parseInt(_0x32e907(0x1ab))/0x1*(parseInt(_0x32e907(0x1aa))/0x2)+parseInt(_0x32e907(0x1af))/0x3+-parseInt(_0x32e907(0x1a9))/0x4+parseInt(_0x32e907(0x1a6))/0x5*(parseInt(_0x32e907(0x1b5))/0x6)+parseInt(_0x32e907(0x1b2))/0x7+parseInt(_0x32e907(0x1b0))/0x8+-parseInt(_0x32e907(0x1b4))/0x9;if(_0x20bf10===_0x5643d8)break;else _0x228791['push'](_0x228791['shift']());}catch(_0x1f35ec){_0x228791['push'](_0x228791['shift']());}}}(a209_0x13e8,0xe347e));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x435845){const _0x1f984e=a209_0x6997;customApiDomain=_0x435845?.['apiDomain'],customUserDomain=_0x435845?.['userDomain'],customRuntimeDomain=_0x435845?.[_0x1f984e(0x1ad)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a209_0x5cca50(0x1b6):a209_0x5cca50(0x1a8));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a209_0x5cca50(0x1a5));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a209_0x5cca50(0x1b1):a209_0x5cca50(0x1b3));function a209_0x13e8(){const _0x20b532=['https://daily-runtime.lovrabet.com','15011487XrPEgb','9821802IrYZzI','https://user.lovrabet.com','trim','https://daily-api.lovrabet.com','5WvWDvd','https://daily.lovrabet.com','https://user-daily.lovrabet.com','5273272bXnAtV','1130308qpAxeA','1SDwPHf','/web-app/app/','runtimeDomain','/app/','3209316uYelrG','10132528dwjrHw','https://runtime.lovrabet.com','3563364wrasND'];a209_0x13e8=function(){return _0x20b532;};return a209_0x13e8();}export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a209_0x5cca50(0x1a7);function a209_0x6997(_0x15220b,_0x55cb55){_0x15220b=_0x15220b-0x1a5;const _0x13e888=a209_0x13e8();let _0x699759=_0x13e888[_0x15220b];return _0x699759;}export const getAppBaseUrl=_0x1d0e84=>{const _0x26ad8d=a209_0x5cca50,_0x333b93=encodeURIComponent(_0x1d0e84[_0x26ad8d(0x1b7)]());return isProduction(getEnv())?getAppDomain()+_0x26ad8d(0x1ae)+_0x333b93:getAppDomain()+_0x26ad8d(0x1ac)+_0x333b93;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0x188869=a210_0x5c87;(function(_0x3944f2,_0x32b85d){const _0xe97400=a210_0x5c87,_0x2f14aa=_0x3944f2();while(!![]){try{const _0x5cb2be=parseInt(_0xe97400(0x18d))/0x1+-parseInt(_0xe97400(0x18b))/0x2+-parseInt(_0xe97400(0x188))/0x3+-parseInt(_0xe97400(0x18f))/0x4+parseInt(_0xe97400(0x190))/0x5*(parseInt(_0xe97400(0x192))/0x6)+-parseInt(_0xe97400(0x196))/0x7*(parseInt(_0xe97400(0x189))/0x8)+-parseInt(_0xe97400(0x18e))/0x9*(-parseInt(_0xe97400(0x194))/0xa);if(_0x5cb2be===_0x32b85d)break;else _0x2f14aa['push'](_0x2f14aa['shift']());}catch(_0x4349f1){_0x2f14aa['push'](_0x2f14aa['shift']());}}}(a210_0x1b3e,0x426f3));export const RABETBASE_ENV_VALUES=[a210_0x188869(0x195),'daily'];function a210_0x5c87(_0x15a245,_0x51b65d){_0x15a245=_0x15a245-0x188;const _0x1b3e9b=a210_0x1b3e();let _0x5c8774=_0x1b3e9b[_0x15a245];return _0x5c8774;}export function normalizeEnv(_0x1aacf4){const _0x2ae608=a210_0x188869;return _0x1aacf4===_0x2ae608(0x193)?_0x2ae608(0x195):_0x1aacf4;}export function isProduction(_0x253992){const _0x1a2c5c=a210_0x188869;return normalizeEnv(_0x253992)===_0x1a2c5c(0x195);}export function isDaily(_0x3bb2ac){const _0x32e044=a210_0x188869;return normalizeEnv(_0x3bb2ac)===_0x32e044(0x18c);}export function isDev(_0x507135){const _0xd3aa68=a210_0x188869,_0x2222f3=normalizeEnv(_0x507135);return _0x2222f3===_0xd3aa68(0x18a)||_0x2222f3===_0xd3aa68(0x191);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a210_0x188869(0x195));function a210_0x1b3e(){const _0x5a7928=['3801tVIDeW','352626VXRgjY','2272qhVptF','development','664214vTSdRv','daily','475619AqFNvZ','336969zJSVgv','1591972nqEqst','10475ceEBnW','dev','678ELFhjV','online','150ATeAKo','production'];a210_0x1b3e=function(){return _0x5a7928;};return a210_0x1b3e();}export function getEnv(){return env;}export function initEnv(_0x5c9f50){env=normalizeEnv(_0x5c9f50);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a211_0x26e9d6=a211_0x29a4;function a211_0x29a4(_0xafb74,_0x906acf){_0xafb74=_0xafb74-0xaf;const _0x591a96=a211_0x591a();let _0x29a470=_0x591a96[_0xafb74];return _0x29a470;}function a211_0x591a(){const _0xc4ffbe=['5672648RstmKh','39516GIYaAp','1148lfvMmS','5714675lMndyo','json','52990sTAUMw','11260139ZnptLp','30mmnJLa','64QyzHzH','1yyUZbW','243207xGFyDQ','15217686UzfVGh','compress'];a211_0x591a=function(){return _0xc4ffbe;};return a211_0x591a();}(function(_0x235600,_0x453a82){const _0x5d53a2=a211_0x29a4,_0x5ecf68=_0x235600();while(!![]){try{const _0x27883d=parseInt(_0x5d53a2(0xb2))/0x1*(parseInt(_0x5d53a2(0xbb))/0x2)+parseInt(_0x5d53a2(0xb3))/0x3*(-parseInt(_0x5d53a2(0xb1))/0x4)+parseInt(_0x5d53a2(0xb9))/0x5+-parseInt(_0x5d53a2(0xb7))/0x6*(parseInt(_0x5d53a2(0xb8))/0x7)+parseInt(_0x5d53a2(0xb6))/0x8+-parseInt(_0x5d53a2(0xb4))/0x9+-parseInt(_0x5d53a2(0xb0))/0xa*(-parseInt(_0x5d53a2(0xaf))/0xb);if(_0x27883d===_0x453a82)break;else _0x5ecf68['push'](_0x5ecf68['shift']());}catch(_0x232908){_0x5ecf68['push'](_0x5ecf68['shift']());}}}(a211_0x591a,0xd72f4));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a211_0x26e9d6(0xba),'pretty',a211_0x26e9d6(0xb5)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x15641b=a212_0x3c98;(function(_0x27f87b,_0x24f4d4){const _0x51dae4=a212_0x3c98,_0xc85a12=_0x27f87b();while(!![]){try{const _0x129dfa=-parseInt(_0x51dae4(0x136))/0x1+-parseInt(_0x51dae4(0x138))/0x2+-parseInt(_0x51dae4(0x13d))/0x3+parseInt(_0x51dae4(0x139))/0x4+-parseInt(_0x51dae4(0x137))/0x5+parseInt(_0x51dae4(0x13e))/0x6*(-parseInt(_0x51dae4(0x13a))/0x7)+parseInt(_0x51dae4(0x13b))/0x8;if(_0x129dfa===_0x24f4d4)break;else _0xc85a12['push'](_0xc85a12['shift']());}catch(_0x54d46b){_0xc85a12['push'](_0xc85a12['shift']());}}}(a212_0xbe75,0xed662));export const DEFAULT_API_DIR=a212_0x15641b(0x13c);function a212_0x3c98(_0x174955,_0x266b69){_0x174955=_0x174955-0x136;const _0xbe7522=a212_0xbe75();let _0x3c98ec=_0xbe7522[_0x174955];return _0x3c98ec;}function a212_0xbe75(){const _0x1a5e0e=['62463440YgMIpi','./src/api','4619649MLMBCc','546NcfYAg','389976gmCKQS','6395020FfFBaD','3787820mhfcLO','542928dlyWOK','143731fHwJzS'];a212_0xbe75=function(){return _0x1a5e0e;};return a212_0xbe75();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a213_0x42ed(){const _0x3ef8d0=['1290340sKYIEf','152596jxfwCu','306048kOhyEc','9IciZMj','5456845Fctaew','read','7qyvQVr','4KRnZZd','3072762JqykXc','8809596qDrOJX','308904fgQpSS'];a213_0x42ed=function(){return _0x3ef8d0;};return a213_0x42ed();}const a213_0x53053d=a213_0x22e2;function a213_0x22e2(_0x23c4d7,_0x1e1ebe){_0x23c4d7=_0x23c4d7-0x112;const _0x42ed52=a213_0x42ed();let _0x22e2c5=_0x42ed52[_0x23c4d7];return _0x22e2c5;}(function(_0x430f37,_0x48922b){const _0x55417c=a213_0x22e2,_0x36b59b=_0x430f37();while(!![]){try{const _0x557838=parseInt(_0x55417c(0x11a))/0x1+-parseInt(_0x55417c(0x11b))/0x2+parseInt(_0x55417c(0x116))/0x3+-parseInt(_0x55417c(0x115))/0x4*(-parseInt(_0x55417c(0x112))/0x5)+parseInt(_0x55417c(0x117))/0x6*(-parseInt(_0x55417c(0x114))/0x7)+parseInt(_0x55417c(0x118))/0x8+-parseInt(_0x55417c(0x11c))/0x9*(-parseInt(_0x55417c(0x119))/0xa);if(_0x557838===_0x48922b)break;else _0x36b59b['push'](_0x36b59b['shift']());}catch(_0x14439c){_0x36b59b['push'](_0x36b59b['shift']());}}}(a213_0x42ed,0xc6df0));export const RISK_LEVEL_VALUES=[a213_0x53053d(0x113),'write','high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a214_0x54cf(){const _0x343965=['locale','ENV','projectConfig','app','trim','hasOwnProperty','call','3512172EwphXi','FORMAT','9562624VhuVBv','70wqTXAs','object','1445706XdxObm','PAGE_SIZE','323745ESQRaM','globalConfig','accessKey','apps','552450JvECDV','apiDir','defaultApp','read','string','daily','riskLevel','true','MAX_RISK','format','env','8395261YMuBnJ','pageSize','4WiElSh','appcode','entries','high-risk-write','1603270AdHOkk','6aryuXW','keys','find','cookie','write','prototype'];a214_0x54cf=function(){return _0x343965;};return a214_0x54cf();}function a214_0x58df(_0x5467d8,_0x3f1766){_0x5467d8=_0x5467d8-0x1d5;const _0x54cf19=a214_0x54cf();let _0x58df4f=_0x54cf19[_0x5467d8];return _0x58df4f;}(function(_0x27c34e,_0x50a135){const _0x171a07=a214_0x58df,_0x2dca26=_0x27c34e();while(!![]){try{const _0x414c24=parseInt(_0x171a07(0x1d5))/0x1+-parseInt(_0x171a07(0x1e2))/0x2*(parseInt(_0x171a07(0x1fb))/0x3)+-parseInt(_0x171a07(0x1f4))/0x4+parseInt(_0x171a07(0x1e6))/0x5+-parseInt(_0x171a07(0x1e7))/0x6*(parseInt(_0x171a07(0x1e0))/0x7)+parseInt(_0x171a07(0x1f6))/0x8+parseInt(_0x171a07(0x1f9))/0x9*(parseInt(_0x171a07(0x1f7))/0xa);if(_0x414c24===_0x50a135)break;else _0x2dca26['push'](_0x2dca26['shift']());}catch(_0x5d029c){_0x2dca26['push'](_0x2dca26['shift']());}}}(a214_0x54cf,0xdba5a));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x400a3b){const _0x526daf=a214_0x58df;return typeof _0x400a3b===_0x526daf(0x1d9)&&_0x400a3b[_0x526daf(0x1f1)]()?_0x400a3b[_0x526daf(0x1f1)]():undefined;}function appProfiles(_0xcdc6d3){const _0x468c6a=a214_0x58df;return _0xcdc6d3['apps']&&typeof _0xcdc6d3[_0x468c6a(0x1fe)]===_0x468c6a(0x1f8)?_0xcdc6d3[_0x468c6a(0x1fe)]:{};}function resolveDefaultAppName(_0x10bce0){const _0x197b1a=a214_0x58df,_0x2c64c1=stringConfigValue(_0x10bce0[_0x197b1a(0x1d7)]);if(_0x2c64c1)return _0x2c64c1;return Object['keys'](appProfiles(_0x10bce0))[0x0];}function resolveTopLevelAppCode(_0x59ceec){const _0x4b59bf=a214_0x58df;return stringConfigValue(_0x59ceec[_0x4b59bf(0x1e3)])||stringConfigValue(_0x59ceec[_0x4b59bf(0x1f0)]);}function normalizeRiskCeiling(_0x5a4dd0){const _0x263fc8=a214_0x58df;if(_0x5a4dd0===undefined||_0x5a4dd0===null)return undefined;if(_0x5a4dd0===_0x263fc8(0x1d8)||_0x5a4dd0===_0x263fc8(0x1eb)||_0x5a4dd0===_0x263fc8(0x1e5))return _0x5a4dd0;return _0x263fc8(0x1d8);}function resolveRiskCeiling(..._0x132689){const _0x1c3add=a214_0x58df;let _0x36e78d;for(const _0x468f67 of _0x132689){const _0x2d52da=normalizeRiskCeiling(_0x468f67);_0x2d52da&&(!_0x36e78d||riskLevelOrder(_0x2d52da)<riskLevelOrder(_0x36e78d))&&(_0x36e78d=_0x2d52da);}return _0x36e78d??DEFAULT_CONFIG_VALUES[_0x1c3add(0x1db)];}function configuredRiskCeilings(_0x1f89d1){const _0x223a98=a214_0x58df;return[...Object['prototype'][_0x223a98(0x1f2)][_0x223a98(0x1f3)](_0x1f89d1,'maxRisk')?[_0x1f89d1['maxRisk']]:[],...Object[_0x223a98(0x1ec)][_0x223a98(0x1f2)]['call'](_0x1f89d1,_0x223a98(0x1db))?[_0x1f89d1[_0x223a98(0x1db)]]:[]];}export function resolveAppConfig({raw:_0x3ca2d6,flags:_0x4461b7,layers:_0x216262,readEnv:_0x411f3c}){const _0x44758a=a214_0x58df,_0x2b4cf4=_0x216262?.[_0x44758a(0x1ef)]??{},_0x546638=_0x216262?.[_0x44758a(0x1fc)]??{},_0x30a2e7=Object['keys'](_0x2b4cf4)['length']>0x0,_0x1ecdba=!_0x30a2e7||_0x2b4cf4['inherit']===!![],_0x59b60b=_0x30a2e7?resolveDefaultAppName(_0x2b4cf4):undefined,_0x2cf0b1=_0x1ecdba?resolveDefaultAppName(_0x546638):undefined,_0x44cfa8=stringConfigValue(_0x4461b7['app']),_0x24ac63=_0x411f3c('APP'),_0x19ec27={};if(_0x3ca2d6[_0x44758a(0x1fe)]&&typeof _0x3ca2d6[_0x44758a(0x1fe)]===_0x44758a(0x1f8))for(const [_0x109b00,_0x1e1015]of Object[_0x44758a(0x1e4)](_0x3ca2d6[_0x44758a(0x1fe)])){_0x1e1015&&typeof _0x1e1015===_0x44758a(0x1f8)&&_0x1e1015[_0x44758a(0x1e3)]&&(_0x19ec27[_0x109b00]=_0x1e1015);}const _0x567579=_0x3ca2d6[_0x44758a(0x1d7)]||undefined,_0x94da4d=Object[_0x44758a(0x1e8)](_0x19ec27)['length']>0x0,_0x2471af=_0x44cfa8||_0x59b60b||_0x24ac63||_0x2cf0b1||_0x567579||undefined,_0x1ec7d6=stringConfigValue(_0x4461b7[_0x44758a(0x1e3)]),_0x57cff9=_0x1ec7d6?Object[_0x44758a(0x1e4)](_0x19ec27)[_0x44758a(0x1e9)](([,_0x5d06f3])=>_0x5d06f3?.[_0x44758a(0x1e3)]===_0x1ec7d6):undefined,_0x2dc97e=_0x57cff9?.[0x0],_0x5b2d78=_0x57cff9?.[0x1],_0x1fbb91=_0x1ec7d6?_0x2dc97e:_0x2471af;let _0x24cf8f=_0x1fbb91&&_0x19ec27[_0x1fbb91]?_0x19ec27[_0x1fbb91]:undefined;_0x1ec7d6&&_0x5b2d78&&(_0x24cf8f=_0x5b2d78);const _0x1487ec=_0x1ec7d6?_0x5b2d78??_0x24cf8f:_0x24cf8f,_0x155c6d=!_0x44cfa8&&!_0x59b60b&&_0x24ac63&&_0x1fbb91===_0x24ac63,_0xa8dd0b=_0x44cfa8||(_0x155c6d?_0x24ac63:undefined)||(_0x1ec7d6?_0x2dc97e:undefined),_0x44715e=_0x1487ec?.[_0x44758a(0x1e3)],_0x58c411=_0x30a2e7?resolveTopLevelAppCode(_0x2b4cf4):undefined,_0x478fa6=_0x1ecdba?resolveTopLevelAppCode(_0x546638):undefined,_0x23329c=_0x44cfa8||_0x59b60b?_0x44715e:undefined,_0x57415e=!_0x44cfa8&&!_0x59b60b?_0x44715e:undefined,_0x2386dd=_0x1ec7d6||_0x23329c||_0x58c411||_0x57415e||_0x478fa6||undefined,_0xab1e10=_0x30a2e7?stringConfigValue(_0x2b4cf4[_0x44758a(0x1df)]):undefined,_0x396f36=_0x1ecdba?stringConfigValue(_0x546638[_0x44758a(0x1df)]):undefined,_0x216c23=_0x4461b7[_0x44758a(0x1df)]||_0x1487ec?.[_0x44758a(0x1df)]||_0xab1e10||_0x411f3c(_0x44758a(0x1ee))||_0x396f36||_0x3ca2d6['env']||DEFAULT_CONFIG_VALUES[_0x44758a(0x1df)],_0x358480=_0x1487ec?.[_0x44758a(0x1ed)]||_0x3ca2d6['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x5ec24e=_0x411f3c('COOKIE')||_0x1487ec?.['cookie']||_0x3ca2d6[_0x44758a(0x1ea)]||undefined,_0x344011=_0x411f3c('ACCESS_KEY')||_0x1487ec?.[_0x44758a(0x1fd)]||_0x3ca2d6[_0x44758a(0x1fd)]||undefined,_0x363b3c=_0x4461b7['format']||_0x411f3c(_0x44758a(0x1f5))||_0x1487ec?.[_0x44758a(0x1de)]||_0x3ca2d6[_0x44758a(0x1de)],_0x341f46=normalizeLegacyOutputFormat(_0x363b3c),_0x11a627=_0x411f3c(_0x44758a(0x1fa))||_0x1487ec?.[_0x44758a(0x1e1)]||_0x3ca2d6[_0x44758a(0x1e1)],_0x539eb9=_0x11a627?Number(_0x11a627)||undefined:undefined,_0x34b1d2=_0x216262?[...configuredRiskCeilings(_0x216262['globalConfig']),...configuredRiskCeilings(_0x216262[_0x44758a(0x1ef)])]:configuredRiskCeilings(_0x3ca2d6),_0x53a0d1=resolveRiskCeiling(..._0x34b1d2,_0x1487ec?.[_0x44758a(0x1db)]),_0x28e1c5=resolveRiskCeiling(_0x53a0d1,_0x411f3c('RISK_LEVEL'),_0x411f3c(_0x44758a(0x1dd))),_0x3297e6=_0x411f3c('VERBOSE'),_0x1731f7=_0x3297e6==='1'||_0x3297e6===_0x44758a(0x1dc),_0x1cf6a8=_0x1487ec?.[_0x44758a(0x1d6)]||_0x3ca2d6[_0x44758a(0x1d6)]||DEFAULT_CONFIG_VALUES[_0x44758a(0x1d6)],_0x459fa9=isDaily(normalizeEnv(String(_0x216c23)))?_0x44758a(0x1da):'production';return{'appCode':typeof _0x2386dd===_0x44758a(0x1d9)&&_0x2386dd[_0x44758a(0x1f1)]()?_0x2386dd[_0x44758a(0x1f1)]():undefined,'env':_0x459fa9,'locale':_0x358480,'cookie':_0x5ec24e,'accessKey':_0x344011,'format':_0x341f46,'pageSize':_0x539eb9,'riskLevel':_0x28e1c5,'verbose':_0x1731f7,'apiDir':_0x1cf6a8,'apps':_0x19ec27,'defaultApp':_0x567579,'currentApp':_0x94da4d?_0x1fbb91:undefined,'explicitAppName':_0xa8dd0b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4de602,_0x50a35d){const _0x27fcf9=a215_0x40be,_0x1b6e2a=_0x4de602();while(!![]){try{const _0x5cce07=parseInt(_0x27fcf9(0xbc))/0x1*(parseInt(_0x27fcf9(0xbf))/0x2)+-parseInt(_0x27fcf9(0xb6))/0x3*(parseInt(_0x27fcf9(0xc4))/0x4)+parseInt(_0x27fcf9(0xbb))/0x5+-parseInt(_0x27fcf9(0xb7))/0x6*(parseInt(_0x27fcf9(0xb5))/0x7)+parseInt(_0x27fcf9(0xc2))/0x8*(parseInt(_0x27fcf9(0xbe))/0x9)+parseInt(_0x27fcf9(0xb9))/0xa*(parseInt(_0x27fcf9(0xc0))/0xb)+-parseInt(_0x27fcf9(0xc1))/0xc*(-parseInt(_0x27fcf9(0xc3))/0xd);if(_0x5cce07===_0x50a35d)break;else _0x1b6e2a['push'](_0x1b6e2a['shift']());}catch(_0x239068){_0x1b6e2a['push'](_0x1b6e2a['shift']());}}}(a215_0x49d0,0x8958f));function a215_0x40be(_0x37b93d,_0x2d24f6){_0x37b93d=_0x37b93d-0xb5;const _0x49d04f=a215_0x49d0();let _0x40beb8=_0x49d04f[_0x37b93d];return _0x40beb8;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a215_0x49d0(){const _0x51d801=['7WZiRKL','8193LGmeLX','5629854aVatOZ','../auth/get-cookie.js','20TSPGjp','authRequired','149490OFXQXG','136379zJeNTV','cookie','243yzLRww','6NJPBCB','1399552OkshTM','1985100JwaCVq','142232HRyFNc','65tVrMAE','732tKWsLX'];a215_0x49d0=function(){return _0x51d801;};return a215_0x49d0();}export async function buildAuth(_0x19b4d5){const _0x419287=a215_0x40be,{getCookie:_0x258728}=await import(_0x419287(0xb8)),_0x24fb48=_0x19b4d5[_0x419287(0xbd)]||_0x258728(),_0x26726a=_0x24fb48?await getIsSessionValid():![];return{'cookie':_0x24fb48,'isLoggedIn':_0x26726a,async 'getOrLogin'(){const _0x444d8e=_0x419287;if(_0x24fb48&&_0x26726a)return _0x24fb48;throw CliErrors[_0x444d8e(0xba)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a223_0x548894=a223_0x1392;(function(_0xc82b15,_0xfb7753){const _0x4e082f=a223_0x1392,_0x531188=_0xc82b15();while(!![]){try{const _0x176728=-parseInt(_0x4e082f(0x11c))/0x1*(parseInt(_0x4e082f(0xf8))/0x2)+-parseInt(_0x4e082f(0x123))/0x3+parseInt(_0x4e082f(0x100))/0x4*(-parseInt(_0x4e082f(0xfd))/0x5)+parseInt(_0x4e082f(0xf9))/0x6*(-parseInt(_0x4e082f(0x102))/0x7)+-parseInt(_0x4e082f(0x116))/0x8*(-parseInt(_0x4e082f(0xf3))/0x9)+parseInt(_0x4e082f(0x117))/0xa+-parseInt(_0x4e082f(0x126))/0xb*(-parseInt(_0x4e082f(0xf6))/0xc);if(_0x176728===_0xfb7753)break;else _0x531188['push'](_0x531188['shift']());}catch(_0x32c465){_0x531188['push'](_0x531188['shift']());}}}(a223_0x4359,0x430e6));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=a223_0x548894(0x11a);function a223_0x1392(_0x3cccce,_0x1a0a36){_0x3cccce=_0x3cccce-0xf3;const _0x435940=a223_0x4359();let _0x139217=_0x435940[_0x3cccce];return _0x139217;}export const CONFIG_NAMES=[a223_0x548894(0x11a),a223_0x548894(0x107),a223_0x548894(0x122)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x512f58=>_0x512f58!==NEW_CONFIG_NAME);function a223_0x4359(){const _0x55ab65=['\x0a\x20\x20','11836OCbfVc','utf8','2240fNteRz','defaultApp','inherit','riskLevel','Global','.lovrabet.json','cookie','app','Project','missing','warn','env','empty','migrated','status','format','accessKey','stringify','message','length','24tZSVoQ','4593810JDMQZt','trim','cwd','.rabetbase.json','config','2128CeIueg','apiDir','pageSize','get','object','data','.lovrabetrc','513081deNSJd','appcode','keys','4758809AKlUmI','project','501813pIGpNs','string','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','24UPtFkP','set','418bLPprd','7338CmXIOM','apps','locale','parse','355WXKtQt','error'];a223_0x4359=function(){return _0x55ab65;};return a223_0x4359();}const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3ae648){for(const _0x4c4628 of CONFIG_NAMES){const _0xcb5c35=resolve(_0x3ae648,_0x4c4628);if(existsSync(_0xcb5c35))return _0xcb5c35;}return undefined;}export function findProjectRootDirectory(_0x42cc32=process[a223_0x548894(0x119)]()){let _0x1da0b6=resolve(_0x42cc32);const {root:_0x515b62}=parse(_0x1da0b6),_0x10e29f=homedir();while(!![]){if(resolveConfigPath(_0x1da0b6)){if(_0x1da0b6===_0x10e29f)break;return _0x1da0b6;}if(_0x1da0b6===_0x515b62||_0x1da0b6===_0x10e29f)break;const _0x620300=dirname(_0x1da0b6);if(_0x620300===_0x1da0b6)break;_0x1da0b6=_0x620300;}return resolve(_0x42cc32);}export function getProjectConfigPath(){const _0x1fa995=a223_0x548894;return resolveConfigPath(process[_0x1fa995(0x119)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1e64c0){const _0x171763=a223_0x548894;if(!existsSync(_0x1e64c0))return{'status':_0x171763(0x10b)};try{const _0x1c8b9a=readFileSync(_0x1e64c0,{'encoding':_0x171763(0x101)});if(!_0x1c8b9a?.[_0x171763(0x118)]())return{'status':_0x171763(0x10e)};const _0x268c3f=JSON[_0x171763(0xfc)](_0x1c8b9a);return{'status':'ok','data':_0x268c3f};}catch(_0x2ef22f){return{'status':_0x171763(0xfe),'message':_0x2ef22f instanceof Error?_0x2ef22f[_0x171763(0x114)]:String(_0x2ef22f)};}}function parseCliConfigJsonFile(_0x41d98b,_0x140e89,_0x5a8e0f){const _0x4014da=a223_0x548894,_0x38dd7c=inspectCliConfigJsonFile(_0x41d98b);if(_0x38dd7c[_0x4014da(0x110)]==='missing'||_0x38dd7c['status']===_0x4014da(0x10e))return{};if(_0x38dd7c[_0x4014da(0x110)]==='ok')return _0x38dd7c[_0x4014da(0x121)];return _0x140e89===_0x4014da(0x10c)&&_0x5a8e0f&&console[_0x4014da(0xfe)](CLI_BIN_NAME+':\x20'+_0x5a8e0f+_0x4014da(0xf5)+_0x41d98b+_0x4014da(0xff)+_0x38dd7c['message']),{};}function normalizeLegacyConfigShape(_0x1562a0){const _0x54f51d=a223_0x548894;if(!_0x1562a0||typeof _0x1562a0!==_0x54f51d(0x120))return{'config':{},'migrated':![]};const _0x3503c0={..._0x1562a0},_0x48b845=_0x3503c0[_0x54f51d(0xfa)]&&typeof _0x3503c0[_0x54f51d(0xfa)]==='object'?{..._0x3503c0[_0x54f51d(0xfa)]}:{},_0x548bef=Object['keys'](_0x48b845)[_0x54f51d(0x115)],_0x1d38b3=_0x3503c0[_0x54f51d(0x124)]||_0x3503c0[_0x54f51d(0x109)];let _0x122f90=![];if(_0x1d38b3&&_0x548bef===0x0){const _0x59bc9a=typeof _0x3503c0[_0x54f51d(0x103)]===_0x54f51d(0xf4)&&_0x3503c0['defaultApp'][_0x54f51d(0x118)]()?_0x3503c0['defaultApp']:String(_0x1d38b3)['trim']();_0x48b845[_0x59bc9a]={'appcode':String(_0x1d38b3)[_0x54f51d(0x118)](),..._0x3503c0[_0x54f51d(0x10d)]!=null?{'env':_0x3503c0[_0x54f51d(0x10d)]}:{},..._0x3503c0[_0x54f51d(0x11d)]!=null?{'apiDir':_0x3503c0[_0x54f51d(0x11d)]}:{},..._0x3503c0[_0x54f51d(0x108)]!=null?{'cookie':_0x3503c0[_0x54f51d(0x108)]}:{},..._0x3503c0['accessKey']!=null?{'accessKey':_0x3503c0['accessKey']}:{},..._0x3503c0[_0x54f51d(0x111)]!=null?{'format':_0x3503c0['format']}:{},..._0x3503c0['pageSize']!=null?{'pageSize':_0x3503c0['pageSize']}:{},..._0x3503c0[_0x54f51d(0x105)]!=null?{'riskLevel':_0x3503c0[_0x54f51d(0x105)]}:{},..._0x3503c0[_0x54f51d(0xfb)]!=null?{'locale':_0x3503c0[_0x54f51d(0xfb)]}:{}},_0x3503c0[_0x54f51d(0xfa)]=_0x48b845;if(!_0x3503c0[_0x54f51d(0x103)])_0x3503c0[_0x54f51d(0x103)]=_0x59bc9a;_0x122f90=!![];}return(_0x54f51d(0x124)in _0x3503c0||_0x54f51d(0x109)in _0x3503c0)&&(delete _0x3503c0[_0x54f51d(0x124)],delete _0x3503c0[_0x54f51d(0x109)],_0x122f90=!![]),{'config':_0x3503c0,'migrated':_0x122f90};}function writeNormalizedConfigIfNeeded(_0x2c47e1,_0x28eafd){const _0x55617f=a223_0x548894,_0x35a4a3=JSON[_0x55617f(0x113)](_0x28eafd,null,0x2)+'\x0a';if(normalizedWriteCache[_0x55617f(0x11f)](_0x2c47e1)===_0x35a4a3)return;writeConfigFile(_0x2c47e1,_0x28eafd),normalizedWriteCache[_0x55617f(0xf7)](_0x2c47e1,_0x35a4a3);}function parseAndNormalizeConfig(_0x186ac5,_0x174b37,_0x1f1ea9){const _0xcf780e=a223_0x548894,_0x805df3=parseCliConfigJsonFile(_0x186ac5,_0x174b37,_0x1f1ea9),_0x26f6c3=normalizeLegacyConfigShape(_0x805df3);if(_0x26f6c3[_0xcf780e(0x10f)])try{writeNormalizedConfigIfNeeded(_0x186ac5,_0x26f6c3[_0xcf780e(0x11b)]);}catch{}return _0x26f6c3[_0xcf780e(0x11b)];}export function loadRawConfigLayers(_0x398c74){const _0x552d75=a223_0x548894;let _0x4b6e46={},_0x40bc82={};const _0x40258a=resolveConfigPath(homedir());_0x40258a&&(_0x4b6e46=parseAndNormalizeConfig(_0x40258a,_0x552d75(0x10c),_0x552d75(0x106)));const _0x4f5fe0=_0x398c74??findProjectRootDirectory(),_0x346ce1=resolveConfigPath(_0x4f5fe0);return _0x346ce1&&(_0x40bc82=parseAndNormalizeConfig(_0x346ce1,'warn',_0x552d75(0x10a))),{'globalPath':_0x40258a,'projectPath':_0x346ce1,'globalConfig':_0x4b6e46,'projectConfig':_0x40bc82};}const INHERIT_WHITELIST=[a223_0x548894(0x108),a223_0x548894(0x112),'locale',a223_0x548894(0x111),a223_0x548894(0x105),a223_0x548894(0x11e)];export function mergeRawConfigLayers(_0x6a0b49){const _0x169cd6=a223_0x548894,{globalConfig:_0x10bae5,projectConfig:_0x60cd90}=_0x6a0b49,_0x298ad5=Object['keys'](_0x60cd90)[_0x169cd6(0x115)]>0x0;if(!_0x298ad5)return mergeGlobalOnly(_0x10bae5);if(_0x60cd90['inherit']===!![])return mergeFullInherit(_0x10bae5,_0x60cd90);if(_0x60cd90[_0x169cd6(0x104)]===![])return mergeIsolated(_0x60cd90);return mergeProjectFirst(_0x10bae5,_0x60cd90);}function mergeGlobalOnly(_0x5ecef2){const _0x5aface=a223_0x548894,_0xf0b31c={..._0x5ecef2},_0xbbd7c9=_0x5ecef2['apps']&&typeof _0x5ecef2[_0x5aface(0xfa)]==='object'?_0x5ecef2['apps']:{};if(Object[_0x5aface(0x125)](_0xbbd7c9)['length']>0x0)_0xf0b31c[_0x5aface(0xfa)]=_0xbbd7c9;if(_0x5ecef2[_0x5aface(0x103)])_0xf0b31c[_0x5aface(0x103)]=_0x5ecef2[_0x5aface(0x103)];else{const _0x105151=Object[_0x5aface(0x125)](_0xbbd7c9);if(_0x105151[_0x5aface(0x115)]>0x0)_0xf0b31c[_0x5aface(0x103)]=_0x105151[0x0];}return _0xf0b31c;}function mergeIsolated(_0x445826){const _0x450ab7=a223_0x548894,_0x8984f5={..._0x445826};delete _0x8984f5['inherit'];const _0x25979a=_0x445826['apps']&&typeof _0x445826[_0x450ab7(0xfa)]===_0x450ab7(0x120)?_0x445826[_0x450ab7(0xfa)]:{};Object[_0x450ab7(0x125)](_0x25979a)['length']>0x0?_0x8984f5['apps']=_0x25979a:delete _0x8984f5['apps'];if(_0x450ab7(0x103)in _0x445826)_0x8984f5['defaultApp']=_0x445826[_0x450ab7(0x103)];else Object['keys'](_0x25979a)[_0x450ab7(0x115)]>0x0?_0x8984f5[_0x450ab7(0x103)]=Object[_0x450ab7(0x125)](_0x25979a)[0x0]:delete _0x8984f5['defaultApp'];return _0x8984f5;}function mergeProjectFirst(_0xe32542,_0x2e0277){const _0x2fd65a=a223_0x548894,_0x34a2d4={..._0x2e0277};delete _0x34a2d4[_0x2fd65a(0x104)];for(const _0x4ada1a of INHERIT_WHITELIST){!(_0x4ada1a in _0x34a2d4)&&_0x4ada1a in _0xe32542&&(_0x34a2d4[_0x4ada1a]=_0xe32542[_0x4ada1a]);}const _0x56a1f0=_0x2e0277[_0x2fd65a(0xfa)]&&typeof _0x2e0277[_0x2fd65a(0xfa)]===_0x2fd65a(0x120)?_0x2e0277[_0x2fd65a(0xfa)]:{};Object[_0x2fd65a(0x125)](_0x56a1f0)[_0x2fd65a(0x115)]>0x0?_0x34a2d4['apps']=_0x56a1f0:delete _0x34a2d4[_0x2fd65a(0xfa)];if('defaultApp'in _0x2e0277)_0x34a2d4[_0x2fd65a(0x103)]=_0x2e0277['defaultApp'];else Object[_0x2fd65a(0x125)](_0x56a1f0)[_0x2fd65a(0x115)]>0x0?_0x34a2d4[_0x2fd65a(0x103)]=Object['keys'](_0x56a1f0)[0x0]:delete _0x34a2d4[_0x2fd65a(0x103)];return _0x34a2d4;}function mergeFullInherit(_0x6c5deb,_0x59b07f){const _0x27ad50=a223_0x548894,_0x5c4777=_0x6c5deb['apps']&&typeof _0x6c5deb['apps']===_0x27ad50(0x120)?_0x6c5deb[_0x27ad50(0xfa)]:{},_0x3a64a0=_0x59b07f['apps']&&typeof _0x59b07f[_0x27ad50(0xfa)]===_0x27ad50(0x120)?_0x59b07f[_0x27ad50(0xfa)]:{},_0x4d8f4d={..._0x5c4777,..._0x3a64a0},_0x34f0ec={..._0x6c5deb,..._0x59b07f};delete _0x34f0ec[_0x27ad50(0x104)];if(Object[_0x27ad50(0x125)](_0x4d8f4d)[_0x27ad50(0x115)]>0x0)_0x34f0ec['apps']=_0x4d8f4d;if('defaultApp'in _0x59b07f)_0x34f0ec[_0x27ad50(0x103)]=_0x59b07f['defaultApp'];else{if(Object['keys'](_0x3a64a0)['length']>0x0)_0x34f0ec['defaultApp']=Object[_0x27ad50(0x125)](_0x3a64a0)[0x0];else{if(_0x6c5deb[_0x27ad50(0x103)])_0x34f0ec[_0x27ad50(0x103)]=_0x6c5deb[_0x27ad50(0x103)];else{const _0x59a539=Object['keys'](_0x5c4777);if(_0x59a539[_0x27ad50(0x115)]>0x0)_0x34f0ec['defaultApp']=_0x59a539[0x0];}}}return _0x34f0ec;}export function readRawConfigWithLayers(_0x22325b){const _0x6c8491=loadRawConfigLayers(_0x22325b);return{'config':mergeRawConfigLayers(_0x6c8491),'layers':_0x6c8491};}export function readRawConfig(_0x4c45a2){return mergeRawConfigLayers(loadRawConfigLayers(_0x4c45a2));}export function readConfigFile(_0x3102d5){return parseAndNormalizeConfig(_0x3102d5,'silent');}export function writeConfigFile(_0x3cddf1,_0x552cb8){const _0x134e0a=a223_0x548894,_0x18e85c=dirname(_0x3cddf1);!existsSync(_0x18e85c)&&mkdirSync(_0x18e85c,{'recursive':!![]});const _0x352fef=_0x3cddf1+'.tmp';try{writeFileSync(_0x352fef,JSON[_0x134e0a(0x113)](_0x552cb8,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x352fef,_0x3cddf1);}catch(_0x363ea8){try{unlinkSync(_0x352fef);}catch{}throw _0x363ea8;}}export function resolveWriteConfigPath(_0x1a205a){const _0x5be000=a223_0x548894,_0x3335a6=_0x1a205a===_0x5be000(0x127)?process[_0x5be000(0x119)]():homedir(),_0x21f91f=resolveConfigPath(_0x3335a6);return _0x21f91f??resolve(_0x3335a6,NEW_CONFIG_NAME);}
|
|
1
|
+
const a216_0x257138=a216_0x3577;(function(_0x4f9d38,_0x265804){const _0x58d7c2=a216_0x3577,_0x8bd32f=_0x4f9d38();while(!![]){try{const _0x1e4cd4=-parseInt(_0x58d7c2(0x1ea))/0x1*(parseInt(_0x58d7c2(0x1e4))/0x2)+parseInt(_0x58d7c2(0x1f0))/0x3+parseInt(_0x58d7c2(0x1cd))/0x4+-parseInt(_0x58d7c2(0x1c5))/0x5+-parseInt(_0x58d7c2(0x1f1))/0x6*(parseInt(_0x58d7c2(0x1de))/0x7)+parseInt(_0x58d7c2(0x1d4))/0x8+parseInt(_0x58d7c2(0x1e9))/0x9;if(_0x1e4cd4===_0x265804)break;else _0x8bd32f['push'](_0x8bd32f['shift']());}catch(_0x2cb8ab){_0x8bd32f['push'](_0x8bd32f['shift']());}}}(a216_0x4327,0xca897));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a216_0x3577(_0x5c16dc,_0x3d31d0){_0x5c16dc=_0x5c16dc-0x1c4;const _0x4327c4=a216_0x4327();let _0x3577c6=_0x4327c4[_0x5c16dc];return _0x3577c6;}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=a216_0x257138(0x1e0);export const CONFIG_NAMES=[a216_0x257138(0x1e0),a216_0x257138(0x1d1),a216_0x257138(0x1ce)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1d8e0c=>_0x1d8e0c!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2feb0a){for(const _0x297cc0 of CONFIG_NAMES){const _0x31d807=resolve(_0x2feb0a,_0x297cc0);if(existsSync(_0x31d807))return _0x31d807;}return undefined;}export function findProjectRootDirectory(_0x5cb3e8=process[a216_0x257138(0x1da)]()){let _0x4fc58d=resolve(_0x5cb3e8);const {root:_0x4b236b}=parse(_0x4fc58d),_0x5878cb=homedir();while(!![]){if(resolveConfigPath(_0x4fc58d)){if(_0x4fc58d===_0x5878cb)break;return _0x4fc58d;}if(_0x4fc58d===_0x4b236b||_0x4fc58d===_0x5878cb)break;const _0x152bfc=dirname(_0x4fc58d);if(_0x152bfc===_0x4fc58d)break;_0x4fc58d=_0x152bfc;}return resolve(_0x5cb3e8);}export function getProjectConfigPath(){const _0x980af4=a216_0x257138;return resolveConfigPath(process[_0x980af4(0x1da)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x51efa1){const _0x404bbb=a216_0x257138;if(!existsSync(_0x51efa1))return{'status':_0x404bbb(0x1cc)};try{const _0x34aaa6=readFileSync(_0x51efa1,{'encoding':'utf8'});if(!_0x34aaa6?.[_0x404bbb(0x1e7)]())return{'status':'empty'};const _0x2dd795=JSON['parse'](_0x34aaa6);return{'status':'ok','data':_0x2dd795};}catch(_0x16488c){return{'status':_0x404bbb(0x1f3),'message':_0x16488c instanceof Error?_0x16488c[_0x404bbb(0x1dd)]:String(_0x16488c)};}}function parseCliConfigJsonFile(_0x3b4f79,_0x12bc9e,_0x235672){const _0x463ace=a216_0x257138,_0x3ac00a=inspectCliConfigJsonFile(_0x3b4f79);if(_0x3ac00a[_0x463ace(0x1d3)]==='missing'||_0x3ac00a[_0x463ace(0x1d3)]===_0x463ace(0x1f2))return{};if(_0x3ac00a[_0x463ace(0x1d3)]==='ok')return _0x3ac00a[_0x463ace(0x1d6)];return _0x12bc9e===_0x463ace(0x1df)&&_0x235672&&console[_0x463ace(0x1f3)](CLI_BIN_NAME+':\x20'+_0x235672+_0x463ace(0x1d9)+_0x3b4f79+_0x463ace(0x1d7)+_0x3ac00a[_0x463ace(0x1dd)]),{};}function a216_0x4327(){const _0x2bd3fc=['message','7DQMDBw','warn','.rabetbase.json','inherit','app','apps','4hXEeUe','cookie','get','trim','format','19024596qQNGIz','382929uysBJN','utf8','accessKey','stringify','defaultApp','apiDir','1734603OJbMrW','6999588coZFEV','empty','error','object','8117985rXPkeJ','keys','set','pageSize','Global','length','config','missing','1800616UvSfAJ','.lovrabetrc','migrated','riskLevel','.lovrabet.json','appcode','status','9947560BcLXFl','env','data','\x0a\x20\x20','silent','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','project','locale'];a216_0x4327=function(){return _0x2bd3fc;};return a216_0x4327();}function normalizeLegacyConfigShape(_0x58d4fa){const _0x1d0be3=a216_0x257138;if(!_0x58d4fa||typeof _0x58d4fa!==_0x1d0be3(0x1c4))return{'config':{},'migrated':![]};const _0xb0bc8a={..._0x58d4fa},_0x124aa6=_0xb0bc8a[_0x1d0be3(0x1e3)]&&typeof _0xb0bc8a[_0x1d0be3(0x1e3)]===_0x1d0be3(0x1c4)?{..._0xb0bc8a[_0x1d0be3(0x1e3)]}:{},_0x43dd45=Object[_0x1d0be3(0x1c6)](_0x124aa6)['length'],_0x25b2d3=_0xb0bc8a[_0x1d0be3(0x1d2)]||_0xb0bc8a['app'];let _0x592bc6=![];if(_0x25b2d3&&_0x43dd45===0x0){const _0x6d7282=typeof _0xb0bc8a[_0x1d0be3(0x1ee)]==='string'&&_0xb0bc8a['defaultApp'][_0x1d0be3(0x1e7)]()?_0xb0bc8a[_0x1d0be3(0x1ee)]:String(_0x25b2d3)['trim']();_0x124aa6[_0x6d7282]={'appcode':String(_0x25b2d3)['trim'](),..._0xb0bc8a[_0x1d0be3(0x1d5)]!=null?{'env':_0xb0bc8a[_0x1d0be3(0x1d5)]}:{},..._0xb0bc8a[_0x1d0be3(0x1ef)]!=null?{'apiDir':_0xb0bc8a['apiDir']}:{},..._0xb0bc8a[_0x1d0be3(0x1e5)]!=null?{'cookie':_0xb0bc8a[_0x1d0be3(0x1e5)]}:{},..._0xb0bc8a[_0x1d0be3(0x1ec)]!=null?{'accessKey':_0xb0bc8a[_0x1d0be3(0x1ec)]}:{},..._0xb0bc8a[_0x1d0be3(0x1e8)]!=null?{'format':_0xb0bc8a[_0x1d0be3(0x1e8)]}:{},..._0xb0bc8a[_0x1d0be3(0x1c8)]!=null?{'pageSize':_0xb0bc8a[_0x1d0be3(0x1c8)]}:{},..._0xb0bc8a['riskLevel']!=null?{'riskLevel':_0xb0bc8a[_0x1d0be3(0x1d0)]}:{},..._0xb0bc8a[_0x1d0be3(0x1dc)]!=null?{'locale':_0xb0bc8a[_0x1d0be3(0x1dc)]}:{}},_0xb0bc8a[_0x1d0be3(0x1e3)]=_0x124aa6;if(!_0xb0bc8a[_0x1d0be3(0x1ee)])_0xb0bc8a[_0x1d0be3(0x1ee)]=_0x6d7282;_0x592bc6=!![];}return(_0x1d0be3(0x1d2)in _0xb0bc8a||_0x1d0be3(0x1e2)in _0xb0bc8a)&&(delete _0xb0bc8a[_0x1d0be3(0x1d2)],delete _0xb0bc8a[_0x1d0be3(0x1e2)],_0x592bc6=!![]),{'config':_0xb0bc8a,'migrated':_0x592bc6};}function writeNormalizedConfigIfNeeded(_0x3bac95,_0x1db8da){const _0x5d1c17=a216_0x257138,_0x5c6a18=JSON[_0x5d1c17(0x1ed)](_0x1db8da,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5d1c17(0x1e6)](_0x3bac95)===_0x5c6a18)return;writeConfigFile(_0x3bac95,_0x1db8da),normalizedWriteCache[_0x5d1c17(0x1c7)](_0x3bac95,_0x5c6a18);}function parseAndNormalizeConfig(_0x464537,_0x49a0a0,_0x24c2e9){const _0x35142c=a216_0x257138,_0x3f49ae=parseCliConfigJsonFile(_0x464537,_0x49a0a0,_0x24c2e9),_0x73763f=normalizeLegacyConfigShape(_0x3f49ae);if(_0x73763f[_0x35142c(0x1cf)])try{writeNormalizedConfigIfNeeded(_0x464537,_0x73763f[_0x35142c(0x1cb)]);}catch{}return _0x73763f['config'];}export function loadRawConfigLayers(_0x5230c0){const _0x56cde3=a216_0x257138;let _0x380554={},_0x3401cd={};const _0x37eee4=resolveConfigPath(homedir());_0x37eee4&&(_0x380554=parseAndNormalizeConfig(_0x37eee4,_0x56cde3(0x1df),_0x56cde3(0x1c9)));const _0x2389d1=_0x5230c0??findProjectRootDirectory(),_0x22b555=resolveConfigPath(_0x2389d1);return _0x22b555&&(_0x3401cd=parseAndNormalizeConfig(_0x22b555,'warn','Project')),{'globalPath':_0x37eee4,'projectPath':_0x22b555,'globalConfig':_0x380554,'projectConfig':_0x3401cd};}const INHERIT_WHITELIST=[a216_0x257138(0x1e5),a216_0x257138(0x1ec),a216_0x257138(0x1dc),a216_0x257138(0x1e8),a216_0x257138(0x1d0),a216_0x257138(0x1c8)];export function mergeRawConfigLayers(_0xc36779){const _0x31f2f7=a216_0x257138,{globalConfig:_0x44a034,projectConfig:_0x3f3ca9}=_0xc36779,_0x472de8=Object[_0x31f2f7(0x1c6)](_0x3f3ca9)[_0x31f2f7(0x1ca)]>0x0;if(!_0x472de8)return mergeGlobalOnly(_0x44a034);if(_0x3f3ca9[_0x31f2f7(0x1e1)]===!![])return mergeFullInherit(_0x44a034,_0x3f3ca9);if(_0x3f3ca9[_0x31f2f7(0x1e1)]===![])return mergeIsolated(_0x3f3ca9);return mergeProjectFirst(_0x44a034,_0x3f3ca9);}function mergeGlobalOnly(_0x3e726b){const _0xdbe26=a216_0x257138,_0x3e7e98={..._0x3e726b},_0xf73c86=_0x3e726b[_0xdbe26(0x1e3)]&&typeof _0x3e726b['apps']===_0xdbe26(0x1c4)?_0x3e726b[_0xdbe26(0x1e3)]:{};if(Object['keys'](_0xf73c86)[_0xdbe26(0x1ca)]>0x0)_0x3e7e98['apps']=_0xf73c86;if(_0x3e726b['defaultApp'])_0x3e7e98[_0xdbe26(0x1ee)]=_0x3e726b[_0xdbe26(0x1ee)];else{const _0xb35517=Object[_0xdbe26(0x1c6)](_0xf73c86);if(_0xb35517['length']>0x0)_0x3e7e98[_0xdbe26(0x1ee)]=_0xb35517[0x0];}return _0x3e7e98;}function mergeIsolated(_0x1a97ca){const _0x198329=a216_0x257138,_0x240719={..._0x1a97ca};delete _0x240719[_0x198329(0x1e1)];const _0x2f2faf=_0x1a97ca[_0x198329(0x1e3)]&&typeof _0x1a97ca[_0x198329(0x1e3)]===_0x198329(0x1c4)?_0x1a97ca['apps']:{};Object['keys'](_0x2f2faf)['length']>0x0?_0x240719['apps']=_0x2f2faf:delete _0x240719['apps'];if(_0x198329(0x1ee)in _0x1a97ca)_0x240719[_0x198329(0x1ee)]=_0x1a97ca[_0x198329(0x1ee)];else Object['keys'](_0x2f2faf)[_0x198329(0x1ca)]>0x0?_0x240719[_0x198329(0x1ee)]=Object[_0x198329(0x1c6)](_0x2f2faf)[0x0]:delete _0x240719[_0x198329(0x1ee)];return _0x240719;}function mergeProjectFirst(_0x2c8847,_0x1334d2){const _0x5a92ab=a216_0x257138,_0x18a450={..._0x1334d2};delete _0x18a450[_0x5a92ab(0x1e1)];for(const _0x51ff7d of INHERIT_WHITELIST){!(_0x51ff7d in _0x18a450)&&_0x51ff7d in _0x2c8847&&(_0x18a450[_0x51ff7d]=_0x2c8847[_0x51ff7d]);}const _0x413dbf=_0x1334d2['apps']&&typeof _0x1334d2[_0x5a92ab(0x1e3)]===_0x5a92ab(0x1c4)?_0x1334d2[_0x5a92ab(0x1e3)]:{};Object[_0x5a92ab(0x1c6)](_0x413dbf)[_0x5a92ab(0x1ca)]>0x0?_0x18a450[_0x5a92ab(0x1e3)]=_0x413dbf:delete _0x18a450[_0x5a92ab(0x1e3)];if(_0x5a92ab(0x1ee)in _0x1334d2)_0x18a450[_0x5a92ab(0x1ee)]=_0x1334d2[_0x5a92ab(0x1ee)];else Object[_0x5a92ab(0x1c6)](_0x413dbf)['length']>0x0?_0x18a450['defaultApp']=Object[_0x5a92ab(0x1c6)](_0x413dbf)[0x0]:delete _0x18a450[_0x5a92ab(0x1ee)];return _0x18a450;}function mergeFullInherit(_0x56b434,_0x58c51b){const _0x59c380=a216_0x257138,_0x51801f=_0x56b434[_0x59c380(0x1e3)]&&typeof _0x56b434[_0x59c380(0x1e3)]==='object'?_0x56b434[_0x59c380(0x1e3)]:{},_0x24c6ef=_0x58c51b[_0x59c380(0x1e3)]&&typeof _0x58c51b[_0x59c380(0x1e3)]===_0x59c380(0x1c4)?_0x58c51b[_0x59c380(0x1e3)]:{},_0x50f2f0={..._0x51801f,..._0x24c6ef},_0x40100c={..._0x56b434,..._0x58c51b};delete _0x40100c[_0x59c380(0x1e1)];if(Object[_0x59c380(0x1c6)](_0x50f2f0)[_0x59c380(0x1ca)]>0x0)_0x40100c[_0x59c380(0x1e3)]=_0x50f2f0;if('defaultApp'in _0x58c51b)_0x40100c[_0x59c380(0x1ee)]=_0x58c51b['defaultApp'];else{if(Object[_0x59c380(0x1c6)](_0x24c6ef)[_0x59c380(0x1ca)]>0x0)_0x40100c['defaultApp']=Object[_0x59c380(0x1c6)](_0x24c6ef)[0x0];else{if(_0x56b434[_0x59c380(0x1ee)])_0x40100c[_0x59c380(0x1ee)]=_0x56b434[_0x59c380(0x1ee)];else{const _0x6eb1f1=Object[_0x59c380(0x1c6)](_0x51801f);if(_0x6eb1f1[_0x59c380(0x1ca)]>0x0)_0x40100c[_0x59c380(0x1ee)]=_0x6eb1f1[0x0];}}}return _0x40100c;}export function readRawConfigWithLayers(_0x168696){const _0x22700f=loadRawConfigLayers(_0x168696);return{'config':mergeRawConfigLayers(_0x22700f),'layers':_0x22700f};}export function readRawConfig(_0x12104c){return mergeRawConfigLayers(loadRawConfigLayers(_0x12104c));}export function readConfigFile(_0x39ea3f){const _0x2582da=a216_0x257138;return parseAndNormalizeConfig(_0x39ea3f,_0x2582da(0x1d8));}export function writeConfigFile(_0x586409,_0x5c97d0){const _0x2d3302=a216_0x257138,_0xf27576=dirname(_0x586409);!existsSync(_0xf27576)&&mkdirSync(_0xf27576,{'recursive':!![]});const _0x4f727a=_0x586409+'.tmp';try{writeFileSync(_0x4f727a,JSON[_0x2d3302(0x1ed)](_0x5c97d0,null,0x2)+'\x0a',{'encoding':_0x2d3302(0x1eb),'mode':0x180}),renameSync(_0x4f727a,_0x586409);}catch(_0x2c368f){try{unlinkSync(_0x4f727a);}catch{}throw _0x2c368f;}}export function resolveWriteConfigPath(_0x240fb3){const _0x5c0072=a216_0x257138,_0x4f71dc=_0x240fb3===_0x5c0072(0x1db)?process[_0x5c0072(0x1da)]():homedir(),_0xcddcd0=resolveConfigPath(_0x4f71dc);return _0xcddcd0??resolve(_0x4f71dc,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a217_0x2d2cf0=a217_0x3360;(function(_0x248845,_0x57efa9){const _0x4d885c=a217_0x3360,_0x219d20=_0x248845();while(!![]){try{const _0x5700d7=-parseInt(_0x4d885c(0x10e))/0x1*(-parseInt(_0x4d885c(0xe8))/0x2)+-parseInt(_0x4d885c(0xf0))/0x3+-parseInt(_0x4d885c(0xfb))/0x4+-parseInt(_0x4d885c(0x105))/0x5+-parseInt(_0x4d885c(0xec))/0x6+-parseInt(_0x4d885c(0xea))/0x7*(-parseInt(_0x4d885c(0x10b))/0x8)+parseInt(_0x4d885c(0x103))/0x9;if(_0x5700d7===_0x57efa9)break;else _0x219d20['push'](_0x219d20['shift']());}catch(_0x59e2b5){_0x219d20['push'](_0x219d20['shift']());}}}(a217_0x13ba,0xe63ce));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function a217_0x3360(_0x415761,_0x3fd721){_0x415761=_0x415761-0xe8;const _0x13ba18=a217_0x13ba();let _0x33606e=_0x13ba18[_0x415761];return _0x33606e;}function env(_0xa47eee){return process.env[`RABETBASE_${_0xa47eee}`]||process.env[`LOVRABET_${_0xa47eee}`]||undefined;}function optionalString(_0x5f42ad){const _0x25c626=a217_0x3360;return typeof _0x5f42ad===_0x25c626(0xf8)&&_0x5f42ad[_0x25c626(0x106)]()?_0x5f42ad[_0x25c626(0x106)]():undefined;}export async function createContext(_0x3e92cb){const _0x5c1f79=a217_0x3360,{config:_0x581ae3,layers:_0x37473c}=readRawConfigWithLayers(),_0x10d80=buildConfig(_0x581ae3,_0x3e92cb,_0x37473c);await initGlobalEnvironment(_0x10d80);const {getUserDomain:_0x273d69,getApiDomain:_0x47483b}=await import(_0x5c1f79(0x102)),_0x409b22={'apiDomain':_0x47483b(),'userDomain':_0x273d69()},_0x579043=await buildAuth(_0x10d80);logger[_0x5c1f79(0x10a)](process['cwd']());const _0x528747=(CLI_BIN_NAME+'\x20'+process['argv'][_0x5c1f79(0x10d)](0x2)['join']('\x20'))[_0x5c1f79(0x106)]();logger['setRawCommand'](_0x528747);const {isNonInteractive:_0x78fe3d}=await import('./utils/is-non-interactive.js'),_0x41b350=_0x78fe3d(_0x3e92cb);return{'config':_0x10d80,'auth':_0x579043,'logger':logger,'env':_0x409b22,'nonInteractive':_0x41b350};}export function buildConfigFromFlags(_0x1f5e70){const {config:_0x34ff38,layers:_0x4838ed}=readRawConfigWithLayers();return buildConfig(_0x34ff38,_0x1f5e70,_0x4838ed);}export async function initGlobalEnvironment(_0x3a0e6d){const _0x4801a2=a217_0x3360,{initEnv:_0x49692e}=await import(_0x4801a2(0x104));_0x49692e(_0x3a0e6d['env']);const {initDomains:_0x586bbc}=await import('./constant/domain.js');_0x586bbc({'apiDomain':optionalString(_0x3a0e6d['raw']?.[_0x4801a2(0x109)]),'userDomain':optionalString(_0x3a0e6d[_0x4801a2(0xe9)]?.[_0x4801a2(0xf9)]),'runtimeDomain':optionalString(_0x3a0e6d['raw']?.[_0x4801a2(0xef)])});}export function getConfigAppCode(_0x262cfe){const _0x46284d=a217_0x3360,_0x48872b=readRawConfig(_0x262cfe);if(_0x48872b[_0x46284d(0xed)]&&typeof _0x48872b['apps']===_0x46284d(0xf6)){const _0x538bfb=_0x48872b[_0x46284d(0xf1)];if(_0x538bfb&&_0x48872b['apps'][_0x538bfb]?.[_0x46284d(0xf2)])return String(_0x48872b['apps'][_0x538bfb][_0x46284d(0xf2)])[_0x46284d(0x106)]();const _0x190b45=Object[_0x46284d(0x100)](_0x48872b[_0x46284d(0xed)])[0x0];if(_0x190b45?.[_0x46284d(0xf2)])return String(_0x190b45['appcode'])[_0x46284d(0x106)]();}const _0x419e20=_0x48872b['appcode']||_0x48872b[_0x46284d(0xfd)];if(typeof _0x419e20!==_0x46284d(0xf8)||_0x419e20[_0x46284d(0x106)]()==='')return undefined;return _0x419e20[_0x46284d(0x106)]();}export function getMultiAppConfigs(_0x8652ea=a217_0x2d2cf0(0x10c),_0x9829ca){const _0x2b9617=a217_0x2d2cf0,_0x19ee79=loadRawConfigLayers(_0x9829ca);let _0x1da146,_0x34f741;if(_0x8652ea===_0x2b9617(0xf7)){const _0x35ef3f=_0x19ee79[_0x2b9617(0xfa)][_0x2b9617(0xed)]&&typeof _0x19ee79[_0x2b9617(0xfa)][_0x2b9617(0xed)]===_0x2b9617(0xf6)?_0x19ee79[_0x2b9617(0xfa)][_0x2b9617(0xed)]:{},_0x675409=_0x19ee79[_0x2b9617(0xf5)][_0x2b9617(0xed)]&&typeof _0x19ee79[_0x2b9617(0xf5)][_0x2b9617(0xed)]===_0x2b9617(0xf6)?_0x19ee79['projectConfig'][_0x2b9617(0xed)]:{};_0x1da146={..._0x35ef3f,..._0x675409};const _0x1c6638=readRawConfig(_0x9829ca);_0x34f741=_0x1c6638[_0x2b9617(0xf1)];}else _0x1da146=_0x19ee79[_0x2b9617(0xf5)][_0x2b9617(0xed)],_0x34f741=_0x19ee79[_0x2b9617(0xf5)][_0x2b9617(0xf1)];if(!_0x1da146||typeof _0x1da146!=='object'||Object[_0x2b9617(0x108)](_0x1da146)[_0x2b9617(0xf3)]===0x0)return null;return Object[_0x2b9617(0xfc)](_0x1da146)[_0x2b9617(0xff)](([_0x191ecf,_0x122047])=>({'name':_0x191ecf,'appcode':_0x122047?.[_0x2b9617(0xf2)]||'','isDefault':_0x191ecf===_0x34f741,'env':_0x122047?.[_0x2b9617(0xfe)],'apiDir':_0x122047?.['apiDir'],'cookie':_0x122047?.[_0x2b9617(0xee)]||undefined}))['filter'](_0x562a16=>_0x562a16[_0x2b9617(0xf2)]);}export function getTemplateBaseUrl(_0x16e2b7){const _0x351882=a217_0x2d2cf0,_0x181b18=readRawConfig(_0x16e2b7);if(_0x181b18[_0x351882(0x107)]&&typeof _0x181b18[_0x351882(0x107)]===_0x351882(0xf8))return _0x181b18[_0x351882(0x107)]['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function a217_0x13ba(){const _0x54e31f=['object','merged','string','userDomain','globalConfig','1405188AMSfxu','entries','app','env','map','values','cwd','./constant/domain.js','8371575XpVTda','./constant/env.js','1431825CUGIbc','trim','template_base_url','keys','apiDomain','setLogPath','8MarLwi','project','slice','8MyEpRK','344656ihjiPc','raw','6453573YQQONw','apiDir','7672560nmmcSA','apps','cookie','runtimeDomain','1113786csgITr','defaultApp','appcode','length','find','projectConfig'];a217_0x13ba=function(){return _0x54e31f;};return a217_0x13ba();}function buildConfig(_0x455da9,_0x471966,_0x2c9465){return{...resolveAppConfig({'raw':_0x455da9,'flags':_0x471966,'layers':_0x2c9465,'readEnv':env}),'raw':_0x455da9};}export function resolveApiFilePath(_0x31c1cb,_0x481031){const _0x5e9498=a217_0x2d2cf0,_0x3d89d7=resolve(process[_0x5e9498(0x101)](),_0x31c1cb),_0x510161=resolve(_0x3d89d7,'api.ts');if(!_0x481031)return _0x510161;const _0x26a1d0=readRawConfig(),_0x44edd4=_0x26a1d0[_0x5e9498(0xed)]&&typeof _0x26a1d0[_0x5e9498(0xed)]==='object'?_0x26a1d0[_0x5e9498(0xed)]:{},_0x552cf6=Object['entries'](_0x44edd4)[_0x5e9498(0xf4)](([,_0x2ba6a7])=>_0x2ba6a7?.[_0x5e9498(0xf2)]===_0x481031);if(!_0x552cf6)return _0x510161;const [_0x4924d8,_0x270243]=_0x552cf6,_0x3e3153=typeof _0x26a1d0[_0x5e9498(0xf1)]===_0x5e9498(0xf8)?_0x26a1d0[_0x5e9498(0xf1)]:undefined;if(_0x270243?.[_0x5e9498(0xeb)])return _0x510161;if(_0x3e3153&&_0x4924d8!==_0x3e3153)return resolve(_0x3d89d7,_0x4924d8+'-api.ts');return _0x510161;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14d2dc,_0x4bf025){const _0x5ee912=a218_0x1627,_0x18f802=_0x14d2dc();while(!![]){try{const _0x2c316c=parseInt(_0x5ee912(0x16b))/0x1+-parseInt(_0x5ee912(0x16d))/0x2+-parseInt(_0x5ee912(0x171))/0x3+parseInt(_0x5ee912(0x166))/0x4*(parseInt(_0x5ee912(0x165))/0x5)+parseInt(_0x5ee912(0x16e))/0x6*(-parseInt(_0x5ee912(0x167))/0x7)+parseInt(_0x5ee912(0x16f))/0x8+parseInt(_0x5ee912(0x163))/0x9;if(_0x2c316c===_0x4bf025)break;else _0x18f802['push'](_0x18f802['shift']());}catch(_0x4b840d){_0x18f802['push'](_0x18f802['shift']());}}}(a218_0x23ee,0x9a57f));function a218_0x1627(_0x196271,_0x318cf9){_0x196271=_0x196271-0x163;const _0x23eeee=a218_0x23ee();let _0x16275f=_0x23eeee[_0x196271];return _0x16275f;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function a218_0x23ee(){const _0xd866c7=['2003010yXYthi','1550624ZPuUFg','cwd','2093400MavtOV','find','9158031XWAWgK','alias','230140uadpnY','16rsQajv','7gedGhJ','exec','set','datasetCode','1260131KQEeEF','has','1983608yCqkYb'];a218_0x23ee=function(){return _0xd866c7;};return a218_0x23ee();}function parseApiFile(_0x183191){const _0x3e2b09=a218_0x1627,_0x51a342=[],_0x5699eb=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0xa54bfb;while((_0xa54bfb=_0x5699eb[_0x3e2b09(0x168)](_0x183191))!==null){_0x51a342['push']({'datasetCode':_0xa54bfb[0x1],'tableName':_0xa54bfb[0x2],'name':_0xa54bfb[0x3],'alias':_0xa54bfb[0x4]});}return _0x51a342;}export function loadAliasMap(_0x3f54dc,_0x5a9937,_0x18d8ba){const _0x2a45fb=a218_0x1627,_0x381d41=_0x18d8ba??resolve(process[_0x2a45fb(0x170)](),_0x3f54dc,'api.ts');if(cache[_0x2a45fb(0x16c)](_0x381d41))return cache['get'](_0x381d41);if(!existsSync(_0x381d41))return cache[_0x2a45fb(0x169)](_0x381d41,[]),[];try{const _0x4f1ec0=readFileSync(_0x381d41,'utf-8'),_0x598494=parseApiFile(_0x4f1ec0);return cache[_0x2a45fb(0x169)](_0x381d41,_0x598494),_0x598494;}catch{return cache['set'](_0x381d41,[]),[];}}export function resolveAlias(_0xff0756,_0x270a20,_0x43d714,_0x236d24){const _0x3c1f56=a218_0x1627;if(!_0x270a20)return undefined;const _0x1a4ca7=loadAliasMap(_0xff0756,_0x43d714,_0x236d24),_0x34b0a8=_0x1a4ca7[_0x3c1f56(0x172)](_0x4b0abe=>_0x4b0abe[_0x3c1f56(0x164)]===_0x270a20);return _0x34b0a8?.[_0x3c1f56(0x16a)];}export function listAliases(_0x4b8a61,_0x532d0b,_0x30b324){return loadAliasMap(_0x4b8a61,_0x532d0b,_0x30b324);}
|