@lovrabet/rabetbase-cli 2.4.7-beta.1 → 2.4.7-beta.2
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/README.md +4 -4
- 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 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.d.ts +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.d.ts +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.d.ts +2 -2
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +1 -1
- package/lib/core/bff/utils.d.ts +2 -2
- 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 +2 -2
- package/sidecar/flags.json +1 -1
- package/skills/rabetbase/SKILL.md +28 -28
- package/skills/rabetbase/guides/backend-function.md +30 -30
- package/skills/rabetbase/guides/best-practices.md +8 -8
- package/skills/rabetbase/guides/bff-creation-workflow.md +16 -16
- package/skills/rabetbase/guides/conflict-detection.md +3 -3
- package/skills/rabetbase/guides/custom-page-workflow.md +8 -8
- package/skills/rabetbase/guides/data-api-guidelines.md +6 -6
- package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +8 -8
- package/skills/rabetbase/guides/sql-creation-workflow.md +2 -2
- package/skills/rabetbase/guides/troubleshooting.md +6 -6
- package/skills/rabetbase/guides/typescript-sdk.md +10 -10
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +1 -1
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +10 -10
- package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
- package/skills/rabetbase/references/rabetbase-bff-create.md +3 -3
- package/skills/rabetbase/references/rabetbase-bff-delete.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-detail.md +4 -4
- package/skills/rabetbase/references/rabetbase-bff-list.md +8 -8
- package/skills/rabetbase/references/rabetbase-bff-pull.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-push.md +3 -3
- package/skills/rabetbase/references/rabetbase-bff-status.md +1 -1
- package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -3
- package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +3 -3
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/rules/lovrabet_rules.mdc.tpl +7 -7
- package/templates/skill/SKILL.md.tpl +12 -12
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x43173e=a207_0xf88a;(function(_0x403845,_0xd2a017){const _0xedf0b5=a207_0xf88a,_0x57dfc2=_0x403845();while(!![]){try{const _0x30accc=-parseInt(_0xedf0b5(0x134))/0x1*(-parseInt(_0xedf0b5(0x119))/0x2)+parseInt(_0xedf0b5(0x126))/0x3+parseInt(_0xedf0b5(0x111))/0x4*(parseInt(_0xedf0b5(0x128))/0x5)+parseInt(_0xedf0b5(0x132))/0x6+parseInt(_0xedf0b5(0x127))/0x7*(-parseInt(_0xedf0b5(0x117))/0x8)+-parseInt(_0xedf0b5(0x10c))/0x9+-parseInt(_0xedf0b5(0x11e))/0xa;if(_0x30accc===_0xd2a017)break;else _0x57dfc2['push'](_0x57dfc2['shift']());}catch(_0x189a03){_0x57dfc2['push'](_0x57dfc2['shift']());}}}(a207_0x9157,0x4ff59));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a207_0x43173e(0x12b),a207_0x43173e(0x10e),a207_0x43173e(0x12e),'format',a207_0x43173e(0x118)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x43173e(0x12f),a207_0x43173e(0x11a),a207_0x43173e(0x12e),a207_0x43173e(0x12d),a207_0x43173e(0x12b),a207_0x43173e(0x10e),a207_0x43173e(0x131)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x324fcb){const _0x5ea385=a207_0x43173e;return[..._0x324fcb][_0x5ea385(0x12a)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xbcc989){const _0x888307=a207_0x43173e;return TOP_LEVEL_CONFIG_KEYS[_0x888307(0x12c)](_0xbcc989);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x43173e(0x11a),'apiDir':a207_0x43173e(0x131),'cookie':a207_0x43173e(0x12b),'accessKey':a207_0x43173e(0x10e),'defaultFormat':'format','pageSize':a207_0x43173e(0x113),'riskLevel':a207_0x43173e(0x118),'locale':a207_0x43173e(0x12e)};export function getAppProfileFlagDefs(){const _0x5ac88f=a207_0x43173e;return[{'name':_0x5ac88f(0x11a),'type':_0x5ac88f(0x123),'description':_0x5ac88f(0x11c),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5ac88f(0x131),'type':_0x5ac88f(0x123),'description':'API\x20directory\x20path'},{'name':_0x5ac88f(0x12b),'type':'string','description':_0x5ac88f(0x114),'hidden':!![]},{'name':'accessKey','type':_0x5ac88f(0x123),'description':_0x5ac88f(0x115),'hidden':!![]},{'name':_0x5ac88f(0x120),'type':_0x5ac88f(0x123),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5ac88f(0x113),'type':_0x5ac88f(0x130),'description':'Default\x20page\x20size'},{'name':_0x5ac88f(0x118),'type':_0x5ac88f(0x123),'description':_0x5ac88f(0x110),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x5ac88f(0x12e),'type':_0x5ac88f(0x123),'description':_0x5ac88f(0x116)}];}export function collectAppProfileOverrides(_0x3d20f9){const _0x16823a=a207_0x43173e,_0x3e07ff={};for(const [_0x375775,_0x1ccfa5]of Object[_0x16823a(0x122)](APP_PROFILE_FLAG_KEY_MAP)){const _0x5b43c6=_0x3d20f9(_0x375775);if(!_0x5b43c6)continue;_0x3e07ff[_0x1ccfa5]=_0x1ccfa5==='pageSize'?Number(_0x5b43c6):_0x5b43c6;}return _0x3e07ff;}export function buildAppProfileListFields(_0x383f71){const _0x1537e7=a207_0x43173e;return{'env':_0x383f71[_0x1537e7(0x11a)]??null,'apiDir':_0x383f71[_0x1537e7(0x131)]??null,'hasCookie':!!_0x383f71[_0x1537e7(0x12b)],'hasAccessKey':!!_0x383f71[_0x1537e7(0x10e)],'format':_0x383f71[_0x1537e7(0x12d)]??null,'pageSize':_0x383f71[_0x1537e7(0x113)]??null,'riskLevel':_0x383f71[_0x1537e7(0x118)]??null,'locale':_0x383f71['locale']??null};}export function buildAppDoctorFields(_0x2b5678,_0x394d8f){const _0x188a64=a207_0x43173e;return{'env':{'value':_0x2b5678[_0x188a64(0x11a)]||_0x394d8f[_0x188a64(0x11a)],'source':_0x2b5678['env']?_0x188a64(0x11f):_0x188a64(0x124)},'apiDir':{'value':_0x2b5678[_0x188a64(0x131)]||_0x394d8f[_0x188a64(0x131)],'source':_0x2b5678[_0x188a64(0x131)]?_0x188a64(0x11f):_0x188a64(0x124)},'cookie':{'value':_0x2b5678[_0x188a64(0x12b)]||_0x394d8f[_0x188a64(0x12b)],'source':_0x2b5678['cookie']?_0x188a64(0x11f):_0x188a64(0x124)},'accessKey':{'value':_0x2b5678['accessKey']||_0x394d8f[_0x188a64(0x10e)],'source':_0x2b5678['accessKey']?_0x188a64(0x11f):_0x188a64(0x124)}};}export function buildCanonicalAppConfig(_0x15e6cc,_0x54f8bc){const _0x5d4ad3=a207_0x43173e,_0x5c3a7b=_0x15e6cc['map'](_0x894869=>String(_0x894869||'')[_0x5d4ad3(0x129)]())[_0x5d4ad3(0x125)](Boolean);if(_0x5c3a7b[_0x5d4ad3(0x11b)]===0x0)return{};const _0x2d6dd5={};for(const _0x421fed of _0x5c3a7b){_0x2d6dd5[_0x421fed]=_0x54f8bc?{'appcode':_0x421fed,'env':_0x54f8bc}:{'appcode':_0x421fed};}return{'apps':_0x2d6dd5,'defaultApp':_0x5c3a7b[0x0]};}export function buildCanonicalProjectConfig(_0x1f4c1c,_0x335192){const _0x4758e2=a207_0x43173e,{appCodes:appCodes=[],env:_0xac3422,metadata:_0x3c3481}=_0x335192,_0x54d4e7={..._0x1f4c1c,..._0x3c3481||{}};delete _0x54d4e7[_0x4758e2(0x12f)],delete _0x54d4e7[_0x4758e2(0x11f)];if(_0xac3422)_0x54d4e7['env']=_0xac3422;else!_0x54d4e7[_0x4758e2(0x11a)]&&(_0x54d4e7[_0x4758e2(0x11a)]=DEFAULT_CONFIG_VALUES[_0x4758e2(0x11a)]);const _0x4702c9=buildCanonicalAppConfig(appCodes,_0x54d4e7['env']);return Object[_0x4758e2(0x10f)](_0x4702c9)[_0x4758e2(0x11b)]>0x0&&(_0x54d4e7[_0x4758e2(0x121)]=_0x4702c9[_0x4758e2(0x121)],_0x54d4e7['defaultApp']=_0x4702c9[_0x4758e2(0x10d)]),_0x54d4e7;}function a207_0xf88a(_0x4b3585,_0x55d7ba){_0x4b3585=_0x4b3585-0x10c;const _0x91576d=a207_0x9157();let _0xf88a3b=_0x91576d[_0x4b3585];return _0xf88a3b;}const LOCALE_MAP={'zh':a207_0x43173e(0x133),'zh-cn':a207_0x43173e(0x133),'zh_cn':a207_0x43173e(0x133),'en':a207_0x43173e(0x11d),'en-us':a207_0x43173e(0x11d),'en_us':'en-US'};export function normalizeLocale(_0x105b7d){const _0xb62e0e=a207_0x43173e;if(!_0x105b7d)return null;return LOCALE_MAP[_0x105b7d[_0xb62e0e(0x112)]()]??null;}function a207_0x9157(){const _0x485e1d=['filter','1220559udhBLy','10479lqFeyS','31430txIQNn','trim','join','cookie','has','format','locale','appcode','number','apiDir','3695850kWFgts','zh-CN','26807AIErLA','4615155RmSHOp','defaultApp','accessKey','keys','Risk\x20level','52HpIQmt','toLowerCase','pageSize','Auth\x20cookie','Access\x20key','Locale','1784BxTmak','riskLevel','20frnDgW','env','length','Target\x20environment','en-US','1984770PQuSwP','app','defaultFormat','apps','entries','string','inherit'];a207_0x9157=function(){return _0x485e1d;};return a207_0x9157();}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x5f3ef6=a208_0x592f;(function(_0x3cf48f,_0x482264){const _0x57cc0f=a208_0x592f,_0x1265bc=_0x3cf48f();while(!![]){try{const _0x18a2af=parseInt(_0x57cc0f(0xf9))/0x1+parseInt(_0x57cc0f(0xfa))/0x2*(-parseInt(_0x57cc0f(0xfe))/0x3)+-parseInt(_0x57cc0f(0xfd))/0x4+parseInt(_0x57cc0f(0x101))/0x5+parseInt(_0x57cc0f(0xfc))/0x6+-parseInt(_0x57cc0f(0xf7))/0x7*(parseInt(_0x57cc0f(0xfb))/0x8)+parseInt(_0x57cc0f(0xf8))/0x9;if(_0x18a2af===_0x482264)break;else _0x1265bc['push'](_0x1265bc['shift']());}catch(_0x424ee5){_0x1265bc['push'](_0x1265bc['shift']());}}}(a208_0x508f,0xd9136));export const RABETBASE_CDN_BASE_URL=a208_0x5f3ef6(0xff);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x5f3ef6(0x100);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';function a208_0x592f(_0x295973,_0x5a4993){_0x295973=_0x295973-0xf7;const _0x508ff4=a208_0x508f();let _0x592fcd=_0x508ff4[_0x295973];return _0x592fcd;}function a208_0x508f(){const _0xd6047f=['3528310ExAgde','12421871vZaDSJ','6629103dtbzbx','1397368JykyeO','372fWEuCt','8aVPmwn','675450UcoJUy','59484JZyBJe','4413UaaucD','https://g.lovrabet.com/dist/rabetbase-cli','/config/index.json'];a208_0x508f=function(){return _0xd6047f;};return a208_0x508f();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a209_0x45b17a=a209_0x2706;(function(_0x1b874a,_0x366688){const _0x3cc2c4=a209_0x2706,_0x451948=_0x1b874a();while(!![]){try{const _0xfa5eaa=-parseInt(_0x3cc2c4(0x18c))/0x1+-parseInt(_0x3cc2c4(0x183))/0x2+parseInt(_0x3cc2c4(0x1bf))/0x3*(-parseInt(_0x3cc2c4(0x1be))/0x4)+-parseInt(_0x3cc2c4(0x1aa))/0x5+-parseInt(_0x3cc2c4(0x18f))/0x6*(-parseInt(_0x3cc2c4(0x1cc))/0x7)+-parseInt(_0x3cc2c4(0x1b9))/0x8*(parseInt(_0x3cc2c4(0x1e8))/0x9)+-parseInt(_0x3cc2c4(0x188))/0xa*(-parseInt(_0x3cc2c4(0x1b8))/0xb);if(_0xfa5eaa===_0x366688)break;else _0x451948['push'](_0x451948['shift']());}catch(_0x2ec3e9){_0x451948['push'](_0x451948['shift']());}}}(a209_0x51de,0xdef5a));export const CLI_BIN_NAME=a209_0x45b17a(0x1a0);export const CLI_DISPLAY_NAME=a209_0x45b17a(0x1d3);export const NPM_PACKAGE_NAME=a209_0x45b17a(0x173);function a209_0x2706(_0x53108e,_0x5c78a9){_0x53108e=_0x53108e-0x16a;const _0x51def5=a209_0x51de();let _0x270637=_0x51def5[_0x53108e];return _0x270637;}export const GLOBAL_FLAGS=[{'name':a209_0x45b17a(0x1e7),'meowKey':'appcode','type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1a4),'hint':a209_0x45b17a(0x1dd)},{'name':a209_0x45b17a(0x18b),'meowKey':'app','type':'string','description':a209_0x45b17a(0x1a8),'hint':'<name>'},{'name':'env','meowKey':a209_0x45b17a(0x175),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1c2),'hint':a209_0x45b17a(0x1b6)},{'name':'format','meowKey':'format','type':a209_0x45b17a(0x1a2),'description':'Output\x20format','hint':a209_0x45b17a(0x184)},{'name':'jq','meowKey':'jq','type':a209_0x45b17a(0x1a2),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':a209_0x45b17a(0x18d),'meowKey':a209_0x45b17a(0x19f),'type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x1d7)},{'name':a209_0x45b17a(0x1ae),'meowKey':'yes','type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x1cf)},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a209_0x45b17a(0x176),'meowKey':a209_0x45b17a(0x176),'type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x16b)},{'name':a209_0x45b17a(0x1ba),'meowKey':a209_0x45b17a(0x1ba),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x17c),'hidden':!![]},{'name':a209_0x45b17a(0x18e),'meowKey':a209_0x45b17a(0x18e),'type':a209_0x45b17a(0x1c7),'description':'Show\x20help'},{'name':a209_0x45b17a(0x1c1),'meowKey':a209_0x45b17a(0x1c1),'type':'string','description':'Name','hidden':!![]},{'name':a209_0x45b17a(0x19d),'meowKey':a209_0x45b17a(0x19d),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x16c),'hidden':!![]},{'name':a209_0x45b17a(0x1a6),'meowKey':a209_0x45b17a(0x1a6),'type':a209_0x45b17a(0x1a2),'description':'Search\x20query','hidden':!![]},{'name':a209_0x45b17a(0x179),'meowKey':'topk','type':a209_0x45b17a(0x1a2),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':'clear','meowKey':a209_0x45b17a(0x17f),'type':a209_0x45b17a(0x1c7),'description':'Clear','hidden':!![]},{'name':a209_0x45b17a(0x1d4),'meowKey':a209_0x45b17a(0x1d4),'type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x1e5),'hidden':!![]},{'name':a209_0x45b17a(0x17a),'meowKey':'output','type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1e4),'hidden':!![]},{'name':a209_0x45b17a(0x1db),'meowKey':a209_0x45b17a(0x1db),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1e2),'hidden':!![]},{'name':a209_0x45b17a(0x1a5),'meowKey':a209_0x45b17a(0x1a5),'type':'string','description':a209_0x45b17a(0x194),'hidden':!![]},{'name':a209_0x45b17a(0x1d0),'meowKey':a209_0x45b17a(0x1d0),'type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x19c),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':'boolean','description':a209_0x45b17a(0x1d8),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x187),'hidden':!![]},{'name':'type','meowKey':a209_0x45b17a(0x1c0),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x17e),'hidden':!![]},{'name':a209_0x45b17a(0x18a),'meowKey':a209_0x45b17a(0x18a),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1bb),'hidden':!![]},{'name':a209_0x45b17a(0x17b),'meowKey':a209_0x45b17a(0x17b),'type':'string','description':a209_0x45b17a(0x16f),'hidden':!![]},{'name':a209_0x45b17a(0x192),'meowKey':a209_0x45b17a(0x1cd),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a209_0x45b17a(0x185),'meowKey':a209_0x45b17a(0x185),'type':a209_0x45b17a(0x1a2),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a209_0x45b17a(0x1b7),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x16e),'hidden':!![]},{'name':a209_0x45b17a(0x1c9),'meowKey':a209_0x45b17a(0x1c9),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x16e),'hidden':!![]},{'name':a209_0x45b17a(0x1ad),'meowKey':a209_0x45b17a(0x1ad),'type':'string','description':a209_0x45b17a(0x1ac),'hidden':!![]},{'name':a209_0x45b17a(0x172),'meowKey':a209_0x45b17a(0x1e0),'type':'string','description':a209_0x45b17a(0x1a3),'hidden':!![]},{'name':a209_0x45b17a(0x1cb),'meowKey':a209_0x45b17a(0x1cb),'type':'string','description':a209_0x45b17a(0x1d6),'hidden':!![]},{'name':a209_0x45b17a(0x171),'meowKey':a209_0x45b17a(0x171),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1c5),'hidden':!![]},{'name':a209_0x45b17a(0x1dc),'meowKey':'keyword','type':a209_0x45b17a(0x1a2),'description':'Keyword\x20filter','hidden':!![]},{'name':a209_0x45b17a(0x1b0),'meowKey':a209_0x45b17a(0x1b0),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x186),'hidden':!![]},{'name':a209_0x45b17a(0x16d),'meowKey':a209_0x45b17a(0x16d),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1c3),'hidden':!![]},{'name':a209_0x45b17a(0x182),'meowKey':a209_0x45b17a(0x182),'type':'string','description':a209_0x45b17a(0x1c6),'hidden':!![]},{'name':a209_0x45b17a(0x197),'meowKey':a209_0x45b17a(0x197),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x19b),'hidden':!![]},{'name':a209_0x45b17a(0x177),'meowKey':a209_0x45b17a(0x177),'type':a209_0x45b17a(0x1a2),'description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x1e6),'hidden':!![]},{'name':a209_0x45b17a(0x19e),'meowKey':a209_0x45b17a(0x19e),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1e1),'hidden':!![]},{'name':a209_0x45b17a(0x1ab),'meowKey':a209_0x45b17a(0x1ab),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1d1),'hidden':!![]},{'name':'tags','meowKey':a209_0x45b17a(0x199),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1b3),'hidden':!![]},{'name':a209_0x45b17a(0x1c8),'meowKey':'stdin','type':'boolean','description':a209_0x45b17a(0x1b5),'hidden':!![]},{'name':a209_0x45b17a(0x1e9),'meowKey':a209_0x45b17a(0x1b2),'type':'string','description':a209_0x45b17a(0x19a),'hidden':!![]},{'name':a209_0x45b17a(0x1a7),'meowKey':'reveal','type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x1d2),'hidden':!![]},{'name':a209_0x45b17a(0x16a),'meowKey':a209_0x45b17a(0x16a),'type':'boolean','description':a209_0x45b17a(0x189),'hidden':!![]},{'name':a209_0x45b17a(0x1c4),'meowKey':'confirm','type':a209_0x45b17a(0x1c7),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a209_0x45b17a(0x181),'meowKey':a209_0x45b17a(0x181),'type':a209_0x45b17a(0x1c7),'description':a209_0x45b17a(0x1a9),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a209_0x45b17a(0x1c7),'description':'Verbose\x20output','hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a209_0x45b17a(0x180),'meowKey':a209_0x45b17a(0x180),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x198),'hidden':!![]},{'name':a209_0x45b17a(0x1d5),'meowKey':a209_0x45b17a(0x1bd),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1b4),'hidden':!![]},{'name':a209_0x45b17a(0x195),'meowKey':a209_0x45b17a(0x195),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1e3),'hidden':!![]},{'name':a209_0x45b17a(0x1af),'meowKey':'expectParentId','type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1a1),'hidden':!![]},{'name':'expect-path','meowKey':a209_0x45b17a(0x1de),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1df),'hidden':!![]},{'name':a209_0x45b17a(0x1ca),'meowKey':'expectedChildrenCount','type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x174),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1da),'hidden':!![]},{'name':a209_0x45b17a(0x1d9),'meowKey':a209_0x45b17a(0x170),'type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x191),'hidden':!![]},{'name':a209_0x45b17a(0x196),'meowKey':a209_0x45b17a(0x178),'type':a209_0x45b17a(0x1a2),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x45b17a(0x193),'meowKey':'functionNode','type':a209_0x45b17a(0x1a2),'description':a209_0x45b17a(0x1b1),'hidden':!![]}];function a209_0x51de(){const _0x5be40c=['rabetbase','Expected\x20current\x20parent\x20menu\x20id','string','Description\x20file','Override\x20appcode','datasetcode','query','reveal','Select\x20app\x20profile\x20by\x20name','Use\x20remote','9022835dQzwTe','value','Description','description','yes','expect-parent-id','code','Function\x20node','fromEnv','Tags','Parent\x20menu\x20id','Read\x20value\x20from\x20stdin','production\x20|\x20daily','dbId','63639631JYjZfa','1966736RXYcuE','project','File\x20path','format','parentId','6188012ESQztA','3nSudOQ','type','name','Environment','SQL\x20string','confirm','Page\x20size','Schemas','boolean','stdin','dbid','expected-children-count','page','186207TLupYJ','sqlName','meowKey','Skip\x20confirmation\x20for\x20high-risk\x20writes','all','Config\x20value','Reveal\x20sensitive\x20value','Rabetbase\x20CLI','watch','parent-id','Page\x20number','Preview\x20operation\x20without\x20executing','Enable\x20BFF\x20save','task-id','Comma-separated\x20menu\x20IDs','params','keyword','<code>','expectPath','Expected\x20current\x20menu\x20path','descriptionFile','Config\x20key','JSON\x20params','Menu\x20sort\x20value','Output\x20path','Watch\x20mode','Skip\x20import\x20generation','appcode','9OKBHHm','from-env','force','Use\x20global\x20config\x20scope','Title','sql','DB\x20ID','SQL\x20code','taskId','pagesize','description-file','@lovrabet/rabetbase-cli','Expected\x20current\x20child\x20count','env','global','target','operationType','topk','output','sqlcode','Alias\x20for\x20--non-interactive','non-interactive','Type\x20filter','clear','label','remote','schemas','1173196PaobiJ','json\x20|\x20pretty\x20|\x20compress','sqlname','Code\x20filter','Record\x20ID','10rIueAQ','Force\x20overwrite','file','app','1512800seKOTE','dry-run','help','186ACotsq','map','Asynchronous\x20task\x20ID','sql-name','function-node','Dataset\x20code','sort','operation-type','operation','Menu\x20label','tags','Read\x20value\x20from\x20environment\x20variable','Operation\x20type','Apply\x20to\x20all','title','key','dryRun'];a209_0x51de=function(){return _0x5be40c;};return a209_0x51de();}export const PIPELINE_FLAG_NAMES=new Set([a209_0x45b17a(0x1e7),'app','env',a209_0x45b17a(0x1bc),'jq',a209_0x45b17a(0x18d),a209_0x45b17a(0x1ae),a209_0x45b17a(0x17d),'ci']);export function buildMeowFlags(){const _0x4960f5=a209_0x45b17a;return Object['fromEntries'](GLOBAL_FLAGS[_0x4960f5(0x190)](_0x189194=>[_0x189194[_0x4960f5(0x1ce)],{'type':_0x189194[_0x4960f5(0x1c0)]}]));}
|
|
1
|
+
const a209_0x160e74=a209_0x3ae1;function a209_0x3c47(){const _0x1ee14a=['Page\x20size','Name','force','Output\x20path','query','key','format','4676856oKPztI','app','17180379TeTvDy','json\x20|\x20pretty\x20|\x20compress','DB\x20ID','Verbose\x20output','Dataset\x20code','menu-ids','Title','Page\x20number','function-node','SQL\x20code','Confirm\x20destructive\x20action','Keyword\x20filter','Show\x20help','Expected\x20affected\x20count','Operation\x20type','Override\x20appcode','expect-path','task-id','tags','schemas','Config\x20value','<expr>','parentId','sqlname','Read\x20value\x20from\x20environment\x20variable','Read\x20value\x20from\x20stdin','Apply\x20to\x20all','env','Enable\x20Backend\x20Function\x20save','Use\x20global\x20config\x20scope','target','operation','Asynchronous\x20task\x20ID','remote','value','confirm','fromEntries','type','non-interactive','parent-id','topk','Menu\x20sort\x20value','Menu\x20label','keyword','map','file','Reveal\x20sensitive\x20value','project','Environment','meowKey','rabetbase','17310yTwrMX','Schemas','stdin','description-file','code','skip-imports','@lovrabet/rabetbase-cli','SQL\x20string','pagesize','Tags','439683dtWwSp','params','Code\x20filter','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','File\x20path','clear','Config\x20key','expected-count','name','expectPath','page','datasetcode','string','expected-children-count','12rEZQQF','Use\x20project\x20config\x20scope','Expected\x20current\x20parent\x20menu\x20id','Alias\x20for\x20--non-interactive','enableBffSave','help','SQL\x20name','menuIds','verbose','all','global','db-id','appcode','reveal','Maximum\x20search\x20hits','Skip\x20import\x20generation','title','1232opvIoP','dbid','fromEnv','Record\x20ID','yes','production\x20|\x20daily','Use\x20remote','Preview\x20operation\x20without\x20executing','Expected\x20current\x20menu\x20path','skipImports','10pXdsPt','Description','sort','label','nonInteractive','description','sqlcode','988426aEzkXz','Select\x20app\x20profile\x20by\x20name','Clear','652480OAowxL','enable-bff-save','expectedChildrenCount','output','dry-run','Expected\x20current\x20child\x20count','expect-parent-id','dryRun','boolean','Skip\x20confirmation\x20for\x20high-risk\x20writes','sql-name','Rabetbase\x20CLI','269765mlUgQD','Comma-separated\x20menu\x20IDs','operation-type','sqlName'];a209_0x3c47=function(){return _0x1ee14a;};return a209_0x3c47();}(function(_0x5b3400,_0x173ba4){const _0x678153=a209_0x3ae1,_0x36f417=_0x5b3400();while(!![]){try{const _0x31fd86=-parseInt(_0x678153(0x22e))/0x1+parseInt(_0x678153(0x22b))/0x2+-parseInt(_0x678153(0x1fa))/0x3+-parseInt(_0x678153(0x209))/0x4*(-parseInt(_0x678153(0x23a))/0x5)+parseInt(_0x678153(0x1f0))/0x6*(-parseInt(_0x678153(0x21a))/0x7)+-parseInt(_0x678153(0x245))/0x8+parseInt(_0x678153(0x247))/0x9*(parseInt(_0x678153(0x224))/0xa);if(_0x31fd86===_0x173ba4)break;else _0x36f417['push'](_0x36f417['shift']());}catch(_0x25cfd8){_0x36f417['push'](_0x36f417['shift']());}}}(a209_0x3c47,0xa473b));export const CLI_BIN_NAME=a209_0x160e74(0x1ef);export const CLI_DISPLAY_NAME=a209_0x160e74(0x239);function a209_0x3ae1(_0xfd8f6d,_0x1aacdc){_0xfd8f6d=_0xfd8f6d-0x1cf;const _0x3c47d0=a209_0x3c47();let _0x3ae120=_0x3c47d0[_0xfd8f6d];return _0x3ae120;}export const NPM_PACKAGE_NAME=a209_0x160e74(0x1f6);export const GLOBAL_FLAGS=[{'name':a209_0x160e74(0x215),'meowKey':a209_0x160e74(0x215),'type':'string','description':a209_0x160e74(0x256),'hint':'<code>'},{'name':a209_0x160e74(0x246),'meowKey':a209_0x160e74(0x246),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x22c),'hint':'<name>'},{'name':a209_0x160e74(0x1d8),'meowKey':a209_0x160e74(0x1d8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1ed),'hint':a209_0x160e74(0x21f)},{'name':a209_0x160e74(0x244),'meowKey':a209_0x160e74(0x244),'type':a209_0x160e74(0x207),'description':'Output\x20format','hint':a209_0x160e74(0x248)},{'name':'jq','meowKey':'jq','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1fd),'hint':a209_0x160e74(0x1d2)},{'name':'dry-run','meowKey':a209_0x160e74(0x235),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x221)},{'name':a209_0x160e74(0x21e),'meowKey':a209_0x160e74(0x21e),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x237)},{'name':a209_0x160e74(0x1e3),'meowKey':a209_0x160e74(0x228),'type':a209_0x160e74(0x236),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a209_0x160e74(0x213),'meowKey':'global','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1da)},{'name':a209_0x160e74(0x1ec),'meowKey':a209_0x160e74(0x1ec),'type':'boolean','description':a209_0x160e74(0x20a)},{'name':'ci','meowKey':'ci','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x20c),'hidden':!![]},{'name':a209_0x160e74(0x20e),'meowKey':a209_0x160e74(0x20e),'type':'boolean','description':a209_0x160e74(0x253)},{'name':a209_0x160e74(0x203),'meowKey':a209_0x160e74(0x203),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23f),'hidden':!![]},{'name':a209_0x160e74(0x219),'meowKey':a209_0x160e74(0x219),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x24d),'hidden':!![]},{'name':a209_0x160e74(0x242),'meowKey':a209_0x160e74(0x242),'type':a209_0x160e74(0x207),'description':'Search\x20query','hidden':!![]},{'name':a209_0x160e74(0x1e5),'meowKey':a209_0x160e74(0x1e5),'type':'string','description':a209_0x160e74(0x217),'hidden':!![]},{'name':'clear','meowKey':a209_0x160e74(0x200),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x22d),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a209_0x160e74(0x236),'description':'Watch\x20mode','hidden':!![]},{'name':a209_0x160e74(0x231),'meowKey':'output','type':'string','description':a209_0x160e74(0x241),'hidden':!![]},{'name':a209_0x160e74(0x1fb),'meowKey':a209_0x160e74(0x1fb),'type':a209_0x160e74(0x207),'description':'JSON\x20params','hidden':!![]},{'name':a209_0x160e74(0x206),'meowKey':a209_0x160e74(0x206),'type':'string','description':a209_0x160e74(0x24b),'hidden':!![]},{'name':a209_0x160e74(0x212),'meowKey':'all','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d7),'hidden':!![]},{'name':a209_0x160e74(0x22f),'meowKey':a209_0x160e74(0x20d),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d9),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x21d),'hidden':!![]},{'name':a209_0x160e74(0x1e2),'meowKey':a209_0x160e74(0x1e2),'type':a209_0x160e74(0x207),'description':'Type\x20filter','hidden':!![]},{'name':a209_0x160e74(0x1ea),'meowKey':a209_0x160e74(0x1ea),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1ff),'hidden':!![]},{'name':a209_0x160e74(0x22a),'meowKey':a209_0x160e74(0x22a),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x250),'hidden':!![]},{'name':a209_0x160e74(0x238),'meowKey':a209_0x160e74(0x23d),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x20f),'hidden':!![]},{'name':a209_0x160e74(0x1d4),'meowKey':a209_0x160e74(0x1d4),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x20f),'hidden':!![]},{'name':a209_0x160e74(0x214),'meowKey':'dbId','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x249),'hidden':!![]},{'name':a209_0x160e74(0x21b),'meowKey':a209_0x160e74(0x21b),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x249),'hidden':!![]},{'name':'description','meowKey':a209_0x160e74(0x229),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x225),'hidden':!![]},{'name':a209_0x160e74(0x1f3),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':'page','meowKey':a209_0x160e74(0x205),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x24e),'hidden':!![]},{'name':'pagesize','meowKey':a209_0x160e74(0x1f8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23e),'hidden':!![]},{'name':'keyword','meowKey':a209_0x160e74(0x1e8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x252),'hidden':!![]},{'name':a209_0x160e74(0x1f4),'meowKey':'code','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1fc),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1f7),'hidden':!![]},{'name':a209_0x160e74(0x1d0),'meowKey':a209_0x160e74(0x1d0),'type':'string','description':a209_0x160e74(0x1f1),'hidden':!![]},{'name':a209_0x160e74(0x1dc),'meowKey':a209_0x160e74(0x1dc),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x255),'hidden':!![]},{'name':'target','meowKey':a209_0x160e74(0x1db),'type':a209_0x160e74(0x207),'description':'Target\x20path','hidden':!![]},{'name':a209_0x160e74(0x1f5),'meowKey':a209_0x160e74(0x223),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x218),'hidden':!![]},{'name':a209_0x160e74(0x243),'meowKey':a209_0x160e74(0x243),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x201),'hidden':!![]},{'name':a209_0x160e74(0x1df),'meowKey':a209_0x160e74(0x1df),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1d1),'hidden':!![]},{'name':a209_0x160e74(0x1cf),'meowKey':'tags','type':'string','description':a209_0x160e74(0x1f9),'hidden':!![]},{'name':a209_0x160e74(0x1f2),'meowKey':'stdin','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d6),'hidden':!![]},{'name':'from-env','meowKey':a209_0x160e74(0x21c),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1d5),'hidden':!![]},{'name':a209_0x160e74(0x216),'meowKey':a209_0x160e74(0x216),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1eb),'hidden':!![]},{'name':'force','meowKey':a209_0x160e74(0x240),'type':a209_0x160e74(0x236),'description':'Force\x20overwrite','hidden':!![]},{'name':a209_0x160e74(0x1e0),'meowKey':'confirm','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x251),'hidden':!![]},{'name':'remote','meowKey':a209_0x160e74(0x1de),'type':'boolean','description':a209_0x160e74(0x220),'hidden':!![]},{'name':a209_0x160e74(0x211),'meowKey':a209_0x160e74(0x211),'type':'boolean','description':a209_0x160e74(0x24a),'hidden':!![]},{'name':a209_0x160e74(0x202),'meowKey':'expectedCount','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x254),'hidden':!![]},{'name':a209_0x160e74(0x227),'meowKey':'label','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1e7),'hidden':!![]},{'name':a209_0x160e74(0x1e4),'meowKey':a209_0x160e74(0x1d3),'type':a209_0x160e74(0x207),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a209_0x160e74(0x226),'meowKey':a209_0x160e74(0x226),'type':'string','description':a209_0x160e74(0x1e6),'hidden':!![]},{'name':a209_0x160e74(0x234),'meowKey':'expectParentId','type':'string','description':a209_0x160e74(0x20b),'hidden':!![]},{'name':a209_0x160e74(0x257),'meowKey':a209_0x160e74(0x204),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x222),'hidden':!![]},{'name':a209_0x160e74(0x208),'meowKey':a209_0x160e74(0x230),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x233),'hidden':!![]},{'name':a209_0x160e74(0x24c),'meowKey':a209_0x160e74(0x210),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23b),'hidden':!![]},{'name':a209_0x160e74(0x258),'meowKey':'taskId','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1dd),'hidden':!![]},{'name':a209_0x160e74(0x23c),'meowKey':'operationType','type':a209_0x160e74(0x207),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x160e74(0x24f),'meowKey':a209_0x160e74(0x1fe),'type':a209_0x160e74(0x207),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x160e74(0x215),'app',a209_0x160e74(0x1d8),a209_0x160e74(0x244),'jq',a209_0x160e74(0x232),a209_0x160e74(0x21e),a209_0x160e74(0x1e3),'ci']);export function buildMeowFlags(){const _0x40c80b=a209_0x160e74;return Object[_0x40c80b(0x1e1)](GLOBAL_FLAGS[_0x40c80b(0x1e9)](_0x4c6ed5=>[_0x4c6ed5[_0x40c80b(0x1ee)],{'type':_0x4c6ed5['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0x49cd(){const _0x46833b=['3617055HCSsYz','20GoqKNw','93592WhZXiA','compress','8873984VhJKTV','write','3kmIXsg','1499399FHrEBm','89452yzsfwW','290jOiMtk','36954bFgScQ','4Sinwau','6462484gQdzgv'];a210_0x49cd=function(){return _0x46833b;};return a210_0x49cd();}function a210_0x2752(_0xed0bb4,_0x9a8f5){_0xed0bb4=_0xed0bb4-0xb4;const _0x49cd4b=a210_0x49cd();let _0x2752b7=_0x49cd4b[_0xed0bb4];return _0x2752b7;}const a210_0x2068a3=a210_0x2752;(function(_0x3d067d,_0x45d132){const _0x1b86a7=a210_0x2752,_0x1e0db5=_0x3d067d();while(!![]){try{const _0x1fe0a6=parseInt(_0x1b86a7(0xbb))/0x1*(parseInt(_0x1b86a7(0xb8))/0x2)+parseInt(_0x1b86a7(0xb6))/0x3*(-parseInt(_0x1b86a7(0xbf))/0x4)+parseInt(_0x1b86a7(0xb9))/0x5*(parseInt(_0x1b86a7(0xba))/0x6)+-parseInt(_0x1b86a7(0xbc))/0x7+parseInt(_0x1b86a7(0xb4))/0x8+-parseInt(_0x1b86a7(0xbd))/0x9+parseInt(_0x1b86a7(0xbe))/0xa*(parseInt(_0x1b86a7(0xb7))/0xb);if(_0x1fe0a6===_0x45d132)break;else _0x1e0db5['push'](_0x1e0db5['shift']());}catch(_0x1c5265){_0x1e0db5['push'](_0x1e0db5['shift']());}}}(a210_0x49cd,0x8b08f));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a210_0x2068a3(0xc0),'locale':'en-US','riskLevel':a210_0x2068a3(0xb5),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a210_0x2068a3(0xc0);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a211_0x3c3c(_0x2909ca,_0x149646){_0x2909ca=_0x2909ca-0x128;const _0x4cb0b3=a211_0x4cb0();let _0x3c3c24=_0x4cb0b3[_0x2909ca];return _0x3c3c24;}const a211_0x4d30ae=a211_0x3c3c;(function(_0x4e37e7,_0x361488){const _0x279479=a211_0x3c3c,_0x545899=_0x4e37e7();while(!![]){try{const _0x5dd7e0=parseInt(_0x279479(0x129))/0x1+parseInt(_0x279479(0x130))/0x2*(parseInt(_0x279479(0x128))/0x3)+parseInt(_0x279479(0x12d))/0x4*(-parseInt(_0x279479(0x12a))/0x5)+parseInt(_0x279479(0x139))/0x6+parseInt(_0x279479(0x12f))/0x7+-parseInt(_0x279479(0x138))/0x8*(-parseInt(_0x279479(0x13a))/0x9)+-parseInt(_0x279479(0x12e))/0xa;if(_0x5dd7e0===_0x361488)break;else _0x545899['push'](_0x545899['shift']());}catch(_0x2e2f6c){_0x545899['push'](_0x545899['shift']());}}}(a211_0x4cb0,0x580d3));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a211_0x4cb0(){const _0x44c3a0=['https://user-daily.lovrabet.com','https://runtime.lovrabet.com','/web-app/app/','userDomain','/app/','https://user.lovrabet.com','1741712NoLzmz','2553300yzeAvl','9hKRgla','453jQLRmM','672292hPglIe','50vAYWNR','https://daily-api.lovrabet.com','apiDomain','13352RpGCgQ','12849770URuxGS','233618Ybrxab','4372XnWAaM','https://api.lovrabet.com'];a211_0x4cb0=function(){return _0x44c3a0;};return a211_0x4cb0();}export function initDomains(_0x12cda9){const _0x51d67a=a211_0x3c3c;customApiDomain=_0x12cda9?.[_0x51d67a(0x12c)],customUserDomain=_0x12cda9?.[_0x51d67a(0x135)],customRuntimeDomain=_0x12cda9?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a211_0x4d30ae(0x137):a211_0x4d30ae(0x132));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a211_0x4d30ae(0x131):a211_0x4d30ae(0x12b));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a211_0x4d30ae(0x133):'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0x1526bc=>{const _0x219d9d=a211_0x4d30ae,_0x268408=encodeURIComponent(_0x1526bc['trim']());return isProduction(getEnv())?getAppDomain()+_0x219d9d(0x136)+_0x268408:getAppDomain()+_0x219d9d(0x134)+_0x268408;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x566d7f=a212_0x5c9d;(function(_0x1d1d5d,_0xc9db86){const _0x1e2fa7=a212_0x5c9d,_0x35a94a=_0x1d1d5d();while(!![]){try{const _0x56e9c5=parseInt(_0x1e2fa7(0x1d5))/0x1+-parseInt(_0x1e2fa7(0x1d1))/0x2*(parseInt(_0x1e2fa7(0x1c8))/0x3)+-parseInt(_0x1e2fa7(0x1d3))/0x4+parseInt(_0x1e2fa7(0x1c7))/0x5*(-parseInt(_0x1e2fa7(0x1cf))/0x6)+parseInt(_0x1e2fa7(0x1cc))/0x7*(parseInt(_0x1e2fa7(0x1d4))/0x8)+parseInt(_0x1e2fa7(0x1cd))/0x9*(-parseInt(_0x1e2fa7(0x1d6))/0xa)+parseInt(_0x1e2fa7(0x1cb))/0xb*(parseInt(_0x1e2fa7(0x1c9))/0xc);if(_0x56e9c5===_0xc9db86)break;else _0x35a94a['push'](_0x35a94a['shift']());}catch(_0x50c687){_0x35a94a['push'](_0x35a94a['shift']());}}}(a212_0x500c,0x989e8));export const RABETBASE_ENV_VALUES=[a212_0x566d7f(0x1d2),a212_0x566d7f(0x1ca)];export function normalizeEnv(_0x212d2d){const _0x4f511d=a212_0x566d7f;return _0x212d2d==='online'?_0x4f511d(0x1d2):_0x212d2d;}export function isProduction(_0x183965){const _0xc4827f=a212_0x566d7f;return normalizeEnv(_0x183965)===_0xc4827f(0x1d2);}function a212_0x5c9d(_0x155815,_0x59c170){_0x155815=_0x155815-0x1c7;const _0x500c31=a212_0x500c();let _0x5c9d17=_0x500c31[_0x155815];return _0x5c9d17;}export function isDaily(_0x1fc8e1){const _0x2c5a58=a212_0x566d7f;return normalizeEnv(_0x1fc8e1)===_0x2c5a58(0x1ca);}export function isDev(_0x7c1260){const _0x3a44f9=a212_0x566d7f,_0x4c908f=normalizeEnv(_0x7c1260);return _0x4c908f===_0x3a44f9(0x1d0)||_0x4c908f===_0x3a44f9(0x1ce);}function a212_0x500c(){const _0x1a936c=['114568OkqBsX','610812RkEjnN','30ZmEuaG','5435wqIXTI','9BskuZc','6852vcyinc','daily','19349EPJXmM','581cImPAk','1650762tbxltg','dev','6858dYMCEa','development','16842FkUgZB','production','1443032pDTYJu'];a212_0x500c=function(){return _0x1a936c;};return a212_0x500c();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x566d7f(0x1d2));export function getEnv(){return env;}export function initEnv(_0x1fe383){env=normalizeEnv(_0x1fe383);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a213_0xa58d(_0x433d7b,_0x4eb3d7){_0x433d7b=_0x433d7b-0x1df;const _0x8cfa88=a213_0x8cfa();let _0xa58dd2=_0x8cfa88[_0x433d7b];return _0xa58dd2;}const a213_0x55730f=a213_0xa58d;function a213_0x8cfa(){const _0x4af8e7=['2650043hdBghv','78340pWOMTd','370EMqHUb','8QRJmVo','20JcgPKY','12313ycUXfe','pretty','21123ciRQtZ','105219IyWVQJ','84321aAOKKe','compress','28398vjlBEN','2yIaBQg'];a213_0x8cfa=function(){return _0x4af8e7;};return a213_0x8cfa();}(function(_0x5b2a5b,_0x9b9089){const _0x29d77a=a213_0xa58d,_0x30aef9=_0x5b2a5b();while(!![]){try{const _0x472b87=-parseInt(_0x29d77a(0x1ea))/0x1*(-parseInt(_0x29d77a(0x1e1))/0x2)+-parseInt(_0x29d77a(0x1eb))/0x3*(-parseInt(_0x29d77a(0x1e6))/0x4)+parseInt(_0x29d77a(0x1e3))/0x5+-parseInt(_0x29d77a(0x1e0))/0x6+-parseInt(_0x29d77a(0x1e7))/0x7*(-parseInt(_0x29d77a(0x1e5))/0x8)+parseInt(_0x29d77a(0x1e9))/0x9*(parseInt(_0x29d77a(0x1e4))/0xa)+-parseInt(_0x29d77a(0x1e2))/0xb;if(_0x472b87===_0x9b9089)break;else _0x30aef9['push'](_0x30aef9['shift']());}catch(_0x454ece){_0x30aef9['push'](_0x30aef9['shift']());}}}(a213_0x8cfa,0x197b6));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a213_0x55730f(0x1e8),a213_0x55730f(0x1df)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a214_0x2f35ad=a214_0x57a3;function a214_0x57a3(_0xf3959b,_0x631858){_0xf3959b=_0xf3959b-0x1b1;const _0x277ddf=a214_0x277d();let _0x57a372=_0x277ddf[_0xf3959b];return _0x57a372;}(function(_0x236aa4,_0xbcd914){const _0x894c8c=a214_0x57a3,_0x3bdfb8=_0x236aa4();while(!![]){try{const _0x35fbed=-parseInt(_0x894c8c(0x1b3))/0x1*(-parseInt(_0x894c8c(0x1b7))/0x2)+parseInt(_0x894c8c(0x1b5))/0x3+parseInt(_0x894c8c(0x1b8))/0x4+parseInt(_0x894c8c(0x1b4))/0x5+-parseInt(_0x894c8c(0x1b1))/0x6*(parseInt(_0x894c8c(0x1b6))/0x7)+-parseInt(_0x894c8c(0x1b2))/0x8+-parseInt(_0x894c8c(0x1ba))/0x9;if(_0x35fbed===_0xbcd914)break;else _0x3bdfb8['push'](_0x3bdfb8['shift']());}catch(_0x29e406){_0x3bdfb8['push'](_0x3bdfb8['shift']());}}}(a214_0x277d,0xdbf12));function a214_0x277d(){const _0x3b23f9=['6316668qtKYWi','./src/api','14411862oDexUA','9246972cWnqyM','2979872sZHTSK','15481Kgazvx','5503000dJsBWI','3489846aGKeRF','7XwDpfT','74ZJktcX'];a214_0x277d=function(){return _0x3b23f9;};return a214_0x277d();}export const DEFAULT_API_DIR=a214_0x2f35ad(0x1b9);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a215_0x122c(_0xfc4578,_0x1b70c1){_0xfc4578=_0xfc4578-0xa3;const _0x274d39=a215_0x274d();let _0x122c1f=_0x274d39[_0xfc4578];return _0x122c1f;}const a215_0x1002ea=a215_0x122c;(function(_0x10efb0,_0x522f7f){const _0x483eec=a215_0x122c,_0x13d29c=_0x10efb0();while(!![]){try{const _0x429144=parseInt(_0x483eec(0xab))/0x1+-parseInt(_0x483eec(0xa8))/0x2*(-parseInt(_0x483eec(0xa3))/0x3)+-parseInt(_0x483eec(0xac))/0x4+-parseInt(_0x483eec(0xae))/0x5*(-parseInt(_0x483eec(0xad))/0x6)+parseInt(_0x483eec(0xa7))/0x7+-parseInt(_0x483eec(0xaa))/0x8+-parseInt(_0x483eec(0xa4))/0x9*(parseInt(_0x483eec(0xa5))/0xa);if(_0x429144===_0x522f7f)break;else _0x13d29c['push'](_0x13d29c['shift']());}catch(_0x993456){_0x13d29c['push'](_0x13d29c['shift']());}}}(a215_0x274d,0x7fcee));function a215_0x274d(){const _0x586b69=['1288107RDCFgL','10HTllTa','read','4251646HktpTf','103380aAkjfB','high-risk-write','4377400JVyPdV','91129essAwM','2231236ZRsBXv','48GZBjjV','444545JqZMVs','21rOJEiA'];a215_0x274d=function(){return _0x586b69;};return a215_0x274d();}export const RISK_LEVEL_VALUES=[a215_0x1002ea(0xa6),'write',a215_0x1002ea(0xa9)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22eeff,_0x105660){const _0x96e0ae=a216_0x328c,_0x2f2378=_0x22eeff();while(!![]){try{const _0x3ed65d=parseInt(_0x96e0ae(0x14f))/0x1*(-parseInt(_0x96e0ae(0x156))/0x2)+-parseInt(_0x96e0ae(0x159))/0x3+parseInt(_0x96e0ae(0x13b))/0x4*(parseInt(_0x96e0ae(0x160))/0x5)+parseInt(_0x96e0ae(0x163))/0x6*(parseInt(_0x96e0ae(0x138))/0x7)+parseInt(_0x96e0ae(0x144))/0x8*(parseInt(_0x96e0ae(0x14c))/0x9)+-parseInt(_0x96e0ae(0x13f))/0xa+parseInt(_0x96e0ae(0x142))/0xb*(parseInt(_0x96e0ae(0x152))/0xc);if(_0x3ed65d===_0x105660)break;else _0x2f2378['push'](_0x2f2378['shift']());}catch(_0x191210){_0x2f2378['push'](_0x2f2378['shift']());}}}(a216_0x1f4d,0x6f9ca));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x2a6c39){const _0x285ce8=a216_0x328c;return typeof _0x2a6c39===_0x285ce8(0x15b)&&_0x2a6c39[_0x285ce8(0x145)]()?_0x2a6c39[_0x285ce8(0x145)]():undefined;}function a216_0x328c(_0x15c185,_0x537a68){_0x15c185=_0x15c185-0x138;const _0x1f4d09=a216_0x1f4d();let _0x328cfe=_0x1f4d09[_0x15c185];return _0x328cfe;}function a216_0x1f4d(){const _0x3ef421=['object','prototype','defaultApp','150538TZiRZI','length','app','1045587edLokz','RISK_LEVEL','string','true','format','appcode','VERBOSE','10JGTMdF','ENV','accessKey','54tgszNd','APP','PAGE_SIZE','read','maxRisk','36981AndtQS','hasOwnProperty','env','1447260SRIIhr','apps','daily','MAX_RISK','272880hoATRw','keys','apiDir','22EpWUlI','globalConfig','8uKxAoS','trim','locale','entries','projectConfig','cookie','find','production','1932633ENJBHz','FORMAT','call','7kWIqTr','pageSize','riskLevel','2243688lXLoMk'];a216_0x1f4d=function(){return _0x3ef421;};return a216_0x1f4d();}function appProfiles(_0xdc64ea){const _0x22ca1e=a216_0x328c;return _0xdc64ea['apps']&&typeof _0xdc64ea[_0x22ca1e(0x13c)]==='object'?_0xdc64ea[_0x22ca1e(0x13c)]:{};}function resolveDefaultAppName(_0x82d552){const _0x3d2986=a216_0x328c,_0x4a0027=stringConfigValue(_0x82d552[_0x3d2986(0x155)]);if(_0x4a0027)return _0x4a0027;return Object[_0x3d2986(0x140)](appProfiles(_0x82d552))[0x0];}function resolveTopLevelAppCode(_0x58dbd2){const _0x44213a=a216_0x328c;return stringConfigValue(_0x58dbd2[_0x44213a(0x15e)])||stringConfigValue(_0x58dbd2[_0x44213a(0x158)]);}function normalizeRiskCeiling(_0x615ee9){const _0x12ad43=a216_0x328c;if(_0x615ee9===undefined||_0x615ee9===null)return undefined;if(_0x615ee9===_0x12ad43(0x166)||_0x615ee9==='write'||_0x615ee9==='high-risk-write')return _0x615ee9;return _0x12ad43(0x166);}function resolveRiskCeiling(..._0x5ab8cd){const _0x1055fa=a216_0x328c;let _0xf85946;for(const _0x5094eb of _0x5ab8cd){const _0x1868ce=normalizeRiskCeiling(_0x5094eb);_0x1868ce&&(!_0xf85946||riskLevelOrder(_0x1868ce)<riskLevelOrder(_0xf85946))&&(_0xf85946=_0x1868ce);}return _0xf85946??DEFAULT_CONFIG_VALUES[_0x1055fa(0x151)];}function configuredRiskCeilings(_0xc44f5f){const _0x3f3b7a=a216_0x328c;return[...Object[_0x3f3b7a(0x154)][_0x3f3b7a(0x139)][_0x3f3b7a(0x14e)](_0xc44f5f,_0x3f3b7a(0x167))?[_0xc44f5f[_0x3f3b7a(0x167)]]:[],...Object['prototype']['hasOwnProperty'][_0x3f3b7a(0x14e)](_0xc44f5f,_0x3f3b7a(0x151))?[_0xc44f5f['riskLevel']]:[]];}export function resolveAppConfig({raw:_0x429889,flags:_0x40a01d,layers:_0x1be458,readEnv:_0x4f067b}){const _0x11814a=a216_0x328c,_0x1f9e5a=_0x1be458?.[_0x11814a(0x148)]??{},_0x48f659=_0x1be458?.[_0x11814a(0x143)]??{},_0x47ea31=Object[_0x11814a(0x140)](_0x1f9e5a)[_0x11814a(0x157)]>0x0,_0x6d4d81=!_0x47ea31||_0x1f9e5a['inherit']===!![],_0x47a642=_0x47ea31?resolveDefaultAppName(_0x1f9e5a):undefined,_0x40c201=_0x6d4d81?resolveDefaultAppName(_0x48f659):undefined,_0x4ff03f=stringConfigValue(_0x40a01d['app']),_0x5620e5=_0x4f067b(_0x11814a(0x164)),_0x4db114={};if(_0x429889['apps']&&typeof _0x429889['apps']==='object')for(const [_0x29d58d,_0x76f76d]of Object[_0x11814a(0x147)](_0x429889[_0x11814a(0x13c)])){_0x76f76d&&typeof _0x76f76d===_0x11814a(0x153)&&_0x76f76d[_0x11814a(0x15e)]&&(_0x4db114[_0x29d58d]=_0x76f76d);}const _0x15ef0b=_0x429889['defaultApp']||undefined,_0x517cad=Object[_0x11814a(0x140)](_0x4db114)[_0x11814a(0x157)]>0x0,_0x216159=_0x4ff03f||_0x47a642||_0x5620e5||_0x40c201||_0x15ef0b||undefined,_0x2acfd8=stringConfigValue(_0x40a01d[_0x11814a(0x15e)]),_0x62519e=_0x2acfd8?Object['entries'](_0x4db114)[_0x11814a(0x14a)](([,_0x50746a])=>_0x50746a?.[_0x11814a(0x15e)]===_0x2acfd8):undefined,_0x334718=_0x62519e?.[0x0],_0x5ac169=_0x62519e?.[0x1],_0x282987=_0x2acfd8?_0x334718:_0x216159;let _0x5a9809=_0x282987&&_0x4db114[_0x282987]?_0x4db114[_0x282987]:undefined;_0x2acfd8&&_0x5ac169&&(_0x5a9809=_0x5ac169);const _0x4103de=_0x2acfd8?_0x5ac169??_0x5a9809:_0x5a9809,_0x334b1c=!_0x4ff03f&&!_0x47a642&&_0x5620e5&&_0x282987===_0x5620e5,_0xfe9129=_0x4ff03f||(_0x334b1c?_0x5620e5:undefined)||(_0x2acfd8?_0x334718:undefined),_0x2f2913=_0x4103de?.[_0x11814a(0x15e)],_0x34e725=_0x47ea31?resolveTopLevelAppCode(_0x1f9e5a):undefined,_0x447f9=_0x6d4d81?resolveTopLevelAppCode(_0x48f659):undefined,_0xc77648=_0x4ff03f||_0x47a642?_0x2f2913:undefined,_0x34b3ea=!_0x4ff03f&&!_0x47a642?_0x2f2913:undefined,_0x240655=_0x2acfd8||_0xc77648||_0x34e725||_0x34b3ea||_0x447f9||undefined,_0x2d87a8=_0x47ea31?stringConfigValue(_0x1f9e5a['env']):undefined,_0x3e1298=_0x6d4d81?stringConfigValue(_0x48f659[_0x11814a(0x13a)]):undefined,_0x1693f7=_0x40a01d['env']||_0x4103de?.[_0x11814a(0x13a)]||_0x2d87a8||_0x4f067b(_0x11814a(0x161))||_0x3e1298||_0x429889['env']||DEFAULT_CONFIG_VALUES[_0x11814a(0x13a)],_0x29966e=_0x4103de?.[_0x11814a(0x146)]||_0x429889[_0x11814a(0x146)]||DEFAULT_CONFIG_VALUES['locale'],_0x160048=_0x4f067b('COOKIE')||_0x4103de?.[_0x11814a(0x149)]||_0x429889[_0x11814a(0x149)]||undefined,_0x35ed8d=_0x4f067b('ACCESS_KEY')||_0x4103de?.[_0x11814a(0x162)]||_0x429889[_0x11814a(0x162)]||undefined,_0x133704=_0x40a01d['format']||_0x4f067b(_0x11814a(0x14d))||_0x4103de?.[_0x11814a(0x15d)]||_0x429889[_0x11814a(0x15d)],_0x562a55=normalizeLegacyOutputFormat(_0x133704),_0x10bd1e=_0x4f067b(_0x11814a(0x165))||_0x4103de?.[_0x11814a(0x150)]||_0x429889[_0x11814a(0x150)],_0x55744e=_0x10bd1e?Number(_0x10bd1e)||undefined:undefined,_0x14f0ef=_0x1be458?[...configuredRiskCeilings(_0x1be458[_0x11814a(0x143)]),...configuredRiskCeilings(_0x1be458['projectConfig'])]:configuredRiskCeilings(_0x429889),_0x532d74=resolveRiskCeiling(..._0x14f0ef,_0x4103de?.[_0x11814a(0x151)]),_0x30d65e=resolveRiskCeiling(_0x532d74,_0x4f067b(_0x11814a(0x15a)),_0x4f067b(_0x11814a(0x13e))),_0x5966ba=_0x4f067b(_0x11814a(0x15f)),_0x202fb3=_0x5966ba==='1'||_0x5966ba===_0x11814a(0x15c),_0x479760=_0x4103de?.[_0x11814a(0x141)]||_0x429889['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x2a0f51=isDaily(normalizeEnv(String(_0x1693f7)))?_0x11814a(0x13d):_0x11814a(0x14b);return{'appCode':typeof _0x240655===_0x11814a(0x15b)&&_0x240655[_0x11814a(0x145)]()?_0x240655['trim']():undefined,'env':_0x2a0f51,'locale':_0x29966e,'cookie':_0x160048,'accessKey':_0x35ed8d,'format':_0x562a55,'pageSize':_0x55744e,'riskLevel':_0x30d65e,'verbose':_0x202fb3,'apiDir':_0x479760,'apps':_0x4db114,'defaultApp':_0x15ef0b,'currentApp':_0x517cad?_0x282987:undefined,'explicitAppName':_0xfe9129};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x320ee4,_0x12b56c){const _0x2361dc=a217_0x40cf,_0x3a1fa6=_0x320ee4();while(!![]){try{const _0x4e7cdf=parseInt(_0x2361dc(0x1c7))/0x1*(parseInt(_0x2361dc(0x1c2))/0x2)+-parseInt(_0x2361dc(0x1c3))/0x3+parseInt(_0x2361dc(0x1c4))/0x4+-parseInt(_0x2361dc(0x1cb))/0x5+-parseInt(_0x2361dc(0x1c6))/0x6*(parseInt(_0x2361dc(0x1cc))/0x7)+parseInt(_0x2361dc(0x1cd))/0x8+parseInt(_0x2361dc(0x1c9))/0x9*(parseInt(_0x2361dc(0x1c5))/0xa);if(_0x4e7cdf===_0x12b56c)break;else _0x3a1fa6['push'](_0x3a1fa6['shift']());}catch(_0x1182c0){_0x3a1fa6['push'](_0x3a1fa6['shift']());}}}(a217_0x34c9,0x625b7));function a217_0x40cf(_0x2c44ec,_0x189c02){_0x2c44ec=_0x2c44ec-0x1c2;const _0x34c990=a217_0x34c9();let _0x40cf10=_0x34c990[_0x2c44ec];return _0x40cf10;}function a217_0x34c9(){const _0x465ae3=['4090DTYnJT','3126HvtjQf','1VbDubo','../auth/get-cookie.js','10737dfZQcv','authRequired','2801095DOdPTi','7364sJHblP','4489792KPxWbd','764806gipkOj','1674645QXWEdc','2551332ZUSzKT'];a217_0x34c9=function(){return _0x465ae3;};return a217_0x34c9();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x3e6bb1){const _0x43bb06=a217_0x40cf,{getCookie:_0x98b8d3}=await import(_0x43bb06(0x1c8)),_0x50ab76=_0x3e6bb1['cookie']||_0x98b8d3(),_0x2c2c4a=_0x50ab76?await getIsSessionValid():![];return{'cookie':_0x50ab76,'isLoggedIn':_0x2c2c4a,async 'getOrLogin'(){const _0x425eb0=_0x43bb06;if(_0x50ab76&&_0x2c2c4a)return _0x50ab76;throw CliErrors[_0x425eb0(0x1ca)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a218_0xcb253e=a218_0x1c8a;(function(_0x3bccf3,_0x3cdf89){const _0x34b96e=a218_0x1c8a,_0x488604=_0x3bccf3();while(!![]){try{const _0xaff490=parseInt(_0x34b96e(0x189))/0x1*(-parseInt(_0x34b96e(0x196))/0x2)+parseInt(_0x34b96e(0x17c))/0x3+parseInt(_0x34b96e(0x179))/0x4+-parseInt(_0x34b96e(0x172))/0x5+parseInt(_0x34b96e(0x16f))/0x6+-parseInt(_0x34b96e(0x195))/0x7*(-parseInt(_0x34b96e(0x17b))/0x8)+-parseInt(_0x34b96e(0x198))/0x9;if(_0xaff490===_0x3cdf89)break;else _0x488604['push'](_0x488604['shift']());}catch(_0xb27940){_0x488604['push'](_0x488604['shift']());}}}(a218_0x3b0b,0xf1eaf));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a218_0xcb253e(0x169);export const CONFIG_NAMES=[a218_0xcb253e(0x169),a218_0xcb253e(0x187),a218_0xcb253e(0x168)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x4b4571=>_0x4b4571!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4963cc){for(const _0x5eac59 of CONFIG_NAMES){const _0x41d263=resolve(_0x4963cc,_0x5eac59);if(existsSync(_0x41d263))return _0x41d263;}return undefined;}export function findProjectRootDirectory(_0xb65c59=process[a218_0xcb253e(0x193)]()){let _0x4c861c=resolve(_0xb65c59);const {root:_0x24d9bc}=parse(_0x4c861c),_0xe3eb1=homedir();while(!![]){if(resolveConfigPath(_0x4c861c)){if(_0x4c861c===_0xe3eb1)break;return _0x4c861c;}if(_0x4c861c===_0x24d9bc||_0x4c861c===_0xe3eb1)break;const _0x39edf6=dirname(_0x4c861c);if(_0x39edf6===_0x4c861c)break;_0x4c861c=_0x39edf6;}return resolve(_0xb65c59);}export function getProjectConfigPath(){const _0x242adc=a218_0xcb253e;return resolveConfigPath(process[_0x242adc(0x193)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x548844){const _0x5b127f=a218_0xcb253e;if(!existsSync(_0x548844))return{'status':_0x5b127f(0x16e)};try{const _0x40a03a=readFileSync(_0x548844,{'encoding':'utf8'});if(!_0x40a03a?.['trim']())return{'status':_0x5b127f(0x18e)};const _0x527a16=JSON['parse'](_0x40a03a);return{'status':'ok','data':_0x527a16};}catch(_0x2532fb){return{'status':_0x5b127f(0x17e),'message':_0x2532fb instanceof Error?_0x2532fb[_0x5b127f(0x17d)]:String(_0x2532fb)};}}function parseCliConfigJsonFile(_0x2aa19b,_0x1cff64,_0x348fed){const _0x302632=a218_0xcb253e,_0x851475=inspectCliConfigJsonFile(_0x2aa19b);if(_0x851475[_0x302632(0x170)]==='missing'||_0x851475[_0x302632(0x170)]===_0x302632(0x18e))return{};if(_0x851475[_0x302632(0x170)]==='ok')return _0x851475[_0x302632(0x186)];return _0x1cff64==='warn'&&_0x348fed&&console[_0x302632(0x17e)](CLI_BIN_NAME+':\x20'+_0x348fed+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x2aa19b+_0x302632(0x17a)+_0x851475[_0x302632(0x17d)]),{};}function normalizeLegacyConfigShape(_0x501896){const _0x940d7b=a218_0xcb253e;if(!_0x501896||typeof _0x501896!=='object')return{'config':{},'migrated':![]};const _0x471621={..._0x501896},_0x3f9165=_0x471621[_0x940d7b(0x182)]&&typeof _0x471621[_0x940d7b(0x182)]===_0x940d7b(0x175)?{..._0x471621[_0x940d7b(0x182)]}:{},_0x2ecf55=Object['keys'](_0x3f9165)['length'],_0x2727de=_0x471621[_0x940d7b(0x194)]||_0x471621[_0x940d7b(0x178)];let _0x414273=![];if(_0x2727de&&_0x2ecf55===0x0){const _0x54f2d4=typeof _0x471621['defaultApp']===_0x940d7b(0x184)&&_0x471621[_0x940d7b(0x197)]['trim']()?_0x471621['defaultApp']:String(_0x2727de)[_0x940d7b(0x18d)]();_0x3f9165[_0x54f2d4]={'appcode':String(_0x2727de)[_0x940d7b(0x18d)](),..._0x471621[_0x940d7b(0x174)]!=null?{'env':_0x471621[_0x940d7b(0x174)]}:{},..._0x471621[_0x940d7b(0x18c)]!=null?{'apiDir':_0x471621[_0x940d7b(0x18c)]}:{},..._0x471621['cookie']!=null?{'cookie':_0x471621['cookie']}:{},..._0x471621[_0x940d7b(0x171)]!=null?{'accessKey':_0x471621[_0x940d7b(0x171)]}:{},..._0x471621[_0x940d7b(0x176)]!=null?{'format':_0x471621['format']}:{},..._0x471621[_0x940d7b(0x191)]!=null?{'pageSize':_0x471621[_0x940d7b(0x191)]}:{},..._0x471621[_0x940d7b(0x16c)]!=null?{'riskLevel':_0x471621[_0x940d7b(0x16c)]}:{},..._0x471621[_0x940d7b(0x180)]!=null?{'locale':_0x471621[_0x940d7b(0x180)]}:{}},_0x471621[_0x940d7b(0x182)]=_0x3f9165;if(!_0x471621[_0x940d7b(0x197)])_0x471621[_0x940d7b(0x197)]=_0x54f2d4;_0x414273=!![];}return(_0x940d7b(0x194)in _0x471621||_0x940d7b(0x178)in _0x471621)&&(delete _0x471621['appcode'],delete _0x471621[_0x940d7b(0x178)],_0x414273=!![]),{'config':_0x471621,'migrated':_0x414273};}function writeNormalizedConfigIfNeeded(_0x32f9cd,_0x4abe66){const _0x587ced=a218_0xcb253e,_0x4b3b1b=JSON[_0x587ced(0x173)](_0x4abe66,null,0x2)+'\x0a';if(normalizedWriteCache[_0x587ced(0x16d)](_0x32f9cd)===_0x4b3b1b)return;writeConfigFile(_0x32f9cd,_0x4abe66),normalizedWriteCache[_0x587ced(0x192)](_0x32f9cd,_0x4b3b1b);}function parseAndNormalizeConfig(_0x6d2705,_0x19dc3a,_0x97e784){const _0x96ff8a=a218_0xcb253e,_0xea7f5d=parseCliConfigJsonFile(_0x6d2705,_0x19dc3a,_0x97e784),_0x5c0f2b=normalizeLegacyConfigShape(_0xea7f5d);if(_0x5c0f2b[_0x96ff8a(0x183)])try{writeNormalizedConfigIfNeeded(_0x6d2705,_0x5c0f2b[_0x96ff8a(0x18a)]);}catch{}return _0x5c0f2b[_0x96ff8a(0x18a)];}export function loadRawConfigLayers(_0x205e91){const _0x1448e9=a218_0xcb253e;let _0x1208b3={},_0xfc29b2={};const _0x1dca4c=resolveConfigPath(homedir());_0x1dca4c&&(_0x1208b3=parseAndNormalizeConfig(_0x1dca4c,'warn',_0x1448e9(0x177)));const _0x581037=_0x205e91??findProjectRootDirectory(),_0x5a3196=resolveConfigPath(_0x581037);return _0x5a3196&&(_0xfc29b2=parseAndNormalizeConfig(_0x5a3196,_0x1448e9(0x185),_0x1448e9(0x181))),{'globalPath':_0x1dca4c,'projectPath':_0x5a3196,'globalConfig':_0x1208b3,'projectConfig':_0xfc29b2};}const INHERIT_WHITELIST=[a218_0xcb253e(0x18b),a218_0xcb253e(0x171),a218_0xcb253e(0x180),a218_0xcb253e(0x176),a218_0xcb253e(0x16c),a218_0xcb253e(0x191)];function a218_0x1c8a(_0x15146d,_0x124b83){_0x15146d=_0x15146d-0x167;const _0x3b0b13=a218_0x3b0b();let _0x1c8a49=_0x3b0b13[_0x15146d];return _0x1c8a49;}export function mergeRawConfigLayers(_0x1b3090){const _0x558e7b=a218_0xcb253e,{globalConfig:_0x1f5f0c,projectConfig:_0x108b49}=_0x1b3090,_0x2b05a0=Object[_0x558e7b(0x188)](_0x108b49)[_0x558e7b(0x16a)]>0x0;if(!_0x2b05a0)return mergeGlobalOnly(_0x1f5f0c);if(_0x108b49[_0x558e7b(0x16b)]===!![])return mergeFullInherit(_0x1f5f0c,_0x108b49);if(_0x108b49[_0x558e7b(0x16b)]===![])return mergeIsolated(_0x108b49);return mergeProjectFirst(_0x1f5f0c,_0x108b49);}function mergeGlobalOnly(_0x4655c0){const _0x5edd0d=a218_0xcb253e,_0x3c1d54={..._0x4655c0},_0x71fa8f=_0x4655c0['apps']&&typeof _0x4655c0[_0x5edd0d(0x182)]===_0x5edd0d(0x175)?_0x4655c0[_0x5edd0d(0x182)]:{};if(Object[_0x5edd0d(0x188)](_0x71fa8f)[_0x5edd0d(0x16a)]>0x0)_0x3c1d54[_0x5edd0d(0x182)]=_0x71fa8f;if(_0x4655c0[_0x5edd0d(0x197)])_0x3c1d54[_0x5edd0d(0x197)]=_0x4655c0[_0x5edd0d(0x197)];else{const _0x277cd2=Object[_0x5edd0d(0x188)](_0x71fa8f);if(_0x277cd2[_0x5edd0d(0x16a)]>0x0)_0x3c1d54[_0x5edd0d(0x197)]=_0x277cd2[0x0];}return _0x3c1d54;}function mergeIsolated(_0x3dc2dd){const _0x15fff0=a218_0xcb253e,_0x5d0c22={..._0x3dc2dd};delete _0x5d0c22['inherit'];const _0x44b272=_0x3dc2dd[_0x15fff0(0x182)]&&typeof _0x3dc2dd[_0x15fff0(0x182)]===_0x15fff0(0x175)?_0x3dc2dd[_0x15fff0(0x182)]:{};Object[_0x15fff0(0x188)](_0x44b272)[_0x15fff0(0x16a)]>0x0?_0x5d0c22[_0x15fff0(0x182)]=_0x44b272:delete _0x5d0c22['apps'];if(_0x15fff0(0x197)in _0x3dc2dd)_0x5d0c22[_0x15fff0(0x197)]=_0x3dc2dd[_0x15fff0(0x197)];else Object[_0x15fff0(0x188)](_0x44b272)[_0x15fff0(0x16a)]>0x0?_0x5d0c22['defaultApp']=Object['keys'](_0x44b272)[0x0]:delete _0x5d0c22['defaultApp'];return _0x5d0c22;}function mergeProjectFirst(_0x11eb13,_0x14956d){const _0x18e772=a218_0xcb253e,_0x592dc1={..._0x14956d};delete _0x592dc1[_0x18e772(0x16b)];for(const _0x524a7a of INHERIT_WHITELIST){!(_0x524a7a in _0x592dc1)&&_0x524a7a in _0x11eb13&&(_0x592dc1[_0x524a7a]=_0x11eb13[_0x524a7a]);}const _0x318090=_0x14956d['apps']&&typeof _0x14956d[_0x18e772(0x182)]===_0x18e772(0x175)?_0x14956d[_0x18e772(0x182)]:{};Object[_0x18e772(0x188)](_0x318090)[_0x18e772(0x16a)]>0x0?_0x592dc1[_0x18e772(0x182)]=_0x318090:delete _0x592dc1[_0x18e772(0x182)];if(_0x18e772(0x197)in _0x14956d)_0x592dc1[_0x18e772(0x197)]=_0x14956d['defaultApp'];else Object[_0x18e772(0x188)](_0x318090)[_0x18e772(0x16a)]>0x0?_0x592dc1['defaultApp']=Object['keys'](_0x318090)[0x0]:delete _0x592dc1[_0x18e772(0x197)];return _0x592dc1;}function mergeFullInherit(_0x3ecda6,_0x3085d7){const _0x113396=a218_0xcb253e,_0x51a4ce=_0x3ecda6[_0x113396(0x182)]&&typeof _0x3ecda6[_0x113396(0x182)]==='object'?_0x3ecda6['apps']:{},_0x599ced=_0x3085d7['apps']&&typeof _0x3085d7[_0x113396(0x182)]===_0x113396(0x175)?_0x3085d7[_0x113396(0x182)]:{},_0x3245cb={..._0x51a4ce,..._0x599ced},_0x474da7={..._0x3ecda6,..._0x3085d7};delete _0x474da7['inherit'];if(Object[_0x113396(0x188)](_0x3245cb)[_0x113396(0x16a)]>0x0)_0x474da7[_0x113396(0x182)]=_0x3245cb;if(_0x113396(0x197)in _0x3085d7)_0x474da7[_0x113396(0x197)]=_0x3085d7['defaultApp'];else{if(Object[_0x113396(0x188)](_0x599ced)[_0x113396(0x16a)]>0x0)_0x474da7[_0x113396(0x197)]=Object[_0x113396(0x188)](_0x599ced)[0x0];else{if(_0x3ecda6['defaultApp'])_0x474da7[_0x113396(0x197)]=_0x3ecda6[_0x113396(0x197)];else{const _0x1d6d1d=Object[_0x113396(0x188)](_0x51a4ce);if(_0x1d6d1d[_0x113396(0x16a)]>0x0)_0x474da7['defaultApp']=_0x1d6d1d[0x0];}}}return _0x474da7;}export function readRawConfigWithLayers(_0x157df9){const _0x17a5c7=loadRawConfigLayers(_0x157df9);return{'config':mergeRawConfigLayers(_0x17a5c7),'layers':_0x17a5c7};}function a218_0x3b0b(){const _0x5cdb4c=['env','object','format','Global','app','5320496YEioXw','\x0a\x20\x20','16RGBODh','221556ibnxJf','message','error','utf8','locale','Project','apps','migrated','string','warn','data','.lovrabet.json','keys','1300545EaXcQR','config','cookie','apiDir','trim','empty','.tmp','project','pageSize','set','cwd','appcode','6189890ftiodE','2LeHsHo','defaultApp','21880917AePeCO','silent','.lovrabetrc','.rabetbase.json','length','inherit','riskLevel','get','missing','11174868mYJmLI','status','accessKey','1561705qxKIRg','stringify'];a218_0x3b0b=function(){return _0x5cdb4c;};return a218_0x3b0b();}export function readRawConfig(_0x4b5ff2){return mergeRawConfigLayers(loadRawConfigLayers(_0x4b5ff2));}export function readConfigFile(_0x10d973){const _0x363ce6=a218_0xcb253e;return parseAndNormalizeConfig(_0x10d973,_0x363ce6(0x167));}export function writeConfigFile(_0x5aeb62,_0x2ab704){const _0x2f45a2=a218_0xcb253e,_0x2fbcdf=dirname(_0x5aeb62);!existsSync(_0x2fbcdf)&&mkdirSync(_0x2fbcdf,{'recursive':!![]});const _0x381714=_0x5aeb62+_0x2f45a2(0x18f);try{writeFileSync(_0x381714,JSON[_0x2f45a2(0x173)](_0x2ab704,null,0x2)+'\x0a',{'encoding':_0x2f45a2(0x17f),'mode':0x180}),renameSync(_0x381714,_0x5aeb62);}catch(_0x4f5bd5){try{unlinkSync(_0x381714);}catch{}throw _0x4f5bd5;}}export function resolveWriteConfigPath(_0x3fc675){const _0x3f6b63=a218_0xcb253e,_0x3f4b3a=_0x3fc675===_0x3f6b63(0x190)?process['cwd']():homedir(),_0x82a81f=resolveConfigPath(_0x3f4b3a);return _0x82a81f??resolve(_0x3f4b3a,NEW_CONFIG_NAME);}
|
|
1
|
+
const a218_0x21198e=a218_0x37a6;(function(_0x2a3b67,_0x575f4){const _0x38b944=a218_0x37a6,_0x57d568=_0x2a3b67();while(!![]){try{const _0x382513=-parseInt(_0x38b944(0x1d5))/0x1+parseInt(_0x38b944(0x1f9))/0x2+-parseInt(_0x38b944(0x1d8))/0x3*(-parseInt(_0x38b944(0x1e3))/0x4)+parseInt(_0x38b944(0x1eb))/0x5*(-parseInt(_0x38b944(0x1d9))/0x6)+parseInt(_0x38b944(0x1fe))/0x7*(parseInt(_0x38b944(0x1d4))/0x8)+-parseInt(_0x38b944(0x1e8))/0x9+parseInt(_0x38b944(0x1ec))/0xa*(parseInt(_0x38b944(0x1cb))/0xb);if(_0x382513===_0x575f4)break;else _0x57d568['push'](_0x57d568['shift']());}catch(_0x211141){_0x57d568['push'](_0x57d568['shift']());}}}(a218_0x4c46,0xd5185));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a218_0x21198e(0x1fc);export const CONFIG_NAMES=['.rabetbase.json',a218_0x21198e(0x1da),a218_0x21198e(0x1e1)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1b4af8=>_0x1b4af8!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4abeb0){for(const _0x12617f of CONFIG_NAMES){const _0x1a1d7d=resolve(_0x4abeb0,_0x12617f);if(existsSync(_0x1a1d7d))return _0x1a1d7d;}return undefined;}function a218_0x37a6(_0x1a4e5d,_0x353d87){_0x1a4e5d=_0x1a4e5d-0x1cb;const _0x4c46c9=a218_0x4c46();let _0x37a636=_0x4c46c9[_0x1a4e5d];return _0x37a636;}export function findProjectRootDirectory(_0x27a6d5=process['cwd']()){let _0x1da1c6=resolve(_0x27a6d5);const {root:_0x4f4390}=parse(_0x1da1c6),_0x15f224=homedir();while(!![]){if(resolveConfigPath(_0x1da1c6)){if(_0x1da1c6===_0x15f224)break;return _0x1da1c6;}if(_0x1da1c6===_0x4f4390||_0x1da1c6===_0x15f224)break;const _0x25e373=dirname(_0x1da1c6);if(_0x25e373===_0x1da1c6)break;_0x1da1c6=_0x25e373;}return resolve(_0x27a6d5);}export function getProjectConfigPath(){const _0xdfd459=a218_0x21198e;return resolveConfigPath(process[_0xdfd459(0x1cc)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x9fa624){const _0xb73b09=a218_0x21198e;if(!existsSync(_0x9fa624))return{'status':_0xb73b09(0x1f4)};try{const _0x523651=readFileSync(_0x9fa624,{'encoding':_0xb73b09(0x1d0)});if(!_0x523651?.[_0xb73b09(0x1fb)]())return{'status':_0xb73b09(0x1e4)};const _0x4f1248=JSON[_0xb73b09(0x1db)](_0x523651);return{'status':'ok','data':_0x4f1248};}catch(_0x1c56d8){return{'status':_0xb73b09(0x1e2),'message':_0x1c56d8 instanceof Error?_0x1c56d8[_0xb73b09(0x1e7)]:String(_0x1c56d8)};}}function parseCliConfigJsonFile(_0x2f49cd,_0x3af492,_0x4a5b32){const _0x19ac7c=a218_0x21198e,_0x395275=inspectCliConfigJsonFile(_0x2f49cd);if(_0x395275[_0x19ac7c(0x1e6)]===_0x19ac7c(0x1f4)||_0x395275[_0x19ac7c(0x1e6)]===_0x19ac7c(0x1e4))return{};if(_0x395275[_0x19ac7c(0x1e6)]==='ok')return _0x395275[_0x19ac7c(0x1df)];return _0x3af492===_0x19ac7c(0x1ce)&&_0x4a5b32&&console[_0x19ac7c(0x1e2)](CLI_BIN_NAME+':\x20'+_0x4a5b32+_0x19ac7c(0x1de)+_0x2f49cd+_0x19ac7c(0x1dc)+_0x395275[_0x19ac7c(0x1e7)]),{};}function normalizeLegacyConfigShape(_0x2ac5e2){const _0x41c6db=a218_0x21198e;if(!_0x2ac5e2||typeof _0x2ac5e2!==_0x41c6db(0x1ef))return{'config':{},'migrated':![]};const _0x25cd1c={..._0x2ac5e2},_0x5f36d5=_0x25cd1c[_0x41c6db(0x1d3)]&&typeof _0x25cd1c[_0x41c6db(0x1d3)]===_0x41c6db(0x1ef)?{..._0x25cd1c[_0x41c6db(0x1d3)]}:{},_0x40cc09=Object[_0x41c6db(0x1f3)](_0x5f36d5)[_0x41c6db(0x1e5)],_0x496221=_0x25cd1c[_0x41c6db(0x1f7)]||_0x25cd1c[_0x41c6db(0x1e9)];let _0xc20325=![];if(_0x496221&&_0x40cc09===0x0){const _0x5c06e3=typeof _0x25cd1c['defaultApp']==='string'&&_0x25cd1c[_0x41c6db(0x1e0)][_0x41c6db(0x1fb)]()?_0x25cd1c['defaultApp']:String(_0x496221)[_0x41c6db(0x1fb)]();_0x5f36d5[_0x5c06e3]={'appcode':String(_0x496221)[_0x41c6db(0x1fb)](),..._0x25cd1c[_0x41c6db(0x1f5)]!=null?{'env':_0x25cd1c[_0x41c6db(0x1f5)]}:{},..._0x25cd1c[_0x41c6db(0x1d7)]!=null?{'apiDir':_0x25cd1c[_0x41c6db(0x1d7)]}:{},..._0x25cd1c[_0x41c6db(0x1fa)]!=null?{'cookie':_0x25cd1c['cookie']}:{},..._0x25cd1c[_0x41c6db(0x1f1)]!=null?{'accessKey':_0x25cd1c[_0x41c6db(0x1f1)]}:{},..._0x25cd1c['format']!=null?{'format':_0x25cd1c[_0x41c6db(0x1f2)]}:{},..._0x25cd1c[_0x41c6db(0x1dd)]!=null?{'pageSize':_0x25cd1c[_0x41c6db(0x1dd)]}:{},..._0x25cd1c[_0x41c6db(0x1f0)]!=null?{'riskLevel':_0x25cd1c[_0x41c6db(0x1f0)]}:{},..._0x25cd1c['locale']!=null?{'locale':_0x25cd1c[_0x41c6db(0x1cd)]}:{}},_0x25cd1c['apps']=_0x5f36d5;if(!_0x25cd1c[_0x41c6db(0x1e0)])_0x25cd1c[_0x41c6db(0x1e0)]=_0x5c06e3;_0xc20325=!![];}return(_0x41c6db(0x1f7)in _0x25cd1c||_0x41c6db(0x1e9)in _0x25cd1c)&&(delete _0x25cd1c[_0x41c6db(0x1f7)],delete _0x25cd1c['app'],_0xc20325=!![]),{'config':_0x25cd1c,'migrated':_0xc20325};}function writeNormalizedConfigIfNeeded(_0xad571d,_0x44bf71){const _0x3795bb=a218_0x21198e,_0x3b6d8b=JSON['stringify'](_0x44bf71,null,0x2)+'\x0a';if(normalizedWriteCache[_0x3795bb(0x1d2)](_0xad571d)===_0x3b6d8b)return;writeConfigFile(_0xad571d,_0x44bf71),normalizedWriteCache[_0x3795bb(0x1d6)](_0xad571d,_0x3b6d8b);}function a218_0x4c46(){const _0x5e6f06=['silent','utf8','project','get','apps','9269488oqLnNJ','1181813pzkHeM','set','apiDir','1691748unhxDs','114HWjabz','.lovrabet.json','parse','\x0a\x20\x20','pageSize','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','data','defaultApp','.lovrabetrc','error','8mSAyln','empty','length','status','message','11460384ZRCLjG','app','Project','237430ONFnKf','8041450tFRbjP','config','inherit','object','riskLevel','accessKey','format','keys','missing','env','Global','appcode','migrated','2279194kqElJg','cookie','trim','.rabetbase.json','stringify','7mvyXdz','11UnIglx','cwd','locale','warn'];a218_0x4c46=function(){return _0x5e6f06;};return a218_0x4c46();}function parseAndNormalizeConfig(_0x56aa57,_0x5be29a,_0x40171a){const _0x134593=a218_0x21198e,_0x35f853=parseCliConfigJsonFile(_0x56aa57,_0x5be29a,_0x40171a),_0x18da9e=normalizeLegacyConfigShape(_0x35f853);if(_0x18da9e[_0x134593(0x1f8)])try{writeNormalizedConfigIfNeeded(_0x56aa57,_0x18da9e[_0x134593(0x1ed)]);}catch{}return _0x18da9e[_0x134593(0x1ed)];}export function loadRawConfigLayers(_0x1fdfbc){const _0x1c3644=a218_0x21198e;let _0x1e41fc={},_0x28eab2={};const _0x303113=resolveConfigPath(homedir());_0x303113&&(_0x1e41fc=parseAndNormalizeConfig(_0x303113,_0x1c3644(0x1ce),_0x1c3644(0x1f6)));const _0x27c674=_0x1fdfbc??findProjectRootDirectory(),_0xad665e=resolveConfigPath(_0x27c674);return _0xad665e&&(_0x28eab2=parseAndNormalizeConfig(_0xad665e,_0x1c3644(0x1ce),_0x1c3644(0x1ea))),{'globalPath':_0x303113,'projectPath':_0xad665e,'globalConfig':_0x1e41fc,'projectConfig':_0x28eab2};}const INHERIT_WHITELIST=[a218_0x21198e(0x1fa),a218_0x21198e(0x1f1),'locale',a218_0x21198e(0x1f2),a218_0x21198e(0x1f0),a218_0x21198e(0x1dd)];export function mergeRawConfigLayers(_0x4bcc61){const _0x3e17d2=a218_0x21198e,{globalConfig:_0x3c1a6a,projectConfig:_0x37797f}=_0x4bcc61,_0x363d55=Object[_0x3e17d2(0x1f3)](_0x37797f)[_0x3e17d2(0x1e5)]>0x0;if(!_0x363d55)return mergeGlobalOnly(_0x3c1a6a);if(_0x37797f[_0x3e17d2(0x1ee)]===!![])return mergeFullInherit(_0x3c1a6a,_0x37797f);if(_0x37797f[_0x3e17d2(0x1ee)]===![])return mergeIsolated(_0x37797f);return mergeProjectFirst(_0x3c1a6a,_0x37797f);}function mergeGlobalOnly(_0x14bdd7){const _0x53bc1c=a218_0x21198e,_0x448d90={..._0x14bdd7},_0x591c21=_0x14bdd7[_0x53bc1c(0x1d3)]&&typeof _0x14bdd7[_0x53bc1c(0x1d3)]===_0x53bc1c(0x1ef)?_0x14bdd7[_0x53bc1c(0x1d3)]:{};if(Object[_0x53bc1c(0x1f3)](_0x591c21)[_0x53bc1c(0x1e5)]>0x0)_0x448d90[_0x53bc1c(0x1d3)]=_0x591c21;if(_0x14bdd7[_0x53bc1c(0x1e0)])_0x448d90[_0x53bc1c(0x1e0)]=_0x14bdd7[_0x53bc1c(0x1e0)];else{const _0x35e291=Object[_0x53bc1c(0x1f3)](_0x591c21);if(_0x35e291[_0x53bc1c(0x1e5)]>0x0)_0x448d90[_0x53bc1c(0x1e0)]=_0x35e291[0x0];}return _0x448d90;}function mergeIsolated(_0x1f5265){const _0x267eba=a218_0x21198e,_0x5bf6de={..._0x1f5265};delete _0x5bf6de['inherit'];const _0x4351bc=_0x1f5265[_0x267eba(0x1d3)]&&typeof _0x1f5265[_0x267eba(0x1d3)]===_0x267eba(0x1ef)?_0x1f5265['apps']:{};Object[_0x267eba(0x1f3)](_0x4351bc)[_0x267eba(0x1e5)]>0x0?_0x5bf6de[_0x267eba(0x1d3)]=_0x4351bc:delete _0x5bf6de[_0x267eba(0x1d3)];if(_0x267eba(0x1e0)in _0x1f5265)_0x5bf6de['defaultApp']=_0x1f5265[_0x267eba(0x1e0)];else Object['keys'](_0x4351bc)[_0x267eba(0x1e5)]>0x0?_0x5bf6de['defaultApp']=Object[_0x267eba(0x1f3)](_0x4351bc)[0x0]:delete _0x5bf6de[_0x267eba(0x1e0)];return _0x5bf6de;}function mergeProjectFirst(_0x4d4a16,_0x1036f1){const _0x2b04a0=a218_0x21198e,_0x4cb5d9={..._0x1036f1};delete _0x4cb5d9[_0x2b04a0(0x1ee)];for(const _0x392f96 of INHERIT_WHITELIST){!(_0x392f96 in _0x4cb5d9)&&_0x392f96 in _0x4d4a16&&(_0x4cb5d9[_0x392f96]=_0x4d4a16[_0x392f96]);}const _0x4e6050=_0x1036f1[_0x2b04a0(0x1d3)]&&typeof _0x1036f1[_0x2b04a0(0x1d3)]===_0x2b04a0(0x1ef)?_0x1036f1[_0x2b04a0(0x1d3)]:{};Object['keys'](_0x4e6050)['length']>0x0?_0x4cb5d9[_0x2b04a0(0x1d3)]=_0x4e6050:delete _0x4cb5d9[_0x2b04a0(0x1d3)];if('defaultApp'in _0x1036f1)_0x4cb5d9[_0x2b04a0(0x1e0)]=_0x1036f1[_0x2b04a0(0x1e0)];else Object[_0x2b04a0(0x1f3)](_0x4e6050)[_0x2b04a0(0x1e5)]>0x0?_0x4cb5d9['defaultApp']=Object[_0x2b04a0(0x1f3)](_0x4e6050)[0x0]:delete _0x4cb5d9[_0x2b04a0(0x1e0)];return _0x4cb5d9;}function mergeFullInherit(_0x197d79,_0x51e44d){const _0x2ef898=a218_0x21198e,_0x11f68f=_0x197d79[_0x2ef898(0x1d3)]&&typeof _0x197d79[_0x2ef898(0x1d3)]===_0x2ef898(0x1ef)?_0x197d79['apps']:{},_0x1c4042=_0x51e44d[_0x2ef898(0x1d3)]&&typeof _0x51e44d['apps']==='object'?_0x51e44d['apps']:{},_0x568081={..._0x11f68f,..._0x1c4042},_0x14a2c6={..._0x197d79,..._0x51e44d};delete _0x14a2c6[_0x2ef898(0x1ee)];if(Object[_0x2ef898(0x1f3)](_0x568081)['length']>0x0)_0x14a2c6[_0x2ef898(0x1d3)]=_0x568081;if(_0x2ef898(0x1e0)in _0x51e44d)_0x14a2c6[_0x2ef898(0x1e0)]=_0x51e44d['defaultApp'];else{if(Object['keys'](_0x1c4042)['length']>0x0)_0x14a2c6[_0x2ef898(0x1e0)]=Object[_0x2ef898(0x1f3)](_0x1c4042)[0x0];else{if(_0x197d79[_0x2ef898(0x1e0)])_0x14a2c6[_0x2ef898(0x1e0)]=_0x197d79[_0x2ef898(0x1e0)];else{const _0xd5d41f=Object[_0x2ef898(0x1f3)](_0x11f68f);if(_0xd5d41f[_0x2ef898(0x1e5)]>0x0)_0x14a2c6[_0x2ef898(0x1e0)]=_0xd5d41f[0x0];}}}return _0x14a2c6;}export function readRawConfigWithLayers(_0x3d8b7a){const _0xfd13ec=loadRawConfigLayers(_0x3d8b7a);return{'config':mergeRawConfigLayers(_0xfd13ec),'layers':_0xfd13ec};}export function readRawConfig(_0x4f4334){return mergeRawConfigLayers(loadRawConfigLayers(_0x4f4334));}export function readConfigFile(_0x5aee41){const _0x150c26=a218_0x21198e;return parseAndNormalizeConfig(_0x5aee41,_0x150c26(0x1cf));}export function writeConfigFile(_0x4227c5,_0x3e61f0){const _0x4f05d4=a218_0x21198e,_0x53aa55=dirname(_0x4227c5);!existsSync(_0x53aa55)&&mkdirSync(_0x53aa55,{'recursive':!![]});const _0x4e2b0a=_0x4227c5+'.tmp';try{writeFileSync(_0x4e2b0a,JSON[_0x4f05d4(0x1fd)](_0x3e61f0,null,0x2)+'\x0a',{'encoding':_0x4f05d4(0x1d0),'mode':0x180}),renameSync(_0x4e2b0a,_0x4227c5);}catch(_0x77f73d){try{unlinkSync(_0x4e2b0a);}catch{}throw _0x77f73d;}}export function resolveWriteConfigPath(_0x20215a){const _0x535d77=a218_0x21198e,_0x4ddc7c=_0x20215a===_0x535d77(0x1d1)?process['cwd']():homedir(),_0x16a775=resolveConfigPath(_0x4ddc7c);return _0x16a775??resolve(_0x4ddc7c,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a219_0x18e7(){const _0x2ec490=['string','object','template_base_url','raw','12566ObRoex','runtimeDomain','53419959fJZyLQ','./constant/env.js','projectConfig','appcode','1970270xXEkTM','237dfncLz','4486223RlBzFg','values','find','16BrkTzr','defaultApp','map','-api.ts','length','apps','1337049nWJGjO','apiDir','merged','argv','api.ts','keys','apiDomain','slice','./constant/domain.js','trim','./utils/is-non-interactive.js','env','7421862QrQPsT','project','userDomain','cwd','replace','entries','cookie','filter','globalConfig','469768BuRBXx'];a219_0x18e7=function(){return _0x2ec490;};return a219_0x18e7();}const a219_0xbd751e=a219_0x2ac6;(function(_0x195b7a,_0x298c8f){const _0x488cb3=a219_0x2ac6,_0x917602=_0x195b7a();while(!![]){try{const _0x2abe4b=-parseInt(_0x488cb3(0x112))/0x1*(parseInt(_0x488cb3(0x136))/0x2)+-parseInt(_0x488cb3(0x11c))/0x3+-parseInt(_0x488cb3(0x131))/0x4+-parseInt(_0x488cb3(0x111))/0x5+-parseInt(_0x488cb3(0x128))/0x6+-parseInt(_0x488cb3(0x113))/0x7*(parseInt(_0x488cb3(0x116))/0x8)+parseInt(_0x488cb3(0x10d))/0x9;if(_0x2abe4b===_0x298c8f)break;else _0x917602['push'](_0x917602['shift']());}catch(_0x218204){_0x917602['push'](_0x917602['shift']());}}}(a219_0x18e7,0xecf32));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x8bb444){return process.env[`RABETBASE_${_0x8bb444}`]||process.env[`LOVRABET_${_0x8bb444}`]||undefined;}function optionalString(_0xf5e722){const _0x26afcf=a219_0x2ac6;return typeof _0xf5e722===_0x26afcf(0x132)&&_0xf5e722[_0x26afcf(0x125)]()?_0xf5e722[_0x26afcf(0x125)]():undefined;}function a219_0x2ac6(_0x350c40,_0x1b400f){_0x350c40=_0x350c40-0x10d;const _0x18e71e=a219_0x18e7();let _0x2ac66d=_0x18e71e[_0x350c40];return _0x2ac66d;}export async function createContext(_0x225484){const _0x26700b=a219_0x2ac6,{config:_0x471b60,layers:_0x2ab501}=readRawConfigWithLayers(),_0x4404ff=buildConfig(_0x471b60,_0x225484,_0x2ab501);await initGlobalEnvironment(_0x4404ff);const {getUserDomain:_0x264200,getApiDomain:_0x5ccc6f}=await import(_0x26700b(0x124)),_0x1a7ef7={'apiDomain':_0x5ccc6f(),'userDomain':_0x264200()},_0x2f13a3=await buildAuth(_0x4404ff);logger['setLogPath'](process[_0x26700b(0x12b)]());const _0x40dec3=(CLI_BIN_NAME+'\x20'+process[_0x26700b(0x11f)][_0x26700b(0x123)](0x2)['join']('\x20'))[_0x26700b(0x125)]();logger['setRawCommand'](_0x40dec3);const {isNonInteractive:_0x585a38}=await import(_0x26700b(0x126)),_0x43f6e9=_0x585a38(_0x225484);return{'config':_0x4404ff,'auth':_0x2f13a3,'logger':logger,'env':_0x1a7ef7,'nonInteractive':_0x43f6e9};}export function buildConfigFromFlags(_0xca1136){const {config:_0x1e4eee,layers:_0x4fc8ce}=readRawConfigWithLayers();return buildConfig(_0x1e4eee,_0xca1136,_0x4fc8ce);}export async function initGlobalEnvironment(_0x32ca8c){const _0x562d61=a219_0x2ac6,{initEnv:_0x3eae91}=await import(_0x562d61(0x10e));_0x3eae91(_0x32ca8c['env']);const {initDomains:_0x1795cf}=await import(_0x562d61(0x124));_0x1795cf({'apiDomain':optionalString(_0x32ca8c['raw']?.[_0x562d61(0x122)]),'userDomain':optionalString(_0x32ca8c[_0x562d61(0x135)]?.[_0x562d61(0x12a)]),'runtimeDomain':optionalString(_0x32ca8c['raw']?.[_0x562d61(0x137)])});}export function getConfigAppCode(_0x34e1e2){const _0x1e08a3=a219_0x2ac6,_0x2e9357=readRawConfig(_0x34e1e2);if(_0x2e9357[_0x1e08a3(0x11b)]&&typeof _0x2e9357['apps']===_0x1e08a3(0x133)){const _0x667c46=_0x2e9357[_0x1e08a3(0x117)];if(_0x667c46&&_0x2e9357[_0x1e08a3(0x11b)][_0x667c46]?.[_0x1e08a3(0x110)])return String(_0x2e9357[_0x1e08a3(0x11b)][_0x667c46][_0x1e08a3(0x110)])[_0x1e08a3(0x125)]();const _0xf5c606=Object[_0x1e08a3(0x114)](_0x2e9357['apps'])[0x0];if(_0xf5c606?.[_0x1e08a3(0x110)])return String(_0xf5c606[_0x1e08a3(0x110)])[_0x1e08a3(0x125)]();}const _0x1cfe9f=_0x2e9357[_0x1e08a3(0x110)]||_0x2e9357['app'];if(typeof _0x1cfe9f!==_0x1e08a3(0x132)||_0x1cfe9f[_0x1e08a3(0x125)]()==='')return undefined;return _0x1cfe9f['trim']();}export function getMultiAppConfigs(_0x3db71c=a219_0xbd751e(0x129),_0x53a197){const _0x43f5a5=a219_0xbd751e,_0x25e7e0=loadRawConfigLayers(_0x53a197);let _0xdc8bdb,_0x24c1f7;if(_0x3db71c===_0x43f5a5(0x11e)){const _0x57b370=_0x25e7e0[_0x43f5a5(0x130)][_0x43f5a5(0x11b)]&&typeof _0x25e7e0[_0x43f5a5(0x130)][_0x43f5a5(0x11b)]===_0x43f5a5(0x133)?_0x25e7e0[_0x43f5a5(0x130)]['apps']:{},_0x3367b9=_0x25e7e0['projectConfig'][_0x43f5a5(0x11b)]&&typeof _0x25e7e0['projectConfig']['apps']==='object'?_0x25e7e0[_0x43f5a5(0x10f)][_0x43f5a5(0x11b)]:{};_0xdc8bdb={..._0x57b370,..._0x3367b9};const _0xb5adc=readRawConfig(_0x53a197);_0x24c1f7=_0xb5adc['defaultApp'];}else _0xdc8bdb=_0x25e7e0[_0x43f5a5(0x10f)][_0x43f5a5(0x11b)],_0x24c1f7=_0x25e7e0[_0x43f5a5(0x10f)][_0x43f5a5(0x117)];if(!_0xdc8bdb||typeof _0xdc8bdb!==_0x43f5a5(0x133)||Object[_0x43f5a5(0x121)](_0xdc8bdb)[_0x43f5a5(0x11a)]===0x0)return null;return Object[_0x43f5a5(0x12d)](_0xdc8bdb)[_0x43f5a5(0x118)](([_0x3ba6be,_0x27881a])=>({'name':_0x3ba6be,'appcode':_0x27881a?.['appcode']||'','isDefault':_0x3ba6be===_0x24c1f7,'env':_0x27881a?.[_0x43f5a5(0x127)],'apiDir':_0x27881a?.[_0x43f5a5(0x11d)],'cookie':_0x27881a?.[_0x43f5a5(0x12e)]||undefined}))[_0x43f5a5(0x12f)](_0x5b4b7e=>_0x5b4b7e[_0x43f5a5(0x110)]);}export function getTemplateBaseUrl(_0x30f1bd){const _0x2245cd=a219_0xbd751e,_0x546e78=readRawConfig(_0x30f1bd);if(_0x546e78['template_base_url']&&typeof _0x546e78[_0x2245cd(0x134)]===_0x2245cd(0x132))return _0x546e78[_0x2245cd(0x134)][_0x2245cd(0x12c)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x2d431e,_0x5011b6,_0x36387e){return{...resolveAppConfig({'raw':_0x2d431e,'flags':_0x5011b6,'layers':_0x36387e,'readEnv':env}),'raw':_0x2d431e};}export function resolveApiFilePath(_0x4faba7,_0xdf78d5){const _0x31e1c8=a219_0xbd751e,_0x1bc461=resolve(process[_0x31e1c8(0x12b)](),_0x4faba7),_0xff1909=resolve(_0x1bc461,_0x31e1c8(0x120));if(!_0xdf78d5)return _0xff1909;const _0x27d224=readRawConfig(),_0x45d077=_0x27d224['apps']&&typeof _0x27d224[_0x31e1c8(0x11b)]===_0x31e1c8(0x133)?_0x27d224[_0x31e1c8(0x11b)]:{},_0x42ea74=Object[_0x31e1c8(0x12d)](_0x45d077)[_0x31e1c8(0x115)](([,_0x38f2a5])=>_0x38f2a5?.[_0x31e1c8(0x110)]===_0xdf78d5);if(!_0x42ea74)return _0xff1909;const [_0x374802,_0x4e423c]=_0x42ea74,_0x45bb84=typeof _0x27d224[_0x31e1c8(0x117)]===_0x31e1c8(0x132)?_0x27d224[_0x31e1c8(0x117)]:undefined;if(_0x4e423c?.[_0x31e1c8(0x11d)])return _0xff1909;if(_0x45bb84&&_0x374802!==_0x45bb84)return resolve(_0x1bc461,_0x374802+_0x31e1c8(0x119));return _0xff1909;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c1506,_0x3cc5e3){const _0x4506e2=a220_0x4ee3,_0x1f6ca8=_0x3c1506();while(!![]){try{const _0x35b5d5=-parseInt(_0x4506e2(0x167))/0x1*(parseInt(_0x4506e2(0x16e))/0x2)+parseInt(_0x4506e2(0x169))/0x3+-parseInt(_0x4506e2(0x165))/0x4*(-parseInt(_0x4506e2(0x168))/0x5)+-parseInt(_0x4506e2(0x164))/0x6*(parseInt(_0x4506e2(0x161))/0x7)+-parseInt(_0x4506e2(0x16d))/0x8+parseInt(_0x4506e2(0x160))/0x9+-parseInt(_0x4506e2(0x16b))/0xa;if(_0x35b5d5===_0x3cc5e3)break;else _0x1f6ca8['push'](_0x1f6ca8['shift']());}catch(_0x4ec945){_0x1f6ca8['push'](_0x1f6ca8['shift']());}}}(a220_0x55e2,0xc13cd));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a220_0x55e2(){const _0x1f9b5f=['alias','6jOvtwa','174376iNPKFe','api.ts','223YrqLff','155QfCyQw','2086284qbwHsI','set','3145900QQTHso','get','5958536YHZMBw','8368UOMqNZ','cwd','push','11348847FnPHha','3667195aBNqFV','datasetCode'];a220_0x55e2=function(){return _0x1f9b5f;};return a220_0x55e2();}const cache=new Map();function parseApiFile(_0x70d9a3){const _0x1a1dc6=a220_0x4ee3,_0xc3288e=[],_0x4713cd=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x13992c;while((_0x13992c=_0x4713cd['exec'](_0x70d9a3))!==null){_0xc3288e[_0x1a1dc6(0x170)]({'datasetCode':_0x13992c[0x1],'tableName':_0x13992c[0x2],'name':_0x13992c[0x3],'alias':_0x13992c[0x4]});}return _0xc3288e;}export function loadAliasMap(_0x4d5f57,_0x185334,_0x41c033){const _0x41a62d=a220_0x4ee3,_0x1954aa=_0x41c033??resolve(process[_0x41a62d(0x16f)](),_0x4d5f57,_0x41a62d(0x166));if(cache['has'](_0x1954aa))return cache[_0x41a62d(0x16c)](_0x1954aa);if(!existsSync(_0x1954aa))return cache[_0x41a62d(0x16a)](_0x1954aa,[]),[];try{const _0x2fdfae=readFileSync(_0x1954aa,'utf-8'),_0x484e12=parseApiFile(_0x2fdfae);return cache[_0x41a62d(0x16a)](_0x1954aa,_0x484e12),_0x484e12;}catch{return cache['set'](_0x1954aa,[]),[];}}export function resolveAlias(_0x4620e3,_0x4ee618,_0x31d902,_0x542364){const _0x427c3e=a220_0x4ee3;if(!_0x4ee618)return undefined;const _0x42e260=loadAliasMap(_0x4620e3,_0x31d902,_0x542364),_0x2eb6ba=_0x42e260['find'](_0x371ae4=>_0x371ae4[_0x427c3e(0x163)]===_0x4ee618);return _0x2eb6ba?.[_0x427c3e(0x162)];}function a220_0x4ee3(_0x10afb0,_0x55ee40){_0x10afb0=_0x10afb0-0x160;const _0x55e2ac=a220_0x55e2();let _0x4ee397=_0x55e2ac[_0x10afb0];return _0x4ee397;}export function listAliases(_0x1fa27c,_0x10bd5d,_0x3bc67b){return loadAliasMap(_0x1fa27c,_0x10bd5d,_0x3bc67b);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -270,7 +270,7 @@ export interface BffSaveResult {
|
|
|
270
270
|
message?: string;
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
* Normalized save result for
|
|
273
|
+
* Normalized save result for Backend Function script mutations.
|
|
274
274
|
*
|
|
275
275
|
* Why:
|
|
276
276
|
* the backend is in a compatibility window where `/scripts/save` may return
|