@lovrabet/rabetbase-cli 2.4.3 → 2.4.4
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 +16 -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 +14 -3
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x386770=a201_0x4fdf;function a201_0xed52(){const _0x55b930=['tableName','34121964SdAuTs','pkField','1152993IqtDPm','length','3822917MeVjhF','primary','toLowerCase','4952225TtwGkM','name','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','902hWkbof','1204KTuIhX','schema:','from','reason','--check-indexes\x20requires\x20--schemas.','index_type','trim','sqlType','index_name','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','flagMissing','validation','bool','index_columns','get','isSelectOnly','read','str','type','Provide\x20--file\x20or\x20--sql','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','map','valid','message','8FfVgtM','File\x20not\x20found:\x20','push','columns','sql','cwd','schemaWarnings','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','file','boolean','tables','filter','find','isArray','appCode','isDangerous','dbtableConfig','string','unshift','2088AcBrrV','indexName','check-indexes','Dataset\x20\x22','schemas','indexes','167580jVPmfX','dataset','6mQzTbv','fields','62523emBmoE','SQL\x20schema\x20validation','583pGwmpO','size'];a201_0xed52=function(){return _0x55b930;};return a201_0xed52();}(function(_0x27bf36,_0x429c01){const _0x17a263=a201_0x4fdf,_0x425247=_0x27bf36();while(!![]){try{const _0x17a191=parseInt(_0x17a263(0xe7))/0x1*(parseInt(_0x17a263(0xe6))/0x2)+-parseInt(_0x17a263(0xde))/0x3*(-parseInt(_0x17a263(0xba))/0x4)+parseInt(_0x17a263(0xe3))/0x5+-parseInt(_0x17a263(0xd5))/0x6*(-parseInt(_0x17a263(0xe0))/0x7)+parseInt(_0x17a263(0xcd))/0x8*(parseInt(_0x17a263(0xd7))/0x9)+-parseInt(_0x17a263(0xd3))/0xa*(parseInt(_0x17a263(0xd9))/0xb)+-parseInt(_0x17a263(0xdc))/0xc;if(_0x17a191===_0x429c01)break;else _0x425247['push'](_0x425247['shift']());}catch(_0x527ed2){_0x425247['push'](_0x425247['shift']());}}}(a201_0xed52,0xe2fca));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a201_0x4fdf(_0xd2982,_0x1a7117){_0xd2982=_0xd2982-0xae;const _0xed52a=a201_0xed52();let _0x4fdf75=_0xed52a[_0xd2982];return _0x4fdf75;}import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a201_0x386770(0xbe),'command':'validate','description':a201_0x386770(0xc1),'risk':a201_0x386770(0xb2),'flags':[{'name':a201_0x386770(0xc2),'type':a201_0x386770(0xcb),'description':a201_0x386770(0xb6)},{'name':a201_0x386770(0xbe),'type':a201_0x386770(0xcb),'description':a201_0x386770(0xe5)},{'name':a201_0x386770(0xd1),'type':a201_0x386770(0xcb),'description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'},{'name':a201_0x386770(0xcf),'type':a201_0x386770(0xc3),'description':a201_0x386770(0xf0)}],async 'execute'(_0x3d5ed2){const _0x4c1999=a201_0x386770,_0x147bd9=_0x3d5ed2[_0x4c1999(0xb3)](_0x4c1999(0xc2)),_0xa0e350=_0x3d5ed2[_0x4c1999(0xb3)](_0x4c1999(0xbe)),_0x3d4b5e=_0x3d5ed2[_0x4c1999(0xb3)](_0x4c1999(0xd1)),_0x59a998=_0x3d5ed2[_0x4c1999(0xae)]('check-indexes');if(!_0x147bd9&&!_0xa0e350)throw CliErrors[_0x4c1999(0xf1)](_0x4c1999(0xc2),_0x4c1999(0xb5));if(_0x59a998&&!_0x3d4b5e)throw CliErrors[_0x4c1999(0xf2)](_0x4c1999(0xeb));let _0x59ca1d;if(_0x147bd9){const _0x253b06=resolve(process[_0x4c1999(0xbf)](),_0x147bd9);if(!existsSync(_0x253b06))throw CliErrors[_0x4c1999(0xf2)](_0x4c1999(0xbb)+_0x253b06);_0x59ca1d=readFileSync(_0x253b06,'utf-8');}else _0x59ca1d=_0xa0e350;const _0x4bde87=validateSql(_0x59ca1d),_0x5e29f3={'valid':_0x4bde87['valid'],'sqlType':_0x4bde87[_0x4c1999(0xee)]['type'],'isSelectOnly':_0x4bde87['sqlType'][_0x4c1999(0xb1)],'isDangerous':_0x4bde87[_0x4c1999(0xee)][_0x4c1999(0xc9)],'tables':_0x4bde87[_0x4c1999(0xc4)],'parameters':_0x4bde87['parameters'],'message':_0x4bde87[_0x4c1999(0xb9)]};_0x4bde87[_0x4c1999(0xee)][_0x4c1999(0xea)]&&(_0x5e29f3[_0x4c1999(0xea)]=_0x4bde87['sqlType'][_0x4c1999(0xea)]);if(_0x3d4b5e&&_0x4bde87[_0x4c1999(0xb8)]){const _0x5ee009=_0x3d4b5e['split'](',')['map'](_0x375ef3=>_0x375ef3[_0x4c1999(0xed)]())[_0x4c1999(0xc5)](Boolean),_0x17b682=[],_0x46b0f9=[],_0x1d73c6=filterDbTableBackedDatasets(await listDatasets(_0x3d5ed2[_0x4c1999(0xc8)])),_0x53aae2=new Map(_0x1d73c6[_0x4c1999(0xb7)](_0x11beed=>[_0x11beed['dbtableConfig']?.['tableName']?.['toLowerCase'](),_0x11beed]));for(const _0x386259 of _0x4bde87[_0x4c1999(0xc4)]){const _0x3af334=_0x53aae2[_0x4c1999(0xb0)](_0x386259[_0x4c1999(0xe2)]());!_0x3af334&&_0x17b682[_0x4c1999(0xbc)]('Table\x20\x22'+_0x386259+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x234dc7 of _0x5ee009){let _0xb05f41;try{_0xb05f41=await getDatasetDetail(_0x234dc7);}catch{_0x17b682['push'](_0x4c1999(0xd0)+_0x234dc7+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0xb05f41,_0x4c1999(0xd8));const _0x257441=Array[_0x4c1999(0xc7)](_0xb05f41[_0x4c1999(0xd6)])?_0xb05f41['fields']:[],_0x73c295=new Set(_0x257441['map'](_0x2eacf5=>_0x2eacf5[_0x4c1999(0xe4)]?.[_0x4c1999(0xe2)]())),_0x34beb9=_0xb05f41[_0x4c1999(0xca)]?.[_0x4c1999(0xdb)]||_0xb05f41[_0x4c1999(0xdb)]||_0x234dc7;_0x5e29f3[_0x4c1999(0xe8)+_0x34beb9]={'code':_0x234dc7,'tableName':_0x34beb9,'fieldCount':_0x73c295[_0x4c1999(0xda)],'fields':Array[_0x4c1999(0xe9)](_0x73c295)};if(_0x59a998){const _0x338753=normalizeDatasetIndexes(_0xb05f41);_0x46b0f9[_0x4c1999(0xbc)]({'tableName':_0x34beb9,..._0x338753});}}_0x17b682[_0x4c1999(0xdf)]>0x0&&(_0x5e29f3[_0x4c1999(0xc0)]=_0x17b682),_0x59a998&&(_0x5e29f3['joinAudit']=auditSqlJoinIndexes(_0x59ca1d,_0x46b0f9));}return{'ok':_0x4bde87['valid'],'data':_0x5e29f3,'message':_0x4bde87[_0x4c1999(0xb9)]};}};function normalizeDatasetIndexes(_0xa26d9){const _0x1bbc7f=a201_0x386770,_0x271f1a=Array['isArray'](_0xa26d9?.[_0x1bbc7f(0xd4)]?.['indexes'])?_0xa26d9['dataset'][_0x1bbc7f(0xd2)]:Array[_0x1bbc7f(0xc7)](_0xa26d9?.['indexes'])?_0xa26d9[_0x1bbc7f(0xd2)]:[],_0x28237f=_0x271f1a['flatMap'](_0x5b1eff=>{const _0xfffb2=_0x1bbc7f,_0x46a193=Array[_0xfffb2(0xc7)](_0x5b1eff?.[_0xfffb2(0xaf)])?_0x5b1eff[_0xfffb2(0xaf)]:Array[_0xfffb2(0xc7)](_0x5b1eff?.['columnNames'])?_0x5b1eff['columnNames']:Array[_0xfffb2(0xc7)](_0x5b1eff?.[_0xfffb2(0xbd)])?_0x5b1eff['columns']:[],_0x3b8c3f=_0x46a193[_0xfffb2(0xc5)](_0x35a4fa=>typeof _0x35a4fa===_0xfffb2(0xcb))[_0xfffb2(0xb7)](_0xc964e7=>_0xc964e7[_0xfffb2(0xed)]())[_0xfffb2(0xc5)](Boolean);if(_0x3b8c3f[_0xfffb2(0xdf)]===0x0)return[];const _0x42f127=[_0x5b1eff?.[_0xfffb2(0xce)],_0x5b1eff?.[_0xfffb2(0xef)],_0x5b1eff?.[_0xfffb2(0xe4)]]['find'](_0x538e46=>typeof _0x538e46===_0xfffb2(0xcb)&&_0x538e46[_0xfffb2(0xed)]()),_0x534008=[_0x5b1eff?.[_0xfffb2(0xec)],_0x5b1eff?.[_0xfffb2(0xb4)]][_0xfffb2(0xc6)](_0x340f1f=>typeof _0x340f1f==='string'&&_0x340f1f['trim']());return[{..._0x42f127?{'name':_0x42f127['trim']()}:{},..._0x534008?{'type':_0x534008[_0xfffb2(0xed)]()}:{},'columns':_0x3b8c3f}];}),_0x3c2c6a=[..._0x28237f],_0x3a2c9e=typeof _0xa26d9?.[_0x1bbc7f(0xca)]?.[_0x1bbc7f(0xdd)]===_0x1bbc7f(0xcb)?_0xa26d9[_0x1bbc7f(0xca)][_0x1bbc7f(0xdd)]['split'](',')['map'](_0x43552c=>_0x43552c['trim']())[_0x1bbc7f(0xc5)](Boolean):[];return _0x3a2c9e[_0x1bbc7f(0xdf)]>0x0&&_0x3c2c6a[_0x1bbc7f(0xcc)]({'type':_0x1bbc7f(0xe1),'columns':_0x3a2c9e}),{'indexes':_0x3c2c6a,'metadataAvailable':_0x28237f[_0x1bbc7f(0xdf)]>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2da987,_0x1f34f5){const _0x1dc56c=a202_0xb757,_0x42e38e=_0x2da987();while(!![]){try{const _0x41294c=-parseInt(_0x1dc56c(0x7d))/0x1+-parseInt(_0x1dc56c(0x7b))/0x2*(parseInt(_0x1dc56c(0x7c))/0x3)+-parseInt(_0x1dc56c(0x79))/0x4+parseInt(_0x1dc56c(0x81))/0x5+parseInt(_0x1dc56c(0x7f))/0x6+-parseInt(_0x1dc56c(0x7a))/0x7+-parseInt(_0x1dc56c(0x80))/0x8*(-parseInt(_0x1dc56c(0x7e))/0x9);if(_0x41294c===_0x1f34f5)break;else _0x42e38e['push'](_0x42e38e['shift']());}catch(_0xade1d5){_0x42e38e['push'](_0x42e38e['shift']());}}}(a202_0xbfa8,0xcf854));function a202_0xb757(_0x12508b,_0x407bac){_0x12508b=_0x12508b-0x79;const _0xbfa8b2=a202_0xbfa8();let _0xb75788=_0xbfa8b2[_0x12508b];return _0xb75788;}import{taskStatus}from'../../commands/task/status.js';function a202_0xbfa8(){const _0x3f7fed=['7088395gRGPNN','1745396GwRPpE','9891966rBsYXT','129730chfMcv','33KlRQAa','590679tOvKNf','9WNbRUC','1706322Hfijpt','18412952SqCYAJ'];a202_0xbfa8=function(){return _0x3f7fed;};return a202_0xbfa8();}export const taskDefinitions=[taskStatus];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x1098f1=a203_0x3b16;(function(_0x28b38f,_0x4de014){const _0x3e1033=a203_0x3b16,_0x47f938=_0x28b38f();while(!![]){try{const _0xebe8bd=-parseInt(_0x3e1033(0x12b))/0x1+-parseInt(_0x3e1033(0x11d))/0x2+-parseInt(_0x3e1033(0x12a))/0x3+parseInt(_0x3e1033(0x11e))/0x4+parseInt(_0x3e1033(0x125))/0x5*(-parseInt(_0x3e1033(0x120))/0x6)+-parseInt(_0x3e1033(0x12c))/0x7*(parseInt(_0x3e1033(0x127))/0x8)+parseInt(_0x3e1033(0x129))/0x9;if(_0xebe8bd===_0x4de014)break;else _0x47f938['push'](_0x47f938['shift']());}catch(_0x25e157){_0x47f938['push'](_0x47f938['shift']());}}}(a203_0x29e6,0xc6c7d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a203_0x3b16(_0x4a5ec2,_0x19b06f){_0x4a5ec2=_0x4a5ec2-0x11b;const _0x29e688=a203_0x29e6();let _0x3b16d2=_0x29e688[_0x4a5ec2];return _0x3b16d2;}import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';function a203_0x29e6(){const _0x4ff036=['str',',\x20received\x20','1695122YByKmj','132684RLKePL','status','54jrmGep','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task','appCode','string','231955goKcDe','isTerminal','401832VPVsMr','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','47663442KRLSKQ','4069050pNJKTi','1240497NTpNXj','91ovTPCj','task-id','compress','read','taskId','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','trim'];a203_0x29e6=function(){return _0x4ff036;};return a203_0x29e6();}import{CliErrors}from'../../errors.js';export const taskStatus={'service':a203_0x1098f1(0x122),'command':a203_0x1098f1(0x11f),'description':a203_0x1098f1(0x121),'risk':a203_0x1098f1(0x12f),'defaultOutputFormat':a203_0x1098f1(0x12e),'structuredErrors':!![],'flags':[{'name':'task-id','type':a203_0x1098f1(0x124),'required':!![],'description':a203_0x1098f1(0x131)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4240ba){const _0x26362a=a203_0x1098f1;if(!_0x4240ba[_0x26362a(0x11b)](_0x26362a(0x12d))['trim']())throw CliErrors['flagMissing'](_0x26362a(0x12d));},async 'execute'(_0xc95163){const _0x9d4da2=a203_0x1098f1,_0x55966b=_0xc95163[_0x9d4da2(0x11b)]('task-id')[_0x9d4da2(0x132)](),_0x442c40=normalizeAsyncTask(await getAsyncTaskStatus(_0x55966b,_0xc95163['appCode'],_0xc95163['cookie']));if(_0x442c40['taskId']!==_0x55966b)throw CliErrors['apiError'](_0x9d4da2(0x128)+_0x55966b+_0x9d4da2(0x11c)+_0x442c40[_0x9d4da2(0x130)]+'.');const _0x2469d3=buildAsyncTaskStatusCommand(_0x442c40[_0x9d4da2(0x130)],_0xc95163[_0x9d4da2(0x123)]);return{'ok':!![],'message':asyncTaskMessage(_0x442c40),'data':{'appCode':_0xc95163[_0x9d4da2(0x123)],..._0x442c40,'query':_0x442c40[_0x9d4da2(0x126)]?null:{'command':_0x2469d3}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a204_0x4438(_0x17ad35,_0x1eeba5){_0x17ad35=_0x17ad35-0xc2;const _0x49bee9=a204_0x49be();let _0x4438fa=_0x49bee9[_0x17ad35];return _0x4438fa;}(function(_0x1693b8,_0x5df620){const _0x206eec=a204_0x4438,_0x402da4=_0x1693b8();while(!![]){try{const _0x13c1d5=-parseInt(_0x206eec(0xc5))/0x1+parseInt(_0x206eec(0xc3))/0x2*(parseInt(_0x206eec(0xca))/0x3)+parseInt(_0x206eec(0xc4))/0x4*(parseInt(_0x206eec(0xc6))/0x5)+-parseInt(_0x206eec(0xc7))/0x6+parseInt(_0x206eec(0xcc))/0x7*(-parseInt(_0x206eec(0xc8))/0x8)+-parseInt(_0x206eec(0xc9))/0x9*(-parseInt(_0x206eec(0xcb))/0xa)+parseInt(_0x206eec(0xc2))/0xb;if(_0x13c1d5===_0x5df620)break;else _0x402da4['push'](_0x402da4['shift']());}catch(_0x2a5de7){_0x402da4['push'](_0x402da4['shift']());}}}(a204_0x49be,0xee39a));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a204_0x49be(){const _0x49acca=['7kodXsN','1302279Nkaqwi','202802tMMWcR','4hggTKv','1224187pUTAVU','895525NieHZc','2329062gnHvbN','6784048ZYDruC','9OPidzw','39WwkHdE','18204330sVimjY'];a204_0x49be=function(){return _0x49acca;};return a204_0x49be();}export const tenantDefinitions=[tenantMembersListDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a205_0x169b(){const _0xb1992c=['read','50868HEILlq','2209260zEdsea','flagMissing','1163110NVNrnz','tenant','Pass\x20--tenant-code\x20<code>.','Exact\x20tenant\x20code','Found\x20','trim','25eWTZNC','tenant-code','10IkqCHw','356892THWZhC','string','3131826NQafKv','str','568ATRhlM','45DnLJsy','108774bvrLQH','392vvnqtl','671EkJwdT','length','\x20tenant\x20member(s)'];a205_0x169b=function(){return _0xb1992c;};return a205_0x169b();}const a205_0x59bc46=a205_0x35b7;(function(_0x314c24,_0x35b1d7){const _0x589bb9=a205_0x35b7,_0xce97a8=_0x314c24();while(!![]){try{const _0x31f5f5=parseInt(_0x589bb9(0xd0))/0x1*(parseInt(_0x589bb9(0xd7))/0x2)+parseInt(_0x589bb9(0xde))/0x3+-parseInt(_0x589bb9(0xdd))/0x4*(parseInt(_0x589bb9(0xce))/0x5)+parseInt(_0x589bb9(0xd3))/0x6+-parseInt(_0x589bb9(0xd8))/0x7*(-parseInt(_0x589bb9(0xd5))/0x8)+-parseInt(_0x589bb9(0xd6))/0x9*(-parseInt(_0x589bb9(0xe0))/0xa)+-parseInt(_0x589bb9(0xd9))/0xb*(parseInt(_0x589bb9(0xd1))/0xc);if(_0x31f5f5===_0x35b1d7)break;else _0xce97a8['push'](_0xce97a8['shift']());}catch(_0x2ea29a){_0xce97a8['push'](_0xce97a8['shift']());}}}(a205_0x169b,0x7c836));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a205_0x35b7(_0x2a8c5c,_0x5974f9){_0x2a8c5c=_0x2a8c5c-0xcb;const _0x169be0=a205_0x169b();let _0x35b7d7=_0x169be0[_0x2a8c5c];return _0x35b7d7;}export const tenantMembersListDefinition={'service':a205_0x59bc46(0xe1),'command':'members-list','description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':a205_0x59bc46(0xdc),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a205_0x59bc46(0xcf),'type':a205_0x59bc46(0xd2),'required':!![],'description':a205_0x59bc46(0xcb)}],async 'validate'(_0x476258){const _0xb2983a=a205_0x59bc46;if(!_0x476258['str']('tenant-code')['trim']())throw CliErrors[_0xb2983a(0xdf)](_0xb2983a(0xcf),_0xb2983a(0xe2));},async 'execute'(_0x313b04){const _0x484eaa=a205_0x59bc46,_0x28977f=_0x313b04[_0x484eaa(0xd4)]('tenant-code')[_0x484eaa(0xcd)](),_0x3d2951=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x28977f,_0x3d2951);const _0x14e478=projectTenantMembers(await listTenantDirectoryMembers(_0x28977f));return{'ok':!![],'data':{'tenantCode':_0x28977f,'items':_0x14e478,'totalCount':_0x14e478[_0x484eaa(0xda)]},'message':_0x484eaa(0xcc)+_0x14e478[_0x484eaa(0xda)]+_0x484eaa(0xdb)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1be548,_0xed1fff){const _0x530172=a206_0x519a,_0x16125e=_0x1be548();while(!![]){try{const _0x4d96a7=-parseInt(_0x530172(0x68))/0x1*(-parseInt(_0x530172(0x7b))/0x2)+-parseInt(_0x530172(0x77))/0x3+parseInt(_0x530172(0x67))/0x4*(parseInt(_0x530172(0x70))/0x5)+-parseInt(_0x530172(0x82))/0x6+-parseInt(_0x530172(0x72))/0x7*(-parseInt(_0x530172(0x7d))/0x8)+parseInt(_0x530172(0x6c))/0x9*(parseInt(_0x530172(0x75))/0xa)+-parseInt(_0x530172(0x83))/0xb*(parseInt(_0x530172(0x6d))/0xc);if(_0x4d96a7===_0xed1fff)break;else _0x16125e['push'](_0x16125e['shift']());}catch(_0x570083){_0x16125e['push'](_0x16125e['shift']());}}}(a206_0x436f,0x39148));import{CliErrors}from'../../errors.js';function textOrNull(_0x5cd255){const _0x3727e3=a206_0x519a,_0x36c341=_0x5cd255?.[_0x3727e3(0x79)]();return _0x36c341?_0x36c341:null;}function a206_0x436f(){const _0x2cbc27=['ADMIN','validation','135370vThszw','isFinite','804108SdgnCS','username','trim','status','7536jYVRuW','displayName','8wMPUCP','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','some','role','userId','1687536yQFIyb','154tYjStb','MEMBER','512emqOLV','107DJMRIo','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','tenantCode','adminFlag','81ykmmCj','24456dfxFyT','set','sort','1700yqPKwU','nickname','1701665ratBCk'];a206_0x436f=function(){return _0x2cbc27;};return a206_0x436f();}function a206_0x519a(_0x1ab47e,_0x5799a4){_0x1ab47e=_0x1ab47e-0x66;const _0x436f0f=a206_0x436f();let _0x519a13=_0x436f0f[_0x1ab47e];return _0x519a13;}export function projectTenantMembers(_0x230c92){const _0x5cb428=a206_0x519a,_0x4dba8f=new Map();for(const _0x148bef of _0x230c92){const _0x120ad3=Number(_0x148bef['userId']);if(!Number[_0x5cb428(0x76)](_0x120ad3)||_0x120ad3<=0x0)continue;const _0x5b8a02={'userId':_0x120ad3,'username':textOrNull(_0x148bef[_0x5cb428(0x78)]),'displayName':textOrNull(_0x148bef[_0x5cb428(0x71)]),'role':_0x148bef[_0x5cb428(0x6b)]===!![]?_0x5cb428(0x73):_0x5cb428(0x66),'status':textOrNull(_0x148bef[_0x5cb428(0x7a)])},_0x229657=_0x4dba8f['get'](_0x120ad3);if(!_0x229657){_0x4dba8f[_0x5cb428(0x6e)](_0x120ad3,_0x5b8a02);continue;}_0x229657[_0x5cb428(0x78)]??=_0x5b8a02[_0x5cb428(0x78)],_0x229657[_0x5cb428(0x7c)]??=_0x5b8a02['displayName'],_0x229657[_0x5cb428(0x7a)]??=_0x5b8a02[_0x5cb428(0x7a)];if(_0x5b8a02[_0x5cb428(0x80)]===_0x5cb428(0x73))_0x229657['role']=_0x5cb428(0x73);}return[..._0x4dba8f['values']()][_0x5cb428(0x6f)]((_0xa2c31c,_0x3a5043)=>_0xa2c31c[_0x5cb428(0x81)]-_0x3a5043[_0x5cb428(0x81)]);}export function assertTenantAccessible(_0x47eaad,_0x2f8798){const _0x2a39e7=a206_0x519a;if(_0x2f8798[_0x2a39e7(0x7f)](_0x5eed1c=>_0x5eed1c[_0x2a39e7(0x6a)]===_0x47eaad))return;throw CliErrors[_0x2a39e7(0x74)]('Tenant\x20\x22'+_0x47eaad+_0x2a39e7(0x69),_0x2a39e7(0x7e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x206dab=a207_0x49a2;(function(_0x247f08,_0x1c4533){const _0x5272cd=a207_0x49a2,_0xde15f=_0x247f08();while(!![]){try{const _0x3d9306=parseInt(_0x5272cd(0x151))/0x1+parseInt(_0x5272cd(0x144))/0x2*(parseInt(_0x5272cd(0x147))/0x3)+parseInt(_0x5272cd(0x142))/0x4+-parseInt(_0x5272cd(0x158))/0x5*(parseInt(_0x5272cd(0x153))/0x6)+-parseInt(_0x5272cd(0x146))/0x7+-parseInt(_0x5272cd(0x14d))/0x8*(parseInt(_0x5272cd(0x159))/0x9)+parseInt(_0x5272cd(0x14c))/0xa;if(_0x3d9306===_0x1c4533)break;else _0xde15f['push'](_0xde15f['shift']());}catch(_0x3ce4d1){_0xde15f['push'](_0xde15f['shift']());}}}(a207_0xa6c3,0x2fd53));function a207_0x49a2(_0x47e530,_0x38495b){_0x47e530=_0x47e530-0x141;const _0xa6c34c=a207_0xa6c3();let _0x49a29e=_0xa6c34c[_0x47e530];return _0x49a29e;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a207_0x206dab(0x152),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function a207_0xa6c3(){const _0x41ad5d=['POST','321588AvjPuS','dingding-sandbox','14466qVIzMd','string','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','trim','user-account','695XUrmtT','3197241QhxFPU','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','557832KuvVOm','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','2MMXgwF','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','826070qGHsBc','252393XjWuED','ding-talk-user-id','apiError','bind','--ding-talk-user-id\x20cannot\x20be\x20empty.','4591340dXVaKD','8xcGkNI','write','str'];a207_0xa6c3=function(){return _0x41ad5d;};return a207_0xa6c3();}function readDingTalkUserId(_0x4d4f75){const _0x18e5c8=a207_0x206dab,_0x2dc1d1=_0x4d4f75[_0x18e5c8(0x14f)](_0x18e5c8(0x148))[_0x18e5c8(0x156)]();if(!_0x2dc1d1)throw CliErrors['validation'](_0x18e5c8(0x14b),_0x18e5c8(0x15a));return _0x2dc1d1;}function buildBindingData(_0x1cd09d,_0x2b4f78){const _0x2ce9d1=a207_0x206dab;return{'operation':_0x2ce9d1(0x14a),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x1cd09d},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x1cd09d,'bound':!![]},'dryRun':_0x2b4f78,'backend':{'method':_0x2ce9d1(0x150),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a207_0x206dab(0x157),'command':'dingding-sandbox-bind','description':a207_0x206dab(0x141),'risk':a207_0x206dab(0x14e),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'ding-talk-user-id','type':a207_0x206dab(0x154),'required':!![],'description':a207_0x206dab(0x143)}],async 'validate'(_0x418f3f){readDingTalkUserId(_0x418f3f);},async 'dryRun'(_0x5a35b6){const _0x21d02b=a207_0x206dab,_0x35ce95=readDingTalkUserId(_0x5a35b6);return asDryRunResult(buildBindingData(_0x35ce95,!![]),{'method':_0x21d02b(0x150),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x461a01){const _0x433b4c=a207_0x206dab,_0x198bc8=readDingTalkUserId(_0x461a01),_0x343505=await bindDingTalkSandboxAccount(_0x198bc8);if(_0x343505!==!![])throw CliErrors[_0x433b4c(0x149)](_0x433b4c(0x155),_0x433b4c(0x145));return{'ok':!![],'data':buildBindingData(_0x198bc8,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x581eb2,_0x39e5e){const _0x1a15a4=a208_0x3312,_0x140b6a=_0x581eb2();while(!![]){try{const _0x18ca41=parseInt(_0x1a15a4(0x14b))/0x1*(parseInt(_0x1a15a4(0x14e))/0x2)+parseInt(_0x1a15a4(0x152))/0x3+parseInt(_0x1a15a4(0x14f))/0x4*(-parseInt(_0x1a15a4(0x148))/0x5)+parseInt(_0x1a15a4(0x151))/0x6+parseInt(_0x1a15a4(0x14a))/0x7*(parseInt(_0x1a15a4(0x150))/0x8)+parseInt(_0x1a15a4(0x14d))/0x9*(-parseInt(_0x1a15a4(0x147))/0xa)+parseInt(_0x1a15a4(0x14c))/0xb*(-parseInt(_0x1a15a4(0x149))/0xc);if(_0x18ca41===_0x39e5e)break;else _0x140b6a['push'](_0x140b6a['shift']());}catch(_0x3f75c4){_0x140b6a['push'](_0x140b6a['shift']());}}}(a208_0x290b,0x65f8d));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a208_0x3312(_0x7b354b,_0x567456){_0x7b354b=_0x7b354b-0x147;const _0x290ba1=a208_0x290b();let _0x33120d=_0x290ba1[_0x7b354b];return _0x33120d;}export const userAccountDefinitions=[dingTalkSandboxBind];function a208_0x290b(){const _0x5de33c=['14IXqiRF','4daDKMg','8kiNOKO','1776222MIDvQW','1675986jOplks','99670ohkcbO','379815gFgurG','24JAXoRb','4464481UvWLKy','16442hsFpkV','5249552ZXNFMA','144wSFGfM'];a208_0x290b=function(){return _0x5de33c;};return a208_0x290b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a209_0x23d2a6=a209_0x5ccb;(function(_0x55e7ad,_0x2aeab8){const _0x34652d=a209_0x5ccb,_0x3ea50c=_0x55e7ad();while(!![]){try{const _0x58407c=-parseInt(_0x34652d(0x172))/0x1*(parseInt(_0x34652d(0x16b))/0x2)+-parseInt(_0x34652d(0x168))/0x3*(-parseInt(_0x34652d(0x176))/0x4)+-parseInt(_0x34652d(0x16a))/0x5+parseInt(_0x34652d(0x175))/0x6+-parseInt(_0x34652d(0x166))/0x7*(parseInt(_0x34652d(0x16c))/0x8)+parseInt(_0x34652d(0x177))/0x9*(parseInt(_0x34652d(0x173))/0xa)+parseInt(_0x34652d(0x174))/0xb*(parseInt(_0x34652d(0x16d))/0xc);if(_0x58407c===_0x2aeab8)break;else _0x3ea50c['push'](_0x3ea50c['shift']());}catch(_0x51b3bf){_0x3ea50c['push'](_0x3ea50c['shift']());}}}(a209_0xc4f9,0x966f0));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a209_0x23d2a6(0x170),'command':a209_0x23d2a6(0x16f),'description':a209_0x23d2a6(0x16e),'risk':a209_0x23d2a6(0x167),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a209_0x23d2a6(0x171),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x1c2001=>validateAppName(_0x1c2001,a209_0x23d2a6(0x169)),'execute':_0xa7b562=>runAppAdd(_0xa7b562,a209_0x23d2a6(0x169))};function a209_0x5ccb(_0x105952,_0x1355ed){_0x105952=_0x105952-0x166;const _0xc4f92f=a209_0xc4f9();let _0x5ccb7a=_0xc4f92f[_0x105952];return _0x5ccb7a;}function a209_0xc4f9(){const _0x1c8ca0=['1040454OMLlFl','28jWvsIL','5066802NoTdtq','70WUXnnb','write','47802URyAcz','workspace\x20add','277115CaLfpF','2qqvpmZ','63880xEyKxF','1165596pAYAta','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','add','workspace','App\x20profile\x20name','1164939uObcuN','10SZCWIm','121lOzoFw'];a209_0xc4f9=function(){return _0x1c8ca0;};return a209_0xc4f9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0x29c2cb=a210_0x340b;(function(_0x4448d4,_0x41edb5){const _0x5b3d1d=a210_0x340b,_0x4d715d=_0x4448d4();while(!![]){try{const _0x55b911=-parseInt(_0x5b3d1d(0x1ac))/0x1*(parseInt(_0x5b3d1d(0x191))/0x2)+-parseInt(_0x5b3d1d(0x19d))/0x3+-parseInt(_0x5b3d1d(0x1a6))/0x4+parseInt(_0x5b3d1d(0x18e))/0x5+parseInt(_0x5b3d1d(0x197))/0x6*(parseInt(_0x5b3d1d(0x19c))/0x7)+parseInt(_0x5b3d1d(0x1be))/0x8+-parseInt(_0x5b3d1d(0x196))/0x9;if(_0x55b911===_0x41edb5)break;else _0x4d715d['push'](_0x4d715d['shift']());}catch(_0x161a69){_0x4d715d['push'](_0x4d715d['shift']());}}}(a210_0x377e,0x2c480));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a210_0x29c2cb(0x1a7),SAFE_PROFILE_KEYS=[a210_0x29c2cb(0x1a1),a210_0x29c2cb(0x1b7),'apiDir',a210_0x29c2cb(0x199),a210_0x29c2cb(0x194),a210_0x29c2cb(0x193),a210_0x29c2cb(0x192)],workspaceFlags=[{'name':a210_0x29c2cb(0x1b8),'type':a210_0x29c2cb(0x1ba),'description':a210_0x29c2cb(0x1aa)},{'name':a210_0x29c2cb(0x1a1),'type':a210_0x29c2cb(0x1ba),'description':a210_0x29c2cb(0x1b6)},{'name':a210_0x29c2cb(0x1b7),'type':a210_0x29c2cb(0x1ba),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a210_0x29c2cb(0x1a0),'type':'string','description':a210_0x29c2cb(0x18a)},{'name':a210_0x29c2cb(0x1a9),'type':a210_0x29c2cb(0x1ba),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a210_0x29c2cb(0x194),'type':a210_0x29c2cb(0x18f),'description':a210_0x29c2cb(0x19b)},{'name':a210_0x29c2cb(0x193),'type':a210_0x29c2cb(0x1ba),'description':a210_0x29c2cb(0x18b),'enum':[...RISK_LEVEL_VALUES]},{'name':a210_0x29c2cb(0x192),'type':a210_0x29c2cb(0x1ba),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x2ba306){const _0x4a1e29=a210_0x29c2cb;return!!_0x2ba306&&typeof _0x2ba306===_0x4a1e29(0x190)&&!Array[_0x4a1e29(0x19f)](_0x2ba306);}function assertValidAppcode(_0x2de70f){const _0x5daa63=a210_0x29c2cb,{valid:_0x3336e4,message:_0x33cb92}=validateAppcode(_0x2de70f);if(!_0x3336e4)throw CliErrors[_0x5daa63(0x1bd)](_0x5daa63(0x195)+_0x2de70f,_0x33cb92);}function sanitizeProfile(_0x65fa54){if(!isRecord(_0x65fa54))return{};const _0x4d9764={};for(const _0x254807 of SAFE_PROFILE_KEYS){if(_0x65fa54[_0x254807]!==undefined)_0x4d9764[_0x254807]=_0x65fa54[_0x254807];}return _0x4d9764;}function cloneProfile(_0x593094){return isRecord(_0x593094)?{..._0x593094}:{};}function collectWorkspaceProfileOverrides(_0xe032a4){const _0x3d5f20=a210_0x29c2cb,_0x5aef0d={},_0x7b95ea=_0xe032a4[_0x3d5f20(0x19e)](_0x3d5f20(0x1b7)),_0x61c5c3=_0xe032a4['str'](_0x3d5f20(0x1a0)),_0x22a992=_0xe032a4[_0x3d5f20(0x19e)](_0x3d5f20(0x1a9)),_0x469d07=_0xe032a4[_0x3d5f20(0x1ad)](_0x3d5f20(0x194)),_0x40b0b9=_0xe032a4[_0x3d5f20(0x19e)](_0x3d5f20(0x193)),_0x1073d7=_0xe032a4['str'](_0x3d5f20(0x192));if(_0x7b95ea)_0x5aef0d['env']=_0x7b95ea;if(_0x61c5c3)_0x5aef0d[_0x3d5f20(0x1a0)]=_0x61c5c3;if(_0x22a992)_0x5aef0d[_0x3d5f20(0x199)]=_0x22a992;if(_0x469d07!==undefined&&_0x469d07!=='')_0x5aef0d[_0x3d5f20(0x194)]=Number(_0x469d07);if(_0x40b0b9)_0x5aef0d[_0x3d5f20(0x193)]=_0x40b0b9;if(_0x1073d7)_0x5aef0d[_0x3d5f20(0x192)]=_0x1073d7;return _0x5aef0d;}async function validateWorkspaceArgs(_0xe47d1e){const _0x34aa3a=a210_0x29c2cb,_0x26bd53=_0xe47d1e[_0x34aa3a(0x19e)](_0x34aa3a(0x1b8))['trim'](),_0x138f89=_0xe47d1e[_0x34aa3a(0x19e)](_0x34aa3a(0x1a1))[_0x34aa3a(0x18c)]();if(!_0x26bd53&&!_0x138f89)throw CliErrors[_0x34aa3a(0x1bd)]('Missing\x20workspace\x20app\x20selector.',_0x34aa3a(0x1b1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x138f89)assertValidAppcode(_0x138f89);}function resolveKnownApps(){const _0x1bad0d=a210_0x29c2cb,{config:_0x39d52f,layers:_0x15fe67}=readRawConfigWithLayers(),_0x4f3221=isRecord(_0x39d52f[_0x1bad0d(0x1a3)])?_0x39d52f[_0x1bad0d(0x1a3)]:{},_0x1e0f51=isRecord(_0x15fe67[_0x1bad0d(0x1b3)]['apps'])?_0x15fe67[_0x1bad0d(0x1b3)][_0x1bad0d(0x1a3)]:{};return{..._0x1e0f51,..._0x4f3221};}function a210_0x340b(_0x32887a,_0xd4f4e1){_0x32887a=_0x32887a-0x189;const _0x377eb6=a210_0x377e();let _0x340b62=_0x377eb6[_0x32887a];return _0x340b62;}async function configureWorkspace(_0x200c9c,_0x40b51e){const _0x2f4ad3=a210_0x29c2cb,_0x939873=_0x200c9c[_0x2f4ad3(0x19e)](_0x2f4ad3(0x1b8))['trim'](),_0x5dde04=_0x200c9c['str'](_0x2f4ad3(0x1a1))['trim'](),_0x472499=_0x939873||_0x5dde04;if(!_0x472499)throw CliErrors[_0x2f4ad3(0x1bd)]('Missing\x20workspace\x20app\x20selector.',_0x2f4ad3(0x1b1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x2f4ad3(0x1bb));if(_0x5dde04)assertValidAppcode(_0x5dde04);const _0x3a2afe=resolveWriteConfigPath(_0x2f4ad3(0x1af)),_0x56d616=readConfigFile(_0x3a2afe),_0x3fdab5=resolveKnownApps(),_0x321f05=isRecord(_0x56d616[_0x2f4ad3(0x1a3)])?{..._0x56d616['apps']}:{},_0x474aec=cloneProfile(_0x321f05[_0x472499]),_0x225555=sanitizeProfile(_0x3fdab5[_0x472499]),_0x5cde43=_0x5dde04?{}:_0x225555,_0x4b039d=_0x5dde04||_0x5cde43[_0x2f4ad3(0x1a1)];if(!_0x4b039d){const _0x4e16a6=Object['keys'](_0x3fdab5),_0xe515a6=_0x4e16a6['length']===0x0?_0x2f4ad3(0x1b1)+CLI_BIN_NAME+_0x2f4ad3(0x198)+_0x40b51e+'\x20--app\x20'+_0x472499+_0x2f4ad3(0x1b2):_0x2f4ad3(0x1b4)+_0x4e16a6[_0x2f4ad3(0x1ae)](',\x20');throw CliErrors[_0x2f4ad3(0x1bd)](_0x2f4ad3(0x1ab)+_0x472499+_0x2f4ad3(0x18d),_0xe515a6);}assertValidAppcode(String(_0x4b039d));const _0xea58c6={..._0x5cde43,..._0x474aec,'appcode':String(_0x4b039d),...collectWorkspaceProfileOverrides(_0x200c9c)};return _0x321f05[_0x472499]=_0xea58c6,_0x56d616[_0x2f4ad3(0x1a3)]=_0x321f05,_0x56d616[_0x2f4ad3(0x1b9)]=_0x472499,delete _0x56d616[_0x2f4ad3(0x1a1)],delete _0x56d616[_0x2f4ad3(0x1b8)],_0xea58c6[_0x2f4ad3(0x1b7)]&&(_0x56d616[_0x2f4ad3(0x1b7)]=_0xea58c6[_0x2f4ad3(0x1b7)]),writeConfigFile(_0x3a2afe,_0x56d616),{'ok':!![],'message':_0x2f4ad3(0x1bc)+(_0x40b51e===_0x2f4ad3(0x1b0)?_0x2f4ad3(0x1b5):_0x2f4ad3(0x1a4))+':\x20'+_0x472499+'\x20(appcode:\x20'+_0xea58c6[_0x2f4ad3(0x1a1)]+').\x20Config:\x20'+_0x3a2afe+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x2f4ad3(0x1bf)+_0x40b51e,'configPath':_0x3a2afe,'app':_0x472499,'appcode':_0xea58c6[_0x2f4ad3(0x1a1)],'env':_0xea58c6['env']??null,'credentialsWritten':![]}};}function a210_0x377e(){const _0x3141e7=['API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','trim','\x22\x20not\x20found.','1791070fYLcMm','number','object','356002eeRybY','locale','riskLevel','pageSize','Invalid\x20appcode:\x20','1656459XQPMzj','138WWgFJf','\x20workspace\x20','format','use','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','62167umcChF','730917pvswai','str','isArray','apiDir','appcode','Initialize\x20the\x20current\x20workspace\x20app\x20binding','apps','updated','Switch\x20the\x20current\x20workspace\x20app\x20binding','442996rhZefL','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','write','defaultFormat','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','App\x20\x22','1ZarWBe','flag','join','project','init','Use\x20`','\x20--appcode\x20<code>`.','globalConfig','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','initialized','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','env','app','defaultApp','string','\x20workspace\x20use\x20--app\x20<name>`.','Workspace\x20','validation','2682712FrKeKo','workspace.','workspace'];a210_0x377e=function(){return _0x3141e7;};return a210_0x377e();}const workspaceInitDefinition={'service':a210_0x29c2cb(0x189),'command':a210_0x29c2cb(0x1b0),'description':a210_0x29c2cb(0x1a2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3cbd85=>configureWorkspace(_0x3cbd85,a210_0x29c2cb(0x1b0))},workspaceUseDefinition={'service':a210_0x29c2cb(0x189),'command':a210_0x29c2cb(0x19a),'description':a210_0x29c2cb(0x1a5),'risk':a210_0x29c2cb(0x1a8),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x50de49=>configureWorkspace(_0x50de49,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a211_0x390e(){const _0xd5d02=['6844tTvWoD','85apOrrE','1930kDBBeU','App\x20profile\x20name\x20to\x20remove','7524464nhzbPR','name','5076gcwlSs','remove','workspace','868858dYLrBa','workspace\x20remove','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','131845dyWETv','4289082SciBzN','968808jkwbqn','7YfopVd'];a211_0x390e=function(){return _0xd5d02;};return a211_0x390e();}const a211_0x5418ed=a211_0x2614;(function(_0x4fe105,_0x1245bb){const _0x5ae370=a211_0x2614,_0x59bd11=_0x4fe105();while(!![]){try{const _0x21e790=-parseInt(_0x5ae370(0x132))/0x1+-parseInt(_0x5ae370(0x12f))/0x2+-parseInt(_0x5ae370(0x134))/0x3+parseInt(_0x5ae370(0x126))/0x4*(-parseInt(_0x5ae370(0x127))/0x5)+parseInt(_0x5ae370(0x133))/0x6+parseInt(_0x5ae370(0x125))/0x7*(parseInt(_0x5ae370(0x12a))/0x8)+-parseInt(_0x5ae370(0x12c))/0x9*(parseInt(_0x5ae370(0x128))/0xa);if(_0x21e790===_0x1245bb)break;else _0x59bd11['push'](_0x59bd11['shift']());}catch(_0x25bc9d){_0x59bd11['push'](_0x59bd11['shift']());}}}(a211_0x390e,0x99620));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a211_0x2614(_0x530307,_0x163bc9){_0x530307=_0x530307-0x125;const _0x390ecd=a211_0x390e();let _0x26149a=_0x390ecd[_0x530307];return _0x26149a;}export const workspaceRemoveDefinition={'service':a211_0x5418ed(0x12e),'command':a211_0x5418ed(0x12d),'description':a211_0x5418ed(0x131),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a211_0x5418ed(0x12b),'description':a211_0x5418ed(0x129),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x4a1c39=>validateAppName(_0x4a1c39,a211_0x5418ed(0x130)),'execute':_0xb36783=>runAppRemove(_0xb36783,a211_0x5418ed(0x130))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x2fa449=a212_0x1d67;(function(_0x5cb3a9,_0x3cb6c7){const _0xd33af3=a212_0x1d67,_0x4b04de=_0x5cb3a9();while(!![]){try{const _0x166e07=-parseInt(_0xd33af3(0xfc))/0x1*(-parseInt(_0xd33af3(0xd6))/0x2)+-parseInt(_0xd33af3(0xf8))/0x3+-parseInt(_0xd33af3(0xec))/0x4*(-parseInt(_0xd33af3(0xd7))/0x5)+parseInt(_0xd33af3(0xe6))/0x6*(parseInt(_0xd33af3(0xf6))/0x7)+parseInt(_0xd33af3(0xed))/0x8*(-parseInt(_0xd33af3(0xe4))/0x9)+-parseInt(_0xd33af3(0xd4))/0xa*(-parseInt(_0xd33af3(0xdb))/0xb)+parseInt(_0xd33af3(0xe8))/0xc*(parseInt(_0xd33af3(0xfd))/0xd);if(_0x166e07===_0x3cb6c7)break;else _0x4b04de['push'](_0x4b04de['shift']());}catch(_0x3efb7b){_0x4b04de['push'](_0x4b04de['shift']());}}}(a212_0x376a,0xb1e67));function a212_0x1d67(_0x4e1aca,_0x428b18){_0x4e1aca=_0x4e1aca-0xd3;const _0x376a2e=a212_0x376a();let _0x1d67d5=_0x376a2e[_0x4e1aca];return _0x1d67d5;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a212_0x2fa449(0xd5),a212_0x2fa449(0xf4),a212_0x2fa449(0xfa),a212_0x2fa449(0xda),a212_0x2fa449(0xea)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a212_0x2fa449(0xd9),a212_0x2fa449(0xee),a212_0x2fa449(0xfa),a212_0x2fa449(0xda),a212_0x2fa449(0xd5),a212_0x2fa449(0xf4),a212_0x2fa449(0xf0)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x24d713){const _0xd9b13c=a212_0x2fa449;return[..._0x24d713][_0xd9b13c(0xf3)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1af043){const _0x1c319a=a212_0x2fa449;return TOP_LEVEL_CONFIG_KEYS[_0x1c319a(0xef)](_0x1af043);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a212_0x376a(){const _0x35ca2c=['apiDir','defaultFormat','defaultApp','join','accessKey','pageSize','7iwGLCa','zh-CN','736944xfSouQ','number','locale','apps','173nsfLpN','382174DjcnTH','Risk\x20level','126460LwUhNq','cookie','674YBVHUC','455800izojQz','filter','appcode','format','165cCzbah','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','length','inherit','entries','Auth\x20cookie','string','map','Config\x20key\x20(','25344hPEPHt','app','1302348XTGtOP','en-US','300qjAKAB','API\x20directory\x20path','riskLevel','trim','20yunPjO','1936zOpRxS','env','has'];a212_0x376a=function(){return _0x35ca2c;};return a212_0x376a();}export function getConfigCommandKeyDescription(){const _0x39f4b2=a212_0x2fa449;return _0x39f4b2(0xe3)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a212_0x2fa449(0xee),'apiDir':a212_0x2fa449(0xf0),'cookie':a212_0x2fa449(0xd5),'accessKey':a212_0x2fa449(0xf4),'defaultFormat':a212_0x2fa449(0xda),'pageSize':a212_0x2fa449(0xf5),'riskLevel':a212_0x2fa449(0xea),'locale':a212_0x2fa449(0xfa)};export function getAppProfileFlagDefs(){const _0x600423=a212_0x2fa449;return[{'name':_0x600423(0xee),'type':_0x600423(0xe1),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x600423(0xf0),'type':_0x600423(0xe1),'description':_0x600423(0xe9)},{'name':_0x600423(0xd5),'type':_0x600423(0xe1),'description':_0x600423(0xe0),'hidden':!![]},{'name':_0x600423(0xf4),'type':_0x600423(0xe1),'description':'Access\x20key','hidden':!![]},{'name':_0x600423(0xf1),'type':_0x600423(0xe1),'description':_0x600423(0xdc),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x600423(0xf9),'description':'Default\x20page\x20size'},{'name':_0x600423(0xea),'type':_0x600423(0xe1),'description':_0x600423(0xd3),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x600423(0xe1),'description':'Locale'}];}export function collectAppProfileOverrides(_0x39afa3){const _0x524548=a212_0x2fa449,_0x3a4c91={};for(const [_0xa6bd27,_0x4462b4]of Object[_0x524548(0xdf)](APP_PROFILE_FLAG_KEY_MAP)){const _0x15f323=_0x39afa3(_0xa6bd27);if(!_0x15f323)continue;_0x3a4c91[_0x4462b4]=_0x4462b4===_0x524548(0xf5)?Number(_0x15f323):_0x15f323;}return _0x3a4c91;}export function buildAppProfileListFields(_0x28f947){const _0x4f6cb5=a212_0x2fa449;return{'env':_0x28f947['env']??null,'apiDir':_0x28f947[_0x4f6cb5(0xf0)]??null,'hasCookie':!!_0x28f947[_0x4f6cb5(0xd5)],'hasAccessKey':!!_0x28f947[_0x4f6cb5(0xf4)],'format':_0x28f947['format']??null,'pageSize':_0x28f947[_0x4f6cb5(0xf5)]??null,'riskLevel':_0x28f947[_0x4f6cb5(0xea)]??null,'locale':_0x28f947[_0x4f6cb5(0xfa)]??null};}export function buildAppDoctorFields(_0x37388f,_0x4f48db){const _0x4654f6=a212_0x2fa449;return{'env':{'value':_0x37388f[_0x4654f6(0xee)]||_0x4f48db[_0x4654f6(0xee)],'source':_0x37388f[_0x4654f6(0xee)]?'app':_0x4654f6(0xde)},'apiDir':{'value':_0x37388f[_0x4654f6(0xf0)]||_0x4f48db[_0x4654f6(0xf0)],'source':_0x37388f[_0x4654f6(0xf0)]?_0x4654f6(0xe5):_0x4654f6(0xde)},'cookie':{'value':_0x37388f[_0x4654f6(0xd5)]||_0x4f48db[_0x4654f6(0xd5)],'source':_0x37388f[_0x4654f6(0xd5)]?_0x4654f6(0xe5):_0x4654f6(0xde)},'accessKey':{'value':_0x37388f[_0x4654f6(0xf4)]||_0x4f48db[_0x4654f6(0xf4)],'source':_0x37388f[_0x4654f6(0xf4)]?'app':_0x4654f6(0xde)}};}export function buildCanonicalAppConfig(_0x5ac995,_0x223fd9){const _0x2c8f82=a212_0x2fa449,_0x22f103=_0x5ac995[_0x2c8f82(0xe2)](_0x426952=>String(_0x426952||'')[_0x2c8f82(0xeb)]())[_0x2c8f82(0xd8)](Boolean);if(_0x22f103[_0x2c8f82(0xdd)]===0x0)return{};const _0x46befc={};for(const _0x1badf4 of _0x22f103){_0x46befc[_0x1badf4]=_0x223fd9?{'appcode':_0x1badf4,'env':_0x223fd9}:{'appcode':_0x1badf4};}return{'apps':_0x46befc,'defaultApp':_0x22f103[0x0]};}export function buildCanonicalProjectConfig(_0x3f9787,_0x501464){const _0x38113c=a212_0x2fa449,{appCodes:appCodes=[],env:_0x28b0a9,metadata:_0x3ddc3a}=_0x501464,_0x36bd47={..._0x3f9787,..._0x3ddc3a||{}};delete _0x36bd47['appcode'],delete _0x36bd47[_0x38113c(0xe5)];if(_0x28b0a9)_0x36bd47[_0x38113c(0xee)]=_0x28b0a9;else!_0x36bd47[_0x38113c(0xee)]&&(_0x36bd47[_0x38113c(0xee)]=DEFAULT_CONFIG_VALUES[_0x38113c(0xee)]);const _0x164eba=buildCanonicalAppConfig(appCodes,_0x36bd47[_0x38113c(0xee)]);return Object['keys'](_0x164eba)[_0x38113c(0xdd)]>0x0&&(_0x36bd47[_0x38113c(0xfb)]=_0x164eba[_0x38113c(0xfb)],_0x36bd47['defaultApp']=_0x164eba[_0x38113c(0xf2)]),_0x36bd47;}const LOCALE_MAP={'zh':a212_0x2fa449(0xf7),'zh-cn':a212_0x2fa449(0xf7),'zh_cn':a212_0x2fa449(0xf7),'en':'en-US','en-us':'en-US','en_us':a212_0x2fa449(0xe7)};export function normalizeLocale(_0x5497fb){if(!_0x5497fb)return null;return LOCALE_MAP[_0x5497fb['toLowerCase']()]??null;}
|
package/lib/constant/cdn.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
+
export declare const RABETBASE_CDN_BASE_URL = "https://g.lovrabet.com/dist/rabetbase-cli";
|
|
1
2
|
export declare const CLI_VERSION_POLICY_URL = "https://g.lovrabet.com/dist/rabetbase-cli/config/index.json";
|
|
3
|
+
export declare const PROJECT_TEMPLATE_ASSET_BASE_URL = "https://g.lovrabet.com/dist/rabetbase-cli/templates/projects";
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a213_0x5a2b96=a213_0x4503;function a213_0x4503(_0x31eff4,_0x6ab30){_0x31eff4=_0x31eff4-0x1b4;const _0x3f7968=a213_0x3f79();let _0x4503dc=_0x3f7968[_0x31eff4];return _0x4503dc;}(function(_0x3966de,_0x5204f2){const _0x5288a0=a213_0x4503,_0x9524ec=_0x3966de();while(!![]){try{const _0x3ed9af=parseInt(_0x5288a0(0x1bc))/0x1*(parseInt(_0x5288a0(0x1bf))/0x2)+parseInt(_0x5288a0(0x1b6))/0x3+-parseInt(_0x5288a0(0x1b4))/0x4+-parseInt(_0x5288a0(0x1b5))/0x5+-parseInt(_0x5288a0(0x1bd))/0x6*(-parseInt(_0x5288a0(0x1b8))/0x7)+parseInt(_0x5288a0(0x1b9))/0x8+-parseInt(_0x5288a0(0x1b7))/0x9*(-parseInt(_0x5288a0(0x1bb))/0xa);if(_0x3ed9af===_0x5204f2)break;else _0x9524ec['push'](_0x9524ec['shift']());}catch(_0x429d53){_0x9524ec['push'](_0x9524ec['shift']());}}}(a213_0x3f79,0xb4e95));function a213_0x3f79(){const _0x282a65=['309465okvMxo','5706nbcItm','115129vLQdFL','48552fHOJZq','https://g.lovrabet.com/dist/rabetbase-cli','6800NCQJnl','17bOkzwH','132qzZMMG','/config/index.json','146088PYFuHS','/templates/projects','3417984iZemzX','2742085eQYAtK'];a213_0x3f79=function(){return _0x282a65;};return a213_0x3f79();}export const RABETBASE_CDN_BASE_URL=a213_0x5a2b96(0x1ba);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a213_0x5a2b96(0x1be);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a213_0x5a2b96(0x1c0);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a206_0x48fe87=a206_0x1174;(function(_0x4e5cfe,_0x3d4fb5){const _0x2297cc=a206_0x1174,_0x1bbad6=_0x4e5cfe();while(!![]){try{const _0x25cdc6=parseInt(_0x2297cc(0x1e4))/0x1+parseInt(_0x2297cc(0x1da))/0x2+-parseInt(_0x2297cc(0x22d))/0x3+parseInt(_0x2297cc(0x251))/0x4*(parseInt(_0x2297cc(0x216))/0x5)+-parseInt(_0x2297cc(0x254))/0x6+parseInt(_0x2297cc(0x237))/0x7*(-parseInt(_0x2297cc(0x243))/0x8)+parseInt(_0x2297cc(0x232))/0x9;if(_0x25cdc6===_0x3d4fb5)break;else _0x1bbad6['push'](_0x1bbad6['shift']());}catch(_0x389a39){_0x1bbad6['push'](_0x1bbad6['shift']());}}}(a206_0x1dd8,0x69eab));export const CLI_BIN_NAME=a206_0x48fe87(0x1dc);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a206_0x48fe87(0x1e7),'meowKey':a206_0x48fe87(0x1e7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x231),'hint':a206_0x48fe87(0x203)},{'name':a206_0x48fe87(0x24f),'meowKey':'app','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e0),'hint':a206_0x48fe87(0x1db)},{'name':a206_0x48fe87(0x1f6),'meowKey':a206_0x48fe87(0x1f6),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x200),'hint':'production\x20|\x20daily'},{'name':a206_0x48fe87(0x23f),'meowKey':a206_0x48fe87(0x23f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f5),'hint':a206_0x48fe87(0x21c)},{'name':'jq','meowKey':'jq','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21a),'hint':a206_0x48fe87(0x202)},{'name':a206_0x48fe87(0x224),'meowKey':'dryRun','type':a206_0x48fe87(0x1ec),'description':'Preview\x20operation\x20without\x20executing'},{'name':a206_0x48fe87(0x20e),'meowKey':a206_0x48fe87(0x20e),'type':a206_0x48fe87(0x1ec),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a206_0x48fe87(0x1f8),'meowKey':a206_0x48fe87(0x223),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1ef)},{'name':a206_0x48fe87(0x1f9),'meowKey':a206_0x48fe87(0x1f9),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x220)},{'name':a206_0x48fe87(0x238),'meowKey':a206_0x48fe87(0x238),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1d6)},{'name':'ci','meowKey':'ci','type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x208),'hidden':!![]},{'name':'help','meowKey':a206_0x48fe87(0x1f7),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x222)},{'name':'name','meowKey':a206_0x48fe87(0x249),'type':'string','description':a206_0x48fe87(0x20f),'hidden':!![]},{'name':a206_0x48fe87(0x1d7),'meowKey':a206_0x48fe87(0x1d7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x24d),'hidden':!![]},{'name':a206_0x48fe87(0x226),'meowKey':a206_0x48fe87(0x226),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x20c),'hidden':!![]},{'name':'watch','meowKey':a206_0x48fe87(0x1e8),'type':'boolean','description':a206_0x48fe87(0x210),'hidden':!![]},{'name':a206_0x48fe87(0x201),'meowKey':a206_0x48fe87(0x201),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fd),'hidden':!![]},{'name':a206_0x48fe87(0x242),'meowKey':a206_0x48fe87(0x242),'type':'string','description':a206_0x48fe87(0x24a),'hidden':!![]},{'name':a206_0x48fe87(0x1de),'meowKey':a206_0x48fe87(0x1de),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21d),'hidden':!![]},{'name':a206_0x48fe87(0x250),'meowKey':'all','type':a206_0x48fe87(0x1ec),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x48fe87(0x253),'meowKey':a206_0x48fe87(0x1d5),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x24e),'hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fb),'hidden':!![]},{'name':'type','meowKey':a206_0x48fe87(0x1fe),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e1),'hidden':!![]},{'name':a206_0x48fe87(0x228),'meowKey':'file','type':a206_0x48fe87(0x22c),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':a206_0x48fe87(0x255),'type':'string','description':a206_0x48fe87(0x1d4),'hidden':!![]},{'name':a206_0x48fe87(0x1ea),'meowKey':a206_0x48fe87(0x22f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x234),'meowKey':a206_0x48fe87(0x234),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x215),'meowKey':a206_0x48fe87(0x212),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':a206_0x48fe87(0x225),'meowKey':a206_0x48fe87(0x225),'type':'string','description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a206_0x48fe87(0x230),'hidden':!![]},{'name':a206_0x48fe87(0x20b),'meowKey':a206_0x48fe87(0x1f3),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1ff),'hidden':!![]},{'name':a206_0x48fe87(0x219),'meowKey':'page','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x22a),'hidden':!![]},{'name':'pagesize','meowKey':a206_0x48fe87(0x1e2),'type':a206_0x48fe87(0x22c),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a206_0x48fe87(0x246),'type':'string','description':a206_0x48fe87(0x1ed),'hidden':!![]},{'name':'code','meowKey':a206_0x48fe87(0x248),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23d),'hidden':!![]},{'name':a206_0x48fe87(0x1e9),'meowKey':a206_0x48fe87(0x1e9),'type':'string','description':a206_0x48fe87(0x23b),'hidden':!![]},{'name':'schemas','meowKey':a206_0x48fe87(0x20a),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23a),'hidden':!![]},{'name':'operation','meowKey':a206_0x48fe87(0x213),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x217),'meowKey':'target','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f4),'hidden':!![]},{'name':a206_0x48fe87(0x23c),'meowKey':a206_0x48fe87(0x239),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x241),'hidden':!![]},{'name':'key','meowKey':'key','type':a206_0x48fe87(0x22c),'description':'Config\x20key','hidden':!![]},{'name':'value','meowKey':a206_0x48fe87(0x22b),'type':'string','description':a206_0x48fe87(0x1dd),'hidden':!![]},{'name':a206_0x48fe87(0x1d8),'meowKey':a206_0x48fe87(0x1d8),'type':a206_0x48fe87(0x22c),'description':'Tags','hidden':!![]},{'name':a206_0x48fe87(0x236),'meowKey':a206_0x48fe87(0x236),'type':'boolean','description':a206_0x48fe87(0x1d9),'hidden':!![]},{'name':a206_0x48fe87(0x20d),'meowKey':a206_0x48fe87(0x207),'type':'string','description':a206_0x48fe87(0x1e5),'hidden':!![]},{'name':'reveal','meowKey':a206_0x48fe87(0x1eb),'type':'boolean','description':a206_0x48fe87(0x244),'hidden':!![]},{'name':a206_0x48fe87(0x211),'meowKey':'force','type':'boolean','description':a206_0x48fe87(0x1e6),'hidden':!![]},{'name':a206_0x48fe87(0x21f),'meowKey':a206_0x48fe87(0x21f),'type':a206_0x48fe87(0x1ec),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':'remote','type':'boolean','description':a206_0x48fe87(0x21e),'hidden':!![]},{'name':a206_0x48fe87(0x1fa),'meowKey':a206_0x48fe87(0x1fa),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x209),'hidden':!![]},{'name':a206_0x48fe87(0x204),'meowKey':a206_0x48fe87(0x1ee),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x206),'hidden':!![]},{'name':a206_0x48fe87(0x21b),'meowKey':'label','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23e),'hidden':!![]},{'name':'parent-id','meowKey':a206_0x48fe87(0x22e),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x229),'hidden':!![]},{'name':a206_0x48fe87(0x252),'meowKey':'sort','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x218),'hidden':!![]},{'name':a206_0x48fe87(0x247),'meowKey':a206_0x48fe87(0x24b),'type':'string','description':a206_0x48fe87(0x235),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x48fe87(0x205),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1df),'hidden':!![]},{'name':a206_0x48fe87(0x24c),'meowKey':'expectedChildrenCount','type':a206_0x48fe87(0x22c),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a206_0x48fe87(0x240),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x221),'hidden':!![]},{'name':a206_0x48fe87(0x1f2),'meowKey':'taskId','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f1),'hidden':!![]},{'name':a206_0x48fe87(0x245),'meowKey':a206_0x48fe87(0x1f0),'type':'string','description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x214),'meowKey':'functionNode','type':a206_0x48fe87(0x22c),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a206_0x48fe87(0x1e7),a206_0x48fe87(0x24f),a206_0x48fe87(0x1f6),a206_0x48fe87(0x23f),'jq',a206_0x48fe87(0x224),a206_0x48fe87(0x20e),a206_0x48fe87(0x1f8),'ci']);function a206_0x1174(_0x4ca893,_0x143076){_0x4ca893=_0x4ca893-0x1d4;const _0x1dd899=a206_0x1dd8();let _0x1174e8=_0x1dd899[_0x4ca893];return _0x1174e8;}function a206_0x1dd8(){const _0x18507c=['expected-count','expectPath','Expected\x20affected\x20count','fromEnv','Alias\x20for\x20--non-interactive','Verbose\x20output','schemas','description-file','Clear','from-env','yes','Name','Watch\x20mode','force','dbId','operation','function-node','db-id','641440VJdTMa','target','Menu\x20sort\x20value','page','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','label','json\x20|\x20pretty\x20|\x20compress','Dataset\x20code','Use\x20remote','confirm','Use\x20global\x20config\x20scope','Comma-separated\x20menu\x20IDs','Show\x20help','nonInteractive','dry-run','dbid','clear','Operation\x20type','file','Parent\x20menu\x20id','Page\x20number','value','string','1624704VPFhOR','parentId','sqlName','Description','Override\x20appcode','940896vzcFFW','SQL\x20name','sqlname','Expected\x20current\x20parent\x20menu\x20id','stdin','14LedBnX','project','skipImports','Schemas','SQL\x20string','skip-imports','Code\x20filter','Menu\x20label','format','menuIds','Skip\x20import\x20generation','params','447096UDbZCh','Reveal\x20sensitive\x20value','operation-type','keyword','expect-parent-id','code','name','JSON\x20params','expectParentId','expected-children-count','Title','Enable\x20BFF\x20save','app','all','12uFKeJd','sort','enable-bff-save','3368850XUmKWA','sqlcode','SQL\x20code','enableBffSave','Use\x20project\x20config\x20scope','title','tags','Read\x20value\x20from\x20stdin','741278aGWgsi','<name>','rabetbase','Config\x20value','datasetcode','Expected\x20current\x20menu\x20path','Select\x20app\x20profile\x20by\x20name','Type\x20filter','pagesize','meowKey','788605SvBTYy','Read\x20value\x20from\x20environment\x20variable','Force\x20overwrite','appcode','watch','sql','sql-name','reveal','boolean','Keyword\x20filter','expectedCount','Force\x20non-interactive\x20mode\x20(CI)','operationType','Asynchronous\x20task\x20ID','task-id','descriptionFile','Target\x20path','Output\x20format','env','help','non-interactive','global','verbose','Record\x20ID','DB\x20ID','Output\x20path','type','Description\x20file','Environment','output','<expr>','<code>'];a206_0x1dd8=function(){return _0x18507c;};return a206_0x1dd8();}export function buildMeowFlags(){const _0x1a26d0=a206_0x48fe87;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x2e1f16=>[_0x2e1f16[_0x1a26d0(0x1e3)],{'type':_0x2e1f16[_0x1a26d0(0x1fe)]}]));}
|
|
1
|
+
const a214_0x55a419=a214_0x4d26;function a214_0x4d26(_0x3ace9e,_0x1624e3){_0x3ace9e=_0x3ace9e-0x1f3;const _0x5426ef=a214_0x5426();let _0x4d2682=_0x5426ef[_0x3ace9e];return _0x4d2682;}(function(_0x2dbe91,_0x4f2756){const _0x1aa193=a214_0x4d26,_0x450370=_0x2dbe91();while(!![]){try{const _0x3bba2a=parseInt(_0x1aa193(0x1f4))/0x1+-parseInt(_0x1aa193(0x22e))/0x2+parseInt(_0x1aa193(0x267))/0x3*(-parseInt(_0x1aa193(0x24e))/0x4)+parseInt(_0x1aa193(0x21c))/0x5*(-parseInt(_0x1aa193(0x1f7))/0x6)+-parseInt(_0x1aa193(0x218))/0x7*(-parseInt(_0x1aa193(0x240))/0x8)+-parseInt(_0x1aa193(0x25f))/0x9*(-parseInt(_0x1aa193(0x235))/0xa)+parseInt(_0x1aa193(0x244))/0xb*(parseInt(_0x1aa193(0x217))/0xc);if(_0x3bba2a===_0x4f2756)break;else _0x450370['push'](_0x450370['shift']());}catch(_0x5e48cd){_0x450370['push'](_0x450370['shift']());}}}(a214_0x5426,0xd255e));export const CLI_BIN_NAME=a214_0x55a419(0x241);export const CLI_DISPLAY_NAME=a214_0x55a419(0x252);export const NPM_PACKAGE_NAME=a214_0x55a419(0x253);function a214_0x5426(){const _0x1cb119=['function-node','description-file','Read\x20value\x20from\x20environment\x20variable','description','sql-name','label','json\x20|\x20pretty\x20|\x20compress','1291340ygZMzK','string','parentId','schemas','DB\x20ID','SQL\x20code','Use\x20project\x20config\x20scope','170ojRoAn','dry-run','descriptionFile','Tags','functionNode','Page\x20number','tags','Expected\x20current\x20child\x20count','confirm','clear','Output\x20path','416viFLnQ','rabetbase','Show\x20help','all','7961129KfALQS','appcode','Expected\x20affected\x20count','Alias\x20for\x20--non-interactive','Name','Description\x20file','pagesize','expected-children-count','JSON\x20params','key','4VoNSHZ','File\x20path','enable-bff-save','Config\x20key','Rabetbase\x20CLI','@lovrabet/rabetbase-cli','Preview\x20operation\x20without\x20executing','Use\x20global\x20config\x20scope','Skip\x20confirmation\x20for\x20high-risk\x20writes','<name>','db-id','Parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','target','type','remote','title','448776dVxFom','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expectParentId','menuIds','app','Schemas','Environment','code','1913523uMFcYX','parent-id','sql','sqlcode','Asynchronous\x20task\x20ID','Dataset\x20code','file','expectedCount','format','Record\x20ID','Title','operation-type','taskId','Force\x20overwrite','1019627AVYiIa','operation','nonInteractive','12bEgnVG','Menu\x20sort\x20value','project','Code\x20filter','<code>','help','Skip\x20import\x20generation','verbose','map','sqlName','Expected\x20current\x20menu\x20path','Config\x20value','page','Apply\x20to\x20all','name','output','env','Watch\x20mode','Target\x20path','SQL\x20name','Read\x20value\x20from\x20stdin','skip-imports','<expr>','Output\x20format','Operation\x20type','watch','stdin','boolean','reveal','fromEnv','Verbose\x20output','keyword','24OwmJBy','65779OGOtoK','Keyword\x20filter','Clear','Page\x20size','4145980zMyQOU','sort','dbid','sqlname','Enable\x20BFF\x20save','Function\x20node','force','datasetcode','yes','Confirm\x20destructive\x20action','params'];a214_0x5426=function(){return _0x1cb119;};return a214_0x5426();}export const GLOBAL_FLAGS=[{'name':a214_0x55a419(0x245),'meowKey':a214_0x55a419(0x245),'type':'string','description':'Override\x20appcode','hint':a214_0x55a419(0x1fb)},{'name':a214_0x55a419(0x263),'meowKey':a214_0x55a419(0x263),'type':a214_0x55a419(0x22f),'description':'Select\x20app\x20profile\x20by\x20name','hint':a214_0x55a419(0x257)},{'name':'env','meowKey':a214_0x55a419(0x207),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x265),'hint':'production\x20|\x20daily'},{'name':a214_0x55a419(0x26f),'meowKey':'format','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20e),'hint':a214_0x55a419(0x22d)},{'name':'jq','meowKey':'jq','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x260),'hint':a214_0x55a419(0x20d)},{'name':'dry-run','meowKey':'dryRun','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x254)},{'name':'yes','meowKey':'yes','type':'boolean','description':a214_0x55a419(0x256)},{'name':'non-interactive','meowKey':a214_0x55a419(0x1f6),'type':'boolean','description':a214_0x55a419(0x25a)},{'name':'global','meowKey':'global','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x255)},{'name':a214_0x55a419(0x1f9),'meowKey':'project','type':'boolean','description':a214_0x55a419(0x234)},{'name':'ci','meowKey':'ci','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x247),'hidden':!![]},{'name':a214_0x55a419(0x1fc),'meowKey':'help','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x242)},{'name':a214_0x55a419(0x205),'meowKey':'name','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x248),'hidden':!![]},{'name':'title','meowKey':a214_0x55a419(0x25e),'type':'string','description':a214_0x55a419(0x271),'hidden':!![]},{'name':a214_0x55a419(0x23e),'meowKey':a214_0x55a419(0x23e),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x21a),'hidden':!![]},{'name':a214_0x55a419(0x210),'meowKey':a214_0x55a419(0x210),'type':'boolean','description':a214_0x55a419(0x208),'hidden':!![]},{'name':a214_0x55a419(0x206),'meowKey':a214_0x55a419(0x206),'type':'string','description':a214_0x55a419(0x23f),'hidden':!![]},{'name':a214_0x55a419(0x226),'meowKey':a214_0x55a419(0x226),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x24c),'hidden':!![]},{'name':a214_0x55a419(0x223),'meowKey':a214_0x55a419(0x223),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x26c),'hidden':!![]},{'name':'all','meowKey':a214_0x55a419(0x243),'type':'boolean','description':a214_0x55a419(0x204),'hidden':!![]},{'name':a214_0x55a419(0x250),'meowKey':'enableBffSave','type':'boolean','description':a214_0x55a419(0x220),'hidden':!![]},{'name':'id','meowKey':'id','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x270),'hidden':!![]},{'name':a214_0x55a419(0x25c),'meowKey':a214_0x55a419(0x25c),'type':a214_0x55a419(0x22f),'description':'Type\x20filter','hidden':!![]},{'name':a214_0x55a419(0x26d),'meowKey':a214_0x55a419(0x26d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x24f),'hidden':!![]},{'name':a214_0x55a419(0x26a),'meowKey':a214_0x55a419(0x26a),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x233),'hidden':!![]},{'name':a214_0x55a419(0x22b),'meowKey':a214_0x55a419(0x200),'type':a214_0x55a419(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':a214_0x55a419(0x21f),'meowKey':a214_0x55a419(0x21f),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20a),'hidden':!![]},{'name':a214_0x55a419(0x258),'meowKey':'dbId','type':a214_0x55a419(0x22f),'description':'DB\x20ID','hidden':!![]},{'name':a214_0x55a419(0x21e),'meowKey':a214_0x55a419(0x21e),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x232),'hidden':!![]},{'name':a214_0x55a419(0x22a),'meowKey':'description','type':a214_0x55a419(0x22f),'description':'Description','hidden':!![]},{'name':a214_0x55a419(0x228),'meowKey':a214_0x55a419(0x237),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x249),'hidden':!![]},{'name':a214_0x55a419(0x203),'meowKey':a214_0x55a419(0x203),'type':'string','description':a214_0x55a419(0x23a),'hidden':!![]},{'name':a214_0x55a419(0x24a),'meowKey':a214_0x55a419(0x24a),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x21b),'hidden':!![]},{'name':a214_0x55a419(0x216),'meowKey':a214_0x55a419(0x216),'type':'string','description':a214_0x55a419(0x219),'hidden':!![]},{'name':a214_0x55a419(0x266),'meowKey':'code','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x1fa),'hidden':!![]},{'name':a214_0x55a419(0x269),'meowKey':a214_0x55a419(0x269),'type':a214_0x55a419(0x22f),'description':'SQL\x20string','hidden':!![]},{'name':a214_0x55a419(0x231),'meowKey':'schemas','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x264),'hidden':!![]},{'name':a214_0x55a419(0x1f5),'meowKey':a214_0x55a419(0x1f5),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20f),'hidden':!![]},{'name':a214_0x55a419(0x25b),'meowKey':a214_0x55a419(0x25b),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x209),'hidden':!![]},{'name':a214_0x55a419(0x20c),'meowKey':'skipImports','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x1fd),'hidden':!![]},{'name':a214_0x55a419(0x24d),'meowKey':a214_0x55a419(0x24d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x251),'hidden':!![]},{'name':'value','meowKey':'value','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x202),'hidden':!![]},{'name':a214_0x55a419(0x23b),'meowKey':'tags','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x238),'hidden':!![]},{'name':a214_0x55a419(0x211),'meowKey':a214_0x55a419(0x211),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x20b),'hidden':!![]},{'name':'from-env','meowKey':a214_0x55a419(0x214),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x229),'hidden':!![]},{'name':a214_0x55a419(0x213),'meowKey':a214_0x55a419(0x213),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a214_0x55a419(0x222),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x1f3),'hidden':!![]},{'name':a214_0x55a419(0x23d),'meowKey':a214_0x55a419(0x23d),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x225),'hidden':!![]},{'name':a214_0x55a419(0x25d),'meowKey':a214_0x55a419(0x25d),'type':a214_0x55a419(0x212),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a214_0x55a419(0x1fe),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x215),'hidden':!![]},{'name':'expected-count','meowKey':a214_0x55a419(0x26e),'type':'string','description':a214_0x55a419(0x246),'hidden':!![]},{'name':a214_0x55a419(0x22c),'meowKey':a214_0x55a419(0x22c),'type':'string','description':'Menu\x20label','hidden':!![]},{'name':a214_0x55a419(0x268),'meowKey':a214_0x55a419(0x230),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x259),'hidden':!![]},{'name':'sort','meowKey':a214_0x55a419(0x21d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x1f8),'hidden':!![]},{'name':'expect-parent-id','meowKey':a214_0x55a419(0x261),'type':a214_0x55a419(0x22f),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x201),'hidden':!![]},{'name':a214_0x55a419(0x24b),'meowKey':'expectedChildrenCount','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x23c),'hidden':!![]},{'name':'menu-ids','meowKey':a214_0x55a419(0x262),'type':a214_0x55a419(0x22f),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a214_0x55a419(0x273),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x26b),'hidden':!![]},{'name':a214_0x55a419(0x272),'meowKey':'operationType','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20f),'hidden':!![]},{'name':a214_0x55a419(0x227),'meowKey':a214_0x55a419(0x239),'type':'string','description':a214_0x55a419(0x221),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a214_0x55a419(0x245),'app','env',a214_0x55a419(0x26f),'jq',a214_0x55a419(0x236),a214_0x55a419(0x224),'non-interactive','ci']);export function buildMeowFlags(){const _0x255389=a214_0x55a419;return Object['fromEntries'](GLOBAL_FLAGS[_0x255389(0x1ff)](_0x40b72b=>[_0x40b72b['meowKey'],{'type':_0x40b72b[_0x255389(0x25c)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a215_0x25c5ed=a215_0x5605;(function(_0x4a2b07,_0x1c0b05){const _0x49e66c=a215_0x5605,_0x3a173a=_0x4a2b07();while(!![]){try{const _0xf936cc=parseInt(_0x49e66c(0x126))/0x1+-parseInt(_0x49e66c(0x128))/0x2*(-parseInt(_0x49e66c(0x123))/0x3)+parseInt(_0x49e66c(0x12a))/0x4+parseInt(_0x49e66c(0x129))/0x5+parseInt(_0x49e66c(0x120))/0x6+-parseInt(_0x49e66c(0x125))/0x7+parseInt(_0x49e66c(0x124))/0x8*(-parseInt(_0x49e66c(0x121))/0x9);if(_0xf936cc===_0x1c0b05)break;else _0x3a173a['push'](_0x3a173a['shift']());}catch(_0x51a29a){_0x3a173a['push'](_0x3a173a['shift']());}}}(a215_0x2854,0x60ed1));function a215_0x5605(_0x3764a2,_0x4564fc){_0x3764a2=_0x3764a2-0x120;const _0x285431=a215_0x2854();let _0x5605d9=_0x285431[_0x3764a2];return _0x5605d9;}import{DEFAULT_API_DIR}from'../constant/paths.js';function a215_0x2854(){const _0x32c46a=['83299UYWCKv','compress','359208pxKyId','3833060Smpirl','601808tJDklF','3180012WuTRMB','72TNumUl','write','3aakZND','1005344LySgze','2153312lTgzcz'];a215_0x2854=function(){return _0x32c46a;};return a215_0x2854();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a215_0x25c5ed(0x127),'locale':'en-US','riskLevel':a215_0x25c5ed(0x122),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a215_0x25c5ed(0x127);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0x1d4e75=a216_0x3276;(function(_0x27e564,_0x129904){const _0x311bed=a216_0x3276,_0x1cd044=_0x27e564();while(!![]){try{const _0x187e5a=parseInt(_0x311bed(0x100))/0x1*(-parseInt(_0x311bed(0x108))/0x2)+parseInt(_0x311bed(0x103))/0x3+parseInt(_0x311bed(0x111))/0x4+parseInt(_0x311bed(0x10c))/0x5*(-parseInt(_0x311bed(0x10d))/0x6)+-parseInt(_0x311bed(0x113))/0x7*(parseInt(_0x311bed(0x102))/0x8)+parseInt(_0x311bed(0xfe))/0x9*(-parseInt(_0x311bed(0x109))/0xa)+parseInt(_0x311bed(0x112))/0xb;if(_0x187e5a===_0x129904)break;else _0x1cd044['push'](_0x1cd044['shift']());}catch(_0x330938){_0x1cd044['push'](_0x1cd044['shift']());}}}(a216_0x4275,0x8e920));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a216_0x3276(_0x2c19d4,_0xcc789e){_0x2c19d4=_0x2c19d4-0xfe;const _0x427503=a216_0x4275();let _0x32763d=_0x427503[_0x2c19d4];return _0x32763d;}export function initDomains(_0x237cbf){const _0x1f5041=a216_0x3276;customApiDomain=_0x237cbf?.[_0x1f5041(0x104)],customUserDomain=_0x237cbf?.[_0x1f5041(0x107)],customRuntimeDomain=_0x237cbf?.[_0x1f5041(0x106)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a216_0x1d4e75(0x10a):a216_0x1d4e75(0x10e));function a216_0x4275(){const _0x4fd74a=['465720gwbYbe','9825651jsrGvd','84UXMDdk','2304REIvor','https://app.lovrabet.com','16XqyGoY','/app/','411656gXXOJx','3034872byQatP','apiDomain','https://daily.lovrabet.com','runtimeDomain','userDomain','19636BGnwlK','1230fAlayT','https://user.lovrabet.com','https://daily-runtime.lovrabet.com','455lslpMM','41622aTFALL','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','trim'];a216_0x4275=function(){return _0x4fd74a;};return a216_0x4275();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a216_0x1d4e75(0x10f):a216_0x1d4e75(0x10b));export const getAppDomain=()=>isProduction(getEnv())?a216_0x1d4e75(0xff):a216_0x1d4e75(0x105);export const getAppBaseUrl=_0xa8341b=>{const _0x1e5e6f=a216_0x1d4e75,_0x227bd0=encodeURIComponent(_0xa8341b[_0x1e5e6f(0x110)]());return isProduction(getEnv())?getAppDomain()+_0x1e5e6f(0x101)+_0x227bd0:getAppDomain()+'/web-app/app/'+_0x227bd0;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a217_0x5b6c91=a217_0x2e9b;function a217_0x597f(){const _0x2d1141=['375884EJldtF','678363MKPpHV','development','124724PEenax','6JzuHwg','209149YfdLNO','18yJEZpl','734810LLIibq','dev','652329ylHQXS','production','daily','1797184DOHxSf'];a217_0x597f=function(){return _0x2d1141;};return a217_0x597f();}(function(_0x36709d,_0x173298){const _0x344428=a217_0x2e9b,_0x1e16dd=_0x36709d();while(!![]){try{const _0x2a9a23=-parseInt(_0x344428(0x8c))/0x1+-parseInt(_0x344428(0x94))/0x2+-parseInt(_0x344428(0x90))/0x3+parseInt(_0x344428(0x97))/0x4+parseInt(_0x344428(0x8e))/0x5+-parseInt(_0x344428(0x8b))/0x6*(-parseInt(_0x344428(0x95))/0x7)+parseInt(_0x344428(0x93))/0x8*(parseInt(_0x344428(0x8d))/0x9);if(_0x2a9a23===_0x173298)break;else _0x1e16dd['push'](_0x1e16dd['shift']());}catch(_0x2ff1de){_0x1e16dd['push'](_0x1e16dd['shift']());}}}(a217_0x597f,0x1acf6));export const RABETBASE_ENV_VALUES=[a217_0x5b6c91(0x91),a217_0x5b6c91(0x92)];function a217_0x2e9b(_0x96bdb5,_0x36ecbe){_0x96bdb5=_0x96bdb5-0x8b;const _0x597fc8=a217_0x597f();let _0x2e9b6c=_0x597fc8[_0x96bdb5];return _0x2e9b6c;}export function normalizeEnv(_0x5184dd){const _0x48696c=a217_0x5b6c91;return _0x5184dd==='online'?_0x48696c(0x91):_0x5184dd;}export function isProduction(_0x19778d){const _0x54ff33=a217_0x5b6c91;return normalizeEnv(_0x19778d)===_0x54ff33(0x91);}export function isDaily(_0x161b9c){return normalizeEnv(_0x161b9c)==='daily';}export function isDev(_0xa1e9db){const _0x553c2d=a217_0x5b6c91,_0xe4a187=normalizeEnv(_0xa1e9db);return _0xe4a187===_0x553c2d(0x96)||_0xe4a187===_0x553c2d(0x8f);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a217_0x5b6c91(0x91));export function getEnv(){return env;}export function initEnv(_0x45f19a){env=normalizeEnv(_0x45f19a);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a218_0x32f2(){const _0x1e8ea5=['json','7418412LFVVwB','1564752wzBVvQ','63CehxDv','10HZlpcd','8109222dPRoTt','45900760efamgT','2716JnAZoM','5KmfCDn','273037ZZraXi','978344ykfLLD'];a218_0x32f2=function(){return _0x1e8ea5;};return a218_0x32f2();}const a218_0x2ecf64=a218_0x5b6b;function a218_0x5b6b(_0x111c15,_0x23ec48){_0x111c15=_0x111c15-0x66;const _0x32f2b8=a218_0x32f2();let _0x5b6bc7=_0x32f2b8[_0x111c15];return _0x5b6bc7;}(function(_0x1c6ef8,_0xe9e805){const _0x442b3a=a218_0x5b6b,_0x3792b8=_0x1c6ef8();while(!![]){try{const _0x128e79=parseInt(_0x442b3a(0x6f))/0x1*(-parseInt(_0x442b3a(0x6a))/0x2)+-parseInt(_0x442b3a(0x69))/0x3*(parseInt(_0x442b3a(0x6d))/0x4)+parseInt(_0x442b3a(0x6e))/0x5*(-parseInt(_0x442b3a(0x6b))/0x6)+-parseInt(_0x442b3a(0x68))/0x7+-parseInt(_0x442b3a(0x70))/0x8+-parseInt(_0x442b3a(0x67))/0x9+parseInt(_0x442b3a(0x6c))/0xa;if(_0x128e79===_0xe9e805)break;else _0x3792b8['push'](_0x3792b8['shift']());}catch(_0x154dd7){_0x3792b8['push'](_0x3792b8['shift']());}}}(a218_0x32f2,0xa8366));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a218_0x2ecf64(0x66),'pretty','compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a219_0x22651c=a219_0x9209;(function(_0x3f37e7,_0x2ebc7c){const _0x3d1a3f=a219_0x9209,_0x3e8986=_0x3f37e7();while(!![]){try{const _0x37b1d6=parseInt(_0x3d1a3f(0xf6))/0x1*(parseInt(_0x3d1a3f(0xf5))/0x2)+parseInt(_0x3d1a3f(0xfb))/0x3*(-parseInt(_0x3d1a3f(0xf8))/0x4)+parseInt(_0x3d1a3f(0xf7))/0x5+-parseInt(_0x3d1a3f(0xf2))/0x6+parseInt(_0x3d1a3f(0xf3))/0x7+parseInt(_0x3d1a3f(0xfa))/0x8+-parseInt(_0x3d1a3f(0xf4))/0x9*(parseInt(_0x3d1a3f(0xfc))/0xa);if(_0x37b1d6===_0x2ebc7c)break;else _0x3e8986['push'](_0x3e8986['shift']());}catch(_0x523814){_0x3e8986['push'](_0x3e8986['shift']());}}}(a219_0x5adb,0x8c44b));export const DEFAULT_API_DIR=a219_0x22651c(0xf9);function a219_0x9209(_0x54d38a,_0x43c58a){_0x54d38a=_0x54d38a-0xf2;const _0x5adbfc=a219_0x5adb();let _0x920974=_0x5adbfc[_0x54d38a];return _0x920974;}function a219_0x5adb(){const _0x4614c7=['1086859Yudhzq','2632010jIInvK','1380wEdenn','./src/api','4550496CrtJBc','6882BZqbLv','10jDdHca','3735636kREEZP','4750725yOdYQw','7849557apEAzA','2iBwKeu'];a219_0x5adb=function(){return _0x4614c7;};return a219_0x5adb();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x3d6da5=a220_0xeb4e;function a220_0x4484(){const _0x3ad50c=['24eaUOuL','3063072DiJpwq','2684832wrxMNR','723556paXDov','5912613bNMukV','7tbAuib','570vhvhZE','1258378hluZvo','10pXucac','high-risk-write','48WhMXUC','4074YVtLQK','read','132666lycZOj'];a220_0x4484=function(){return _0x3ad50c;};return a220_0x4484();}function a220_0xeb4e(_0xd83a15,_0x28b21b){_0xd83a15=_0xd83a15-0xd9;const _0x4484f6=a220_0x4484();let _0xeb4e7f=_0x4484f6[_0xd83a15];return _0xeb4e7f;}(function(_0x351f79,_0x3af4b4){const _0x1dc6a9=a220_0xeb4e,_0x171d16=_0x351f79();while(!![]){try{const _0x47df35=-parseInt(_0x1dc6a9(0xe4))/0x1+-parseInt(_0x1dc6a9(0xe0))/0x2*(-parseInt(_0x1dc6a9(0xe1))/0x3)+-parseInt(_0x1dc6a9(0xe2))/0x4+-parseInt(_0x1dc6a9(0xd9))/0x5*(parseInt(_0x1dc6a9(0xde))/0x6)+-parseInt(_0x1dc6a9(0xe6))/0x7*(-parseInt(_0x1dc6a9(0xe3))/0x8)+-parseInt(_0x1dc6a9(0xe5))/0x9*(-parseInt(_0x1dc6a9(0xdb))/0xa)+parseInt(_0x1dc6a9(0xda))/0xb*(parseInt(_0x1dc6a9(0xdd))/0xc);if(_0x47df35===_0x3af4b4)break;else _0x171d16['push'](_0x171d16['shift']());}catch(_0x5d9472){_0x171d16['push'](_0x171d16['shift']());}}}(a220_0x4484,0x65187));export const RISK_LEVEL_VALUES=[a220_0x3d6da5(0xdf),'write',a220_0x3d6da5(0xdc)];
|