@lovrabet/rabetbase-cli 2.4.3-beta.1 → 2.4.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.d.ts +2 -0
- package/lib/commands/db/diff-refresh-start.js +1 -0
- package/lib/commands/db/diff-refresh-status.d.ts +2 -0
- package/lib/commands/db/diff-refresh-status.js +1 -0
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-create.d.ts +2 -0
- package/lib/commands/notification/config-create.js +1 -0
- package/lib/commands/notification/config-delete.d.ts +2 -0
- package/lib/commands/notification/config-delete.js +1 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.d.ts +2 -0
- package/lib/commands/notification/config-update.js +1 -0
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.d.ts +97 -0
- package/lib/commands/notification/shared.js +1 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +1 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.d.ts +11 -0
- package/lib/commands/project/create/materialize-project-template.js +1 -0
- package/lib/commands/project/create/project-name.d.ts +2 -0
- package/lib/commands/project/create/project-name.js +1 -0
- package/lib/commands/project/create/project-template-archive.d.ts +6 -0
- package/lib/commands/project/create/project-template-archive.js +1 -0
- package/lib/commands/project/create/project-template-path.d.ts +1 -3
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.d.ts +2 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +2 -0
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +29 -2
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +13 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -4
- package/skills/rabetbase/SKILL.md +33 -22
- package/skills/rabetbase/guides/backend-function.md +5 -3
- package/skills/rabetbase/guides/bff-creation-workflow.md +2 -2
- package/skills/rabetbase/guides/conflict-detection.md +2 -2
- package/skills/rabetbase/guides/database-connection-workflow.md +39 -5
- package/skills/rabetbase/guides/react-custom-page-workflow.md +22 -4
- package/skills/rabetbase/guides/sql-creation-workflow.md +4 -2
- package/skills/rabetbase/guides/sql-mybatis.md +2 -2
- package/skills/rabetbase/knowledge/page-schema/YtPage.md +3 -37
- package/skills/rabetbase/knowledge/react-page/generation-standards.md +24 -2
- package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
- package/skills/rabetbase/references/rabetbase-bff-push.md +4 -5
- package/skills/rabetbase/references/rabetbase-bff-save.md +3 -3
- package/skills/rabetbase/references/rabetbase-config.md +2 -2
- package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -2
- package/skills/rabetbase/references/rabetbase-db-detail.md +3 -0
- package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +53 -0
- package/skills/rabetbase/references/rabetbase-db-diff.md +40 -21
- package/skills/rabetbase/references/rabetbase-db-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +5 -3
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -10
- package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +1 -3
- package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +2 -3
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +2 -2
- package/skills/rabetbase/references/rabetbase-notification-config-mutations.md +56 -0
- package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-react-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-react-publish.md +2 -2
- package/skills/rabetbase/references/rabetbase-project-create.md +3 -0
- package/skills/rabetbase/references/rabetbase-run.md +1 -1
- package/skills/rabetbase/references/rabetbase-sql-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-sql-push.md +3 -4
- package/skills/rabetbase/references/rabetbase-user-account.md +0 -1
- package/skills/rabetbase.manifest.json +5 -5
- package/templates/README.md +14 -2
- package/lib/commands/project/create/non-interactive.d.ts +0 -9
- package/lib/commands/project/create/non-interactive.js +0 -1
- package/lib/utils/copy-directory.d.ts +0 -1
- package/lib/utils/copy-directory.js +0 -1
- package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +0 -291
- package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +0 -223
- package/templates/projects/sub-app-react-demo/.prettierrc +0 -1
- package/templates/projects/sub-app-react-demo/CHANGELOG.md +0 -67
- package/templates/projects/sub-app-react-demo/README.md +0 -246
- package/templates/projects/sub-app-react-demo/docs/quick-start.md +0 -245
- package/templates/projects/sub-app-react-demo/index.html +0 -27
- package/templates/projects/sub-app-react-demo/package.json +0 -34
- package/templates/projects/sub-app-react-demo/public/logo.svg +0 -1
- package/templates/projects/sub-app-react-demo/public/vite.svg +0 -1
- package/templates/projects/sub-app-react-demo/src/api/api.ts +0 -26
- package/templates/projects/sub-app-react-demo/src/api/client.ts +0 -32
- package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +0 -28
- package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +0 -55
- package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +0 -308
- package/templates/projects/sub-app-react-demo/src/main.tsx +0 -52
- package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +0 -570
- package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +0 -531
- package/templates/projects/sub-app-react-demo/src/pages/index.module.css +0 -500
- package/templates/projects/sub-app-react-demo/src/pages/index.tsx +0 -641
- package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +0 -536
- package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +0 -295
- package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +0 -242
- package/templates/projects/sub-app-react-demo/src/router/index.tsx +0 -30
- package/templates/projects/sub-app-react-demo/src/style.css +0 -108
- package/templates/projects/sub-app-react-demo/src/utils/api.ts +0 -12
- package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +0 -2
- package/templates/projects/sub-app-react-demo/tsconfig.json +0 -26
- package/templates/projects/sub-app-react-demo/vite.config.ts +0 -111
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a206_0x541eb5=a206_0x3ec7;function a206_0x3ec7(_0x26f586,_0x41c8dd){_0x26f586=_0x26f586-0x178;const _0x105055=a206_0x1050();let _0x3ec799=_0x105055[_0x26f586];return _0x3ec799;}(function(_0x4a8e6b,_0x26806c){const _0xf52465=a206_0x3ec7,_0x16517c=_0x4a8e6b();while(!![]){try{const _0x38110e=-parseInt(_0xf52465(0x1aa))/0x1+-parseInt(_0xf52465(0x1e0))/0x2+parseInt(_0xf52465(0x1d0))/0x3*(-parseInt(_0xf52465(0x178))/0x4)+-parseInt(_0xf52465(0x180))/0x5*(-parseInt(_0xf52465(0x197))/0x6)+parseInt(_0xf52465(0x19f))/0x7*(-parseInt(_0xf52465(0x1c0))/0x8)+parseInt(_0xf52465(0x1b8))/0x9+parseInt(_0xf52465(0x19d))/0xa;if(_0x38110e===_0x26806c)break;else _0x16517c['push'](_0x16517c['shift']());}catch(_0x908ba5){_0x16517c['push'](_0x16517c['shift']());}}}(a206_0x1050,0x3c3ea));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a206_0x1050(){const _0xd3eda1=['80993LRlHcK','Operation\x20type','Force\x20non-interactive\x20mode\x20(CI)','description','sql-name','dryRun','code','Show\x20help','Use\x20project\x20config\x20scope','Page\x20size','File\x20path','value','SQL\x20string','fromEntries','1659411RYhWcE','watch','Reveal\x20sensitive\x20value','SQL\x20name','output','title','string','Output\x20format','318328vvTEiP','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Title','nonInteractive','function-node','pagesize','production\x20|\x20daily','clear','sort','<code>','Record\x20ID','params','Use\x20global\x20config\x20scope','sqlname','Preview\x20operation\x20without\x20executing','dry-run','22440tXxFSE','Asynchronous\x20task\x20ID','label','boolean','Enable\x20BFF\x20save','task-id','Target\x20path','<expr>','descriptionFile','expectedChildrenCount','parentId','Config\x20key','Confirm\x20destructive\x20action','taskId','dbId','file','295450oENCSo','Name','yes','schemas','page','expectParentId','Config\x20value','from-env','Function\x20node','Comma-separated\x20menu\x20IDs','Force\x20overwrite','appcode','Description\x20file','sqlcode','env','global','DB\x20ID','Parent\x20menu\x20id','52oRpnOF','Code\x20filter','Menu\x20label','force','non-interactive','operation-type','Expected\x20current\x20child\x20count','Menu\x20sort\x20value','5MfTKfl','Use\x20remote','expected-children-count','expectPath','expect-parent-id','project','expected-count','SQL\x20code','all','remote','datasetcode','enableBffSave','Keyword\x20filter','confirm','sql','Alias\x20for\x20--non-interactive','operationType','Dataset\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','keyword','verbose','stdin','Expected\x20current\x20parent\x20menu\x20id','341358diBoFI','JSON\x20params','skipImports','app','name','format','6895670wvPSYa','map','63QTLGAK','key','type','enable-bff-save','Output\x20path','parent-id','Environment','expectedCount','tags','reveal','target'];a206_0x1050=function(){return _0xd3eda1;};return a206_0x1050();}export const GLOBAL_FLAGS=[{'name':a206_0x541eb5(0x1eb),'meowKey':a206_0x541eb5(0x1eb),'type':'string','description':'Override\x20appcode','hint':a206_0x541eb5(0x1c9)},{'name':'app','meowKey':a206_0x541eb5(0x19a),'type':a206_0x541eb5(0x1be),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a206_0x541eb5(0x1ee),'meowKey':'env','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1a5),'hint':a206_0x541eb5(0x1c6)},{'name':'format','meowKey':a206_0x541eb5(0x19c),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1bf),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a206_0x541eb5(0x1c1),'hint':a206_0x541eb5(0x1d7)},{'name':a206_0x541eb5(0x1cf),'meowKey':a206_0x541eb5(0x1af),'type':'boolean','description':a206_0x541eb5(0x1ce)},{'name':a206_0x541eb5(0x1e2),'meowKey':'yes','type':'boolean','description':a206_0x541eb5(0x192)},{'name':a206_0x541eb5(0x17c),'meowKey':a206_0x541eb5(0x1c3),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ac)},{'name':'global','meowKey':a206_0x541eb5(0x1ef),'type':'boolean','description':a206_0x541eb5(0x1cc)},{'name':a206_0x541eb5(0x185),'meowKey':a206_0x541eb5(0x185),'type':'boolean','description':a206_0x541eb5(0x1b2)},{'name':'ci','meowKey':'ci','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x18f),'hidden':!![]},{'name':'help','meowKey':'help','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1b1)},{'name':a206_0x541eb5(0x19b),'meowKey':a206_0x541eb5(0x19b),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e1),'hidden':!![]},{'name':a206_0x541eb5(0x1bd),'meowKey':a206_0x541eb5(0x1bd),'type':'string','description':a206_0x541eb5(0x1c2),'hidden':!![]},{'name':a206_0x541eb5(0x1c7),'meowKey':a206_0x541eb5(0x1c7),'type':a206_0x541eb5(0x1d3),'description':'Clear','hidden':!![]},{'name':a206_0x541eb5(0x1b9),'meowKey':a206_0x541eb5(0x1b9),'type':a206_0x541eb5(0x1d3),'description':'Watch\x20mode','hidden':!![]},{'name':a206_0x541eb5(0x1bc),'meowKey':a206_0x541eb5(0x1bc),'type':'string','description':a206_0x541eb5(0x1a3),'hidden':!![]},{'name':a206_0x541eb5(0x1cb),'meowKey':a206_0x541eb5(0x1cb),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x198),'hidden':!![]},{'name':'datasetcode','meowKey':a206_0x541eb5(0x18a),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x191),'hidden':!![]},{'name':a206_0x541eb5(0x188),'meowKey':a206_0x541eb5(0x188),'type':a206_0x541eb5(0x1d3),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x541eb5(0x1a2),'meowKey':a206_0x541eb5(0x18b),'type':'boolean','description':a206_0x541eb5(0x1d4),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a206_0x541eb5(0x1ca),'hidden':!![]},{'name':a206_0x541eb5(0x1a1),'meowKey':a206_0x541eb5(0x1a1),'type':a206_0x541eb5(0x1be),'description':'Type\x20filter','hidden':!![]},{'name':a206_0x541eb5(0x1df),'meowKey':a206_0x541eb5(0x1df),'type':'string','description':a206_0x541eb5(0x1b4),'hidden':!![]},{'name':'sqlcode','meowKey':a206_0x541eb5(0x1ed),'type':'string','description':a206_0x541eb5(0x187),'hidden':!![]},{'name':a206_0x541eb5(0x1ae),'meowKey':'sqlName','type':'string','description':a206_0x541eb5(0x1bb),'hidden':!![]},{'name':a206_0x541eb5(0x1cd),'meowKey':a206_0x541eb5(0x1cd),'type':a206_0x541eb5(0x1be),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a206_0x541eb5(0x1de),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1f0),'hidden':!![]},{'name':a206_0x541eb5(0x1ad),'meowKey':a206_0x541eb5(0x1ad),'type':a206_0x541eb5(0x1be),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':a206_0x541eb5(0x1d8),'type':'string','description':a206_0x541eb5(0x1ec),'hidden':!![]},{'name':a206_0x541eb5(0x1e4),'meowKey':a206_0x541eb5(0x1e4),'type':a206_0x541eb5(0x1be),'description':'Page\x20number','hidden':!![]},{'name':a206_0x541eb5(0x1c5),'meowKey':'pagesize','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b3),'hidden':!![]},{'name':a206_0x541eb5(0x193),'meowKey':a206_0x541eb5(0x193),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x18c),'hidden':!![]},{'name':a206_0x541eb5(0x1b0),'meowKey':a206_0x541eb5(0x1b0),'type':'string','description':a206_0x541eb5(0x179),'hidden':!![]},{'name':'sql','meowKey':a206_0x541eb5(0x18e),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b6),'hidden':!![]},{'name':a206_0x541eb5(0x1e3),'meowKey':a206_0x541eb5(0x1e3),'type':'string','description':'Schemas','hidden':!![]},{'name':'operation','meowKey':'operation','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1a9),'meowKey':a206_0x541eb5(0x1a9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d6),'hidden':!![]},{'name':'skip-imports','meowKey':a206_0x541eb5(0x199),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a206_0x541eb5(0x1a0),'meowKey':'key','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1db),'hidden':!![]},{'name':a206_0x541eb5(0x1b5),'meowKey':a206_0x541eb5(0x1b5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e6),'hidden':!![]},{'name':a206_0x541eb5(0x1a7),'meowKey':a206_0x541eb5(0x1a7),'type':a206_0x541eb5(0x1be),'description':'Tags','hidden':!![]},{'name':a206_0x541eb5(0x195),'meowKey':a206_0x541eb5(0x195),'type':a206_0x541eb5(0x1d3),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a206_0x541eb5(0x1e7),'meowKey':'fromEnv','type':'string','description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a206_0x541eb5(0x1a8),'meowKey':'reveal','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ba),'hidden':!![]},{'name':a206_0x541eb5(0x17b),'meowKey':a206_0x541eb5(0x17b),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ea),'hidden':!![]},{'name':a206_0x541eb5(0x18d),'meowKey':a206_0x541eb5(0x18d),'type':'boolean','description':a206_0x541eb5(0x1dc),'hidden':!![]},{'name':'remote','meowKey':a206_0x541eb5(0x189),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x181),'hidden':!![]},{'name':a206_0x541eb5(0x194),'meowKey':a206_0x541eb5(0x194),'type':a206_0x541eb5(0x1d3),'description':'Verbose\x20output','hidden':!![]},{'name':a206_0x541eb5(0x186),'meowKey':a206_0x541eb5(0x1a6),'type':a206_0x541eb5(0x1be),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a206_0x541eb5(0x1d2),'meowKey':a206_0x541eb5(0x1d2),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17a),'hidden':!![]},{'name':a206_0x541eb5(0x1a4),'meowKey':a206_0x541eb5(0x1da),'type':'string','description':a206_0x541eb5(0x1f1),'hidden':!![]},{'name':'sort','meowKey':a206_0x541eb5(0x1c8),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17f),'hidden':!![]},{'name':a206_0x541eb5(0x184),'meowKey':a206_0x541eb5(0x1e5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x196),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x541eb5(0x183),'type':a206_0x541eb5(0x1be),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a206_0x541eb5(0x182),'meowKey':a206_0x541eb5(0x1d9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17e),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e9),'hidden':!![]},{'name':a206_0x541eb5(0x1d5),'meowKey':a206_0x541eb5(0x1dd),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d1),'hidden':!![]},{'name':a206_0x541eb5(0x17d),'meowKey':a206_0x541eb5(0x190),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1c4),'meowKey':'functionNode','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a206_0x541eb5(0x19a),a206_0x541eb5(0x1ee),a206_0x541eb5(0x19c),'jq',a206_0x541eb5(0x1cf),a206_0x541eb5(0x1e2),'non-interactive','ci']);export function buildMeowFlags(){const _0x4eea7a=a206_0x541eb5;return Object[_0x4eea7a(0x1b7)](GLOBAL_FLAGS[_0x4eea7a(0x19e)](_0x4d30cf=>[_0x4d30cf['meowKey'],{'type':_0x4d30cf[_0x4eea7a(0x1a1)]}]));}
|
|
1
|
+
const a214_0x9e720a=a214_0x209d;(function(_0x162180,_0x530fbb){const _0x3da4c9=a214_0x209d,_0x5632ac=_0x162180();while(!![]){try{const _0x26c9e1=-parseInt(_0x3da4c9(0x86))/0x1*(-parseInt(_0x3da4c9(0xb7))/0x2)+parseInt(_0x3da4c9(0x9d))/0x3+-parseInt(_0x3da4c9(0xf3))/0x4+parseInt(_0x3da4c9(0xf6))/0x5+parseInt(_0x3da4c9(0xb8))/0x6*(-parseInt(_0x3da4c9(0x9e))/0x7)+parseInt(_0x3da4c9(0xd6))/0x8*(parseInt(_0x3da4c9(0xa3))/0x9)+parseInt(_0x3da4c9(0x7f))/0xa;if(_0x26c9e1===_0x530fbb)break;else _0x5632ac['push'](_0x5632ac['shift']());}catch(_0x23bdcc){_0x5632ac['push'](_0x5632ac['shift']());}}}(a214_0x4ac1,0x998ec));function a214_0x209d(_0x1c338b,_0x200d58){_0x1c338b=_0x1c338b-0x77;const _0x4ac167=a214_0x4ac1();let _0x209dcb=_0x4ac167[_0x1c338b];return _0x209dcb;}export const CLI_BIN_NAME=a214_0x9e720a(0xaf);export const CLI_DISPLAY_NAME=a214_0x9e720a(0xce);export const NPM_PACKAGE_NAME=a214_0x9e720a(0xd7);function a214_0x4ac1(){const _0x317984=['nonInteractive','title','expected-count','4488900RGnhwa','Force\x20overwrite','keyword','4099730qMzSXz','parent-id','Description\x20file','<expr>','yes','File\x20path','Skip\x20import\x20generation','menuIds','Menu\x20sort\x20value','Expected\x20current\x20child\x20count','force','json\x20|\x20pretty\x20|\x20compress','dbid','Config\x20key','872840erXLfo','key','Parent\x20menu\x20id','Alias\x20for\x20--non-interactive','Keyword\x20filter','enableBffSave','target','2xRfgyw','sqlName','params','description','value','project','Schemas','file','Verbose\x20output','Output\x20path','Page\x20size','stdin','non-interactive','Description','dry-run','global','label','dbId','sqlname','Output\x20format','pagesize','verbose','Skip\x20confirmation\x20for\x20high-risk\x20writes','2933409pRwwmS','118321XQjdBr','Override\x20appcode','boolean','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expected-children-count','270693HMeNmL','Name','meowKey','Use\x20remote','Record\x20ID','env','operation-type','expectedChildrenCount','remote','Environment','Code\x20filter','code','rabetbase','Expected\x20current\x20menu\x20path','from-env','type','help','fromEntries','Tags','Config\x20value','679250KRVARW','342AafCqQ','task-id','SQL\x20code','map','format','schemas','enable-bff-save','datasetcode','Use\x20project\x20config\x20scope','expect-parent-id','Apply\x20to\x20all','expectPath','Expected\x20current\x20parent\x20menu\x20id','sqlcode','SQL\x20name','expect-path','expectParentId','reveal','watch','JSON\x20params','Use\x20global\x20config\x20scope','page','Rabetbase\x20CLI','all','Comma-separated\x20menu\x20IDs','Type\x20filter','confirm','sql-name','dryRun','string','40HqkMTa','@lovrabet/rabetbase-cli','tags','output','<code>','<name>','parentId','name','Function\x20node','Title','Enable\x20BFF\x20save','Watch\x20mode','sql','DB\x20ID','Select\x20app\x20profile\x20by\x20name','operation','sort','Dataset\x20code','descriptionFile','app','appcode','taskId','skipImports','fromEnv','Asynchronous\x20task\x20ID','clear'];a214_0x4ac1=function(){return _0x317984;};return a214_0x4ac1();}export const GLOBAL_FLAGS=[{'name':a214_0x9e720a(0xea),'meowKey':a214_0x9e720a(0xea),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x9f),'hint':a214_0x9e720a(0xda)},{'name':a214_0x9e720a(0xe9),'meowKey':a214_0x9e720a(0xe9),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xe4),'hint':a214_0x9e720a(0xdb)},{'name':a214_0x9e720a(0xa8),'meowKey':a214_0x9e720a(0xa8),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xac),'hint':'production\x20|\x20daily'},{'name':a214_0x9e720a(0xbc),'meowKey':a214_0x9e720a(0xbc),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x99),'hint':a214_0x9e720a(0x7c)},{'name':'jq','meowKey':'jq','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xa1),'hint':a214_0x9e720a(0xf9)},{'name':a214_0x9e720a(0x94),'meowKey':a214_0x9e720a(0xd4),'type':a214_0x9e720a(0xa0),'description':'Preview\x20operation\x20without\x20executing'},{'name':a214_0x9e720a(0xfa),'meowKey':a214_0x9e720a(0xfa),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x9c)},{'name':a214_0x9e720a(0x92),'meowKey':a214_0x9e720a(0xf0),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a214_0x9e720a(0x95),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xcc)},{'name':a214_0x9e720a(0x8b),'meowKey':a214_0x9e720a(0x8b),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xc0)},{'name':'ci','meowKey':'ci','type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x82),'hidden':!![]},{'name':a214_0x9e720a(0xb3),'meowKey':a214_0x9e720a(0xb3),'type':a214_0x9e720a(0xa0),'description':'Show\x20help'},{'name':a214_0x9e720a(0xdd),'meowKey':a214_0x9e720a(0xdd),'type':'string','description':a214_0x9e720a(0xa4),'hidden':!![]},{'name':a214_0x9e720a(0xf1),'meowKey':a214_0x9e720a(0xf1),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xdf),'hidden':!![]},{'name':a214_0x9e720a(0xef),'meowKey':a214_0x9e720a(0xef),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a214_0x9e720a(0xca),'type':'boolean','description':a214_0x9e720a(0xe1),'hidden':!![]},{'name':a214_0x9e720a(0xd9),'meowKey':a214_0x9e720a(0xd9),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x8f),'hidden':!![]},{'name':a214_0x9e720a(0x88),'meowKey':a214_0x9e720a(0x88),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xcb),'hidden':!![]},{'name':'datasetcode','meowKey':a214_0x9e720a(0xbf),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xe7),'hidden':!![]},{'name':a214_0x9e720a(0xcf),'meowKey':a214_0x9e720a(0xcf),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xc2),'hidden':!![]},{'name':a214_0x9e720a(0xbe),'meowKey':a214_0x9e720a(0x84),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xe0),'hidden':!![]},{'name':'id','meowKey':'id','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xa7),'hidden':!![]},{'name':'type','meowKey':'type','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xd1),'hidden':!![]},{'name':a214_0x9e720a(0x8d),'meowKey':a214_0x9e720a(0x8d),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xfb),'hidden':!![]},{'name':a214_0x9e720a(0xc5),'meowKey':a214_0x9e720a(0xc5),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xba),'hidden':!![]},{'name':a214_0x9e720a(0xd3),'meowKey':a214_0x9e720a(0x87),'type':a214_0x9e720a(0xd5),'description':'SQL\x20name','hidden':!![]},{'name':a214_0x9e720a(0x98),'meowKey':'sqlname','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xc6),'hidden':!![]},{'name':'db-id','meowKey':a214_0x9e720a(0x97),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xe3),'hidden':!![]},{'name':'dbid','meowKey':a214_0x9e720a(0x7d),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a214_0x9e720a(0x89),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x93),'hidden':!![]},{'name':'description-file','meowKey':a214_0x9e720a(0xe8),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xf8),'hidden':!![]},{'name':a214_0x9e720a(0xcd),'meowKey':'page','type':a214_0x9e720a(0xd5),'description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':a214_0x9e720a(0x9a),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x90),'hidden':!![]},{'name':a214_0x9e720a(0xf5),'meowKey':a214_0x9e720a(0xf5),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x83),'hidden':!![]},{'name':a214_0x9e720a(0xae),'meowKey':a214_0x9e720a(0xae),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xad),'hidden':!![]},{'name':a214_0x9e720a(0xe2),'meowKey':a214_0x9e720a(0xe2),'type':a214_0x9e720a(0xd5),'description':'SQL\x20string','hidden':!![]},{'name':a214_0x9e720a(0xbd),'meowKey':a214_0x9e720a(0xbd),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x8c),'hidden':!![]},{'name':a214_0x9e720a(0xe5),'meowKey':a214_0x9e720a(0xe5),'type':a214_0x9e720a(0xd5),'description':'Operation\x20type','hidden':!![]},{'name':a214_0x9e720a(0x85),'meowKey':a214_0x9e720a(0x85),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a214_0x9e720a(0xec),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x77),'hidden':!![]},{'name':a214_0x9e720a(0x80),'meowKey':a214_0x9e720a(0x80),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x7e),'hidden':!![]},{'name':'value','meowKey':a214_0x9e720a(0x8a),'type':'string','description':a214_0x9e720a(0xb6),'hidden':!![]},{'name':'tags','meowKey':a214_0x9e720a(0xd8),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xb5),'hidden':!![]},{'name':a214_0x9e720a(0x91),'meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a214_0x9e720a(0xb1),'meowKey':a214_0x9e720a(0xed),'type':a214_0x9e720a(0xd5),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a214_0x9e720a(0xc9),'meowKey':a214_0x9e720a(0xc9),'type':a214_0x9e720a(0xa0),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a214_0x9e720a(0x7b),'meowKey':a214_0x9e720a(0x7b),'type':'boolean','description':a214_0x9e720a(0xf4),'hidden':!![]},{'name':a214_0x9e720a(0xd2),'meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a214_0x9e720a(0xab),'meowKey':a214_0x9e720a(0xab),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xa6),'hidden':!![]},{'name':a214_0x9e720a(0x9b),'meowKey':a214_0x9e720a(0x9b),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x8e),'hidden':!![]},{'name':a214_0x9e720a(0xf2),'meowKey':'expectedCount','type':a214_0x9e720a(0xd5),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a214_0x9e720a(0x96),'meowKey':'label','type':a214_0x9e720a(0xd5),'description':'Menu\x20label','hidden':!![]},{'name':a214_0x9e720a(0xf7),'meowKey':a214_0x9e720a(0xdc),'type':'string','description':a214_0x9e720a(0x81),'hidden':!![]},{'name':a214_0x9e720a(0xe6),'meowKey':a214_0x9e720a(0xe6),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x79),'hidden':!![]},{'name':a214_0x9e720a(0xc1),'meowKey':a214_0x9e720a(0xc8),'type':'string','description':a214_0x9e720a(0xc4),'hidden':!![]},{'name':a214_0x9e720a(0xc7),'meowKey':a214_0x9e720a(0xc3),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xb0),'hidden':!![]},{'name':a214_0x9e720a(0xa2),'meowKey':a214_0x9e720a(0xaa),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x7a),'hidden':!![]},{'name':'menu-ids','meowKey':a214_0x9e720a(0x78),'type':'string','description':a214_0x9e720a(0xd0),'hidden':!![]},{'name':a214_0x9e720a(0xb9),'meowKey':a214_0x9e720a(0xeb),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xee),'hidden':!![]},{'name':a214_0x9e720a(0xa9),'meowKey':'operationType','type':a214_0x9e720a(0xd5),'description':'Operation\x20type','hidden':!![]},{'name':'function-node','meowKey':'functionNode','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xde),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a214_0x9e720a(0xea),a214_0x9e720a(0xe9),a214_0x9e720a(0xa8),a214_0x9e720a(0xbc),'jq',a214_0x9e720a(0x94),a214_0x9e720a(0xfa),a214_0x9e720a(0x92),'ci']);export function buildMeowFlags(){const _0x2a5254=a214_0x9e720a;return Object[_0x2a5254(0xb4)](GLOBAL_FLAGS[_0x2a5254(0xbb)](_0x43651f=>[_0x43651f[_0x2a5254(0xa5)],{'type':_0x43651f[_0x2a5254(0xb2)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a215_0x5b8dbf=a215_0x44be;(function(_0x5dcc29,_0x1fcaed){const _0x131f1a=a215_0x44be,_0x3dbd82=_0x5dcc29();while(!![]){try{const _0x4a5650=-parseInt(_0x131f1a(0x1bd))/0x1+-parseInt(_0x131f1a(0x1b6))/0x2+parseInt(_0x131f1a(0x1bb))/0x3+parseInt(_0x131f1a(0x1b5))/0x4*(-parseInt(_0x131f1a(0x1b2))/0x5)+-parseInt(_0x131f1a(0x1b9))/0x6*(parseInt(_0x131f1a(0x1b8))/0x7)+-parseInt(_0x131f1a(0x1bc))/0x8*(-parseInt(_0x131f1a(0x1b1))/0x9)+parseInt(_0x131f1a(0x1b4))/0xa;if(_0x4a5650===_0x1fcaed)break;else _0x3dbd82['push'](_0x3dbd82['shift']());}catch(_0x3f9028){_0x3dbd82['push'](_0x3dbd82['shift']());}}}(a215_0x990a,0x43dac));function a215_0x990a(){const _0xaae821=['1300089WOIxLm','72UlXYzY','27231uWBALR','49860hFszRL','25TrBNfy','write','11676460UWrjPS','305036FyOnpX','926374sLDKrw','en-US','28DxVgLn','751836rsYnbD','compress'];a215_0x990a=function(){return _0xaae821;};return a215_0x990a();}import{DEFAULT_API_DIR}from'../constant/paths.js';function a215_0x44be(_0x26c122,_0x3ffdac){_0x26c122=_0x26c122-0x1b1;const _0x990a2=a215_0x990a();let _0x44be27=_0x990a2[_0x26c122];return _0x44be27;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a215_0x5b8dbf(0x1ba),'locale':a215_0x5b8dbf(0x1b7),'riskLevel':a215_0x5b8dbf(0x1b3),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a215_0x5b8dbf(0x1ba);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0x1b0bbd=a216_0x4031;(function(_0x34403b,_0x25c960){const _0x384196=a216_0x4031,_0x5c88e9=_0x34403b();while(!![]){try{const _0x28151f=-parseInt(_0x384196(0x1b5))/0x1+parseInt(_0x384196(0x1a8))/0x2+parseInt(_0x384196(0x1b2))/0x3*(-parseInt(_0x384196(0x1a9))/0x4)+-parseInt(_0x384196(0x1ad))/0x5*(-parseInt(_0x384196(0x1b0))/0x6)+-parseInt(_0x384196(0x1a6))/0x7*(-parseInt(_0x384196(0x1ac))/0x8)+parseInt(_0x384196(0x1a7))/0x9*(parseInt(_0x384196(0x1b7))/0xa)+-parseInt(_0x384196(0x1a4))/0xb*(parseInt(_0x384196(0x1af))/0xc);if(_0x28151f===_0x25c960)break;else _0x5c88e9['push'](_0x5c88e9['shift']());}catch(_0x2a2cca){_0x5c88e9['push'](_0x5c88e9['shift']());}}}(a216_0x57fe,0xa3276));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0xe46681){const _0x225438=a216_0x4031;customApiDomain=_0xe46681?.['apiDomain'],customUserDomain=_0xe46681?.['userDomain'],customRuntimeDomain=_0xe46681?.[_0x225438(0x1ab)];}function a216_0x4031(_0x34bee7,_0x1f065e){_0x34bee7=_0x34bee7-0x1a4;const _0x57fe05=a216_0x57fe();let _0x4031d2=_0x57fe05[_0x34bee7];return _0x4031d2;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a216_0x1b0bbd(0x1b4):a216_0x1b0bbd(0x1a5));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a216_0x1b0bbd(0x1b6));export const getAppDomain=()=>isProduction(getEnv())?a216_0x1b0bbd(0x1b3):a216_0x1b0bbd(0x1ae);export const getAppBaseUrl=_0x1f2b2b=>{const _0x1949e7=a216_0x1b0bbd,_0x2cf5ec=encodeURIComponent(_0x1f2b2b[_0x1949e7(0x1aa)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x2cf5ec:getAppDomain()+_0x1949e7(0x1b1)+_0x2cf5ec;};function a216_0x57fe(){const _0x1d1f4d=['https://daily-runtime.lovrabet.com','570psgZcA','11QOuJqF','https://user-daily.lovrabet.com','1033116UrXLbb','112842Fmwjvc','2644598JNKDkA','117584ssVctb','trim','runtimeDomain','16eKZPdr','3006515OVcefD','https://daily.lovrabet.com','17444652qxoDDI','6ETsWMc','/web-app/app/','36QIDQUt','https://app.lovrabet.com','https://user.lovrabet.com','458693tegxjA'];a216_0x57fe=function(){return _0x1d1f4d;};return a216_0x57fe();}
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a217_0x38bcfa=a217_0x1bf8;(function(_0x50dac8,_0x50156c){const _0x347a5c=a217_0x1bf8,_0x1f7ca7=_0x50dac8();while(!![]){try{const _0x4e0a4d=parseInt(_0x347a5c(0x15b))/0x1*(-parseInt(_0x347a5c(0x158))/0x2)+-parseInt(_0x347a5c(0x150))/0x3+parseInt(_0x347a5c(0x14f))/0x4*(-parseInt(_0x347a5c(0x154))/0x5)+-parseInt(_0x347a5c(0x156))/0x6*(parseInt(_0x347a5c(0x14e))/0x7)+parseInt(_0x347a5c(0x15a))/0x8*(-parseInt(_0x347a5c(0x153))/0x9)+-parseInt(_0x347a5c(0x157))/0xa*(-parseInt(_0x347a5c(0x151))/0xb)+-parseInt(_0x347a5c(0x15c))/0xc*(-parseInt(_0x347a5c(0x159))/0xd);if(_0x4e0a4d===_0x50156c)break;else _0x1f7ca7['push'](_0x1f7ca7['shift']());}catch(_0x312445){_0x1f7ca7['push'](_0x1f7ca7['shift']());}}}(a217_0x1d59,0x4c7a4));export const RABETBASE_ENV_VALUES=[a217_0x38bcfa(0x155),a217_0x38bcfa(0x152)];function a217_0x1d59(){const _0x2f1476=['14DUeSSF','849076Dcyslj','1488507nBEXAj','199551EUavhQ','daily','36yHzgFk','5STEvts','production','343752knFSaP','270BGAOCB','58314CLXSUX','26PEwnVi','1127864rWscXN','15llmETd','9886524DCdAmo'];a217_0x1d59=function(){return _0x2f1476;};return a217_0x1d59();}export function normalizeEnv(_0x252111){return _0x252111==='online'?'production':_0x252111;}export function isProduction(_0x9f037c){return normalizeEnv(_0x9f037c)==='production';}export function isDaily(_0x2af12e){const _0xc8a144=a217_0x38bcfa;return normalizeEnv(_0x2af12e)===_0xc8a144(0x152);}export function isDev(_0x27635e){const _0x26d0cf=normalizeEnv(_0x27635e);return _0x26d0cf==='development'||_0x26d0cf==='dev';}function a217_0x1bf8(_0x568890,_0x106f41){_0x568890=_0x568890-0x14e;const _0x1d5940=a217_0x1d59();let _0x1bf878=_0x1d5940[_0x568890];return _0x1bf878;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a217_0x38bcfa(0x155));export function getEnv(){return env;}export function initEnv(_0x5c3667){env=normalizeEnv(_0x5c3667);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a218_0x45f44f=a218_0x5656;(function(_0xa98f1a,_0x5462c5){const _0x42feea=a218_0x5656,_0x89a5e7=_0xa98f1a();while(!![]){try{const _0x1288c4=parseInt(_0x42feea(0x69))/0x1+parseInt(_0x42feea(0x6a))/0x2*(parseInt(_0x42feea(0x71))/0x3)+-parseInt(_0x42feea(0x68))/0x4+parseInt(_0x42feea(0x6d))/0x5+-parseInt(_0x42feea(0x6c))/0x6*(-parseInt(_0x42feea(0x67))/0x7)+parseInt(_0x42feea(0x6e))/0x8+-parseInt(_0x42feea(0x6f))/0x9;if(_0x1288c4===_0x5462c5)break;else _0x89a5e7['push'](_0x89a5e7['shift']());}catch(_0x127abe){_0x89a5e7['push'](_0x89a5e7['shift']());}}}(a218_0x363a,0xa691e));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a218_0x45f44f(0x6b),'pretty',a218_0x45f44f(0x70)];function a218_0x5656(_0x89d457,_0x571dd6){_0x89d457=_0x89d457-0x67;const _0x363ae5=a218_0x363a();let _0x565609=_0x363ae5[_0x89d457];return _0x565609;}function a218_0x363a(){const _0x59cd63=['8525187SZWHZE','compress','7356LRbYoI','325661OiQjXr','4981260NiTZEH','762978mDkpyk','412keJjXm','json','66HrVBBP','4929320sTIzHv','872968lYOkez'];a218_0x363a=function(){return _0x59cd63;};return a218_0x363a();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x16cd60,_0x4f515c){const _0x2d23d1=a219_0x4886,_0x445164=_0x16cd60();while(!![]){try{const _0x343012=parseInt(_0x2d23d1(0xb2))/0x1*(-parseInt(_0x2d23d1(0xb3))/0x2)+parseInt(_0x2d23d1(0xad))/0x3*(parseInt(_0x2d23d1(0xa9))/0x4)+parseInt(_0x2d23d1(0xb1))/0x5+-parseInt(_0x2d23d1(0xb0))/0x6+parseInt(_0x2d23d1(0xac))/0x7*(parseInt(_0x2d23d1(0xaa))/0x8)+-parseInt(_0x2d23d1(0xaf))/0x9*(parseInt(_0x2d23d1(0xab))/0xa)+-parseInt(_0x2d23d1(0xb4))/0xb*(-parseInt(_0x2d23d1(0xae))/0xc);if(_0x343012===_0x4f515c)break;else _0x445164['push'](_0x445164['shift']());}catch(_0xada7dd){_0x445164['push'](_0x445164['shift']());}}}(a219_0x31cd,0x91284));function a219_0x4886(_0x42ee0b,_0x20a709){_0x42ee0b=_0x42ee0b-0xa9;const _0x31cdf5=a219_0x31cd();let _0x4886b6=_0x31cdf5[_0x42ee0b];return _0x4886b6;}export const DEFAULT_API_DIR='./src/api';function a219_0x31cd(){const _0x40dbc0=['4270225yFwisQ','186449rLPWjT','8gCWbEj','5467PcXpaQ','17636VZoENE','2472qzedPC','20mRfVgB','14273HUWBcI','489eNFneo','6888LrJgIG','1003968heItYh','5547462TDEXXL'];a219_0x31cd=function(){return _0x40dbc0;};return a219_0x31cd();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a220_0x58c2(){const _0x535c71=['3076738hvrfka','8DfaaFA','read','89082TGYGrc','490684YObHEg','20tnixSW','490MUtxuF','110376CmdJIp','24579zalEFe','write','3981894BfGRpB','222hAJwHo','17555714chDPEN','high-risk-write'];a220_0x58c2=function(){return _0x535c71;};return a220_0x58c2();}function a220_0x3ae7(_0x3dbe42,_0x2f9f2e){_0x3dbe42=_0x3dbe42-0x1c9;const _0x58c22f=a220_0x58c2();let _0x3ae7df=_0x58c22f[_0x3dbe42];return _0x3ae7df;}const a220_0x2c524b=a220_0x3ae7;(function(_0x4d3b72,_0x563f1b){const _0x17dcb5=a220_0x3ae7,_0x19e442=_0x4d3b72();while(!![]){try{const _0x5562b1=parseInt(_0x17dcb5(0x1d1))/0x1+parseInt(_0x17dcb5(0x1d5))/0x2*(-parseInt(_0x17dcb5(0x1d2))/0x3)+-parseInt(_0x17dcb5(0x1ce))/0x4*(-parseInt(_0x17dcb5(0x1cf))/0x5)+-parseInt(_0x17dcb5(0x1d4))/0x6+parseInt(_0x17dcb5(0x1ca))/0x7*(parseInt(_0x17dcb5(0x1cb))/0x8)+parseInt(_0x17dcb5(0x1cd))/0x9*(-parseInt(_0x17dcb5(0x1d0))/0xa)+parseInt(_0x17dcb5(0x1d6))/0xb;if(_0x5562b1===_0x563f1b)break;else _0x19e442['push'](_0x19e442['shift']());}catch(_0x1a408d){_0x19e442['push'](_0x19e442['shift']());}}}(a220_0x58c2,0x8d3be));export const RISK_LEVEL_VALUES=[a220_0x2c524b(0x1cc),a220_0x2c524b(0x1d3),a220_0x2c524b(0x1c9)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a5285,_0x3e9bcb){const _0x556d75=a221_0x242f,_0x204e11=_0x4a5285();while(!![]){try{const _0x25d322=parseInt(_0x556d75(0x166))/0x1+-parseInt(_0x556d75(0x156))/0x2*(-parseInt(_0x556d75(0x15c))/0x3)+-parseInt(_0x556d75(0x155))/0x4+-parseInt(_0x556d75(0x177))/0x5+-parseInt(_0x556d75(0x16b))/0x6+parseInt(_0x556d75(0x176))/0x7*(parseInt(_0x556d75(0x161))/0x8)+parseInt(_0x556d75(0x17c))/0x9;if(_0x25d322===_0x3e9bcb)break;else _0x204e11['push'](_0x204e11['shift']());}catch(_0x352c14){_0x204e11['push'](_0x204e11['shift']());}}}(a221_0x1a64,0x424c1));function a221_0x1a64(){const _0x212c48=['8JIaoOx','riskLevel','MAX_RISK','hasOwnProperty','daily','entries','54192cZQvrt','string','locale','maxRisk','globalConfig','928040PkxgqU','format','length','inherit','VERBOSE','282269MFnzJz','prototype','apiDir','accessKey','APP','2998980pOJiFh','object','find','read','keys','trim','true','defaultApp','ENV','pageSize','apps','7TOTpWe','76630WCdbLa','projectConfig','PAGE_SIZE','RISK_LEVEL','cookie','5522904VXTGkD','FORMAT','appcode','env','high-risk-write','call','COOKIE','1189908bCkJmm'];a221_0x1a64=function(){return _0x212c48;};return a221_0x1a64();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x712d80){const _0x3e92da=a221_0x242f;return typeof _0x712d80==='string'&&_0x712d80['trim']()?_0x712d80[_0x3e92da(0x170)]():undefined;}function a221_0x242f(_0x1a7dd1,_0x134c9a){_0x1a7dd1=_0x1a7dd1-0x154;const _0x1a6479=a221_0x1a64();let _0x242f8f=_0x1a6479[_0x1a7dd1];return _0x242f8f;}function appProfiles(_0x2b2553){const _0xf4c60=a221_0x242f;return _0x2b2553[_0xf4c60(0x175)]&&typeof _0x2b2553[_0xf4c60(0x175)]===_0xf4c60(0x16c)?_0x2b2553[_0xf4c60(0x175)]:{};}function resolveDefaultAppName(_0xdbb0d6){const _0x380c56=a221_0x242f,_0xd1aba1=stringConfigValue(_0xdbb0d6[_0x380c56(0x172)]);if(_0xd1aba1)return _0xd1aba1;return Object[_0x380c56(0x16f)](appProfiles(_0xdbb0d6))[0x0];}function resolveTopLevelAppCode(_0x3290cc){const _0x3113d8=a221_0x242f;return stringConfigValue(_0x3290cc[_0x3113d8(0x17e)])||stringConfigValue(_0x3290cc['app']);}function normalizeRiskCeiling(_0x4ddea6){const _0x14c33f=a221_0x242f;if(_0x4ddea6===undefined||_0x4ddea6===null)return undefined;if(_0x4ddea6===_0x14c33f(0x16e)||_0x4ddea6==='write'||_0x4ddea6===_0x14c33f(0x180))return _0x4ddea6;return _0x14c33f(0x16e);}function resolveRiskCeiling(..._0x2b841f){const _0x5ccedf=a221_0x242f;let _0x5b16c2;for(const _0x110c57 of _0x2b841f){const _0x7377df=normalizeRiskCeiling(_0x110c57);_0x7377df&&(!_0x5b16c2||riskLevelOrder(_0x7377df)<riskLevelOrder(_0x5b16c2))&&(_0x5b16c2=_0x7377df);}return _0x5b16c2??DEFAULT_CONFIG_VALUES[_0x5ccedf(0x157)];}function configuredRiskCeilings(_0x59e48e){const _0x4971c8=a221_0x242f;return[...Object[_0x4971c8(0x167)][_0x4971c8(0x159)][_0x4971c8(0x181)](_0x59e48e,_0x4971c8(0x15f))?[_0x59e48e[_0x4971c8(0x15f)]]:[],...Object[_0x4971c8(0x167)][_0x4971c8(0x159)]['call'](_0x59e48e,_0x4971c8(0x157))?[_0x59e48e[_0x4971c8(0x157)]]:[]];}export function resolveAppConfig({raw:_0x419083,flags:_0x35d994,layers:_0x453664,readEnv:_0x5f1ed2}){const _0x109dd3=a221_0x242f,_0x5ac80a=_0x453664?.[_0x109dd3(0x178)]??{},_0x271c96=_0x453664?.[_0x109dd3(0x160)]??{},_0x1055c1=Object[_0x109dd3(0x16f)](_0x5ac80a)[_0x109dd3(0x163)]>0x0,_0x25de62=!_0x1055c1||_0x5ac80a[_0x109dd3(0x164)]===!![],_0x4a99c4=_0x1055c1?resolveDefaultAppName(_0x5ac80a):undefined,_0x271948=_0x25de62?resolveDefaultAppName(_0x271c96):undefined,_0x9d231d=stringConfigValue(_0x35d994['app']),_0xfc247d=_0x5f1ed2(_0x109dd3(0x16a)),_0xab83ac={};if(_0x419083[_0x109dd3(0x175)]&&typeof _0x419083[_0x109dd3(0x175)]===_0x109dd3(0x16c))for(const [_0x4c9dbb,_0xa8f436]of Object[_0x109dd3(0x15b)](_0x419083[_0x109dd3(0x175)])){_0xa8f436&&typeof _0xa8f436===_0x109dd3(0x16c)&&_0xa8f436['appcode']&&(_0xab83ac[_0x4c9dbb]=_0xa8f436);}const _0x50aae9=_0x419083[_0x109dd3(0x172)]||undefined,_0x5f52b8=Object[_0x109dd3(0x16f)](_0xab83ac)[_0x109dd3(0x163)]>0x0,_0x8e1347=_0x9d231d||_0x4a99c4||_0xfc247d||_0x271948||_0x50aae9||undefined,_0x3c6295=stringConfigValue(_0x35d994[_0x109dd3(0x17e)]),_0x377dbe=_0x3c6295?Object[_0x109dd3(0x15b)](_0xab83ac)[_0x109dd3(0x16d)](([,_0x3fbae2])=>_0x3fbae2?.[_0x109dd3(0x17e)]===_0x3c6295):undefined,_0x4d99e6=_0x377dbe?.[0x0],_0x5f9660=_0x377dbe?.[0x1],_0x408f98=_0x3c6295?_0x4d99e6:_0x8e1347;let _0x534cbf=_0x408f98&&_0xab83ac[_0x408f98]?_0xab83ac[_0x408f98]:undefined;_0x3c6295&&_0x5f9660&&(_0x534cbf=_0x5f9660);const _0x53048d=_0x3c6295?_0x5f9660??_0x534cbf:_0x534cbf,_0xbe7cc9=!_0x9d231d&&!_0x4a99c4&&_0xfc247d&&_0x408f98===_0xfc247d,_0x595466=_0x9d231d||(_0xbe7cc9?_0xfc247d:undefined)||(_0x3c6295?_0x4d99e6:undefined),_0x4adda3=_0x53048d?.[_0x109dd3(0x17e)],_0x247957=_0x1055c1?resolveTopLevelAppCode(_0x5ac80a):undefined,_0x536069=_0x25de62?resolveTopLevelAppCode(_0x271c96):undefined,_0x183a15=_0x9d231d||_0x4a99c4?_0x4adda3:undefined,_0x72d9ad=!_0x9d231d&&!_0x4a99c4?_0x4adda3:undefined,_0x4fc367=_0x3c6295||_0x183a15||_0x247957||_0x72d9ad||_0x536069||undefined,_0x31d19d=_0x1055c1?stringConfigValue(_0x5ac80a[_0x109dd3(0x17f)]):undefined,_0x186630=_0x25de62?stringConfigValue(_0x271c96[_0x109dd3(0x17f)]):undefined,_0x13ab1b=_0x35d994[_0x109dd3(0x17f)]||_0x53048d?.[_0x109dd3(0x17f)]||_0x31d19d||_0x5f1ed2(_0x109dd3(0x173))||_0x186630||_0x419083[_0x109dd3(0x17f)]||DEFAULT_CONFIG_VALUES[_0x109dd3(0x17f)],_0x1472b1=_0x53048d?.[_0x109dd3(0x15e)]||_0x419083[_0x109dd3(0x15e)]||DEFAULT_CONFIG_VALUES['locale'],_0x1924c9=_0x5f1ed2(_0x109dd3(0x154))||_0x53048d?.[_0x109dd3(0x17b)]||_0x419083['cookie']||undefined,_0x42579f=_0x5f1ed2('ACCESS_KEY')||_0x53048d?.[_0x109dd3(0x169)]||_0x419083[_0x109dd3(0x169)]||undefined,_0x1fab42=_0x35d994['format']||_0x5f1ed2(_0x109dd3(0x17d))||_0x53048d?.[_0x109dd3(0x162)]||_0x419083[_0x109dd3(0x162)],_0x21a862=normalizeLegacyOutputFormat(_0x1fab42),_0x59a435=_0x5f1ed2(_0x109dd3(0x179))||_0x53048d?.[_0x109dd3(0x174)]||_0x419083[_0x109dd3(0x174)],_0x3078a2=_0x59a435?Number(_0x59a435)||undefined:undefined,_0x28e58c=_0x453664?[...configuredRiskCeilings(_0x453664[_0x109dd3(0x160)]),...configuredRiskCeilings(_0x453664['projectConfig'])]:configuredRiskCeilings(_0x419083),_0x120e24=resolveRiskCeiling(..._0x28e58c,_0x53048d?.['riskLevel']),_0x29eea6=resolveRiskCeiling(_0x120e24,_0x5f1ed2(_0x109dd3(0x17a)),_0x5f1ed2(_0x109dd3(0x158))),_0x56df43=_0x5f1ed2(_0x109dd3(0x165)),_0x3bc718=_0x56df43==='1'||_0x56df43===_0x109dd3(0x171),_0x20cdd1=_0x53048d?.[_0x109dd3(0x168)]||_0x419083[_0x109dd3(0x168)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x538b20=isDaily(normalizeEnv(String(_0x13ab1b)))?_0x109dd3(0x15a):'production';return{'appCode':typeof _0x4fc367===_0x109dd3(0x15d)&&_0x4fc367[_0x109dd3(0x170)]()?_0x4fc367[_0x109dd3(0x170)]():undefined,'env':_0x538b20,'locale':_0x1472b1,'cookie':_0x1924c9,'accessKey':_0x42579f,'format':_0x21a862,'pageSize':_0x3078a2,'riskLevel':_0x29eea6,'verbose':_0x3bc718,'apiDir':_0x20cdd1,'apps':_0xab83ac,'defaultApp':_0x50aae9,'currentApp':_0x5f52b8?_0x408f98:undefined,'explicitAppName':_0x595466};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a222_0x2826(){const _0x596b6b=['1936916NvYUgO','4002000OhMOfO','26991pOCqYZ','cookie','192UXPMkC','authRequired','1547931CsZJQG','6501984ldZFov','4908402IeNihq','5QnqiIR','26865vKObje'];a222_0x2826=function(){return _0x596b6b;};return a222_0x2826();}(function(_0x24f215,_0x2d5784){const _0x3f22e9=a222_0x2aaf,_0xc9b449=_0x24f215();while(!![]){try{const _0x408721=parseInt(_0x3f22e9(0x91))/0x1+-parseInt(_0x3f22e9(0x93))/0x2*(-parseInt(_0x3f22e9(0x8e))/0x3)+-parseInt(_0x3f22e9(0x8f))/0x4*(-parseInt(_0x3f22e9(0x98))/0x5)+parseInt(_0x3f22e9(0x90))/0x6+-parseInt(_0x3f22e9(0x95))/0x7+-parseInt(_0x3f22e9(0x96))/0x8+-parseInt(_0x3f22e9(0x97))/0x9;if(_0x408721===_0x2d5784)break;else _0xc9b449['push'](_0xc9b449['shift']());}catch(_0x11d79e){_0xc9b449['push'](_0xc9b449['shift']());}}}(a222_0x2826,0x6ff91));import{getIsSessionValid}from'../auth/is-session-valid.js';function a222_0x2aaf(_0x316f00,_0x2f9848){_0x316f00=_0x316f00-0x8e;const _0x282668=a222_0x2826();let _0x2aafcf=_0x282668[_0x316f00];return _0x2aafcf;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1e4dbb){const _0x55b45a=a222_0x2aaf,{getCookie:_0xa5c825}=await import('../auth/get-cookie.js'),_0x44b220=_0x1e4dbb[_0x55b45a(0x92)]||_0xa5c825(),_0x437148=_0x44b220?await getIsSessionValid():![];return{'cookie':_0x44b220,'isLoggedIn':_0x437148,async 'getOrLogin'(){const _0x4d641a=_0x55b45a;if(_0x44b220&&_0x437148)return _0x44b220;throw CliErrors[_0x4d641a(0x94)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a215_0x10f6e2=a215_0x162d;(function(_0x411282,_0x2baf7a){const _0x2c4cb7=a215_0x162d,_0x36514b=_0x411282();while(!![]){try{const _0x50093b=parseInt(_0x2c4cb7(0xe1))/0x1+-parseInt(_0x2c4cb7(0xd9))/0x2+-parseInt(_0x2c4cb7(0xf3))/0x3*(parseInt(_0x2c4cb7(0xfa))/0x4)+-parseInt(_0x2c4cb7(0xe6))/0x5*(-parseInt(_0x2c4cb7(0xf9))/0x6)+-parseInt(_0x2c4cb7(0xf7))/0x7+-parseInt(_0x2c4cb7(0xdb))/0x8*(-parseInt(_0x2c4cb7(0xd5))/0x9)+parseInt(_0x2c4cb7(0xed))/0xa*(parseInt(_0x2c4cb7(0xc7))/0xb);if(_0x50093b===_0x2baf7a)break;else _0x36514b['push'](_0x36514b['shift']());}catch(_0x72242c){_0x36514b['push'](_0x36514b['shift']());}}}(a215_0x2ca9,0x54325));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x10f6e2(0xcf);export const CONFIG_NAMES=[a215_0x10f6e2(0xcf),a215_0x10f6e2(0xd6),a215_0x10f6e2(0xca)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0xbf3669=>_0xbf3669!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x34c200){for(const _0x5c4716 of CONFIG_NAMES){const _0x3ba6fc=resolve(_0x34c200,_0x5c4716);if(existsSync(_0x3ba6fc))return _0x3ba6fc;}return undefined;}export function findProjectRootDirectory(_0x104700=process[a215_0x10f6e2(0xe7)]()){let _0x128934=resolve(_0x104700);const {root:_0x38c496}=parse(_0x128934),_0x3c896b=homedir();while(!![]){if(resolveConfigPath(_0x128934)){if(_0x128934===_0x3c896b)break;return _0x128934;}if(_0x128934===_0x38c496||_0x128934===_0x3c896b)break;const _0x20dc92=dirname(_0x128934);if(_0x20dc92===_0x128934)break;_0x128934=_0x20dc92;}return resolve(_0x104700);}export function getProjectConfigPath(){const _0xf7cd4=a215_0x10f6e2;return resolveConfigPath(process[_0xf7cd4(0xe7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a215_0x162d(_0x4c8de7,_0x5060de){_0x4c8de7=_0x4c8de7-0xc7;const _0x2ca942=a215_0x2ca9();let _0x162dcc=_0x2ca942[_0x4c8de7];return _0x162dcc;}export function isInProject(){return!!getProjectConfigPath();}function a215_0x2ca9(){const _0x25fc75=['apps','.lovrabetrc','riskLevel','utf8','pageSize','migrated','.rabetbase.json','inherit','silent','data','\x0a\x20\x20','defaultApp','18yrZIDB','.lovrabet.json','Global','missing','953050fdcThH','parse','1750264WHanaR','config','app','set','status','get','164475icBCiY','message','appcode','stringify','trim','5hyLDqx','cwd','apiDir','accessKey','keys','string','env','3005680iIawbC','project','format','empty','.tmp','Project','12333eOVpFH','warn','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','object','2116730uBVZgd','locale','3519534nawAJb','648QXgPIP','length','cookie','22xuDEzx','error'];a215_0x2ca9=function(){return _0x25fc75;};return a215_0x2ca9();}export function inspectCliConfigJsonFile(_0x552464){const _0x2a3628=a215_0x10f6e2;if(!existsSync(_0x552464))return{'status':_0x2a3628(0xd8)};try{const _0x3ba64d=readFileSync(_0x552464,{'encoding':_0x2a3628(0xcc)});if(!_0x3ba64d?.[_0x2a3628(0xe5)]())return{'status':_0x2a3628(0xf0)};const _0x11849f=JSON[_0x2a3628(0xda)](_0x3ba64d);return{'status':'ok','data':_0x11849f};}catch(_0x1fdad1){return{'status':_0x2a3628(0xc8),'message':_0x1fdad1 instanceof Error?_0x1fdad1[_0x2a3628(0xe2)]:String(_0x1fdad1)};}}function parseCliConfigJsonFile(_0x20ffe3,_0x72c002,_0x49ad52){const _0x548b8c=a215_0x10f6e2,_0x156e18=inspectCliConfigJsonFile(_0x20ffe3);if(_0x156e18['status']==='missing'||_0x156e18[_0x548b8c(0xdf)]===_0x548b8c(0xf0))return{};if(_0x156e18[_0x548b8c(0xdf)]==='ok')return _0x156e18[_0x548b8c(0xd2)];return _0x72c002===_0x548b8c(0xf4)&&_0x49ad52&&console[_0x548b8c(0xc8)](CLI_BIN_NAME+':\x20'+_0x49ad52+_0x548b8c(0xf5)+_0x20ffe3+_0x548b8c(0xd3)+_0x156e18['message']),{};}function normalizeLegacyConfigShape(_0xa7a672){const _0x3f0239=a215_0x10f6e2;if(!_0xa7a672||typeof _0xa7a672!==_0x3f0239(0xf6))return{'config':{},'migrated':![]};const _0x4eb9b4={..._0xa7a672},_0x1abda5=_0x4eb9b4[_0x3f0239(0xc9)]&&typeof _0x4eb9b4[_0x3f0239(0xc9)]==='object'?{..._0x4eb9b4['apps']}:{},_0x375778=Object[_0x3f0239(0xea)](_0x1abda5)[_0x3f0239(0xfb)],_0x29c7c5=_0x4eb9b4[_0x3f0239(0xe3)]||_0x4eb9b4[_0x3f0239(0xdd)];let _0x18610a=![];if(_0x29c7c5&&_0x375778===0x0){const _0xc2dd2b=typeof _0x4eb9b4[_0x3f0239(0xd4)]===_0x3f0239(0xeb)&&_0x4eb9b4[_0x3f0239(0xd4)]['trim']()?_0x4eb9b4[_0x3f0239(0xd4)]:String(_0x29c7c5)[_0x3f0239(0xe5)]();_0x1abda5[_0xc2dd2b]={'appcode':String(_0x29c7c5)[_0x3f0239(0xe5)](),..._0x4eb9b4[_0x3f0239(0xec)]!=null?{'env':_0x4eb9b4[_0x3f0239(0xec)]}:{},..._0x4eb9b4[_0x3f0239(0xe8)]!=null?{'apiDir':_0x4eb9b4[_0x3f0239(0xe8)]}:{},..._0x4eb9b4[_0x3f0239(0xfc)]!=null?{'cookie':_0x4eb9b4['cookie']}:{},..._0x4eb9b4[_0x3f0239(0xe9)]!=null?{'accessKey':_0x4eb9b4[_0x3f0239(0xe9)]}:{},..._0x4eb9b4[_0x3f0239(0xef)]!=null?{'format':_0x4eb9b4[_0x3f0239(0xef)]}:{},..._0x4eb9b4[_0x3f0239(0xcd)]!=null?{'pageSize':_0x4eb9b4[_0x3f0239(0xcd)]}:{},..._0x4eb9b4[_0x3f0239(0xcb)]!=null?{'riskLevel':_0x4eb9b4[_0x3f0239(0xcb)]}:{},..._0x4eb9b4['locale']!=null?{'locale':_0x4eb9b4[_0x3f0239(0xf8)]}:{}},_0x4eb9b4['apps']=_0x1abda5;if(!_0x4eb9b4[_0x3f0239(0xd4)])_0x4eb9b4[_0x3f0239(0xd4)]=_0xc2dd2b;_0x18610a=!![];}return('appcode'in _0x4eb9b4||'app'in _0x4eb9b4)&&(delete _0x4eb9b4[_0x3f0239(0xe3)],delete _0x4eb9b4[_0x3f0239(0xdd)],_0x18610a=!![]),{'config':_0x4eb9b4,'migrated':_0x18610a};}function writeNormalizedConfigIfNeeded(_0x1da4df,_0x343e83){const _0x4cfa6a=a215_0x10f6e2,_0x224a6a=JSON[_0x4cfa6a(0xe4)](_0x343e83,null,0x2)+'\x0a';if(normalizedWriteCache[_0x4cfa6a(0xe0)](_0x1da4df)===_0x224a6a)return;writeConfigFile(_0x1da4df,_0x343e83),normalizedWriteCache[_0x4cfa6a(0xde)](_0x1da4df,_0x224a6a);}function parseAndNormalizeConfig(_0x51339f,_0x1c6509,_0x151f4c){const _0x53a134=a215_0x10f6e2,_0x1b81db=parseCliConfigJsonFile(_0x51339f,_0x1c6509,_0x151f4c),_0x5a12e7=normalizeLegacyConfigShape(_0x1b81db);if(_0x5a12e7[_0x53a134(0xce)])try{writeNormalizedConfigIfNeeded(_0x51339f,_0x5a12e7['config']);}catch{}return _0x5a12e7[_0x53a134(0xdc)];}export function loadRawConfigLayers(_0x138266){const _0x4d602a=a215_0x10f6e2;let _0x5f3fb4={},_0x45957f={};const _0x78bb1c=resolveConfigPath(homedir());_0x78bb1c&&(_0x5f3fb4=parseAndNormalizeConfig(_0x78bb1c,_0x4d602a(0xf4),_0x4d602a(0xd7)));const _0x3ad69d=_0x138266??findProjectRootDirectory(),_0xe487fa=resolveConfigPath(_0x3ad69d);return _0xe487fa&&(_0x45957f=parseAndNormalizeConfig(_0xe487fa,_0x4d602a(0xf4),_0x4d602a(0xf2))),{'globalPath':_0x78bb1c,'projectPath':_0xe487fa,'globalConfig':_0x5f3fb4,'projectConfig':_0x45957f};}const INHERIT_WHITELIST=['cookie','accessKey','locale',a215_0x10f6e2(0xef),a215_0x10f6e2(0xcb),a215_0x10f6e2(0xcd)];export function mergeRawConfigLayers(_0x456d09){const _0x346f70=a215_0x10f6e2,{globalConfig:_0x51563c,projectConfig:_0x12a7d7}=_0x456d09,_0x150ed7=Object['keys'](_0x12a7d7)[_0x346f70(0xfb)]>0x0;if(!_0x150ed7)return mergeGlobalOnly(_0x51563c);if(_0x12a7d7['inherit']===!![])return mergeFullInherit(_0x51563c,_0x12a7d7);if(_0x12a7d7['inherit']===![])return mergeIsolated(_0x12a7d7);return mergeProjectFirst(_0x51563c,_0x12a7d7);}function mergeGlobalOnly(_0x4d5aad){const _0x574fa4=a215_0x10f6e2,_0x159854={..._0x4d5aad},_0xf02769=_0x4d5aad['apps']&&typeof _0x4d5aad[_0x574fa4(0xc9)]===_0x574fa4(0xf6)?_0x4d5aad[_0x574fa4(0xc9)]:{};if(Object[_0x574fa4(0xea)](_0xf02769)[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xc9)]=_0xf02769;if(_0x4d5aad['defaultApp'])_0x159854[_0x574fa4(0xd4)]=_0x4d5aad[_0x574fa4(0xd4)];else{const _0x2b5a05=Object[_0x574fa4(0xea)](_0xf02769);if(_0x2b5a05[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xd4)]=_0x2b5a05[0x0];}return _0x159854;}function mergeIsolated(_0x3eac2c){const _0xcc1e56=a215_0x10f6e2,_0xd63d4b={..._0x3eac2c};delete _0xd63d4b[_0xcc1e56(0xd0)];const _0x3622a4=_0x3eac2c['apps']&&typeof _0x3eac2c[_0xcc1e56(0xc9)]===_0xcc1e56(0xf6)?_0x3eac2c[_0xcc1e56(0xc9)]:{};Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xc9)]=_0x3622a4:delete _0xd63d4b['apps'];if(_0xcc1e56(0xd4)in _0x3eac2c)_0xd63d4b[_0xcc1e56(0xd4)]=_0x3eac2c['defaultApp'];else Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xd4)]=Object[_0xcc1e56(0xea)](_0x3622a4)[0x0]:delete _0xd63d4b['defaultApp'];return _0xd63d4b;}function mergeProjectFirst(_0x52399b,_0x4169ba){const _0x3ed900=a215_0x10f6e2,_0x38b158={..._0x4169ba};delete _0x38b158[_0x3ed900(0xd0)];for(const _0x354d5f of INHERIT_WHITELIST){!(_0x354d5f in _0x38b158)&&_0x354d5f in _0x52399b&&(_0x38b158[_0x354d5f]=_0x52399b[_0x354d5f]);}const _0x60363b=_0x4169ba[_0x3ed900(0xc9)]&&typeof _0x4169ba[_0x3ed900(0xc9)]==='object'?_0x4169ba[_0x3ed900(0xc9)]:{};Object['keys'](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xc9)]=_0x60363b:delete _0x38b158[_0x3ed900(0xc9)];if(_0x3ed900(0xd4)in _0x4169ba)_0x38b158[_0x3ed900(0xd4)]=_0x4169ba[_0x3ed900(0xd4)];else Object[_0x3ed900(0xea)](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xd4)]=Object[_0x3ed900(0xea)](_0x60363b)[0x0]:delete _0x38b158[_0x3ed900(0xd4)];return _0x38b158;}function mergeFullInherit(_0x1f8196,_0x50c414){const _0xc4f75e=a215_0x10f6e2,_0x118497=_0x1f8196[_0xc4f75e(0xc9)]&&typeof _0x1f8196[_0xc4f75e(0xc9)]==='object'?_0x1f8196['apps']:{},_0x2f429d=_0x50c414[_0xc4f75e(0xc9)]&&typeof _0x50c414['apps']===_0xc4f75e(0xf6)?_0x50c414[_0xc4f75e(0xc9)]:{},_0x29875c={..._0x118497,..._0x2f429d},_0x136848={..._0x1f8196,..._0x50c414};delete _0x136848[_0xc4f75e(0xd0)];if(Object[_0xc4f75e(0xea)](_0x29875c)[_0xc4f75e(0xfb)]>0x0)_0x136848['apps']=_0x29875c;if(_0xc4f75e(0xd4)in _0x50c414)_0x136848[_0xc4f75e(0xd4)]=_0x50c414['defaultApp'];else{if(Object[_0xc4f75e(0xea)](_0x2f429d)['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=Object[_0xc4f75e(0xea)](_0x2f429d)[0x0];else{if(_0x1f8196[_0xc4f75e(0xd4)])_0x136848[_0xc4f75e(0xd4)]=_0x1f8196[_0xc4f75e(0xd4)];else{const _0x7fe3ac=Object[_0xc4f75e(0xea)](_0x118497);if(_0x7fe3ac['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=_0x7fe3ac[0x0];}}}return _0x136848;}export function readRawConfigWithLayers(_0x140e82){const _0x424f9c=loadRawConfigLayers(_0x140e82);return{'config':mergeRawConfigLayers(_0x424f9c),'layers':_0x424f9c};}export function readRawConfig(_0x46e8a8){return mergeRawConfigLayers(loadRawConfigLayers(_0x46e8a8));}export function readConfigFile(_0x4fd43f){const _0x340bb4=a215_0x10f6e2;return parseAndNormalizeConfig(_0x4fd43f,_0x340bb4(0xd1));}export function writeConfigFile(_0x5b9a16,_0x4f8000){const _0x5a5037=a215_0x10f6e2,_0xb770c2=dirname(_0x5b9a16);!existsSync(_0xb770c2)&&mkdirSync(_0xb770c2,{'recursive':!![]});const _0x11cf62=_0x5b9a16+_0x5a5037(0xf1);try{writeFileSync(_0x11cf62,JSON[_0x5a5037(0xe4)](_0x4f8000,null,0x2)+'\x0a',{'encoding':_0x5a5037(0xcc),'mode':0x180}),renameSync(_0x11cf62,_0x5b9a16);}catch(_0x4f96a8){try{unlinkSync(_0x11cf62);}catch{}throw _0x4f96a8;}}export function resolveWriteConfigPath(_0x1ba96a){const _0x5b2de5=a215_0x10f6e2,_0x432631=_0x1ba96a===_0x5b2de5(0xee)?process[_0x5b2de5(0xe7)]():homedir(),_0x1c1da0=resolveConfigPath(_0x432631);return _0x1c1da0??resolve(_0x432631,NEW_CONFIG_NAME);}
|
|
1
|
+
const a223_0x1aba26=a223_0x254e;(function(_0x1ac360,_0x3efb9c){const _0x11c6bd=a223_0x254e,_0x341cb2=_0x1ac360();while(!![]){try{const _0x337137=parseInt(_0x11c6bd(0xbb))/0x1+parseInt(_0x11c6bd(0xcf))/0x2*(parseInt(_0x11c6bd(0xe3))/0x3)+parseInt(_0x11c6bd(0xe4))/0x4*(-parseInt(_0x11c6bd(0xde))/0x5)+parseInt(_0x11c6bd(0xd4))/0x6*(parseInt(_0x11c6bd(0xbe))/0x7)+parseInt(_0x11c6bd(0xe9))/0x8+-parseInt(_0x11c6bd(0xcb))/0x9*(-parseInt(_0x11c6bd(0xc2))/0xa)+parseInt(_0x11c6bd(0xcc))/0xb*(-parseInt(_0x11c6bd(0xbc))/0xc);if(_0x337137===_0x3efb9c)break;else _0x341cb2['push'](_0x341cb2['shift']());}catch(_0x170808){_0x341cb2['push'](_0x341cb2['shift']());}}}(a223_0x2df6,0x46b38));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';function a223_0x254e(_0x491080,_0x3bb97b){_0x491080=_0x491080-0xb6;const _0x2df67f=a223_0x2df6();let _0x254e73=_0x2df67f[_0x491080];return _0x254e73;}import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a223_0x1aba26(0xe2);export const CONFIG_NAMES=[a223_0x1aba26(0xe2),a223_0x1aba26(0xe5),a223_0x1aba26(0xbf)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a223_0x1aba26(0xb6)](_0x58f189=>_0x58f189!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x57e614){for(const _0xc6d0a6 of CONFIG_NAMES){const _0x9bb9d4=resolve(_0x57e614,_0xc6d0a6);if(existsSync(_0x9bb9d4))return _0x9bb9d4;}return undefined;}export function findProjectRootDirectory(_0x40d132=process[a223_0x1aba26(0xdc)]()){let _0x955b55=resolve(_0x40d132);const {root:_0x25b5e9}=parse(_0x955b55),_0x117919=homedir();while(!![]){if(resolveConfigPath(_0x955b55)){if(_0x955b55===_0x117919)break;return _0x955b55;}if(_0x955b55===_0x25b5e9||_0x955b55===_0x117919)break;const _0x1ae6e8=dirname(_0x955b55);if(_0x1ae6e8===_0x955b55)break;_0x955b55=_0x1ae6e8;}return resolve(_0x40d132);}export function getProjectConfigPath(){const _0x5b6709=a223_0x1aba26;return resolveConfigPath(process[_0x5b6709(0xdc)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0xf05245){const _0x2a3065=a223_0x1aba26;if(!existsSync(_0xf05245))return{'status':_0x2a3065(0xdb)};try{const _0x686051=readFileSync(_0xf05245,{'encoding':'utf8'});if(!_0x686051?.[_0x2a3065(0xd3)]())return{'status':'empty'};const _0x3870d8=JSON['parse'](_0x686051);return{'status':'ok','data':_0x3870d8};}catch(_0x274982){return{'status':_0x2a3065(0xc3),'message':_0x274982 instanceof Error?_0x274982[_0x2a3065(0xe8)]:String(_0x274982)};}}function parseCliConfigJsonFile(_0x5367de,_0x71d511,_0x3f1c01){const _0x5170cc=a223_0x1aba26,_0x1c2ebd=inspectCliConfigJsonFile(_0x5367de);if(_0x1c2ebd[_0x5170cc(0xdd)]===_0x5170cc(0xdb)||_0x1c2ebd[_0x5170cc(0xdd)]===_0x5170cc(0xba))return{};if(_0x1c2ebd[_0x5170cc(0xdd)]==='ok')return _0x1c2ebd['data'];return _0x71d511===_0x5170cc(0xc6)&&_0x3f1c01&&console[_0x5170cc(0xc3)](CLI_BIN_NAME+':\x20'+_0x3f1c01+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x5367de+_0x5170cc(0xd6)+_0x1c2ebd['message']),{};}function normalizeLegacyConfigShape(_0x4b51fb){const _0x2320ba=a223_0x1aba26;if(!_0x4b51fb||typeof _0x4b51fb!==_0x2320ba(0xd9))return{'config':{},'migrated':![]};const _0x18c110={..._0x4b51fb},_0x25a03a=_0x18c110['apps']&&typeof _0x18c110[_0x2320ba(0xb8)]===_0x2320ba(0xd9)?{..._0x18c110[_0x2320ba(0xb8)]}:{},_0x25d37b=Object[_0x2320ba(0xb7)](_0x25a03a)[_0x2320ba(0xd2)],_0x31dc43=_0x18c110['appcode']||_0x18c110[_0x2320ba(0xc4)];let _0x11ebc8=![];if(_0x31dc43&&_0x25d37b===0x0){const _0xa8dcda=typeof _0x18c110['defaultApp']===_0x2320ba(0xd5)&&_0x18c110[_0x2320ba(0xe0)][_0x2320ba(0xd3)]()?_0x18c110[_0x2320ba(0xe0)]:String(_0x31dc43)['trim']();_0x25a03a[_0xa8dcda]={'appcode':String(_0x31dc43)[_0x2320ba(0xd3)](),..._0x18c110[_0x2320ba(0xe7)]!=null?{'env':_0x18c110[_0x2320ba(0xe7)]}:{},..._0x18c110['apiDir']!=null?{'apiDir':_0x18c110['apiDir']}:{},..._0x18c110[_0x2320ba(0xd7)]!=null?{'cookie':_0x18c110[_0x2320ba(0xd7)]}:{},..._0x18c110[_0x2320ba(0xca)]!=null?{'accessKey':_0x18c110['accessKey']}:{},..._0x18c110['format']!=null?{'format':_0x18c110[_0x2320ba(0xd1)]}:{},..._0x18c110[_0x2320ba(0xcd)]!=null?{'pageSize':_0x18c110['pageSize']}:{},..._0x18c110[_0x2320ba(0xce)]!=null?{'riskLevel':_0x18c110[_0x2320ba(0xce)]}:{},..._0x18c110[_0x2320ba(0xc5)]!=null?{'locale':_0x18c110[_0x2320ba(0xc5)]}:{}},_0x18c110[_0x2320ba(0xb8)]=_0x25a03a;if(!_0x18c110[_0x2320ba(0xe0)])_0x18c110[_0x2320ba(0xe0)]=_0xa8dcda;_0x11ebc8=!![];}return(_0x2320ba(0xc9)in _0x18c110||_0x2320ba(0xc4)in _0x18c110)&&(delete _0x18c110[_0x2320ba(0xc9)],delete _0x18c110[_0x2320ba(0xc4)],_0x11ebc8=!![]),{'config':_0x18c110,'migrated':_0x11ebc8};}function writeNormalizedConfigIfNeeded(_0x201ddb,_0x346e90){const _0x2f439f=a223_0x1aba26,_0x37db04=JSON[_0x2f439f(0xb9)](_0x346e90,null,0x2)+'\x0a';if(normalizedWriteCache[_0x2f439f(0xd8)](_0x201ddb)===_0x37db04)return;writeConfigFile(_0x201ddb,_0x346e90),normalizedWriteCache[_0x2f439f(0xe1)](_0x201ddb,_0x37db04);}function parseAndNormalizeConfig(_0x3168d3,_0x4e6427,_0x4c66d4){const _0x52ac98=a223_0x1aba26,_0x32559d=parseCliConfigJsonFile(_0x3168d3,_0x4e6427,_0x4c66d4),_0x1eba7c=normalizeLegacyConfigShape(_0x32559d);if(_0x1eba7c[_0x52ac98(0xc8)])try{writeNormalizedConfigIfNeeded(_0x3168d3,_0x1eba7c['config']);}catch{}return _0x1eba7c[_0x52ac98(0xc0)];}export function loadRawConfigLayers(_0x2c3c1e){const _0x42b1f4=a223_0x1aba26;let _0x3a4e41={},_0xc71537={};const _0x351bc9=resolveConfigPath(homedir());_0x351bc9&&(_0x3a4e41=parseAndNormalizeConfig(_0x351bc9,'warn',_0x42b1f4(0xd0)));const _0x15e89f=_0x2c3c1e??findProjectRootDirectory(),_0x1b81a1=resolveConfigPath(_0x15e89f);return _0x1b81a1&&(_0xc71537=parseAndNormalizeConfig(_0x1b81a1,_0x42b1f4(0xc6),_0x42b1f4(0xda))),{'globalPath':_0x351bc9,'projectPath':_0x1b81a1,'globalConfig':_0x3a4e41,'projectConfig':_0xc71537};}function a223_0x2df6(){const _0x50c200=['set','.rabetbase.json','57tVvagR','82864YPovLs','.lovrabet.json','.tmp','env','message','3741312AcwgPF','filter','keys','apps','stringify','empty','105848sMWFIU','5820lPHieP','silent','60844jwWWjH','.lovrabetrc','config','utf8','40dJPQUD','error','app','locale','warn','inherit','migrated','appcode','accessKey','308331CqexMo','15389FtKVFl','pageSize','riskLevel','59394wslzNJ','Global','format','length','trim','60kRGVWc','string','\x0a\x20\x20','cookie','get','object','Project','missing','cwd','status','95OFPLqb','project','defaultApp'];a223_0x2df6=function(){return _0x50c200;};return a223_0x2df6();}const INHERIT_WHITELIST=['cookie',a223_0x1aba26(0xca),a223_0x1aba26(0xc5),'format',a223_0x1aba26(0xce),a223_0x1aba26(0xcd)];export function mergeRawConfigLayers(_0x3e7b4f){const _0x4c41dd=a223_0x1aba26,{globalConfig:_0x4d77de,projectConfig:_0x5b4aea}=_0x3e7b4f,_0x35ca4c=Object['keys'](_0x5b4aea)[_0x4c41dd(0xd2)]>0x0;if(!_0x35ca4c)return mergeGlobalOnly(_0x4d77de);if(_0x5b4aea[_0x4c41dd(0xc7)]===!![])return mergeFullInherit(_0x4d77de,_0x5b4aea);if(_0x5b4aea[_0x4c41dd(0xc7)]===![])return mergeIsolated(_0x5b4aea);return mergeProjectFirst(_0x4d77de,_0x5b4aea);}function mergeGlobalOnly(_0x219a5a){const _0x1f5307=a223_0x1aba26,_0x469855={..._0x219a5a},_0x2b94f6=_0x219a5a['apps']&&typeof _0x219a5a[_0x1f5307(0xb8)]===_0x1f5307(0xd9)?_0x219a5a[_0x1f5307(0xb8)]:{};if(Object['keys'](_0x2b94f6)[_0x1f5307(0xd2)]>0x0)_0x469855[_0x1f5307(0xb8)]=_0x2b94f6;if(_0x219a5a[_0x1f5307(0xe0)])_0x469855[_0x1f5307(0xe0)]=_0x219a5a[_0x1f5307(0xe0)];else{const _0x2c8873=Object[_0x1f5307(0xb7)](_0x2b94f6);if(_0x2c8873[_0x1f5307(0xd2)]>0x0)_0x469855['defaultApp']=_0x2c8873[0x0];}return _0x469855;}function mergeIsolated(_0x581367){const _0x183770=a223_0x1aba26,_0x178080={..._0x581367};delete _0x178080[_0x183770(0xc7)];const _0x5d1924=_0x581367[_0x183770(0xb8)]&&typeof _0x581367[_0x183770(0xb8)]==='object'?_0x581367[_0x183770(0xb8)]:{};Object['keys'](_0x5d1924)[_0x183770(0xd2)]>0x0?_0x178080['apps']=_0x5d1924:delete _0x178080[_0x183770(0xb8)];if(_0x183770(0xe0)in _0x581367)_0x178080[_0x183770(0xe0)]=_0x581367[_0x183770(0xe0)];else Object[_0x183770(0xb7)](_0x5d1924)[_0x183770(0xd2)]>0x0?_0x178080[_0x183770(0xe0)]=Object['keys'](_0x5d1924)[0x0]:delete _0x178080[_0x183770(0xe0)];return _0x178080;}function mergeProjectFirst(_0x3248c0,_0x4716c5){const _0x574f81=a223_0x1aba26,_0x1a314c={..._0x4716c5};delete _0x1a314c[_0x574f81(0xc7)];for(const _0x41d43f of INHERIT_WHITELIST){!(_0x41d43f in _0x1a314c)&&_0x41d43f in _0x3248c0&&(_0x1a314c[_0x41d43f]=_0x3248c0[_0x41d43f]);}const _0x578107=_0x4716c5['apps']&&typeof _0x4716c5[_0x574f81(0xb8)]===_0x574f81(0xd9)?_0x4716c5[_0x574f81(0xb8)]:{};Object[_0x574f81(0xb7)](_0x578107)[_0x574f81(0xd2)]>0x0?_0x1a314c['apps']=_0x578107:delete _0x1a314c[_0x574f81(0xb8)];if(_0x574f81(0xe0)in _0x4716c5)_0x1a314c['defaultApp']=_0x4716c5[_0x574f81(0xe0)];else Object[_0x574f81(0xb7)](_0x578107)[_0x574f81(0xd2)]>0x0?_0x1a314c[_0x574f81(0xe0)]=Object['keys'](_0x578107)[0x0]:delete _0x1a314c[_0x574f81(0xe0)];return _0x1a314c;}function mergeFullInherit(_0x21c12f,_0x123572){const _0xd8e3ad=a223_0x1aba26,_0x3a5178=_0x21c12f['apps']&&typeof _0x21c12f['apps']===_0xd8e3ad(0xd9)?_0x21c12f['apps']:{},_0x19be47=_0x123572[_0xd8e3ad(0xb8)]&&typeof _0x123572[_0xd8e3ad(0xb8)]===_0xd8e3ad(0xd9)?_0x123572[_0xd8e3ad(0xb8)]:{},_0x26775f={..._0x3a5178,..._0x19be47},_0x41d983={..._0x21c12f,..._0x123572};delete _0x41d983[_0xd8e3ad(0xc7)];if(Object[_0xd8e3ad(0xb7)](_0x26775f)['length']>0x0)_0x41d983[_0xd8e3ad(0xb8)]=_0x26775f;if(_0xd8e3ad(0xe0)in _0x123572)_0x41d983[_0xd8e3ad(0xe0)]=_0x123572['defaultApp'];else{if(Object[_0xd8e3ad(0xb7)](_0x19be47)['length']>0x0)_0x41d983[_0xd8e3ad(0xe0)]=Object['keys'](_0x19be47)[0x0];else{if(_0x21c12f[_0xd8e3ad(0xe0)])_0x41d983['defaultApp']=_0x21c12f[_0xd8e3ad(0xe0)];else{const _0x3692d7=Object[_0xd8e3ad(0xb7)](_0x3a5178);if(_0x3692d7['length']>0x0)_0x41d983['defaultApp']=_0x3692d7[0x0];}}}return _0x41d983;}export function readRawConfigWithLayers(_0x1b3664){const _0x1738c9=loadRawConfigLayers(_0x1b3664);return{'config':mergeRawConfigLayers(_0x1738c9),'layers':_0x1738c9};}export function readRawConfig(_0x7b3ac2){return mergeRawConfigLayers(loadRawConfigLayers(_0x7b3ac2));}export function readConfigFile(_0x10e2d2){const _0x59ae9d=a223_0x1aba26;return parseAndNormalizeConfig(_0x10e2d2,_0x59ae9d(0xbd));}export function writeConfigFile(_0xafacc0,_0x38670b){const _0x19ddc1=a223_0x1aba26,_0x4ddbcd=dirname(_0xafacc0);!existsSync(_0x4ddbcd)&&mkdirSync(_0x4ddbcd,{'recursive':!![]});const _0x5f3aa7=_0xafacc0+_0x19ddc1(0xe6);try{writeFileSync(_0x5f3aa7,JSON['stringify'](_0x38670b,null,0x2)+'\x0a',{'encoding':_0x19ddc1(0xc1),'mode':0x180}),renameSync(_0x5f3aa7,_0xafacc0);}catch(_0x4be7d5){try{unlinkSync(_0x5f3aa7);}catch{}throw _0x4be7d5;}}export function resolveWriteConfigPath(_0x15b836){const _0x36bb65=a223_0x1aba26,_0x2c876b=_0x15b836===_0x36bb65(0xdf)?process[_0x36bb65(0xdc)]():homedir(),_0x5dcecd=resolveConfigPath(_0x2c876b);return _0x5dcecd??resolve(_0x2c876b,NEW_CONFIG_NAME);}
|
package/lib/context.d.ts
CHANGED
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x39935e=a224_0x578d;(function(_0x583967,_0x3dbdb3){const _0x5ce1f8=a224_0x578d,_0x2ad14c=_0x583967();while(!![]){try{const _0x3dddcc=-parseInt(_0x5ce1f8(0xd6))/0x1*(-parseInt(_0x5ce1f8(0xca))/0x2)+-parseInt(_0x5ce1f8(0xd5))/0x3+-parseInt(_0x5ce1f8(0xc0))/0x4*(-parseInt(_0x5ce1f8(0xb9))/0x5)+-parseInt(_0x5ce1f8(0xbd))/0x6+-parseInt(_0x5ce1f8(0xc2))/0x7*(parseInt(_0x5ce1f8(0xad))/0x8)+parseInt(_0x5ce1f8(0xc9))/0x9+parseInt(_0x5ce1f8(0xae))/0xa*(parseInt(_0x5ce1f8(0xb1))/0xb);if(_0x3dddcc===_0x3dbdb3)break;else _0x2ad14c['push'](_0x2ad14c['shift']());}catch(_0x27126e){_0x2ad14c['push'](_0x2ad14c['shift']());}}}(a224_0x6549,0x31518));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x32d513){return process.env[`RABETBASE_${_0x32d513}`]||process.env[`LOVRABET_${_0x32d513}`]||undefined;}function optionalString(_0x4fa555){const _0x5d5741=a224_0x578d;return typeof _0x4fa555===_0x5d5741(0xc3)&&_0x4fa555['trim']()?_0x4fa555[_0x5d5741(0xbe)]():undefined;}export async function createContext(_0x2b5a43){const _0x3109c7=a224_0x578d,{config:_0x12c7e1,layers:_0x34ef2c}=readRawConfigWithLayers(),_0x29a18e=buildConfig(_0x12c7e1,_0x2b5a43,_0x34ef2c);await initGlobalEnvironment(_0x29a18e);const {getUserDomain:_0x1fb0ec,getApiDomain:_0x5c283b}=await import('./constant/domain.js'),_0x132a1f={'apiDomain':_0x5c283b(),'userDomain':_0x1fb0ec()},_0x4997e3=await buildAuth(_0x29a18e);logger['setLogPath'](process[_0x3109c7(0xbf)]());const _0x25e8ae=(CLI_BIN_NAME+'\x20'+process[_0x3109c7(0xc4)][_0x3109c7(0xac)](0x2)[_0x3109c7(0xb3)]('\x20'))['trim']();logger[_0x3109c7(0xb6)](_0x25e8ae);const {isNonInteractive:_0x1f8e09}=await import(_0x3109c7(0xb4)),_0x5ec2a0=_0x1f8e09(_0x2b5a43);return{'config':_0x29a18e,'auth':_0x4997e3,'logger':logger,'env':_0x132a1f,'nonInteractive':_0x5ec2a0};}export function buildConfigFromFlags(_0x414818){const {config:_0x5720cb,layers:_0x24a920}=readRawConfigWithLayers();return buildConfig(_0x5720cb,_0x414818,_0x24a920);}export async function initGlobalEnvironment(_0x8051eb){const _0x2ae663=a224_0x578d,{initEnv:_0x220760}=await import(_0x2ae663(0xba));_0x220760(_0x8051eb[_0x2ae663(0xcd)]);const {initDomains:_0x25d401}=await import(_0x2ae663(0xce));_0x25d401({'apiDomain':optionalString(_0x8051eb[_0x2ae663(0xc8)]?.['apiDomain']),'userDomain':optionalString(_0x8051eb[_0x2ae663(0xc8)]?.[_0x2ae663(0xd3)]),'runtimeDomain':optionalString(_0x8051eb[_0x2ae663(0xc8)]?.['runtimeDomain'])});}export function getConfigAppCode(_0x135e99){const _0x3c3f3c=a224_0x578d,_0x2cbe23=readRawConfig(_0x135e99);if(_0x2cbe23[_0x3c3f3c(0xcb)]&&typeof _0x2cbe23['apps']===_0x3c3f3c(0xb7)){const _0x3ac57a=_0x2cbe23['defaultApp'];if(_0x3ac57a&&_0x2cbe23[_0x3c3f3c(0xcb)][_0x3ac57a]?.[_0x3c3f3c(0xb0)])return String(_0x2cbe23[_0x3c3f3c(0xcb)][_0x3ac57a][_0x3c3f3c(0xb0)])[_0x3c3f3c(0xbe)]();const _0xdb4cc4=Object[_0x3c3f3c(0xc7)](_0x2cbe23['apps'])[0x0];if(_0xdb4cc4?.[_0x3c3f3c(0xb0)])return String(_0xdb4cc4[_0x3c3f3c(0xb0)])[_0x3c3f3c(0xbe)]();}const _0xb23cbc=_0x2cbe23[_0x3c3f3c(0xb0)]||_0x2cbe23[_0x3c3f3c(0xcf)];if(typeof _0xb23cbc!==_0x3c3f3c(0xc3)||_0xb23cbc['trim']()==='')return undefined;return _0xb23cbc['trim']();}export function getMultiAppConfigs(_0x80b404=a224_0x39935e(0xab),_0x3a1d75){const _0x1a41e7=a224_0x39935e,_0x39dfb3=loadRawConfigLayers(_0x3a1d75);let _0x51a590,_0x10e626;if(_0x80b404==='merged'){const _0xf2d1f9=_0x39dfb3['globalConfig'][_0x1a41e7(0xcb)]&&typeof _0x39dfb3[_0x1a41e7(0xc5)][_0x1a41e7(0xcb)]===_0x1a41e7(0xb7)?_0x39dfb3[_0x1a41e7(0xc5)][_0x1a41e7(0xcb)]:{},_0x7ad567=_0x39dfb3[_0x1a41e7(0xb2)][_0x1a41e7(0xcb)]&&typeof _0x39dfb3[_0x1a41e7(0xb2)][_0x1a41e7(0xcb)]===_0x1a41e7(0xb7)?_0x39dfb3['projectConfig']['apps']:{};_0x51a590={..._0xf2d1f9,..._0x7ad567};const _0x5355c4=readRawConfig(_0x3a1d75);_0x10e626=_0x5355c4[_0x1a41e7(0xc1)];}else _0x51a590=_0x39dfb3[_0x1a41e7(0xb2)][_0x1a41e7(0xcb)],_0x10e626=_0x39dfb3[_0x1a41e7(0xb2)]['defaultApp'];if(!_0x51a590||typeof _0x51a590!==_0x1a41e7(0xb7)||Object[_0x1a41e7(0xd4)](_0x51a590)[_0x1a41e7(0xd2)]===0x0)return null;return Object[_0x1a41e7(0xb5)](_0x51a590)[_0x1a41e7(0xbc)](([_0x457458,_0x185fc2])=>({'name':_0x457458,'appcode':_0x185fc2?.[_0x1a41e7(0xb0)]||'','isDefault':_0x457458===_0x10e626,'env':_0x185fc2?.[_0x1a41e7(0xcd)],'apiDir':_0x185fc2?.['apiDir'],'cookie':_0x185fc2?.[_0x1a41e7(0xd1)]||undefined}))[_0x1a41e7(0xaf)](_0xb9e843=>_0xb9e843[_0x1a41e7(0xb0)]);}export function getTemplateBaseUrl(_0x3f5a31){const _0x228304=a224_0x39935e,_0x451023=readRawConfig(_0x3f5a31);if(_0x451023[_0x228304(0xd0)]&&typeof _0x451023[_0x228304(0xd0)]==='string')return _0x451023[_0x228304(0xd0)][_0x228304(0xc6)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function a224_0x578d(_0x6d053c,_0x8639a5){_0x6d053c=_0x6d053c-0xab;const _0x654975=a224_0x6549();let _0x578d7c=_0x654975[_0x6d053c];return _0x578d7c;}function buildConfig(_0x1803fb,_0x20738e,_0x5a6846){return{...resolveAppConfig({'raw':_0x1803fb,'flags':_0x20738e,'layers':_0x5a6846,'readEnv':env}),'raw':_0x1803fb};}function a224_0x6549(){const _0x3fb4=['defaultApp','7fMmdYI','string','argv','globalConfig','replace','values','raw','107937MdEutR','4ozdAYV','apps','apiDir','env','./constant/domain.js','app','template_base_url','cookie','length','userDomain','keys','262548LnLDZj','74058uBmCsk','project','slice','2925880huRmnz','2060QpaOSG','filter','appcode','36333THVlcC','projectConfig','join','./utils/is-non-interactive.js','entries','setRawCommand','object','api.ts','233405AkyvDg','./constant/env.js','find','map','1391694tQHuqe','trim','cwd','4JmbHEZ'];a224_0x6549=function(){return _0x3fb4;};return a224_0x6549();}export function resolveApiFilePath(_0x210333,_0x19cb4f){const _0x467518=a224_0x39935e,_0x114116=resolve(process[_0x467518(0xbf)](),_0x210333),_0x25a536=resolve(_0x114116,_0x467518(0xb8));if(!_0x19cb4f)return _0x25a536;const _0x3acd94=readRawConfig(),_0x242a70=_0x3acd94['apps']&&typeof _0x3acd94[_0x467518(0xcb)]===_0x467518(0xb7)?_0x3acd94[_0x467518(0xcb)]:{},_0x34a94e=Object[_0x467518(0xb5)](_0x242a70)[_0x467518(0xbb)](([,_0x1afa81])=>_0x1afa81?.[_0x467518(0xb0)]===_0x19cb4f);if(!_0x34a94e)return _0x25a536;const [_0x3adb51,_0x2a83a9]=_0x34a94e,_0x392a3d=typeof _0x3acd94['defaultApp']===_0x467518(0xc3)?_0x3acd94[_0x467518(0xc1)]:undefined;if(_0x2a83a9?.[_0x467518(0xcc)])return _0x25a536;if(_0x392a3d&&_0x3adb51!==_0x392a3d)return resolve(_0x114116,_0x3adb51+'-api.ts');return _0x25a536;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x231c9b,_0x22e433){const _0xa30536=a225_0x556d,_0x292df1=_0x231c9b();while(!![]){try{const _0x460c72=-parseInt(_0xa30536(0xa4))/0x1+-parseInt(_0xa30536(0xa0))/0x2+-parseInt(_0xa30536(0x98))/0x3+-parseInt(_0xa30536(0x9d))/0x4*(-parseInt(_0xa30536(0x96))/0x5)+-parseInt(_0xa30536(0x9c))/0x6+parseInt(_0xa30536(0xa2))/0x7*(-parseInt(_0xa30536(0x99))/0x8)+-parseInt(_0xa30536(0xa1))/0x9*(-parseInt(_0xa30536(0x9a))/0xa);if(_0x460c72===_0x22e433)break;else _0x292df1['push'](_0x292df1['shift']());}catch(_0x2874ce){_0x292df1['push'](_0x292df1['shift']());}}}(a225_0x2a3f,0x42f64));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x14f864){const _0x44f740=a225_0x556d,_0x58bc2e=[],_0x161a96=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x5b70d0;while((_0x5b70d0=_0x161a96[_0x44f740(0x9e)](_0x14f864))!==null){_0x58bc2e['push']({'datasetCode':_0x5b70d0[0x1],'tableName':_0x5b70d0[0x2],'name':_0x5b70d0[0x3],'alias':_0x5b70d0[0x4]});}return _0x58bc2e;}function a225_0x2a3f(){const _0x53dec9=['datasetCode','utf-8','1278070WVbuWo','get','937443qXZysG','120968AYxfNm','65030ENWejw','cwd','1668204cDGZbq','4LZOsuS','exec','alias','368216JZuiKl','1998hrlPrA','189ZCkdYo','set','242114NwRxFJ','api.ts'];a225_0x2a3f=function(){return _0x53dec9;};return a225_0x2a3f();}function a225_0x556d(_0x5a8864,_0x164f76){_0x5a8864=_0x5a8864-0x96;const _0x2a3f2b=a225_0x2a3f();let _0x556d45=_0x2a3f2b[_0x5a8864];return _0x556d45;}export function loadAliasMap(_0x31176d,_0x3856c1,_0x5dd3e1){const _0x15d093=a225_0x556d,_0x228770=_0x5dd3e1??resolve(process[_0x15d093(0x9b)](),_0x31176d,_0x15d093(0xa5));if(cache['has'](_0x228770))return cache[_0x15d093(0x97)](_0x228770);if(!existsSync(_0x228770))return cache[_0x15d093(0xa3)](_0x228770,[]),[];try{const _0x5af7bf=readFileSync(_0x228770,_0x15d093(0xa7)),_0x5f1a76=parseApiFile(_0x5af7bf);return cache[_0x15d093(0xa3)](_0x228770,_0x5f1a76),_0x5f1a76;}catch{return cache['set'](_0x228770,[]),[];}}export function resolveAlias(_0x4b2068,_0x49acb9,_0x2ba863,_0x1b0e93){const _0x48ef56=a225_0x556d;if(!_0x49acb9)return undefined;const _0x5c0e04=loadAliasMap(_0x4b2068,_0x2ba863,_0x1b0e93),_0x23a3db=_0x5c0e04['find'](_0x4ab15c=>_0x4ab15c[_0x48ef56(0x9f)]===_0x49acb9);return _0x23a3db?.[_0x48ef56(0xa6)];}export function listAliases(_0x3f3392,_0x1374b3,_0xfb631b){return loadAliasMap(_0x3f3392,_0x1374b3,_0xfb631b);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -848,6 +848,7 @@ export interface DbLinkInfo {
|
|
|
848
848
|
latestAnalysisStatus?: string | null;
|
|
849
849
|
latestAnalysisTraceId?: string;
|
|
850
850
|
latestAnalysisSuccessTime?: string;
|
|
851
|
+
tableCount?: number;
|
|
851
852
|
[key: string]: unknown;
|
|
852
853
|
}
|
|
853
854
|
export interface DbTableInfo {
|
|
@@ -867,11 +868,15 @@ export interface DbTableDiffInfo {
|
|
|
867
868
|
}
|
|
868
869
|
export interface DbTableDiffResult {
|
|
869
870
|
totalCount: number;
|
|
870
|
-
physicalTableCount
|
|
871
|
-
datasetTableCount
|
|
871
|
+
physicalTableCount?: number;
|
|
872
|
+
datasetTableCount?: number;
|
|
872
873
|
summary?: string;
|
|
873
874
|
tableList: DbTableDiffInfo[];
|
|
874
875
|
}
|
|
876
|
+
export interface DbTableDiffRefreshStartResult {
|
|
877
|
+
traceId: string;
|
|
878
|
+
status?: string;
|
|
879
|
+
}
|
|
875
880
|
export interface DbAnalysisStatus {
|
|
876
881
|
status?: string | null;
|
|
877
882
|
inputParams?: string | null;
|
|
@@ -898,6 +903,16 @@ export interface NotificationChannelConfigItem {
|
|
|
898
903
|
updateTime?: string | null;
|
|
899
904
|
[key: string]: unknown;
|
|
900
905
|
}
|
|
906
|
+
export interface NotificationChannelConfigMutationInput {
|
|
907
|
+
appCode: string;
|
|
908
|
+
configName: string;
|
|
909
|
+
channelType: NotificationChannelType;
|
|
910
|
+
endpointUrl?: string | null;
|
|
911
|
+
channelConfig?: string | null;
|
|
912
|
+
description?: string | null;
|
|
913
|
+
connectTimeout?: number | null;
|
|
914
|
+
readTimeout?: number | null;
|
|
915
|
+
}
|
|
901
916
|
/**
|
|
902
917
|
* GET /notification/channel-config/list:查询当前应用的应用级通知渠道配置。
|
|
903
918
|
*
|
|
@@ -905,6 +920,12 @@ export interface NotificationChannelConfigItem {
|
|
|
905
920
|
* 只输出 configCode 和用于人工选择的描述字段。
|
|
906
921
|
*/
|
|
907
922
|
export declare function listNotificationChannelConfigs(appCode: string, channelType: NotificationChannelType): Promise<NotificationChannelConfigItem[]>;
|
|
923
|
+
export declare function getNotificationChannelConfig(id: number, appCode: string): Promise<NotificationChannelConfigItem>;
|
|
924
|
+
export declare function createNotificationChannelConfig(input: NotificationChannelConfigMutationInput): Promise<number>;
|
|
925
|
+
export declare function updateNotificationChannelConfig(input: NotificationChannelConfigMutationInput & {
|
|
926
|
+
id: number;
|
|
927
|
+
}): Promise<void>;
|
|
928
|
+
export declare function deleteNotificationChannelConfig(id: number, appCode: string): Promise<void>;
|
|
908
929
|
export interface AppConfigItem {
|
|
909
930
|
id?: number;
|
|
910
931
|
appCode: string;
|
|
@@ -963,6 +984,12 @@ export declare function getDbTableDiff(appCode: string, dbLinkId: number, opts?:
|
|
|
963
984
|
pageSize?: number;
|
|
964
985
|
tableName?: string;
|
|
965
986
|
}): Promise<DbTableDiffResult>;
|
|
987
|
+
export declare function getDbLiveTableDiff(appCode: string, dbLinkId: number, opts?: {
|
|
988
|
+
pageIndex?: number;
|
|
989
|
+
pageSize?: number;
|
|
990
|
+
tableName?: string;
|
|
991
|
+
}): Promise<DbTableDiffResult>;
|
|
992
|
+
export declare function startDbTableDiffRefresh(appCode: string, dbLinkId: number): Promise<DbTableDiffRefreshStartResult>;
|
|
966
993
|
export interface RemoteApp {
|
|
967
994
|
id?: number | string;
|
|
968
995
|
appCode: string;
|