@lovrabet/rabetbase-cli 2.3.16-beta.4 → 2.3.16-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.d.ts +9 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.d.ts +2 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +8 -0
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.d.ts +13 -0
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.d.ts +25 -0
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.d.ts +2 -0
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.d.ts +1 -0
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.d.ts +51 -0
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.d.ts +1 -0
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.d.ts +5 -0
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.d.ts +1 -0
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.d.ts +12 -0
- package/lib/cli-flags.js +1 -1
- package/lib/cli.d.ts +2 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.d.ts +2 -0
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.d.ts +2 -0
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.d.ts +2 -0
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.d.ts +2 -0
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.d.ts +18 -0
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.d.ts +5 -0
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.d.ts +10 -0
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.d.ts +2 -0
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.d.ts +11 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.d.ts +46 -0
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.d.ts +2 -0
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.d.ts +2 -0
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.d.ts +2 -0
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.d.ts +2 -0
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.d.ts +2 -0
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.d.ts +105 -0
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.d.ts +2 -0
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.d.ts +4 -0
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.d.ts +2 -0
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.d.ts +2 -0
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.d.ts +5 -0
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.d.ts +2 -0
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.d.ts +2 -0
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.d.ts +2 -0
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.d.ts +2 -0
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.d.ts +8 -0
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.d.ts +2 -0
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.d.ts +2 -0
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.d.ts +2 -0
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.d.ts +2 -0
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.d.ts +17 -0
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.d.ts +17 -0
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.d.ts +11 -0
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.d.ts +12 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +26 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.d.ts +6 -0
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.d.ts +13 -0
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.d.ts +5 -0
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.d.ts +5 -0
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.d.ts +5 -0
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.d.ts +5 -0
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.d.ts +16 -0
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.d.ts +7 -0
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.d.ts +7 -0
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.d.ts +8 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.d.ts +33 -0
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.d.ts +18 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.d.ts +11 -0
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.d.ts +2 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.d.ts +2 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.d.ts +26 -0
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.d.ts +27 -0
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.d.ts +3 -0
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.d.ts +2 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.d.ts +2 -0
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.d.ts +2 -0
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.d.ts +2 -0
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.d.ts +2 -0
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.d.ts +2 -0
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.d.ts +128 -0
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.d.ts +2 -0
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.d.ts +53 -0
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.d.ts +17 -0
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.d.ts +2 -0
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.d.ts +30 -0
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.d.ts +2 -0
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.d.ts +2 -0
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.d.ts +2 -0
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.d.ts +2 -0
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.d.ts +2 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.d.ts +2 -0
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.d.ts +2 -0
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.d.ts +5 -0
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.d.ts +2 -0
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.d.ts +15 -0
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.d.ts +2 -0
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.d.ts +2 -0
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.d.ts +2 -0
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.d.ts +2 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.d.ts +2 -0
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.d.ts +11 -0
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.d.ts +2 -0
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.d.ts +23 -0
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.d.ts +2 -0
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.d.ts +32 -0
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.d.ts +2 -0
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.d.ts +2 -0
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.d.ts +2 -0
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.d.ts +2 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.d.ts +2 -0
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.d.ts +33 -0
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.d.ts +2 -0
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.d.ts +5 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.d.ts +2 -0
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.d.ts +2 -0
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.d.ts +3 -0
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.d.ts +2 -0
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.d.ts +2 -0
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.d.ts +2 -0
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.d.ts +17 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.d.ts +2 -0
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.d.ts +2 -0
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.d.ts +2 -0
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.d.ts +2 -0
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.d.ts +27 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.d.ts +12 -0
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.d.ts +12 -0
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.d.ts +10 -0
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.d.ts +12 -0
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +28 -0
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +69 -0
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.d.ts +17 -0
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.d.ts +7 -0
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +162 -0
- package/lib/commands/menu/shared/update-core.d.ts +11 -0
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.d.ts +6 -0
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.d.ts +2 -0
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.d.ts +2 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.d.ts +2 -0
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.d.ts +2 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.d.ts +2 -0
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.d.ts +2 -0
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.d.ts +2 -0
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.d.ts +2 -0
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.d.ts +2 -0
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.d.ts +2 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.d.ts +2 -0
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +105 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.d.ts +2 -0
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.d.ts +2 -0
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.d.ts +2 -0
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.d.ts +2 -0
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.d.ts +2 -0
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.d.ts +2 -0
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.d.ts +2 -0
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.d.ts +2 -0
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.d.ts +74 -0
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.d.ts +1 -0
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +6 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.d.ts +9 -0
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.d.ts +4 -0
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.d.ts +1 -0
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.d.ts +2 -0
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.d.ts +1 -0
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.d.ts +66 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.d.ts +2 -0
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.d.ts +2 -0
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.d.ts +2 -0
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.d.ts +2 -0
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.d.ts +2 -0
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.d.ts +107 -0
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.d.ts +2 -0
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.d.ts +2 -0
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.d.ts +2 -0
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.d.ts +2 -0
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.d.ts +2 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.d.ts +5 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.d.ts +10 -0
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.d.ts +5 -0
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.d.ts +2 -0
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.d.ts +2 -0
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.d.ts +5 -0
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.d.ts +2 -0
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.d.ts +5 -0
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.d.ts +5 -0
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.d.ts +23 -0
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.d.ts +5 -0
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.d.ts +2 -0
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.d.ts +2 -0
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.d.ts +2 -0
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.d.ts +2 -0
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.d.ts +2 -0
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.d.ts +10 -0
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/workspace/add.d.ts +6 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.d.ts +11 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.d.ts +6 -0
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.d.ts +50 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +1 -0
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.d.ts +34 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.d.ts +10 -0
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +14 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.d.ts +11 -0
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.d.ts +1 -0
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.d.ts +5 -0
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.d.ts +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.d.ts +36 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.d.ts +5 -0
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.d.ts +61 -0
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +102 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +31 -0
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +1018 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.d.ts +8 -0
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +28 -0
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.d.ts +7 -0
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.d.ts +25 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +92 -0
- package/lib/core/bff/utils.d.ts +25 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.d.ts +43 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.d.ts +6 -0
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.d.ts +4 -0
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.d.ts +8 -0
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/types.d.ts +22 -0
- package/lib/core/sql-index-auditor.d.ts +33 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.d.ts +7 -0
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.d.ts +7 -0
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.d.ts +5 -0
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.d.ts +14 -0
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/types.d.ts +43 -0
- package/lib/core/sql-sync/utils.d.ts +10 -0
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.d.ts +34 -0
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.d.ts +3 -0
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.d.ts +2 -0
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.d.ts +9 -0
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.d.ts +3 -0
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.d.ts +3 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.d.ts +4 -0
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.d.ts +11 -0
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.d.ts +15 -0
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.d.ts +2 -0
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.d.ts +14 -0
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.d.ts +36 -0
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.d.ts +3 -0
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +63 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -0
- package/lib/generated/build-info.js +1 -1
- package/lib/help.d.ts +1 -0
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.d.ts +4 -0
- package/lib/runtime/confirmation.js +1 -0
- package/lib/runtime/event.d.ts +5 -0
- package/lib/runtime/event.js +1 -0
- package/lib/runtime/index.d.ts +7 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/queue.d.ts +5 -0
- package/lib/runtime/queue.js +1 -0
- package/lib/runtime/resolve.d.ts +8 -0
- package/lib/runtime/resolve.js +1 -0
- package/lib/runtime/types.d.ts +50 -0
- package/lib/runtime/types.js +1 -0
- package/lib/skills/main.d.ts +41 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +99 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.d.ts +44 -0
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.d.ts +12 -0
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.d.ts +8 -0
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +93 -0
- package/lib/utils/ai_config.d.ts +47 -0
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.d.ts +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.d.ts +42 -0
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.d.ts +23 -0
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.d.ts +37 -0
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +9 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.d.ts +42 -0
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.d.ts +1 -0
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.d.ts +30 -0
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.d.ts +25 -0
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.d.ts +80 -0
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.d.ts +30 -0
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.d.ts +7 -0
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.d.ts +62 -0
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.d.ts +15 -0
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +21 -0
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.d.ts +38 -0
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.d.ts +1 -0
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +55 -0
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.d.ts +10 -0
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.d.ts +1 -0
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.d.ts +1 -0
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.d.ts +6 -0
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -1
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a194_0x1c4218=a194_0x360d;(function(_0x16e12a,_0x143b3f){const _0x270ccc=a194_0x360d,_0x2dfda0=_0x16e12a();while(!![]){try{const _0x29a43b=parseInt(_0x270ccc(0x13d))/0x1*(-parseInt(_0x270ccc(0x118))/0x2)+-parseInt(_0x270ccc(0x131))/0x3+parseInt(_0x270ccc(0x11c))/0x4+-parseInt(_0x270ccc(0x130))/0x5*(-parseInt(_0x270ccc(0x119))/0x6)+-parseInt(_0x270ccc(0x135))/0x7+parseInt(_0x270ccc(0x125))/0x8+parseInt(_0x270ccc(0x11b))/0x9*(-parseInt(_0x270ccc(0x11f))/0xa);if(_0x29a43b===_0x143b3f)break;else _0x2dfda0['push'](_0x2dfda0['shift']());}catch(_0x3639ae){_0x2dfda0['push'](_0x2dfda0['shift']());}}}(a194_0x1d52,0x41cf2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a194_0x1d52(){const _0x4fd0bf=['100qQjAEg','Access\x20key','appcode','cookie','toLowerCase','map','3332520wgEiIH','apiDir','Locale','API\x20directory\x20path','Config\x20key\x20(','riskLevel','Target\x20environment','accessKey','pageSize','entries','defaultApp','20WnPgHd','256776JmrDFK','locale','has','filter','380933UfqTob','en-US','apps','zh-CN','Auth\x20cookie','Risk\x20level','string','keys','40321EJRLmB','defaultFormat','inherit','trim','app','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','env','26oxebzU','722526uwEazV','number','20322OGWeCv','232276dEWtgx','length','format'];a194_0x1d52=function(){return _0x4fd0bf;};return a194_0x1d52();}import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a194_0x360d(_0x1df372,_0x47093e){_0x1df372=_0x1df372-0x118;const _0x1d52b8=a194_0x1d52();let _0x360dfe=_0x1d52b8[_0x1df372];return _0x360dfe;}import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a194_0x1c4218(0x122),a194_0x1c4218(0x12c),a194_0x1c4218(0x132),'format',a194_0x1c4218(0x12a)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a194_0x1c4218(0x121),'env',a194_0x1c4218(0x132),a194_0x1c4218(0x11e),a194_0x1c4218(0x122),'accessKey',a194_0x1c4218(0x126)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x131172){return[..._0x131172]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2a288f){const _0x239a25=a194_0x1c4218;return TOP_LEVEL_CONFIG_KEYS[_0x239a25(0x133)](_0x2a288f);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x20e7f0=a194_0x1c4218;return _0x20e7f0(0x129)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a194_0x1c4218(0x126),'cookie':a194_0x1c4218(0x122),'accessKey':a194_0x1c4218(0x12c),'defaultFormat':'format','pageSize':'pageSize','riskLevel':a194_0x1c4218(0x12a),'locale':a194_0x1c4218(0x132)};export function getAppProfileFlagDefs(){const _0x1fe80f=a194_0x1c4218;return[{'name':_0x1fe80f(0x143),'type':'string','description':_0x1fe80f(0x12b),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x128)},{'name':'cookie','type':'string','description':_0x1fe80f(0x139),'hidden':!![]},{'name':_0x1fe80f(0x12c),'type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x120),'hidden':!![]},{'name':_0x1fe80f(0x13e),'type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x142),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1fe80f(0x12d),'type':_0x1fe80f(0x11a),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x13a),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x1fe80f(0x127)}];}export function collectAppProfileOverrides(_0x4e611f){const _0x2218a4=a194_0x1c4218,_0x2587b6={};for(const [_0x14350a,_0x3b88e8]of Object[_0x2218a4(0x12e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x498623=_0x4e611f(_0x14350a);if(!_0x498623)continue;_0x2587b6[_0x3b88e8]=_0x3b88e8===_0x2218a4(0x12d)?Number(_0x498623):_0x498623;}return _0x2587b6;}export function buildAppProfileListFields(_0x14aa1a){const _0x55878c=a194_0x1c4218;return{'env':_0x14aa1a['env']??null,'apiDir':_0x14aa1a[_0x55878c(0x126)]??null,'hasCookie':!!_0x14aa1a[_0x55878c(0x122)],'hasAccessKey':!!_0x14aa1a['accessKey'],'format':_0x14aa1a[_0x55878c(0x11e)]??null,'pageSize':_0x14aa1a[_0x55878c(0x12d)]??null,'riskLevel':_0x14aa1a[_0x55878c(0x12a)]??null,'locale':_0x14aa1a[_0x55878c(0x132)]??null};}export function buildAppDoctorFields(_0x3df8cc,_0xd4e688){const _0x9ae6d=a194_0x1c4218;return{'env':{'value':_0x3df8cc[_0x9ae6d(0x143)]||_0xd4e688[_0x9ae6d(0x143)],'source':_0x3df8cc['env']?_0x9ae6d(0x141):_0x9ae6d(0x13f)},'apiDir':{'value':_0x3df8cc['apiDir']||_0xd4e688[_0x9ae6d(0x126)],'source':_0x3df8cc[_0x9ae6d(0x126)]?'app':_0x9ae6d(0x13f)},'cookie':{'value':_0x3df8cc[_0x9ae6d(0x122)]||_0xd4e688[_0x9ae6d(0x122)],'source':_0x3df8cc[_0x9ae6d(0x122)]?_0x9ae6d(0x141):_0x9ae6d(0x13f)},'accessKey':{'value':_0x3df8cc[_0x9ae6d(0x12c)]||_0xd4e688[_0x9ae6d(0x12c)],'source':_0x3df8cc[_0x9ae6d(0x12c)]?_0x9ae6d(0x141):_0x9ae6d(0x13f)}};}export function buildCanonicalAppConfig(_0x4d497d,_0x11900f){const _0x1825f8=a194_0x1c4218,_0x4d012=_0x4d497d[_0x1825f8(0x124)](_0x335c76=>String(_0x335c76||'')[_0x1825f8(0x140)]())[_0x1825f8(0x134)](Boolean);if(_0x4d012[_0x1825f8(0x11d)]===0x0)return{};const _0x4d8e8a={};for(const _0x57c7d8 of _0x4d012){_0x4d8e8a[_0x57c7d8]=_0x11900f?{'appcode':_0x57c7d8,'env':_0x11900f}:{'appcode':_0x57c7d8};}return{'apps':_0x4d8e8a,'defaultApp':_0x4d012[0x0]};}export function buildCanonicalProjectConfig(_0x41fc3b,_0x5dbf07){const _0x59a7fd=a194_0x1c4218,{appCodes:appCodes=[],env:_0x36b66c,metadata:_0x46d35e}=_0x5dbf07,_0x53adc2={..._0x41fc3b,..._0x46d35e||{}};delete _0x53adc2[_0x59a7fd(0x121)],delete _0x53adc2[_0x59a7fd(0x141)];if(_0x36b66c)_0x53adc2['env']=_0x36b66c;else!_0x53adc2[_0x59a7fd(0x143)]&&(_0x53adc2[_0x59a7fd(0x143)]=DEFAULT_CONFIG_VALUES[_0x59a7fd(0x143)]);const _0x2294f4=buildCanonicalAppConfig(appCodes,_0x53adc2[_0x59a7fd(0x143)]);return Object[_0x59a7fd(0x13c)](_0x2294f4)[_0x59a7fd(0x11d)]>0x0&&(_0x53adc2[_0x59a7fd(0x137)]=_0x2294f4['apps'],_0x53adc2[_0x59a7fd(0x12f)]=_0x2294f4['defaultApp']),_0x53adc2;}const LOCALE_MAP={'zh':a194_0x1c4218(0x138),'zh-cn':'zh-CN','zh_cn':a194_0x1c4218(0x138),'en':a194_0x1c4218(0x136),'en-us':a194_0x1c4218(0x136),'en_us':a194_0x1c4218(0x136)};export function normalizeLocale(_0x2229b4){const _0x35f67c=a194_0x1c4218;if(!_0x2229b4)return null;return LOCALE_MAP[_0x2229b4[_0x35f67c(0x123)]()]??null;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CLI_VERSION_POLICY_URL = "https://g.lovrabet.com/dist/rabetbase-cli/config/index.json";
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a195_0xa022(){const _0x37006e=['4157593LoVBQo','5451180ACzhHu','4373956iRtWVC','1521NbMddQ','11xptZya','56008uDYFdW','1338048KAdQbu','60TCaKGm','36QkwuAI','1398537ihKqVk','11922GYQxLu','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5KYFLGd'];a195_0xa022=function(){return _0x37006e;};return a195_0xa022();}const a195_0x3f239c=a195_0x513a;(function(_0x5f7363,_0x29cc51){const _0x3c1de1=a195_0x513a,_0x1e94be=_0x5f7363();while(!![]){try{const _0x5f5185=-parseInt(_0x3c1de1(0x13d))/0x1*(-parseInt(_0x3c1de1(0x136))/0x2)+-parseInt(_0x3c1de1(0x13f))/0x3+-parseInt(_0x3c1de1(0x13b))/0x4*(-parseInt(_0x3c1de1(0x138))/0x5)+parseInt(_0x3c1de1(0x141))/0x6*(parseInt(_0x3c1de1(0x135))/0x7)+-parseInt(_0x3c1de1(0x13e))/0x8*(-parseInt(_0x3c1de1(0x13c))/0x9)+-parseInt(_0x3c1de1(0x13a))/0xa+parseInt(_0x3c1de1(0x139))/0xb*(-parseInt(_0x3c1de1(0x140))/0xc);if(_0x5f5185===_0x29cc51)break;else _0x1e94be['push'](_0x1e94be['shift']());}catch(_0x13b78b){_0x1e94be['push'](_0x1e94be['shift']());}}}(a195_0xa022,0xa123a));function a195_0x513a(_0x2d7615,_0x36fea5){_0x2d7615=_0x2d7615-0x135;const _0xa022c6=a195_0xa022();let _0x513a5c=_0xa022c6[_0x2d7615];return _0x513a5c;}export const CLI_VERSION_POLICY_URL=a195_0x3f239c(0x137);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 全局安装后的可执行文件名(与 package.json 的 bin 字段一致)
|
|
3
|
+
*/
|
|
4
|
+
export declare const CLI_BIN_NAME = "rabetbase";
|
|
5
|
+
/**
|
|
6
|
+
* 产品显示名称(用于 help 标题等需要展示产品全名的地方)
|
|
7
|
+
*/
|
|
8
|
+
export declare const CLI_DISPLAY_NAME = "Rabetbase CLI";
|
|
9
|
+
/**
|
|
10
|
+
* npm 包名(用于升级提示等)
|
|
11
|
+
*/
|
|
12
|
+
export declare const NPM_PACKAGE_NAME = "@lovrabet/rabetbase-cli";
|
|
13
|
+
/**
|
|
14
|
+
* 全局 Flag 定义——单一来源。
|
|
15
|
+
* meow flags 配置和 generateFullHelp 的 GLOBAL OPTIONS 均从此派生,
|
|
16
|
+
* 避免两处各自维护时的不同步。
|
|
17
|
+
*
|
|
18
|
+
* hint:展示在 help 里的格式提示(可选),如 `<code>` 或 `production | daily`。
|
|
19
|
+
* hidden:命令级透传 flag,meow 需要感知但不在 GLOBAL OPTIONS 里展示。
|
|
20
|
+
*/
|
|
21
|
+
export interface GlobalFlagDef {
|
|
22
|
+
name: string;
|
|
23
|
+
meowKey: string;
|
|
24
|
+
type: "string" | "boolean";
|
|
25
|
+
description: string;
|
|
26
|
+
hint?: string;
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const GLOBAL_FLAGS: GlobalFlagDef[];
|
|
30
|
+
export declare const PIPELINE_FLAG_NAMES: Set<string>;
|
|
31
|
+
/** 从 GLOBAL_FLAGS 生成 meow flags 配置对象 */
|
|
32
|
+
export declare function buildMeowFlags(): Record<string, {
|
|
33
|
+
type: "string" | "boolean";
|
|
34
|
+
}>;
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a196_0x156f69=a196_0xf7e3;function a196_0xf7e3(_0x39f8df,_0x408968){_0x39f8df=_0x39f8df-0x14e;const _0x145d9d=a196_0x145d();let _0xf7e3a9=_0x145d9d[_0x39f8df];return _0xf7e3a9;}(function(_0x320e2a,_0x4717b4){const _0x33002f=a196_0xf7e3,_0x3720bd=_0x320e2a();while(!![]){try{const _0x1dff03=-parseInt(_0x33002f(0x170))/0x1+parseInt(_0x33002f(0x174))/0x2*(-parseInt(_0x33002f(0x15b))/0x3)+parseInt(_0x33002f(0x1b0))/0x4+parseInt(_0x33002f(0x1bf))/0x5*(parseInt(_0x33002f(0x166))/0x6)+parseInt(_0x33002f(0x196))/0x7+-parseInt(_0x33002f(0x1bd))/0x8+-parseInt(_0x33002f(0x16c))/0x9*(-parseInt(_0x33002f(0x163))/0xa);if(_0x1dff03===_0x4717b4)break;else _0x3720bd['push'](_0x3720bd['shift']());}catch(_0x1c4533){_0x3720bd['push'](_0x3720bd['shift']());}}}(a196_0x145d,0x52632));export const CLI_BIN_NAME=a196_0x156f69(0x1b6);export const CLI_DISPLAY_NAME=a196_0x156f69(0x1a5);function a196_0x145d(){const _0x5e4404=['clear','name','title','Verbose\x20output','menuIds','dry-run','parentId','Code\x20filter','production\x20|\x20daily','972153UAYVKJ','non-interactive','expect-parent-id','sql','Output\x20path','functionNode','SQL\x20string','env','Operation\x20type','Comma-separated\x20menu\x20IDs','menu-ids','type','Record\x20ID','Page\x20size','global','Rabetbase\x20CLI','sqlcode','operation-type','string','key','yes','datasetcode','expect-path','fromEnv','Apply\x20to\x20all','Menu\x20label','2601116FTYExX','taskId','output','dbid','Expected\x20current\x20menu\x20path','file','rabetbase','Config\x20key','fromEntries','Target\x20path','Alias\x20for\x20--non-interactive','json\x20|\x20pretty\x20|\x20compress','stdin','2573984fnZpYE','descriptionFile','8425vGoOQu','operation','enable-bff-save','expected-children-count','description-file','label','Title','tags','File\x20path','target','expectPath','from-env','Page\x20number','Schemas','<name>','sqlName','SQL\x20name','Expected\x20affected\x20count','Keyword\x20filter','Use\x20project\x20config\x20scope','Force\x20overwrite','params','expectParentId','confirm','nonInteractive','operationType','reveal','watch','dryRun','Select\x20app\x20profile\x20by\x20name','Enable\x20BFF\x20save','skipImports','Use\x20global\x20config\x20scope','expectedChildrenCount','task-id','Asynchronous\x20task\x20ID','1057074odUcXq','function-node','skip-imports','verbose','Dataset\x20code','Override\x20appcode','Watch\x20mode','format','132520IrOYHf','Expected\x20current\x20child\x20count','value','1698RmOqqt','Environment','Read\x20value\x20from\x20stdin','Read\x20value\x20from\x20environment\x20variable','Menu\x20sort\x20value','boolean','171utDUvy','sqlname','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Use\x20remote','506237SuYnvR','enableBffSave','Output\x20format','keyword','2eNTKzT','sql-name','Parent\x20menu\x20id','help','project','schemas','Show\x20help','pagesize','JSON\x20params','DB\x20ID','Config\x20value','app','map','Description','all','Description\x20file','code','SQL\x20code','page','sort','remote','force','Clear','appcode','<code>'];a196_0x145d=function(){return _0x5e4404;};return a196_0x145d();}export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a196_0x156f69(0x18b),'meowKey':a196_0x156f69(0x18b),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x160),'hint':a196_0x156f69(0x18c)},{'name':a196_0x156f69(0x17f),'meowKey':a196_0x156f69(0x17f),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x154),'hint':a196_0x156f69(0x1cd)},{'name':a196_0x156f69(0x19d),'meowKey':'env','type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x167),'hint':a196_0x156f69(0x195)},{'name':'format','meowKey':a196_0x156f69(0x162),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x172),'hint':a196_0x156f69(0x1bb)},{'name':'jq','meowKey':'jq','type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x16e),'hint':'<expr>'},{'name':'dry-run','meowKey':a196_0x156f69(0x153),'type':a196_0x156f69(0x16b),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a196_0x156f69(0x1aa),'type':a196_0x156f69(0x16b),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a196_0x156f69(0x14f),'type':a196_0x156f69(0x16b),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a196_0x156f69(0x1a4),'meowKey':a196_0x156f69(0x1a4),'type':'boolean','description':a196_0x156f69(0x157)},{'name':a196_0x156f69(0x178),'meowKey':a196_0x156f69(0x178),'type':'boolean','description':a196_0x156f69(0x1d2)},{'name':'ci','meowKey':'ci','type':a196_0x156f69(0x16b),'description':a196_0x156f69(0x1ba),'hidden':!![]},{'name':'help','meowKey':a196_0x156f69(0x177),'type':a196_0x156f69(0x16b),'description':a196_0x156f69(0x17a)},{'name':a196_0x156f69(0x18e),'meowKey':'name','type':a196_0x156f69(0x1a8),'description':'Name','hidden':!![]},{'name':a196_0x156f69(0x18f),'meowKey':a196_0x156f69(0x18f),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1c5),'hidden':!![]},{'name':a196_0x156f69(0x18d),'meowKey':a196_0x156f69(0x18d),'type':a196_0x156f69(0x16b),'description':a196_0x156f69(0x18a),'hidden':!![]},{'name':a196_0x156f69(0x152),'meowKey':a196_0x156f69(0x152),'type':a196_0x156f69(0x16b),'description':a196_0x156f69(0x161),'hidden':!![]},{'name':a196_0x156f69(0x1b2),'meowKey':'output','type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x19a),'hidden':!![]},{'name':a196_0x156f69(0x1d4),'meowKey':'params','type':'string','description':a196_0x156f69(0x17c),'hidden':!![]},{'name':a196_0x156f69(0x1ab),'meowKey':'datasetcode','type':'string','description':a196_0x156f69(0x15f),'hidden':!![]},{'name':a196_0x156f69(0x182),'meowKey':a196_0x156f69(0x182),'type':a196_0x156f69(0x16b),'description':a196_0x156f69(0x1ae),'hidden':!![]},{'name':a196_0x156f69(0x1c1),'meowKey':a196_0x156f69(0x171),'type':'boolean','description':a196_0x156f69(0x155),'hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1a2),'hidden':!![]},{'name':a196_0x156f69(0x1a1),'meowKey':'type','type':a196_0x156f69(0x1a8),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a196_0x156f69(0x1b5),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1c7),'hidden':!![]},{'name':'sqlcode','meowKey':a196_0x156f69(0x1a6),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x185),'hidden':!![]},{'name':a196_0x156f69(0x175),'meowKey':a196_0x156f69(0x1ce),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a196_0x156f69(0x16d),'meowKey':a196_0x156f69(0x16d),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1cf),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x17d),'hidden':!![]},{'name':a196_0x156f69(0x1b3),'meowKey':a196_0x156f69(0x1b3),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x17d),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a196_0x156f69(0x181),'hidden':!![]},{'name':a196_0x156f69(0x1c3),'meowKey':a196_0x156f69(0x1be),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x183),'hidden':!![]},{'name':a196_0x156f69(0x186),'meowKey':a196_0x156f69(0x186),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1cb),'hidden':!![]},{'name':a196_0x156f69(0x17b),'meowKey':a196_0x156f69(0x17b),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1a3),'hidden':!![]},{'name':a196_0x156f69(0x173),'meowKey':a196_0x156f69(0x173),'type':'string','description':a196_0x156f69(0x1d1),'hidden':!![]},{'name':a196_0x156f69(0x184),'meowKey':'code','type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x194),'hidden':!![]},{'name':a196_0x156f69(0x199),'meowKey':a196_0x156f69(0x199),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x19c),'hidden':!![]},{'name':'schemas','meowKey':a196_0x156f69(0x179),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1cc),'hidden':!![]},{'name':a196_0x156f69(0x1c0),'meowKey':a196_0x156f69(0x1c0),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a196_0x156f69(0x1c8),'meowKey':a196_0x156f69(0x1c8),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1b9),'hidden':!![]},{'name':a196_0x156f69(0x15d),'meowKey':a196_0x156f69(0x156),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0x156f69(0x1a9),'meowKey':a196_0x156f69(0x1a9),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1b7),'hidden':!![]},{'name':a196_0x156f69(0x165),'meowKey':a196_0x156f69(0x165),'type':'string','description':a196_0x156f69(0x17e),'hidden':!![]},{'name':a196_0x156f69(0x1c6),'meowKey':a196_0x156f69(0x1c6),'type':'string','description':'Tags','hidden':!![]},{'name':'stdin','meowKey':a196_0x156f69(0x1bc),'type':a196_0x156f69(0x16b),'description':a196_0x156f69(0x168),'hidden':!![]},{'name':a196_0x156f69(0x1ca),'meowKey':a196_0x156f69(0x1ad),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x169),'hidden':!![]},{'name':'reveal','meowKey':a196_0x156f69(0x151),'type':a196_0x156f69(0x16b),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a196_0x156f69(0x189),'meowKey':a196_0x156f69(0x189),'type':a196_0x156f69(0x16b),'description':a196_0x156f69(0x1d3),'hidden':!![]},{'name':a196_0x156f69(0x14e),'meowKey':a196_0x156f69(0x14e),'type':a196_0x156f69(0x16b),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0x156f69(0x188),'meowKey':a196_0x156f69(0x188),'type':'boolean','description':a196_0x156f69(0x16f),'hidden':!![]},{'name':a196_0x156f69(0x15e),'meowKey':a196_0x156f69(0x15e),'type':'boolean','description':a196_0x156f69(0x190),'hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1d0),'hidden':!![]},{'name':a196_0x156f69(0x1c4),'meowKey':a196_0x156f69(0x1c4),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1af),'hidden':!![]},{'name':'parent-id','meowKey':a196_0x156f69(0x193),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x176),'hidden':!![]},{'name':a196_0x156f69(0x187),'meowKey':a196_0x156f69(0x187),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x16a),'hidden':!![]},{'name':a196_0x156f69(0x198),'meowKey':a196_0x156f69(0x1d5),'type':a196_0x156f69(0x1a8),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a196_0x156f69(0x1ac),'meowKey':a196_0x156f69(0x1c9),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x1b4),'hidden':!![]},{'name':a196_0x156f69(0x1c2),'meowKey':a196_0x156f69(0x158),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x164),'hidden':!![]},{'name':a196_0x156f69(0x1a0),'meowKey':a196_0x156f69(0x191),'type':'string','description':a196_0x156f69(0x19f),'hidden':!![]},{'name':a196_0x156f69(0x159),'meowKey':a196_0x156f69(0x1b1),'type':a196_0x156f69(0x1a8),'description':a196_0x156f69(0x15a),'hidden':!![]},{'name':a196_0x156f69(0x1a7),'meowKey':a196_0x156f69(0x150),'type':'string','description':a196_0x156f69(0x19e),'hidden':!![]},{'name':a196_0x156f69(0x15c),'meowKey':a196_0x156f69(0x19b),'type':a196_0x156f69(0x1a8),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a196_0x156f69(0x17f),a196_0x156f69(0x19d),a196_0x156f69(0x162),'jq',a196_0x156f69(0x192),a196_0x156f69(0x1aa),a196_0x156f69(0x197),'ci']);export function buildMeowFlags(){const _0xf71c09=a196_0x156f69;return Object[_0xf71c09(0x1b8)](GLOBAL_FLAGS[_0xf71c09(0x180)](_0x421af9=>[_0x421af9['meowKey'],{'type':_0x421af9['type']}]));}
|
|
1
|
+
const a196_0x5257fe=a196_0xac45;function a196_0xac45(_0x3d27bb,_0x27783d){_0x3d27bb=_0x3d27bb-0x7a;const _0x5ec23f=a196_0x5ec2();let _0xac45b7=_0x5ec23f[_0x3d27bb];return _0xac45b7;}(function(_0x5055ce,_0x2fed1c){const _0x29fb4f=a196_0xac45,_0x2335c9=_0x5055ce();while(!![]){try{const _0x2c9411=-parseInt(_0x29fb4f(0xb1))/0x1*(-parseInt(_0x29fb4f(0xf5))/0x2)+-parseInt(_0x29fb4f(0xaf))/0x3+-parseInt(_0x29fb4f(0xea))/0x4*(-parseInt(_0x29fb4f(0xf7))/0x5)+parseInt(_0x29fb4f(0x7d))/0x6*(-parseInt(_0x29fb4f(0xb8))/0x7)+-parseInt(_0x29fb4f(0x92))/0x8+-parseInt(_0x29fb4f(0xcd))/0x9*(-parseInt(_0x29fb4f(0x7a))/0xa)+-parseInt(_0x29fb4f(0xae))/0xb;if(_0x2c9411===_0x2fed1c)break;else _0x2335c9['push'](_0x2335c9['shift']());}catch(_0x30fb9d){_0x2335c9['push'](_0x2335c9['shift']());}}}(a196_0x5ec2,0x89544));export const CLI_BIN_NAME=a196_0x5257fe(0xc0);export const CLI_DISPLAY_NAME=a196_0x5257fe(0xd5);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a196_0x5ec2(){const _0x26e46f=['nonInteractive','global','dbId','remote','code','Select\x20app\x20profile\x20by\x20name','Use\x20remote','Menu\x20sort\x20value','Record\x20ID','Name','Environment','SQL\x20code','fromEntries','fromEnv','meowKey','Watch\x20mode','sort','Preview\x20operation\x20without\x20executing','pagesize','Clear','expectPath','key','Config\x20key','Force\x20non-interactive\x20mode\x20(CI)','3552615zxbBvB','314247pYmQmE','description-file','295370RdWuyp','Target\x20path','dbid','datasetcode','Confirm\x20destructive\x20action','<expr>','Page\x20size','119pdNEbF','Code\x20filter','verbose','sql','Read\x20value\x20from\x20stdin','functionNode','confirm','string','rabetbase','tags','parentId','Read\x20value\x20from\x20environment\x20variable','reveal','expected-children-count','help','value','sqlName','sqlname','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','page','label','7578ciMsGK','from-env','taskId','Dataset\x20code','File\x20path','dry-run','Show\x20help','SQL\x20string','Rabetbase\x20CLI','Schemas','DB\x20ID','keyword','task-id','Verbose\x20output','Expected\x20current\x20parent\x20menu\x20id','Menu\x20label','all','file','parent-id','watch','Keyword\x20filter','expect-parent-id','description','type','json\x20|\x20pretty\x20|\x20compress','operationType','function-node','JSON\x20params','env','122860elnjbV','Description\x20file','force','Output\x20path','appcode','Apply\x20to\x20all','Override\x20appcode','Reveal\x20sensitive\x20value','expectedChildrenCount','Expected\x20affected\x20count','Force\x20overwrite','2CquMyD','Config\x20value','145GGUDJO','db-id','clear','name','8490CUjFih','Expected\x20current\x20child\x20count','target','142734BZWpFn','menuIds','expectParentId','<code>','<name>','project','skip-imports','yes','Use\x20global\x20config\x20scope','output','Operation\x20type','sql-name','boolean','title','format','schemas','sqlcode','stdin','SQL\x20name','app','Use\x20project\x20config\x20scope','4050688GBjxRo','params','Alias\x20for\x20--non-interactive','expected-count'];a196_0x5ec2=function(){return _0x26e46f;};return a196_0x5ec2();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a196_0x5257fe(0xee),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xf0),'hint':a196_0x5257fe(0x80)},{'name':a196_0x5257fe(0x90),'meowKey':a196_0x5257fe(0x90),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9b),'hint':a196_0x5257fe(0x81)},{'name':a196_0x5257fe(0xe9),'meowKey':'env','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xa0),'hint':'production\x20|\x20daily'},{'name':a196_0x5257fe(0x8b),'meowKey':'format','type':'string','description':'Output\x20format','hint':a196_0x5257fe(0xe5)},{'name':'jq','meowKey':'jq','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xca),'hint':a196_0x5257fe(0xb6)},{'name':'dry-run','meowKey':'dryRun','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa7)},{'name':a196_0x5257fe(0x84),'meowKey':a196_0x5257fe(0x84),'type':a196_0x5257fe(0x89),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a196_0x5257fe(0x96),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xad)},{'name':a196_0x5257fe(0x97),'meowKey':a196_0x5257fe(0x97),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x85)},{'name':'project','meowKey':a196_0x5257fe(0x82),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x91)},{'name':'ci','meowKey':'ci','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x94),'hidden':!![]},{'name':a196_0x5257fe(0xc6),'meowKey':a196_0x5257fe(0xc6),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xd3)},{'name':'name','meowKey':a196_0x5257fe(0xfa),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9f),'hidden':!![]},{'name':a196_0x5257fe(0x8a),'meowKey':a196_0x5257fe(0x8a),'type':'string','description':'Title','hidden':!![]},{'name':a196_0x5257fe(0xf9),'meowKey':'clear','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa9),'hidden':!![]},{'name':a196_0x5257fe(0xe0),'meowKey':a196_0x5257fe(0xe0),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa5),'hidden':!![]},{'name':a196_0x5257fe(0x86),'meowKey':a196_0x5257fe(0x86),'type':'string','description':a196_0x5257fe(0xed),'hidden':!![]},{'name':a196_0x5257fe(0x93),'meowKey':a196_0x5257fe(0x93),'type':'string','description':a196_0x5257fe(0xe8),'hidden':!![]},{'name':a196_0x5257fe(0xb4),'meowKey':a196_0x5257fe(0xb4),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd0),'hidden':!![]},{'name':a196_0x5257fe(0xdd),'meowKey':a196_0x5257fe(0xdd),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xef),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a196_0x5257fe(0x89),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9e),'hidden':!![]},{'name':a196_0x5257fe(0xe4),'meowKey':'type','type':a196_0x5257fe(0xbf),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a196_0x5257fe(0xde),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd1),'hidden':!![]},{'name':a196_0x5257fe(0x8d),'meowKey':a196_0x5257fe(0x8d),'type':'string','description':a196_0x5257fe(0xa1),'hidden':!![]},{'name':a196_0x5257fe(0x88),'meowKey':a196_0x5257fe(0xc8),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x8f),'hidden':!![]},{'name':a196_0x5257fe(0xc9),'meowKey':a196_0x5257fe(0xc9),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x8f),'hidden':!![]},{'name':a196_0x5257fe(0xf8),'meowKey':a196_0x5257fe(0x98),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd7),'hidden':!![]},{'name':a196_0x5257fe(0xb3),'meowKey':'dbid','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd7),'hidden':!![]},{'name':a196_0x5257fe(0xe3),'meowKey':a196_0x5257fe(0xe3),'type':'string','description':'Description','hidden':!![]},{'name':a196_0x5257fe(0xb0),'meowKey':'descriptionFile','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xeb),'hidden':!![]},{'name':'page','meowKey':a196_0x5257fe(0xcb),'type':'string','description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':a196_0x5257fe(0xa8),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb7),'hidden':!![]},{'name':a196_0x5257fe(0xd8),'meowKey':a196_0x5257fe(0xd8),'type':'string','description':a196_0x5257fe(0xe1),'hidden':!![]},{'name':a196_0x5257fe(0x9a),'meowKey':a196_0x5257fe(0x9a),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb9),'hidden':!![]},{'name':a196_0x5257fe(0xbb),'meowKey':'sql','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd4),'hidden':!![]},{'name':a196_0x5257fe(0x8c),'meowKey':a196_0x5257fe(0x8c),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd6),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x87),'hidden':!![]},{'name':a196_0x5257fe(0x7c),'meowKey':a196_0x5257fe(0x7c),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb2),'hidden':!![]},{'name':a196_0x5257fe(0x83),'meowKey':'skipImports','type':a196_0x5257fe(0x89),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0x5257fe(0xab),'meowKey':a196_0x5257fe(0xab),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xac),'hidden':!![]},{'name':a196_0x5257fe(0xc7),'meowKey':a196_0x5257fe(0xc7),'type':'string','description':a196_0x5257fe(0xf6),'hidden':!![]},{'name':a196_0x5257fe(0xc1),'meowKey':'tags','type':a196_0x5257fe(0xbf),'description':'Tags','hidden':!![]},{'name':a196_0x5257fe(0x8e),'meowKey':a196_0x5257fe(0x8e),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xbc),'hidden':!![]},{'name':a196_0x5257fe(0xce),'meowKey':a196_0x5257fe(0xa3),'type':'string','description':a196_0x5257fe(0xc3),'hidden':!![]},{'name':'reveal','meowKey':a196_0x5257fe(0xc4),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xf1),'hidden':!![]},{'name':a196_0x5257fe(0xec),'meowKey':a196_0x5257fe(0xec),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xf4),'hidden':!![]},{'name':a196_0x5257fe(0xbe),'meowKey':'confirm','type':'boolean','description':a196_0x5257fe(0xb5),'hidden':!![]},{'name':a196_0x5257fe(0x99),'meowKey':a196_0x5257fe(0x99),'type':'boolean','description':a196_0x5257fe(0x9c),'hidden':!![]},{'name':a196_0x5257fe(0xba),'meowKey':a196_0x5257fe(0xba),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xda),'hidden':!![]},{'name':a196_0x5257fe(0x95),'meowKey':'expectedCount','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xf3),'hidden':!![]},{'name':'label','meowKey':a196_0x5257fe(0xcc),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xdc),'hidden':!![]},{'name':a196_0x5257fe(0xdf),'meowKey':a196_0x5257fe(0xc2),'type':a196_0x5257fe(0xbf),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a196_0x5257fe(0xa6),'meowKey':a196_0x5257fe(0xa6),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9d),'hidden':!![]},{'name':a196_0x5257fe(0xe2),'meowKey':a196_0x5257fe(0x7f),'type':'string','description':a196_0x5257fe(0xdb),'hidden':!![]},{'name':'expect-path','meowKey':a196_0x5257fe(0xaa),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a196_0x5257fe(0xc5),'meowKey':a196_0x5257fe(0xf2),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x7b),'hidden':!![]},{'name':'menu-ids','meowKey':a196_0x5257fe(0x7e),'type':a196_0x5257fe(0xbf),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a196_0x5257fe(0xd9),'meowKey':a196_0x5257fe(0xcf),'type':a196_0x5257fe(0xbf),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':a196_0x5257fe(0xe6),'type':a196_0x5257fe(0xbf),'description':'Operation\x20type','hidden':!![]},{'name':a196_0x5257fe(0xe7),'meowKey':a196_0x5257fe(0xbd),'type':a196_0x5257fe(0xbf),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0x5257fe(0xee),a196_0x5257fe(0x90),a196_0x5257fe(0xe9),a196_0x5257fe(0x8b),'jq',a196_0x5257fe(0xd2),a196_0x5257fe(0x84),'non-interactive','ci']);export function buildMeowFlags(){const _0x3b3b7e=a196_0x5257fe;return Object[_0x3b3b7e(0xa2)](GLOBAL_FLAGS['map'](_0x27b78f=>[_0x27b78f[_0x3b3b7e(0xa4)],{'type':_0x27b78f[_0x3b3b7e(0xe4)]}]));}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RABETBASE_ENV_VALUES } from "../constant/env.js";
|
|
2
|
+
import type { OutputFormat, Risk } from "../framework/types.js";
|
|
3
|
+
export declare const DEFAULT_CONFIG_VALUES: {
|
|
4
|
+
env: (typeof RABETBASE_ENV_VALUES)[number];
|
|
5
|
+
format: OutputFormat;
|
|
6
|
+
locale: string;
|
|
7
|
+
riskLevel: Risk;
|
|
8
|
+
apiDir: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DEFAULT_COMMAND_OUTPUT_FORMAT: OutputFormat;
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a197_0x5c5d7e=a197_0x17d0;function a197_0x17d0(_0x651da0,_0x4d394c){_0x651da0=_0x651da0-0x1c6;const _0x2518f3=a197_0x2518();let _0x17d0b1=_0x2518f3[_0x651da0];return _0x17d0b1;}(function(_0x4a0d11,_0x3a1bf6){const _0x5870db=a197_0x17d0,_0x2821d6=_0x4a0d11();while(!![]){try{const _0x300a12=-parseInt(_0x5870db(0x1cd))/0x1+parseInt(_0x5870db(0x1cb))/0x2+-parseInt(_0x5870db(0x1d2))/0x3+parseInt(_0x5870db(0x1cc))/0x4*(-parseInt(_0x5870db(0x1ca))/0x5)+parseInt(_0x5870db(0x1c9))/0x6*(parseInt(_0x5870db(0x1ce))/0x7)+-parseInt(_0x5870db(0x1d3))/0x8*(parseInt(_0x5870db(0x1d0))/0x9)+-parseInt(_0x5870db(0x1c8))/0xa*(-parseInt(_0x5870db(0x1d1))/0xb);if(_0x300a12===_0x3a1bf6)break;else _0x2821d6['push'](_0x2821d6['shift']());}catch(_0x5b1d5a){_0x2821d6['push'](_0x2821d6['shift']());}}}(a197_0x2518,0x63c5a));import{DEFAULT_API_DIR}from'../constant/paths.js';function a197_0x2518(){const _0x1c925b=['78HebGfr','45kCNZuU','1393274IrLRQT','191032TDCuJy','553061RnbyaX','10451cxptNS','read','27QPGhAE','6054741dyeeNo','890040UnBjfC','343144dTyDWG','production','en-US','compress','20VtlJAU'];a197_0x2518=function(){return _0x1c925b;};return a197_0x2518();}export const DEFAULT_CONFIG_VALUES={'env':a197_0x5c5d7e(0x1d4),'format':a197_0x5c5d7e(0x1c7),'locale':a197_0x5c5d7e(0x1c6),'riskLevel':a197_0x5c5d7e(0x1cf),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x5c5d7e(0x1c7);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 初始化自定义域名(从 .rabetbase.json 合并配置中读取)。
|
|
3
|
+
* 未配置的字段传 undefined,回退到默认域名。
|
|
4
|
+
*/
|
|
5
|
+
export declare function initDomains(domains?: {
|
|
6
|
+
apiDomain?: string;
|
|
7
|
+
userDomain?: string;
|
|
8
|
+
runtimeDomain?: string;
|
|
9
|
+
}): void;
|
|
10
|
+
export declare const getUserDomain: () => string;
|
|
11
|
+
export declare const getApiDomain: () => string;
|
|
12
|
+
export declare const getRuntimeDomain: () => string;
|
|
13
|
+
export declare const getAppDomain: () => "https://app.lovrabet.com" | "https://daily.lovrabet.com";
|
|
14
|
+
export declare const getAppBaseUrl: (appCode: string) => string;
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x19bd25=a198_0x47e0;(function(_0x2d7465,_0x4e2352){const _0xecc014=a198_0x47e0,_0x2ee1f5=_0x2d7465();while(!![]){try{const _0x281646=parseInt(_0xecc014(0x10f))/0x1*(parseInt(_0xecc014(0x115))/0x2)+-parseInt(_0xecc014(0x120))/0x3+parseInt(_0xecc014(0x10e))/0x4*(-parseInt(_0xecc014(0x11d))/0x5)+-parseInt(_0xecc014(0x11b))/0x6*(parseInt(_0xecc014(0x113))/0x7)+parseInt(_0xecc014(0x11e))/0x8+-parseInt(_0xecc014(0x116))/0x9*(parseInt(_0xecc014(0x110))/0xa)+parseInt(_0xecc014(0x121))/0xb*(parseInt(_0xecc014(0x125))/0xc);if(_0x281646===_0x4e2352)break;else _0x2ee1f5['push'](_0x2ee1f5['shift']());}catch(_0x3ff96c){_0x2ee1f5['push'](_0x2ee1f5['shift']());}}}(a198_0x1662,0x5be70));import{getEnv,isProduction}from'../constant/env.js';function a198_0x47e0(_0x75bdd2,_0x58196d){_0x75bdd2=_0x75bdd2-0x10e;const _0x16627b=a198_0x1662();let _0x47e0c1=_0x16627b[_0x75bdd2];return _0x47e0c1;}let customApiDomain,customUserDomain,customRuntimeDomain;function a198_0x1662(){const _0x569a06=['/web-app/app/','12FAofld','711548dYDpQF','8eZpSQd','10Tityxr','trim','runtimeDomain','19432EVwzJO','/app/','168724IMFyxR','5198949aoLIZS','https://daily-api.lovrabet.com','userDomain','https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','666jPSkTw','https://user.lovrabet.com','5cXqtgW','5731808RNMgvk','https://user-daily.lovrabet.com','315645TiGxNE','1693549wolEOX','https://api.lovrabet.com','https://app.lovrabet.com'];a198_0x1662=function(){return _0x569a06;};return a198_0x1662();}export function initDomains(_0x1bf192){const _0x4aedfd=a198_0x47e0;customApiDomain=_0x1bf192?.['apiDomain'],customUserDomain=_0x1bf192?.[_0x4aedfd(0x118)],customRuntimeDomain=_0x1bf192?.[_0x4aedfd(0x112)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x19bd25(0x11c):a198_0x19bd25(0x11f));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a198_0x19bd25(0x122):a198_0x19bd25(0x117));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a198_0x19bd25(0x119):a198_0x19bd25(0x11a));export const getAppDomain=()=>isProduction(getEnv())?a198_0x19bd25(0x123):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x13ede9=>{const _0x5ca7bb=a198_0x19bd25,_0x49e6f1=encodeURIComponent(_0x13ede9[_0x5ca7bb(0x111)]());return isProduction(getEnv())?getAppDomain()+_0x5ca7bb(0x114)+_0x49e6f1:getAppDomain()+_0x5ca7bb(0x124)+_0x49e6f1;};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RABETBASE_ENV_VALUES: readonly ["production", "daily"];
|
|
2
|
+
/** 将旧的 "online" 别名统一规范为 "production" */
|
|
3
|
+
export declare function normalizeEnv(e: string): string;
|
|
4
|
+
/** 是否生产(线上)环境(含旧别名 `online`) */
|
|
5
|
+
export declare function isProduction(e: string): boolean;
|
|
6
|
+
/** 是否 daily 环境 */
|
|
7
|
+
export declare function isDaily(e: string): boolean;
|
|
8
|
+
/** 是否开发环境(与 @lovrabet/sdk 的 development 常见写法对齐) */
|
|
9
|
+
export declare function isDev(e: string): boolean;
|
|
10
|
+
export declare function getEnv(): string;
|
|
11
|
+
export declare function initEnv(_env: string): void;
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a199_0x3b800a=a199_0x5eff;function a199_0x5eff(_0x12d111,_0x39bb2e){_0x12d111=_0x12d111-0xa8;const _0x194d5a=a199_0x194d();let _0x5effed=_0x194d5a[_0x12d111];return _0x5effed;}(function(_0x57da12,_0x53a124){const _0x52dc61=a199_0x5eff,_0x156770=_0x57da12();while(!![]){try{const _0x1ecd4a=-parseInt(_0x52dc61(0xad))/0x1*(parseInt(_0x52dc61(0xac))/0x2)+-parseInt(_0x52dc61(0xa8))/0x3+parseInt(_0x52dc61(0xaf))/0x4+-parseInt(_0x52dc61(0xb0))/0x5+parseInt(_0x52dc61(0xb1))/0x6*(-parseInt(_0x52dc61(0xb3))/0x7)+parseInt(_0x52dc61(0xab))/0x8+parseInt(_0x52dc61(0xae))/0x9*(parseInt(_0x52dc61(0xaa))/0xa);if(_0x1ecd4a===_0x53a124)break;else _0x156770['push'](_0x156770['shift']());}catch(_0x4738bc){_0x156770['push'](_0x156770['shift']());}}}(a199_0x194d,0xc3d71));export const RABETBASE_ENV_VALUES=[a199_0x3b800a(0xb4),a199_0x3b800a(0xa9)];export function normalizeEnv(_0x35ce0c){const _0xe99407=a199_0x3b800a;return _0x35ce0c===_0xe99407(0xb2)?_0xe99407(0xb4):_0x35ce0c;}export function isProduction(_0x50d6e5){const _0x14351d=a199_0x3b800a;return normalizeEnv(_0x50d6e5)===_0x14351d(0xb4);}export function isDaily(_0x25c6f3){const _0x5aa270=a199_0x3b800a;return normalizeEnv(_0x25c6f3)===_0x5aa270(0xa9);}export function isDev(_0x3016ec){const _0x2af81a=normalizeEnv(_0x3016ec);return _0x2af81a==='development'||_0x2af81a==='dev';}function a199_0x194d(){const _0x1a0c17=['4619511nCWfma','daily','20466410GeUyYs','8258328ofeDlk','9604tTHPeK','88NglMKc','9VuXuQw','5042756ljPDbj','3941690evJJVg','462bObGtM','online','71519fQuuVd','production'];a199_0x194d=function(){return _0x1a0c17;};return a199_0x194d();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x3b800a(0xb4));export function getEnv(){return env;}export function initEnv(_0x44df42){env=normalizeEnv(_0x44df42);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RABETBASE_OUTPUT_FORMAT_VALUES: readonly ["json", "pretty", "compress"];
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x5bfb5d=a200_0x2cc1;function a200_0x5742(){const _0x581688=['6558qckIiz','2715112HXSFJf','913250cvDavE','328428mPqjTT','json','12ojToHP','2321536vJjRYr','999268CFmkiX','3995BvrMCC','36WgvNYe','5342070AEoWiM'];a200_0x5742=function(){return _0x581688;};return a200_0x5742();}(function(_0x511208,_0x182143){const _0x125e10=a200_0x2cc1,_0x5a6384=_0x511208();while(!![]){try{const _0x542c51=parseInt(_0x125e10(0x115))/0x1+parseInt(_0x125e10(0x116))/0x2*(parseInt(_0x125e10(0x118))/0x3)+parseInt(_0x125e10(0x11a))/0x4+parseInt(_0x125e10(0x11b))/0x5*(parseInt(_0x125e10(0x11e))/0x6)+-parseInt(_0x125e10(0x119))/0x7+parseInt(_0x125e10(0x11f))/0x8+parseInt(_0x125e10(0x11c))/0x9*(-parseInt(_0x125e10(0x11d))/0xa);if(_0x542c51===_0x182143)break;else _0x5a6384['push'](_0x5a6384['shift']());}catch(_0x5b938e){_0x5a6384['push'](_0x5a6384['shift']());}}}(a200_0x5742,0x89baf));function a200_0x2cc1(_0x4e99e3,_0x4b0598){_0x4e99e3=_0x4e99e3-0x115;const _0x57421e=a200_0x5742();let _0x2cc15f=_0x57421e[_0x4e99e3];return _0x2cc15f;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x5bfb5d(0x117),'pretty','compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x544263=a201_0xe760;function a201_0xe760(_0x37c4d8,_0x19f6d3){_0x37c4d8=_0x37c4d8-0xd8;const _0x2c7b75=a201_0x2c7b();let _0xe7601e=_0x2c7b75[_0x37c4d8];return _0xe7601e;}(function(_0x4a3384,_0x3df17c){const _0x371072=a201_0xe760,_0x4a44fb=_0x4a3384();while(!![]){try{const _0x4b3322=parseInt(_0x371072(0xdc))/0x1+-parseInt(_0x371072(0xd8))/0x2+parseInt(_0x371072(0xe3))/0x3*(-parseInt(_0x371072(0xdd))/0x4)+-parseInt(_0x371072(0xe2))/0x5*(-parseInt(_0x371072(0xde))/0x6)+-parseInt(_0x371072(0xda))/0x7*(parseInt(_0x371072(0xd9))/0x8)+-parseInt(_0x371072(0xe0))/0x9*(parseInt(_0x371072(0xdb))/0xa)+parseInt(_0x371072(0xe1))/0xb;if(_0x4b3322===_0x3df17c)break;else _0x4a44fb['push'](_0x4a44fb['shift']());}catch(_0xef655){_0x4a44fb['push'](_0x4a44fb['shift']());}}}(a201_0x2c7b,0xdf816));export const DEFAULT_API_DIR=a201_0x544263(0xdf);function a201_0x2c7b(){const _0x433460=['./src/api','63YszrBL','16570092WlzBeH','5aEsYTi','2108481pnWcAy','74350uhnRfX','120zwUYgT','456169JKxzbs','635470sfUOHZ','1359368ZFqjZp','4MZHDLG','1272444MvKPpS'];a201_0x2c7b=function(){return _0x433460;};return a201_0x2c7b();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RISK_LEVEL_VALUES: readonly ["read", "write", "high-risk-write"];
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a202_0x515c(){const _0x4d0cf6=['22305GuGJEd','2gOMKAG','3211065iFqWKx','624XLmPqf','493001sqmuBW','high-risk-write','145624AQffBQ','133bfeYvT','write','5703000JQBbAO','3864IiJvPu','7838772iSkdIN','11eDtOYx','657wEIvYQ'];a202_0x515c=function(){return _0x4d0cf6;};return a202_0x515c();}const a202_0x2cb3c0=a202_0x2298;(function(_0x493645,_0x3532a8){const _0x41d042=a202_0x2298,_0x802c83=_0x493645();while(!![]){try{const _0x2f9385=-parseInt(_0x41d042(0x17e))/0x1*(-parseInt(_0x41d042(0x17b))/0x2)+-parseInt(_0x41d042(0x179))/0x3*(-parseInt(_0x41d042(0x184))/0x4)+parseInt(_0x41d042(0x17a))/0x5*(-parseInt(_0x41d042(0x17d))/0x6)+-parseInt(_0x41d042(0x181))/0x7*(parseInt(_0x41d042(0x180))/0x8)+parseInt(_0x41d042(0x17c))/0x9+-parseInt(_0x41d042(0x183))/0xa+parseInt(_0x41d042(0x178))/0xb*(parseInt(_0x41d042(0x185))/0xc);if(_0x2f9385===_0x3532a8)break;else _0x802c83['push'](_0x802c83['shift']());}catch(_0x225f26){_0x802c83['push'](_0x802c83['shift']());}}}(a202_0x515c,0x51a86));function a202_0x2298(_0x49b1e1,_0x4b678b){_0x49b1e1=_0x49b1e1-0x178;const _0x515ca8=a202_0x515c();let _0x2298b8=_0x515ca8[_0x49b1e1];return _0x2298b8;}export const RISK_LEVEL_VALUES=['read',a202_0x2cb3c0(0x182),a202_0x2cb3c0(0x17f)];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type OutputFormat, type Risk } from "../framework/types.js";
|
|
2
|
+
import type { RawConfigLayers } from "../context/config-loader.js";
|
|
3
|
+
export interface AppProfile {
|
|
4
|
+
appcode: string;
|
|
5
|
+
env?: "production" | "daily";
|
|
6
|
+
apiDir?: string;
|
|
7
|
+
cookie?: string;
|
|
8
|
+
accessKey?: string;
|
|
9
|
+
format?: OutputFormat;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
riskLevel?: Risk;
|
|
12
|
+
locale?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ResolvedAppConfig {
|
|
15
|
+
appCode: string | undefined;
|
|
16
|
+
env: "production" | "daily";
|
|
17
|
+
locale: string;
|
|
18
|
+
cookie: string | undefined;
|
|
19
|
+
accessKey: string | undefined;
|
|
20
|
+
format: OutputFormat | undefined;
|
|
21
|
+
pageSize: number | undefined;
|
|
22
|
+
riskLevel: Risk;
|
|
23
|
+
verbose: boolean;
|
|
24
|
+
apiDir: string;
|
|
25
|
+
apps: Record<string, AppProfile>;
|
|
26
|
+
defaultApp: string | undefined;
|
|
27
|
+
currentApp: string | undefined;
|
|
28
|
+
explicitAppName: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface ResolveAppConfigOptions {
|
|
31
|
+
raw: Record<string, any>;
|
|
32
|
+
flags: Record<string, any>;
|
|
33
|
+
layers?: RawConfigLayers;
|
|
34
|
+
readEnv: (name: string) => string | undefined;
|
|
35
|
+
}
|
|
36
|
+
export declare function resolveAppConfig({ raw, flags, layers, readEnv, }: ResolveAppConfigOptions): ResolvedAppConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x596afc,_0x2a3288){const _0x4b9400=a203_0x8f4b,_0x510f91=_0x596afc();while(!![]){try{const _0x18fdcd=-parseInt(_0x4b9400(0xca))/0x1*(-parseInt(_0x4b9400(0xda))/0x2)+parseInt(_0x4b9400(0xd8))/0x3+parseInt(_0x4b9400(0xd3))/0x4+-parseInt(_0x4b9400(0xbe))/0x5*(-parseInt(_0x4b9400(0xc9))/0x6)+-parseInt(_0x4b9400(0xdb))/0x7*(parseInt(_0x4b9400(0xe5))/0x8)+-parseInt(_0x4b9400(0xd6))/0x9+-parseInt(_0x4b9400(0xc5))/0xa;if(_0x18fdcd===_0x2a3288)break;else _0x510f91['push'](_0x510f91['shift']());}catch(_0x2ae483){_0x510f91['push'](_0x510f91['shift']());}}}(a203_0x4a98,0xa0fbc));function a203_0x8f4b(_0x75bbb2,_0x50271b){_0x75bbb2=_0x75bbb2-0xb9;const _0x4a98bb=a203_0x4a98();let _0x8f4b10=_0x4a98bb[_0x75bbb2];return _0x8f4b10;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a203_0x4a98(){const _0x1e7eff=['5756115KSRqww','maxRisk','app','object','PAGE_SIZE','apps','cookie','9111120tMHkiH','APP','true','ACCESS_KEY','6qfaBXn','894442BBmvGf','defaultApp','production','daily','inherit','MAX_RISK','env','entries','keys','2715624aDjhsz','projectConfig','trim','6057666mbbYES','apiDir','1273917RHrGsQ','accessKey','2oHyLOx','6339452MAijFO','high-risk-write','length','format','string','riskLevel','globalConfig','COOKIE','pageSize','read','8sJIuIk','find','prototype','call','appcode','hasOwnProperty','locale'];a203_0x4a98=function(){return _0x1e7eff;};return a203_0x4a98();}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x544384){const _0x2de5af=a203_0x8f4b;return typeof _0x544384===_0x2de5af(0xdf)&&_0x544384[_0x2de5af(0xd5)]()?_0x544384['trim']():undefined;}function appProfiles(_0x1f31d9){const _0x2145a0=a203_0x8f4b;return _0x1f31d9['apps']&&typeof _0x1f31d9[_0x2145a0(0xc3)]==='object'?_0x1f31d9['apps']:{};}function resolveDefaultAppName(_0x38a7be){const _0x2420af=a203_0x8f4b,_0x50d5e0=stringConfigValue(_0x38a7be['defaultApp']);if(_0x50d5e0)return _0x50d5e0;return Object[_0x2420af(0xd2)](appProfiles(_0x38a7be))[0x0];}function resolveTopLevelAppCode(_0x6db06b){const _0x2452c8=a203_0x8f4b;return stringConfigValue(_0x6db06b[_0x2452c8(0xbb)])||stringConfigValue(_0x6db06b[_0x2452c8(0xc0)]);}function normalizeRiskCeiling(_0x37680b){const _0x56a8c8=a203_0x8f4b;if(_0x37680b===undefined||_0x37680b===null)return undefined;if(_0x37680b===_0x56a8c8(0xe4)||_0x37680b==='write'||_0x37680b===_0x56a8c8(0xdc))return _0x37680b;return'read';}function resolveRiskCeiling(_0x711b23,..._0x3410c9){const _0x5ecf3b=a203_0x8f4b;let _0x10c654;for(const _0x96256d of _0x711b23){const _0x598860=normalizeRiskCeiling(_0x96256d);_0x598860&&(!_0x10c654||riskLevelOrder(_0x598860)<riskLevelOrder(_0x10c654))&&(_0x10c654=_0x598860);}let _0x44dc40=_0x10c654??DEFAULT_CONFIG_VALUES[_0x5ecf3b(0xe0)];for(const _0xb3f213 of _0x3410c9){const _0x46c4ec=normalizeRiskCeiling(_0xb3f213);_0x46c4ec&&riskLevelOrder(_0x46c4ec)<riskLevelOrder(_0x44dc40)&&(_0x44dc40=_0x46c4ec);}return _0x44dc40;}function configuredRiskCeilings(_0x23f3b0){const _0x4561b8=a203_0x8f4b;return[...Object['prototype'][_0x4561b8(0xbc)][_0x4561b8(0xba)](_0x23f3b0,_0x4561b8(0xbf))?[_0x23f3b0['maxRisk']]:[],...Object[_0x4561b8(0xb9)][_0x4561b8(0xbc)][_0x4561b8(0xba)](_0x23f3b0,_0x4561b8(0xe0))?[_0x23f3b0[_0x4561b8(0xe0)]]:[]];}export function resolveAppConfig({raw:_0x55b3ee,flags:_0x4a31be,layers:_0x2d041c,readEnv:_0x2d9aab}){const _0x49071b=a203_0x8f4b,_0xb7d0c3=_0x2d041c?.['projectConfig']??{},_0x53e4a1=_0x2d041c?.['globalConfig']??{},_0x517489=Object['keys'](_0xb7d0c3)[_0x49071b(0xdd)]>0x0,_0xe2394b=!_0x517489||_0xb7d0c3[_0x49071b(0xce)]===!![],_0xc2e3a7=_0x517489?resolveDefaultAppName(_0xb7d0c3):undefined,_0x2448a5=_0xe2394b?resolveDefaultAppName(_0x53e4a1):undefined,_0x59e76c=stringConfigValue(_0x4a31be['app']),_0x4d10a0=_0x2d9aab(_0x49071b(0xc6)),_0x3b45e7={};if(_0x55b3ee[_0x49071b(0xc3)]&&typeof _0x55b3ee[_0x49071b(0xc3)]===_0x49071b(0xc1))for(const [_0x4e1a35,_0x36edf5]of Object[_0x49071b(0xd1)](_0x55b3ee['apps'])){_0x36edf5&&typeof _0x36edf5===_0x49071b(0xc1)&&_0x36edf5[_0x49071b(0xbb)]&&(_0x3b45e7[_0x4e1a35]=_0x36edf5);}const _0x5b5d9b=_0x55b3ee[_0x49071b(0xcb)]||undefined,_0x56210f=Object[_0x49071b(0xd2)](_0x3b45e7)[_0x49071b(0xdd)]>0x0,_0x1f85f8=_0x59e76c||_0xc2e3a7||_0x4d10a0||_0x2448a5||_0x5b5d9b||undefined,_0x2c73a8=stringConfigValue(_0x4a31be[_0x49071b(0xbb)]),_0x222276=_0x2c73a8?Object[_0x49071b(0xd1)](_0x3b45e7)[_0x49071b(0xe6)](([,_0xba3696])=>_0xba3696?.['appcode']===_0x2c73a8):undefined,_0x19376f=_0x222276?.[0x0],_0x5e33b5=_0x222276?.[0x1],_0x409b29=_0x2c73a8?_0x19376f:_0x1f85f8;let _0xdb8def=_0x409b29&&_0x3b45e7[_0x409b29]?_0x3b45e7[_0x409b29]:undefined;_0x2c73a8&&_0x5e33b5&&(_0xdb8def=_0x5e33b5);const _0x5afaa4=_0x2c73a8?_0x5e33b5??_0xdb8def:_0xdb8def,_0x5f0d41=!_0x59e76c&&!_0xc2e3a7&&_0x4d10a0&&_0x409b29===_0x4d10a0,_0x25888f=_0x59e76c||(_0x5f0d41?_0x4d10a0:undefined)||(_0x2c73a8?_0x19376f:undefined),_0x4ac5b0=_0x5afaa4?.['appcode'],_0x28427c=_0x517489?resolveTopLevelAppCode(_0xb7d0c3):undefined,_0xd199a3=_0xe2394b?resolveTopLevelAppCode(_0x53e4a1):undefined,_0x132b90=_0x59e76c||_0xc2e3a7?_0x4ac5b0:undefined,_0x5c3d9c=!_0x59e76c&&!_0xc2e3a7?_0x4ac5b0:undefined,_0x21eb78=_0x2c73a8||_0x132b90||_0x28427c||_0x5c3d9c||_0xd199a3||undefined,_0x17d30f=_0x517489?stringConfigValue(_0xb7d0c3[_0x49071b(0xd0)]):undefined,_0x933f4c=_0xe2394b?stringConfigValue(_0x53e4a1['env']):undefined,_0xd4fd3a=_0x4a31be[_0x49071b(0xd0)]||_0x5afaa4?.[_0x49071b(0xd0)]||_0x17d30f||_0x2d9aab('ENV')||_0x933f4c||_0x55b3ee[_0x49071b(0xd0)]||DEFAULT_CONFIG_VALUES['env'],_0xc21c15=_0x5afaa4?.['locale']||_0x55b3ee['locale']||DEFAULT_CONFIG_VALUES[_0x49071b(0xbd)],_0x207543=_0x2d9aab(_0x49071b(0xe2))||_0x5afaa4?.[_0x49071b(0xc4)]||_0x55b3ee[_0x49071b(0xc4)]||undefined,_0x527a5e=_0x2d9aab(_0x49071b(0xc8))||_0x5afaa4?.[_0x49071b(0xd9)]||_0x55b3ee['accessKey']||undefined,_0x5882b5=_0x4a31be[_0x49071b(0xde)]||_0x2d9aab('FORMAT')||_0x5afaa4?.[_0x49071b(0xde)]||_0x55b3ee[_0x49071b(0xde)],_0x393257=normalizeLegacyOutputFormat(_0x5882b5),_0x377baf=_0x2d9aab(_0x49071b(0xc2))||_0x5afaa4?.[_0x49071b(0xe3)]||_0x55b3ee['pageSize'],_0x567174=_0x377baf?Number(_0x377baf)||undefined:undefined,_0x42bb53=_0x2d041c?[...configuredRiskCeilings(_0x2d041c[_0x49071b(0xe1)]),...configuredRiskCeilings(_0x2d041c[_0x49071b(0xd4)])]:configuredRiskCeilings(_0x55b3ee),_0x192273=resolveRiskCeiling(_0x42bb53,_0x5afaa4?.[_0x49071b(0xe0)],_0x2d9aab('RISK_LEVEL'),_0x2d9aab(_0x49071b(0xcf))),_0x544759=_0x2d9aab('VERBOSE'),_0x4bf2ec=_0x544759==='1'||_0x544759===_0x49071b(0xc7),_0x1351d9=_0x5afaa4?.[_0x49071b(0xd7)]||_0x55b3ee[_0x49071b(0xd7)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x2f780a=isDaily(normalizeEnv(String(_0xd4fd3a)))?_0x49071b(0xcd):_0x49071b(0xcc);return{'appCode':typeof _0x21eb78==='string'&&_0x21eb78['trim']()?_0x21eb78[_0x49071b(0xd5)]():undefined,'env':_0x2f780a,'locale':_0xc21c15,'cookie':_0x207543,'accessKey':_0x527a5e,'format':_0x393257,'pageSize':_0x567174,'riskLevel':_0x192273,'verbose':_0x4bf2ec,'apiDir':_0x1351d9,'apps':_0x3b45e7,'defaultApp':_0x5b5d9b,'currentApp':_0x56210f?_0x409b29:undefined,'explicitAppName':_0x25888f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a204_0x5d4d(){const _0x335915=['430gdVrFH','1782210YpufxP','723239NiviPM','1026xVwhAw','797168FvpLkh','14AYuQpH','15sxNosL','176612IjrEQX','48696KvqjoW','cookie','431610jQwnyE','5247875hKVcvB','authRequired'];a204_0x5d4d=function(){return _0x335915;};return a204_0x5d4d();}(function(_0x9ed410,_0x4effca){const _0x40345b=a204_0x5384,_0x285cef=_0x9ed410();while(!![]){try{const _0x58efbb=parseInt(_0x40345b(0x1f1))/0x1+-parseInt(_0x40345b(0x1eb))/0x2+parseInt(_0x40345b(0x1f0))/0x3*(-parseInt(_0x40345b(0x1ee))/0x4)+-parseInt(_0x40345b(0x1f5))/0x5+-parseInt(_0x40345b(0x1f4))/0x6*(parseInt(_0x40345b(0x1ef))/0x7)+parseInt(_0x40345b(0x1f2))/0x8*(parseInt(_0x40345b(0x1ed))/0x9)+-parseInt(_0x40345b(0x1ea))/0xa*(-parseInt(_0x40345b(0x1ec))/0xb);if(_0x58efbb===_0x4effca)break;else _0x285cef['push'](_0x285cef['shift']());}catch(_0x1983f0){_0x285cef['push'](_0x285cef['shift']());}}}(a204_0x5d4d,0x96917));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a204_0x5384(_0x47d56a,_0xdbe826){_0x47d56a=_0x47d56a-0x1e9;const _0x5d4d7c=a204_0x5d4d();let _0x5384f3=_0x5d4d7c[_0x47d56a];return _0x5384f3;}export async function buildAuth(_0x420712){const _0x4905e5=a204_0x5384,{getCookie:_0x155d3d}=await import('../auth/get-cookie.js'),_0x1529e8=_0x420712[_0x4905e5(0x1f3)]||_0x155d3d(),_0x516452=_0x1529e8?await getIsSessionValid():![];return{'cookie':_0x1529e8,'isLoggedIn':_0x516452,async 'getOrLogin'(){const _0xd41101=_0x4905e5;if(_0x1529e8&&_0x516452)return _0x1529e8;throw CliErrors[_0xd41101(0x1e9)]();}};}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** 新建配置文件时使用的文件名 */
|
|
2
|
+
export declare const NEW_CONFIG_NAME = ".rabetbase.json";
|
|
3
|
+
/** 按优先级排列的配置文件名:新名 > 旧名 > 更旧的名 */
|
|
4
|
+
export declare const CONFIG_NAMES: readonly [".rabetbase.json", ".lovrabet.json", ".lovrabetrc"];
|
|
5
|
+
/** 旧配置文件名(用于升级检测),不含新名 */
|
|
6
|
+
export declare const LEGACY_CONFIG_NAMES: (".lovrabet.json" | ".lovrabetrc")[];
|
|
7
|
+
/** 全局 / 项目各一份原始 JSON(未合并),供 readRawConfig 与 app list 来源标注共用 */
|
|
8
|
+
export interface RawConfigLayers {
|
|
9
|
+
globalPath: string | undefined;
|
|
10
|
+
projectPath: string | undefined;
|
|
11
|
+
globalConfig: Record<string, any>;
|
|
12
|
+
projectConfig: Record<string, any>;
|
|
13
|
+
}
|
|
14
|
+
export type CliConfigJsonInspect = {
|
|
15
|
+
status: "missing";
|
|
16
|
+
} | {
|
|
17
|
+
status: "empty";
|
|
18
|
+
} | {
|
|
19
|
+
status: "ok";
|
|
20
|
+
data: Record<string, any>;
|
|
21
|
+
} | {
|
|
22
|
+
status: "error";
|
|
23
|
+
message: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 在指定目录下按优先级查找第一个存在的配置文件。
|
|
27
|
+
* 返回完整路径,找不到返回 undefined。
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveConfigPath(base: string): string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* 从 startDir 起向父目录查找,直到出现项目配置文件(CONFIG_NAMES 任一)。
|
|
32
|
+
* 找不到则回退为 startDir。
|
|
33
|
+
*/
|
|
34
|
+
export declare function findProjectRootDirectory(startDir?: string): string;
|
|
35
|
+
/** 项目级配置文件路径(cwd 下首个匹配) */
|
|
36
|
+
export declare function getProjectConfigPath(): string | undefined;
|
|
37
|
+
/** 全局配置文件路径(~ 下首个匹配) */
|
|
38
|
+
export declare function getGlobalConfigPath(): string | undefined;
|
|
39
|
+
/** 当前目录是否处于一个已有配置文件的项目中 */
|
|
40
|
+
export declare function isInProject(): boolean;
|
|
41
|
+
export declare function inspectCliConfigJsonFile(filePath: string): CliConfigJsonInspect;
|
|
42
|
+
/**
|
|
43
|
+
* 只读磁盘:解析全局与项目配置文件,不做合并。
|
|
44
|
+
*/
|
|
45
|
+
export declare function loadRawConfigLayers(projectRoot?: string): RawConfigLayers;
|
|
46
|
+
export declare function mergeRawConfigLayers(layers: RawConfigLayers): Record<string, any>;
|
|
47
|
+
export declare function readRawConfigWithLayers(projectRoot?: string): {
|
|
48
|
+
config: Record<string, any>;
|
|
49
|
+
layers: RawConfigLayers;
|
|
50
|
+
};
|
|
51
|
+
export declare function readRawConfig(projectRoot?: string): Record<string, any>;
|
|
52
|
+
export declare function readConfigFile(filePath: string): Record<string, any>;
|
|
53
|
+
/**
|
|
54
|
+
* 原子写入配置文件(先写临时文件再 rename,防止写一半崩溃)。
|
|
55
|
+
*/
|
|
56
|
+
export declare function writeConfigFile(filePath: string, data: Record<string, any>): void;
|
|
57
|
+
/**
|
|
58
|
+
* 确定应写入的配置文件路径。
|
|
59
|
+
* 如果已存在旧文件则原地更新;否则用新名 .rabetbase.json。
|
|
60
|
+
*/
|
|
61
|
+
export declare function resolveWriteConfigPath(scope: "project" | "global"): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a205_0x106879=a205_0x4223;(function(_0x393d03,_0x20fbf7){const _0x409896=a205_0x4223,_0x33c026=_0x393d03();while(!![]){try{const _0x5b90b1=parseInt(_0x409896(0x117))/0x1*(parseInt(_0x409896(0x112))/0x2)+parseInt(_0x409896(0xf3))/0x3*(parseInt(_0x409896(0x115))/0x4)+parseInt(_0x409896(0x103))/0x5*(parseInt(_0x409896(0x100))/0x6)+-parseInt(_0x409896(0xf8))/0x7+-parseInt(_0x409896(0xff))/0x8*(-parseInt(_0x409896(0x114))/0x9)+parseInt(_0x409896(0x127))/0xa*(parseInt(_0x409896(0x11d))/0xb)+-parseInt(_0x409896(0x106))/0xc*(parseInt(_0x409896(0x123))/0xd);if(_0x5b90b1===_0x20fbf7)break;else _0x33c026['push'](_0x33c026['shift']());}catch(_0x708cf7){_0x33c026['push'](_0x33c026['shift']());}}}(a205_0x5671,0xaddcc));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='.rabetbase.json';function a205_0x5671(){const _0x48acff=['cookie','parse','project','20FVwPsm','3HwVkRk','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','apiDir','inherit','app','6156108FiDYRT','\x0a\x20\x20','defaultApp','warn','riskLevel','data','.rabetbase.json','80536BMBqvM','8335698rquubV','utf8','pageSize','5DXlyNY','filter','length','168684nnworm','get','cwd','.lovrabet.json','string','missing','env','empty','object','config','stringify','appcode','1174AFaohb','keys','414ujfCKI','1473596NsRsQy','format','859qijsLB','error','apps','message','Project','migrated','1265638zbGUJH','silent','.tmp','status','trim','accessKey','1261ovlnwl'];a205_0x5671=function(){return _0x48acff;};return a205_0x5671();}export const CONFIG_NAMES=[a205_0x106879(0xfe),a205_0x106879(0x109),'.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a205_0x106879(0x104)](_0x485e10=>_0x485e10!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x49689f){for(const _0x5e97a6 of CONFIG_NAMES){const _0x560a81=resolve(_0x49689f,_0x5e97a6);if(existsSync(_0x560a81))return _0x560a81;}return undefined;}export function findProjectRootDirectory(_0x4f91a1=process[a205_0x106879(0x108)]()){let _0x2aa068=resolve(_0x4f91a1);const {root:_0x418680}=parse(_0x2aa068),_0x5a8889=homedir();while(!![]){if(resolveConfigPath(_0x2aa068)){if(_0x2aa068===_0x5a8889)break;return _0x2aa068;}if(_0x2aa068===_0x418680||_0x2aa068===_0x5a8889)break;const _0x12c6ec=dirname(_0x2aa068);if(_0x12c6ec===_0x2aa068)break;_0x2aa068=_0x12c6ec;}return resolve(_0x4f91a1);}export function getProjectConfigPath(){const _0x3fe3e6=a205_0x106879;return resolveConfigPath(process[_0x3fe3e6(0x108)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x59b23d){const _0x346c1c=a205_0x106879;if(!existsSync(_0x59b23d))return{'status':_0x346c1c(0x10b)};try{const _0x422e12=readFileSync(_0x59b23d,{'encoding':_0x346c1c(0x101)});if(!_0x422e12?.['trim']())return{'status':_0x346c1c(0x10d)};const _0x44242b=JSON[_0x346c1c(0x125)](_0x422e12);return{'status':'ok','data':_0x44242b};}catch(_0x227c43){return{'status':_0x346c1c(0x118),'message':_0x227c43 instanceof Error?_0x227c43[_0x346c1c(0x11a)]:String(_0x227c43)};}}function parseCliConfigJsonFile(_0x334106,_0x597145,_0x14714f){const _0x42dc80=a205_0x106879,_0x4ac39e=inspectCliConfigJsonFile(_0x334106);if(_0x4ac39e[_0x42dc80(0x120)]===_0x42dc80(0x10b)||_0x4ac39e[_0x42dc80(0x120)]===_0x42dc80(0x10d))return{};if(_0x4ac39e[_0x42dc80(0x120)]==='ok')return _0x4ac39e[_0x42dc80(0xfd)];return _0x597145===_0x42dc80(0xfb)&&_0x14714f&&console[_0x42dc80(0x118)](CLI_BIN_NAME+':\x20'+_0x14714f+_0x42dc80(0xf4)+_0x334106+_0x42dc80(0xf9)+_0x4ac39e[_0x42dc80(0x11a)]),{};}function normalizeLegacyConfigShape(_0x4e2157){const _0x39333b=a205_0x106879;if(!_0x4e2157||typeof _0x4e2157!==_0x39333b(0x10e))return{'config':{},'migrated':![]};const _0x58e79a={..._0x4e2157},_0x3f3dbc=_0x58e79a[_0x39333b(0x119)]&&typeof _0x58e79a[_0x39333b(0x119)]===_0x39333b(0x10e)?{..._0x58e79a['apps']}:{},_0x1d4a54=Object[_0x39333b(0x113)](_0x3f3dbc)[_0x39333b(0x105)],_0x453681=_0x58e79a[_0x39333b(0x111)]||_0x58e79a[_0x39333b(0xf7)];let _0x42fb3a=![];if(_0x453681&&_0x1d4a54===0x0){const _0x26bb53=typeof _0x58e79a['defaultApp']===_0x39333b(0x10a)&&_0x58e79a[_0x39333b(0xfa)][_0x39333b(0x121)]()?_0x58e79a[_0x39333b(0xfa)]:String(_0x453681)[_0x39333b(0x121)]();_0x3f3dbc[_0x26bb53]={'appcode':String(_0x453681)[_0x39333b(0x121)](),..._0x58e79a[_0x39333b(0x10c)]!=null?{'env':_0x58e79a[_0x39333b(0x10c)]}:{},..._0x58e79a[_0x39333b(0xf5)]!=null?{'apiDir':_0x58e79a[_0x39333b(0xf5)]}:{},..._0x58e79a[_0x39333b(0x124)]!=null?{'cookie':_0x58e79a[_0x39333b(0x124)]}:{},..._0x58e79a[_0x39333b(0x122)]!=null?{'accessKey':_0x58e79a[_0x39333b(0x122)]}:{},..._0x58e79a['format']!=null?{'format':_0x58e79a[_0x39333b(0x116)]}:{},..._0x58e79a['pageSize']!=null?{'pageSize':_0x58e79a['pageSize']}:{},..._0x58e79a[_0x39333b(0xfc)]!=null?{'riskLevel':_0x58e79a[_0x39333b(0xfc)]}:{},..._0x58e79a['locale']!=null?{'locale':_0x58e79a['locale']}:{}},_0x58e79a[_0x39333b(0x119)]=_0x3f3dbc;if(!_0x58e79a[_0x39333b(0xfa)])_0x58e79a['defaultApp']=_0x26bb53;_0x42fb3a=!![];}return(_0x39333b(0x111)in _0x58e79a||'app'in _0x58e79a)&&(delete _0x58e79a[_0x39333b(0x111)],delete _0x58e79a[_0x39333b(0xf7)],_0x42fb3a=!![]),{'config':_0x58e79a,'migrated':_0x42fb3a};}function writeNormalizedConfigIfNeeded(_0x4d325c,_0x8cf8e4){const _0x3fb761=a205_0x106879,_0x4fea30=JSON['stringify'](_0x8cf8e4,null,0x2)+'\x0a';if(normalizedWriteCache[_0x3fb761(0x107)](_0x4d325c)===_0x4fea30)return;writeConfigFile(_0x4d325c,_0x8cf8e4),normalizedWriteCache['set'](_0x4d325c,_0x4fea30);}function parseAndNormalizeConfig(_0x2902a0,_0x51d9e8,_0x487027){const _0x123198=a205_0x106879,_0xdec449=parseCliConfigJsonFile(_0x2902a0,_0x51d9e8,_0x487027),_0x20ff02=normalizeLegacyConfigShape(_0xdec449);if(_0x20ff02[_0x123198(0x11c)])try{writeNormalizedConfigIfNeeded(_0x2902a0,_0x20ff02[_0x123198(0x10f)]);}catch{}return _0x20ff02[_0x123198(0x10f)];}export function loadRawConfigLayers(_0x3aa60f){const _0x4f16ed=a205_0x106879;let _0x35aa2e={},_0x1fca07={};const _0xd1169e=resolveConfigPath(homedir());_0xd1169e&&(_0x35aa2e=parseAndNormalizeConfig(_0xd1169e,_0x4f16ed(0xfb),'Global'));const _0x156168=_0x3aa60f??findProjectRootDirectory(),_0x2b9ea6=resolveConfigPath(_0x156168);return _0x2b9ea6&&(_0x1fca07=parseAndNormalizeConfig(_0x2b9ea6,_0x4f16ed(0xfb),_0x4f16ed(0x11b))),{'globalPath':_0xd1169e,'projectPath':_0x2b9ea6,'globalConfig':_0x35aa2e,'projectConfig':_0x1fca07};}const INHERIT_WHITELIST=['cookie',a205_0x106879(0x122),'locale','format',a205_0x106879(0xfc),a205_0x106879(0x102)];export function mergeRawConfigLayers(_0x3f348f){const _0x25b6e4=a205_0x106879,{globalConfig:_0x26248b,projectConfig:_0x55e23e}=_0x3f348f,_0x3f0326=Object[_0x25b6e4(0x113)](_0x55e23e)['length']>0x0;if(!_0x3f0326)return mergeGlobalOnly(_0x26248b);if(_0x55e23e[_0x25b6e4(0xf6)]===!![])return mergeFullInherit(_0x26248b,_0x55e23e);if(_0x55e23e[_0x25b6e4(0xf6)]===![])return mergeIsolated(_0x55e23e);return mergeProjectFirst(_0x26248b,_0x55e23e);}function mergeGlobalOnly(_0xd9ed7d){const _0x39c2f7=a205_0x106879,_0xa8017a={..._0xd9ed7d},_0x37b166=_0xd9ed7d[_0x39c2f7(0x119)]&&typeof _0xd9ed7d['apps']==='object'?_0xd9ed7d[_0x39c2f7(0x119)]:{};if(Object[_0x39c2f7(0x113)](_0x37b166)[_0x39c2f7(0x105)]>0x0)_0xa8017a['apps']=_0x37b166;if(_0xd9ed7d[_0x39c2f7(0xfa)])_0xa8017a['defaultApp']=_0xd9ed7d[_0x39c2f7(0xfa)];else{const _0x4fdefd=Object[_0x39c2f7(0x113)](_0x37b166);if(_0x4fdefd[_0x39c2f7(0x105)]>0x0)_0xa8017a[_0x39c2f7(0xfa)]=_0x4fdefd[0x0];}return _0xa8017a;}function mergeIsolated(_0x55af25){const _0x30fd93=a205_0x106879,_0x334344={..._0x55af25};delete _0x334344['inherit'];const _0x429595=_0x55af25[_0x30fd93(0x119)]&&typeof _0x55af25['apps']===_0x30fd93(0x10e)?_0x55af25[_0x30fd93(0x119)]:{};Object[_0x30fd93(0x113)](_0x429595)[_0x30fd93(0x105)]>0x0?_0x334344[_0x30fd93(0x119)]=_0x429595:delete _0x334344[_0x30fd93(0x119)];if(_0x30fd93(0xfa)in _0x55af25)_0x334344[_0x30fd93(0xfa)]=_0x55af25[_0x30fd93(0xfa)];else Object['keys'](_0x429595)[_0x30fd93(0x105)]>0x0?_0x334344['defaultApp']=Object[_0x30fd93(0x113)](_0x429595)[0x0]:delete _0x334344['defaultApp'];return _0x334344;}function mergeProjectFirst(_0x4e4e4b,_0x28af64){const _0x3d267c=a205_0x106879,_0x1f9c80={..._0x28af64};delete _0x1f9c80[_0x3d267c(0xf6)];for(const _0x3557ea of INHERIT_WHITELIST){!(_0x3557ea in _0x1f9c80)&&_0x3557ea in _0x4e4e4b&&(_0x1f9c80[_0x3557ea]=_0x4e4e4b[_0x3557ea]);}const _0x327fa6=_0x28af64[_0x3d267c(0x119)]&&typeof _0x28af64[_0x3d267c(0x119)]===_0x3d267c(0x10e)?_0x28af64[_0x3d267c(0x119)]:{};Object['keys'](_0x327fa6)[_0x3d267c(0x105)]>0x0?_0x1f9c80[_0x3d267c(0x119)]=_0x327fa6:delete _0x1f9c80['apps'];if(_0x3d267c(0xfa)in _0x28af64)_0x1f9c80[_0x3d267c(0xfa)]=_0x28af64[_0x3d267c(0xfa)];else Object[_0x3d267c(0x113)](_0x327fa6)['length']>0x0?_0x1f9c80[_0x3d267c(0xfa)]=Object[_0x3d267c(0x113)](_0x327fa6)[0x0]:delete _0x1f9c80[_0x3d267c(0xfa)];return _0x1f9c80;}function mergeFullInherit(_0x12958f,_0x40ae73){const _0x77d042=a205_0x106879,_0x4c3041=_0x12958f[_0x77d042(0x119)]&&typeof _0x12958f[_0x77d042(0x119)]===_0x77d042(0x10e)?_0x12958f[_0x77d042(0x119)]:{},_0x43627f=_0x40ae73[_0x77d042(0x119)]&&typeof _0x40ae73[_0x77d042(0x119)]==='object'?_0x40ae73[_0x77d042(0x119)]:{},_0x825c66={..._0x4c3041,..._0x43627f},_0x5e4222={..._0x12958f,..._0x40ae73};delete _0x5e4222[_0x77d042(0xf6)];if(Object[_0x77d042(0x113)](_0x825c66)[_0x77d042(0x105)]>0x0)_0x5e4222[_0x77d042(0x119)]=_0x825c66;if(_0x77d042(0xfa)in _0x40ae73)_0x5e4222[_0x77d042(0xfa)]=_0x40ae73['defaultApp'];else{if(Object[_0x77d042(0x113)](_0x43627f)['length']>0x0)_0x5e4222[_0x77d042(0xfa)]=Object['keys'](_0x43627f)[0x0];else{if(_0x12958f[_0x77d042(0xfa)])_0x5e4222['defaultApp']=_0x12958f['defaultApp'];else{const _0x545cf5=Object[_0x77d042(0x113)](_0x4c3041);if(_0x545cf5[_0x77d042(0x105)]>0x0)_0x5e4222[_0x77d042(0xfa)]=_0x545cf5[0x0];}}}return _0x5e4222;}function a205_0x4223(_0x329105,_0x1ca7e5){_0x329105=_0x329105-0xf3;const _0x56717c=a205_0x5671();let _0x42230b=_0x56717c[_0x329105];return _0x42230b;}export function readRawConfigWithLayers(_0x3bd22f){const _0x360ab4=loadRawConfigLayers(_0x3bd22f);return{'config':mergeRawConfigLayers(_0x360ab4),'layers':_0x360ab4};}export function readRawConfig(_0x3593b9){return mergeRawConfigLayers(loadRawConfigLayers(_0x3593b9));}export function readConfigFile(_0x2a36b3){const _0x464f5c=a205_0x106879;return parseAndNormalizeConfig(_0x2a36b3,_0x464f5c(0x11e));}export function writeConfigFile(_0x202e69,_0x5793e3){const _0x305af9=a205_0x106879,_0x108c7c=dirname(_0x202e69);!existsSync(_0x108c7c)&&mkdirSync(_0x108c7c,{'recursive':!![]});const _0x4e6542=_0x202e69+_0x305af9(0x11f);try{writeFileSync(_0x4e6542,JSON[_0x305af9(0x110)](_0x5793e3,null,0x2)+'\x0a',{'encoding':_0x305af9(0x101),'mode':0x180}),renameSync(_0x4e6542,_0x202e69);}catch(_0x5a845f){try{unlinkSync(_0x4e6542);}catch{}throw _0x5a845f;}}export function resolveWriteConfigPath(_0x2ca015){const _0x1b80ed=a205_0x106879,_0x4e8446=_0x2ca015===_0x1b80ed(0x126)?process[_0x1b80ed(0x108)]():homedir(),_0xb4864d=resolveConfigPath(_0x4e8446);return _0xb4864d??resolve(_0x4e8446,NEW_CONFIG_NAME);}
|
|
1
|
+
const a205_0x5173eb=a205_0xd2c8;(function(_0x4bc055,_0x2efa9b){const _0x1f1fc7=a205_0xd2c8,_0x1fa078=_0x4bc055();while(!![]){try{const _0x173022=-parseInt(_0x1f1fc7(0x133))/0x1*(parseInt(_0x1f1fc7(0x124))/0x2)+parseInt(_0x1f1fc7(0x10f))/0x3*(-parseInt(_0x1f1fc7(0x116))/0x4)+-parseInt(_0x1f1fc7(0x106))/0x5*(parseInt(_0x1f1fc7(0x112))/0x6)+-parseInt(_0x1f1fc7(0x128))/0x7*(parseInt(_0x1f1fc7(0x12f))/0x8)+parseInt(_0x1f1fc7(0x108))/0x9+-parseInt(_0x1f1fc7(0x12c))/0xa*(-parseInt(_0x1f1fc7(0x125))/0xb)+parseInt(_0x1f1fc7(0x111))/0xc;if(_0x173022===_0x2efa9b)break;else _0x1fa078['push'](_0x1fa078['shift']());}catch(_0x36e69e){_0x1fa078['push'](_0x1fa078['shift']());}}}(a205_0x5e9f,0xe4789));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=a205_0x5173eb(0x123);export const CONFIG_NAMES=['.rabetbase.json',a205_0x5173eb(0x12a),a205_0x5173eb(0x119)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a205_0x5173eb(0x113)](_0x4c8cac=>_0x4c8cac!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x5ac72f){for(const _0x1c1f16 of CONFIG_NAMES){const _0x44c660=resolve(_0x5ac72f,_0x1c1f16);if(existsSync(_0x44c660))return _0x44c660;}return undefined;}export function findProjectRootDirectory(_0x21c24b=process[a205_0x5173eb(0x115)]()){let _0x3372f7=resolve(_0x21c24b);const {root:_0x1771f2}=parse(_0x3372f7),_0x2ec49f=homedir();while(!![]){if(resolveConfigPath(_0x3372f7)){if(_0x3372f7===_0x2ec49f)break;return _0x3372f7;}if(_0x3372f7===_0x1771f2||_0x3372f7===_0x2ec49f)break;const _0x107665=dirname(_0x3372f7);if(_0x107665===_0x3372f7)break;_0x3372f7=_0x107665;}return resolve(_0x21c24b);}function a205_0xd2c8(_0x43cf31,_0x496e56){_0x43cf31=_0x43cf31-0x100;const _0x5e9fdc=a205_0x5e9f();let _0xd2c895=_0x5e9fdc[_0x43cf31];return _0xd2c895;}export function getProjectConfigPath(){const _0xec550d=a205_0x5173eb;return resolveConfigPath(process[_0xec550d(0x115)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x9021fa){const _0x3fc05b=a205_0x5173eb;if(!existsSync(_0x9021fa))return{'status':_0x3fc05b(0x11a)};try{const _0x5e024b=readFileSync(_0x9021fa,{'encoding':'utf8'});if(!_0x5e024b?.[_0x3fc05b(0x130)]())return{'status':_0x3fc05b(0x134)};const _0x25d64c=JSON[_0x3fc05b(0x129)](_0x5e024b);return{'status':'ok','data':_0x25d64c};}catch(_0x49aa10){return{'status':_0x3fc05b(0x11f),'message':_0x49aa10 instanceof Error?_0x49aa10[_0x3fc05b(0x132)]:String(_0x49aa10)};}}function parseCliConfigJsonFile(_0x176c0e,_0x54742c,_0x31de28){const _0x698a04=a205_0x5173eb,_0x1cd79b=inspectCliConfigJsonFile(_0x176c0e);if(_0x1cd79b[_0x698a04(0x11b)]===_0x698a04(0x11a)||_0x1cd79b[_0x698a04(0x11b)]===_0x698a04(0x134))return{};if(_0x1cd79b[_0x698a04(0x11b)]==='ok')return _0x1cd79b['data'];return _0x54742c===_0x698a04(0x12e)&&_0x31de28&&console[_0x698a04(0x11f)](CLI_BIN_NAME+':\x20'+_0x31de28+_0x698a04(0x107)+_0x176c0e+_0x698a04(0x10d)+_0x1cd79b[_0x698a04(0x132)]),{};}function normalizeLegacyConfigShape(_0x79c830){const _0x3faea4=a205_0x5173eb;if(!_0x79c830||typeof _0x79c830!==_0x3faea4(0x126))return{'config':{},'migrated':![]};const _0x26d228={..._0x79c830},_0x513e38=_0x26d228[_0x3faea4(0x105)]&&typeof _0x26d228[_0x3faea4(0x105)]==='object'?{..._0x26d228[_0x3faea4(0x105)]}:{},_0x5162e4=Object[_0x3faea4(0x118)](_0x513e38)[_0x3faea4(0x11d)],_0x2ce5b5=_0x26d228[_0x3faea4(0x120)]||_0x26d228[_0x3faea4(0x109)];let _0x55bab3=![];if(_0x2ce5b5&&_0x5162e4===0x0){const _0x2d1feb=typeof _0x26d228['defaultApp']===_0x3faea4(0x103)&&_0x26d228[_0x3faea4(0x10e)][_0x3faea4(0x130)]()?_0x26d228['defaultApp']:String(_0x2ce5b5)[_0x3faea4(0x130)]();_0x513e38[_0x2d1feb]={'appcode':String(_0x2ce5b5)[_0x3faea4(0x130)](),..._0x26d228[_0x3faea4(0x10c)]!=null?{'env':_0x26d228[_0x3faea4(0x10c)]}:{},..._0x26d228[_0x3faea4(0x127)]!=null?{'apiDir':_0x26d228['apiDir']}:{},..._0x26d228[_0x3faea4(0x102)]!=null?{'cookie':_0x26d228[_0x3faea4(0x102)]}:{},..._0x26d228['accessKey']!=null?{'accessKey':_0x26d228['accessKey']}:{},..._0x26d228['format']!=null?{'format':_0x26d228[_0x3faea4(0x12b)]}:{},..._0x26d228[_0x3faea4(0x131)]!=null?{'pageSize':_0x26d228[_0x3faea4(0x131)]}:{},..._0x26d228[_0x3faea4(0x11c)]!=null?{'riskLevel':_0x26d228[_0x3faea4(0x11c)]}:{},..._0x26d228[_0x3faea4(0x121)]!=null?{'locale':_0x26d228[_0x3faea4(0x121)]}:{}},_0x26d228['apps']=_0x513e38;if(!_0x26d228[_0x3faea4(0x10e)])_0x26d228['defaultApp']=_0x2d1feb;_0x55bab3=!![];}return(_0x3faea4(0x120)in _0x26d228||_0x3faea4(0x109)in _0x26d228)&&(delete _0x26d228[_0x3faea4(0x120)],delete _0x26d228[_0x3faea4(0x109)],_0x55bab3=!![]),{'config':_0x26d228,'migrated':_0x55bab3};}function writeNormalizedConfigIfNeeded(_0x37d4b9,_0x277c96){const _0x37bbda=a205_0x5173eb,_0x6f6b38=JSON[_0x37bbda(0x10b)](_0x277c96,null,0x2)+'\x0a';if(normalizedWriteCache[_0x37bbda(0x11e)](_0x37d4b9)===_0x6f6b38)return;writeConfigFile(_0x37d4b9,_0x277c96),normalizedWriteCache[_0x37bbda(0x110)](_0x37d4b9,_0x6f6b38);}function parseAndNormalizeConfig(_0x5c0187,_0x4001ed,_0x29e3ee){const _0x1b5ab2=a205_0x5173eb,_0x14efd9=parseCliConfigJsonFile(_0x5c0187,_0x4001ed,_0x29e3ee),_0x4b8020=normalizeLegacyConfigShape(_0x14efd9);if(_0x4b8020[_0x1b5ab2(0x114)])try{writeNormalizedConfigIfNeeded(_0x5c0187,_0x4b8020['config']);}catch{}return _0x4b8020['config'];}export function loadRawConfigLayers(_0x5c3bfd){const _0x2653b0=a205_0x5173eb;let _0x551e95={},_0x2137b7={};const _0x33e57d=resolveConfigPath(homedir());_0x33e57d&&(_0x551e95=parseAndNormalizeConfig(_0x33e57d,'warn',_0x2653b0(0x104)));const _0x4d1d69=_0x5c3bfd??findProjectRootDirectory(),_0x5bb4e6=resolveConfigPath(_0x4d1d69);return _0x5bb4e6&&(_0x2137b7=parseAndNormalizeConfig(_0x5bb4e6,_0x2653b0(0x12e),_0x2653b0(0x122))),{'globalPath':_0x33e57d,'projectPath':_0x5bb4e6,'globalConfig':_0x551e95,'projectConfig':_0x2137b7};}const INHERIT_WHITELIST=['cookie',a205_0x5173eb(0x117),a205_0x5173eb(0x121),a205_0x5173eb(0x12b),a205_0x5173eb(0x11c),a205_0x5173eb(0x131)];export function mergeRawConfigLayers(_0x280e09){const _0x371621=a205_0x5173eb,{globalConfig:_0x59fea5,projectConfig:_0x31713e}=_0x280e09,_0x40038d=Object[_0x371621(0x118)](_0x31713e)[_0x371621(0x11d)]>0x0;if(!_0x40038d)return mergeGlobalOnly(_0x59fea5);if(_0x31713e[_0x371621(0x12d)]===!![])return mergeFullInherit(_0x59fea5,_0x31713e);if(_0x31713e['inherit']===![])return mergeIsolated(_0x31713e);return mergeProjectFirst(_0x59fea5,_0x31713e);}function mergeGlobalOnly(_0x177cda){const _0x39581f=a205_0x5173eb,_0x3c5aa8={..._0x177cda},_0x197cbd=_0x177cda[_0x39581f(0x105)]&&typeof _0x177cda['apps']===_0x39581f(0x126)?_0x177cda[_0x39581f(0x105)]:{};if(Object[_0x39581f(0x118)](_0x197cbd)[_0x39581f(0x11d)]>0x0)_0x3c5aa8[_0x39581f(0x105)]=_0x197cbd;if(_0x177cda[_0x39581f(0x10e)])_0x3c5aa8['defaultApp']=_0x177cda[_0x39581f(0x10e)];else{const _0x1051e5=Object[_0x39581f(0x118)](_0x197cbd);if(_0x1051e5[_0x39581f(0x11d)]>0x0)_0x3c5aa8['defaultApp']=_0x1051e5[0x0];}return _0x3c5aa8;}function mergeIsolated(_0x283629){const _0x33dc18=a205_0x5173eb,_0x29a1ab={..._0x283629};delete _0x29a1ab[_0x33dc18(0x12d)];const _0x4cc473=_0x283629[_0x33dc18(0x105)]&&typeof _0x283629[_0x33dc18(0x105)]===_0x33dc18(0x126)?_0x283629[_0x33dc18(0x105)]:{};Object['keys'](_0x4cc473)['length']>0x0?_0x29a1ab[_0x33dc18(0x105)]=_0x4cc473:delete _0x29a1ab[_0x33dc18(0x105)];if('defaultApp'in _0x283629)_0x29a1ab[_0x33dc18(0x10e)]=_0x283629[_0x33dc18(0x10e)];else Object['keys'](_0x4cc473)[_0x33dc18(0x11d)]>0x0?_0x29a1ab[_0x33dc18(0x10e)]=Object[_0x33dc18(0x118)](_0x4cc473)[0x0]:delete _0x29a1ab['defaultApp'];return _0x29a1ab;}function mergeProjectFirst(_0x51e000,_0x47b8c5){const _0x4bd387=a205_0x5173eb,_0x47721a={..._0x47b8c5};delete _0x47721a[_0x4bd387(0x12d)];for(const _0x2ff370 of INHERIT_WHITELIST){!(_0x2ff370 in _0x47721a)&&_0x2ff370 in _0x51e000&&(_0x47721a[_0x2ff370]=_0x51e000[_0x2ff370]);}const _0x2ea598=_0x47b8c5[_0x4bd387(0x105)]&&typeof _0x47b8c5['apps']===_0x4bd387(0x126)?_0x47b8c5[_0x4bd387(0x105)]:{};Object[_0x4bd387(0x118)](_0x2ea598)['length']>0x0?_0x47721a[_0x4bd387(0x105)]=_0x2ea598:delete _0x47721a['apps'];if(_0x4bd387(0x10e)in _0x47b8c5)_0x47721a[_0x4bd387(0x10e)]=_0x47b8c5['defaultApp'];else Object[_0x4bd387(0x118)](_0x2ea598)[_0x4bd387(0x11d)]>0x0?_0x47721a[_0x4bd387(0x10e)]=Object[_0x4bd387(0x118)](_0x2ea598)[0x0]:delete _0x47721a[_0x4bd387(0x10e)];return _0x47721a;}function mergeFullInherit(_0x2dc5ae,_0x12547d){const _0x1b47b9=a205_0x5173eb,_0x3c39db=_0x2dc5ae[_0x1b47b9(0x105)]&&typeof _0x2dc5ae[_0x1b47b9(0x105)]===_0x1b47b9(0x126)?_0x2dc5ae['apps']:{},_0x391899=_0x12547d['apps']&&typeof _0x12547d[_0x1b47b9(0x105)]==='object'?_0x12547d[_0x1b47b9(0x105)]:{},_0x184f2a={..._0x3c39db,..._0x391899},_0x50de07={..._0x2dc5ae,..._0x12547d};delete _0x50de07[_0x1b47b9(0x12d)];if(Object['keys'](_0x184f2a)[_0x1b47b9(0x11d)]>0x0)_0x50de07['apps']=_0x184f2a;if('defaultApp'in _0x12547d)_0x50de07[_0x1b47b9(0x10e)]=_0x12547d['defaultApp'];else{if(Object[_0x1b47b9(0x118)](_0x391899)['length']>0x0)_0x50de07['defaultApp']=Object[_0x1b47b9(0x118)](_0x391899)[0x0];else{if(_0x2dc5ae[_0x1b47b9(0x10e)])_0x50de07[_0x1b47b9(0x10e)]=_0x2dc5ae[_0x1b47b9(0x10e)];else{const _0x37dabe=Object['keys'](_0x3c39db);if(_0x37dabe[_0x1b47b9(0x11d)]>0x0)_0x50de07['defaultApp']=_0x37dabe[0x0];}}}return _0x50de07;}export function readRawConfigWithLayers(_0x442025){const _0x4b4a50=loadRawConfigLayers(_0x442025);return{'config':mergeRawConfigLayers(_0x4b4a50),'layers':_0x4b4a50};}export function readRawConfig(_0x80449b){return mergeRawConfigLayers(loadRawConfigLayers(_0x80449b));}function a205_0x5e9f(){const _0x2f27ca=['apiDir','35HgSvnO','parse','.lovrabet.json','format','290hwyLqi','inherit','warn','1414024nNSKON','trim','pageSize','message','3AcelaZ','empty','utf8','silent','cookie','string','Global','apps','5axyvmk','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','405216WBajLa','app','.tmp','stringify','env','\x0a\x20\x20','defaultApp','984189ydfzxD','set','36552216hdNXWE','2560734WguisN','filter','migrated','cwd','12iykVCB','accessKey','keys','.lovrabetrc','missing','status','riskLevel','length','get','error','appcode','locale','Project','.rabetbase.json','498530tUFmEy','336567WvZGIK','object'];a205_0x5e9f=function(){return _0x2f27ca;};return a205_0x5e9f();}export function readConfigFile(_0x23e28f){const _0x35de5b=a205_0x5173eb;return parseAndNormalizeConfig(_0x23e28f,_0x35de5b(0x101));}export function writeConfigFile(_0x55ca60,_0x332843){const _0x196049=a205_0x5173eb,_0x247ac1=dirname(_0x55ca60);!existsSync(_0x247ac1)&&mkdirSync(_0x247ac1,{'recursive':!![]});const _0x337111=_0x55ca60+_0x196049(0x10a);try{writeFileSync(_0x337111,JSON[_0x196049(0x10b)](_0x332843,null,0x2)+'\x0a',{'encoding':_0x196049(0x100),'mode':0x180}),renameSync(_0x337111,_0x55ca60);}catch(_0x40448f){try{unlinkSync(_0x337111);}catch{}throw _0x40448f;}}export function resolveWriteConfigPath(_0x381efc){const _0x1a5f18=a205_0x5173eb,_0x24bfa9=_0x381efc==='project'?process[_0x1a5f18(0x115)]():homedir(),_0x488e0b=resolveConfigPath(_0x24bfa9);return _0x488e0b??resolve(_0x24bfa9,NEW_CONFIG_NAME);}
|