@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- 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/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.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/react/create.d.ts +2 -0
- package/lib/commands/page/react/create.js +1 -0
- package/lib/commands/page/react/detail.d.ts +2 -0
- package/lib/commands/page/react/detail.js +1 -0
- package/lib/commands/page/react/list.d.ts +2 -0
- package/lib/commands/page/react/list.js +1 -0
- package/lib/commands/page/react/publish.d.ts +2 -0
- package/lib/commands/page/react/publish.js +1 -0
- package/lib/commands/page/react/shared.d.ts +78 -0
- package/lib/commands/page/react/shared.js +1 -0
- package/lib/commands/page/react/syntax.d.ts +18 -0
- package/lib/commands/page/react/syntax.js +1 -0
- package/lib/commands/page/react/template.d.ts +8 -0
- package/lib/commands/page/react/template.js +1 -0
- package/lib/commands/page/react/update.d.ts +2 -0
- package/lib/commands/page/react/update.js +1 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +1 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/non-interactive.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/create.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.d.ts +2 -0
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
- package/lib/commands/user-account/index.d.ts +2 -0
- package/lib/commands/user-account/index.js +1 -0
- 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 +117 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.d.ts +3 -0
- package/lib/postinstall.js +1 -0
- 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.d.ts +37 -0
- package/lib/skills/builtin-skill.js +1 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +4 -2
- 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/copy-directory.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 +9 -3
- package/scripts/postinstall.mjs +24 -0
- package/skills/rabetbase/SKILL.md +493 -0
- package/skills/rabetbase/guides/backend-function.md +835 -0
- package/skills/rabetbase/guides/best-practices.md +137 -0
- package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
- package/skills/rabetbase/guides/conflict-detection.md +119 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
- package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
- package/skills/rabetbase/guides/frontend-development.md +179 -0
- package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
- package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
- package/skills/rabetbase/guides/page-development-workflow.md +187 -0
- package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
- package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
- package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
- package/skills/rabetbase/guides/sql-mybatis.md +126 -0
- package/skills/rabetbase/guides/troubleshooting.md +67 -0
- package/skills/rabetbase/guides/typescript-sdk.md +227 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
- package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
- package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
- package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
- package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
- package/skills/rabetbase/knowledge/react-page/components.md +225 -0
- package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
- package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
- package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
- package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
- package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
- package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
- package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
- package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
- package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
- package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
- package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
- package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
- package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
- package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
- package/skills/rabetbase/references/rabetbase-config.md +296 -0
- package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
- package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
- package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
- package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
- package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
- package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
- package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
- package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
- package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
- package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
- package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
- package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
- package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
- package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
- package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
- package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
- package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
- package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
- package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
- package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
- package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
- package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
- package/skills/rabetbase/references/rabetbase-file.md +35 -0
- package/skills/rabetbase/references/rabetbase-init.md +70 -0
- package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
- package/skills/rabetbase/references/rabetbase-kb.md +62 -0
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
- package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
- package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
- package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
- package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
- package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
- package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
- package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
- package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
- package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
- package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
- package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
- package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
- package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
- package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
- package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
- package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
- package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
- package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
- package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
- package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
- package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
- package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
- package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
- package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
- package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
- package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
- package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
- package/skills/rabetbase/references/rabetbase-run.md +53 -0
- package/skills/rabetbase/references/rabetbase-schema.md +22 -0
- package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
- package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
- package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
- package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
- package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
- package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
- package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
- package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
- package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
- package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
- package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
- package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
- package/skills/rabetbase/references/rabetbase-update.md +56 -0
- package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
- package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
- package/skills/rabetbase.manifest.json +137 -0
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x29d742=a204_0x4d75;function a204_0x4e97(){const _0x33efc2=['en-US','accessKey','pageSize','defaultApp','API\x20directory\x20path','9gESuUJ','format','riskLevel','Default\x20page\x20size','inherit','5066320zlapSU','locale','app','408942cFNHol','3823528YUssNo','toLowerCase','appcode','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','376568JmaKiB','7WKpYAf','1652970mVaPAP','Config\x20key\x20(','join','string','env','331878FaXYfZ','apiDir','apps','length','zh-CN','6ElhuOP','Risk\x20level','Target\x20environment','defaultFormat','357298mroqeN','cookie','trim','number'];a204_0x4e97=function(){return _0x33efc2;};return a204_0x4e97();}(function(_0x1d3513,_0x5c9c4e){const _0x26a5ea=a204_0x4d75,_0x33579e=_0x1d3513();while(!![]){try{const _0x39e517=-parseInt(_0x26a5ea(0x78))/0x1+-parseInt(_0x26a5ea(0x9a))/0x2*(-parseInt(_0x26a5ea(0x95))/0x3)+-parseInt(_0x26a5ea(0x8e))/0x4+parseInt(_0x26a5ea(0x90))/0x5+-parseInt(_0x26a5ea(0x89))/0x6*(-parseInt(_0x26a5ea(0x8f))/0x7)+-parseInt(_0x26a5ea(0x8a))/0x8*(-parseInt(_0x26a5ea(0x81))/0x9)+-parseInt(_0x26a5ea(0x86))/0xa;if(_0x39e517===_0x5c9c4e)break;else _0x33579e['push'](_0x33579e['shift']());}catch(_0x5f1b53){_0x33579e['push'](_0x33579e['shift']());}}}(a204_0x4e97,0x3d282));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=[a204_0x29d742(0x79),a204_0x29d742(0x7d),'locale',a204_0x29d742(0x82),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env','locale',a204_0x29d742(0x82),a204_0x29d742(0x79),a204_0x29d742(0x7d),a204_0x29d742(0x96)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5a70f8){const _0x43781c=a204_0x29d742;return[..._0x5a70f8][_0x43781c(0x92)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x159743){return TOP_LEVEL_CONFIG_KEYS['has'](_0x159743);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x156814=a204_0x29d742;return _0x156814(0x91)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a204_0x29d742(0x94),'apiDir':a204_0x29d742(0x96),'cookie':a204_0x29d742(0x79),'accessKey':a204_0x29d742(0x7d),'defaultFormat':a204_0x29d742(0x82),'pageSize':'pageSize','riskLevel':a204_0x29d742(0x83),'locale':a204_0x29d742(0x87)};function a204_0x4d75(_0x5a1d33,_0x30f01e){_0x5a1d33=_0x5a1d33-0x78;const _0x4e977c=a204_0x4e97();let _0x4d7512=_0x4e977c[_0x5a1d33];return _0x4d7512;}export function getAppProfileFlagDefs(){const _0x43a594=a204_0x29d742;return[{'name':_0x43a594(0x94),'type':'string','description':_0x43a594(0x9c),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x43a594(0x96),'type':'string','description':_0x43a594(0x80)},{'name':_0x43a594(0x79),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x43a594(0x7d),'type':'string','description':'Access\x20key','hidden':!![]},{'name':_0x43a594(0x9d),'type':_0x43a594(0x93),'description':_0x43a594(0x8d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x43a594(0x7e),'type':_0x43a594(0x7b),'description':_0x43a594(0x84)},{'name':_0x43a594(0x83),'type':_0x43a594(0x93),'description':_0x43a594(0x9b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x43a594(0x87),'type':_0x43a594(0x93),'description':'Locale'}];}export function collectAppProfileOverrides(_0x27b8e8){const _0xa10667={};for(const [_0xb69fc,_0x3e5313]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x54b6f1=_0x27b8e8(_0xb69fc);if(!_0x54b6f1)continue;_0xa10667[_0x3e5313]=_0x3e5313==='pageSize'?Number(_0x54b6f1):_0x54b6f1;}return _0xa10667;}export function buildAppProfileListFields(_0x1cecb2){const _0x4c8569=a204_0x29d742;return{'env':_0x1cecb2[_0x4c8569(0x94)]??null,'apiDir':_0x1cecb2['apiDir']??null,'hasCookie':!!_0x1cecb2[_0x4c8569(0x79)],'hasAccessKey':!!_0x1cecb2[_0x4c8569(0x7d)],'format':_0x1cecb2[_0x4c8569(0x82)]??null,'pageSize':_0x1cecb2['pageSize']??null,'riskLevel':_0x1cecb2['riskLevel']??null,'locale':_0x1cecb2['locale']??null};}export function buildAppDoctorFields(_0x34f04f,_0x512517){const _0x4130b5=a204_0x29d742;return{'env':{'value':_0x34f04f[_0x4130b5(0x94)]||_0x512517[_0x4130b5(0x94)],'source':_0x34f04f['env']?'app':'inherit'},'apiDir':{'value':_0x34f04f['apiDir']||_0x512517[_0x4130b5(0x96)],'source':_0x34f04f[_0x4130b5(0x96)]?_0x4130b5(0x88):_0x4130b5(0x85)},'cookie':{'value':_0x34f04f[_0x4130b5(0x79)]||_0x512517[_0x4130b5(0x79)],'source':_0x34f04f['cookie']?_0x4130b5(0x88):'inherit'},'accessKey':{'value':_0x34f04f[_0x4130b5(0x7d)]||_0x512517[_0x4130b5(0x7d)],'source':_0x34f04f[_0x4130b5(0x7d)]?_0x4130b5(0x88):'inherit'}};}export function buildCanonicalAppConfig(_0xacd99b,_0x3c6527){const _0x3843ad=a204_0x29d742,_0x206b90=_0xacd99b['map'](_0x24c837=>String(_0x24c837||'')[_0x3843ad(0x7a)]())['filter'](Boolean);if(_0x206b90[_0x3843ad(0x98)]===0x0)return{};const _0x59b278={};for(const _0x419a34 of _0x206b90){_0x59b278[_0x419a34]=_0x3c6527?{'appcode':_0x419a34,'env':_0x3c6527}:{'appcode':_0x419a34};}return{'apps':_0x59b278,'defaultApp':_0x206b90[0x0]};}export function buildCanonicalProjectConfig(_0x442aff,_0xa21494){const _0x59cd73=a204_0x29d742,{appCodes:appCodes=[],env:_0x30c55c,metadata:_0xdce8c4}=_0xa21494,_0x3a451a={..._0x442aff,..._0xdce8c4||{}};delete _0x3a451a[_0x59cd73(0x8c)],delete _0x3a451a[_0x59cd73(0x88)];if(_0x30c55c)_0x3a451a[_0x59cd73(0x94)]=_0x30c55c;else!_0x3a451a[_0x59cd73(0x94)]&&(_0x3a451a[_0x59cd73(0x94)]=DEFAULT_CONFIG_VALUES['env']);const _0x2657b3=buildCanonicalAppConfig(appCodes,_0x3a451a['env']);return Object['keys'](_0x2657b3)[_0x59cd73(0x98)]>0x0&&(_0x3a451a[_0x59cd73(0x97)]=_0x2657b3[_0x59cd73(0x97)],_0x3a451a['defaultApp']=_0x2657b3[_0x59cd73(0x7f)]),_0x3a451a;}const LOCALE_MAP={'zh':a204_0x29d742(0x99),'zh-cn':'zh-CN','zh_cn':a204_0x29d742(0x99),'en':'en-US','en-us':'en-US','en_us':a204_0x29d742(0x7c)};export function normalizeLocale(_0x265f6){const _0xd30eba=a204_0x29d742;if(!_0x265f6)return null;return LOCALE_MAP[_0x265f6[_0xd30eba(0x8b)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a205_0x515941=a205_0x4568;(function(_0x5710d9,_0x4bc923){const _0x3f08b2=a205_0x4568,_0x4725be=_0x5710d9();while(!![]){try{const _0x541dca=parseInt(_0x3f08b2(0x1f6))/0x1*(-parseInt(_0x3f08b2(0x1f9))/0x2)+parseInt(_0x3f08b2(0x1f5))/0x3*(-parseInt(_0x3f08b2(0x1f1))/0x4)+-parseInt(_0x3f08b2(0x1f0))/0x5+-parseInt(_0x3f08b2(0x1ed))/0x6*(-parseInt(_0x3f08b2(0x1f7))/0x7)+-parseInt(_0x3f08b2(0x1ef))/0x8*(parseInt(_0x3f08b2(0x1f3))/0x9)+-parseInt(_0x3f08b2(0x1f8))/0xa+parseInt(_0x3f08b2(0x1f2))/0xb*(parseInt(_0x3f08b2(0x1f4))/0xc);if(_0x541dca===_0x4bc923)break;else _0x4725be['push'](_0x4725be['shift']());}catch(_0x181a79){_0x4725be['push'](_0x4725be['shift']());}}}(a205_0x48b3,0xd91bc));function a205_0x4568(_0x2fae31,_0x5252a4){_0x2fae31=_0x2fae31-0x1ed;const _0x48b39c=a205_0x48b3();let _0x456870=_0x48b39c[_0x2fae31];return _0x456870;}export const CLI_VERSION_POLICY_URL=a205_0x515941(0x1ee);function a205_0x48b3(){const _0x518fe6=['144334BlKrdq','1179605ABUnir','10590360iTlxJK','6iDziVN','42CrJEXU','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','161336QQsQJL','8708285xLlXuy','102964JZoNnS','11VgBoAG','693kcwLvB','71252652ZzguoZ','168ZhMpWA'];a205_0x48b3=function(){return _0x518fe6;};return a205_0x48b3();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a196_0x468652=a196_0x1a47;(function(_0x706442,_0x2af25f){const _0xe096d3=a196_0x1a47,_0x4562df=_0x706442();while(!![]){try{const _0x4479af=-parseInt(_0xe096d3(0x199))/0x1*(-parseInt(_0xe096d3(0x177))/0x2)+parseInt(_0xe096d3(0x198))/0x3+parseInt(_0xe096d3(0x128))/0x4*(parseInt(_0xe096d3(0x146))/0x5)+parseInt(_0xe096d3(0x12b))/0x6*(-parseInt(_0xe096d3(0x170))/0x7)+parseInt(_0xe096d3(0x12e))/0x8*(-parseInt(_0xe096d3(0x19e))/0x9)+parseInt(_0xe096d3(0x17d))/0xa+-parseInt(_0xe096d3(0x13e))/0xb*(-parseInt(_0xe096d3(0x15a))/0xc);if(_0x4479af===_0x2af25f)break;else _0x4562df['push'](_0x4562df['shift']());}catch(_0x2065fc){_0x4562df['push'](_0x4562df['shift']());}}}(a196_0x3f8c,0xd7514));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a196_0x468652(0x124);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a196_0x468652(0x19d),'description':a196_0x468652(0x193),'hint':a196_0x468652(0x18d)},{'name':a196_0x468652(0x16a),'meowKey':a196_0x468652(0x16a),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x130),'hint':a196_0x468652(0x164)},{'name':a196_0x468652(0x186),'meowKey':'env','type':'string','description':a196_0x468652(0x1a0),'hint':'production\x20|\x20daily'},{'name':a196_0x468652(0x185),'meowKey':a196_0x468652(0x185),'type':'string','description':a196_0x468652(0x14f),'hint':a196_0x468652(0x17a)},{'name':'jq','meowKey':'jq','type':a196_0x468652(0x19d),'description':a196_0x468652(0x139),'hint':a196_0x468652(0x140)},{'name':a196_0x468652(0x180),'meowKey':a196_0x468652(0x19f),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x14d)},{'name':a196_0x468652(0x14e),'meowKey':a196_0x468652(0x14e),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x157)},{'name':a196_0x468652(0x12c),'meowKey':a196_0x468652(0x135),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x158)},{'name':'global','meowKey':'global','type':'boolean','description':a196_0x468652(0x167)},{'name':'project','meowKey':'project','type':a196_0x468652(0x19a),'description':a196_0x468652(0x191)},{'name':'ci','meowKey':'ci','type':a196_0x468652(0x19a),'description':a196_0x468652(0x15c),'hidden':!![]},{'name':a196_0x468652(0x17e),'meowKey':a196_0x468652(0x17e),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x18b)},{'name':a196_0x468652(0x182),'meowKey':a196_0x468652(0x182),'type':a196_0x468652(0x19d),'description':'Name','hidden':!![]},{'name':'title','meowKey':'title','type':a196_0x468652(0x19d),'description':a196_0x468652(0x12a),'hidden':!![]},{'name':a196_0x468652(0x166),'meowKey':a196_0x468652(0x166),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x14c),'hidden':!![]},{'name':'watch','meowKey':a196_0x468652(0x17c),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x13c),'hidden':!![]},{'name':a196_0x468652(0x174),'meowKey':a196_0x468652(0x174),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x156),'hidden':!![]},{'name':a196_0x468652(0x150),'meowKey':a196_0x468652(0x150),'type':'string','description':'JSON\x20params','hidden':!![]},{'name':a196_0x468652(0x1a2),'meowKey':'datasetcode','type':a196_0x468652(0x19d),'description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a196_0x468652(0x196),'type':'boolean','description':a196_0x468652(0x126),'hidden':!![]},{'name':a196_0x468652(0x134),'meowKey':'enableBffSave','type':a196_0x468652(0x19a),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x468652(0x19d),'description':'Record\x20ID','hidden':!![]},{'name':a196_0x468652(0x13f),'meowKey':a196_0x468652(0x13f),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x18a),'hidden':!![]},{'name':'file','meowKey':a196_0x468652(0x169),'type':'string','description':'File\x20path','hidden':!![]},{'name':a196_0x468652(0x142),'meowKey':'sqlcode','type':a196_0x468652(0x19d),'description':a196_0x468652(0x17f),'hidden':!![]},{'name':a196_0x468652(0x190),'meowKey':a196_0x468652(0x179),'type':'string','description':a196_0x468652(0x144),'hidden':!![]},{'name':'sqlname','meowKey':a196_0x468652(0x165),'type':'string','description':a196_0x468652(0x144),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a196_0x468652(0x19d),'description':a196_0x468652(0x18e),'hidden':!![]},{'name':a196_0x468652(0x12f),'meowKey':'dbid','type':'string','description':a196_0x468652(0x18e),'hidden':!![]},{'name':a196_0x468652(0x160),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a196_0x468652(0x194),'meowKey':a196_0x468652(0x149),'type':'string','description':a196_0x468652(0x13b),'hidden':!![]},{'name':a196_0x468652(0x12d),'meowKey':a196_0x468652(0x12d),'type':a196_0x468652(0x19d),'description':'Page\x20number','hidden':!![]},{'name':a196_0x468652(0x138),'meowKey':a196_0x468652(0x138),'type':'string','description':'Page\x20size','hidden':!![]},{'name':a196_0x468652(0x14a),'meowKey':'keyword','type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a196_0x468652(0x159),'meowKey':a196_0x468652(0x159),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x1a1),'hidden':!![]},{'name':a196_0x468652(0x175),'meowKey':a196_0x468652(0x175),'type':'string','description':a196_0x468652(0x15b),'hidden':!![]},{'name':a196_0x468652(0x173),'meowKey':a196_0x468652(0x173),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x162),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a196_0x468652(0x19d),'description':a196_0x468652(0x195),'hidden':!![]},{'name':a196_0x468652(0x168),'meowKey':'target','type':a196_0x468652(0x19d),'description':'Target\x20path','hidden':!![]},{'name':a196_0x468652(0x197),'meowKey':a196_0x468652(0x188),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x143),'hidden':!![]},{'name':a196_0x468652(0x13a),'meowKey':a196_0x468652(0x13a),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x147),'hidden':!![]},{'name':a196_0x468652(0x187),'meowKey':'value','type':a196_0x468652(0x19d),'description':a196_0x468652(0x19c),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a196_0x468652(0x19d),'description':a196_0x468652(0x141),'hidden':!![]},{'name':a196_0x468652(0x192),'meowKey':'stdin','type':a196_0x468652(0x19a),'description':a196_0x468652(0x184),'hidden':!![]},{'name':a196_0x468652(0x129),'meowKey':a196_0x468652(0x14b),'type':a196_0x468652(0x19d),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a196_0x468652(0x19a),'description':a196_0x468652(0x18f),'hidden':!![]},{'name':a196_0x468652(0x125),'meowKey':a196_0x468652(0x125),'type':a196_0x468652(0x19a),'description':'Force\x20overwrite','hidden':!![]},{'name':a196_0x468652(0x13d),'meowKey':a196_0x468652(0x13d),'type':a196_0x468652(0x19a),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0x468652(0x172),'meowKey':a196_0x468652(0x172),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x181),'hidden':!![]},{'name':a196_0x468652(0x152),'meowKey':a196_0x468652(0x152),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x16d),'hidden':!![]},{'name':a196_0x468652(0x16f),'meowKey':a196_0x468652(0x133),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x15f),'hidden':!![]},{'name':'label','meowKey':a196_0x468652(0x183),'type':a196_0x468652(0x19d),'description':'Menu\x20label','hidden':!![]},{'name':a196_0x468652(0x15d),'meowKey':a196_0x468652(0x176),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x145),'hidden':!![]},{'name':a196_0x468652(0x154),'meowKey':a196_0x468652(0x154),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x16e),'hidden':!![]},{'name':a196_0x468652(0x153),'meowKey':'expectParentId','type':a196_0x468652(0x19d),'description':a196_0x468652(0x148),'hidden':!![]},{'name':a196_0x468652(0x16b),'meowKey':a196_0x468652(0x136),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x16c),'hidden':!![]},{'name':a196_0x468652(0x189),'meowKey':a196_0x468652(0x15e),'type':a196_0x468652(0x19d),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a196_0x468652(0x18c),'meowKey':a196_0x468652(0x163),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x171),'hidden':!![]},{'name':a196_0x468652(0x131),'meowKey':a196_0x468652(0x132),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x151),'hidden':!![]},{'name':'operation-type','meowKey':a196_0x468652(0x137),'type':a196_0x468652(0x19d),'description':'Operation\x20type','hidden':!![]},{'name':'function-node','meowKey':a196_0x468652(0x178),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x155),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0x468652(0x161),'app','env',a196_0x468652(0x185),'jq',a196_0x468652(0x180),'yes',a196_0x468652(0x12c),'ci']);export function buildMeowFlags(){const _0x4cda97=a196_0x468652;return Object[_0x4cda97(0x19b)](GLOBAL_FLAGS[_0x4cda97(0x17b)](_0x591430=>[_0x591430[_0x4cda97(0x127)],{'type':_0x591430['type']}]));}function a196_0x1a47(_0x740c17,_0x5f2265){_0x740c17=_0x740c17-0x124;const _0x3f8c57=a196_0x3f8c();let _0x1a478f=_0x3f8c57[_0x740c17];return _0x1a478f;}function a196_0x3f8c(){const _0x3a6ab2=['Reveal\x20sensitive\x20value','sql-name','Use\x20project\x20config\x20scope','stdin','Override\x20appcode','description-file','Operation\x20type','all','skip-imports','1471596aGdDvO','1334waxkpb','boolean','fromEntries','Config\x20value','string','77481gKsrRV','dryRun','Environment','Code\x20filter','datasetcode','Rabetbase\x20CLI','force','Apply\x20to\x20all','meowKey','12LLeRwk','from-env','Title','294OwCIDN','non-interactive','page','1608QaUsDD','dbid','Select\x20app\x20profile\x20by\x20name','task-id','taskId','expectedCount','enable-bff-save','nonInteractive','expectPath','operationType','pagesize','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','key','Description\x20file','Watch\x20mode','confirm','4477uHusVo','type','<expr>','Tags','sqlcode','Skip\x20import\x20generation','SQL\x20name','Parent\x20menu\x20id','1330190CuILXC','Config\x20key','Expected\x20current\x20parent\x20menu\x20id','descriptionFile','keyword','fromEnv','Clear','Preview\x20operation\x20without\x20executing','yes','Output\x20format','params','Asynchronous\x20task\x20ID','verbose','expect-parent-id','sort','Function\x20node','Output\x20path','Skip\x20confirmation\x20for\x20high-risk\x20writes','Force\x20non-interactive\x20mode\x20(CI)','code','408WguWza','SQL\x20string','Alias\x20for\x20--non-interactive','parent-id','expectedChildrenCount','Expected\x20affected\x20count','description','appcode','Schemas','menuIds','<name>','sqlname','clear','Use\x20global\x20config\x20scope','target','file','app','expect-path','Expected\x20current\x20menu\x20path','Verbose\x20output','Menu\x20sort\x20value','expected-count','195335HQaRlP','Comma-separated\x20menu\x20IDs','remote','schemas','output','sql','parentId','2336ogdmRy','functionNode','sqlName','json\x20|\x20pretty\x20|\x20compress','map','watch','11190980uOFbYL','help','SQL\x20code','dry-run','Use\x20remote','name','label','Read\x20value\x20from\x20stdin','format','env','value','skipImports','expected-children-count','Type\x20filter','Show\x20help','menu-ids','<code>','DB\x20ID'];a196_0x3f8c=function(){return _0x3a6ab2;};return a196_0x3f8c();}
|
|
1
|
+
const a206_0x1aa692=a206_0x551b;(function(_0x1550e6,_0x5c763f){const _0x5a7d26=a206_0x551b,_0x21525b=_0x1550e6();while(!![]){try{const _0x33ba07=parseInt(_0x5a7d26(0x141))/0x1+-parseInt(_0x5a7d26(0xea))/0x2*(parseInt(_0x5a7d26(0xe1))/0x3)+parseInt(_0x5a7d26(0xde))/0x4*(parseInt(_0x5a7d26(0x144))/0x5)+-parseInt(_0x5a7d26(0x149))/0x6+-parseInt(_0x5a7d26(0x137))/0x7+parseInt(_0x5a7d26(0xf7))/0x8*(-parseInt(_0x5a7d26(0xdb))/0x9)+parseInt(_0x5a7d26(0xee))/0xa;if(_0x33ba07===_0x5c763f)break;else _0x21525b['push'](_0x21525b['shift']());}catch(_0x38b7b3){_0x21525b['push'](_0x21525b['shift']());}}}(a206_0x2d1a,0x4603e));export const CLI_BIN_NAME=a206_0x1aa692(0x10f);function a206_0x551b(_0x30d2f3,_0x5b50e7){_0x30d2f3=_0x30d2f3-0xcc;const _0x2d1a2f=a206_0x2d1a();let _0x551bb0=_0x2d1a2f[_0x30d2f3];return _0x551bb0;}function a206_0x2d1a(){const _0x4952df=['rabetbase','functionNode','Force\x20overwrite','operationType','Apply\x20to\x20all','type','sort','dry-run','@lovrabet/rabetbase-cli','<code>','all','Watch\x20mode','datasetcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expectedCount','Title','Menu\x20label','Schemas','file','Tags','Description','File\x20path','parentId','clear','params','name','sqlcode','Select\x20app\x20profile\x20by\x20name','expected-count','pagesize','Record\x20ID','DB\x20ID','expected-children-count','env','Menu\x20sort\x20value','Expected\x20current\x20menu\x20path','value','menu-ids','Show\x20help','from-env','3712660Wouwoy','Read\x20value\x20from\x20stdin','expectedChildrenCount','description-file','Function\x20node','meowKey','boolean','Operation\x20type','Config\x20value','key','432776Lynimd','Skip\x20import\x20generation','Verbose\x20output','1480175oAYXdM','Use\x20global\x20config\x20scope','output','Parent\x20menu\x20id','json\x20|\x20pretty\x20|\x20compress','2325030bPgmOg','parent-id','expectPath','keyword','dbid','yes','Use\x20remote','Expected\x20current\x20child\x20count','target','help','Override\x20appcode','expect-path','non-interactive','Read\x20value\x20from\x20environment\x20variable','description','sqlname','verbose','99jHQDYE','descriptionFile','Comma-separated\x20menu\x20IDs','4snQwzK','<expr>','schemas','3ZRdzKe','Asynchronous\x20task\x20ID','expect-parent-id','Confirm\x20destructive\x20action','operation','string','Skip\x20confirmation\x20for\x20high-risk\x20writes','Target\x20path','force','1051628iTIKRi','taskId','Config\x20key','Type\x20filter','15486670FrAtfu','appcode','Expected\x20affected\x20count','production\x20|\x20daily','sql','Use\x20project\x20config\x20scope','Page\x20number','menuIds','Clear','397816gcOmMR','db-id','project','SQL\x20name','Output\x20path','code','sql-name','title','stdin','dbId','Dataset\x20code','fromEntries','page','SQL\x20code','JSON\x20params','Preview\x20operation\x20without\x20executing','global','app','skip-imports','SQL\x20string','watch','format','Code\x20filter','remote'];a206_0x2d1a=function(){return _0x4952df;};return a206_0x2d1a();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a206_0x1aa692(0x117);export const GLOBAL_FLAGS=[{'name':a206_0x1aa692(0xef),'meowKey':a206_0x1aa692(0xef),'type':'string','description':a206_0x1aa692(0xd4),'hint':a206_0x1aa692(0x118)},{'name':a206_0x1aa692(0x108),'meowKey':a206_0x1aa692(0x108),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12a),'hint':'<name>'},{'name':'env','meowKey':a206_0x1aa692(0x130),'type':a206_0x1aa692(0xe6),'description':'Environment','hint':a206_0x1aa692(0xf1)},{'name':a206_0x1aa692(0x10c),'meowKey':a206_0x1aa692(0x10c),'type':a206_0x1aa692(0xe6),'description':'Output\x20format','hint':a206_0x1aa692(0x148)},{'name':'jq','meowKey':'jq','type':'string','description':a206_0x1aa692(0x11c),'hint':a206_0x1aa692(0xdf)},{'name':a206_0x1aa692(0x116),'meowKey':'dryRun','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x106)},{'name':'yes','meowKey':a206_0x1aa692(0xcf),'type':'boolean','description':a206_0x1aa692(0xe7)},{'name':a206_0x1aa692(0xd6),'meowKey':'nonInteractive','type':a206_0x1aa692(0x13d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a206_0x1aa692(0x107),'meowKey':'global','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x145)},{'name':a206_0x1aa692(0xf9),'meowKey':a206_0x1aa692(0xf9),'type':'boolean','description':a206_0x1aa692(0xf3)},{'name':'ci','meowKey':'ci','type':a206_0x1aa692(0x13d),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a206_0x1aa692(0xd3),'meowKey':a206_0x1aa692(0xd3),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x135)},{'name':'name','meowKey':a206_0x1aa692(0x128),'type':a206_0x1aa692(0xe6),'description':'Name','hidden':!![]},{'name':a206_0x1aa692(0xfe),'meowKey':a206_0x1aa692(0xfe),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x11e),'hidden':!![]},{'name':a206_0x1aa692(0x126),'meowKey':a206_0x1aa692(0x126),'type':'boolean','description':a206_0x1aa692(0xf6),'hidden':!![]},{'name':a206_0x1aa692(0x10b),'meowKey':'watch','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x11a),'hidden':!![]},{'name':a206_0x1aa692(0x146),'meowKey':'output','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfb),'hidden':!![]},{'name':'params','meowKey':a206_0x1aa692(0x127),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x105),'hidden':!![]},{'name':'datasetcode','meowKey':a206_0x1aa692(0x11b),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x101),'hidden':!![]},{'name':'all','meowKey':a206_0x1aa692(0x119),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x113),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a206_0x1aa692(0x13d),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12d),'hidden':!![]},{'name':'type','meowKey':a206_0x1aa692(0x114),'type':'string','description':a206_0x1aa692(0xed),'hidden':!![]},{'name':a206_0x1aa692(0x121),'meowKey':'file','type':'string','description':a206_0x1aa692(0x124),'hidden':!![]},{'name':a206_0x1aa692(0x129),'meowKey':a206_0x1aa692(0x129),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x104),'hidden':!![]},{'name':a206_0x1aa692(0xfd),'meowKey':'sqlName','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfa),'hidden':!![]},{'name':a206_0x1aa692(0xd9),'meowKey':a206_0x1aa692(0xd9),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfa),'hidden':!![]},{'name':a206_0x1aa692(0xf8),'meowKey':a206_0x1aa692(0x100),'type':'string','description':a206_0x1aa692(0x12e),'hidden':!![]},{'name':a206_0x1aa692(0xce),'meowKey':'dbid','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12e),'hidden':!![]},{'name':a206_0x1aa692(0xd8),'meowKey':a206_0x1aa692(0xd8),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x123),'hidden':!![]},{'name':a206_0x1aa692(0x13a),'meowKey':a206_0x1aa692(0xdc),'type':'string','description':'Description\x20file','hidden':!![]},{'name':a206_0x1aa692(0x103),'meowKey':a206_0x1aa692(0x103),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xf4),'hidden':!![]},{'name':a206_0x1aa692(0x12c),'meowKey':'pagesize','type':a206_0x1aa692(0xe6),'description':'Page\x20size','hidden':!![]},{'name':a206_0x1aa692(0xcd),'meowKey':a206_0x1aa692(0xcd),'type':a206_0x1aa692(0xe6),'description':'Keyword\x20filter','hidden':!![]},{'name':a206_0x1aa692(0xfc),'meowKey':a206_0x1aa692(0xfc),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x10d),'hidden':!![]},{'name':a206_0x1aa692(0xf2),'meowKey':a206_0x1aa692(0xf2),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x10a),'hidden':!![]},{'name':a206_0x1aa692(0xe0),'meowKey':a206_0x1aa692(0xe0),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x120),'hidden':!![]},{'name':a206_0x1aa692(0xe5),'meowKey':a206_0x1aa692(0xe5),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a206_0x1aa692(0xd2),'meowKey':'target','type':'string','description':a206_0x1aa692(0xe8),'hidden':!![]},{'name':a206_0x1aa692(0x109),'meowKey':'skipImports','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x142),'hidden':!![]},{'name':a206_0x1aa692(0x140),'meowKey':a206_0x1aa692(0x140),'type':'string','description':a206_0x1aa692(0xec),'hidden':!![]},{'name':a206_0x1aa692(0x133),'meowKey':'value','type':'string','description':a206_0x1aa692(0x13f),'hidden':!![]},{'name':'tags','meowKey':'tags','type':'string','description':a206_0x1aa692(0x122),'hidden':!![]},{'name':a206_0x1aa692(0xff),'meowKey':'stdin','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x138),'hidden':!![]},{'name':a206_0x1aa692(0x136),'meowKey':'fromEnv','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xd7),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a206_0x1aa692(0x13d),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a206_0x1aa692(0xe9),'meowKey':'force','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x111),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0xe4),'hidden':!![]},{'name':'remote','meowKey':a206_0x1aa692(0x10e),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0xd0),'hidden':!![]},{'name':a206_0x1aa692(0xda),'meowKey':'verbose','type':'boolean','description':a206_0x1aa692(0x143),'hidden':!![]},{'name':a206_0x1aa692(0x12b),'meowKey':a206_0x1aa692(0x11d),'type':'string','description':a206_0x1aa692(0xf0),'hidden':!![]},{'name':'label','meowKey':'label','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x11f),'hidden':!![]},{'name':a206_0x1aa692(0x14a),'meowKey':a206_0x1aa692(0x125),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x147),'hidden':!![]},{'name':a206_0x1aa692(0x115),'meowKey':'sort','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x131),'hidden':!![]},{'name':a206_0x1aa692(0xe3),'meowKey':'expectParentId','type':a206_0x1aa692(0xe6),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a206_0x1aa692(0xd5),'meowKey':a206_0x1aa692(0xcc),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x132),'hidden':!![]},{'name':a206_0x1aa692(0x12f),'meowKey':a206_0x1aa692(0x139),'type':'string','description':a206_0x1aa692(0xd1),'hidden':!![]},{'name':a206_0x1aa692(0x134),'meowKey':a206_0x1aa692(0xf5),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xdd),'hidden':!![]},{'name':'task-id','meowKey':a206_0x1aa692(0xeb),'type':'string','description':a206_0x1aa692(0xe2),'hidden':!![]},{'name':'operation-type','meowKey':a206_0x1aa692(0x112),'type':'string','description':a206_0x1aa692(0x13e),'hidden':!![]},{'name':'function-node','meowKey':a206_0x1aa692(0x110),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x13b),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a206_0x1aa692(0xef),'app',a206_0x1aa692(0x130),a206_0x1aa692(0x10c),'jq',a206_0x1aa692(0x116),a206_0x1aa692(0xcf),a206_0x1aa692(0xd6),'ci']);export function buildMeowFlags(){const _0x4c9b83=a206_0x1aa692;return Object[_0x4c9b83(0x102)](GLOBAL_FLAGS['map'](_0x4456fe=>[_0x4456fe[_0x4c9b83(0x13c)],{'type':_0x4456fe['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x9592b8=a207_0x18f0;function a207_0x18f0(_0x1030ce,_0x5ac67f){_0x1030ce=_0x1030ce-0x16b;const _0x43aa85=a207_0x43aa();let _0x18f0da=_0x43aa85[_0x1030ce];return _0x18f0da;}(function(_0x277b39,_0x41e7bd){const _0x40c7e3=a207_0x18f0,_0x45ecfa=_0x277b39();while(!![]){try{const _0x2ff2ab=-parseInt(_0x40c7e3(0x174))/0x1*(parseInt(_0x40c7e3(0x16e))/0x2)+parseInt(_0x40c7e3(0x171))/0x3+-parseInt(_0x40c7e3(0x16f))/0x4*(-parseInt(_0x40c7e3(0x173))/0x5)+-parseInt(_0x40c7e3(0x16d))/0x6*(-parseInt(_0x40c7e3(0x175))/0x7)+-parseInt(_0x40c7e3(0x16c))/0x8+parseInt(_0x40c7e3(0x16b))/0x9*(-parseInt(_0x40c7e3(0x177))/0xa)+parseInt(_0x40c7e3(0x176))/0xb;if(_0x2ff2ab===_0x41e7bd)break;else _0x45ecfa['push'](_0x45ecfa['shift']());}catch(_0x2d4231){_0x45ecfa['push'](_0x45ecfa['shift']());}}}(a207_0x43aa,0xd83a6));import{DEFAULT_API_DIR}from'../constant/paths.js';function a207_0x43aa(){const _0x348b03=['1103052KkCjFN','compress','6535IIPwIU','5835IYQmSx','5628644lyVtUn','26760811iETSWZ','1513210vfWPVn','36vfkIvP','9807160nbrelz','6prrukh','466yUhUVq','1444afwFyD','high-risk-write'];a207_0x43aa=function(){return _0x348b03;};return a207_0x43aa();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x9592b8(0x172),'locale':'en-US','riskLevel':a207_0x9592b8(0x170),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x9592b8(0x172);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a208_0x250c(){const _0x340a60=['133794LFjPwu','https://daily-runtime.lovrabet.com','3613047EKvUdj','/web-app/app/','https://api.lovrabet.com','1988038ELIIjn','10RAtYtl','6742060LxKRql','https://runtime.lovrabet.com','11XJLpIW','https://user-daily.lovrabet.com','632uDCSiJ','userDomain','1650268VqgUsP','https://user.lovrabet.com','9221934uYVdoP','1TSLoDe','trim','/app/','runtimeDomain','5671644VOuWTh','https://daily.lovrabet.com','https://daily-api.lovrabet.com','apiDomain','26qqvpeC','7JfrEgx'];a208_0x250c=function(){return _0x340a60;};return a208_0x250c();}const a208_0x216616=a208_0x236f;(function(_0x46bd1a,_0x44aa0e){const _0x25cf34=a208_0x236f,_0x32e3c6=_0x46bd1a();while(!![]){try{const _0x594828=-parseInt(_0x25cf34(0x92))/0x1*(parseInt(_0x25cf34(0x87))/0x2)+parseInt(_0x25cf34(0x84))/0x3+parseInt(_0x25cf34(0x8f))/0x4*(parseInt(_0x25cf34(0x88))/0x5)+-parseInt(_0x25cf34(0x91))/0x6*(parseInt(_0x25cf34(0x81))/0x7)+parseInt(_0x25cf34(0x8d))/0x8*(parseInt(_0x25cf34(0x82))/0x9)+-parseInt(_0x25cf34(0x89))/0xa*(parseInt(_0x25cf34(0x8b))/0xb)+-parseInt(_0x25cf34(0x96))/0xc*(-parseInt(_0x25cf34(0x80))/0xd);if(_0x594828===_0x44aa0e)break;else _0x32e3c6['push'](_0x32e3c6['shift']());}catch(_0x1123f3){_0x32e3c6['push'](_0x32e3c6['shift']());}}}(a208_0x250c,0xe6755));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x59106e){const _0x95d4a7=a208_0x236f;customApiDomain=_0x59106e?.[_0x95d4a7(0x99)],customUserDomain=_0x59106e?.[_0x95d4a7(0x8e)],customRuntimeDomain=_0x59106e?.[_0x95d4a7(0x95)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x216616(0x90):a208_0x216616(0x8c));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x216616(0x86):a208_0x216616(0x98));function a208_0x236f(_0x34bac0,_0x339976){_0x34bac0=_0x34bac0-0x80;const _0x250c30=a208_0x250c();let _0x236fdc=_0x250c30[_0x34bac0];return _0x236fdc;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x216616(0x8a):a208_0x216616(0x83));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a208_0x216616(0x97);export const getAppBaseUrl=_0x443557=>{const _0x56aeed=a208_0x216616,_0xbe632d=encodeURIComponent(_0x443557[_0x56aeed(0x93)]());return isProduction(getEnv())?getAppDomain()+_0x56aeed(0x94)+_0xbe632d:getAppDomain()+_0x56aeed(0x85)+_0xbe632d;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a209_0x4852cb=a209_0x3cc3;(function(_0x2b7d08,_0x469791){const _0x445f3f=a209_0x3cc3,_0x29293c=_0x2b7d08();while(!![]){try{const _0x54cb3a=-parseInt(_0x445f3f(0x16e))/0x1*(-parseInt(_0x445f3f(0x16a))/0x2)+parseInt(_0x445f3f(0x16f))/0x3+-parseInt(_0x445f3f(0x164))/0x4+parseInt(_0x445f3f(0x170))/0x5*(parseInt(_0x445f3f(0x16c))/0x6)+parseInt(_0x445f3f(0x166))/0x7+parseInt(_0x445f3f(0x169))/0x8*(-parseInt(_0x445f3f(0x16d))/0x9)+-parseInt(_0x445f3f(0x162))/0xa*(parseInt(_0x445f3f(0x16b))/0xb);if(_0x54cb3a===_0x469791)break;else _0x29293c['push'](_0x29293c['shift']());}catch(_0x45358c){_0x29293c['push'](_0x29293c['shift']());}}}(a209_0x1e80,0x5f28e));function a209_0x1e80(){const _0x11abab=['daily','16uAfwgA','298DVotlJ','187TRHLUK','1871274OJNJVa','1600074ohxkCw','4679Iczfly','1759380TRlQOd','10pQJgqB','870850tGDEyS','production','1362540pAyKAo','dev','4613259hMWasN','online'];a209_0x1e80=function(){return _0x11abab;};return a209_0x1e80();}export const RABETBASE_ENV_VALUES=['production',a209_0x4852cb(0x168)];export function normalizeEnv(_0x55c0e1){const _0x2027ef=a209_0x4852cb;return _0x55c0e1===_0x2027ef(0x167)?_0x2027ef(0x163):_0x55c0e1;}function a209_0x3cc3(_0x23d39a,_0x471e78){_0x23d39a=_0x23d39a-0x162;const _0x1e8056=a209_0x1e80();let _0x3cc3e6=_0x1e8056[_0x23d39a];return _0x3cc3e6;}export function isProduction(_0x2ba4f0){const _0x498d5d=a209_0x4852cb;return normalizeEnv(_0x2ba4f0)===_0x498d5d(0x163);}export function isDaily(_0x5e6bcb){const _0x4b7629=a209_0x4852cb;return normalizeEnv(_0x5e6bcb)===_0x4b7629(0x168);}export function isDev(_0x4ac15e){const _0xb910e0=a209_0x4852cb,_0x5a679b=normalizeEnv(_0x4ac15e);return _0x5a679b==='development'||_0x5a679b===_0xb910e0(0x165);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a209_0x4852cb(0x163));export function getEnv(){return env;}export function initEnv(_0x2a7d93){env=normalizeEnv(_0x2a7d93);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0xb085(_0x2e5e4e,_0x1bdb8a){_0x2e5e4e=_0x2e5e4e-0x191;const _0x58dedf=a210_0x58de();let _0xb085e=_0x58dedf[_0x2e5e4e];return _0xb085e;}function a210_0x58de(){const _0x3a6de3=['compress','540294mbjQnt','80970LgGMmO','8BprxnF','14775oxMGEL','143FnsPCn','json','2557608Acsvfg','1010433DbuHRg','pretty','630OgDhBj','25txgUNz','24JbwuXJ','6870206tppKRM','1053544sSDREl'];a210_0x58de=function(){return _0x3a6de3;};return a210_0x58de();}const a210_0x3bc5dc=a210_0xb085;(function(_0x4ee1f9,_0x11b74a){const _0x685af2=a210_0xb085,_0x496ab0=_0x4ee1f9();while(!![]){try{const _0x5d569e=parseInt(_0x685af2(0x19d))/0x1+parseInt(_0x685af2(0x194))/0x2+-parseInt(_0x685af2(0x199))/0x3*(parseInt(_0x685af2(0x192))/0x4)+-parseInt(_0x685af2(0x191))/0x5*(-parseInt(_0x685af2(0x196))/0x6)+-parseInt(_0x685af2(0x193))/0x7*(-parseInt(_0x685af2(0x198))/0x8)+-parseInt(_0x685af2(0x19f))/0x9*(-parseInt(_0x685af2(0x197))/0xa)+parseInt(_0x685af2(0x19a))/0xb*(-parseInt(_0x685af2(0x19c))/0xc);if(_0x5d569e===_0x11b74a)break;else _0x496ab0['push'](_0x496ab0['shift']());}catch(_0x3278ed){_0x496ab0['push'](_0x496ab0['shift']());}}}(a210_0x58de,0xb38ae));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a210_0x3bc5dc(0x19b),a210_0x3bc5dc(0x19e),a210_0x3bc5dc(0x195)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a211_0x87e9(_0x1f0b60,_0xdb0441){_0x1f0b60=_0x1f0b60-0xdf;const _0xe4cc2=a211_0xe4cc();let _0x87e9f6=_0xe4cc2[_0x1f0b60];return _0x87e9f6;}const a211_0x573c8e=a211_0x87e9;function a211_0xe4cc(){const _0x47000d=['1313921MjYoeN','603940yMCqJE','517FTbOTd','356EjGuQd','./src/api','912085zuBXUN','6RyblCp','13621894upiCFz','90GgwHUr','7269tquwQU','2042BwHXgd','6937944RQmrTl'];a211_0xe4cc=function(){return _0x47000d;};return a211_0xe4cc();}(function(_0xbbbf12,_0x55e8a7){const _0xb8e9c6=a211_0x87e9,_0x2be6ae=_0xbbbf12();while(!![]){try{const _0x59ed21=-parseInt(_0xb8e9c6(0xe1))/0x1*(-parseInt(_0xb8e9c6(0xe9))/0x2)+-parseInt(_0xb8e9c6(0xe8))/0x3*(-parseInt(_0xb8e9c6(0xe2))/0x4)+-parseInt(_0xb8e9c6(0xe4))/0x5+parseInt(_0xb8e9c6(0xe5))/0x6*(parseInt(_0xb8e9c6(0xdf))/0x7)+-parseInt(_0xb8e9c6(0xea))/0x8+-parseInt(_0xb8e9c6(0xe7))/0x9*(parseInt(_0xb8e9c6(0xe0))/0xa)+parseInt(_0xb8e9c6(0xe6))/0xb;if(_0x59ed21===_0x55e8a7)break;else _0x2be6ae['push'](_0x2be6ae['shift']());}catch(_0x2c54ff){_0x2be6ae['push'](_0x2be6ae['shift']());}}}(a211_0xe4cc,0x7df79));export const DEFAULT_API_DIR=a211_0x573c8e(0xe3);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a212_0x3ab2(_0x212829,_0x25c26e){_0x212829=_0x212829-0x177;const _0x52a2aa=a212_0x52a2();let _0x3ab280=_0x52a2aa[_0x212829];return _0x3ab280;}const a212_0x7005a6=a212_0x3ab2;(function(_0x46eb20,_0x17e9bd){const _0x4003e2=a212_0x3ab2,_0x108cbf=_0x46eb20();while(!![]){try{const _0x2fb8fb=parseInt(_0x4003e2(0x17b))/0x1+-parseInt(_0x4003e2(0x179))/0x2+parseInt(_0x4003e2(0x182))/0x3+parseInt(_0x4003e2(0x177))/0x4+parseInt(_0x4003e2(0x17d))/0x5+parseInt(_0x4003e2(0x180))/0x6*(parseInt(_0x4003e2(0x17a))/0x7)+parseInt(_0x4003e2(0x181))/0x8*(-parseInt(_0x4003e2(0x17c))/0x9);if(_0x2fb8fb===_0x17e9bd)break;else _0x108cbf['push'](_0x108cbf['shift']());}catch(_0xa8b181){_0x108cbf['push'](_0x108cbf['shift']());}}}(a212_0x52a2,0xf3a42));function a212_0x52a2(){const _0x515cbd=['read','high-risk-write','6DOeKkV','45259904nBMgkP','5662362ldvaPq','6690404EjlOLC','write','1517128eDNzgt','11074497WoTOqs','1520844MBRvfu','9sLpOPh','3755180lRfGZh'];a212_0x52a2=function(){return _0x515cbd;};return a212_0x52a2();}export const RISK_LEVEL_VALUES=[a212_0x7005a6(0x17e),a212_0x7005a6(0x178),a212_0x7005a6(0x17f)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3598ed,_0x544a25){const _0x25e224=a213_0x38ba,_0x1d8e30=_0x3598ed();while(!![]){try{const _0x2428ff=parseInt(_0x25e224(0xb5))/0x1*(parseInt(_0x25e224(0xb1))/0x2)+-parseInt(_0x25e224(0xb2))/0x3*(parseInt(_0x25e224(0x9b))/0x4)+-parseInt(_0x25e224(0xba))/0x5*(-parseInt(_0x25e224(0xa9))/0x6)+-parseInt(_0x25e224(0xb7))/0x7*(-parseInt(_0x25e224(0xa5))/0x8)+parseInt(_0x25e224(0xa1))/0x9+parseInt(_0x25e224(0x9e))/0xa+-parseInt(_0x25e224(0xac))/0xb;if(_0x2428ff===_0x544a25)break;else _0x1d8e30['push'](_0x1d8e30['shift']());}catch(_0x126270){_0x1d8e30['push'](_0x1d8e30['shift']());}}}(a213_0x209a,0x2ba2d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a213_0x38ba(_0x408095,_0x5e22d1){_0x408095=_0x408095-0x95;const _0x209a67=a213_0x209a();let _0x38bacf=_0x209a67[_0x408095];return _0x38bacf;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x1e8055){const _0x3ea463=a213_0x38ba;return typeof _0x1e8055===_0x3ea463(0xa4)&&_0x1e8055['trim']()?_0x1e8055['trim']():undefined;}function a213_0x209a(){const _0x50e823=['defaultApp','373680RDrdMm','keys','object','562869RqOWAx','prototype','trim','string','808hfGszf','format','COOKIE','hasOwnProperty','1056COrtxf','globalConfig','inherit','4765508KKLsPW','apps','projectConfig','read','call','2mWnOuP','477Ezhopn','maxRisk','ACCESS_KEY','347473HlkLwT','production','2471FCUgZR','FORMAT','APP','4015dpVZHP','cookie','accessKey','VERBOSE','app','appcode','apiDir','true','locale','MAX_RISK','PAGE_SIZE','riskLevel','daily','pageSize','env','length','312yVbnOJ','high-risk-write'];a213_0x209a=function(){return _0x50e823;};return a213_0x209a();}function appProfiles(_0x1178bc){const _0x3fe63e=a213_0x38ba;return _0x1178bc['apps']&&typeof _0x1178bc['apps']===_0x3fe63e(0xa0)?_0x1178bc[_0x3fe63e(0xad)]:{};}function resolveDefaultAppName(_0x480f05){const _0x58d57d=a213_0x38ba,_0x37572d=stringConfigValue(_0x480f05[_0x58d57d(0x9d)]);if(_0x37572d)return _0x37572d;return Object[_0x58d57d(0x9f)](appProfiles(_0x480f05))[0x0];}function resolveTopLevelAppCode(_0x347572){const _0x3248c7=a213_0x38ba;return stringConfigValue(_0x347572[_0x3248c7(0xbf)])||stringConfigValue(_0x347572[_0x3248c7(0xbe)]);}function normalizeRiskCeiling(_0x244bbd){const _0x98493=a213_0x38ba;if(_0x244bbd===undefined||_0x244bbd===null)return undefined;if(_0x244bbd==='read'||_0x244bbd==='write'||_0x244bbd===_0x98493(0x9c))return _0x244bbd;return _0x98493(0xaf);}function resolveRiskCeiling(..._0x29721c){const _0x4c6b3b=a213_0x38ba;let _0x18d4e3=DEFAULT_CONFIG_VALUES[_0x4c6b3b(0x96)];for(const _0x309105 of _0x29721c){const _0x371b79=normalizeRiskCeiling(_0x309105);_0x371b79&&riskLevelOrder(_0x371b79)<riskLevelOrder(_0x18d4e3)&&(_0x18d4e3=_0x371b79);}return _0x18d4e3;}function configuredRiskCeilings(_0x390ba7){const _0x46b822=a213_0x38ba;return[...Object[_0x46b822(0xa2)][_0x46b822(0xa8)][_0x46b822(0xb0)](_0x390ba7,_0x46b822(0xb3))?[_0x390ba7['maxRisk']]:[],...Object[_0x46b822(0xa2)]['hasOwnProperty'][_0x46b822(0xb0)](_0x390ba7,_0x46b822(0x96))?[_0x390ba7[_0x46b822(0x96)]]:[]];}export function resolveAppConfig({raw:_0x5f27b9,flags:_0x31bb25,layers:_0x3cf727,readEnv:_0x151bba}){const _0x1bca36=a213_0x38ba,_0x1558ec=_0x3cf727?.[_0x1bca36(0xae)]??{},_0xeebf42=_0x3cf727?.[_0x1bca36(0xaa)]??{},_0x5e3afd=Object[_0x1bca36(0x9f)](_0x1558ec)[_0x1bca36(0x9a)]>0x0,_0x1724da=!_0x5e3afd||_0x1558ec[_0x1bca36(0xab)]===!![],_0x5e1865=_0x5e3afd?resolveDefaultAppName(_0x1558ec):undefined,_0x577dd2=_0x1724da?resolveDefaultAppName(_0xeebf42):undefined,_0x4163a3=stringConfigValue(_0x31bb25['app']),_0x4f6e28=_0x151bba(_0x1bca36(0xb9)),_0x12e1fe={};if(_0x5f27b9[_0x1bca36(0xad)]&&typeof _0x5f27b9[_0x1bca36(0xad)]===_0x1bca36(0xa0))for(const [_0x1b55d3,_0x40d36d]of Object['entries'](_0x5f27b9['apps'])){_0x40d36d&&typeof _0x40d36d===_0x1bca36(0xa0)&&_0x40d36d[_0x1bca36(0xbf)]&&(_0x12e1fe[_0x1b55d3]=_0x40d36d);}const _0x34aaef=_0x5f27b9[_0x1bca36(0x9d)]||undefined,_0x5b936a=Object[_0x1bca36(0x9f)](_0x12e1fe)[_0x1bca36(0x9a)]>0x0,_0x5f03c3=_0x4163a3||_0x5e1865||_0x4f6e28||_0x577dd2||_0x34aaef||undefined,_0x330191=stringConfigValue(_0x31bb25['appcode']),_0x131b45=_0x330191?Object['entries'](_0x12e1fe)['find'](([,_0x59a7e3])=>_0x59a7e3?.[_0x1bca36(0xbf)]===_0x330191):undefined,_0x5402de=_0x131b45?.[0x0],_0x28477e=_0x131b45?.[0x1],_0xc976e5=_0x330191?_0x5402de:_0x5f03c3;let _0x5936fe=_0xc976e5&&_0x12e1fe[_0xc976e5]?_0x12e1fe[_0xc976e5]:undefined;_0x330191&&_0x28477e&&(_0x5936fe=_0x28477e);const _0x442cb1=_0x330191?_0x28477e??_0x5936fe:_0x5936fe,_0x86cd76=!_0x4163a3&&!_0x5e1865&&_0x4f6e28&&_0xc976e5===_0x4f6e28,_0x2ae738=_0x4163a3||(_0x86cd76?_0x4f6e28:undefined)||(_0x330191?_0x5402de:undefined),_0x42b204=_0x442cb1?.[_0x1bca36(0xbf)],_0x17cd0f=_0x5e3afd?resolveTopLevelAppCode(_0x1558ec):undefined,_0x474e51=_0x1724da?resolveTopLevelAppCode(_0xeebf42):undefined,_0x153d52=_0x4163a3||_0x5e1865?_0x42b204:undefined,_0xf4f7aa=!_0x4163a3&&!_0x5e1865?_0x42b204:undefined,_0x3f8c7a=_0x330191||_0x153d52||_0x17cd0f||_0xf4f7aa||_0x474e51||undefined,_0x5686c5=_0x5e3afd?stringConfigValue(_0x1558ec[_0x1bca36(0x99)]):undefined,_0x2947b1=_0x1724da?stringConfigValue(_0xeebf42[_0x1bca36(0x99)]):undefined,_0x306269=_0x31bb25[_0x1bca36(0x99)]||_0x442cb1?.['env']||_0x5686c5||_0x151bba('ENV')||_0x2947b1||_0x5f27b9[_0x1bca36(0x99)]||DEFAULT_CONFIG_VALUES[_0x1bca36(0x99)],_0x3e73ce=_0x442cb1?.[_0x1bca36(0xc2)]||_0x5f27b9[_0x1bca36(0xc2)]||DEFAULT_CONFIG_VALUES[_0x1bca36(0xc2)],_0x2a9516=_0x151bba(_0x1bca36(0xa7))||_0x442cb1?.[_0x1bca36(0xbb)]||_0x5f27b9[_0x1bca36(0xbb)]||undefined,_0x317dbd=_0x151bba(_0x1bca36(0xb4))||_0x442cb1?.[_0x1bca36(0xbc)]||_0x5f27b9[_0x1bca36(0xbc)]||undefined,_0x2dd0bb=_0x31bb25[_0x1bca36(0xa6)]||_0x151bba(_0x1bca36(0xb8))||_0x442cb1?.['format']||_0x5f27b9['format'],_0x12acb1=normalizeLegacyOutputFormat(_0x2dd0bb),_0x17766e=_0x151bba(_0x1bca36(0x95))||_0x442cb1?.[_0x1bca36(0x98)]||_0x5f27b9[_0x1bca36(0x98)],_0x359b12=_0x17766e?Number(_0x17766e)||undefined:undefined,_0x83781a=_0x3cf727?[...configuredRiskCeilings(_0x3cf727[_0x1bca36(0xaa)]),...configuredRiskCeilings(_0x3cf727['projectConfig'])]:configuredRiskCeilings(_0x5f27b9),_0x1c07a3=resolveRiskCeiling(..._0x83781a,_0x442cb1?.[_0x1bca36(0x96)],_0x151bba('RISK_LEVEL'),_0x151bba(_0x1bca36(0xc3))),_0xa7329a=_0x151bba(_0x1bca36(0xbd)),_0x3d1159=_0xa7329a==='1'||_0xa7329a===_0x1bca36(0xc1),_0x2f6edc=_0x442cb1?.[_0x1bca36(0xc0)]||_0x5f27b9[_0x1bca36(0xc0)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x30247d=isDaily(normalizeEnv(String(_0x306269)))?_0x1bca36(0x97):_0x1bca36(0xb6);return{'appCode':typeof _0x3f8c7a==='string'&&_0x3f8c7a[_0x1bca36(0xa3)]()?_0x3f8c7a[_0x1bca36(0xa3)]():undefined,'env':_0x30247d,'locale':_0x3e73ce,'cookie':_0x2a9516,'accessKey':_0x317dbd,'format':_0x12acb1,'pageSize':_0x359b12,'riskLevel':_0x1c07a3,'verbose':_0x3d1159,'apiDir':_0x2f6edc,'apps':_0x12e1fe,'defaultApp':_0x34aaef,'currentApp':_0x5b936a?_0xc976e5:undefined,'explicitAppName':_0x2ae738};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bf764,_0x412c84){const _0x1feeda=a214_0x2ecf,_0x4290f4=_0x5bf764();while(!![]){try{const _0xe29aea=parseInt(_0x1feeda(0x1b0))/0x1+parseInt(_0x1feeda(0x1b9))/0x2*(parseInt(_0x1feeda(0x1b2))/0x3)+parseInt(_0x1feeda(0x1b6))/0x4*(-parseInt(_0x1feeda(0x1b8))/0x5)+-parseInt(_0x1feeda(0x1b4))/0x6*(-parseInt(_0x1feeda(0x1b5))/0x7)+-parseInt(_0x1feeda(0x1af))/0x8*(-parseInt(_0x1feeda(0x1ac))/0x9)+parseInt(_0x1feeda(0x1b1))/0xa+parseInt(_0x1feeda(0x1b7))/0xb*(-parseInt(_0x1feeda(0x1ad))/0xc);if(_0xe29aea===_0x412c84)break;else _0x4290f4['push'](_0x4290f4['shift']());}catch(_0x135903){_0x4290f4['push'](_0x4290f4['shift']());}}}(a214_0x5bd2,0x35424));import{getIsSessionValid}from'../auth/is-session-valid.js';function a214_0x5bd2(){const _0x2cc428=['../auth/get-cookie.js','2260476vnqhdT','3363204qmyxRt','authRequired','8yTLTAc','262185kijGKC','4104290vlUDQB','3ZnnxbL','cookie','6HrdxsV','2765210vXzecS','44188attRTh','44iGBgah','75lUecct','372226BRmRax'];a214_0x5bd2=function(){return _0x2cc428;};return a214_0x5bd2();}function a214_0x2ecf(_0x41111d,_0x586889){_0x41111d=_0x41111d-0x1ab;const _0x5bd25e=a214_0x5bd2();let _0x2ecfdc=_0x5bd25e[_0x41111d];return _0x2ecfdc;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x546836){const _0x5b987e=a214_0x2ecf,{getCookie:_0x3d3293}=await import(_0x5b987e(0x1ab)),_0x5307c4=_0x546836[_0x5b987e(0x1b3)]||_0x3d3293(),_0x20dfd0=_0x5307c4?await getIsSessionValid():![];return{'cookie':_0x5307c4,'isLoggedIn':_0x20dfd0,async 'getOrLogin'(){const _0x2ebed9=_0x5b987e;if(_0x5307c4&&_0x20dfd0)return _0x5307c4;throw CliErrors[_0x2ebed9(0x1ae)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a205_0x4eb8a4=a205_0xb3c9;(function(_0x52b21d,_0x575756){const _0x53915e=a205_0xb3c9,_0x3283a3=_0x52b21d();while(!![]){try{const _0x19fae0=parseInt(_0x53915e(0x160))/0x1*(parseInt(_0x53915e(0x159))/0x2)+parseInt(_0x53915e(0x138))/0x3*(parseInt(_0x53915e(0x13f))/0x4)+parseInt(_0x53915e(0x13b))/0x5*(-parseInt(_0x53915e(0x158))/0x6)+parseInt(_0x53915e(0x161))/0x7+parseInt(_0x53915e(0x137))/0x8+-parseInt(_0x53915e(0x166))/0x9+parseInt(_0x53915e(0x162))/0xa;if(_0x19fae0===_0x575756)break;else _0x3283a3['push'](_0x3283a3['shift']());}catch(_0x3a181a){_0x3283a3['push'](_0x3283a3['shift']());}}}(a205_0x3b81,0x86b4b));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';function a205_0x3b81(){const _0x22a416=['3879491YFkwOs','1437700vZrOYb','accessKey','silent','parse','4074858temqOy','message','Global','apiDir','inherit','1153528gzdYJb','3IgSyfx','migrated','object','903700LbTaCK','Project','trim','cwd','125196gSOcvX','defaultApp','keys','empty','riskLevel','error','locale','set','cookie','pageSize','warn','appcode','project','.lovrabetrc','missing','stringify','format','\x0a\x20\x20','string','.rabetbase.json','get','status','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','length','env','30vJeOuS','844HCQCXE','config','apps','app','filter','.lovrabet.json','data','2452GyqOoR'];a205_0x3b81=function(){return _0x22a416;};return a205_0x3b81();}export const NEW_CONFIG_NAME=a205_0x4eb8a4(0x152);export const CONFIG_NAMES=[a205_0x4eb8a4(0x152),a205_0x4eb8a4(0x15e),a205_0x4eb8a4(0x14c)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a205_0x4eb8a4(0x15d)](_0xcdfc3=>_0xcdfc3!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0xe5f5b3){for(const _0x23db5b of CONFIG_NAMES){const _0x4f7088=resolve(_0xe5f5b3,_0x23db5b);if(existsSync(_0x4f7088))return _0x4f7088;}return undefined;}export function findProjectRootDirectory(_0x47e8f1=process['cwd']()){let _0x540c46=resolve(_0x47e8f1);const {root:_0x2571cb}=parse(_0x540c46),_0x37edf2=homedir();while(!![]){if(resolveConfigPath(_0x540c46)){if(_0x540c46===_0x37edf2)break;return _0x540c46;}if(_0x540c46===_0x2571cb||_0x540c46===_0x37edf2)break;const _0x3bf33f=dirname(_0x540c46);if(_0x3bf33f===_0x540c46)break;_0x540c46=_0x3bf33f;}return resolve(_0x47e8f1);}export function getProjectConfigPath(){const _0x4ddce6=a205_0x4eb8a4;return resolveConfigPath(process[_0x4ddce6(0x13e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1aae4a){const _0xd5fbee=a205_0x4eb8a4;if(!existsSync(_0x1aae4a))return{'status':_0xd5fbee(0x14d)};try{const _0x4075a0=readFileSync(_0x1aae4a,{'encoding':'utf8'});if(!_0x4075a0?.[_0xd5fbee(0x13d)]())return{'status':'empty'};const _0x2c8d36=JSON[_0xd5fbee(0x165)](_0x4075a0);return{'status':'ok','data':_0x2c8d36};}catch(_0x113661){return{'status':_0xd5fbee(0x144),'message':_0x113661 instanceof Error?_0x113661[_0xd5fbee(0x133)]:String(_0x113661)};}}function a205_0xb3c9(_0x309d50,_0x124fd4){_0x309d50=_0x309d50-0x133;const _0x3b8156=a205_0x3b81();let _0xb3c9ec=_0x3b8156[_0x309d50];return _0xb3c9ec;}function parseCliConfigJsonFile(_0x24bd11,_0x2cc2df,_0x54f4e8){const _0x39a298=a205_0x4eb8a4,_0x5544a1=inspectCliConfigJsonFile(_0x24bd11);if(_0x5544a1[_0x39a298(0x154)]===_0x39a298(0x14d)||_0x5544a1[_0x39a298(0x154)]===_0x39a298(0x142))return{};if(_0x5544a1['status']==='ok')return _0x5544a1[_0x39a298(0x15f)];return _0x2cc2df===_0x39a298(0x149)&&_0x54f4e8&&console[_0x39a298(0x144)](CLI_BIN_NAME+':\x20'+_0x54f4e8+_0x39a298(0x155)+_0x24bd11+_0x39a298(0x150)+_0x5544a1[_0x39a298(0x133)]),{};}function normalizeLegacyConfigShape(_0x4ee182){const _0x39cc66=a205_0x4eb8a4;if(!_0x4ee182||typeof _0x4ee182!==_0x39cc66(0x13a))return{'config':{},'migrated':![]};const _0x5eea0b={..._0x4ee182},_0x5befd4=_0x5eea0b['apps']&&typeof _0x5eea0b[_0x39cc66(0x15b)]===_0x39cc66(0x13a)?{..._0x5eea0b['apps']}:{},_0x535dd7=Object[_0x39cc66(0x141)](_0x5befd4)[_0x39cc66(0x156)],_0x234bca=_0x5eea0b[_0x39cc66(0x14a)]||_0x5eea0b[_0x39cc66(0x15c)];let _0x1d0407=![];if(_0x234bca&&_0x535dd7===0x0){const _0x1ce5ac=typeof _0x5eea0b[_0x39cc66(0x140)]===_0x39cc66(0x151)&&_0x5eea0b[_0x39cc66(0x140)]['trim']()?_0x5eea0b['defaultApp']:String(_0x234bca)[_0x39cc66(0x13d)]();_0x5befd4[_0x1ce5ac]={'appcode':String(_0x234bca)['trim'](),..._0x5eea0b[_0x39cc66(0x157)]!=null?{'env':_0x5eea0b[_0x39cc66(0x157)]}:{},..._0x5eea0b[_0x39cc66(0x135)]!=null?{'apiDir':_0x5eea0b[_0x39cc66(0x135)]}:{},..._0x5eea0b[_0x39cc66(0x147)]!=null?{'cookie':_0x5eea0b[_0x39cc66(0x147)]}:{},..._0x5eea0b[_0x39cc66(0x163)]!=null?{'accessKey':_0x5eea0b[_0x39cc66(0x163)]}:{},..._0x5eea0b[_0x39cc66(0x14f)]!=null?{'format':_0x5eea0b['format']}:{},..._0x5eea0b['pageSize']!=null?{'pageSize':_0x5eea0b[_0x39cc66(0x148)]}:{},..._0x5eea0b['riskLevel']!=null?{'riskLevel':_0x5eea0b['riskLevel']}:{},..._0x5eea0b[_0x39cc66(0x145)]!=null?{'locale':_0x5eea0b['locale']}:{}},_0x5eea0b[_0x39cc66(0x15b)]=_0x5befd4;if(!_0x5eea0b[_0x39cc66(0x140)])_0x5eea0b[_0x39cc66(0x140)]=_0x1ce5ac;_0x1d0407=!![];}return(_0x39cc66(0x14a)in _0x5eea0b||_0x39cc66(0x15c)in _0x5eea0b)&&(delete _0x5eea0b[_0x39cc66(0x14a)],delete _0x5eea0b['app'],_0x1d0407=!![]),{'config':_0x5eea0b,'migrated':_0x1d0407};}function writeNormalizedConfigIfNeeded(_0x1e8215,_0x2c0511){const _0x39621a=a205_0x4eb8a4,_0x22b70b=JSON['stringify'](_0x2c0511,null,0x2)+'\x0a';if(normalizedWriteCache[_0x39621a(0x153)](_0x1e8215)===_0x22b70b)return;writeConfigFile(_0x1e8215,_0x2c0511),normalizedWriteCache[_0x39621a(0x146)](_0x1e8215,_0x22b70b);}function parseAndNormalizeConfig(_0x3b06a0,_0x3e092e,_0x196c2b){const _0x34d960=a205_0x4eb8a4,_0xb04e57=parseCliConfigJsonFile(_0x3b06a0,_0x3e092e,_0x196c2b),_0x7c093a=normalizeLegacyConfigShape(_0xb04e57);if(_0x7c093a[_0x34d960(0x139)])try{writeNormalizedConfigIfNeeded(_0x3b06a0,_0x7c093a[_0x34d960(0x15a)]);}catch{}return _0x7c093a[_0x34d960(0x15a)];}export function loadRawConfigLayers(_0x23ecdc){const _0x44d65e=a205_0x4eb8a4;let _0x246ce6={},_0x59eea9={};const _0x1dd85f=resolveConfigPath(homedir());_0x1dd85f&&(_0x246ce6=parseAndNormalizeConfig(_0x1dd85f,'warn',_0x44d65e(0x134)));const _0x5831cc=_0x23ecdc??findProjectRootDirectory(),_0x1e823f=resolveConfigPath(_0x5831cc);return _0x1e823f&&(_0x59eea9=parseAndNormalizeConfig(_0x1e823f,_0x44d65e(0x149),_0x44d65e(0x13c))),{'globalPath':_0x1dd85f,'projectPath':_0x1e823f,'globalConfig':_0x246ce6,'projectConfig':_0x59eea9};}const INHERIT_WHITELIST=[a205_0x4eb8a4(0x147),'accessKey',a205_0x4eb8a4(0x145),a205_0x4eb8a4(0x14f),a205_0x4eb8a4(0x143),'pageSize'];export function mergeRawConfigLayers(_0x511ca){const _0x4d5363=a205_0x4eb8a4,{globalConfig:_0x56afbf,projectConfig:_0x53327f}=_0x511ca,_0x47c433=Object[_0x4d5363(0x141)](_0x53327f)[_0x4d5363(0x156)]>0x0;if(!_0x47c433)return mergeGlobalOnly(_0x56afbf);if(_0x53327f['inherit']===!![])return mergeFullInherit(_0x56afbf,_0x53327f);if(_0x53327f[_0x4d5363(0x136)]===![])return mergeIsolated(_0x53327f);return mergeProjectFirst(_0x56afbf,_0x53327f);}function mergeGlobalOnly(_0x5ca34b){const _0x4a8d39=a205_0x4eb8a4,_0x3f04ea={..._0x5ca34b},_0x3d2ec0=_0x5ca34b[_0x4a8d39(0x15b)]&&typeof _0x5ca34b[_0x4a8d39(0x15b)]==='object'?_0x5ca34b['apps']:{};if(Object[_0x4a8d39(0x141)](_0x3d2ec0)['length']>0x0)_0x3f04ea[_0x4a8d39(0x15b)]=_0x3d2ec0;if(_0x5ca34b[_0x4a8d39(0x140)])_0x3f04ea['defaultApp']=_0x5ca34b[_0x4a8d39(0x140)];else{const _0x22b971=Object[_0x4a8d39(0x141)](_0x3d2ec0);if(_0x22b971['length']>0x0)_0x3f04ea[_0x4a8d39(0x140)]=_0x22b971[0x0];}return _0x3f04ea;}function mergeIsolated(_0x45a5d4){const _0x51dce2=a205_0x4eb8a4,_0x348362={..._0x45a5d4};delete _0x348362[_0x51dce2(0x136)];const _0x26049a=_0x45a5d4['apps']&&typeof _0x45a5d4[_0x51dce2(0x15b)]===_0x51dce2(0x13a)?_0x45a5d4[_0x51dce2(0x15b)]:{};Object['keys'](_0x26049a)[_0x51dce2(0x156)]>0x0?_0x348362[_0x51dce2(0x15b)]=_0x26049a:delete _0x348362[_0x51dce2(0x15b)];if('defaultApp'in _0x45a5d4)_0x348362[_0x51dce2(0x140)]=_0x45a5d4[_0x51dce2(0x140)];else Object[_0x51dce2(0x141)](_0x26049a)['length']>0x0?_0x348362['defaultApp']=Object[_0x51dce2(0x141)](_0x26049a)[0x0]:delete _0x348362[_0x51dce2(0x140)];return _0x348362;}function mergeProjectFirst(_0x2906d8,_0x339622){const _0x3becae=a205_0x4eb8a4,_0x584aac={..._0x339622};delete _0x584aac[_0x3becae(0x136)];for(const _0x32a61b of INHERIT_WHITELIST){!(_0x32a61b in _0x584aac)&&_0x32a61b in _0x2906d8&&(_0x584aac[_0x32a61b]=_0x2906d8[_0x32a61b]);}const _0xccb01c=_0x339622[_0x3becae(0x15b)]&&typeof _0x339622[_0x3becae(0x15b)]===_0x3becae(0x13a)?_0x339622['apps']:{};Object['keys'](_0xccb01c)[_0x3becae(0x156)]>0x0?_0x584aac[_0x3becae(0x15b)]=_0xccb01c:delete _0x584aac['apps'];if('defaultApp'in _0x339622)_0x584aac['defaultApp']=_0x339622[_0x3becae(0x140)];else Object[_0x3becae(0x141)](_0xccb01c)[_0x3becae(0x156)]>0x0?_0x584aac[_0x3becae(0x140)]=Object['keys'](_0xccb01c)[0x0]:delete _0x584aac['defaultApp'];return _0x584aac;}function mergeFullInherit(_0x257a3b,_0x117d0d){const _0x40018c=a205_0x4eb8a4,_0x3a5f78=_0x257a3b[_0x40018c(0x15b)]&&typeof _0x257a3b[_0x40018c(0x15b)]===_0x40018c(0x13a)?_0x257a3b[_0x40018c(0x15b)]:{},_0x2f0ac2=_0x117d0d[_0x40018c(0x15b)]&&typeof _0x117d0d[_0x40018c(0x15b)]===_0x40018c(0x13a)?_0x117d0d[_0x40018c(0x15b)]:{},_0x463760={..._0x3a5f78,..._0x2f0ac2},_0x574dfe={..._0x257a3b,..._0x117d0d};delete _0x574dfe[_0x40018c(0x136)];if(Object[_0x40018c(0x141)](_0x463760)[_0x40018c(0x156)]>0x0)_0x574dfe['apps']=_0x463760;if(_0x40018c(0x140)in _0x117d0d)_0x574dfe[_0x40018c(0x140)]=_0x117d0d[_0x40018c(0x140)];else{if(Object[_0x40018c(0x141)](_0x2f0ac2)[_0x40018c(0x156)]>0x0)_0x574dfe[_0x40018c(0x140)]=Object['keys'](_0x2f0ac2)[0x0];else{if(_0x257a3b[_0x40018c(0x140)])_0x574dfe[_0x40018c(0x140)]=_0x257a3b[_0x40018c(0x140)];else{const _0x42f9ee=Object[_0x40018c(0x141)](_0x3a5f78);if(_0x42f9ee[_0x40018c(0x156)]>0x0)_0x574dfe[_0x40018c(0x140)]=_0x42f9ee[0x0];}}}return _0x574dfe;}export function readRawConfigWithLayers(_0x150b65){const _0xdfdd9f=loadRawConfigLayers(_0x150b65);return{'config':mergeRawConfigLayers(_0xdfdd9f),'layers':_0xdfdd9f};}export function readRawConfig(_0x8ca03c){return mergeRawConfigLayers(loadRawConfigLayers(_0x8ca03c));}export function readConfigFile(_0xbd979f){const _0x34df99=a205_0x4eb8a4;return parseAndNormalizeConfig(_0xbd979f,_0x34df99(0x164));}export function writeConfigFile(_0x2bfcbf,_0x20c0cb){const _0x415b7d=a205_0x4eb8a4,_0x42bd8f=dirname(_0x2bfcbf);!existsSync(_0x42bd8f)&&mkdirSync(_0x42bd8f,{'recursive':!![]});const _0x73adb9=_0x2bfcbf+'.tmp';try{writeFileSync(_0x73adb9,JSON[_0x415b7d(0x14e)](_0x20c0cb,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x73adb9,_0x2bfcbf);}catch(_0xe8c990){try{unlinkSync(_0x73adb9);}catch{}throw _0xe8c990;}}export function resolveWriteConfigPath(_0x4c797f){const _0x174f5a=a205_0x4eb8a4,_0x46dc91=_0x4c797f===_0x174f5a(0x14b)?process[_0x174f5a(0x13e)]():homedir(),_0x46825e=resolveConfigPath(_0x46dc91);return _0x46825e??resolve(_0x46dc91,NEW_CONFIG_NAME);}
|
|
1
|
+
const a215_0x39dede=a215_0x4725;(function(_0x3883e9,_0x5caa5f){const _0x3041bd=a215_0x4725,_0x5786=_0x3883e9();while(!![]){try{const _0x4854f6=parseInt(_0x3041bd(0x11c))/0x1*(parseInt(_0x3041bd(0x13d))/0x2)+parseInt(_0x3041bd(0x121))/0x3*(parseInt(_0x3041bd(0x125))/0x4)+parseInt(_0x3041bd(0x140))/0x5*(parseInt(_0x3041bd(0x129))/0x6)+parseInt(_0x3041bd(0x144))/0x7*(-parseInt(_0x3041bd(0x132))/0x8)+-parseInt(_0x3041bd(0x122))/0x9+parseInt(_0x3041bd(0x123))/0xa*(parseInt(_0x3041bd(0x131))/0xb)+-parseInt(_0x3041bd(0x12a))/0xc;if(_0x4854f6===_0x5caa5f)break;else _0x5786['push'](_0x5786['shift']());}catch(_0x577f79){_0x5786['push'](_0x5786['shift']());}}}(a215_0x1ecc,0xca698));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x39dede(0x13f);export const CONFIG_NAMES=[a215_0x39dede(0x13f),'.lovrabet.json',a215_0x39dede(0x127)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1babfa=>_0x1babfa!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x190d1b){for(const _0x1b32b0 of CONFIG_NAMES){const _0x222472=resolve(_0x190d1b,_0x1b32b0);if(existsSync(_0x222472))return _0x222472;}return undefined;}function a215_0x1ecc(){const _0x425eec=['warn','parse','466795lkpoYx','keys','pageSize','Global','format','.tmp','defaultApp','accessKey','26613FdRplP','trim','cwd','object','apps','57MZBVcD','2398023TXbecq','4186670zzMtms','config','55152JhJWXY','migrated','.lovrabetrc','Project','1050XBfNVM','948048OsTQMA','set','apiDir','\x0a\x20\x20','message','status','missing','11kLyIly','8hKEqdu','riskLevel','app','env','stringify','length','silent','locale','empty','appcode','inherit','8EjPBds','utf8','.rabetbase.json','12975vyDlTw','cookie'];a215_0x1ecc=function(){return _0x425eec;};return a215_0x1ecc();}export function findProjectRootDirectory(_0x4e4632=process[a215_0x39dede(0x11e)]()){let _0x4dec11=resolve(_0x4e4632);const {root:_0x14880c}=parse(_0x4dec11),_0x474d2d=homedir();while(!![]){if(resolveConfigPath(_0x4dec11)){if(_0x4dec11===_0x474d2d)break;return _0x4dec11;}if(_0x4dec11===_0x14880c||_0x4dec11===_0x474d2d)break;const _0x3c82da=dirname(_0x4dec11);if(_0x3c82da===_0x4dec11)break;_0x4dec11=_0x3c82da;}return resolve(_0x4e4632);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x420d19){const _0x42a228=a215_0x39dede;if(!existsSync(_0x420d19))return{'status':_0x42a228(0x130)};try{const _0x4f87ba=readFileSync(_0x420d19,{'encoding':_0x42a228(0x13e)});if(!_0x4f87ba?.[_0x42a228(0x11d)]())return{'status':_0x42a228(0x13a)};const _0x2453f0=JSON[_0x42a228(0x143)](_0x4f87ba);return{'status':'ok','data':_0x2453f0};}catch(_0x5354c6){return{'status':'error','message':_0x5354c6 instanceof Error?_0x5354c6[_0x42a228(0x12e)]:String(_0x5354c6)};}}function a215_0x4725(_0x4bdc1d,_0x570952){_0x4bdc1d=_0x4bdc1d-0x118;const _0x1ecc34=a215_0x1ecc();let _0x4725ee=_0x1ecc34[_0x4bdc1d];return _0x4725ee;}function parseCliConfigJsonFile(_0x114703,_0x4105a9,_0x57b132){const _0x4aab57=a215_0x39dede,_0x30e051=inspectCliConfigJsonFile(_0x114703);if(_0x30e051['status']===_0x4aab57(0x130)||_0x30e051['status']==='empty')return{};if(_0x30e051[_0x4aab57(0x12f)]==='ok')return _0x30e051['data'];return _0x4105a9===_0x4aab57(0x142)&&_0x57b132&&console['error'](CLI_BIN_NAME+':\x20'+_0x57b132+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x114703+_0x4aab57(0x12d)+_0x30e051[_0x4aab57(0x12e)]),{};}function normalizeLegacyConfigShape(_0x3c4add){const _0xc89bbb=a215_0x39dede;if(!_0x3c4add||typeof _0x3c4add!=='object')return{'config':{},'migrated':![]};const _0x5a8d62={..._0x3c4add},_0x2d99cd=_0x5a8d62[_0xc89bbb(0x120)]&&typeof _0x5a8d62[_0xc89bbb(0x120)]==='object'?{..._0x5a8d62[_0xc89bbb(0x120)]}:{},_0x131551=Object[_0xc89bbb(0x145)](_0x2d99cd)[_0xc89bbb(0x137)],_0x54f3dc=_0x5a8d62[_0xc89bbb(0x13b)]||_0x5a8d62[_0xc89bbb(0x134)];let _0x138043=![];if(_0x54f3dc&&_0x131551===0x0){const _0x1b810b=typeof _0x5a8d62[_0xc89bbb(0x11a)]==='string'&&_0x5a8d62['defaultApp'][_0xc89bbb(0x11d)]()?_0x5a8d62['defaultApp']:String(_0x54f3dc)[_0xc89bbb(0x11d)]();_0x2d99cd[_0x1b810b]={'appcode':String(_0x54f3dc)[_0xc89bbb(0x11d)](),..._0x5a8d62[_0xc89bbb(0x135)]!=null?{'env':_0x5a8d62[_0xc89bbb(0x135)]}:{},..._0x5a8d62[_0xc89bbb(0x12c)]!=null?{'apiDir':_0x5a8d62[_0xc89bbb(0x12c)]}:{},..._0x5a8d62['cookie']!=null?{'cookie':_0x5a8d62[_0xc89bbb(0x141)]}:{},..._0x5a8d62[_0xc89bbb(0x11b)]!=null?{'accessKey':_0x5a8d62[_0xc89bbb(0x11b)]}:{},..._0x5a8d62[_0xc89bbb(0x118)]!=null?{'format':_0x5a8d62['format']}:{},..._0x5a8d62[_0xc89bbb(0x146)]!=null?{'pageSize':_0x5a8d62['pageSize']}:{},..._0x5a8d62[_0xc89bbb(0x133)]!=null?{'riskLevel':_0x5a8d62['riskLevel']}:{},..._0x5a8d62[_0xc89bbb(0x139)]!=null?{'locale':_0x5a8d62[_0xc89bbb(0x139)]}:{}},_0x5a8d62[_0xc89bbb(0x120)]=_0x2d99cd;if(!_0x5a8d62[_0xc89bbb(0x11a)])_0x5a8d62[_0xc89bbb(0x11a)]=_0x1b810b;_0x138043=!![];}return('appcode'in _0x5a8d62||'app'in _0x5a8d62)&&(delete _0x5a8d62[_0xc89bbb(0x13b)],delete _0x5a8d62['app'],_0x138043=!![]),{'config':_0x5a8d62,'migrated':_0x138043};}function writeNormalizedConfigIfNeeded(_0x2923b7,_0x21a6e8){const _0x279547=a215_0x39dede,_0x2320f4=JSON[_0x279547(0x136)](_0x21a6e8,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2923b7)===_0x2320f4)return;writeConfigFile(_0x2923b7,_0x21a6e8),normalizedWriteCache[_0x279547(0x12b)](_0x2923b7,_0x2320f4);}function parseAndNormalizeConfig(_0x13cf1c,_0x73fc8a,_0x1ab3ca){const _0x17a99c=a215_0x39dede,_0x33311a=parseCliConfigJsonFile(_0x13cf1c,_0x73fc8a,_0x1ab3ca),_0x3b301a=normalizeLegacyConfigShape(_0x33311a);if(_0x3b301a[_0x17a99c(0x126)])try{writeNormalizedConfigIfNeeded(_0x13cf1c,_0x3b301a['config']);}catch{}return _0x3b301a[_0x17a99c(0x124)];}export function loadRawConfigLayers(_0x5c68c7){const _0x3343c9=a215_0x39dede;let _0x2cff5d={},_0x2e72d5={};const _0x4cb560=resolveConfigPath(homedir());_0x4cb560&&(_0x2cff5d=parseAndNormalizeConfig(_0x4cb560,_0x3343c9(0x142),_0x3343c9(0x147)));const _0x5df165=_0x5c68c7??findProjectRootDirectory(),_0x18299f=resolveConfigPath(_0x5df165);return _0x18299f&&(_0x2e72d5=parseAndNormalizeConfig(_0x18299f,_0x3343c9(0x142),_0x3343c9(0x128))),{'globalPath':_0x4cb560,'projectPath':_0x18299f,'globalConfig':_0x2cff5d,'projectConfig':_0x2e72d5};}const INHERIT_WHITELIST=[a215_0x39dede(0x141),a215_0x39dede(0x11b),a215_0x39dede(0x139),a215_0x39dede(0x118),a215_0x39dede(0x133),a215_0x39dede(0x146)];export function mergeRawConfigLayers(_0x3c4b0d){const _0x1ead59=a215_0x39dede,{globalConfig:_0x391929,projectConfig:_0x1bf859}=_0x3c4b0d,_0xf9d5ca=Object[_0x1ead59(0x145)](_0x1bf859)[_0x1ead59(0x137)]>0x0;if(!_0xf9d5ca)return mergeGlobalOnly(_0x391929);if(_0x1bf859[_0x1ead59(0x13c)]===!![])return mergeFullInherit(_0x391929,_0x1bf859);if(_0x1bf859['inherit']===![])return mergeIsolated(_0x1bf859);return mergeProjectFirst(_0x391929,_0x1bf859);}function mergeGlobalOnly(_0x1b75bf){const _0xf2f973=a215_0x39dede,_0x258887={..._0x1b75bf},_0x3cea76=_0x1b75bf['apps']&&typeof _0x1b75bf[_0xf2f973(0x120)]==='object'?_0x1b75bf[_0xf2f973(0x120)]:{};if(Object[_0xf2f973(0x145)](_0x3cea76)[_0xf2f973(0x137)]>0x0)_0x258887[_0xf2f973(0x120)]=_0x3cea76;if(_0x1b75bf['defaultApp'])_0x258887[_0xf2f973(0x11a)]=_0x1b75bf[_0xf2f973(0x11a)];else{const _0x3b7f17=Object[_0xf2f973(0x145)](_0x3cea76);if(_0x3b7f17['length']>0x0)_0x258887[_0xf2f973(0x11a)]=_0x3b7f17[0x0];}return _0x258887;}function mergeIsolated(_0x254d9f){const _0x1d058c=a215_0x39dede,_0x365b62={..._0x254d9f};delete _0x365b62[_0x1d058c(0x13c)];const _0x454239=_0x254d9f['apps']&&typeof _0x254d9f[_0x1d058c(0x120)]===_0x1d058c(0x11f)?_0x254d9f[_0x1d058c(0x120)]:{};Object[_0x1d058c(0x145)](_0x454239)[_0x1d058c(0x137)]>0x0?_0x365b62['apps']=_0x454239:delete _0x365b62[_0x1d058c(0x120)];if('defaultApp'in _0x254d9f)_0x365b62['defaultApp']=_0x254d9f['defaultApp'];else Object['keys'](_0x454239)[_0x1d058c(0x137)]>0x0?_0x365b62[_0x1d058c(0x11a)]=Object[_0x1d058c(0x145)](_0x454239)[0x0]:delete _0x365b62['defaultApp'];return _0x365b62;}function mergeProjectFirst(_0x1f6f74,_0x19fc48){const _0x5dd7b0=a215_0x39dede,_0x567d20={..._0x19fc48};delete _0x567d20[_0x5dd7b0(0x13c)];for(const _0x3e9335 of INHERIT_WHITELIST){!(_0x3e9335 in _0x567d20)&&_0x3e9335 in _0x1f6f74&&(_0x567d20[_0x3e9335]=_0x1f6f74[_0x3e9335]);}const _0x134cc5=_0x19fc48[_0x5dd7b0(0x120)]&&typeof _0x19fc48['apps']===_0x5dd7b0(0x11f)?_0x19fc48[_0x5dd7b0(0x120)]:{};Object[_0x5dd7b0(0x145)](_0x134cc5)['length']>0x0?_0x567d20[_0x5dd7b0(0x120)]=_0x134cc5:delete _0x567d20[_0x5dd7b0(0x120)];if(_0x5dd7b0(0x11a)in _0x19fc48)_0x567d20[_0x5dd7b0(0x11a)]=_0x19fc48[_0x5dd7b0(0x11a)];else Object['keys'](_0x134cc5)[_0x5dd7b0(0x137)]>0x0?_0x567d20[_0x5dd7b0(0x11a)]=Object[_0x5dd7b0(0x145)](_0x134cc5)[0x0]:delete _0x567d20[_0x5dd7b0(0x11a)];return _0x567d20;}function mergeFullInherit(_0x524255,_0x16cc55){const _0x2a8dc0=a215_0x39dede,_0x127b56=_0x524255['apps']&&typeof _0x524255['apps']===_0x2a8dc0(0x11f)?_0x524255[_0x2a8dc0(0x120)]:{},_0x3303c9=_0x16cc55[_0x2a8dc0(0x120)]&&typeof _0x16cc55['apps']===_0x2a8dc0(0x11f)?_0x16cc55[_0x2a8dc0(0x120)]:{},_0x1962e2={..._0x127b56,..._0x3303c9},_0x15dd81={..._0x524255,..._0x16cc55};delete _0x15dd81['inherit'];if(Object[_0x2a8dc0(0x145)](_0x1962e2)['length']>0x0)_0x15dd81[_0x2a8dc0(0x120)]=_0x1962e2;if(_0x2a8dc0(0x11a)in _0x16cc55)_0x15dd81[_0x2a8dc0(0x11a)]=_0x16cc55[_0x2a8dc0(0x11a)];else{if(Object['keys'](_0x3303c9)[_0x2a8dc0(0x137)]>0x0)_0x15dd81[_0x2a8dc0(0x11a)]=Object[_0x2a8dc0(0x145)](_0x3303c9)[0x0];else{if(_0x524255['defaultApp'])_0x15dd81[_0x2a8dc0(0x11a)]=_0x524255['defaultApp'];else{const _0x4a24ee=Object[_0x2a8dc0(0x145)](_0x127b56);if(_0x4a24ee[_0x2a8dc0(0x137)]>0x0)_0x15dd81[_0x2a8dc0(0x11a)]=_0x4a24ee[0x0];}}}return _0x15dd81;}export function readRawConfigWithLayers(_0x2e9539){const _0x4febac=loadRawConfigLayers(_0x2e9539);return{'config':mergeRawConfigLayers(_0x4febac),'layers':_0x4febac};}export function readRawConfig(_0x46efa8){return mergeRawConfigLayers(loadRawConfigLayers(_0x46efa8));}export function readConfigFile(_0x39c301){const _0x129c40=a215_0x39dede;return parseAndNormalizeConfig(_0x39c301,_0x129c40(0x138));}export function writeConfigFile(_0x1d4fd2,_0x304c31){const _0x3f9544=a215_0x39dede,_0x296ec4=dirname(_0x1d4fd2);!existsSync(_0x296ec4)&&mkdirSync(_0x296ec4,{'recursive':!![]});const _0x53d308=_0x1d4fd2+_0x3f9544(0x119);try{writeFileSync(_0x53d308,JSON[_0x3f9544(0x136)](_0x304c31,null,0x2)+'\x0a',{'encoding':_0x3f9544(0x13e),'mode':0x180}),renameSync(_0x53d308,_0x1d4fd2);}catch(_0x418168){try{unlinkSync(_0x53d308);}catch{}throw _0x418168;}}export function resolveWriteConfigPath(_0x4c3cb1){const _0x5d4b43=a215_0x39dede,_0x19a05a=_0x4c3cb1==='project'?process[_0x5d4b43(0x11e)]():homedir(),_0x260594=resolveConfigPath(_0x19a05a);return _0x260594??resolve(_0x19a05a,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0x4f5d21=a216_0x4f25;(function(_0x5bd992,_0x17c4c8){const _0x3d431e=a216_0x4f25,_0x3a19a8=_0x5bd992();while(!![]){try{const _0x4a933e=parseInt(_0x3d431e(0x18a))/0x1*(parseInt(_0x3d431e(0x173))/0x2)+-parseInt(_0x3d431e(0x186))/0x3*(-parseInt(_0x3d431e(0x17f))/0x4)+parseInt(_0x3d431e(0x189))/0x5+-parseInt(_0x3d431e(0x168))/0x6*(parseInt(_0x3d431e(0x18d))/0x7)+-parseInt(_0x3d431e(0x16f))/0x8*(-parseInt(_0x3d431e(0x16e))/0x9)+parseInt(_0x3d431e(0x167))/0xa+-parseInt(_0x3d431e(0x164))/0xb*(parseInt(_0x3d431e(0x17e))/0xc);if(_0x4a933e===_0x17c4c8)break;else _0x3a19a8['push'](_0x3a19a8['shift']());}catch(_0x5d55ef){_0x3a19a8['push'](_0x3a19a8['shift']());}}}(a216_0x2d1a,0x6262b));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x103e58){return process.env[`RABETBASE_${_0x103e58}`]||process.env[`LOVRABET_${_0x103e58}`]||undefined;}function optionalString(_0x13f4f9){const _0x1bf918=a216_0x4f25;return typeof _0x13f4f9===_0x1bf918(0x163)&&_0x13f4f9[_0x1bf918(0x181)]()?_0x13f4f9[_0x1bf918(0x181)]():undefined;}export async function createContext(_0x1fcae1){const _0x1c8107=a216_0x4f25,{config:_0x457aaa,layers:_0x804234}=readRawConfigWithLayers(),_0x518f22=buildConfig(_0x457aaa,_0x1fcae1,_0x804234);await initGlobalEnvironment(_0x518f22);const {getUserDomain:_0xaa1acb,getApiDomain:_0x239aa8}=await import(_0x1c8107(0x187)),_0x39553f={'apiDomain':_0x239aa8(),'userDomain':_0xaa1acb()},_0x2cb05a=await buildAuth(_0x518f22);logger[_0x1c8107(0x171)](process[_0x1c8107(0x185)]());const _0x5e307c=(CLI_BIN_NAME+'\x20'+process[_0x1c8107(0x176)]['slice'](0x2)['join']('\x20'))[_0x1c8107(0x181)]();logger[_0x1c8107(0x165)](_0x5e307c);const {isNonInteractive:_0x487c4f}=await import(_0x1c8107(0x166)),_0x506429=_0x487c4f(_0x1fcae1);return{'config':_0x518f22,'auth':_0x2cb05a,'logger':logger,'env':_0x39553f,'nonInteractive':_0x506429};}export function buildConfigFromFlags(_0x555edf){const {config:_0x4b42b7,layers:_0x22de69}=readRawConfigWithLayers();return buildConfig(_0x4b42b7,_0x555edf,_0x22de69);}function a216_0x4f25(_0x2bda0b,_0x279d95){_0x2bda0b=_0x2bda0b-0x162;const _0x2d1abf=a216_0x2d1a();let _0x4f25b8=_0x2d1abf[_0x2bda0b];return _0x4f25b8;}export async function initGlobalEnvironment(_0x5d2707){const _0x1cb141=a216_0x4f25,{initEnv:_0x21d3fb}=await import('./constant/env.js');_0x21d3fb(_0x5d2707[_0x1cb141(0x179)]);const {initDomains:_0x22dd22}=await import(_0x1cb141(0x187));_0x22dd22({'apiDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.[_0x1cb141(0x18c)]),'userDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.[_0x1cb141(0x17c)]),'runtimeDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.['runtimeDomain'])});}export function getConfigAppCode(_0x1bfca8){const _0x389f86=a216_0x4f25,_0x4d41fc=readRawConfig(_0x1bfca8);if(_0x4d41fc['apps']&&typeof _0x4d41fc[_0x389f86(0x184)]===_0x389f86(0x16c)){const _0x416349=_0x4d41fc[_0x389f86(0x169)];if(_0x416349&&_0x4d41fc[_0x389f86(0x184)][_0x416349]?.[_0x389f86(0x180)])return String(_0x4d41fc['apps'][_0x416349][_0x389f86(0x180)])[_0x389f86(0x181)]();const _0xd72f0f=Object[_0x389f86(0x16d)](_0x4d41fc[_0x389f86(0x184)])[0x0];if(_0xd72f0f?.[_0x389f86(0x180)])return String(_0xd72f0f[_0x389f86(0x180)])[_0x389f86(0x181)]();}const _0x582f16=_0x4d41fc[_0x389f86(0x180)]||_0x4d41fc[_0x389f86(0x177)];if(typeof _0x582f16!=='string'||_0x582f16['trim']()==='')return undefined;return _0x582f16[_0x389f86(0x181)]();}export function getMultiAppConfigs(_0x5f5047=a216_0x4f5d21(0x162),_0x3dad30){const _0x57b16d=a216_0x4f5d21,_0x4c5699=loadRawConfigLayers(_0x3dad30);let _0x45b8a6,_0x5b920b;if(_0x5f5047===_0x57b16d(0x170)){const _0x2554cb=_0x4c5699[_0x57b16d(0x174)][_0x57b16d(0x184)]&&typeof _0x4c5699[_0x57b16d(0x174)]['apps']==='object'?_0x4c5699[_0x57b16d(0x174)][_0x57b16d(0x184)]:{},_0x4dc7a0=_0x4c5699[_0x57b16d(0x16b)][_0x57b16d(0x184)]&&typeof _0x4c5699[_0x57b16d(0x16b)]['apps']===_0x57b16d(0x16c)?_0x4c5699[_0x57b16d(0x16b)][_0x57b16d(0x184)]:{};_0x45b8a6={..._0x2554cb,..._0x4dc7a0};const _0x419837=readRawConfig(_0x3dad30);_0x5b920b=_0x419837[_0x57b16d(0x169)];}else _0x45b8a6=_0x4c5699[_0x57b16d(0x16b)]['apps'],_0x5b920b=_0x4c5699['projectConfig'][_0x57b16d(0x169)];if(!_0x45b8a6||typeof _0x45b8a6!==_0x57b16d(0x16c)||Object[_0x57b16d(0x17d)](_0x45b8a6)[_0x57b16d(0x16a)]===0x0)return null;return Object[_0x57b16d(0x17b)](_0x45b8a6)['map'](([_0x372546,_0x4159f3])=>({'name':_0x372546,'appcode':_0x4159f3?.['appcode']||'','isDefault':_0x372546===_0x5b920b,'env':_0x4159f3?.[_0x57b16d(0x179)],'apiDir':_0x4159f3?.['apiDir'],'cookie':_0x4159f3?.[_0x57b16d(0x17a)]||undefined}))[_0x57b16d(0x188)](_0x4cd00a=>_0x4cd00a[_0x57b16d(0x180)]);}export function getTemplateBaseUrl(_0x5d969c){const _0x4c5fb4=a216_0x4f5d21,_0x422646=readRawConfig(_0x5d969c);if(_0x422646[_0x4c5fb4(0x175)]&&typeof _0x422646[_0x4c5fb4(0x175)]===_0x4c5fb4(0x163))return _0x422646[_0x4c5fb4(0x175)][_0x4c5fb4(0x178)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function a216_0x2d1a(){const _0x40b7c8=['defaultApp','length','projectConfig','object','values','131022vSDnKK','320BOaBXO','merged','setLogPath','raw','2gUlusq','globalConfig','template_base_url','argv','app','replace','env','cookie','entries','userDomain','keys','88572DCtLls','4xHhBZs','appcode','trim','apiDir','api.ts','apps','cwd','767526NVOUia','./constant/domain.js','filter','1328495ilUjcz','148711uvthWN','find','apiDomain','7VuuGRo','project','string','1892pmacQg','setRawCommand','./utils/is-non-interactive.js','7100000wlzPFw','1740318oDzfdr'];a216_0x2d1a=function(){return _0x40b7c8;};return a216_0x2d1a();}function buildConfig(_0x438b95,_0x26d140,_0x454a9f){return{...resolveAppConfig({'raw':_0x438b95,'flags':_0x26d140,'layers':_0x454a9f,'readEnv':env}),'raw':_0x438b95};}export function resolveApiFilePath(_0x4d86ff,_0x1c9348){const _0x198218=a216_0x4f5d21,_0x543e99=resolve(process[_0x198218(0x185)](),_0x4d86ff),_0x357279=resolve(_0x543e99,_0x198218(0x183));if(!_0x1c9348)return _0x357279;const _0x309ce0=readRawConfig(),_0x26aeff=_0x309ce0[_0x198218(0x184)]&&typeof _0x309ce0[_0x198218(0x184)]==='object'?_0x309ce0[_0x198218(0x184)]:{},_0x3e3bbd=Object[_0x198218(0x17b)](_0x26aeff)[_0x198218(0x18b)](([,_0x654e4f])=>_0x654e4f?.['appcode']===_0x1c9348);if(!_0x3e3bbd)return _0x357279;const [_0x198ebd,_0x56c485]=_0x3e3bbd,_0x12c0fc=typeof _0x309ce0['defaultApp']===_0x198218(0x163)?_0x309ce0[_0x198218(0x169)]:undefined;if(_0x56c485?.[_0x198218(0x182)])return _0x357279;if(_0x12c0fc&&_0x198ebd!==_0x12c0fc)return resolve(_0x543e99,_0x198ebd+'-api.ts');return _0x357279;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf8439b,_0x13fee1){const _0x266050=a217_0x250a,_0x55767d=_0xf8439b();while(!![]){try{const _0x138f72=-parseInt(_0x266050(0x130))/0x1+-parseInt(_0x266050(0x12b))/0x2*(-parseInt(_0x266050(0x12c))/0x3)+-parseInt(_0x266050(0x13a))/0x4*(parseInt(_0x266050(0x13b))/0x5)+-parseInt(_0x266050(0x136))/0x6+-parseInt(_0x266050(0x12d))/0x7*(-parseInt(_0x266050(0x131))/0x8)+-parseInt(_0x266050(0x12a))/0x9*(-parseInt(_0x266050(0x138))/0xa)+parseInt(_0x266050(0x135))/0xb*(parseInt(_0x266050(0x134))/0xc);if(_0x138f72===_0x13fee1)break;else _0x55767d['push'](_0x55767d['shift']());}catch(_0x8b2e12){_0x55767d['push'](_0x55767d['shift']());}}}(a217_0x5d3d,0xbf58b));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x5f2a12){const _0x2401ba=a217_0x250a,_0x119129=[],_0x3580f3=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x4ac0d7;while((_0x4ac0d7=_0x3580f3[_0x2401ba(0x137)](_0x5f2a12))!==null){_0x119129[_0x2401ba(0x128)]({'datasetCode':_0x4ac0d7[0x1],'tableName':_0x4ac0d7[0x2],'name':_0x4ac0d7[0x3],'alias':_0x4ac0d7[0x4]});}return _0x119129;}function a217_0x250a(_0x3307b7,_0x24e883){_0x3307b7=_0x3307b7-0x128;const _0x5d3d74=a217_0x5d3d();let _0x250afc=_0x5d3d74[_0x3307b7];return _0x250afc;}export function loadAliasMap(_0x3b4d6e,_0x4c915f,_0x360619){const _0x5623f4=a217_0x250a,_0x521369=_0x360619??resolve(process[_0x5623f4(0x139)](),_0x3b4d6e,_0x5623f4(0x129));if(cache[_0x5623f4(0x133)](_0x521369))return cache[_0x5623f4(0x13c)](_0x521369);if(!existsSync(_0x521369))return cache[_0x5623f4(0x12e)](_0x521369,[]),[];try{const _0x194989=readFileSync(_0x521369,'utf-8'),_0x1db102=parseApiFile(_0x194989);return cache[_0x5623f4(0x12e)](_0x521369,_0x1db102),_0x1db102;}catch{return cache[_0x5623f4(0x12e)](_0x521369,[]),[];}}export function resolveAlias(_0x3ece6f,_0x621f0b,_0x4f51cf,_0x151c75){const _0x3ae905=a217_0x250a;if(!_0x621f0b)return undefined;const _0x46a29e=loadAliasMap(_0x3ece6f,_0x4f51cf,_0x151c75),_0x1d9d08=_0x46a29e['find'](_0x588fbe=>_0x588fbe[_0x3ae905(0x132)]===_0x621f0b);return _0x1d9d08?.[_0x3ae905(0x12f)];}export function listAliases(_0x2ecb2b,_0x3d15d1,_0x484c64){return loadAliasMap(_0x2ecb2b,_0x3d15d1,_0x484c64);}function a217_0x5d3d(){const _0x4d0846=['api.ts','115191buVeSF','1165768bYiQFa','3PFLOsk','7NJTyIr','set','datasetCode','626273XRVcNB','1520104jguZJc','alias','has','5063280ryULUt','44tzsyGw','5303508cXEdhL','exec','30qbZxRy','cwd','8728nUhRHc','470NcmXcZ','get','push'];a217_0x5d3d=function(){return _0x4d0846;};return a217_0x5d3d();}
|