@lovrabet/rabetbase-cli 2.4.3 → 2.4.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.d.ts +2 -0
- package/lib/commands/db/diff-refresh-start.js +1 -0
- package/lib/commands/db/diff-refresh-status.d.ts +2 -0
- package/lib/commands/db/diff-refresh-status.js +1 -0
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-create.d.ts +2 -0
- package/lib/commands/notification/config-create.js +1 -0
- package/lib/commands/notification/config-delete.d.ts +2 -0
- package/lib/commands/notification/config-delete.js +1 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.d.ts +2 -0
- package/lib/commands/notification/config-update.js +1 -0
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.d.ts +97 -0
- package/lib/commands/notification/shared.js +1 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +1 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.d.ts +11 -0
- package/lib/commands/project/create/materialize-project-template.js +1 -0
- package/lib/commands/project/create/project-name.d.ts +2 -0
- package/lib/commands/project/create/project-name.js +1 -0
- package/lib/commands/project/create/project-template-archive.d.ts +6 -0
- package/lib/commands/project/create/project-template-archive.js +1 -0
- package/lib/commands/project/create/project-template-path.d.ts +1 -3
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.d.ts +2 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +2 -0
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +29 -2
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +13 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -4
- package/skills/rabetbase/SKILL.md +33 -22
- package/skills/rabetbase/guides/backend-function.md +5 -3
- package/skills/rabetbase/guides/bff-creation-workflow.md +2 -2
- package/skills/rabetbase/guides/conflict-detection.md +2 -2
- package/skills/rabetbase/guides/database-connection-workflow.md +39 -5
- package/skills/rabetbase/guides/react-custom-page-workflow.md +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
|
-
function
|
|
1
|
+
function a202_0x587c(){const _0xbfc685=['54GYicWz','3554VHkJlX','295888vZMouL','639006ADdrHi','1725910MQAsKJ','45970PlzrIr','636pjqFMl','13NEiHvn','48vPcLnG','2041782geoTxk','7GlZExQ','8734EYSMrg'];a202_0x587c=function(){return _0xbfc685;};return a202_0x587c();}(function(_0x509180,_0x49dca6){const _0x1b0a32=a202_0x43fd,_0x5e520=_0x509180();while(!![]){try{const _0x5d8b9f=-parseInt(_0x1b0a32(0x1ac))/0x1*(parseInt(_0x1b0a32(0x1b2))/0x2)+parseInt(_0x1b0a32(0x1a8))/0x3+parseInt(_0x1b0a32(0x1ad))/0x4*(-parseInt(_0x1b0a32(0x1aa))/0x5)+parseInt(_0x1b0a32(0x1ae))/0x6*(-parseInt(_0x1b0a32(0x1af))/0x7)+parseInt(_0x1b0a32(0x1a7))/0x8*(parseInt(_0x1b0a32(0x1b1))/0x9)+parseInt(_0x1b0a32(0x1a9))/0xa+parseInt(_0x1b0a32(0x1b0))/0xb*(parseInt(_0x1b0a32(0x1ab))/0xc);if(_0x5d8b9f===_0x49dca6)break;else _0x5e520['push'](_0x5e520['shift']());}catch(_0x31aca3){_0x5e520['push'](_0x5e520['shift']());}}}(a202_0x587c,0x2aef9));function a202_0x43fd(_0x19715b,_0x58dbe6){_0x19715b=_0x19715b-0x1a7;const _0x587c9a=a202_0x587c();let _0x43fdce=_0x587c9a[_0x19715b];return _0x43fdce;}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x4eb350=a203_0x36d2;(function(_0x390143,_0x5b22dc){const _0x545ec7=a203_0x36d2,_0x3208d1=_0x390143();while(!![]){try{const _0xbda5ce=-parseInt(_0x545ec7(0x10e))/0x1*(-parseInt(_0x545ec7(0x10d))/0x2)+-parseInt(_0x545ec7(0xfb))/0x3+parseInt(_0x545ec7(0x101))/0x4+-parseInt(_0x545ec7(0xf6))/0x5+-parseInt(_0x545ec7(0x106))/0x6*(-parseInt(_0x545ec7(0xfd))/0x7)+parseInt(_0x545ec7(0xff))/0x8+-parseInt(_0x545ec7(0xfa))/0x9*(-parseInt(_0x545ec7(0x104))/0xa);if(_0xbda5ce===_0x5b22dc)break;else _0x3208d1['push'](_0x3208d1['shift']());}catch(_0x1ac072){_0x3208d1['push'](_0x3208d1['shift']());}}}(a203_0x10cc,0xb7efd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a203_0x36d2(_0x12e2e0,_0x3b68a3){_0x12e2e0=_0x12e2e0-0xf6;const _0x10cc59=a203_0x10cc();let _0x36d270=_0x10cc59[_0x12e2e0];return _0x36d270;}function a203_0x10cc(){const _0x59e7e3=['apiError','45zAyVKn','485703iurJAK','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','476BdgxYn',',\x20received\x20','6722672YqKwvb','appCode','1092900LxNWWZ','compress','cookie','1404290sxBlif','status','4878WIiPsb','trim','isTerminal','task','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','str','taskId','2ohsHIQ','23294QuGBZw','4894880ROXkmB','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task-id'];a203_0x10cc=function(){return _0x59e7e3;};return a203_0x10cc();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a203_0x4eb350(0x109),'command':a203_0x4eb350(0x105),'description':a203_0x4eb350(0xf7),'risk':'read','defaultOutputFormat':a203_0x4eb350(0x102),'structuredErrors':!![],'flags':[{'name':a203_0x4eb350(0xf8),'type':'string','required':!![],'description':a203_0x4eb350(0xfc)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x56d225){const _0x16bba4=a203_0x4eb350;if(!_0x56d225['str'](_0x16bba4(0xf8))[_0x16bba4(0x107)]())throw CliErrors['flagMissing'](_0x16bba4(0xf8));},async 'execute'(_0x481eb5){const _0x24c4fd=a203_0x4eb350,_0x588d98=_0x481eb5[_0x24c4fd(0x10b)](_0x24c4fd(0xf8))[_0x24c4fd(0x107)](),_0x13116c=normalizeAsyncTask(await getAsyncTaskStatus(_0x588d98,_0x481eb5[_0x24c4fd(0x100)],_0x481eb5[_0x24c4fd(0x103)]));if(_0x13116c[_0x24c4fd(0x10c)]!==_0x588d98)throw CliErrors[_0x24c4fd(0xf9)](_0x24c4fd(0x10a)+_0x588d98+_0x24c4fd(0xfe)+_0x13116c[_0x24c4fd(0x10c)]+'.');const _0x4d1a44=buildAsyncTaskStatusCommand(_0x13116c[_0x24c4fd(0x10c)],_0x481eb5[_0x24c4fd(0x100)]);return{'ok':!![],'message':asyncTaskMessage(_0x13116c),'data':{'appCode':_0x481eb5[_0x24c4fd(0x100)],..._0x13116c,'query':_0x13116c[_0x24c4fd(0x108)]?null:{'command':_0x4d1a44}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x260b15,_0x290d9e){const _0x5759b3=a204_0x2906,_0x30748a=_0x260b15();while(!![]){try{const _0x5300aa=parseInt(_0x5759b3(0x19f))/0x1*(parseInt(_0x5759b3(0x19b))/0x2)+-parseInt(_0x5759b3(0x19c))/0x3*(parseInt(_0x5759b3(0x199))/0x4)+-parseInt(_0x5759b3(0x19a))/0x5+-parseInt(_0x5759b3(0x1a0))/0x6*(-parseInt(_0x5759b3(0x198))/0x7)+-parseInt(_0x5759b3(0x19e))/0x8+parseInt(_0x5759b3(0x19d))/0x9+parseInt(_0x5759b3(0x197))/0xa;if(_0x5300aa===_0x290d9e)break;else _0x30748a['push'](_0x30748a['shift']());}catch(_0xb9bb57){_0x30748a['push'](_0x30748a['shift']());}}}(a204_0x2721,0xe817f));function a204_0x2721(){const _0x57b0b1=['10851327KrEkQc','10810024YdlCco','1VWPxPK','96PjdXJb','16673570lzjyiW','449617Xnicea','680DHrVPR','8672605fjuKrW','1581366RQYSwr','11559daFZsR'];a204_0x2721=function(){return _0x57b0b1;};return a204_0x2721();}function a204_0x2906(_0x37a553,_0x5acb09){_0x37a553=_0x37a553-0x197;const _0x272166=a204_0x2721();let _0x290663=_0x272166[_0x37a553];return _0x290663;}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a205_0x2653fb=a205_0x14fa;(function(_0xa2f03,_0x28771a){const _0x1a9a99=a205_0x14fa,_0x1eb197=_0xa2f03();while(!![]){try{const _0x53cd7a=-parseInt(_0x1a9a99(0x143))/0x1+-parseInt(_0x1a9a99(0x151))/0x2*(parseInt(_0x1a9a99(0x149))/0x3)+parseInt(_0x1a9a99(0x13f))/0x4*(parseInt(_0x1a9a99(0x142))/0x5)+-parseInt(_0x1a9a99(0x14e))/0x6+parseInt(_0x1a9a99(0x14b))/0x7*(parseInt(_0x1a9a99(0x13e))/0x8)+-parseInt(_0x1a9a99(0x146))/0x9*(-parseInt(_0x1a9a99(0x150))/0xa)+-parseInt(_0x1a9a99(0x152))/0xb*(parseInt(_0x1a9a99(0x147))/0xc);if(_0x53cd7a===_0x28771a)break;else _0x1eb197['push'](_0x1eb197['shift']());}catch(_0x3f3215){_0x1eb197['push'](_0x1eb197['shift']());}}}(a205_0x3939,0xae737));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a205_0x14fa(_0x47c3de,_0x7bdfd8){_0x47c3de=_0x47c3de-0x13d;const _0x3939b5=a205_0x3939();let _0x14fa25=_0x3939b5[_0x47c3de];return _0x14fa25;}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a205_0x3939(){const _0x3f1e03=['81QtSLfD','1572yEzHYt','tenant-code','3nDqCyZ','length','1675709bGRmSM','Pass\x20--tenant-code\x20<code>.','members-list','4809930PugjNE','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','1337170aMxWNy','1442256zcAhnV','30833KZCuVx','str','32BoQjKo','52604pqGkbT','tenant','flagMissing','415mPlTym','648007FOOZvp','Found\x20','Exact\x20tenant\x20code'];a205_0x3939=function(){return _0x3f1e03;};return a205_0x3939();}export const tenantMembersListDefinition={'service':a205_0x2653fb(0x140),'command':a205_0x2653fb(0x14d),'description':a205_0x2653fb(0x14f),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a205_0x2653fb(0x148),'type':'string','required':!![],'description':a205_0x2653fb(0x145)}],async 'validate'(_0x229c84){const _0x40acf9=a205_0x2653fb;if(!_0x229c84[_0x40acf9(0x13d)](_0x40acf9(0x148))['trim']())throw CliErrors[_0x40acf9(0x141)](_0x40acf9(0x148),_0x40acf9(0x14c));},async 'execute'(_0x191ff8){const _0x1ce295=a205_0x2653fb,_0x41d5d3=_0x191ff8[_0x1ce295(0x13d)](_0x1ce295(0x148))['trim'](),_0x93650a=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x41d5d3,_0x93650a);const _0x4aa015=projectTenantMembers(await listTenantDirectoryMembers(_0x41d5d3));return{'ok':!![],'data':{'tenantCode':_0x41d5d3,'items':_0x4aa015,'totalCount':_0x4aa015[_0x1ce295(0x14a)]},'message':_0x1ce295(0x144)+_0x4aa015['length']+'\x20tenant\x20member(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b0896,_0x27ea57){const _0x2efafb=a206_0x47fd,_0xf119e8=_0x5b0896();while(!![]){try{const _0x4f715c=-parseInt(_0x2efafb(0x1e4))/0x1*(parseInt(_0x2efafb(0x1e2))/0x2)+parseInt(_0x2efafb(0x1dc))/0x3*(parseInt(_0x2efafb(0x1eb))/0x4)+parseInt(_0x2efafb(0x1e6))/0x5+parseInt(_0x2efafb(0x1f5))/0x6*(parseInt(_0x2efafb(0x1f3))/0x7)+-parseInt(_0x2efafb(0x1e5))/0x8*(-parseInt(_0x2efafb(0x1ee))/0x9)+-parseInt(_0x2efafb(0x1e1))/0xa*(-parseInt(_0x2efafb(0x1f4))/0xb)+-parseInt(_0x2efafb(0x1f6))/0xc;if(_0x4f715c===_0x27ea57)break;else _0xf119e8['push'](_0xf119e8['shift']());}catch(_0x485e4a){_0xf119e8['push'](_0xf119e8['shift']());}}}(a206_0x4afb,0x80934));import{CliErrors}from'../../errors.js';function a206_0x47fd(_0x2b8f50,_0xefa7d0){_0x2b8f50=_0x2b8f50-0x1db;const _0x4afb3f=a206_0x4afb();let _0x47fdf4=_0x4afb3f[_0x2b8f50];return _0x47fdf4;}function textOrNull(_0x124421){const _0x4b845e=a206_0x47fd,_0x5e8b8b=_0x124421?.[_0x4b845e(0x1ea)]();return _0x5e8b8b?_0x5e8b8b:null;}export function projectTenantMembers(_0x57c763){const _0x3b49d3=a206_0x47fd,_0x85e9c7=new Map();for(const _0x124355 of _0x57c763){const _0x42c1bf=Number(_0x124355['userId']);if(!Number[_0x3b49d3(0x1de)](_0x42c1bf)||_0x42c1bf<=0x0)continue;const _0x314024={'userId':_0x42c1bf,'username':textOrNull(_0x124355['username']),'displayName':textOrNull(_0x124355[_0x3b49d3(0x1db)]),'role':_0x124355[_0x3b49d3(0x1df)]===!![]?_0x3b49d3(0x1e7):_0x3b49d3(0x1ec),'status':textOrNull(_0x124355[_0x3b49d3(0x1f1)])},_0x1cce3e=_0x85e9c7['get'](_0x42c1bf);if(!_0x1cce3e){_0x85e9c7['set'](_0x42c1bf,_0x314024);continue;}_0x1cce3e[_0x3b49d3(0x1ed)]??=_0x314024[_0x3b49d3(0x1ed)],_0x1cce3e[_0x3b49d3(0x1f2)]??=_0x314024['displayName'],_0x1cce3e[_0x3b49d3(0x1f1)]??=_0x314024[_0x3b49d3(0x1f1)];if(_0x314024['role']==='ADMIN')_0x1cce3e['role']=_0x3b49d3(0x1e7);}return[..._0x85e9c7[_0x3b49d3(0x1e3)]()][_0x3b49d3(0x1e9)]((_0x2bbd26,_0x3abaee)=>_0x2bbd26['userId']-_0x3abaee[_0x3b49d3(0x1f0)]);}export function assertTenantAccessible(_0x55d389,_0x423ba9){const _0x4bbe52=a206_0x47fd;if(_0x423ba9[_0x4bbe52(0x1e8)](_0x775f9e=>_0x775f9e[_0x4bbe52(0x1ef)]===_0x55d389))return;throw CliErrors[_0x4bbe52(0x1e0)](_0x4bbe52(0x1dd)+_0x55d389+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x4bbe52(0x1f7));}function a206_0x4afb(){const _0x1b8bc9=['4963iovuii','11iDvzUl','138soZvDq','27232908DkWcVO','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','nickname','1922562XBvdmf','Tenant\x20\x22','isFinite','adminFlag','validation','7305370epMiGh','30qABudj','values','2994hThOdZ','48xSrEHR','3498415ajvyoT','ADMIN','some','sort','trim','4WJCfaS','MEMBER','username','1130373qDFADj','tenantCode','userId','status','displayName'];a206_0x4afb=function(){return _0x1b8bc9;};return a206_0x4afb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x48d4e1=a207_0x351d;(function(_0x5500b2,_0x31dbd6){const _0xc000ee=a207_0x351d,_0x4d5197=_0x5500b2();while(!![]){try{const _0x1c502b=-parseInt(_0xc000ee(0xe0))/0x1+-parseInt(_0xc000ee(0xe2))/0x2+-parseInt(_0xc000ee(0xe8))/0x3+parseInt(_0xc000ee(0xdd))/0x4*(parseInt(_0xc000ee(0xea))/0x5)+-parseInt(_0xc000ee(0xdf))/0x6+parseInt(_0xc000ee(0xf4))/0x7*(-parseInt(_0xc000ee(0xf3))/0x8)+parseInt(_0xc000ee(0xe3))/0x9*(parseInt(_0xc000ee(0xe6))/0xa);if(_0x1c502b===_0x31dbd6)break;else _0x4d5197['push'](_0x4d5197['shift']());}catch(_0x401ac6){_0x4d5197['push'](_0x4d5197['shift']());}}}(a207_0x1123,0xeebd8));function a207_0x351d(_0x17593e,_0x45768c){_0x17593e=_0x17593e-0xdd;const _0x1123c0=a207_0x1123();let _0x351d3c=_0x1123c0[_0x17593e];return _0x351d3c;}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_0x48d4e1(0xee),CURRENT_BINDING_WARNING=a207_0x48d4e1(0xde);function readDingTalkUserId(_0x486936){const _0x105e95=a207_0x48d4e1,_0x3900b3=_0x486936['str']('ding-talk-user-id')[_0x105e95(0xec)]();if(!_0x3900b3)throw CliErrors['validation'](_0x105e95(0xef),_0x105e95(0xf1));return _0x3900b3;}function buildBindingData(_0x3b5291,_0x8b7d23){const _0x186e33=a207_0x48d4e1;return{'operation':_0x186e33(0xeb),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x3b5291},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x3b5291,'bound':!![]},'dryRun':_0x8b7d23,'backend':{'method':_0x186e33(0xf0),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a207_0x1123(){const _0x4ed185=['--ding-talk-user-id\x20cannot\x20be\x20empty.','POST','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','string','31384NgdYKq','2065xubpsf','367436DeGLGI','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','1563096yUCpEi','1087644viqCDo','dingding-sandbox-bind','270404dXevnJ','18ZhGbKT','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','24191240LBjqBB','ding-talk-user-id','5312625yUAUXq','user-account','30nQDGOn','bind','trim','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','dingding-sandbox'];a207_0x1123=function(){return _0x4ed185;};return a207_0x1123();}export const dingTalkSandboxBind={'service':a207_0x48d4e1(0xe9),'command':a207_0x48d4e1(0xe1),'description':a207_0x48d4e1(0xe5),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a207_0x48d4e1(0xe7),'type':a207_0x48d4e1(0xf2),'required':!![],'description':a207_0x48d4e1(0xe4)}],async 'validate'(_0x9aa685){readDingTalkUserId(_0x9aa685);},async 'dryRun'(_0x5a2b95){const _0x15a4ad=a207_0x48d4e1,_0x5740ee=readDingTalkUserId(_0x5a2b95);return asDryRunResult(buildBindingData(_0x5740ee,!![]),{'method':_0x15a4ad(0xf0),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x3483af){const _0x3020c0=a207_0x48d4e1,_0x1bd542=readDingTalkUserId(_0x3483af),_0x426001=await bindDingTalkSandboxAccount(_0x1bd542);if(_0x426001!==!![])throw CliErrors['apiError']('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.',_0x3020c0(0xed));return{'ok':!![],'data':buildBindingData(_0x1bd542,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a208_0x57fa(){const _0x3dca3a=['2023820QlqCcF','109230VVaOcH','9Htopty','4VKyFSt','541573yPpXXI','2931580OiFpFS','8864464KbaplA','49538203GDTCSS','455kBWlcR','3864003gzGXhJ','10VxHHeg'];a208_0x57fa=function(){return _0x3dca3a;};return a208_0x57fa();}function a208_0x43a3(_0x2e2d5a,_0x2468b8){_0x2e2d5a=_0x2e2d5a-0x18a;const _0x57faf3=a208_0x57fa();let _0x43a3bc=_0x57faf3[_0x2e2d5a];return _0x43a3bc;}(function(_0x551e22,_0x473571){const _0x16ce2f=a208_0x43a3,_0x28a778=_0x551e22();while(!![]){try{const _0x1899d9=-parseInt(_0x16ce2f(0x190))/0x1+parseInt(_0x16ce2f(0x18c))/0x2+-parseInt(_0x16ce2f(0x18a))/0x3+-parseInt(_0x16ce2f(0x18f))/0x4*(parseInt(_0x16ce2f(0x191))/0x5)+-parseInt(_0x16ce2f(0x18d))/0x6*(parseInt(_0x16ce2f(0x194))/0x7)+-parseInt(_0x16ce2f(0x192))/0x8*(parseInt(_0x16ce2f(0x18e))/0x9)+parseInt(_0x16ce2f(0x18b))/0xa*(parseInt(_0x16ce2f(0x193))/0xb);if(_0x1899d9===_0x473571)break;else _0x28a778['push'](_0x28a778['shift']());}catch(_0x8b4ddf){_0x28a778['push'](_0x28a778['shift']());}}}(a208_0x57fa,0xc54ae));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a209_0x5ef7ba=a209_0x3461;(function(_0x32faa8,_0x27350){const _0x1c626f=a209_0x3461,_0x5d2a6b=_0x32faa8();while(!![]){try{const _0x20c4c7=-parseInt(_0x1c626f(0x6a))/0x1*(-parseInt(_0x1c626f(0x67))/0x2)+-parseInt(_0x1c626f(0x68))/0x3*(-parseInt(_0x1c626f(0x69))/0x4)+-parseInt(_0x1c626f(0x6d))/0x5*(parseInt(_0x1c626f(0x6c))/0x6)+parseInt(_0x1c626f(0x74))/0x7+-parseInt(_0x1c626f(0x73))/0x8+parseInt(_0x1c626f(0x71))/0x9+-parseInt(_0x1c626f(0x72))/0xa;if(_0x20c4c7===_0x27350)break;else _0x5d2a6b['push'](_0x5d2a6b['shift']());}catch(_0x4ca56d){_0x5d2a6b['push'](_0x5d2a6b['shift']());}}}(a209_0x10ca,0x72b2a));function a209_0x10ca(){const _0x216824=['Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','122AHMYhz','2913yvQnqw','1284zeZDeh','3569EGGqTR','workspace','3633702brlaps','5buMPfk','workspace\x20add','name','add','6800814nJfwCo','8037730tGxgKl','2124192aWNcXA','6017690XtgmPW','write'];a209_0x10ca=function(){return _0x216824;};return a209_0x10ca();}function a209_0x3461(_0x44860b,_0x249ab1){_0x44860b=_0x44860b-0x67;const _0x10ca10=a209_0x10ca();let _0x3461c4=_0x10ca10[_0x44860b];return _0x3461c4;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a209_0x5ef7ba(0x6b),'command':a209_0x5ef7ba(0x70),'description':a209_0x5ef7ba(0x76),'risk':a209_0x5ef7ba(0x75),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a209_0x5ef7ba(0x6f),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x4b32b6=>validateAppName(_0x4b32b6,a209_0x5ef7ba(0x6e)),'execute':_0x245945=>runAppAdd(_0x245945,a209_0x5ef7ba(0x6e))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0xd00145=a210_0x24ad;(function(_0xeca789,_0x85c46a){const _0x3cc89a=a210_0x24ad,_0x379ff6=_0xeca789();while(!![]){try{const _0x5ac4a8=-parseInt(_0x3cc89a(0x18b))/0x1*(parseInt(_0x3cc89a(0x1aa))/0x2)+parseInt(_0x3cc89a(0x1a9))/0x3+parseInt(_0x3cc89a(0x1bf))/0x4*(parseInt(_0x3cc89a(0x19b))/0x5)+-parseInt(_0x3cc89a(0x1a3))/0x6+parseInt(_0x3cc89a(0x1a7))/0x7*(parseInt(_0x3cc89a(0x196))/0x8)+parseInt(_0x3cc89a(0x1ab))/0x9*(parseInt(_0x3cc89a(0x1bb))/0xa)+parseInt(_0x3cc89a(0x193))/0xb;if(_0x5ac4a8===_0x85c46a)break;else _0x379ff6['push'](_0x379ff6['shift']());}catch(_0xd2d675){_0x379ff6['push'](_0x379ff6['shift']());}}}(a210_0x5508,0x3919d));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';function a210_0x24ad(_0x4cd4ec,_0x5508a7){_0x4cd4ec=_0x4cd4ec-0x18b;const _0x550836=a210_0x5508();let _0x24ad99=_0x550836[_0x4cd4ec];return _0x24ad99;}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+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=['appcode',a210_0xd00145(0x1a8),a210_0xd00145(0x18c),'format',a210_0xd00145(0x1b9),a210_0xd00145(0x1ac),a210_0xd00145(0x1b8)],workspaceFlags=[{'name':a210_0xd00145(0x194),'type':'string','description':a210_0xd00145(0x1a1)},{'name':a210_0xd00145(0x198),'type':'string','description':a210_0xd00145(0x1a2)},{'name':'env','type':a210_0xd00145(0x19f),'description':a210_0xd00145(0x1ae),'enum':[...RABETBASE_ENV_VALUES]},{'name':a210_0xd00145(0x18c),'type':'string','description':a210_0xd00145(0x19e)},{'name':a210_0xd00145(0x1c4),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a210_0xd00145(0x1b9),'type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a210_0xd00145(0x1ac),'type':a210_0xd00145(0x19f),'description':a210_0xd00145(0x1ba),'enum':[...RISK_LEVEL_VALUES]},{'name':a210_0xd00145(0x1b8),'type':a210_0xd00145(0x19f),'description':a210_0xd00145(0x1be)}];function isRecord(_0x392fec){const _0x5e2348=a210_0xd00145;return!!_0x392fec&&typeof _0x392fec==='object'&&!Array[_0x5e2348(0x1b4)](_0x392fec);}function assertValidAppcode(_0x5a5a43){const _0x30c2ab=a210_0xd00145,{valid:_0x4c08a4,message:_0x36db5a}=validateAppcode(_0x5a5a43);if(!_0x4c08a4)throw CliErrors['validation'](_0x30c2ab(0x1b2)+_0x5a5a43,_0x36db5a);}function sanitizeProfile(_0x2d3f3f){if(!isRecord(_0x2d3f3f))return{};const _0x3e37f7={};for(const _0x21f4ad of SAFE_PROFILE_KEYS){if(_0x2d3f3f[_0x21f4ad]!==undefined)_0x3e37f7[_0x21f4ad]=_0x2d3f3f[_0x21f4ad];}return _0x3e37f7;}function cloneProfile(_0x3e3519){return isRecord(_0x3e3519)?{..._0x3e3519}:{};}function collectWorkspaceProfileOverrides(_0x34c58e){const _0x6bb08b=a210_0xd00145,_0x28e8f6={},_0x3c6fdf=_0x34c58e[_0x6bb08b(0x192)](_0x6bb08b(0x1a8)),_0x15530d=_0x34c58e['str'](_0x6bb08b(0x18c)),_0x249f90=_0x34c58e[_0x6bb08b(0x192)](_0x6bb08b(0x1c4)),_0x4f4361=_0x34c58e[_0x6bb08b(0x1bc)]('pageSize'),_0xe80eb8=_0x34c58e['str'](_0x6bb08b(0x1ac)),_0x41871f=_0x34c58e['str']('locale');if(_0x3c6fdf)_0x28e8f6[_0x6bb08b(0x1a8)]=_0x3c6fdf;if(_0x15530d)_0x28e8f6[_0x6bb08b(0x18c)]=_0x15530d;if(_0x249f90)_0x28e8f6[_0x6bb08b(0x1bd)]=_0x249f90;if(_0x4f4361!==undefined&&_0x4f4361!=='')_0x28e8f6[_0x6bb08b(0x1b9)]=Number(_0x4f4361);if(_0xe80eb8)_0x28e8f6[_0x6bb08b(0x1ac)]=_0xe80eb8;if(_0x41871f)_0x28e8f6[_0x6bb08b(0x1b8)]=_0x41871f;return _0x28e8f6;}async function validateWorkspaceArgs(_0x2b903d){const _0x6c063d=a210_0xd00145,_0x18225c=_0x2b903d['str']('app')[_0x6c063d(0x1af)](),_0x45198c=_0x2b903d[_0x6c063d(0x192)](_0x6c063d(0x198))['trim']();if(!_0x18225c&&!_0x45198c)throw CliErrors[_0x6c063d(0x1a6)]('Missing\x20workspace\x20app\x20selector.',_0x6c063d(0x1a4)+CLI_BIN_NAME+_0x6c063d(0x1c2)+CLI_BIN_NAME+_0x6c063d(0x1a5));if(_0x45198c)assertValidAppcode(_0x45198c);}function resolveKnownApps(){const _0xaeafc7=a210_0xd00145,{config:_0x3add6b,layers:_0x59f03f}=readRawConfigWithLayers(),_0x23f93b=isRecord(_0x3add6b[_0xaeafc7(0x18e)])?_0x3add6b[_0xaeafc7(0x18e)]:{},_0x1f61bb=isRecord(_0x59f03f['globalConfig']['apps'])?_0x59f03f[_0xaeafc7(0x1ad)][_0xaeafc7(0x18e)]:{};return{..._0x1f61bb,..._0x23f93b};}async function configureWorkspace(_0x522c48,_0x37555e){const _0x2f6abf=a210_0xd00145,_0x2035dc=_0x522c48['str'](_0x2f6abf(0x194))[_0x2f6abf(0x1af)](),_0x120b9d=_0x522c48['str'](_0x2f6abf(0x198))[_0x2f6abf(0x1af)](),_0x215aee=_0x2035dc||_0x120b9d;if(!_0x215aee)throw CliErrors['validation'](_0x2f6abf(0x19c),_0x2f6abf(0x1a4)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x2f6abf(0x1a5));if(_0x120b9d)assertValidAppcode(_0x120b9d);const _0x850364=resolveWriteConfigPath(_0x2f6abf(0x197)),_0x4290ed=readConfigFile(_0x850364),_0x588788=resolveKnownApps(),_0x3fd0b2=isRecord(_0x4290ed['apps'])?{..._0x4290ed[_0x2f6abf(0x18e)]}:{},_0x41fd93=cloneProfile(_0x3fd0b2[_0x215aee]),_0x2b9df5=sanitizeProfile(_0x588788[_0x215aee]),_0x34e90b=_0x120b9d?{}:_0x2b9df5,_0x92b430=_0x120b9d||_0x34e90b[_0x2f6abf(0x198)];if(!_0x92b430){const _0x4e5657=Object['keys'](_0x588788),_0x4521e8=_0x4e5657['length']===0x0?_0x2f6abf(0x1a4)+CLI_BIN_NAME+'\x20workspace\x20'+_0x37555e+'\x20--app\x20'+_0x215aee+_0x2f6abf(0x191):_0x2f6abf(0x1b7)+_0x4e5657[_0x2f6abf(0x1b3)](',\x20');throw CliErrors[_0x2f6abf(0x1a6)](_0x2f6abf(0x18f)+_0x215aee+_0x2f6abf(0x1b6),_0x4521e8);}assertValidAppcode(String(_0x92b430));const _0x30854c={..._0x34e90b,..._0x41fd93,'appcode':String(_0x92b430),...collectWorkspaceProfileOverrides(_0x522c48)};return _0x3fd0b2[_0x215aee]=_0x30854c,_0x4290ed[_0x2f6abf(0x18e)]=_0x3fd0b2,_0x4290ed[_0x2f6abf(0x19a)]=_0x215aee,delete _0x4290ed['appcode'],delete _0x4290ed['app'],_0x30854c[_0x2f6abf(0x1a8)]&&(_0x4290ed[_0x2f6abf(0x1a8)]=_0x30854c[_0x2f6abf(0x1a8)]),writeConfigFile(_0x850364,_0x4290ed),{'ok':!![],'message':_0x2f6abf(0x1b5)+(_0x37555e===_0x2f6abf(0x1c3)?_0x2f6abf(0x199):_0x2f6abf(0x18d))+':\x20'+_0x215aee+_0x2f6abf(0x1b0)+_0x30854c['appcode']+').\x20Config:\x20'+_0x850364+_0x2f6abf(0x1a0),'data':{'operation':_0x2f6abf(0x1c1)+_0x37555e,'configPath':_0x850364,'app':_0x215aee,'appcode':_0x30854c[_0x2f6abf(0x198)],'env':_0x30854c[_0x2f6abf(0x1a8)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a210_0xd00145(0x1c0),'command':a210_0xd00145(0x1c3),'description':a210_0xd00145(0x195),'risk':a210_0xd00145(0x190),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4dc183=>configureWorkspace(_0x4dc183,a210_0xd00145(0x1c3))},workspaceUseDefinition={'service':'workspace','command':a210_0xd00145(0x1b1),'description':a210_0xd00145(0x19d),'risk':a210_0xd00145(0x190),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2e89d7=>configureWorkspace(_0x2e89d7,a210_0xd00145(0x1b1))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a210_0x5508(){const _0x46525f=['riskLevel','globalConfig','Target\x20environment','trim','\x20(appcode:\x20','use','Invalid\x20appcode:\x20','join','isArray','Workspace\x20','\x22\x20not\x20found.','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','locale','pageSize','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','66890rVDoaW','flag','format','Locale\x20for\x20this\x20workspace\x20app\x20profile','68KJHrEO','workspace','workspace.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','init','defaultFormat','450611TvNjZy','apiDir','updated','apps','App\x20\x22','write','\x20--appcode\x20<code>`.','str','1123639kzgryM','app','Initialize\x20the\x20current\x20workspace\x20app\x20binding','365624tzngNP','project','appcode','initialized','defaultApp','64910rlCpVV','Missing\x20workspace\x20app\x20selector.','Switch\x20the\x20current\x20workspace\x20app\x20binding','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','string','.\x20Credentials:\x20not\x20written.','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','2446140zljePo','Use\x20`','\x20workspace\x20use\x20--app\x20<name>`.','validation','35bnVUgn','env','1000407gGmdWY','2JeTJHC','279dgAGCs'];a210_0x5508=function(){return _0x46525f;};return a210_0x5508();}export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a211_0x3ac4(){const _0x6c46c7=['2121488ilaRPG','App\x20profile\x20name\x20to\x20remove','1048748INBFOB','10447758HTKcRd','14NMPZnR','268280oUYgDp','workspace\x20remove','697749VzqfPc','3187530rwVKIb','write','3WsAQCw','workspace','remove','name','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','860370zFxXCV'];a211_0x3ac4=function(){return _0x6c46c7;};return a211_0x3ac4();}function a211_0x52a2(_0x33437d,_0x20df4f){_0x33437d=_0x33437d-0xc7;const _0x3ac4d7=a211_0x3ac4();let _0x52a23f=_0x3ac4d7[_0x33437d];return _0x52a23f;}const a211_0x41d914=a211_0x52a2;(function(_0xbac371,_0x12b3ec){const _0x23c2a0=a211_0x52a2,_0x1bca62=_0xbac371();while(!![]){try{const _0xa95c9e=parseInt(_0x23c2a0(0xd2))/0x1+-parseInt(_0x23c2a0(0xcd))/0x2+parseInt(_0x23c2a0(0xd5))/0x3*(-parseInt(_0x23c2a0(0xcb))/0x4)+parseInt(_0x23c2a0(0xca))/0x5+-parseInt(_0x23c2a0(0xd3))/0x6+parseInt(_0x23c2a0(0xcf))/0x7*(parseInt(_0x23c2a0(0xd0))/0x8)+parseInt(_0x23c2a0(0xce))/0x9;if(_0xa95c9e===_0x12b3ec)break;else _0x1bca62['push'](_0x1bca62['shift']());}catch(_0x41203d){_0x1bca62['push'](_0x1bca62['shift']());}}}(a211_0x3ac4,0x7cf0a));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a211_0x41d914(0xd6),'command':a211_0x41d914(0xc7),'description':a211_0x41d914(0xc9),'risk':a211_0x41d914(0xd4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a211_0x41d914(0xc8),'description':a211_0x41d914(0xcc),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3e06b1=>validateAppName(_0x3e06b1,a211_0x41d914(0xd1)),'execute':_0x1a8f1e=>runAppRemove(_0x1a8f1e,'workspace\x20remove')};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x22c27c=a212_0x156b;(function(_0x2ac414,_0x5a1e05){const _0x2f0e6c=a212_0x156b,_0x2cbdd1=_0x2ac414();while(!![]){try{const _0x5081d3=parseInt(_0x2f0e6c(0xb3))/0x1+parseInt(_0x2f0e6c(0xaa))/0x2+parseInt(_0x2f0e6c(0xba))/0x3+parseInt(_0x2f0e6c(0xb8))/0x4*(parseInt(_0x2f0e6c(0xb9))/0x5)+parseInt(_0x2f0e6c(0xa8))/0x6*(-parseInt(_0x2f0e6c(0xb6))/0x7)+-parseInt(_0x2f0e6c(0xa4))/0x8+-parseInt(_0x2f0e6c(0xc6))/0x9;if(_0x5081d3===_0x5a1e05)break;else _0x2cbdd1['push'](_0x2cbdd1['shift']());}catch(_0x2f2192){_0x2cbdd1['push'](_0x2cbdd1['shift']());}}}(a212_0x5204,0xdd2cf));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_0x22c27c(0xbc),a212_0x22c27c(0xb7),a212_0x22c27c(0xbf),a212_0x22c27c(0xb4),a212_0x22c27c(0xbe)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a212_0x22c27c(0xb0),'env',a212_0x22c27c(0xbf),'format',a212_0x22c27c(0xbc),a212_0x22c27c(0xb7),'apiDir']);function a212_0x156b(_0x20c30b,_0x448710){_0x20c30b=_0x20c30b-0xa4;const _0x5204f0=a212_0x5204();let _0x156b3f=_0x5204f0[_0x20c30b];return _0x156b3f;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x28133d){const _0x440554=a212_0x22c27c;return[..._0x28133d][_0x440554(0xa9)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3fc498){return TOP_LEVEL_CONFIG_KEYS['has'](_0x3fc498);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a212_0x22c27c(0xa6),'apiDir':a212_0x22c27c(0xae),'cookie':a212_0x22c27c(0xbc),'accessKey':a212_0x22c27c(0xb7),'defaultFormat':'format','pageSize':a212_0x22c27c(0xbd),'riskLevel':'riskLevel','locale':a212_0x22c27c(0xbf)};export function getAppProfileFlagDefs(){const _0x29a1c4=a212_0x22c27c;return[{'name':'env','type':_0x29a1c4(0xb2),'description':_0x29a1c4(0xc3),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x29a1c4(0xae),'type':'string','description':_0x29a1c4(0xc5)},{'name':_0x29a1c4(0xbc),'type':'string','description':_0x29a1c4(0xac),'hidden':!![]},{'name':'accessKey','type':_0x29a1c4(0xb2),'description':_0x29a1c4(0xb5),'hidden':!![]},{'name':'defaultFormat','type':'string','description':_0x29a1c4(0xc1),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x29a1c4(0xbd),'type':_0x29a1c4(0xc8),'description':_0x29a1c4(0xc4)},{'name':_0x29a1c4(0xbe),'type':'string','description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x29a1c4(0xbf),'type':_0x29a1c4(0xb2),'description':_0x29a1c4(0xab)}];}function a212_0x5204(){const _0x5a8d40=['801592TlDiiT','Locale','Auth\x20cookie','toLowerCase','apiDir','apps','appcode','app','string','1548026qpfRFj','format','Access\x20key','49KyzCkd','accessKey','1512404VriIOP','5NYbQOw','2333229RdbWMj','entries','cookie','pageSize','riskLevel','locale','keys','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','inherit','Target\x20environment','Default\x20page\x20size','API\x20directory\x20path','9892890EExOiF','length','number','en-US','6286080nnbfEY','defaultApp','env','zh-CN','268938bQAwgi','join'];a212_0x5204=function(){return _0x5a8d40;};return a212_0x5204();}export function collectAppProfileOverrides(_0x165c18){const _0x5d25ca=a212_0x22c27c,_0x268de8={};for(const [_0x2176a7,_0x2bede7]of Object[_0x5d25ca(0xbb)](APP_PROFILE_FLAG_KEY_MAP)){const _0x395a21=_0x165c18(_0x2176a7);if(!_0x395a21)continue;_0x268de8[_0x2bede7]=_0x2bede7===_0x5d25ca(0xbd)?Number(_0x395a21):_0x395a21;}return _0x268de8;}export function buildAppProfileListFields(_0x51e1c8){const _0x5b9993=a212_0x22c27c;return{'env':_0x51e1c8[_0x5b9993(0xa6)]??null,'apiDir':_0x51e1c8[_0x5b9993(0xae)]??null,'hasCookie':!!_0x51e1c8[_0x5b9993(0xbc)],'hasAccessKey':!!_0x51e1c8['accessKey'],'format':_0x51e1c8[_0x5b9993(0xb4)]??null,'pageSize':_0x51e1c8[_0x5b9993(0xbd)]??null,'riskLevel':_0x51e1c8['riskLevel']??null,'locale':_0x51e1c8[_0x5b9993(0xbf)]??null};}export function buildAppDoctorFields(_0x7a149b,_0x5bce79){const _0x378048=a212_0x22c27c;return{'env':{'value':_0x7a149b[_0x378048(0xa6)]||_0x5bce79['env'],'source':_0x7a149b[_0x378048(0xa6)]?'app':_0x378048(0xc2)},'apiDir':{'value':_0x7a149b[_0x378048(0xae)]||_0x5bce79[_0x378048(0xae)],'source':_0x7a149b['apiDir']?'app':'inherit'},'cookie':{'value':_0x7a149b[_0x378048(0xbc)]||_0x5bce79[_0x378048(0xbc)],'source':_0x7a149b['cookie']?_0x378048(0xb1):'inherit'},'accessKey':{'value':_0x7a149b[_0x378048(0xb7)]||_0x5bce79[_0x378048(0xb7)],'source':_0x7a149b[_0x378048(0xb7)]?_0x378048(0xb1):_0x378048(0xc2)}};}export function buildCanonicalAppConfig(_0x387572,_0x25dc7b){const _0xb7191e=a212_0x22c27c,_0x2d5d64=_0x387572['map'](_0x1442f3=>String(_0x1442f3||'')['trim']())['filter'](Boolean);if(_0x2d5d64[_0xb7191e(0xc7)]===0x0)return{};const _0x5ac3ec={};for(const _0x1dd24d of _0x2d5d64){_0x5ac3ec[_0x1dd24d]=_0x25dc7b?{'appcode':_0x1dd24d,'env':_0x25dc7b}:{'appcode':_0x1dd24d};}return{'apps':_0x5ac3ec,'defaultApp':_0x2d5d64[0x0]};}export function buildCanonicalProjectConfig(_0x4c1d5a,_0x50635a){const _0x1de4f7=a212_0x22c27c,{appCodes:appCodes=[],env:_0x559525,metadata:_0x5562e4}=_0x50635a,_0x25344c={..._0x4c1d5a,..._0x5562e4||{}};delete _0x25344c[_0x1de4f7(0xb0)],delete _0x25344c[_0x1de4f7(0xb1)];if(_0x559525)_0x25344c[_0x1de4f7(0xa6)]=_0x559525;else!_0x25344c['env']&&(_0x25344c[_0x1de4f7(0xa6)]=DEFAULT_CONFIG_VALUES[_0x1de4f7(0xa6)]);const _0x19c3a7=buildCanonicalAppConfig(appCodes,_0x25344c[_0x1de4f7(0xa6)]);return Object[_0x1de4f7(0xc0)](_0x19c3a7)[_0x1de4f7(0xc7)]>0x0&&(_0x25344c[_0x1de4f7(0xaf)]=_0x19c3a7[_0x1de4f7(0xaf)],_0x25344c['defaultApp']=_0x19c3a7[_0x1de4f7(0xa5)]),_0x25344c;}const LOCALE_MAP={'zh':a212_0x22c27c(0xa7),'zh-cn':a212_0x22c27c(0xa7),'zh_cn':a212_0x22c27c(0xa7),'en':a212_0x22c27c(0xc9),'en-us':a212_0x22c27c(0xc9),'en_us':a212_0x22c27c(0xc9)};export function normalizeLocale(_0x26c9d6){const _0x386218=a212_0x22c27c;if(!_0x26c9d6)return null;return LOCALE_MAP[_0x26c9d6[_0x386218(0xad)]()]??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_0xb7846e=a213_0x46aa;(function(_0x5d4ac6,_0xa1e4d4){const _0x5a1561=a213_0x46aa,_0x127a06=_0x5d4ac6();while(!![]){try{const _0x85f7f7=-parseInt(_0x5a1561(0xed))/0x1+-parseInt(_0x5a1561(0xe6))/0x2+parseInt(_0x5a1561(0xe8))/0x3*(parseInt(_0x5a1561(0xec))/0x4)+parseInt(_0x5a1561(0xeb))/0x5*(parseInt(_0x5a1561(0xef))/0x6)+parseInt(_0x5a1561(0xe9))/0x7*(parseInt(_0x5a1561(0xee))/0x8)+-parseInt(_0x5a1561(0xe7))/0x9+-parseInt(_0x5a1561(0xe5))/0xa;if(_0x85f7f7===_0xa1e4d4)break;else _0x127a06['push'](_0x127a06['shift']());}catch(_0x2c6087){_0x127a06['push'](_0x127a06['shift']());}}}(a213_0x5cf3,0xd9e9c));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';function a213_0x5cf3(){const _0x3be1a7=['/templates/projects','5698070jfvjjG','75056sCjIgp','7602966YshUvT','271587EaHtIo','7833dwZqew','/config/index.json','405XuLzWz','32WpYkHD','186814mJeiRX','5448mCfkkW','77424NBkFRS'];a213_0x5cf3=function(){return _0x3be1a7;};return a213_0x5cf3();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a213_0xb7846e(0xea);function a213_0x46aa(_0x3493c7,_0x4a1f30){_0x3493c7=_0x3493c7-0xe4;const _0x5cf380=a213_0x5cf3();let _0x46aa25=_0x5cf380[_0x3493c7];return _0x46aa25;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a213_0xb7846e(0xe4);
|
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_0x9e720a=a214_0x209d;(function(_0x162180,_0x530fbb){const _0x3da4c9=a214_0x209d,_0x5632ac=_0x162180();while(!![]){try{const _0x26c9e1=-parseInt(_0x3da4c9(0x86))/0x1*(-parseInt(_0x3da4c9(0xb7))/0x2)+parseInt(_0x3da4c9(0x9d))/0x3+-parseInt(_0x3da4c9(0xf3))/0x4+parseInt(_0x3da4c9(0xf6))/0x5+parseInt(_0x3da4c9(0xb8))/0x6*(-parseInt(_0x3da4c9(0x9e))/0x7)+parseInt(_0x3da4c9(0xd6))/0x8*(parseInt(_0x3da4c9(0xa3))/0x9)+parseInt(_0x3da4c9(0x7f))/0xa;if(_0x26c9e1===_0x530fbb)break;else _0x5632ac['push'](_0x5632ac['shift']());}catch(_0x23bdcc){_0x5632ac['push'](_0x5632ac['shift']());}}}(a214_0x4ac1,0x998ec));function a214_0x209d(_0x1c338b,_0x200d58){_0x1c338b=_0x1c338b-0x77;const _0x4ac167=a214_0x4ac1();let _0x209dcb=_0x4ac167[_0x1c338b];return _0x209dcb;}export const CLI_BIN_NAME=a214_0x9e720a(0xaf);export const CLI_DISPLAY_NAME=a214_0x9e720a(0xce);export const NPM_PACKAGE_NAME=a214_0x9e720a(0xd7);function a214_0x4ac1(){const _0x317984=['nonInteractive','title','expected-count','4488900RGnhwa','Force\x20overwrite','keyword','4099730qMzSXz','parent-id','Description\x20file','<expr>','yes','File\x20path','Skip\x20import\x20generation','menuIds','Menu\x20sort\x20value','Expected\x20current\x20child\x20count','force','json\x20|\x20pretty\x20|\x20compress','dbid','Config\x20key','872840erXLfo','key','Parent\x20menu\x20id','Alias\x20for\x20--non-interactive','Keyword\x20filter','enableBffSave','target','2xRfgyw','sqlName','params','description','value','project','Schemas','file','Verbose\x20output','Output\x20path','Page\x20size','stdin','non-interactive','Description','dry-run','global','label','dbId','sqlname','Output\x20format','pagesize','verbose','Skip\x20confirmation\x20for\x20high-risk\x20writes','2933409pRwwmS','118321XQjdBr','Override\x20appcode','boolean','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expected-children-count','270693HMeNmL','Name','meowKey','Use\x20remote','Record\x20ID','env','operation-type','expectedChildrenCount','remote','Environment','Code\x20filter','code','rabetbase','Expected\x20current\x20menu\x20path','from-env','type','help','fromEntries','Tags','Config\x20value','679250KRVARW','342AafCqQ','task-id','SQL\x20code','map','format','schemas','enable-bff-save','datasetcode','Use\x20project\x20config\x20scope','expect-parent-id','Apply\x20to\x20all','expectPath','Expected\x20current\x20parent\x20menu\x20id','sqlcode','SQL\x20name','expect-path','expectParentId','reveal','watch','JSON\x20params','Use\x20global\x20config\x20scope','page','Rabetbase\x20CLI','all','Comma-separated\x20menu\x20IDs','Type\x20filter','confirm','sql-name','dryRun','string','40HqkMTa','@lovrabet/rabetbase-cli','tags','output','<code>','<name>','parentId','name','Function\x20node','Title','Enable\x20BFF\x20save','Watch\x20mode','sql','DB\x20ID','Select\x20app\x20profile\x20by\x20name','operation','sort','Dataset\x20code','descriptionFile','app','appcode','taskId','skipImports','fromEnv','Asynchronous\x20task\x20ID','clear'];a214_0x4ac1=function(){return _0x317984;};return a214_0x4ac1();}export const GLOBAL_FLAGS=[{'name':a214_0x9e720a(0xea),'meowKey':a214_0x9e720a(0xea),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x9f),'hint':a214_0x9e720a(0xda)},{'name':a214_0x9e720a(0xe9),'meowKey':a214_0x9e720a(0xe9),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xe4),'hint':a214_0x9e720a(0xdb)},{'name':a214_0x9e720a(0xa8),'meowKey':a214_0x9e720a(0xa8),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xac),'hint':'production\x20|\x20daily'},{'name':a214_0x9e720a(0xbc),'meowKey':a214_0x9e720a(0xbc),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x99),'hint':a214_0x9e720a(0x7c)},{'name':'jq','meowKey':'jq','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xa1),'hint':a214_0x9e720a(0xf9)},{'name':a214_0x9e720a(0x94),'meowKey':a214_0x9e720a(0xd4),'type':a214_0x9e720a(0xa0),'description':'Preview\x20operation\x20without\x20executing'},{'name':a214_0x9e720a(0xfa),'meowKey':a214_0x9e720a(0xfa),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x9c)},{'name':a214_0x9e720a(0x92),'meowKey':a214_0x9e720a(0xf0),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a214_0x9e720a(0x95),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xcc)},{'name':a214_0x9e720a(0x8b),'meowKey':a214_0x9e720a(0x8b),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xc0)},{'name':'ci','meowKey':'ci','type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x82),'hidden':!![]},{'name':a214_0x9e720a(0xb3),'meowKey':a214_0x9e720a(0xb3),'type':a214_0x9e720a(0xa0),'description':'Show\x20help'},{'name':a214_0x9e720a(0xdd),'meowKey':a214_0x9e720a(0xdd),'type':'string','description':a214_0x9e720a(0xa4),'hidden':!![]},{'name':a214_0x9e720a(0xf1),'meowKey':a214_0x9e720a(0xf1),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xdf),'hidden':!![]},{'name':a214_0x9e720a(0xef),'meowKey':a214_0x9e720a(0xef),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a214_0x9e720a(0xca),'type':'boolean','description':a214_0x9e720a(0xe1),'hidden':!![]},{'name':a214_0x9e720a(0xd9),'meowKey':a214_0x9e720a(0xd9),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x8f),'hidden':!![]},{'name':a214_0x9e720a(0x88),'meowKey':a214_0x9e720a(0x88),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xcb),'hidden':!![]},{'name':'datasetcode','meowKey':a214_0x9e720a(0xbf),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xe7),'hidden':!![]},{'name':a214_0x9e720a(0xcf),'meowKey':a214_0x9e720a(0xcf),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xc2),'hidden':!![]},{'name':a214_0x9e720a(0xbe),'meowKey':a214_0x9e720a(0x84),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xe0),'hidden':!![]},{'name':'id','meowKey':'id','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xa7),'hidden':!![]},{'name':'type','meowKey':'type','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xd1),'hidden':!![]},{'name':a214_0x9e720a(0x8d),'meowKey':a214_0x9e720a(0x8d),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xfb),'hidden':!![]},{'name':a214_0x9e720a(0xc5),'meowKey':a214_0x9e720a(0xc5),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xba),'hidden':!![]},{'name':a214_0x9e720a(0xd3),'meowKey':a214_0x9e720a(0x87),'type':a214_0x9e720a(0xd5),'description':'SQL\x20name','hidden':!![]},{'name':a214_0x9e720a(0x98),'meowKey':'sqlname','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xc6),'hidden':!![]},{'name':'db-id','meowKey':a214_0x9e720a(0x97),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xe3),'hidden':!![]},{'name':'dbid','meowKey':a214_0x9e720a(0x7d),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a214_0x9e720a(0x89),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x93),'hidden':!![]},{'name':'description-file','meowKey':a214_0x9e720a(0xe8),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xf8),'hidden':!![]},{'name':a214_0x9e720a(0xcd),'meowKey':'page','type':a214_0x9e720a(0xd5),'description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':a214_0x9e720a(0x9a),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x90),'hidden':!![]},{'name':a214_0x9e720a(0xf5),'meowKey':a214_0x9e720a(0xf5),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x83),'hidden':!![]},{'name':a214_0x9e720a(0xae),'meowKey':a214_0x9e720a(0xae),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xad),'hidden':!![]},{'name':a214_0x9e720a(0xe2),'meowKey':a214_0x9e720a(0xe2),'type':a214_0x9e720a(0xd5),'description':'SQL\x20string','hidden':!![]},{'name':a214_0x9e720a(0xbd),'meowKey':a214_0x9e720a(0xbd),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x8c),'hidden':!![]},{'name':a214_0x9e720a(0xe5),'meowKey':a214_0x9e720a(0xe5),'type':a214_0x9e720a(0xd5),'description':'Operation\x20type','hidden':!![]},{'name':a214_0x9e720a(0x85),'meowKey':a214_0x9e720a(0x85),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a214_0x9e720a(0xec),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x77),'hidden':!![]},{'name':a214_0x9e720a(0x80),'meowKey':a214_0x9e720a(0x80),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x7e),'hidden':!![]},{'name':'value','meowKey':a214_0x9e720a(0x8a),'type':'string','description':a214_0x9e720a(0xb6),'hidden':!![]},{'name':'tags','meowKey':a214_0x9e720a(0xd8),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xb5),'hidden':!![]},{'name':a214_0x9e720a(0x91),'meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a214_0x9e720a(0xb1),'meowKey':a214_0x9e720a(0xed),'type':a214_0x9e720a(0xd5),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a214_0x9e720a(0xc9),'meowKey':a214_0x9e720a(0xc9),'type':a214_0x9e720a(0xa0),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a214_0x9e720a(0x7b),'meowKey':a214_0x9e720a(0x7b),'type':'boolean','description':a214_0x9e720a(0xf4),'hidden':!![]},{'name':a214_0x9e720a(0xd2),'meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a214_0x9e720a(0xab),'meowKey':a214_0x9e720a(0xab),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0xa6),'hidden':!![]},{'name':a214_0x9e720a(0x9b),'meowKey':a214_0x9e720a(0x9b),'type':a214_0x9e720a(0xa0),'description':a214_0x9e720a(0x8e),'hidden':!![]},{'name':a214_0x9e720a(0xf2),'meowKey':'expectedCount','type':a214_0x9e720a(0xd5),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a214_0x9e720a(0x96),'meowKey':'label','type':a214_0x9e720a(0xd5),'description':'Menu\x20label','hidden':!![]},{'name':a214_0x9e720a(0xf7),'meowKey':a214_0x9e720a(0xdc),'type':'string','description':a214_0x9e720a(0x81),'hidden':!![]},{'name':a214_0x9e720a(0xe6),'meowKey':a214_0x9e720a(0xe6),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x79),'hidden':!![]},{'name':a214_0x9e720a(0xc1),'meowKey':a214_0x9e720a(0xc8),'type':'string','description':a214_0x9e720a(0xc4),'hidden':!![]},{'name':a214_0x9e720a(0xc7),'meowKey':a214_0x9e720a(0xc3),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xb0),'hidden':!![]},{'name':a214_0x9e720a(0xa2),'meowKey':a214_0x9e720a(0xaa),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0x7a),'hidden':!![]},{'name':'menu-ids','meowKey':a214_0x9e720a(0x78),'type':'string','description':a214_0x9e720a(0xd0),'hidden':!![]},{'name':a214_0x9e720a(0xb9),'meowKey':a214_0x9e720a(0xeb),'type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xee),'hidden':!![]},{'name':a214_0x9e720a(0xa9),'meowKey':'operationType','type':a214_0x9e720a(0xd5),'description':'Operation\x20type','hidden':!![]},{'name':'function-node','meowKey':'functionNode','type':a214_0x9e720a(0xd5),'description':a214_0x9e720a(0xde),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a214_0x9e720a(0xea),a214_0x9e720a(0xe9),a214_0x9e720a(0xa8),a214_0x9e720a(0xbc),'jq',a214_0x9e720a(0x94),a214_0x9e720a(0xfa),a214_0x9e720a(0x92),'ci']);export function buildMeowFlags(){const _0x2a5254=a214_0x9e720a;return Object[_0x2a5254(0xb4)](GLOBAL_FLAGS[_0x2a5254(0xbb)](_0x43651f=>[_0x43651f[_0x2a5254(0xa5)],{'type':_0x43651f[_0x2a5254(0xb2)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a215_0x5b8dbf=a215_0x44be;(function(_0x5dcc29,_0x1fcaed){const _0x131f1a=a215_0x44be,_0x3dbd82=_0x5dcc29();while(!![]){try{const _0x4a5650=-parseInt(_0x131f1a(0x1bd))/0x1+-parseInt(_0x131f1a(0x1b6))/0x2+parseInt(_0x131f1a(0x1bb))/0x3+parseInt(_0x131f1a(0x1b5))/0x4*(-parseInt(_0x131f1a(0x1b2))/0x5)+-parseInt(_0x131f1a(0x1b9))/0x6*(parseInt(_0x131f1a(0x1b8))/0x7)+-parseInt(_0x131f1a(0x1bc))/0x8*(-parseInt(_0x131f1a(0x1b1))/0x9)+parseInt(_0x131f1a(0x1b4))/0xa;if(_0x4a5650===_0x1fcaed)break;else _0x3dbd82['push'](_0x3dbd82['shift']());}catch(_0x3f9028){_0x3dbd82['push'](_0x3dbd82['shift']());}}}(a215_0x990a,0x43dac));function a215_0x990a(){const _0xaae821=['1300089WOIxLm','72UlXYzY','27231uWBALR','49860hFszRL','25TrBNfy','write','11676460UWrjPS','305036FyOnpX','926374sLDKrw','en-US','28DxVgLn','751836rsYnbD','compress'];a215_0x990a=function(){return _0xaae821;};return a215_0x990a();}import{DEFAULT_API_DIR}from'../constant/paths.js';function a215_0x44be(_0x26c122,_0x3ffdac){_0x26c122=_0x26c122-0x1b1;const _0x990a2=a215_0x990a();let _0x44be27=_0x990a2[_0x26c122];return _0x44be27;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a215_0x5b8dbf(0x1ba),'locale':a215_0x5b8dbf(0x1b7),'riskLevel':a215_0x5b8dbf(0x1b3),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a215_0x5b8dbf(0x1ba);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0x1b0bbd=a216_0x4031;(function(_0x34403b,_0x25c960){const _0x384196=a216_0x4031,_0x5c88e9=_0x34403b();while(!![]){try{const _0x28151f=-parseInt(_0x384196(0x1b5))/0x1+parseInt(_0x384196(0x1a8))/0x2+parseInt(_0x384196(0x1b2))/0x3*(-parseInt(_0x384196(0x1a9))/0x4)+-parseInt(_0x384196(0x1ad))/0x5*(-parseInt(_0x384196(0x1b0))/0x6)+-parseInt(_0x384196(0x1a6))/0x7*(-parseInt(_0x384196(0x1ac))/0x8)+parseInt(_0x384196(0x1a7))/0x9*(parseInt(_0x384196(0x1b7))/0xa)+-parseInt(_0x384196(0x1a4))/0xb*(parseInt(_0x384196(0x1af))/0xc);if(_0x28151f===_0x25c960)break;else _0x5c88e9['push'](_0x5c88e9['shift']());}catch(_0x2a2cca){_0x5c88e9['push'](_0x5c88e9['shift']());}}}(a216_0x57fe,0xa3276));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0xe46681){const _0x225438=a216_0x4031;customApiDomain=_0xe46681?.['apiDomain'],customUserDomain=_0xe46681?.['userDomain'],customRuntimeDomain=_0xe46681?.[_0x225438(0x1ab)];}function a216_0x4031(_0x34bee7,_0x1f065e){_0x34bee7=_0x34bee7-0x1a4;const _0x57fe05=a216_0x57fe();let _0x4031d2=_0x57fe05[_0x34bee7];return _0x4031d2;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a216_0x1b0bbd(0x1b4):a216_0x1b0bbd(0x1a5));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a216_0x1b0bbd(0x1b6));export const getAppDomain=()=>isProduction(getEnv())?a216_0x1b0bbd(0x1b3):a216_0x1b0bbd(0x1ae);export const getAppBaseUrl=_0x1f2b2b=>{const _0x1949e7=a216_0x1b0bbd,_0x2cf5ec=encodeURIComponent(_0x1f2b2b[_0x1949e7(0x1aa)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x2cf5ec:getAppDomain()+_0x1949e7(0x1b1)+_0x2cf5ec;};function a216_0x57fe(){const _0x1d1f4d=['https://daily-runtime.lovrabet.com','570psgZcA','11QOuJqF','https://user-daily.lovrabet.com','1033116UrXLbb','112842Fmwjvc','2644598JNKDkA','117584ssVctb','trim','runtimeDomain','16eKZPdr','3006515OVcefD','https://daily.lovrabet.com','17444652qxoDDI','6ETsWMc','/web-app/app/','36QIDQUt','https://app.lovrabet.com','https://user.lovrabet.com','458693tegxjA'];a216_0x57fe=function(){return _0x1d1f4d;};return a216_0x57fe();}
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a217_0x38bcfa=a217_0x1bf8;(function(_0x50dac8,_0x50156c){const _0x347a5c=a217_0x1bf8,_0x1f7ca7=_0x50dac8();while(!![]){try{const _0x4e0a4d=parseInt(_0x347a5c(0x15b))/0x1*(-parseInt(_0x347a5c(0x158))/0x2)+-parseInt(_0x347a5c(0x150))/0x3+parseInt(_0x347a5c(0x14f))/0x4*(-parseInt(_0x347a5c(0x154))/0x5)+-parseInt(_0x347a5c(0x156))/0x6*(parseInt(_0x347a5c(0x14e))/0x7)+parseInt(_0x347a5c(0x15a))/0x8*(-parseInt(_0x347a5c(0x153))/0x9)+-parseInt(_0x347a5c(0x157))/0xa*(-parseInt(_0x347a5c(0x151))/0xb)+-parseInt(_0x347a5c(0x15c))/0xc*(-parseInt(_0x347a5c(0x159))/0xd);if(_0x4e0a4d===_0x50156c)break;else _0x1f7ca7['push'](_0x1f7ca7['shift']());}catch(_0x312445){_0x1f7ca7['push'](_0x1f7ca7['shift']());}}}(a217_0x1d59,0x4c7a4));export const RABETBASE_ENV_VALUES=[a217_0x38bcfa(0x155),a217_0x38bcfa(0x152)];function a217_0x1d59(){const _0x2f1476=['14DUeSSF','849076Dcyslj','1488507nBEXAj','199551EUavhQ','daily','36yHzgFk','5STEvts','production','343752knFSaP','270BGAOCB','58314CLXSUX','26PEwnVi','1127864rWscXN','15llmETd','9886524DCdAmo'];a217_0x1d59=function(){return _0x2f1476;};return a217_0x1d59();}export function normalizeEnv(_0x252111){return _0x252111==='online'?'production':_0x252111;}export function isProduction(_0x9f037c){return normalizeEnv(_0x9f037c)==='production';}export function isDaily(_0x2af12e){const _0xc8a144=a217_0x38bcfa;return normalizeEnv(_0x2af12e)===_0xc8a144(0x152);}export function isDev(_0x27635e){const _0x26d0cf=normalizeEnv(_0x27635e);return _0x26d0cf==='development'||_0x26d0cf==='dev';}function a217_0x1bf8(_0x568890,_0x106f41){_0x568890=_0x568890-0x14e;const _0x1d5940=a217_0x1d59();let _0x1bf878=_0x1d5940[_0x568890];return _0x1bf878;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a217_0x38bcfa(0x155));export function getEnv(){return env;}export function initEnv(_0x5c3667){env=normalizeEnv(_0x5c3667);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x45f44f=a218_0x5656;(function(_0xa98f1a,_0x5462c5){const _0x42feea=a218_0x5656,_0x89a5e7=_0xa98f1a();while(!![]){try{const _0x1288c4=parseInt(_0x42feea(0x69))/0x1+parseInt(_0x42feea(0x6a))/0x2*(parseInt(_0x42feea(0x71))/0x3)+-parseInt(_0x42feea(0x68))/0x4+parseInt(_0x42feea(0x6d))/0x5+-parseInt(_0x42feea(0x6c))/0x6*(-parseInt(_0x42feea(0x67))/0x7)+parseInt(_0x42feea(0x6e))/0x8+-parseInt(_0x42feea(0x6f))/0x9;if(_0x1288c4===_0x5462c5)break;else _0x89a5e7['push'](_0x89a5e7['shift']());}catch(_0x127abe){_0x89a5e7['push'](_0x89a5e7['shift']());}}}(a218_0x363a,0xa691e));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a218_0x45f44f(0x6b),'pretty',a218_0x45f44f(0x70)];function a218_0x5656(_0x89d457,_0x571dd6){_0x89d457=_0x89d457-0x67;const _0x363ae5=a218_0x363a();let _0x565609=_0x363ae5[_0x89d457];return _0x565609;}function a218_0x363a(){const _0x59cd63=['8525187SZWHZE','compress','7356LRbYoI','325661OiQjXr','4981260NiTZEH','762978mDkpyk','412keJjXm','json','66HrVBBP','4929320sTIzHv','872968lYOkez'];a218_0x363a=function(){return _0x59cd63;};return a218_0x363a();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x16cd60,_0x4f515c){const _0x2d23d1=a219_0x4886,_0x445164=_0x16cd60();while(!![]){try{const _0x343012=parseInt(_0x2d23d1(0xb2))/0x1*(-parseInt(_0x2d23d1(0xb3))/0x2)+parseInt(_0x2d23d1(0xad))/0x3*(parseInt(_0x2d23d1(0xa9))/0x4)+parseInt(_0x2d23d1(0xb1))/0x5+-parseInt(_0x2d23d1(0xb0))/0x6+parseInt(_0x2d23d1(0xac))/0x7*(parseInt(_0x2d23d1(0xaa))/0x8)+-parseInt(_0x2d23d1(0xaf))/0x9*(parseInt(_0x2d23d1(0xab))/0xa)+-parseInt(_0x2d23d1(0xb4))/0xb*(-parseInt(_0x2d23d1(0xae))/0xc);if(_0x343012===_0x4f515c)break;else _0x445164['push'](_0x445164['shift']());}catch(_0xada7dd){_0x445164['push'](_0x445164['shift']());}}}(a219_0x31cd,0x91284));function a219_0x4886(_0x42ee0b,_0x20a709){_0x42ee0b=_0x42ee0b-0xa9;const _0x31cdf5=a219_0x31cd();let _0x4886b6=_0x31cdf5[_0x42ee0b];return _0x4886b6;}export const DEFAULT_API_DIR='./src/api';function a219_0x31cd(){const _0x40dbc0=['4270225yFwisQ','186449rLPWjT','8gCWbEj','5467PcXpaQ','17636VZoENE','2472qzedPC','20mRfVgB','14273HUWBcI','489eNFneo','6888LrJgIG','1003968heItYh','5547462TDEXXL'];a219_0x31cd=function(){return _0x40dbc0;};return a219_0x31cd();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a220_0x58c2(){const _0x535c71=['3076738hvrfka','8DfaaFA','read','89082TGYGrc','490684YObHEg','20tnixSW','490MUtxuF','110376CmdJIp','24579zalEFe','write','3981894BfGRpB','222hAJwHo','17555714chDPEN','high-risk-write'];a220_0x58c2=function(){return _0x535c71;};return a220_0x58c2();}function a220_0x3ae7(_0x3dbe42,_0x2f9f2e){_0x3dbe42=_0x3dbe42-0x1c9;const _0x58c22f=a220_0x58c2();let _0x3ae7df=_0x58c22f[_0x3dbe42];return _0x3ae7df;}const a220_0x2c524b=a220_0x3ae7;(function(_0x4d3b72,_0x563f1b){const _0x17dcb5=a220_0x3ae7,_0x19e442=_0x4d3b72();while(!![]){try{const _0x5562b1=parseInt(_0x17dcb5(0x1d1))/0x1+parseInt(_0x17dcb5(0x1d5))/0x2*(-parseInt(_0x17dcb5(0x1d2))/0x3)+-parseInt(_0x17dcb5(0x1ce))/0x4*(-parseInt(_0x17dcb5(0x1cf))/0x5)+-parseInt(_0x17dcb5(0x1d4))/0x6+parseInt(_0x17dcb5(0x1ca))/0x7*(parseInt(_0x17dcb5(0x1cb))/0x8)+parseInt(_0x17dcb5(0x1cd))/0x9*(-parseInt(_0x17dcb5(0x1d0))/0xa)+parseInt(_0x17dcb5(0x1d6))/0xb;if(_0x5562b1===_0x563f1b)break;else _0x19e442['push'](_0x19e442['shift']());}catch(_0x1a408d){_0x19e442['push'](_0x19e442['shift']());}}}(a220_0x58c2,0x8d3be));export const RISK_LEVEL_VALUES=[a220_0x2c524b(0x1cc),a220_0x2c524b(0x1d3),a220_0x2c524b(0x1c9)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a5285,_0x3e9bcb){const _0x556d75=a221_0x242f,_0x204e11=_0x4a5285();while(!![]){try{const _0x25d322=parseInt(_0x556d75(0x166))/0x1+-parseInt(_0x556d75(0x156))/0x2*(-parseInt(_0x556d75(0x15c))/0x3)+-parseInt(_0x556d75(0x155))/0x4+-parseInt(_0x556d75(0x177))/0x5+-parseInt(_0x556d75(0x16b))/0x6+parseInt(_0x556d75(0x176))/0x7*(parseInt(_0x556d75(0x161))/0x8)+parseInt(_0x556d75(0x17c))/0x9;if(_0x25d322===_0x3e9bcb)break;else _0x204e11['push'](_0x204e11['shift']());}catch(_0x352c14){_0x204e11['push'](_0x204e11['shift']());}}}(a221_0x1a64,0x424c1));function a221_0x1a64(){const _0x212c48=['8JIaoOx','riskLevel','MAX_RISK','hasOwnProperty','daily','entries','54192cZQvrt','string','locale','maxRisk','globalConfig','928040PkxgqU','format','length','inherit','VERBOSE','282269MFnzJz','prototype','apiDir','accessKey','APP','2998980pOJiFh','object','find','read','keys','trim','true','defaultApp','ENV','pageSize','apps','7TOTpWe','76630WCdbLa','projectConfig','PAGE_SIZE','RISK_LEVEL','cookie','5522904VXTGkD','FORMAT','appcode','env','high-risk-write','call','COOKIE','1189908bCkJmm'];a221_0x1a64=function(){return _0x212c48;};return a221_0x1a64();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x712d80){const _0x3e92da=a221_0x242f;return typeof _0x712d80==='string'&&_0x712d80['trim']()?_0x712d80[_0x3e92da(0x170)]():undefined;}function a221_0x242f(_0x1a7dd1,_0x134c9a){_0x1a7dd1=_0x1a7dd1-0x154;const _0x1a6479=a221_0x1a64();let _0x242f8f=_0x1a6479[_0x1a7dd1];return _0x242f8f;}function appProfiles(_0x2b2553){const _0xf4c60=a221_0x242f;return _0x2b2553[_0xf4c60(0x175)]&&typeof _0x2b2553[_0xf4c60(0x175)]===_0xf4c60(0x16c)?_0x2b2553[_0xf4c60(0x175)]:{};}function resolveDefaultAppName(_0xdbb0d6){const _0x380c56=a221_0x242f,_0xd1aba1=stringConfigValue(_0xdbb0d6[_0x380c56(0x172)]);if(_0xd1aba1)return _0xd1aba1;return Object[_0x380c56(0x16f)](appProfiles(_0xdbb0d6))[0x0];}function resolveTopLevelAppCode(_0x3290cc){const _0x3113d8=a221_0x242f;return stringConfigValue(_0x3290cc[_0x3113d8(0x17e)])||stringConfigValue(_0x3290cc['app']);}function normalizeRiskCeiling(_0x4ddea6){const _0x14c33f=a221_0x242f;if(_0x4ddea6===undefined||_0x4ddea6===null)return undefined;if(_0x4ddea6===_0x14c33f(0x16e)||_0x4ddea6==='write'||_0x4ddea6===_0x14c33f(0x180))return _0x4ddea6;return _0x14c33f(0x16e);}function resolveRiskCeiling(..._0x2b841f){const _0x5ccedf=a221_0x242f;let _0x5b16c2;for(const _0x110c57 of _0x2b841f){const _0x7377df=normalizeRiskCeiling(_0x110c57);_0x7377df&&(!_0x5b16c2||riskLevelOrder(_0x7377df)<riskLevelOrder(_0x5b16c2))&&(_0x5b16c2=_0x7377df);}return _0x5b16c2??DEFAULT_CONFIG_VALUES[_0x5ccedf(0x157)];}function configuredRiskCeilings(_0x59e48e){const _0x4971c8=a221_0x242f;return[...Object[_0x4971c8(0x167)][_0x4971c8(0x159)][_0x4971c8(0x181)](_0x59e48e,_0x4971c8(0x15f))?[_0x59e48e[_0x4971c8(0x15f)]]:[],...Object[_0x4971c8(0x167)][_0x4971c8(0x159)]['call'](_0x59e48e,_0x4971c8(0x157))?[_0x59e48e[_0x4971c8(0x157)]]:[]];}export function resolveAppConfig({raw:_0x419083,flags:_0x35d994,layers:_0x453664,readEnv:_0x5f1ed2}){const _0x109dd3=a221_0x242f,_0x5ac80a=_0x453664?.[_0x109dd3(0x178)]??{},_0x271c96=_0x453664?.[_0x109dd3(0x160)]??{},_0x1055c1=Object[_0x109dd3(0x16f)](_0x5ac80a)[_0x109dd3(0x163)]>0x0,_0x25de62=!_0x1055c1||_0x5ac80a[_0x109dd3(0x164)]===!![],_0x4a99c4=_0x1055c1?resolveDefaultAppName(_0x5ac80a):undefined,_0x271948=_0x25de62?resolveDefaultAppName(_0x271c96):undefined,_0x9d231d=stringConfigValue(_0x35d994['app']),_0xfc247d=_0x5f1ed2(_0x109dd3(0x16a)),_0xab83ac={};if(_0x419083[_0x109dd3(0x175)]&&typeof _0x419083[_0x109dd3(0x175)]===_0x109dd3(0x16c))for(const [_0x4c9dbb,_0xa8f436]of Object[_0x109dd3(0x15b)](_0x419083[_0x109dd3(0x175)])){_0xa8f436&&typeof _0xa8f436===_0x109dd3(0x16c)&&_0xa8f436['appcode']&&(_0xab83ac[_0x4c9dbb]=_0xa8f436);}const _0x50aae9=_0x419083[_0x109dd3(0x172)]||undefined,_0x5f52b8=Object[_0x109dd3(0x16f)](_0xab83ac)[_0x109dd3(0x163)]>0x0,_0x8e1347=_0x9d231d||_0x4a99c4||_0xfc247d||_0x271948||_0x50aae9||undefined,_0x3c6295=stringConfigValue(_0x35d994[_0x109dd3(0x17e)]),_0x377dbe=_0x3c6295?Object[_0x109dd3(0x15b)](_0xab83ac)[_0x109dd3(0x16d)](([,_0x3fbae2])=>_0x3fbae2?.[_0x109dd3(0x17e)]===_0x3c6295):undefined,_0x4d99e6=_0x377dbe?.[0x0],_0x5f9660=_0x377dbe?.[0x1],_0x408f98=_0x3c6295?_0x4d99e6:_0x8e1347;let _0x534cbf=_0x408f98&&_0xab83ac[_0x408f98]?_0xab83ac[_0x408f98]:undefined;_0x3c6295&&_0x5f9660&&(_0x534cbf=_0x5f9660);const _0x53048d=_0x3c6295?_0x5f9660??_0x534cbf:_0x534cbf,_0xbe7cc9=!_0x9d231d&&!_0x4a99c4&&_0xfc247d&&_0x408f98===_0xfc247d,_0x595466=_0x9d231d||(_0xbe7cc9?_0xfc247d:undefined)||(_0x3c6295?_0x4d99e6:undefined),_0x4adda3=_0x53048d?.[_0x109dd3(0x17e)],_0x247957=_0x1055c1?resolveTopLevelAppCode(_0x5ac80a):undefined,_0x536069=_0x25de62?resolveTopLevelAppCode(_0x271c96):undefined,_0x183a15=_0x9d231d||_0x4a99c4?_0x4adda3:undefined,_0x72d9ad=!_0x9d231d&&!_0x4a99c4?_0x4adda3:undefined,_0x4fc367=_0x3c6295||_0x183a15||_0x247957||_0x72d9ad||_0x536069||undefined,_0x31d19d=_0x1055c1?stringConfigValue(_0x5ac80a[_0x109dd3(0x17f)]):undefined,_0x186630=_0x25de62?stringConfigValue(_0x271c96[_0x109dd3(0x17f)]):undefined,_0x13ab1b=_0x35d994[_0x109dd3(0x17f)]||_0x53048d?.[_0x109dd3(0x17f)]||_0x31d19d||_0x5f1ed2(_0x109dd3(0x173))||_0x186630||_0x419083[_0x109dd3(0x17f)]||DEFAULT_CONFIG_VALUES[_0x109dd3(0x17f)],_0x1472b1=_0x53048d?.[_0x109dd3(0x15e)]||_0x419083[_0x109dd3(0x15e)]||DEFAULT_CONFIG_VALUES['locale'],_0x1924c9=_0x5f1ed2(_0x109dd3(0x154))||_0x53048d?.[_0x109dd3(0x17b)]||_0x419083['cookie']||undefined,_0x42579f=_0x5f1ed2('ACCESS_KEY')||_0x53048d?.[_0x109dd3(0x169)]||_0x419083[_0x109dd3(0x169)]||undefined,_0x1fab42=_0x35d994['format']||_0x5f1ed2(_0x109dd3(0x17d))||_0x53048d?.[_0x109dd3(0x162)]||_0x419083[_0x109dd3(0x162)],_0x21a862=normalizeLegacyOutputFormat(_0x1fab42),_0x59a435=_0x5f1ed2(_0x109dd3(0x179))||_0x53048d?.[_0x109dd3(0x174)]||_0x419083[_0x109dd3(0x174)],_0x3078a2=_0x59a435?Number(_0x59a435)||undefined:undefined,_0x28e58c=_0x453664?[...configuredRiskCeilings(_0x453664[_0x109dd3(0x160)]),...configuredRiskCeilings(_0x453664['projectConfig'])]:configuredRiskCeilings(_0x419083),_0x120e24=resolveRiskCeiling(..._0x28e58c,_0x53048d?.['riskLevel']),_0x29eea6=resolveRiskCeiling(_0x120e24,_0x5f1ed2(_0x109dd3(0x17a)),_0x5f1ed2(_0x109dd3(0x158))),_0x56df43=_0x5f1ed2(_0x109dd3(0x165)),_0x3bc718=_0x56df43==='1'||_0x56df43===_0x109dd3(0x171),_0x20cdd1=_0x53048d?.[_0x109dd3(0x168)]||_0x419083[_0x109dd3(0x168)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x538b20=isDaily(normalizeEnv(String(_0x13ab1b)))?_0x109dd3(0x15a):'production';return{'appCode':typeof _0x4fc367===_0x109dd3(0x15d)&&_0x4fc367[_0x109dd3(0x170)]()?_0x4fc367[_0x109dd3(0x170)]():undefined,'env':_0x538b20,'locale':_0x1472b1,'cookie':_0x1924c9,'accessKey':_0x42579f,'format':_0x21a862,'pageSize':_0x3078a2,'riskLevel':_0x29eea6,'verbose':_0x3bc718,'apiDir':_0x20cdd1,'apps':_0xab83ac,'defaultApp':_0x50aae9,'currentApp':_0x5f52b8?_0x408f98:undefined,'explicitAppName':_0x595466};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a222_0x2826(){const _0x596b6b=['1936916NvYUgO','4002000OhMOfO','26991pOCqYZ','cookie','192UXPMkC','authRequired','1547931CsZJQG','6501984ldZFov','4908402IeNihq','5QnqiIR','26865vKObje'];a222_0x2826=function(){return _0x596b6b;};return a222_0x2826();}(function(_0x24f215,_0x2d5784){const _0x3f22e9=a222_0x2aaf,_0xc9b449=_0x24f215();while(!![]){try{const _0x408721=parseInt(_0x3f22e9(0x91))/0x1+-parseInt(_0x3f22e9(0x93))/0x2*(-parseInt(_0x3f22e9(0x8e))/0x3)+-parseInt(_0x3f22e9(0x8f))/0x4*(-parseInt(_0x3f22e9(0x98))/0x5)+parseInt(_0x3f22e9(0x90))/0x6+-parseInt(_0x3f22e9(0x95))/0x7+-parseInt(_0x3f22e9(0x96))/0x8+-parseInt(_0x3f22e9(0x97))/0x9;if(_0x408721===_0x2d5784)break;else _0xc9b449['push'](_0xc9b449['shift']());}catch(_0x11d79e){_0xc9b449['push'](_0xc9b449['shift']());}}}(a222_0x2826,0x6ff91));import{getIsSessionValid}from'../auth/is-session-valid.js';function a222_0x2aaf(_0x316f00,_0x2f9848){_0x316f00=_0x316f00-0x8e;const _0x282668=a222_0x2826();let _0x2aafcf=_0x282668[_0x316f00];return _0x2aafcf;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1e4dbb){const _0x55b45a=a222_0x2aaf,{getCookie:_0xa5c825}=await import('../auth/get-cookie.js'),_0x44b220=_0x1e4dbb[_0x55b45a(0x92)]||_0xa5c825(),_0x437148=_0x44b220?await getIsSessionValid():![];return{'cookie':_0x44b220,'isLoggedIn':_0x437148,async 'getOrLogin'(){const _0x4d641a=_0x55b45a;if(_0x44b220&&_0x437148)return _0x44b220;throw CliErrors[_0x4d641a(0x94)]();}};}
|