@lovrabet/rabetbase-cli 2.4.5 → 2.4.6-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 +3 -2
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +8 -7
- 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/types.d.ts +17 -2
- 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/{page/standard-page-status.d.ts → menu/visibility-update.d.ts} +1 -1
- package/lib/commands/menu/visibility-update.js +1 -0
- 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.d.ts +2 -0
- package/lib/commands/page/create.js +1 -0
- package/lib/commands/page/{react → custom}/detail.d.ts +1 -1
- package/lib/commands/page/custom/detail.js +1 -0
- package/lib/commands/page/{react → custom}/list.d.ts +1 -1
- package/lib/commands/page/custom/list.js +1 -0
- package/lib/commands/page/{react → custom}/publish.d.ts +1 -1
- package/lib/commands/page/custom/publish.js +1 -0
- package/lib/commands/page/{react → custom}/shared.d.ts +15 -15
- package/lib/commands/page/custom/shared.js +1 -0
- package/lib/commands/page/{react → custom}/syntax.d.ts +2 -2
- package/lib/commands/page/custom/syntax.js +1 -0
- package/lib/commands/page/custom/template.js +1 -0
- package/lib/commands/page/{react → custom}/update.d.ts +1 -1
- package/lib/commands/page/custom/update.js +1 -0
- package/lib/commands/page/data-list-status.d.ts +2 -0
- package/lib/commands/page/data-list-status.js +1 -0
- 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.d.ts +18 -18
- 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 +43 -43
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.d.ts +3 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +35 -34
- package/skills/rabetbase/guides/backend-function.md +63 -18
- package/skills/rabetbase/guides/bff-creation-workflow.md +2 -0
- package/skills/rabetbase/guides/{react-custom-page-workflow.md → custom-page-workflow.md} +45 -45
- package/skills/rabetbase/guides/page-development-workflow.md +22 -22
- package/skills/rabetbase/knowledge/{react-page → custom-page}/components.md +2 -2
- package/skills/rabetbase/knowledge/{react-page → custom-page}/generation-standards.md +6 -6
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +6 -6
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-create.md +2 -0
- package/skills/rabetbase/references/{rabetbase-standard-page-status.md → rabetbase-data-list-status.md} +6 -6
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-relations.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-restore.md +1 -1
- package/skills/rabetbase/references/rabetbase-menu-list.md +4 -2
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
- package/skills/rabetbase/references/rabetbase-page-create.md +31 -0
- package/skills/rabetbase/references/{rabetbase-page-react-detail.md → rabetbase-page-custom-detail.md} +5 -5
- package/skills/rabetbase/references/{rabetbase-page-react-list.md → rabetbase-page-custom-list.md} +4 -4
- package/skills/rabetbase/references/{rabetbase-page-react-publish.md → rabetbase-page-custom-publish.md} +6 -6
- package/skills/rabetbase/references/{rabetbase-page-react-update.md → rabetbase-page-custom-update.md} +6 -6
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -4
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +4 -4
- package/skills/rabetbase/references/rabetbase-page-pull.md +2 -2
- package/skills/rabetbase/references/rabetbase-page-relation-binding.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-restore.md +7 -7
- package/skills/rabetbase/references/rabetbase-page-sync.md +3 -3
- package/skills/rabetbase.manifest.json +13 -12
- package/lib/commands/page/react/create.d.ts +0 -2
- package/lib/commands/page/react/create.js +0 -1
- package/lib/commands/page/react/detail.js +0 -1
- package/lib/commands/page/react/list.js +0 -1
- package/lib/commands/page/react/publish.js +0 -1
- package/lib/commands/page/react/shared.js +0 -1
- package/lib/commands/page/react/syntax.js +0 -1
- package/lib/commands/page/react/template.js +0 -1
- package/lib/commands/page/react/update.js +0 -1
- package/lib/commands/page/standard-page-status.js +0 -1
- package/skills/rabetbase/references/rabetbase-page-react-create.md +0 -29
- /package/lib/commands/page/{react → custom}/template.d.ts +0 -0
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a206_0x2d4e1a=a206_0x5270;(function(_0x36c9e4,_0x2bc244){const _0x330a9a=a206_0x5270,_0x35fa0c=_0x36c9e4();while(!![]){try{const _0xf33f6f=parseInt(_0x330a9a(0xa6))/0x1+-parseInt(_0x330a9a(0xba))/0x2*(-parseInt(_0x330a9a(0xc0))/0x3)+parseInt(_0x330a9a(0xc1))/0x4*(-parseInt(_0x330a9a(0xb2))/0x5)+-parseInt(_0x330a9a(0xa3))/0x6*(-parseInt(_0x330a9a(0xaf))/0x7)+parseInt(_0x330a9a(0xab))/0x8+-parseInt(_0x330a9a(0xbd))/0x9+parseInt(_0x330a9a(0x9c))/0xa;if(_0xf33f6f===_0x2bc244)break;else _0x35fa0c['push'](_0x35fa0c['shift']());}catch(_0x5893a3){_0x35fa0c['push'](_0x35fa0c['shift']());}}}(a206_0x419f,0xb1293));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=[a206_0x2d4e1a(0x9e),a206_0x2d4e1a(0x9d),a206_0x2d4e1a(0xb7),'format',a206_0x2d4e1a(0xa2)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a206_0x2d4e1a(0xa4),a206_0x2d4e1a(0xc3),a206_0x2d4e1a(0xb7),a206_0x2d4e1a(0xae),a206_0x2d4e1a(0x9e),a206_0x2d4e1a(0x9d),a206_0x2d4e1a(0xc4)]);function a206_0x419f(){const _0x1b1b5d=['Risk\x20level','1220610CbDLjo','defaultApp','app','string','Default\x20page\x20size','1476072XdSiwS','zh-CN','Access\x20key','format','119ntgkgY','map','number','2915MRtvAR','defaultFormat','length','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','filter','locale','pageSize','Target\x20environment','526GKOCDU','en-US','toLowerCase','10379385Ccyeqz','Auth\x20cookie','inherit','5595SDgMhk','8004SwzyzM','apps','env','apiDir','join','3757900gyTSgK','accessKey','cookie','API\x20directory\x20path','Config\x20key\x20(','trim','riskLevel','273210AUKBpz','appcode'];a206_0x419f=function(){return _0x1b1b5d;};return a206_0x419f();}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x342c0c){const _0x2dce00=a206_0x2d4e1a;return[..._0x342c0c][_0x2dce00(0xc5)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1cf22a){return TOP_LEVEL_CONFIG_KEYS['has'](_0x1cf22a);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3e0f25=a206_0x2d4e1a;return _0x3e0f25(0xa0)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a206_0x2d4e1a(0xc4),'cookie':a206_0x2d4e1a(0x9e),'accessKey':a206_0x2d4e1a(0x9d),'defaultFormat':'format','pageSize':a206_0x2d4e1a(0xb8),'riskLevel':'riskLevel','locale':a206_0x2d4e1a(0xb7)};export function getAppProfileFlagDefs(){const _0x5ef908=a206_0x2d4e1a;return[{'name':_0x5ef908(0xc3),'type':'string','description':_0x5ef908(0xb9),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5ef908(0xc4),'type':_0x5ef908(0xa9),'description':_0x5ef908(0x9f)},{'name':'cookie','type':_0x5ef908(0xa9),'description':_0x5ef908(0xbe),'hidden':!![]},{'name':_0x5ef908(0x9d),'type':_0x5ef908(0xa9),'description':_0x5ef908(0xad),'hidden':!![]},{'name':_0x5ef908(0xb3),'type':'string','description':_0x5ef908(0xb5),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x5ef908(0xb1),'description':_0x5ef908(0xaa)},{'name':'riskLevel','type':_0x5ef908(0xa9),'description':_0x5ef908(0xa5),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x5ef908(0xb7),'type':_0x5ef908(0xa9),'description':'Locale'}];}export function collectAppProfileOverrides(_0x1fa1fe){const _0x360b66=a206_0x2d4e1a,_0x250502={};for(const [_0x27f2bd,_0x3c171e]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x575a10=_0x1fa1fe(_0x27f2bd);if(!_0x575a10)continue;_0x250502[_0x3c171e]=_0x3c171e===_0x360b66(0xb8)?Number(_0x575a10):_0x575a10;}return _0x250502;}export function buildAppProfileListFields(_0x21bd5a){const _0x2ce8aa=a206_0x2d4e1a;return{'env':_0x21bd5a[_0x2ce8aa(0xc3)]??null,'apiDir':_0x21bd5a[_0x2ce8aa(0xc4)]??null,'hasCookie':!!_0x21bd5a[_0x2ce8aa(0x9e)],'hasAccessKey':!!_0x21bd5a['accessKey'],'format':_0x21bd5a['format']??null,'pageSize':_0x21bd5a['pageSize']??null,'riskLevel':_0x21bd5a[_0x2ce8aa(0xa2)]??null,'locale':_0x21bd5a['locale']??null};}export function buildAppDoctorFields(_0x232eb0,_0x2d67b4){const _0x4cd897=a206_0x2d4e1a;return{'env':{'value':_0x232eb0['env']||_0x2d67b4[_0x4cd897(0xc3)],'source':_0x232eb0[_0x4cd897(0xc3)]?_0x4cd897(0xa8):'inherit'},'apiDir':{'value':_0x232eb0['apiDir']||_0x2d67b4[_0x4cd897(0xc4)],'source':_0x232eb0[_0x4cd897(0xc4)]?_0x4cd897(0xa8):'inherit'},'cookie':{'value':_0x232eb0[_0x4cd897(0x9e)]||_0x2d67b4[_0x4cd897(0x9e)],'source':_0x232eb0[_0x4cd897(0x9e)]?_0x4cd897(0xa8):'inherit'},'accessKey':{'value':_0x232eb0[_0x4cd897(0x9d)]||_0x2d67b4[_0x4cd897(0x9d)],'source':_0x232eb0[_0x4cd897(0x9d)]?_0x4cd897(0xa8):_0x4cd897(0xbf)}};}export function buildCanonicalAppConfig(_0x46cf0d,_0x5b722b){const _0xd2b486=a206_0x2d4e1a,_0x2360e2=_0x46cf0d[_0xd2b486(0xb0)](_0x4e4c8c=>String(_0x4e4c8c||'')[_0xd2b486(0xa1)]())[_0xd2b486(0xb6)](Boolean);if(_0x2360e2[_0xd2b486(0xb4)]===0x0)return{};const _0x1d5216={};for(const _0xca3ee8 of _0x2360e2){_0x1d5216[_0xca3ee8]=_0x5b722b?{'appcode':_0xca3ee8,'env':_0x5b722b}:{'appcode':_0xca3ee8};}return{'apps':_0x1d5216,'defaultApp':_0x2360e2[0x0]};}export function buildCanonicalProjectConfig(_0x1daa14,_0x49ecaa){const _0x51dee7=a206_0x2d4e1a,{appCodes:appCodes=[],env:_0x1b0272,metadata:_0x3db2e9}=_0x49ecaa,_0x434b7f={..._0x1daa14,..._0x3db2e9||{}};delete _0x434b7f[_0x51dee7(0xa4)],delete _0x434b7f[_0x51dee7(0xa8)];if(_0x1b0272)_0x434b7f[_0x51dee7(0xc3)]=_0x1b0272;else!_0x434b7f[_0x51dee7(0xc3)]&&(_0x434b7f[_0x51dee7(0xc3)]=DEFAULT_CONFIG_VALUES['env']);const _0x49e471=buildCanonicalAppConfig(appCodes,_0x434b7f['env']);return Object['keys'](_0x49e471)[_0x51dee7(0xb4)]>0x0&&(_0x434b7f[_0x51dee7(0xc2)]=_0x49e471[_0x51dee7(0xc2)],_0x434b7f['defaultApp']=_0x49e471[_0x51dee7(0xa7)]),_0x434b7f;}function a206_0x5270(_0x12efd6,_0x533b13){_0x12efd6=_0x12efd6-0x9c;const _0x419f9e=a206_0x419f();let _0x527053=_0x419f9e[_0x12efd6];return _0x527053;}const LOCALE_MAP={'zh':a206_0x2d4e1a(0xac),'zh-cn':a206_0x2d4e1a(0xac),'zh_cn':'zh-CN','en':'en-US','en-us':a206_0x2d4e1a(0xbb),'en_us':a206_0x2d4e1a(0xbb)};export function normalizeLocale(_0x3fc641){const _0x42015b=a206_0x2d4e1a;if(!_0x3fc641)return null;return LOCALE_MAP[_0x3fc641[_0x42015b(0xbc)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a207_0x598a(){const _0x4072cf=['/config/index.json','6860880WxcSdi','36xLRLrx','2002288LnIBlb','66012hIhKAf','110043pqeQlZ','6IUXApr','https://g.lovrabet.com/dist/rabetbase-cli','547220JMRoGG','680714KsvzXU','/templates/projects','2499182zNTuvs'];a207_0x598a=function(){return _0x4072cf;};return a207_0x598a();}function a207_0x3985(_0x2e9ceb,_0x2a914f){_0x2e9ceb=_0x2e9ceb-0x1c0;const _0x598aad=a207_0x598a();let _0x398584=_0x598aad[_0x2e9ceb];return _0x398584;}const a207_0x3658f0=a207_0x3985;(function(_0xd62081,_0x36dc36){const _0x2d06e1=a207_0x3985,_0x4cbe81=_0xd62081();while(!![]){try{const _0x287c83=-parseInt(_0x2d06e1(0x1ca))/0x1+-parseInt(_0x2d06e1(0x1c3))/0x2+parseInt(_0x2d06e1(0x1cb))/0x3*(parseInt(_0x2d06e1(0x1c8))/0x4)+parseInt(_0x2d06e1(0x1c2))/0x5+parseInt(_0x2d06e1(0x1c0))/0x6*(-parseInt(_0x2d06e1(0x1c5))/0x7)+-parseInt(_0x2d06e1(0x1c9))/0x8+parseInt(_0x2d06e1(0x1c7))/0x9;if(_0x287c83===_0x36dc36)break;else _0x4cbe81['push'](_0x4cbe81['shift']());}catch(_0x5942ba){_0x4cbe81['push'](_0x4cbe81['shift']());}}}(a207_0x598a,0x2df34));export const RABETBASE_CDN_BASE_URL=a207_0x3658f0(0x1c1);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a207_0x3658f0(0x1c6);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a207_0x3658f0(0x1c4);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a207_0x3ba76c=a207_0x772d;(function(_0x11fb30,_0x595379){const _0x12d4a8=a207_0x772d,_0x4f227f=_0x11fb30();while(!![]){try{const _0x39bed9=parseInt(_0x12d4a8(0x19e))/0x1+parseInt(_0x12d4a8(0x1c3))/0x2*(-parseInt(_0x12d4a8(0x20a))/0x3)+-parseInt(_0x12d4a8(0x1fc))/0x4+-parseInt(_0x12d4a8(0x1be))/0x5+-parseInt(_0x12d4a8(0x1cc))/0x6+parseInt(_0x12d4a8(0x1a6))/0x7*(parseInt(_0x12d4a8(0x1e6))/0x8)+-parseInt(_0x12d4a8(0x19f))/0x9*(-parseInt(_0x12d4a8(0x200))/0xa);if(_0x39bed9===_0x595379)break;else _0x4f227f['push'](_0x4f227f['shift']());}catch(_0x48c832){_0x4f227f['push'](_0x4f227f['shift']());}}}(a207_0x428a,0x5f1f2));export const CLI_BIN_NAME=a207_0x3ba76c(0x1b9);function a207_0x772d(_0x463470,_0x3ad230){_0x463470=_0x463470-0x19b;const _0x428a6b=a207_0x428a();let _0x772d8e=_0x428a6b[_0x463470];return _0x772d8e;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a207_0x3ba76c(0x1c7);function a207_0x428a(){const _0x407b99=['expectPath','Override\x20appcode','sort','Clear','clear','confirm','Use\x20global\x20config\x20scope','enable-bff-save','db-id','JSON\x20params','fromEnv','Show\x20help','Description','Expected\x20current\x20child\x20count','force','help','Skip\x20confirmation\x20for\x20high-risk\x20writes','<name>','rabetbase','page','Environment','Confirm\x20destructive\x20action','name','1103210SKxTiy','Type\x20filter','format','stdin','function-node','78lTlXNT','Force\x20overwrite','reveal','Description\x20file','@lovrabet/rabetbase-cli','expect-parent-id','Dataset\x20code','Menu\x20label','SQL\x20name','2719482AMTvfp','Config\x20value','DB\x20ID','target','expectedCount','Title','dbId','keyword','non-interactive','nonInteractive','Enable\x20BFF\x20save','schemas','sqlname','app','enableBffSave','Config\x20key','expectedChildrenCount','Expected\x20current\x20parent\x20menu\x20id','string','Page\x20size','menu-ids','skipImports','from-env','Reveal\x20sensitive\x20value','Read\x20value\x20from\x20environment\x20variable','Tags','24GFoveU','expectParentId','dry-run','output','datasetcode','params','Parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','functionNode','Operation\x20type','yes','fromEntries','Skip\x20import\x20generation','Function\x20node','operationType','Read\x20value\x20from\x20stdin','sqlName','label','expected-children-count','project','value','operation-type','1751392YApPsI','watch','Output\x20format','env','930tNeXXk','pagesize','Name','json\x20|\x20pretty\x20|\x20compress','title','parentId','descriptionFile','SQL\x20code','type','sql-name','3681eNXfVG','map','boolean','global','Page\x20number','sql','verbose','remote','all','Use\x20remote','Watch\x20mode','Expected\x20affected\x20count','key','Menu\x20sort\x20value','385781rZIKGv','106218tGbaws','operation','appcode','<code>','tags','Keyword\x20filter','code','153629SGtvmu'];a207_0x428a=function(){return _0x407b99;};return a207_0x428a();}export const GLOBAL_FLAGS=[{'name':a207_0x3ba76c(0x1a1),'meowKey':'appcode','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1a8),'hint':a207_0x3ba76c(0x1a2)},{'name':a207_0x3ba76c(0x1d9),'meowKey':a207_0x3ba76c(0x1d9),'type':a207_0x3ba76c(0x1de),'description':'Select\x20app\x20profile\x20by\x20name','hint':a207_0x3ba76c(0x1b8)},{'name':a207_0x3ba76c(0x1ff),'meowKey':a207_0x3ba76c(0x1ff),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1bb),'hint':'production\x20|\x20daily'},{'name':a207_0x3ba76c(0x1c0),'meowKey':a207_0x3ba76c(0x1c0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1fe),'hint':a207_0x3ba76c(0x203)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':a207_0x3ba76c(0x1e8),'meowKey':'dryRun','type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a207_0x3ba76c(0x1f0),'meowKey':'yes','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1b7)},{'name':a207_0x3ba76c(0x1d4),'meowKey':a207_0x3ba76c(0x1d5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1ed)},{'name':a207_0x3ba76c(0x20d),'meowKey':a207_0x3ba76c(0x20d),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1ad)},{'name':a207_0x3ba76c(0x1f9),'meowKey':a207_0x3ba76c(0x1f9),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a207_0x3ba76c(0x20c),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a207_0x3ba76c(0x1b6),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1b2)},{'name':a207_0x3ba76c(0x1bd),'meowKey':a207_0x3ba76c(0x1bd),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x202),'hidden':!![]},{'name':a207_0x3ba76c(0x204),'meowKey':'title','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1d1),'hidden':!![]},{'name':a207_0x3ba76c(0x1ab),'meowKey':a207_0x3ba76c(0x1ab),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1aa),'hidden':!![]},{'name':a207_0x3ba76c(0x1fd),'meowKey':a207_0x3ba76c(0x1fd),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x214),'hidden':!![]},{'name':'output','meowKey':a207_0x3ba76c(0x1e9),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a207_0x3ba76c(0x1eb),'meowKey':a207_0x3ba76c(0x1eb),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1b0),'hidden':!![]},{'name':a207_0x3ba76c(0x1ea),'meowKey':a207_0x3ba76c(0x1ea),'type':'string','description':a207_0x3ba76c(0x1c9),'hidden':!![]},{'name':a207_0x3ba76c(0x212),'meowKey':a207_0x3ba76c(0x212),'type':a207_0x3ba76c(0x20c),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a207_0x3ba76c(0x1ae),'meowKey':a207_0x3ba76c(0x1da),'type':'boolean','description':a207_0x3ba76c(0x1d6),'hidden':!![]},{'name':'id','meowKey':'id','type':a207_0x3ba76c(0x1de),'description':'Record\x20ID','hidden':!![]},{'name':a207_0x3ba76c(0x208),'meowKey':a207_0x3ba76c(0x208),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1bf),'hidden':!![]},{'name':'file','meowKey':'file','type':a207_0x3ba76c(0x1de),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x207),'hidden':!![]},{'name':a207_0x3ba76c(0x209),'meowKey':a207_0x3ba76c(0x1f6),'type':'string','description':a207_0x3ba76c(0x1cb),'hidden':!![]},{'name':'sqlname','meowKey':a207_0x3ba76c(0x1d8),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1cb),'hidden':!![]},{'name':a207_0x3ba76c(0x1af),'meowKey':a207_0x3ba76c(0x1d2),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ce),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ce),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a207_0x3ba76c(0x1b3),'hidden':!![]},{'name':'description-file','meowKey':a207_0x3ba76c(0x206),'type':'string','description':a207_0x3ba76c(0x1c6),'hidden':!![]},{'name':a207_0x3ba76c(0x1ba),'meowKey':a207_0x3ba76c(0x1ba),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x20e),'hidden':!![]},{'name':a207_0x3ba76c(0x201),'meowKey':a207_0x3ba76c(0x201),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1df),'hidden':!![]},{'name':a207_0x3ba76c(0x1d3),'meowKey':a207_0x3ba76c(0x1d3),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1a4),'hidden':!![]},{'name':a207_0x3ba76c(0x1a5),'meowKey':a207_0x3ba76c(0x1a5),'type':a207_0x3ba76c(0x1de),'description':'Code\x20filter','hidden':!![]},{'name':a207_0x3ba76c(0x20f),'meowKey':a207_0x3ba76c(0x20f),'type':a207_0x3ba76c(0x1de),'description':'SQL\x20string','hidden':!![]},{'name':a207_0x3ba76c(0x1d7),'meowKey':'schemas','type':'string','description':'Schemas','hidden':!![]},{'name':a207_0x3ba76c(0x1a0),'meowKey':a207_0x3ba76c(0x1a0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ef),'hidden':!![]},{'name':a207_0x3ba76c(0x1cf),'meowKey':a207_0x3ba76c(0x1cf),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a207_0x3ba76c(0x1e1),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1f2),'hidden':!![]},{'name':'key','meowKey':a207_0x3ba76c(0x19c),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1db),'hidden':!![]},{'name':'value','meowKey':a207_0x3ba76c(0x1fa),'type':'string','description':a207_0x3ba76c(0x1cd),'hidden':!![]},{'name':a207_0x3ba76c(0x1a3),'meowKey':a207_0x3ba76c(0x1a3),'type':'string','description':a207_0x3ba76c(0x1e5),'hidden':!![]},{'name':a207_0x3ba76c(0x1c1),'meowKey':'stdin','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1f5),'hidden':!![]},{'name':a207_0x3ba76c(0x1e2),'meowKey':a207_0x3ba76c(0x1b1),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1e4),'hidden':!![]},{'name':'reveal','meowKey':a207_0x3ba76c(0x1c5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1e3),'hidden':!![]},{'name':a207_0x3ba76c(0x1b5),'meowKey':a207_0x3ba76c(0x1b5),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1c4),'hidden':!![]},{'name':a207_0x3ba76c(0x1ac),'meowKey':'confirm','type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x1bc),'hidden':!![]},{'name':a207_0x3ba76c(0x211),'meowKey':a207_0x3ba76c(0x211),'type':a207_0x3ba76c(0x20c),'description':a207_0x3ba76c(0x213),'hidden':!![]},{'name':a207_0x3ba76c(0x210),'meowKey':a207_0x3ba76c(0x210),'type':a207_0x3ba76c(0x20c),'description':'Verbose\x20output','hidden':!![]},{'name':'expected-count','meowKey':a207_0x3ba76c(0x1d0),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x19b),'hidden':!![]},{'name':a207_0x3ba76c(0x1f7),'meowKey':a207_0x3ba76c(0x1f7),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ca),'hidden':!![]},{'name':'parent-id','meowKey':a207_0x3ba76c(0x205),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ec),'hidden':!![]},{'name':a207_0x3ba76c(0x1a9),'meowKey':a207_0x3ba76c(0x1a9),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x19d),'hidden':!![]},{'name':a207_0x3ba76c(0x1c8),'meowKey':a207_0x3ba76c(0x1e7),'type':'string','description':a207_0x3ba76c(0x1dd),'hidden':!![]},{'name':'expect-path','meowKey':a207_0x3ba76c(0x1a7),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a207_0x3ba76c(0x1f8),'meowKey':a207_0x3ba76c(0x1dc),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1b4),'hidden':!![]},{'name':a207_0x3ba76c(0x1e0),'meowKey':'menuIds','type':a207_0x3ba76c(0x1de),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a207_0x3ba76c(0x1de),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a207_0x3ba76c(0x1fb),'meowKey':a207_0x3ba76c(0x1f4),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1ef),'hidden':!![]},{'name':a207_0x3ba76c(0x1c2),'meowKey':a207_0x3ba76c(0x1ee),'type':a207_0x3ba76c(0x1de),'description':a207_0x3ba76c(0x1f3),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a207_0x3ba76c(0x1a1),'app',a207_0x3ba76c(0x1ff),a207_0x3ba76c(0x1c0),'jq',a207_0x3ba76c(0x1e8),'yes',a207_0x3ba76c(0x1d4),'ci']);export function buildMeowFlags(){const _0x296f55=a207_0x3ba76c;return Object[_0x296f55(0x1f1)](GLOBAL_FLAGS[_0x296f55(0x20b)](_0x4bb19d=>[_0x4bb19d['meowKey'],{'type':_0x4bb19d[_0x296f55(0x208)]}]));}
|
|
1
|
+
const a208_0x2f1edb=a208_0x5708;(function(_0x44dbb8,_0x2b94fd){const _0x43feed=a208_0x5708,_0x7e7121=_0x44dbb8();while(!![]){try{const _0x262b8b=parseInt(_0x43feed(0x245))/0x1*(parseInt(_0x43feed(0x207))/0x2)+parseInt(_0x43feed(0x229))/0x3+parseInt(_0x43feed(0x1d8))/0x4*(-parseInt(_0x43feed(0x1cc))/0x5)+-parseInt(_0x43feed(0x1df))/0x6*(parseInt(_0x43feed(0x1f7))/0x7)+parseInt(_0x43feed(0x1e1))/0x8*(parseInt(_0x43feed(0x220))/0x9)+-parseInt(_0x43feed(0x225))/0xa+parseInt(_0x43feed(0x231))/0xb*(parseInt(_0x43feed(0x235))/0xc);if(_0x262b8b===_0x2b94fd)break;else _0x7e7121['push'](_0x7e7121['shift']());}catch(_0x34fb55){_0x7e7121['push'](_0x7e7121['shift']());}}}(a208_0x1b56,0x6cabb));export const CLI_BIN_NAME=a208_0x2f1edb(0x1e5);export const CLI_DISPLAY_NAME=a208_0x2f1edb(0x1e3);function a208_0x5708(_0x2072ad,_0xdcccd0){_0x2072ad=_0x2072ad-0x1c6;const _0x1b5611=a208_0x1b56();let _0x570878=_0x1b5611[_0x2072ad];return _0x570878;}function a208_0x1b56(){const _0x45248d=['sql','enableBffSave','output','12FmDHHi','Watch\x20mode','DB\x20ID','enable-bff-save','functionNode','Output\x20format','dry-run','target','meowKey','SQL\x20string','nonInteractive','Read\x20value\x20from\x20environment\x20variable','fromEnv','datasetcode','file','verbose','84PdEiPy','yes','name','<name>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Tags','Function\x20node','description','expected-children-count','25vwylUH','Record\x20ID','json\x20|\x20pretty\x20|\x20compress','params','parentId','Use\x20project\x20config\x20scope','Config\x20value','title','Override\x20appcode','production\x20|\x20daily','Asynchronous\x20task\x20ID','SQL\x20code','295600jQYZRy','label','expectParentId','boolean','help','descriptionFile','operation','13326vvEEEr','page','7042600eNoFpc','code','Rabetbase\x20CLI','expectedCount','rabetbase','description-file','Title','skipImports','key','expectPath','app','sqlcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','tags','Show\x20help','parent-id','all','watch','confirm','Target\x20path','Use\x20global\x20config\x20scope','Keyword\x20filter','2429cjaRwn','<code>','Description\x20file','string','Use\x20remote','clear','from-env','function-node','type','Skip\x20import\x20generation','Reveal\x20sensitive\x20value','fromEntries','dryRun','Dataset\x20code','menuIds','Confirm\x20destructive\x20action','3606QwVEJa','Schemas','db-id','pagesize','dbid','format','JSON\x20params','sqlName','Preview\x20operation\x20without\x20executing','sqlname','taskId','sql-name','Type\x20filter','force','Name','menu-ids','Apply\x20to\x20all','Operation\x20type','Expected\x20affected\x20count','schemas','remote','sort','keyword','Enable\x20BFF\x20save','expect-parent-id','9yvTbdh','global','SQL\x20name','Parent\x20menu\x20id','Expected\x20current\x20menu\x20path','7035700BqFmdr','Force\x20overwrite','Verbose\x20output','expect-path','2139924bDXXWB','env','Config\x20key','appcode','expected-count','non-interactive','value','project','5981657lLtzIw'];a208_0x1b56=function(){return _0x45248d;};return a208_0x1b56();}export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a208_0x2f1edb(0x22c),'meowKey':a208_0x2f1edb(0x22c),'type':'string','description':a208_0x2f1edb(0x1d4),'hint':a208_0x2f1edb(0x1f8)},{'name':a208_0x2f1edb(0x1eb),'meowKey':a208_0x2f1edb(0x1eb),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a208_0x2f1edb(0x1c6)},{'name':a208_0x2f1edb(0x22a),'meowKey':a208_0x2f1edb(0x22a),'type':a208_0x2f1edb(0x1fa),'description':'Environment','hint':a208_0x2f1edb(0x1d5)},{'name':'format','meowKey':'format','type':'string','description':a208_0x2f1edb(0x23a),'hint':a208_0x2f1edb(0x1ce)},{'name':'jq','meowKey':'jq','type':'string','description':a208_0x2f1edb(0x1c7),'hint':'<expr>'},{'name':a208_0x2f1edb(0x23b),'meowKey':a208_0x2f1edb(0x203),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x20f)},{'name':a208_0x2f1edb(0x246),'meowKey':a208_0x2f1edb(0x246),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x1ed)},{'name':a208_0x2f1edb(0x22e),'meowKey':a208_0x2f1edb(0x23f),'type':a208_0x2f1edb(0x1db),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a208_0x2f1edb(0x221),'meowKey':a208_0x2f1edb(0x221),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x1f5)},{'name':a208_0x2f1edb(0x230),'meowKey':a208_0x2f1edb(0x230),'type':'boolean','description':a208_0x2f1edb(0x1d1)},{'name':'ci','meowKey':'ci','type':a208_0x2f1edb(0x1db),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a208_0x2f1edb(0x1dc),'meowKey':a208_0x2f1edb(0x1dc),'type':'boolean','description':a208_0x2f1edb(0x1ef)},{'name':a208_0x2f1edb(0x247),'meowKey':a208_0x2f1edb(0x247),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x215),'hidden':!![]},{'name':a208_0x2f1edb(0x1d3),'meowKey':'title','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1e7),'hidden':!![]},{'name':a208_0x2f1edb(0x1fc),'meowKey':a208_0x2f1edb(0x1fc),'type':a208_0x2f1edb(0x1db),'description':'Clear','hidden':!![]},{'name':a208_0x2f1edb(0x1f2),'meowKey':a208_0x2f1edb(0x1f2),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x236),'hidden':!![]},{'name':'output','meowKey':a208_0x2f1edb(0x234),'type':a208_0x2f1edb(0x1fa),'description':'Output\x20path','hidden':!![]},{'name':a208_0x2f1edb(0x1cf),'meowKey':'params','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x20d),'hidden':!![]},{'name':a208_0x2f1edb(0x242),'meowKey':a208_0x2f1edb(0x242),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x204),'hidden':!![]},{'name':a208_0x2f1edb(0x1f1),'meowKey':a208_0x2f1edb(0x1f1),'type':'boolean','description':a208_0x2f1edb(0x217),'hidden':!![]},{'name':a208_0x2f1edb(0x238),'meowKey':a208_0x2f1edb(0x233),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x21e),'hidden':!![]},{'name':'id','meowKey':'id','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1cd),'hidden':!![]},{'name':a208_0x2f1edb(0x1ff),'meowKey':'type','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x213),'hidden':!![]},{'name':a208_0x2f1edb(0x243),'meowKey':a208_0x2f1edb(0x243),'type':a208_0x2f1edb(0x1fa),'description':'File\x20path','hidden':!![]},{'name':a208_0x2f1edb(0x1ec),'meowKey':a208_0x2f1edb(0x1ec),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1d7),'hidden':!![]},{'name':a208_0x2f1edb(0x212),'meowKey':a208_0x2f1edb(0x20e),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x222),'hidden':!![]},{'name':a208_0x2f1edb(0x210),'meowKey':a208_0x2f1edb(0x210),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a208_0x2f1edb(0x209),'meowKey':'dbId','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x237),'hidden':!![]},{'name':a208_0x2f1edb(0x20b),'meowKey':a208_0x2f1edb(0x20b),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x237),'hidden':!![]},{'name':a208_0x2f1edb(0x1ca),'meowKey':'description','type':a208_0x2f1edb(0x1fa),'description':'Description','hidden':!![]},{'name':a208_0x2f1edb(0x1e6),'meowKey':a208_0x2f1edb(0x1dd),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1f9),'hidden':!![]},{'name':'page','meowKey':a208_0x2f1edb(0x1e0),'type':a208_0x2f1edb(0x1fa),'description':'Page\x20number','hidden':!![]},{'name':a208_0x2f1edb(0x20a),'meowKey':a208_0x2f1edb(0x20a),'type':a208_0x2f1edb(0x1fa),'description':'Page\x20size','hidden':!![]},{'name':a208_0x2f1edb(0x21d),'meowKey':a208_0x2f1edb(0x21d),'type':'string','description':a208_0x2f1edb(0x1f6),'hidden':!![]},{'name':a208_0x2f1edb(0x1e2),'meowKey':a208_0x2f1edb(0x1e2),'type':a208_0x2f1edb(0x1fa),'description':'Code\x20filter','hidden':!![]},{'name':a208_0x2f1edb(0x232),'meowKey':a208_0x2f1edb(0x232),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x23e),'hidden':!![]},{'name':a208_0x2f1edb(0x21a),'meowKey':'schemas','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x208),'hidden':!![]},{'name':a208_0x2f1edb(0x1de),'meowKey':a208_0x2f1edb(0x1de),'type':a208_0x2f1edb(0x1fa),'description':'Operation\x20type','hidden':!![]},{'name':'target','meowKey':a208_0x2f1edb(0x23c),'type':'string','description':a208_0x2f1edb(0x1f4),'hidden':!![]},{'name':'skip-imports','meowKey':a208_0x2f1edb(0x1e8),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x200),'hidden':!![]},{'name':a208_0x2f1edb(0x1e9),'meowKey':'key','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x22b),'hidden':!![]},{'name':a208_0x2f1edb(0x22f),'meowKey':a208_0x2f1edb(0x22f),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1d2),'hidden':!![]},{'name':a208_0x2f1edb(0x1ee),'meowKey':a208_0x2f1edb(0x1ee),'type':'string','description':a208_0x2f1edb(0x1c8),'hidden':!![]},{'name':'stdin','meowKey':'stdin','type':a208_0x2f1edb(0x1db),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a208_0x2f1edb(0x1fd),'meowKey':a208_0x2f1edb(0x241),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x240),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x201),'hidden':!![]},{'name':a208_0x2f1edb(0x214),'meowKey':a208_0x2f1edb(0x214),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x226),'hidden':!![]},{'name':a208_0x2f1edb(0x1f3),'meowKey':a208_0x2f1edb(0x1f3),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x206),'hidden':!![]},{'name':a208_0x2f1edb(0x21b),'meowKey':a208_0x2f1edb(0x21b),'type':a208_0x2f1edb(0x1db),'description':a208_0x2f1edb(0x1fb),'hidden':!![]},{'name':a208_0x2f1edb(0x244),'meowKey':'verbose','type':'boolean','description':a208_0x2f1edb(0x227),'hidden':!![]},{'name':a208_0x2f1edb(0x22d),'meowKey':a208_0x2f1edb(0x1e4),'type':'string','description':a208_0x2f1edb(0x219),'hidden':!![]},{'name':a208_0x2f1edb(0x1d9),'meowKey':a208_0x2f1edb(0x1d9),'type':a208_0x2f1edb(0x1fa),'description':'Menu\x20label','hidden':!![]},{'name':a208_0x2f1edb(0x1f0),'meowKey':a208_0x2f1edb(0x1d0),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x223),'hidden':!![]},{'name':a208_0x2f1edb(0x21c),'meowKey':'sort','type':a208_0x2f1edb(0x1fa),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a208_0x2f1edb(0x21f),'meowKey':a208_0x2f1edb(0x1da),'type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a208_0x2f1edb(0x228),'meowKey':a208_0x2f1edb(0x1ea),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x224),'hidden':!![]},{'name':a208_0x2f1edb(0x1cb),'meowKey':'expectedChildrenCount','type':a208_0x2f1edb(0x1fa),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a208_0x2f1edb(0x216),'meowKey':a208_0x2f1edb(0x205),'type':a208_0x2f1edb(0x1fa),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a208_0x2f1edb(0x211),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1d6),'hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x218),'hidden':!![]},{'name':a208_0x2f1edb(0x1fe),'meowKey':a208_0x2f1edb(0x239),'type':a208_0x2f1edb(0x1fa),'description':a208_0x2f1edb(0x1c9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a208_0x2f1edb(0x22c),a208_0x2f1edb(0x1eb),a208_0x2f1edb(0x22a),a208_0x2f1edb(0x20c),'jq','dry-run',a208_0x2f1edb(0x246),a208_0x2f1edb(0x22e),'ci']);export function buildMeowFlags(){const _0xb60fb5=a208_0x2f1edb;return Object[_0xb60fb5(0x202)](GLOBAL_FLAGS['map'](_0x5a1345=>[_0x5a1345[_0xb60fb5(0x23d)],{'type':_0x5a1345[_0xb60fb5(0x1ff)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x44ccb7=a209_0x4ee4;(function(_0x24312b,_0x3a2f03){const _0x46bd35=a209_0x4ee4,_0x52b5a7=_0x24312b();while(!![]){try{const _0x4321b1=-parseInt(_0x46bd35(0x79))/0x1+-parseInt(_0x46bd35(0x77))/0x2+-parseInt(_0x46bd35(0x75))/0x3+-parseInt(_0x46bd35(0x73))/0x4+parseInt(_0x46bd35(0x72))/0x5+-parseInt(_0x46bd35(0x71))/0x6+parseInt(_0x46bd35(0x78))/0x7;if(_0x4321b1===_0x3a2f03)break;else _0x52b5a7['push'](_0x52b5a7['shift']());}catch(_0x5c2b48){_0x52b5a7['push'](_0x52b5a7['shift']());}}}(a209_0x15d6,0x8df66));function a209_0x4ee4(_0x2776f6,_0x4ab70b){_0x2776f6=_0x2776f6-0x70;const _0x15d6a2=a209_0x15d6();let _0x4ee40f=_0x15d6a2[_0x2776f6];return _0x4ee40f;}function a209_0x15d6(){const _0x35a11f=['569740CajGTJ','write','299400BWyRzF','production','2284266nqgXfX','17882361oybWJZ','785244fOkoZD','compress','en-US','2056482puCjTT','2696070jiMxeB'];a209_0x15d6=function(){return _0x35a11f;};return a209_0x15d6();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a209_0x44ccb7(0x76),'format':a209_0x44ccb7(0x7a),'locale':a209_0x44ccb7(0x70),'riskLevel':a209_0x44ccb7(0x74),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a209_0x44ccb7(0x7a);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0x1cde(_0x3ecfbe,_0x8d982a){_0x3ecfbe=_0x3ecfbe-0x1d0;const _0x26e985=a210_0x26e9();let _0x1cdea4=_0x26e985[_0x3ecfbe];return _0x1cdea4;}function a210_0x26e9(){const _0x3779a1=['userDomain','https://daily-api.lovrabet.com','2578422lzcGEt','https://user-daily.lovrabet.com','trim','426896JlXznP','5862115NOftJD','https://daily-runtime.lovrabet.com','8XNWEAN','6kwhifh','apiDomain','5857749VVMVSK','https://runtime.lovrabet.com','30MsGJnp','https://api.lovrabet.com','runtimeDomain','2053276idjpWT','1WvLswU','5644755YczmTO','50821008QrtEWN','https://app.lovrabet.com','24pCXiEt'];a210_0x26e9=function(){return _0x3779a1;};return a210_0x26e9();}const a210_0x2602fb=a210_0x1cde;(function(_0xc17365,_0x1abc95){const _0x3cd806=a210_0x1cde,_0x5ee976=_0xc17365();while(!![]){try{const _0x2513f4=parseInt(_0x3cd806(0x1d3))/0x1*(-parseInt(_0x3cd806(0x1d2))/0x2)+parseInt(_0x3cd806(0x1d7))/0x3*(parseInt(_0x3cd806(0x1dd))/0x4)+-parseInt(_0x3cd806(0x1d4))/0x5*(parseInt(_0x3cd806(0x1e1))/0x6)+-parseInt(_0x3cd806(0x1de))/0x7+parseInt(_0x3cd806(0x1e0))/0x8*(-parseInt(_0x3cd806(0x1e3))/0x9)+-parseInt(_0x3cd806(0x1e5))/0xa*(parseInt(_0x3cd806(0x1da))/0xb)+parseInt(_0x3cd806(0x1d5))/0xc;if(_0x2513f4===_0x1abc95)break;else _0x5ee976['push'](_0x5ee976['shift']());}catch(_0x62b69){_0x5ee976['push'](_0x5ee976['shift']());}}}(a210_0x26e9,0xb518f));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x265585){const _0xb958f3=a210_0x1cde;customApiDomain=_0x265585?.[_0xb958f3(0x1e2)],customUserDomain=_0x265585?.[_0xb958f3(0x1d8)],customRuntimeDomain=_0x265585?.[_0xb958f3(0x1d1)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a210_0x2602fb(0x1db));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a210_0x2602fb(0x1d0):a210_0x2602fb(0x1d9));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a210_0x2602fb(0x1e4):a210_0x2602fb(0x1df));export const getAppDomain=()=>isProduction(getEnv())?a210_0x2602fb(0x1d6):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x50f5f6=>{const _0x2b938c=a210_0x2602fb,_0x1bb38e=encodeURIComponent(_0x50f5f6[_0x2b938c(0x1dc)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x1bb38e:getAppDomain()+'/web-app/app/'+_0x1bb38e;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a211_0x41a54c=a211_0x34fa;(function(_0x455d18,_0x331843){const _0x547157=a211_0x34fa,_0x4d61ab=_0x455d18();while(!![]){try{const _0x3d95cf=-parseInt(_0x547157(0x155))/0x1+parseInt(_0x547157(0x15e))/0x2+-parseInt(_0x547157(0x158))/0x3+-parseInt(_0x547157(0x15a))/0x4+parseInt(_0x547157(0x15b))/0x5*(-parseInt(_0x547157(0x159))/0x6)+-parseInt(_0x547157(0x154))/0x7+-parseInt(_0x547157(0x157))/0x8*(-parseInt(_0x547157(0x156))/0x9);if(_0x3d95cf===_0x331843)break;else _0x4d61ab['push'](_0x4d61ab['shift']());}catch(_0x46fca6){_0x4d61ab['push'](_0x4d61ab['shift']());}}}(a211_0x39e7,0xa012f));export const RABETBASE_ENV_VALUES=[a211_0x41a54c(0x153),a211_0x41a54c(0x15c)];export function normalizeEnv(_0x3b64a2){const _0x47bd41=a211_0x41a54c;return _0x3b64a2==='online'?_0x47bd41(0x153):_0x3b64a2;}function a211_0x34fa(_0x52b5bc,_0x38ccbe){_0x52b5bc=_0x52b5bc-0x153;const _0x39e7b2=a211_0x39e7();let _0x34fac6=_0x39e7b2[_0x52b5bc];return _0x34fac6;}export function isProduction(_0x3cb255){return normalizeEnv(_0x3cb255)==='production';}function a211_0x39e7(){const _0x39832f=['dev','2065612aEQTnI','development','production','2271339pdphLs','840644ARetra','114867rCcgcE','840aEpqxK','245040hfcQqt','2268xvHoKl','1751796GaaMEC','430Xhovdl','daily'];a211_0x39e7=function(){return _0x39832f;};return a211_0x39e7();}export function isDaily(_0xd228ae){const _0x4d8bb5=a211_0x41a54c;return normalizeEnv(_0xd228ae)===_0x4d8bb5(0x15c);}export function isDev(_0x3c7f9d){const _0xac14d6=a211_0x41a54c,_0x4fea10=normalizeEnv(_0x3c7f9d);return _0x4fea10===_0xac14d6(0x15f)||_0x4fea10===_0xac14d6(0x15d);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x10f51a){env=normalizeEnv(_0x10f51a);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x501397=a212_0x309b;(function(_0x24fe34,_0x352f06){const _0x260426=a212_0x309b,_0x46d1cd=_0x24fe34();while(!![]){try{const _0xbe7bff=parseInt(_0x260426(0x1b3))/0x1*(-parseInt(_0x260426(0x1ab))/0x2)+parseInt(_0x260426(0x1b1))/0x3+parseInt(_0x260426(0x1aa))/0x4*(parseInt(_0x260426(0x1b4))/0x5)+-parseInt(_0x260426(0x1b2))/0x6+-parseInt(_0x260426(0x1af))/0x7*(-parseInt(_0x260426(0x1b5))/0x8)+-parseInt(_0x260426(0x1b0))/0x9+-parseInt(_0x260426(0x1ac))/0xa;if(_0xbe7bff===_0x352f06)break;else _0x46d1cd['push'](_0x46d1cd['shift']());}catch(_0x3718ca){_0x46d1cd['push'](_0x46d1cd['shift']());}}}(a212_0x61e8,0x9f297));function a212_0x61e8(){const _0x116c31=['52WCpCLg','59734LUCcmN','996130cCcxji','compress','pretty','3255567oPWESa','1547100UmxPCA','977193qSBRHr','1245540zuvqOX','3xLRMwK','165315tsKNTC','8YSoCSe'];a212_0x61e8=function(){return _0x116c31;};return a212_0x61e8();}function a212_0x309b(_0x5249b2,_0x2a1514){_0x5249b2=_0x5249b2-0x1aa;const _0x61e8f4=a212_0x61e8();let _0x309bc2=_0x61e8f4[_0x5249b2];return _0x309bc2;}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a212_0x501397(0x1ae),a212_0x501397(0x1ad)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a213_0x4ce556=a213_0x764a;function a213_0x764a(_0x45afbd,_0x38fc3d){_0x45afbd=_0x45afbd-0x77;const _0x11b397=a213_0x11b3();let _0x764a41=_0x11b397[_0x45afbd];return _0x764a41;}function a213_0x11b3(){const _0x4a285c=['10525150MyzzUa','12206799poVplf','3213246scFcSV','2889362ZJhoMb','16JwqMUG','250346gqsmGf','4575916YpdlWL','5sIREXc','15MalrIR','873352BEzbhu','./src/api'];a213_0x11b3=function(){return _0x4a285c;};return a213_0x11b3();}(function(_0x377e65,_0x2b495c){const _0xf4c215=a213_0x764a,_0x2081f4=_0x377e65();while(!![]){try{const _0xfa43bd=-parseInt(_0xf4c215(0x79))/0x1+parseInt(_0xf4c215(0x80))/0x2*(-parseInt(_0xf4c215(0x78))/0x3)+parseInt(_0xf4c215(0x81))/0x4*(parseInt(_0xf4c215(0x77))/0x5)+parseInt(_0xf4c215(0x7d))/0x6+-parseInt(_0xf4c215(0x7e))/0x7*(-parseInt(_0xf4c215(0x7f))/0x8)+-parseInt(_0xf4c215(0x7c))/0x9+parseInt(_0xf4c215(0x7b))/0xa;if(_0xfa43bd===_0x2b495c)break;else _0x2081f4['push'](_0x2081f4['shift']());}catch(_0x4a42da){_0x2081f4['push'](_0x2081f4['shift']());}}}(a213_0x11b3,0xab657));export const DEFAULT_API_DIR=a213_0x4ce556(0x7a);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a214_0x2d65(_0xc7b9f5,_0x17751f){_0xc7b9f5=_0xc7b9f5-0x10b;const _0x207090=a214_0x2070();let _0x2d65e2=_0x207090[_0xc7b9f5];return _0x2d65e2;}const a214_0x33bd75=a214_0x2d65;(function(_0x138320,_0x5a1f8f){const _0x3c0e7f=a214_0x2d65,_0x86e461=_0x138320();while(!![]){try{const _0x56061f=parseInt(_0x3c0e7f(0x10b))/0x1+parseInt(_0x3c0e7f(0x10d))/0x2+-parseInt(_0x3c0e7f(0x112))/0x3*(-parseInt(_0x3c0e7f(0x10e))/0x4)+-parseInt(_0x3c0e7f(0x116))/0x5*(parseInt(_0x3c0e7f(0x10c))/0x6)+parseInt(_0x3c0e7f(0x117))/0x7*(parseInt(_0x3c0e7f(0x114))/0x8)+parseInt(_0x3c0e7f(0x115))/0x9*(parseInt(_0x3c0e7f(0x111))/0xa)+-parseInt(_0x3c0e7f(0x110))/0xb*(parseInt(_0x3c0e7f(0x10f))/0xc);if(_0x56061f===_0x5a1f8f)break;else _0x86e461['push'](_0x86e461['shift']());}catch(_0x27dd3e){_0x86e461['push'](_0x86e461['shift']());}}}(a214_0x2070,0x90082));function a214_0x2070(){const _0xdab003=['4230989JrqSXJ','228129cBNEDU','24Phydiz','1086676IwuStN','44NJWTAw','46596bJNsPN','6633kDAyQu','6340GlyJIr','179037zNRLNJ','read','8RbcqLW','14058dTZJiY','114085ICUqCV'];a214_0x2070=function(){return _0xdab003;};return a214_0x2070();}export const RISK_LEVEL_VALUES=[a214_0x33bd75(0x113),'write','high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x45dfdd,_0x127e34){const _0x301a26=a215_0x2cfa,_0x5051e4=_0x45dfdd();while(!![]){try{const _0xca70de=parseInt(_0x301a26(0x168))/0x1+parseInt(_0x301a26(0x162))/0x2*(parseInt(_0x301a26(0x13e))/0x3)+parseInt(_0x301a26(0x153))/0x4*(-parseInt(_0x301a26(0x165))/0x5)+-parseInt(_0x301a26(0x14a))/0x6*(parseInt(_0x301a26(0x166))/0x7)+-parseInt(_0x301a26(0x13f))/0x8+-parseInt(_0x301a26(0x16a))/0x9*(-parseInt(_0x301a26(0x167))/0xa)+parseInt(_0x301a26(0x160))/0xb;if(_0xca70de===_0x127e34)break;else _0x5051e4['push'](_0x5051e4['shift']());}catch(_0x3d4d6a){_0x5051e4['push'](_0x5051e4['shift']());}}}(a215_0x39d0,0xed9af));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x1f2b25){const _0x46dce9=a215_0x2cfa;return typeof _0x1f2b25===_0x46dce9(0x158)&&_0x1f2b25[_0x46dce9(0x142)]()?_0x1f2b25[_0x46dce9(0x142)]():undefined;}function appProfiles(_0x74c5be){const _0x553d0d=a215_0x2cfa;return _0x74c5be[_0x553d0d(0x140)]&&typeof _0x74c5be[_0x553d0d(0x140)]===_0x553d0d(0x152)?_0x74c5be[_0x553d0d(0x140)]:{};}function resolveDefaultAppName(_0x922af7){const _0xe7aa46=a215_0x2cfa,_0x20c6e8=stringConfigValue(_0x922af7['defaultApp']);if(_0x20c6e8)return _0x20c6e8;return Object[_0xe7aa46(0x147)](appProfiles(_0x922af7))[0x0];}function resolveTopLevelAppCode(_0x4778be){const _0x3d51f3=a215_0x2cfa;return stringConfigValue(_0x4778be[_0x3d51f3(0x163)])||stringConfigValue(_0x4778be[_0x3d51f3(0x14b)]);}function normalizeRiskCeiling(_0x4780c9){const _0x30ad39=a215_0x2cfa;if(_0x4780c9===undefined||_0x4780c9===null)return undefined;if(_0x4780c9==='read'||_0x4780c9===_0x30ad39(0x148)||_0x4780c9===_0x30ad39(0x155))return _0x4780c9;return'read';}function a215_0x2cfa(_0x40f051,_0x20c197){_0x40f051=_0x40f051-0x13d;const _0x39d083=a215_0x39d0();let _0x2cfa49=_0x39d083[_0x40f051];return _0x2cfa49;}function resolveRiskCeiling(..._0x1f8ca1){const _0x5a44d0=a215_0x2cfa;let _0x387fb4;for(const _0x1c2e53 of _0x1f8ca1){const _0x17c313=normalizeRiskCeiling(_0x1c2e53);_0x17c313&&(!_0x387fb4||riskLevelOrder(_0x17c313)<riskLevelOrder(_0x387fb4))&&(_0x387fb4=_0x17c313);}return _0x387fb4??DEFAULT_CONFIG_VALUES[_0x5a44d0(0x156)];}function a215_0x39d0(){const _0x449d55=['MAX_RISK','true','keys','write','hasOwnProperty','3377406eUUclV','app','inherit','APP','pageSize','defaultApp','projectConfig','COOKIE','object','897892wAQnCG','format','high-risk-write','riskLevel','FORMAT','string','accessKey','ENV','RISK_LEVEL','production','prototype','globalConfig','apiDir','18196827XoYtiL','env','22DyRUHE','appcode','find','30FMuhsI','7OAkIjE','20OssIVc','315488knGNgx','entries','2937861mMVdec','PAGE_SIZE','locale','181743GlLzvS','3248192CkhADQ','apps','maxRisk','trim','cookie','VERBOSE'];a215_0x39d0=function(){return _0x449d55;};return a215_0x39d0();}function configuredRiskCeilings(_0xe7b78f){const _0x26ea15=a215_0x2cfa;return[...Object[_0x26ea15(0x15d)][_0x26ea15(0x149)]['call'](_0xe7b78f,_0x26ea15(0x141))?[_0xe7b78f[_0x26ea15(0x141)]]:[],...Object[_0x26ea15(0x15d)][_0x26ea15(0x149)]['call'](_0xe7b78f,_0x26ea15(0x156))?[_0xe7b78f['riskLevel']]:[]];}export function resolveAppConfig({raw:_0x5c3b58,flags:_0x9372f9,layers:_0x33d21c,readEnv:_0x5a6bdc}){const _0x4f858b=a215_0x2cfa,_0x15e108=_0x33d21c?.['projectConfig']??{},_0x3f0d20=_0x33d21c?.['globalConfig']??{},_0x13e9c6=Object[_0x4f858b(0x147)](_0x15e108)['length']>0x0,_0x521796=!_0x13e9c6||_0x15e108[_0x4f858b(0x14c)]===!![],_0x227a77=_0x13e9c6?resolveDefaultAppName(_0x15e108):undefined,_0x3eb700=_0x521796?resolveDefaultAppName(_0x3f0d20):undefined,_0x419622=stringConfigValue(_0x9372f9[_0x4f858b(0x14b)]),_0x175fce=_0x5a6bdc(_0x4f858b(0x14d)),_0x380e86={};if(_0x5c3b58['apps']&&typeof _0x5c3b58['apps']===_0x4f858b(0x152))for(const [_0x4315e4,_0x203384]of Object[_0x4f858b(0x169)](_0x5c3b58[_0x4f858b(0x140)])){_0x203384&&typeof _0x203384===_0x4f858b(0x152)&&_0x203384[_0x4f858b(0x163)]&&(_0x380e86[_0x4315e4]=_0x203384);}const _0x57acba=_0x5c3b58[_0x4f858b(0x14f)]||undefined,_0x860f93=Object[_0x4f858b(0x147)](_0x380e86)['length']>0x0,_0x27ebcb=_0x419622||_0x227a77||_0x175fce||_0x3eb700||_0x57acba||undefined,_0x4c0efd=stringConfigValue(_0x9372f9[_0x4f858b(0x163)]),_0x31bf94=_0x4c0efd?Object[_0x4f858b(0x169)](_0x380e86)[_0x4f858b(0x164)](([,_0xc178de])=>_0xc178de?.[_0x4f858b(0x163)]===_0x4c0efd):undefined,_0x5aaa00=_0x31bf94?.[0x0],_0x381a50=_0x31bf94?.[0x1],_0x1f4f74=_0x4c0efd?_0x5aaa00:_0x27ebcb;let _0x1b75a5=_0x1f4f74&&_0x380e86[_0x1f4f74]?_0x380e86[_0x1f4f74]:undefined;_0x4c0efd&&_0x381a50&&(_0x1b75a5=_0x381a50);const _0x2776d6=_0x4c0efd?_0x381a50??_0x1b75a5:_0x1b75a5,_0x17d8e8=!_0x419622&&!_0x227a77&&_0x175fce&&_0x1f4f74===_0x175fce,_0x2c0591=_0x419622||(_0x17d8e8?_0x175fce:undefined)||(_0x4c0efd?_0x5aaa00:undefined),_0x25db5a=_0x2776d6?.[_0x4f858b(0x163)],_0x2bae77=_0x13e9c6?resolveTopLevelAppCode(_0x15e108):undefined,_0x4bdf26=_0x521796?resolveTopLevelAppCode(_0x3f0d20):undefined,_0x96a13a=_0x419622||_0x227a77?_0x25db5a:undefined,_0x5635b4=!_0x419622&&!_0x227a77?_0x25db5a:undefined,_0xfb441f=_0x4c0efd||_0x96a13a||_0x2bae77||_0x5635b4||_0x4bdf26||undefined,_0x3cdb7d=_0x13e9c6?stringConfigValue(_0x15e108[_0x4f858b(0x161)]):undefined,_0x490627=_0x521796?stringConfigValue(_0x3f0d20[_0x4f858b(0x161)]):undefined,_0x1b446f=_0x9372f9['env']||_0x2776d6?.[_0x4f858b(0x161)]||_0x3cdb7d||_0x5a6bdc(_0x4f858b(0x15a))||_0x490627||_0x5c3b58[_0x4f858b(0x161)]||DEFAULT_CONFIG_VALUES[_0x4f858b(0x161)],_0x5252ae=_0x2776d6?.['locale']||_0x5c3b58[_0x4f858b(0x13d)]||DEFAULT_CONFIG_VALUES[_0x4f858b(0x13d)],_0x202986=_0x5a6bdc(_0x4f858b(0x151))||_0x2776d6?.[_0x4f858b(0x143)]||_0x5c3b58[_0x4f858b(0x143)]||undefined,_0x4e9185=_0x5a6bdc('ACCESS_KEY')||_0x2776d6?.[_0x4f858b(0x159)]||_0x5c3b58[_0x4f858b(0x159)]||undefined,_0x541b89=_0x9372f9[_0x4f858b(0x154)]||_0x5a6bdc(_0x4f858b(0x157))||_0x2776d6?.[_0x4f858b(0x154)]||_0x5c3b58[_0x4f858b(0x154)],_0x51a2fd=normalizeLegacyOutputFormat(_0x541b89),_0x43a9a9=_0x5a6bdc(_0x4f858b(0x16b))||_0x2776d6?.[_0x4f858b(0x14e)]||_0x5c3b58['pageSize'],_0x581fb1=_0x43a9a9?Number(_0x43a9a9)||undefined:undefined,_0x21a6d4=_0x33d21c?[...configuredRiskCeilings(_0x33d21c[_0x4f858b(0x15e)]),...configuredRiskCeilings(_0x33d21c[_0x4f858b(0x150)])]:configuredRiskCeilings(_0x5c3b58),_0x3700ac=resolveRiskCeiling(..._0x21a6d4,_0x2776d6?.['riskLevel']),_0x49742d=resolveRiskCeiling(_0x3700ac,_0x5a6bdc(_0x4f858b(0x15b)),_0x5a6bdc(_0x4f858b(0x145))),_0x455f1b=_0x5a6bdc(_0x4f858b(0x144)),_0x3b0529=_0x455f1b==='1'||_0x455f1b===_0x4f858b(0x146),_0x14ef87=_0x2776d6?.[_0x4f858b(0x15f)]||_0x5c3b58[_0x4f858b(0x15f)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x3d0b1f=isDaily(normalizeEnv(String(_0x1b446f)))?'daily':_0x4f858b(0x15c);return{'appCode':typeof _0xfb441f==='string'&&_0xfb441f[_0x4f858b(0x142)]()?_0xfb441f['trim']():undefined,'env':_0x3d0b1f,'locale':_0x5252ae,'cookie':_0x202986,'accessKey':_0x4e9185,'format':_0x51a2fd,'pageSize':_0x581fb1,'riskLevel':_0x49742d,'verbose':_0x3b0529,'apiDir':_0x14ef87,'apps':_0x380e86,'defaultApp':_0x57acba,'currentApp':_0x860f93?_0x1f4f74:undefined,'explicitAppName':_0x2c0591};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1bb2be,_0x5cd64d){const _0x28626f=a216_0x1360,_0x3a472d=_0x1bb2be();while(!![]){try{const _0x1918df=parseInt(_0x28626f(0x190))/0x1*(parseInt(_0x28626f(0x191))/0x2)+-parseInt(_0x28626f(0x18f))/0x3*(-parseInt(_0x28626f(0x193))/0x4)+-parseInt(_0x28626f(0x198))/0x5+-parseInt(_0x28626f(0x194))/0x6+parseInt(_0x28626f(0x197))/0x7*(parseInt(_0x28626f(0x192))/0x8)+-parseInt(_0x28626f(0x18e))/0x9+-parseInt(_0x28626f(0x196))/0xa;if(_0x1918df===_0x5cd64d)break;else _0x3a472d['push'](_0x3a472d['shift']());}catch(_0x1f6306){_0x3a472d['push'](_0x3a472d['shift']());}}}(a216_0x2949,0x9c648));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x5e5476){const {getCookie:_0x22f613}=await import('../auth/get-cookie.js'),_0x515427=_0x5e5476['cookie']||_0x22f613(),_0x2a2dba=_0x515427?await getIsSessionValid():![];return{'cookie':_0x515427,'isLoggedIn':_0x2a2dba,async 'getOrLogin'(){const _0x3f5ccc=a216_0x1360;if(_0x515427&&_0x2a2dba)return _0x515427;throw CliErrors[_0x3f5ccc(0x195)]();}};}function a216_0x1360(_0x53da12,_0x22e664){_0x53da12=_0x53da12-0x18e;const _0x294933=a216_0x2949();let _0x1360c9=_0x294933[_0x53da12];return _0x1360c9;}function a216_0x2949(){const _0x147c3a=['authRequired','5034450AHGkHs','56dNfQaN','1371875zDqXFb','3771567VHgMVR','55878NmlUuU','1ryXEXH','2531788WKqdwf','468040sjaJue','36JJFHoQ','384606wEBEFa'];a216_0x2949=function(){return _0x147c3a;};return a216_0x2949();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a216_0x257138=a216_0x3577;(function(_0x4f9d38,_0x265804){const _0x58d7c2=a216_0x3577,_0x8bd32f=_0x4f9d38();while(!![]){try{const _0x1e4cd4=-parseInt(_0x58d7c2(0x1ea))/0x1*(parseInt(_0x58d7c2(0x1e4))/0x2)+parseInt(_0x58d7c2(0x1f0))/0x3+parseInt(_0x58d7c2(0x1cd))/0x4+-parseInt(_0x58d7c2(0x1c5))/0x5+-parseInt(_0x58d7c2(0x1f1))/0x6*(parseInt(_0x58d7c2(0x1de))/0x7)+parseInt(_0x58d7c2(0x1d4))/0x8+parseInt(_0x58d7c2(0x1e9))/0x9;if(_0x1e4cd4===_0x265804)break;else _0x8bd32f['push'](_0x8bd32f['shift']());}catch(_0x2cb8ab){_0x8bd32f['push'](_0x8bd32f['shift']());}}}(a216_0x4327,0xca897));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a216_0x3577(_0x5c16dc,_0x3d31d0){_0x5c16dc=_0x5c16dc-0x1c4;const _0x4327c4=a216_0x4327();let _0x3577c6=_0x4327c4[_0x5c16dc];return _0x3577c6;}import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a216_0x257138(0x1e0);export const CONFIG_NAMES=[a216_0x257138(0x1e0),a216_0x257138(0x1d1),a216_0x257138(0x1ce)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1d8e0c=>_0x1d8e0c!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2feb0a){for(const _0x297cc0 of CONFIG_NAMES){const _0x31d807=resolve(_0x2feb0a,_0x297cc0);if(existsSync(_0x31d807))return _0x31d807;}return undefined;}export function findProjectRootDirectory(_0x5cb3e8=process[a216_0x257138(0x1da)]()){let _0x4fc58d=resolve(_0x5cb3e8);const {root:_0x4b236b}=parse(_0x4fc58d),_0x5878cb=homedir();while(!![]){if(resolveConfigPath(_0x4fc58d)){if(_0x4fc58d===_0x5878cb)break;return _0x4fc58d;}if(_0x4fc58d===_0x4b236b||_0x4fc58d===_0x5878cb)break;const _0x152bfc=dirname(_0x4fc58d);if(_0x152bfc===_0x4fc58d)break;_0x4fc58d=_0x152bfc;}return resolve(_0x5cb3e8);}export function getProjectConfigPath(){const _0x980af4=a216_0x257138;return resolveConfigPath(process[_0x980af4(0x1da)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x51efa1){const _0x404bbb=a216_0x257138;if(!existsSync(_0x51efa1))return{'status':_0x404bbb(0x1cc)};try{const _0x34aaa6=readFileSync(_0x51efa1,{'encoding':'utf8'});if(!_0x34aaa6?.[_0x404bbb(0x1e7)]())return{'status':'empty'};const _0x2dd795=JSON['parse'](_0x34aaa6);return{'status':'ok','data':_0x2dd795};}catch(_0x16488c){return{'status':_0x404bbb(0x1f3),'message':_0x16488c instanceof Error?_0x16488c[_0x404bbb(0x1dd)]:String(_0x16488c)};}}function parseCliConfigJsonFile(_0x3b4f79,_0x12bc9e,_0x235672){const _0x463ace=a216_0x257138,_0x3ac00a=inspectCliConfigJsonFile(_0x3b4f79);if(_0x3ac00a[_0x463ace(0x1d3)]==='missing'||_0x3ac00a[_0x463ace(0x1d3)]===_0x463ace(0x1f2))return{};if(_0x3ac00a[_0x463ace(0x1d3)]==='ok')return _0x3ac00a[_0x463ace(0x1d6)];return _0x12bc9e===_0x463ace(0x1df)&&_0x235672&&console[_0x463ace(0x1f3)](CLI_BIN_NAME+':\x20'+_0x235672+_0x463ace(0x1d9)+_0x3b4f79+_0x463ace(0x1d7)+_0x3ac00a[_0x463ace(0x1dd)]),{};}function a216_0x4327(){const _0x2bd3fc=['message','7DQMDBw','warn','.rabetbase.json','inherit','app','apps','4hXEeUe','cookie','get','trim','format','19024596qQNGIz','382929uysBJN','utf8','accessKey','stringify','defaultApp','apiDir','1734603OJbMrW','6999588coZFEV','empty','error','object','8117985rXPkeJ','keys','set','pageSize','Global','length','config','missing','1800616UvSfAJ','.lovrabetrc','migrated','riskLevel','.lovrabet.json','appcode','status','9947560BcLXFl','env','data','\x0a\x20\x20','silent','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','project','locale'];a216_0x4327=function(){return _0x2bd3fc;};return a216_0x4327();}function normalizeLegacyConfigShape(_0x58d4fa){const _0x1d0be3=a216_0x257138;if(!_0x58d4fa||typeof _0x58d4fa!==_0x1d0be3(0x1c4))return{'config':{},'migrated':![]};const _0xb0bc8a={..._0x58d4fa},_0x124aa6=_0xb0bc8a[_0x1d0be3(0x1e3)]&&typeof _0xb0bc8a[_0x1d0be3(0x1e3)]===_0x1d0be3(0x1c4)?{..._0xb0bc8a[_0x1d0be3(0x1e3)]}:{},_0x43dd45=Object[_0x1d0be3(0x1c6)](_0x124aa6)['length'],_0x25b2d3=_0xb0bc8a[_0x1d0be3(0x1d2)]||_0xb0bc8a['app'];let _0x592bc6=![];if(_0x25b2d3&&_0x43dd45===0x0){const _0x6d7282=typeof _0xb0bc8a[_0x1d0be3(0x1ee)]==='string'&&_0xb0bc8a['defaultApp'][_0x1d0be3(0x1e7)]()?_0xb0bc8a[_0x1d0be3(0x1ee)]:String(_0x25b2d3)['trim']();_0x124aa6[_0x6d7282]={'appcode':String(_0x25b2d3)['trim'](),..._0xb0bc8a[_0x1d0be3(0x1d5)]!=null?{'env':_0xb0bc8a[_0x1d0be3(0x1d5)]}:{},..._0xb0bc8a[_0x1d0be3(0x1ef)]!=null?{'apiDir':_0xb0bc8a['apiDir']}:{},..._0xb0bc8a[_0x1d0be3(0x1e5)]!=null?{'cookie':_0xb0bc8a[_0x1d0be3(0x1e5)]}:{},..._0xb0bc8a[_0x1d0be3(0x1ec)]!=null?{'accessKey':_0xb0bc8a[_0x1d0be3(0x1ec)]}:{},..._0xb0bc8a[_0x1d0be3(0x1e8)]!=null?{'format':_0xb0bc8a[_0x1d0be3(0x1e8)]}:{},..._0xb0bc8a[_0x1d0be3(0x1c8)]!=null?{'pageSize':_0xb0bc8a[_0x1d0be3(0x1c8)]}:{},..._0xb0bc8a['riskLevel']!=null?{'riskLevel':_0xb0bc8a[_0x1d0be3(0x1d0)]}:{},..._0xb0bc8a[_0x1d0be3(0x1dc)]!=null?{'locale':_0xb0bc8a[_0x1d0be3(0x1dc)]}:{}},_0xb0bc8a[_0x1d0be3(0x1e3)]=_0x124aa6;if(!_0xb0bc8a[_0x1d0be3(0x1ee)])_0xb0bc8a[_0x1d0be3(0x1ee)]=_0x6d7282;_0x592bc6=!![];}return(_0x1d0be3(0x1d2)in _0xb0bc8a||_0x1d0be3(0x1e2)in _0xb0bc8a)&&(delete _0xb0bc8a[_0x1d0be3(0x1d2)],delete _0xb0bc8a[_0x1d0be3(0x1e2)],_0x592bc6=!![]),{'config':_0xb0bc8a,'migrated':_0x592bc6};}function writeNormalizedConfigIfNeeded(_0x3bac95,_0x1db8da){const _0x5d1c17=a216_0x257138,_0x5c6a18=JSON[_0x5d1c17(0x1ed)](_0x1db8da,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5d1c17(0x1e6)](_0x3bac95)===_0x5c6a18)return;writeConfigFile(_0x3bac95,_0x1db8da),normalizedWriteCache[_0x5d1c17(0x1c7)](_0x3bac95,_0x5c6a18);}function parseAndNormalizeConfig(_0x464537,_0x49a0a0,_0x24c2e9){const _0x35142c=a216_0x257138,_0x3f49ae=parseCliConfigJsonFile(_0x464537,_0x49a0a0,_0x24c2e9),_0x73763f=normalizeLegacyConfigShape(_0x3f49ae);if(_0x73763f[_0x35142c(0x1cf)])try{writeNormalizedConfigIfNeeded(_0x464537,_0x73763f[_0x35142c(0x1cb)]);}catch{}return _0x73763f['config'];}export function loadRawConfigLayers(_0x5230c0){const _0x56cde3=a216_0x257138;let _0x380554={},_0x3401cd={};const _0x37eee4=resolveConfigPath(homedir());_0x37eee4&&(_0x380554=parseAndNormalizeConfig(_0x37eee4,_0x56cde3(0x1df),_0x56cde3(0x1c9)));const _0x2389d1=_0x5230c0??findProjectRootDirectory(),_0x22b555=resolveConfigPath(_0x2389d1);return _0x22b555&&(_0x3401cd=parseAndNormalizeConfig(_0x22b555,'warn','Project')),{'globalPath':_0x37eee4,'projectPath':_0x22b555,'globalConfig':_0x380554,'projectConfig':_0x3401cd};}const INHERIT_WHITELIST=[a216_0x257138(0x1e5),a216_0x257138(0x1ec),a216_0x257138(0x1dc),a216_0x257138(0x1e8),a216_0x257138(0x1d0),a216_0x257138(0x1c8)];export function mergeRawConfigLayers(_0xc36779){const _0x31f2f7=a216_0x257138,{globalConfig:_0x44a034,projectConfig:_0x3f3ca9}=_0xc36779,_0x472de8=Object[_0x31f2f7(0x1c6)](_0x3f3ca9)[_0x31f2f7(0x1ca)]>0x0;if(!_0x472de8)return mergeGlobalOnly(_0x44a034);if(_0x3f3ca9[_0x31f2f7(0x1e1)]===!![])return mergeFullInherit(_0x44a034,_0x3f3ca9);if(_0x3f3ca9[_0x31f2f7(0x1e1)]===![])return mergeIsolated(_0x3f3ca9);return mergeProjectFirst(_0x44a034,_0x3f3ca9);}function mergeGlobalOnly(_0x3e726b){const _0xdbe26=a216_0x257138,_0x3e7e98={..._0x3e726b},_0xf73c86=_0x3e726b[_0xdbe26(0x1e3)]&&typeof _0x3e726b['apps']===_0xdbe26(0x1c4)?_0x3e726b[_0xdbe26(0x1e3)]:{};if(Object['keys'](_0xf73c86)[_0xdbe26(0x1ca)]>0x0)_0x3e7e98['apps']=_0xf73c86;if(_0x3e726b['defaultApp'])_0x3e7e98[_0xdbe26(0x1ee)]=_0x3e726b[_0xdbe26(0x1ee)];else{const _0xb35517=Object[_0xdbe26(0x1c6)](_0xf73c86);if(_0xb35517['length']>0x0)_0x3e7e98[_0xdbe26(0x1ee)]=_0xb35517[0x0];}return _0x3e7e98;}function mergeIsolated(_0x1a97ca){const _0x198329=a216_0x257138,_0x240719={..._0x1a97ca};delete _0x240719[_0x198329(0x1e1)];const _0x2f2faf=_0x1a97ca[_0x198329(0x1e3)]&&typeof _0x1a97ca[_0x198329(0x1e3)]===_0x198329(0x1c4)?_0x1a97ca['apps']:{};Object['keys'](_0x2f2faf)['length']>0x0?_0x240719['apps']=_0x2f2faf:delete _0x240719['apps'];if(_0x198329(0x1ee)in _0x1a97ca)_0x240719[_0x198329(0x1ee)]=_0x1a97ca[_0x198329(0x1ee)];else Object['keys'](_0x2f2faf)[_0x198329(0x1ca)]>0x0?_0x240719[_0x198329(0x1ee)]=Object[_0x198329(0x1c6)](_0x2f2faf)[0x0]:delete _0x240719[_0x198329(0x1ee)];return _0x240719;}function mergeProjectFirst(_0x2c8847,_0x1334d2){const _0x5a92ab=a216_0x257138,_0x18a450={..._0x1334d2};delete _0x18a450[_0x5a92ab(0x1e1)];for(const _0x51ff7d of INHERIT_WHITELIST){!(_0x51ff7d in _0x18a450)&&_0x51ff7d in _0x2c8847&&(_0x18a450[_0x51ff7d]=_0x2c8847[_0x51ff7d]);}const _0x413dbf=_0x1334d2['apps']&&typeof _0x1334d2[_0x5a92ab(0x1e3)]===_0x5a92ab(0x1c4)?_0x1334d2[_0x5a92ab(0x1e3)]:{};Object[_0x5a92ab(0x1c6)](_0x413dbf)[_0x5a92ab(0x1ca)]>0x0?_0x18a450[_0x5a92ab(0x1e3)]=_0x413dbf:delete _0x18a450[_0x5a92ab(0x1e3)];if(_0x5a92ab(0x1ee)in _0x1334d2)_0x18a450[_0x5a92ab(0x1ee)]=_0x1334d2[_0x5a92ab(0x1ee)];else Object[_0x5a92ab(0x1c6)](_0x413dbf)['length']>0x0?_0x18a450['defaultApp']=Object[_0x5a92ab(0x1c6)](_0x413dbf)[0x0]:delete _0x18a450[_0x5a92ab(0x1ee)];return _0x18a450;}function mergeFullInherit(_0x56b434,_0x58c51b){const _0x59c380=a216_0x257138,_0x51801f=_0x56b434[_0x59c380(0x1e3)]&&typeof _0x56b434[_0x59c380(0x1e3)]==='object'?_0x56b434[_0x59c380(0x1e3)]:{},_0x24c6ef=_0x58c51b[_0x59c380(0x1e3)]&&typeof _0x58c51b[_0x59c380(0x1e3)]===_0x59c380(0x1c4)?_0x58c51b[_0x59c380(0x1e3)]:{},_0x50f2f0={..._0x51801f,..._0x24c6ef},_0x40100c={..._0x56b434,..._0x58c51b};delete _0x40100c[_0x59c380(0x1e1)];if(Object[_0x59c380(0x1c6)](_0x50f2f0)[_0x59c380(0x1ca)]>0x0)_0x40100c[_0x59c380(0x1e3)]=_0x50f2f0;if('defaultApp'in _0x58c51b)_0x40100c[_0x59c380(0x1ee)]=_0x58c51b['defaultApp'];else{if(Object[_0x59c380(0x1c6)](_0x24c6ef)[_0x59c380(0x1ca)]>0x0)_0x40100c['defaultApp']=Object[_0x59c380(0x1c6)](_0x24c6ef)[0x0];else{if(_0x56b434[_0x59c380(0x1ee)])_0x40100c[_0x59c380(0x1ee)]=_0x56b434[_0x59c380(0x1ee)];else{const _0x6eb1f1=Object[_0x59c380(0x1c6)](_0x51801f);if(_0x6eb1f1[_0x59c380(0x1ca)]>0x0)_0x40100c[_0x59c380(0x1ee)]=_0x6eb1f1[0x0];}}}return _0x40100c;}export function readRawConfigWithLayers(_0x168696){const _0x22700f=loadRawConfigLayers(_0x168696);return{'config':mergeRawConfigLayers(_0x22700f),'layers':_0x22700f};}export function readRawConfig(_0x12104c){return mergeRawConfigLayers(loadRawConfigLayers(_0x12104c));}export function readConfigFile(_0x39ea3f){const _0x2582da=a216_0x257138;return parseAndNormalizeConfig(_0x39ea3f,_0x2582da(0x1d8));}export function writeConfigFile(_0x586409,_0x5c97d0){const _0x2d3302=a216_0x257138,_0xf27576=dirname(_0x586409);!existsSync(_0xf27576)&&mkdirSync(_0xf27576,{'recursive':!![]});const _0x4f727a=_0x586409+'.tmp';try{writeFileSync(_0x4f727a,JSON[_0x2d3302(0x1ed)](_0x5c97d0,null,0x2)+'\x0a',{'encoding':_0x2d3302(0x1eb),'mode':0x180}),renameSync(_0x4f727a,_0x586409);}catch(_0x2c368f){try{unlinkSync(_0x4f727a);}catch{}throw _0x2c368f;}}export function resolveWriteConfigPath(_0x240fb3){const _0x5c0072=a216_0x257138,_0x4f71dc=_0x240fb3===_0x5c0072(0x1db)?process[_0x5c0072(0x1da)]():homedir(),_0xcddcd0=resolveConfigPath(_0x4f71dc);return _0xcddcd0??resolve(_0x4f71dc,NEW_CONFIG_NAME);}
|
|
1
|
+
const a217_0x289b2a=a217_0x389c;(function(_0x5c262e,_0xf15dea){const _0x46e9b7=a217_0x389c,_0x543bff=_0x5c262e();while(!![]){try{const _0x40d2fc=parseInt(_0x46e9b7(0x16b))/0x1+-parseInt(_0x46e9b7(0x14e))/0x2+parseInt(_0x46e9b7(0x157))/0x3*(-parseInt(_0x46e9b7(0x161))/0x4)+parseInt(_0x46e9b7(0x141))/0x5+-parseInt(_0x46e9b7(0x163))/0x6+parseInt(_0x46e9b7(0x154))/0x7+-parseInt(_0x46e9b7(0x151))/0x8*(-parseInt(_0x46e9b7(0x145))/0x9);if(_0x40d2fc===_0xf15dea)break;else _0x543bff['push'](_0x543bff['shift']());}catch(_0x56408e){_0x543bff['push'](_0x543bff['shift']());}}}(a217_0x5254,0xc8880));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a217_0x5254(){const _0x43eecc=['project','trim','missing','set','empty','length','apps','2288288ABxEsU','object','pageSize','6917000AVRzdL','keys','warn','3994284ptUxpc','format','.rabetbase.json','1216443FlVpKL','app','accessKey','inherit','data','env','riskLevel','defaultApp','.lovrabetrc','.lovrabet.json','4SVaFjC','stringify','956190yFwcdt','utf8','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cookie','appcode','Global','silent','migrated','126133lLhzLB','locale','error','cwd','get','string','4844980XmHIPS','filter','status','apiDir','9SGDwGN','message'];a217_0x5254=function(){return _0x43eecc;};return a217_0x5254();}import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';function a217_0x389c(_0x2dbf7e,_0x4049f1){_0x2dbf7e=_0x2dbf7e-0x140;const _0x5254cd=a217_0x5254();let _0x389c26=_0x5254cd[_0x2dbf7e];return _0x389c26;}export const NEW_CONFIG_NAME=a217_0x289b2a(0x156);export const CONFIG_NAMES=[a217_0x289b2a(0x156),a217_0x289b2a(0x160),a217_0x289b2a(0x15f)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a217_0x289b2a(0x142)](_0x10d618=>_0x10d618!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x236a7f){for(const _0x35f83a of CONFIG_NAMES){const _0x95dfcd=resolve(_0x236a7f,_0x35f83a);if(existsSync(_0x95dfcd))return _0x95dfcd;}return undefined;}export function findProjectRootDirectory(_0x41a138=process[a217_0x289b2a(0x16e)]()){let _0x12d78f=resolve(_0x41a138);const {root:_0x42805f}=parse(_0x12d78f),_0x496e7b=homedir();while(!![]){if(resolveConfigPath(_0x12d78f)){if(_0x12d78f===_0x496e7b)break;return _0x12d78f;}if(_0x12d78f===_0x42805f||_0x12d78f===_0x496e7b)break;const _0x18777e=dirname(_0x12d78f);if(_0x18777e===_0x12d78f)break;_0x12d78f=_0x18777e;}return resolve(_0x41a138);}export function getProjectConfigPath(){const _0x4dcf84=a217_0x289b2a;return resolveConfigPath(process[_0x4dcf84(0x16e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3e69a9){const _0x48fc3a=a217_0x289b2a;if(!existsSync(_0x3e69a9))return{'status':_0x48fc3a(0x149)};try{const _0x5976c3=readFileSync(_0x3e69a9,{'encoding':'utf8'});if(!_0x5976c3?.[_0x48fc3a(0x148)]())return{'status':_0x48fc3a(0x14b)};const _0x3dec60=JSON['parse'](_0x5976c3);return{'status':'ok','data':_0x3dec60};}catch(_0x3accbc){return{'status':'error','message':_0x3accbc instanceof Error?_0x3accbc['message']:String(_0x3accbc)};}}function parseCliConfigJsonFile(_0x535596,_0x2fa338,_0x35a77a){const _0x533b1f=a217_0x289b2a,_0x2b2671=inspectCliConfigJsonFile(_0x535596);if(_0x2b2671['status']===_0x533b1f(0x149)||_0x2b2671[_0x533b1f(0x143)]===_0x533b1f(0x14b))return{};if(_0x2b2671['status']==='ok')return _0x2b2671[_0x533b1f(0x15b)];return _0x2fa338==='warn'&&_0x35a77a&&console[_0x533b1f(0x16d)](CLI_BIN_NAME+':\x20'+_0x35a77a+_0x533b1f(0x165)+_0x535596+'\x0a\x20\x20'+_0x2b2671[_0x533b1f(0x146)]),{};}function normalizeLegacyConfigShape(_0x7e29fa){const _0x3387b3=a217_0x289b2a;if(!_0x7e29fa||typeof _0x7e29fa!==_0x3387b3(0x14f))return{'config':{},'migrated':![]};const _0x5acb12={..._0x7e29fa},_0x1a4dce=_0x5acb12[_0x3387b3(0x14d)]&&typeof _0x5acb12[_0x3387b3(0x14d)]===_0x3387b3(0x14f)?{..._0x5acb12[_0x3387b3(0x14d)]}:{},_0x4eca6a=Object[_0x3387b3(0x152)](_0x1a4dce)[_0x3387b3(0x14c)],_0x15d75d=_0x5acb12[_0x3387b3(0x167)]||_0x5acb12['app'];let _0x5f467a=![];if(_0x15d75d&&_0x4eca6a===0x0){const _0x3d9c65=typeof _0x5acb12[_0x3387b3(0x15e)]===_0x3387b3(0x140)&&_0x5acb12[_0x3387b3(0x15e)][_0x3387b3(0x148)]()?_0x5acb12[_0x3387b3(0x15e)]:String(_0x15d75d)[_0x3387b3(0x148)]();_0x1a4dce[_0x3d9c65]={'appcode':String(_0x15d75d)[_0x3387b3(0x148)](),..._0x5acb12[_0x3387b3(0x15c)]!=null?{'env':_0x5acb12[_0x3387b3(0x15c)]}:{},..._0x5acb12['apiDir']!=null?{'apiDir':_0x5acb12[_0x3387b3(0x144)]}:{},..._0x5acb12[_0x3387b3(0x166)]!=null?{'cookie':_0x5acb12[_0x3387b3(0x166)]}:{},..._0x5acb12[_0x3387b3(0x159)]!=null?{'accessKey':_0x5acb12[_0x3387b3(0x159)]}:{},..._0x5acb12['format']!=null?{'format':_0x5acb12[_0x3387b3(0x155)]}:{},..._0x5acb12[_0x3387b3(0x150)]!=null?{'pageSize':_0x5acb12['pageSize']}:{},..._0x5acb12[_0x3387b3(0x15d)]!=null?{'riskLevel':_0x5acb12[_0x3387b3(0x15d)]}:{},..._0x5acb12['locale']!=null?{'locale':_0x5acb12[_0x3387b3(0x16c)]}:{}},_0x5acb12[_0x3387b3(0x14d)]=_0x1a4dce;if(!_0x5acb12[_0x3387b3(0x15e)])_0x5acb12['defaultApp']=_0x3d9c65;_0x5f467a=!![];}return(_0x3387b3(0x167)in _0x5acb12||_0x3387b3(0x158)in _0x5acb12)&&(delete _0x5acb12['appcode'],delete _0x5acb12[_0x3387b3(0x158)],_0x5f467a=!![]),{'config':_0x5acb12,'migrated':_0x5f467a};}function writeNormalizedConfigIfNeeded(_0x35b40d,_0x31b9e9){const _0x1e7aff=a217_0x289b2a,_0x2f4daf=JSON[_0x1e7aff(0x162)](_0x31b9e9,null,0x2)+'\x0a';if(normalizedWriteCache[_0x1e7aff(0x16f)](_0x35b40d)===_0x2f4daf)return;writeConfigFile(_0x35b40d,_0x31b9e9),normalizedWriteCache[_0x1e7aff(0x14a)](_0x35b40d,_0x2f4daf);}function parseAndNormalizeConfig(_0x136145,_0x1479a6,_0x5ed5ae){const _0x23c26b=a217_0x289b2a,_0x2be5ee=parseCliConfigJsonFile(_0x136145,_0x1479a6,_0x5ed5ae),_0x26d044=normalizeLegacyConfigShape(_0x2be5ee);if(_0x26d044[_0x23c26b(0x16a)])try{writeNormalizedConfigIfNeeded(_0x136145,_0x26d044['config']);}catch{}return _0x26d044['config'];}export function loadRawConfigLayers(_0xf4d777){const _0x24a5f0=a217_0x289b2a;let _0x5dfa3e={},_0x36ee13={};const _0x4576e6=resolveConfigPath(homedir());_0x4576e6&&(_0x5dfa3e=parseAndNormalizeConfig(_0x4576e6,_0x24a5f0(0x153),_0x24a5f0(0x168)));const _0x257aee=_0xf4d777??findProjectRootDirectory(),_0x21939f=resolveConfigPath(_0x257aee);return _0x21939f&&(_0x36ee13=parseAndNormalizeConfig(_0x21939f,_0x24a5f0(0x153),'Project')),{'globalPath':_0x4576e6,'projectPath':_0x21939f,'globalConfig':_0x5dfa3e,'projectConfig':_0x36ee13};}const INHERIT_WHITELIST=[a217_0x289b2a(0x166),a217_0x289b2a(0x159),'locale','format','riskLevel','pageSize'];export function mergeRawConfigLayers(_0x3a24f0){const _0x432079=a217_0x289b2a,{globalConfig:_0x4903d8,projectConfig:_0x1d9bde}=_0x3a24f0,_0x5249b0=Object[_0x432079(0x152)](_0x1d9bde)[_0x432079(0x14c)]>0x0;if(!_0x5249b0)return mergeGlobalOnly(_0x4903d8);if(_0x1d9bde[_0x432079(0x15a)]===!![])return mergeFullInherit(_0x4903d8,_0x1d9bde);if(_0x1d9bde[_0x432079(0x15a)]===![])return mergeIsolated(_0x1d9bde);return mergeProjectFirst(_0x4903d8,_0x1d9bde);}function mergeGlobalOnly(_0x47ee72){const _0x27f564=a217_0x289b2a,_0x32dd08={..._0x47ee72},_0x59bbfb=_0x47ee72['apps']&&typeof _0x47ee72['apps']===_0x27f564(0x14f)?_0x47ee72['apps']:{};if(Object['keys'](_0x59bbfb)[_0x27f564(0x14c)]>0x0)_0x32dd08['apps']=_0x59bbfb;if(_0x47ee72[_0x27f564(0x15e)])_0x32dd08[_0x27f564(0x15e)]=_0x47ee72['defaultApp'];else{const _0x10a1f5=Object[_0x27f564(0x152)](_0x59bbfb);if(_0x10a1f5[_0x27f564(0x14c)]>0x0)_0x32dd08['defaultApp']=_0x10a1f5[0x0];}return _0x32dd08;}function mergeIsolated(_0x267b29){const _0x3ef44b=a217_0x289b2a,_0x79f52a={..._0x267b29};delete _0x79f52a[_0x3ef44b(0x15a)];const _0x4baeb9=_0x267b29[_0x3ef44b(0x14d)]&&typeof _0x267b29[_0x3ef44b(0x14d)]===_0x3ef44b(0x14f)?_0x267b29['apps']:{};Object[_0x3ef44b(0x152)](_0x4baeb9)[_0x3ef44b(0x14c)]>0x0?_0x79f52a[_0x3ef44b(0x14d)]=_0x4baeb9:delete _0x79f52a[_0x3ef44b(0x14d)];if(_0x3ef44b(0x15e)in _0x267b29)_0x79f52a[_0x3ef44b(0x15e)]=_0x267b29[_0x3ef44b(0x15e)];else Object[_0x3ef44b(0x152)](_0x4baeb9)[_0x3ef44b(0x14c)]>0x0?_0x79f52a['defaultApp']=Object[_0x3ef44b(0x152)](_0x4baeb9)[0x0]:delete _0x79f52a['defaultApp'];return _0x79f52a;}function mergeProjectFirst(_0x3b0d72,_0x576a3f){const _0x504d7f=a217_0x289b2a,_0x32574d={..._0x576a3f};delete _0x32574d['inherit'];for(const _0x5591af of INHERIT_WHITELIST){!(_0x5591af in _0x32574d)&&_0x5591af in _0x3b0d72&&(_0x32574d[_0x5591af]=_0x3b0d72[_0x5591af]);}const _0x1c951e=_0x576a3f[_0x504d7f(0x14d)]&&typeof _0x576a3f[_0x504d7f(0x14d)]===_0x504d7f(0x14f)?_0x576a3f[_0x504d7f(0x14d)]:{};Object[_0x504d7f(0x152)](_0x1c951e)[_0x504d7f(0x14c)]>0x0?_0x32574d[_0x504d7f(0x14d)]=_0x1c951e:delete _0x32574d['apps'];if('defaultApp'in _0x576a3f)_0x32574d[_0x504d7f(0x15e)]=_0x576a3f[_0x504d7f(0x15e)];else Object[_0x504d7f(0x152)](_0x1c951e)[_0x504d7f(0x14c)]>0x0?_0x32574d[_0x504d7f(0x15e)]=Object[_0x504d7f(0x152)](_0x1c951e)[0x0]:delete _0x32574d[_0x504d7f(0x15e)];return _0x32574d;}function mergeFullInherit(_0x5b447a,_0x42f6d5){const _0x59f168=a217_0x289b2a,_0x581cdf=_0x5b447a[_0x59f168(0x14d)]&&typeof _0x5b447a[_0x59f168(0x14d)]===_0x59f168(0x14f)?_0x5b447a['apps']:{},_0x530924=_0x42f6d5[_0x59f168(0x14d)]&&typeof _0x42f6d5[_0x59f168(0x14d)]===_0x59f168(0x14f)?_0x42f6d5[_0x59f168(0x14d)]:{},_0x405922={..._0x581cdf,..._0x530924},_0x5b6629={..._0x5b447a,..._0x42f6d5};delete _0x5b6629[_0x59f168(0x15a)];if(Object[_0x59f168(0x152)](_0x405922)['length']>0x0)_0x5b6629['apps']=_0x405922;if(_0x59f168(0x15e)in _0x42f6d5)_0x5b6629[_0x59f168(0x15e)]=_0x42f6d5['defaultApp'];else{if(Object[_0x59f168(0x152)](_0x530924)[_0x59f168(0x14c)]>0x0)_0x5b6629[_0x59f168(0x15e)]=Object[_0x59f168(0x152)](_0x530924)[0x0];else{if(_0x5b447a[_0x59f168(0x15e)])_0x5b6629[_0x59f168(0x15e)]=_0x5b447a[_0x59f168(0x15e)];else{const _0x509781=Object['keys'](_0x581cdf);if(_0x509781[_0x59f168(0x14c)]>0x0)_0x5b6629['defaultApp']=_0x509781[0x0];}}}return _0x5b6629;}export function readRawConfigWithLayers(_0x1e4ebf){const _0x3bc5e8=loadRawConfigLayers(_0x1e4ebf);return{'config':mergeRawConfigLayers(_0x3bc5e8),'layers':_0x3bc5e8};}export function readRawConfig(_0x32b134){return mergeRawConfigLayers(loadRawConfigLayers(_0x32b134));}export function readConfigFile(_0x161516){const _0x5b765a=a217_0x289b2a;return parseAndNormalizeConfig(_0x161516,_0x5b765a(0x169));}export function writeConfigFile(_0xe351ba,_0x145068){const _0x207333=a217_0x289b2a,_0xcc1923=dirname(_0xe351ba);!existsSync(_0xcc1923)&&mkdirSync(_0xcc1923,{'recursive':!![]});const _0x2f3ad4=_0xe351ba+'.tmp';try{writeFileSync(_0x2f3ad4,JSON[_0x207333(0x162)](_0x145068,null,0x2)+'\x0a',{'encoding':_0x207333(0x164),'mode':0x180}),renameSync(_0x2f3ad4,_0xe351ba);}catch(_0x36187d){try{unlinkSync(_0x2f3ad4);}catch{}throw _0x36187d;}}export function resolveWriteConfigPath(_0x2e0523){const _0x221008=a217_0x289b2a,_0x5e71c7=_0x2e0523===_0x221008(0x147)?process['cwd']():homedir(),_0x502d2b=resolveConfigPath(_0x5e71c7);return _0x502d2b??resolve(_0x5e71c7,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x30d7e8=a218_0x1465;(function(_0x2e66a0,_0x405c94){const _0x123e3a=a218_0x1465,_0x3891d4=_0x2e66a0();while(!![]){try{const _0x85a5e5=-parseInt(_0x123e3a(0xaa))/0x1+parseInt(_0x123e3a(0xc7))/0x2+-parseInt(_0x123e3a(0xb8))/0x3+parseInt(_0x123e3a(0xb9))/0x4+parseInt(_0x123e3a(0xaf))/0x5+-parseInt(_0x123e3a(0xc3))/0x6+parseInt(_0x123e3a(0xbe))/0x7;if(_0x85a5e5===_0x405c94)break;else _0x3891d4['push'](_0x3891d4['shift']());}catch(_0x2e5bfc){_0x3891d4['push'](_0x3891d4['shift']());}}}(a218_0x58b3,0x853de));import{resolve}from'node:path';function a218_0x1465(_0x2a9aad,_0x17d61e){_0x2a9aad=_0x2a9aad-0xa7;const _0x58b3dc=a218_0x58b3();let _0x1465b8=_0x58b3dc[_0x2a9aad];return _0x1465b8;}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(_0x3caed4){return process.env[`RABETBASE_${_0x3caed4}`]||process.env[`LOVRABET_${_0x3caed4}`]||undefined;}function optionalString(_0x391d92){const _0x25541e=a218_0x1465;return typeof _0x391d92==='string'&&_0x391d92[_0x25541e(0xcc)]()?_0x391d92['trim']():undefined;}export async function createContext(_0x15eca5){const _0x137bab=a218_0x1465,{config:_0x5c7ebb,layers:_0x21c5b7}=readRawConfigWithLayers(),_0x48d856=buildConfig(_0x5c7ebb,_0x15eca5,_0x21c5b7);await initGlobalEnvironment(_0x48d856);const {getUserDomain:_0x29fc06,getApiDomain:_0x7fd36e}=await import(_0x137bab(0xca)),_0x357949={'apiDomain':_0x7fd36e(),'userDomain':_0x29fc06()},_0xf3beff=await buildAuth(_0x48d856);logger[_0x137bab(0xbf)](process[_0x137bab(0xbd)]());const _0xacb506=(CLI_BIN_NAME+'\x20'+process[_0x137bab(0xb5)]['slice'](0x2)[_0x137bab(0xa8)]('\x20'))['trim']();logger[_0x137bab(0xa7)](_0xacb506);const {isNonInteractive:_0x21275e}=await import(_0x137bab(0xb2)),_0x50f0eb=_0x21275e(_0x15eca5);return{'config':_0x48d856,'auth':_0xf3beff,'logger':logger,'env':_0x357949,'nonInteractive':_0x50f0eb};}function a218_0x58b3(){const _0x43858a=['900913XsralR','length','project','raw','merged','200865cCprVQ','cookie','api.ts','./utils/is-non-interactive.js','userDomain','entries','argv','appcode','./constant/env.js','958938fmCukl','2218216MyAIFq','-api.ts','defaultApp','apps','cwd','9779378QArcFS','setLogPath','object','map','globalConfig','6060090gfvbTm','keys','template_base_url','apiDomain','1569102HeYMGG','https://g.lovrabet.com/dist/lovrabet-skill','apiDir','./constant/domain.js','string','trim','setRawCommand','join','values'];a218_0x58b3=function(){return _0x43858a;};return a218_0x58b3();}export function buildConfigFromFlags(_0x3d3e59){const {config:_0x198726,layers:_0x5a642e}=readRawConfigWithLayers();return buildConfig(_0x198726,_0x3d3e59,_0x5a642e);}export async function initGlobalEnvironment(_0x5d4571){const _0x3da7b8=a218_0x1465,{initEnv:_0x450aa8}=await import(_0x3da7b8(0xb7));_0x450aa8(_0x5d4571['env']);const {initDomains:_0x390dd7}=await import(_0x3da7b8(0xca));_0x390dd7({'apiDomain':optionalString(_0x5d4571[_0x3da7b8(0xad)]?.[_0x3da7b8(0xc6)]),'userDomain':optionalString(_0x5d4571[_0x3da7b8(0xad)]?.[_0x3da7b8(0xb3)]),'runtimeDomain':optionalString(_0x5d4571['raw']?.['runtimeDomain'])});}export function getConfigAppCode(_0x28c8d4){const _0x35a6ed=a218_0x1465,_0x406b3f=readRawConfig(_0x28c8d4);if(_0x406b3f[_0x35a6ed(0xbc)]&&typeof _0x406b3f[_0x35a6ed(0xbc)]===_0x35a6ed(0xc0)){const _0x508b70=_0x406b3f[_0x35a6ed(0xbb)];if(_0x508b70&&_0x406b3f[_0x35a6ed(0xbc)][_0x508b70]?.[_0x35a6ed(0xb6)])return String(_0x406b3f[_0x35a6ed(0xbc)][_0x508b70][_0x35a6ed(0xb6)])[_0x35a6ed(0xcc)]();const _0x2207a2=Object[_0x35a6ed(0xa9)](_0x406b3f[_0x35a6ed(0xbc)])[0x0];if(_0x2207a2?.[_0x35a6ed(0xb6)])return String(_0x2207a2[_0x35a6ed(0xb6)])[_0x35a6ed(0xcc)]();}const _0x49543c=_0x406b3f['appcode']||_0x406b3f['app'];if(typeof _0x49543c!=='string'||_0x49543c[_0x35a6ed(0xcc)]()==='')return undefined;return _0x49543c[_0x35a6ed(0xcc)]();}export function getMultiAppConfigs(_0x56f8fc=a218_0x30d7e8(0xac),_0x383c2c){const _0x11afd4=a218_0x30d7e8,_0x3bf1d7=loadRawConfigLayers(_0x383c2c);let _0x4d9ec5,_0x3b03b9;if(_0x56f8fc===_0x11afd4(0xae)){const _0x5276a6=_0x3bf1d7['globalConfig'][_0x11afd4(0xbc)]&&typeof _0x3bf1d7[_0x11afd4(0xc2)][_0x11afd4(0xbc)]===_0x11afd4(0xc0)?_0x3bf1d7['globalConfig']['apps']:{},_0x32bdd9=_0x3bf1d7['projectConfig'][_0x11afd4(0xbc)]&&typeof _0x3bf1d7['projectConfig'][_0x11afd4(0xbc)]===_0x11afd4(0xc0)?_0x3bf1d7['projectConfig']['apps']:{};_0x4d9ec5={..._0x5276a6,..._0x32bdd9};const _0x238143=readRawConfig(_0x383c2c);_0x3b03b9=_0x238143[_0x11afd4(0xbb)];}else _0x4d9ec5=_0x3bf1d7['projectConfig'][_0x11afd4(0xbc)],_0x3b03b9=_0x3bf1d7['projectConfig']['defaultApp'];if(!_0x4d9ec5||typeof _0x4d9ec5!==_0x11afd4(0xc0)||Object[_0x11afd4(0xc4)](_0x4d9ec5)[_0x11afd4(0xab)]===0x0)return null;return Object[_0x11afd4(0xb4)](_0x4d9ec5)[_0x11afd4(0xc1)](([_0x2bd5ca,_0x480db1])=>({'name':_0x2bd5ca,'appcode':_0x480db1?.[_0x11afd4(0xb6)]||'','isDefault':_0x2bd5ca===_0x3b03b9,'env':_0x480db1?.['env'],'apiDir':_0x480db1?.[_0x11afd4(0xc9)],'cookie':_0x480db1?.[_0x11afd4(0xb0)]||undefined}))['filter'](_0x3c6b9a=>_0x3c6b9a[_0x11afd4(0xb6)]);}export function getTemplateBaseUrl(_0x337e12){const _0x445dfc=a218_0x30d7e8,_0x5e5c88=readRawConfig(_0x337e12);if(_0x5e5c88[_0x445dfc(0xc5)]&&typeof _0x5e5c88[_0x445dfc(0xc5)]===_0x445dfc(0xcb))return _0x5e5c88[_0x445dfc(0xc5)]['replace'](/\/$/,'');return _0x445dfc(0xc8);}function buildConfig(_0x4b06b4,_0x1cf035,_0x42d218){return{...resolveAppConfig({'raw':_0x4b06b4,'flags':_0x1cf035,'layers':_0x42d218,'readEnv':env}),'raw':_0x4b06b4};}export function resolveApiFilePath(_0x6f53db,_0x6e9d73){const _0x2df716=a218_0x30d7e8,_0xefc495=resolve(process[_0x2df716(0xbd)](),_0x6f53db),_0x44a98e=resolve(_0xefc495,_0x2df716(0xb1));if(!_0x6e9d73)return _0x44a98e;const _0x467575=readRawConfig(),_0x20eb35=_0x467575['apps']&&typeof _0x467575['apps']==='object'?_0x467575[_0x2df716(0xbc)]:{},_0x7e79be=Object[_0x2df716(0xb4)](_0x20eb35)['find'](([,_0x4f8def])=>_0x4f8def?.[_0x2df716(0xb6)]===_0x6e9d73);if(!_0x7e79be)return _0x44a98e;const [_0x927a48,_0x6835b6]=_0x7e79be,_0x38fc6d=typeof _0x467575['defaultApp']===_0x2df716(0xcb)?_0x467575['defaultApp']:undefined;if(_0x6835b6?.['apiDir'])return _0x44a98e;if(_0x38fc6d&&_0x927a48!==_0x38fc6d)return resolve(_0xefc495,_0x927a48+_0x2df716(0xba));return _0x44a98e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3627d3,_0x4e45d4){const _0x401546=a219_0x4ef7,_0x19cd0d=_0x3627d3();while(!![]){try{const _0x1a3fdb=-parseInt(_0x401546(0x105))/0x1*(parseInt(_0x401546(0xfa))/0x2)+-parseInt(_0x401546(0xf9))/0x3+parseInt(_0x401546(0xfd))/0x4+parseInt(_0x401546(0x100))/0x5+parseInt(_0x401546(0x104))/0x6+-parseInt(_0x401546(0xfc))/0x7*(parseInt(_0x401546(0xf6))/0x8)+-parseInt(_0x401546(0xf8))/0x9;if(_0x1a3fdb===_0x4e45d4)break;else _0x19cd0d['push'](_0x19cd0d['shift']());}catch(_0x2fe5a7){_0x19cd0d['push'](_0x19cd0d['shift']());}}}(a219_0x562b,0xedcb3));function a219_0x4ef7(_0x37a036,_0x31d140){_0x37a036=_0x37a036-0xf6;const _0x562b6e=a219_0x562b();let _0x4ef734=_0x562b6e[_0x37a036];return _0x4ef734;}import{readFileSync,existsSync}from'node:fs';function a219_0x562b(){const _0x59f4d3=['719115hmTMgO','alias','utf-8','exec','10952190ODqVba','7thdPFw','datasetCode','has','16WilLQi','set','8821278WYYrGJ','614733HJjrzG','28536zhkrkG','api.ts','501340zoWKXB','1731936cYOinH','get','find'];a219_0x562b=function(){return _0x59f4d3;};return a219_0x562b();}import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x519c44){const _0x50e7c3=a219_0x4ef7,_0x41b8c7=[],_0x22ae71=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x2216f8;while((_0x2216f8=_0x22ae71[_0x50e7c3(0x103)](_0x519c44))!==null){_0x41b8c7['push']({'datasetCode':_0x2216f8[0x1],'tableName':_0x2216f8[0x2],'name':_0x2216f8[0x3],'alias':_0x2216f8[0x4]});}return _0x41b8c7;}export function loadAliasMap(_0x359456,_0x25aaa6,_0x486f51){const _0x218053=a219_0x4ef7,_0x93d7d6=_0x486f51??resolve(process['cwd'](),_0x359456,_0x218053(0xfb));if(cache[_0x218053(0x107)](_0x93d7d6))return cache[_0x218053(0xfe)](_0x93d7d6);if(!existsSync(_0x93d7d6))return cache['set'](_0x93d7d6,[]),[];try{const _0x50ff62=readFileSync(_0x93d7d6,_0x218053(0x102)),_0x41bd56=parseApiFile(_0x50ff62);return cache[_0x218053(0xf7)](_0x93d7d6,_0x41bd56),_0x41bd56;}catch{return cache['set'](_0x93d7d6,[]),[];}}export function resolveAlias(_0x2b22e4,_0x152c79,_0x3d0f67,_0x4d4d18){const _0x2f543d=a219_0x4ef7;if(!_0x152c79)return undefined;const _0x47c0b4=loadAliasMap(_0x2b22e4,_0x3d0f67,_0x4d4d18),_0x1a60c8=_0x47c0b4[_0x2f543d(0xff)](_0x1d0c22=>_0x1d0c22[_0x2f543d(0x101)]===_0x152c79);return _0x1a60c8?.[_0x2f543d(0x106)];}export function listAliases(_0x267d24,_0x5c4c65,_0x5c7966){return loadAliasMap(_0x267d24,_0x5c4c65,_0x5c7966);}
|