@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1-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/README.md +4 -10
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/react/create.d.ts +2 -0
- package/lib/commands/page/react/create.js +1 -0
- package/lib/commands/page/react/detail.d.ts +2 -0
- package/lib/commands/page/react/detail.js +1 -0
- package/lib/commands/page/react/list.d.ts +2 -0
- package/lib/commands/page/react/list.js +1 -0
- package/lib/commands/page/react/publish.d.ts +2 -0
- package/lib/commands/page/react/publish.js +1 -0
- package/lib/commands/page/react/shared.d.ts +78 -0
- package/lib/commands/page/react/shared.js +1 -0
- package/lib/commands/page/react/syntax.d.ts +18 -0
- package/lib/commands/page/react/syntax.js +1 -0
- package/lib/commands/page/react/template.d.ts +8 -0
- package/lib/commands/page/react/template.js +1 -0
- package/lib/commands/page/react/update.d.ts +2 -0
- package/lib/commands/page/react/update.js +1 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +1 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
- package/lib/commands/user-account/index.d.ts +2 -0
- package/lib/commands/user-account/index.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +117 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.d.ts +3 -0
- package/lib/postinstall.js +1 -0
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.d.ts +37 -0
- package/lib/skills/builtin-skill.js +1 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +4 -2
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -3
- package/scripts/postinstall.mjs +24 -0
- package/skills/rabetbase/SKILL.md +493 -0
- package/skills/rabetbase/guides/backend-function.md +835 -0
- package/skills/rabetbase/guides/best-practices.md +137 -0
- package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
- package/skills/rabetbase/guides/conflict-detection.md +119 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
- package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
- package/skills/rabetbase/guides/frontend-development.md +179 -0
- package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
- package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
- package/skills/rabetbase/guides/page-development-workflow.md +187 -0
- package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
- package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
- package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
- package/skills/rabetbase/guides/sql-mybatis.md +126 -0
- package/skills/rabetbase/guides/troubleshooting.md +67 -0
- package/skills/rabetbase/guides/typescript-sdk.md +227 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
- package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
- package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
- package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
- package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
- package/skills/rabetbase/knowledge/react-page/components.md +225 -0
- package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
- package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
- package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
- package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
- package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
- package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
- package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
- package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
- package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
- package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
- package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
- package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
- package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
- package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
- package/skills/rabetbase/references/rabetbase-config.md +296 -0
- package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
- package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
- package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
- package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
- package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
- package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
- package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
- package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
- package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
- package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
- package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
- package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
- package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
- package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
- package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
- package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
- package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
- package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
- package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
- package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
- package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
- package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
- package/skills/rabetbase/references/rabetbase-file.md +35 -0
- package/skills/rabetbase/references/rabetbase-init.md +70 -0
- package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
- package/skills/rabetbase/references/rabetbase-kb.md +62 -0
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
- package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
- package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
- package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
- package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
- package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
- package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
- package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
- package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
- package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
- package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
- package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
- package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
- package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
- package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
- package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
- package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
- package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
- package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
- package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
- package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
- package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
- package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
- package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
- package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
- package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
- package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
- package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
- package/skills/rabetbase/references/rabetbase-run.md +53 -0
- package/skills/rabetbase/references/rabetbase-schema.md +22 -0
- package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
- package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
- package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
- package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
- package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
- package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
- package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
- package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
- package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
- package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
- package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
- package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
- package/skills/rabetbase/references/rabetbase-update.md +56 -0
- package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
- package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
- package/skills/rabetbase.manifest.json +137 -0
package/lib/commands/app/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x53d52c=a19_0x1d16;(function(_0x309c45,_0xd49ae1){const _0x3e3d7f=a19_0x1d16,_0x1972b3=_0x309c45();while(!![]){try{const _0x5007ac=parseInt(_0x3e3d7f(0x11e))/0x1+parseInt(_0x3e3d7f(0x116))/0x2*(parseInt(_0x3e3d7f(0x117))/0x3)+-parseInt(_0x3e3d7f(0x132))/0x4*(-parseInt(_0x3e3d7f(0x12a))/0x5)+-parseInt(_0x3e3d7f(0x12f))/0x6+-parseInt(_0x3e3d7f(0x12e))/0x7+parseInt(_0x3e3d7f(0x115))/0x8+-parseInt(_0x3e3d7f(0x13f))/0x9*(parseInt(_0x3e3d7f(0x11f))/0xa);if(_0x5007ac===_0xd49ae1)break;else _0x1972b3['push'](_0x1972b3['shift']());}catch(_0x34ee03){_0x1972b3['push'](_0x1972b3['shift']());}}}(a19_0x34f9,0xdfa98));function a19_0x34f9(){const _0x587ab2=['optional','apps','map','read','push','length','No\x20apps\x20configured','30SLAxyN','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','bool','find','5123202nBqgwh','8866386QXOIgT','list','appcode','1176744dSleKL','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','object','projectPath','remote','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','defaultApp','merged','validation','globalConfig','globalPath','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','mergedCli','10281222weprGh','projectConfig','app','\x20config','inherit','13556352hzIMxi','3826GpGVKP','3PZEJxK','isCurrent','project','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','.\x20Use\x20`','\x20in\x20','806522tsoayN','10NvkJfC','global','entries','boolean'];a19_0x34f9=function(){return _0x587ab2;};return a19_0x34f9();}import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{buildAppProfileListFields}from'../../config/schema.js';import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function a19_0x1d16(_0x25db3c,_0x240e65){_0x25db3c=_0x25db3c-0x112;const _0x34f92a=a19_0x34f9();let _0x1d16bc=_0x34f92a[_0x25db3c];return _0x1d16bc;}function buildItemsFromLayer(_0x24882d,_0x3445e9){const _0x5f4c2c=a19_0x1d16,_0x269aa9=[],_0x2f85d7=_0x24882d[_0x5f4c2c(0x124)]&&typeof _0x24882d[_0x5f4c2c(0x124)]===_0x5f4c2c(0x134)?_0x24882d[_0x5f4c2c(0x124)]:{},_0x51215a=_0x24882d[_0x5f4c2c(0x138)]||undefined;for(const [_0x422be0,_0x2dff27]of Object[_0x5f4c2c(0x121)](_0x2f85d7)){if(!_0x2dff27||typeof _0x2dff27!=='object'||!_0x2dff27[_0x5f4c2c(0x131)])continue;_0x269aa9[_0x5f4c2c(0x127)]({'name':_0x422be0,'appcode':_0x2dff27[_0x5f4c2c(0x131)],'named':!![],'definedIn':_0x3445e9,'isDefault':_0x422be0===_0x51215a,...buildAppProfileListFields(_0x2dff27)});}return _0x269aa9;}function buildMergedItems(_0x40ca81,_0x5e3c2f){const _0x30b6b8=a19_0x1d16,{apps:apps={},defaultApp:_0x262d57}=_0x40ca81,_0x56a734=_0x5e3c2f[_0x30b6b8(0x13b)][_0x30b6b8(0x124)]&&typeof _0x5e3c2f['globalConfig'][_0x30b6b8(0x124)]===_0x30b6b8(0x134)?_0x5e3c2f[_0x30b6b8(0x13b)][_0x30b6b8(0x124)]:{},_0x3485e0=_0x5e3c2f['projectConfig'][_0x30b6b8(0x124)]&&typeof _0x5e3c2f[_0x30b6b8(0x140)]['apps']===_0x30b6b8(0x134)?_0x5e3c2f[_0x30b6b8(0x140)][_0x30b6b8(0x124)]:{},_0x277e46=_0x5e3c2f[_0x30b6b8(0x140)][_0x30b6b8(0x114)]===![],_0x416c95=Object[_0x30b6b8(0x121)](apps),_0xdb72ea=_0x416c95[_0x30b6b8(0x125)](([_0x1e9428,_0x33cd9c])=>({'name':_0x1e9428,'appcode':_0x33cd9c[_0x30b6b8(0x131)],'named':!![],'definedIn':appDefinedIn(_0x1e9428,_0x56a734,_0x3485e0,_0x277e46),'isDefault':_0x1e9428===_0x262d57,...buildAppProfileListFields(_0x33cd9c)}));return _0xdb72ea;}function validateAppListFlags(_0x454eb9){const _0x2c4d24=a19_0x1d16;if(!_0x454eb9[_0x2c4d24(0x12c)](_0x2c4d24(0x136)))return;if(!_0x454eb9[_0x2c4d24(0x12c)]('global')&&!_0x454eb9['bool']('project'))return;throw CliErrors[_0x2c4d24(0x13a)](_0x2c4d24(0x13d),_0x2c4d24(0x11b));}async function execute(_0x20f662){const _0x2ac789=a19_0x1d16;validateAppListFlags(_0x20f662);if(_0x20f662[_0x2ac789(0x12c)](_0x2ac789(0x136)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x20f662)};const _0x4a3050=_0x20f662[_0x2ac789(0x12c)](_0x2ac789(0x120)),_0x552e0c=_0x20f662[_0x2ac789(0x12c)]('project'),_0x53a347=_0x4a3050?'global':_0x552e0c?_0x2ac789(0x119):'merged',{config:_0xb4a445,layers:_0x37d5be}=readRawConfigWithLayers(),_0x250266=resolveDefaultAppSource(_0x37d5be),{defaultApp:_0xb7549b}=_0xb4a445;let _0x5c8cd0,_0x592fc5;switch(_0x53a347){case _0x2ac789(0x120):_0x5c8cd0=buildItemsFromLayer(_0x37d5be[_0x2ac789(0x13b)],_0x2ac789(0x120)),_0x592fc5=_0x37d5be['globalPath'];break;case _0x2ac789(0x119):_0x5c8cd0=buildItemsFromLayer(_0x37d5be[_0x2ac789(0x140)],_0x2ac789(0x119)),_0x592fc5=_0x37d5be['projectPath'];break;default:_0x5c8cd0=buildMergedItems(_0xb4a445,_0x37d5be);break;}enrichAppListItemsWithMergedSelection(_0x5c8cd0,_0x20f662[_0x2ac789(0x13e)]);if(_0x5c8cd0[_0x2ac789(0x128)]===0x0){const _0x5a001c=_0x53a347===_0x2ac789(0x139)?'':_0x2ac789(0x11d)+_0x53a347+_0x2ac789(0x113);return{'ok':!![],'data':[],'message':_0x2ac789(0x129)+_0x5a001c+_0x2ac789(0x11c)+CLI_BIN_NAME+_0x2ac789(0x11a)};}const _0xc40da8=_0x5c8cd0[_0x2ac789(0x12d)](_0x2efecf=>_0x2efecf[_0x2ac789(0x118)]===!![]),_0x2603af=_0xb7549b??_0xc40da8?.['appcode']??null,_0x5784e8=_0x53a347===_0x2ac789(0x139)?{'globalPath':_0x37d5be[_0x2ac789(0x13c)]??null,'projectPath':_0x37d5be[_0x2ac789(0x135)]??null,'defaultApp':_0x2603af,'defaultAppSource':_0xb7549b!=null?_0x250266:null}:{'scope':_0x53a347,'configPath':_0x592fc5??null};return{'ok':!![],'data':{'items':_0x5c8cd0,'meta':_0x5784e8}};}export const appListDefinition={'service':a19_0x53d52c(0x112),'command':a19_0x53d52c(0x130),'description':a19_0x53d52c(0x12b),'risk':a19_0x53d52c(0x126),'auth':a19_0x53d52c(0x123),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'remote','type':a19_0x53d52c(0x122),'description':a19_0x53d52c(0x133),'default':![]},{'name':a19_0x53d52c(0x120),'type':a19_0x53d52c(0x122),'description':'Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','default':![]},{'name':a19_0x53d52c(0x119),'type':a19_0x53d52c(0x122),'description':a19_0x53d52c(0x137),'default':![]}],async 'validate'(_0x21ad41){validateAppListFlags(_0x21ad41);},'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x463b50=a20_0x1247;(function(_0x37d481,_0x17e48c){const _0x1cdd95=a20_0x1247,_0xf707b8=_0x37d481();while(!![]){try{const _0x370309=-parseInt(_0x1cdd95(0x7b))/0x1*(parseInt(_0x1cdd95(0x83))/0x2)+-parseInt(_0x1cdd95(0x84))/0x3+-parseInt(_0x1cdd95(0x80))/0x4*(-parseInt(_0x1cdd95(0x82))/0x5)+parseInt(_0x1cdd95(0x7f))/0x6*(-parseInt(_0x1cdd95(0x7d))/0x7)+parseInt(_0x1cdd95(0x7a))/0x8+parseInt(_0x1cdd95(0x79))/0x9*(-parseInt(_0x1cdd95(0x89))/0xa)+parseInt(_0x1cdd95(0x86))/0xb*(parseInt(_0x1cdd95(0x85))/0xc);if(_0x370309===_0x17e48c)break;else _0xf707b8['push'](_0xf707b8['shift']());}catch(_0x4d9574){_0xf707b8['push'](_0xf707b8['shift']());}}}(a20_0x36b8,0x43f82));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';function a20_0x1247(_0x3d60bd,_0x26885a){_0x3d60bd=_0x3d60bd-0x78;const _0x36b8a2=a20_0x36b8();let _0x1247dc=_0x36b8a2[_0x3d60bd];return _0x1247dc;}function a20_0x36b8(){const _0x2d204c=['159375vjowrV','app','332549HExctv','read','18IISbjL','212764kEXmwa','Found\x20','15IKMGMf','4YXAVsl','636048JkxpOZ','12wTXqRi','8163221bzVELN','List\x20application\x20members\x20with\x20their\x20role\x20memberships','length','70FtmGlS','appCode','480303Kuvrqc','3388592DgHNOG'];a20_0x36b8=function(){return _0x2d204c;};return a20_0x36b8();}import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':a20_0x463b50(0x7c),'command':'members-list','description':a20_0x463b50(0x87),'risk':a20_0x463b50(0x7e),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x10ba03){const _0x2c4396=a20_0x463b50,_0x4f1061=projectAppMembers(await listRoleUsers(_0x10ba03[_0x2c4396(0x78)]));return{'ok':!![],'data':{'appCode':_0x10ba03[_0x2c4396(0x78)],'items':_0x4f1061,'totalCount':_0x4f1061[_0x2c4396(0x88)]},'message':_0x2c4396(0x81)+_0x4f1061['length']+'\x20application\x20member(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d5b01,_0x110ba1){const _0xf5951b=a21_0x5bf5,_0x3e26c9=_0x2d5b01();while(!![]){try{const _0x330bae=parseInt(_0xf5951b(0x12e))/0x1+parseInt(_0xf5951b(0x12f))/0x2*(parseInt(_0xf5951b(0x125))/0x3)+-parseInt(_0xf5951b(0x12c))/0x4*(-parseInt(_0xf5951b(0x12b))/0x5)+parseInt(_0xf5951b(0x12a))/0x6+parseInt(_0xf5951b(0x12d))/0x7+parseInt(_0xf5951b(0x123))/0x8*(parseInt(_0xf5951b(0x124))/0x9)+-parseInt(_0xf5951b(0x126))/0xa;if(_0x330bae===_0x110ba1)break;else _0x3e26c9['push'](_0x3e26c9['shift']());}catch(_0x4ed1d1){_0x3e26c9['push'](_0x3e26c9['shift']());}}}(a21_0xf1bc,0x84add));import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';function a21_0xf1bc(){const _0x1e788d=['appDesc','58096hpVqJB','1251SrWvsO','884769YbzSDd','29299500yXYqEp','appName','platform','authRequired','2535666Qxvkxa','355CeJsFQ','4684CQnBRQ','5679919WIXGnn','262047Sgjayp','6WWPkZJ'];a21_0xf1bc=function(){return _0x1e788d;};return a21_0xf1bc();}import{CliErrors}from'../../errors.js';function a21_0x5bf5(_0x357af3,_0x43fd2f){_0x357af3=_0x357af3-0x122;const _0xf1bc1a=a21_0xf1bc();let _0x5bf515=_0xf1bc1a[_0x357af3];return _0x5bf515;}import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x249524){const _0x33944d=a21_0x5bf5,_0x332e7e=_0x249524['cookie']||getCookie();if(!_0x332e7e)throw CliErrors[_0x33944d(0x129)]();return _0x332e7e;}export async function listRemoteAppDirectory(_0x492f8b){const _0xdc8605=a21_0x5bf5,_0x49e689=await withActiveCookie(resolveCookie(_0x492f8b),()=>listRemoteApps());return{'items':_0x49e689['map'](_0x2d7b6a=>({..._0x2d7b6a['id']!=null?{'id':_0x2d7b6a['id']}:{},'appCode':_0x2d7b6a['appCode'],'appName':_0x2d7b6a[_0xdc8605(0x127)],..._0x2d7b6a[_0xdc8605(0x122)]!=null?{'appDesc':_0x2d7b6a['appDesc']}:{}})),'meta':{'source':_0xdc8605(0x128)}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59903d,_0x1442d1){const _0x3af2d3=a22_0x10ba,_0x8a4068=_0x59903d();while(!![]){try{const _0x3c057d=-parseInt(_0x3af2d3(0x1ad))/0x1*(parseInt(_0x3af2d3(0x1a8))/0x2)+parseInt(_0x3af2d3(0x1b8))/0x3+-parseInt(_0x3af2d3(0x1a4))/0x4+parseInt(_0x3af2d3(0x1b2))/0x5*(-parseInt(_0x3af2d3(0x1c9))/0x6)+parseInt(_0x3af2d3(0x1ce))/0x7*(-parseInt(_0x3af2d3(0x1a6))/0x8)+parseInt(_0x3af2d3(0x1a5))/0x9+parseInt(_0x3af2d3(0x1a0))/0xa;if(_0x3c057d===_0x1442d1)break;else _0x8a4068['push'](_0x8a4068['shift']());}catch(_0x44a9ff){_0x8a4068['push'](_0x8a4068['shift']());}}}(a22_0x3895,0x6515b));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x3c51fd){const _0x1bd3db=a22_0x10ba,_0x58e1f1=_0x3c51fd?.[_0x1bd3db(0x1b1)]();return _0x58e1f1?_0x58e1f1:null;}export function projectAppMembers(_0x244664){const _0x46afaf=a22_0x10ba,_0x3c710f=new Map(),_0x1e522d=[..._0x244664][_0x46afaf(0x1a9)]((_0x59ab94,_0x5de96d)=>_0x59ab94['id']-_0x5de96d['id']),_0xaefc54=(_0x104dc7,_0x719d5c,_0x5e2b6)=>{const _0x23ed8e=_0x46afaf;for(const _0x259dc5 of _0x719d5c){const _0x4950ca=Number(_0x259dc5[_0x23ed8e(0x1b7)]);if(!Number[_0x23ed8e(0x1c3)](_0x4950ca)||_0x4950ca<=0x0)continue;let _0x5ea780=_0x3c710f[_0x23ed8e(0x1c7)](_0x4950ca);if(!_0x5ea780)_0x5ea780={'userId':_0x4950ca,'username':nullableText(_0x259dc5[_0x23ed8e(0x1ae)]),'displayName':nullableText(_0x259dc5['nickname']),'status':_0x5e2b6,'roles':[],'roleKeys':new Set()},_0x3c710f[_0x23ed8e(0x1c4)](_0x4950ca,_0x5ea780);else{_0x5ea780['username']??=nullableText(_0x259dc5[_0x23ed8e(0x1ae)]),_0x5ea780[_0x23ed8e(0x1cd)]??=nullableText(_0x259dc5['nickname']);if(_0x5e2b6==='ACTIVE')_0x5ea780[_0x23ed8e(0x1ac)]=_0x23ed8e(0x1cb);}const _0x284146=_0x104dc7['id']+':'+_0x5e2b6;if(_0x5ea780[_0x23ed8e(0x1ca)][_0x23ed8e(0x1be)](_0x284146))continue;_0x5ea780[_0x23ed8e(0x1ca)][_0x23ed8e(0x1ba)](_0x284146),_0x5ea780[_0x23ed8e(0x19e)]['push']({'roleId':_0x104dc7['id'],'roleName':nullableText(_0x104dc7[_0x23ed8e(0x1bb)]),'roleType':nullableText(_0x104dc7[_0x23ed8e(0x1c0)]),'membershipStatus':_0x5e2b6});}};for(const _0x3a4c20 of _0x1e522d){_0xaefc54(_0x3a4c20,_0x3a4c20[_0x46afaf(0x1b6)]??[],_0x46afaf(0x1cb)),_0xaefc54(_0x3a4c20,_0x3a4c20[_0x46afaf(0x19c)]??[],'PENDING');}return[..._0x3c710f['values']()][_0x46afaf(0x1c2)](_0x1c3a56=>({'userId':_0x1c3a56[_0x46afaf(0x1b7)],'username':_0x1c3a56['username'],'displayName':_0x1c3a56[_0x46afaf(0x1cd)],'status':_0x1c3a56[_0x46afaf(0x1ac)],'roles':_0x1c3a56[_0x46afaf(0x19e)][_0x46afaf(0x1a9)]((_0x1717b1,_0x2567b1)=>_0x1717b1[_0x46afaf(0x1c1)]-_0x2567b1['roleId']||(_0x1717b1[_0x46afaf(0x1a1)]===_0x2567b1['membershipStatus']?0x0:_0x1717b1[_0x46afaf(0x1a1)]===_0x46afaf(0x1cb)?-0x1:0x1))}))[_0x46afaf(0x1a9)]((_0x33a3b4,_0x2b2279)=>_0x33a3b4[_0x46afaf(0x1b7)]-_0x2b2279[_0x46afaf(0x1b7)]);}export function enrichAppListItemsWithMergedSelection(_0x4add2d,_0x5ddf2b){const _0x570d4a=a22_0x10ba;if(!_0x5ddf2b)return;const _0xb442c1=_0x5ddf2b[_0x570d4a(0x1b5)]&&typeof _0x5ddf2b[_0x570d4a(0x1b5)]===_0x570d4a(0x1bd)?_0x5ddf2b[_0x570d4a(0x1b5)]:{},_0x3e5073=Object[_0x570d4a(0x1a7)](_0xb442c1)[_0x570d4a(0x1c8)]>0x0;for(const _0x4ae013 of _0x4add2d){_0x4ae013[_0x570d4a(0x19b)]=![];}const _0x279294=_0x5ddf2b[_0x570d4a(0x1b4)]!=null?String(_0x5ddf2b['appCode'])[_0x570d4a(0x1b1)]():'';if(_0x3e5073){const _0x15043c=_0x5ddf2b[_0x570d4a(0x1af)]??_0x5ddf2b[_0x570d4a(0x19f)];if(_0x15043c)for(const _0x4de266 of _0x4add2d){_0x4de266[_0x570d4a(0x1aa)]===!![]&&_0x4de266[_0x570d4a(0x1cc)]===_0x15043c&&(_0x4de266[_0x570d4a(0x19b)]=!![]);}for(const _0x4c1abc of _0x4add2d){if(_0x4c1abc[_0x570d4a(0x1aa)]!==![])continue;if(_0x5ddf2b[_0x570d4a(0x19f)])continue;_0x279294&&String(_0x4c1abc[_0x570d4a(0x1a3)]??'')['trim']()===_0x279294&&(_0x4c1abc[_0x570d4a(0x19b)]=!![]);}return;}if(!_0x279294)return;for(const _0x255eb4 of _0x4add2d){String(_0x255eb4['appcode']??'')[_0x570d4a(0x1b1)]()===_0x279294&&(_0x255eb4['isCurrent']=!![]);}}export function resolveAppScopeForWrite(_0xe3ddcb,_0x49021f,_0xf41399){const _0x2153b7=a22_0x10ba;if(_0x49021f)return _0x2153b7(0x19d);const _0x391cae=_0xf41399[_0x2153b7(0x1c6)][_0x2153b7(0x1b5)]&&typeof _0xf41399[_0x2153b7(0x1c6)][_0x2153b7(0x1b5)]===_0x2153b7(0x1bd)?_0xf41399[_0x2153b7(0x1c6)]['apps']:{},_0x41d56b=_0xf41399[_0x2153b7(0x1bc)][_0x2153b7(0x1b5)]&&typeof _0xf41399['globalConfig']['apps']===_0x2153b7(0x1bd)?_0xf41399[_0x2153b7(0x1bc)][_0x2153b7(0x1b5)]:{};if(Object['prototype'][_0x2153b7(0x1ab)]['call'](_0x391cae,_0xe3ddcb))return _0x2153b7(0x1bf);if(Object[_0x2153b7(0x1b3)][_0x2153b7(0x1ab)][_0x2153b7(0x1a2)](_0x41d56b,_0xe3ddcb))return _0x2153b7(0x19d);return _0x2153b7(0x1bf);}function a22_0x10ba(_0x29e225,_0xbab505){_0x29e225=_0x29e225-0x19b;const _0x389553=a22_0x3895();let _0x10baaa=_0x389553[_0x29e225];return _0x10baaa;}export function appDefinedIn(_0x20476c,_0x944de1,_0x43c4f4,_0x3d5016){const _0x1b6acd=a22_0x10ba;if(_0x3d5016)return Object['prototype']['hasOwnProperty'][_0x1b6acd(0x1a2)](_0x43c4f4,_0x20476c)?_0x1b6acd(0x1bf):_0x1b6acd(0x19d);const _0x384b6e=Object[_0x1b6acd(0x1b3)][_0x1b6acd(0x1ab)][_0x1b6acd(0x1a2)](_0x944de1,_0x20476c),_0x214455=Object[_0x1b6acd(0x1b3)][_0x1b6acd(0x1ab)][_0x1b6acd(0x1a2)](_0x43c4f4,_0x20476c);if(_0x384b6e&&_0x214455)return _0x1b6acd(0x1b9);if(_0x214455)return _0x1b6acd(0x1bf);return _0x1b6acd(0x19d);}function a22_0x3895(){const _0x2cde5e=['appcode','717212yIzueA','828000oPncni','1954888uYumlC','keys','130vuQcHz','sort','named','hasOwnProperty','status','4513TQgafO','username','currentApp','\x20(global)','trim','9830XSxKMG','prototype','appCode','apps','userList','userId','2078616FfsEPf','both','add','roleName','globalConfig','object','has','project','roleType','roleId','map','isFinite','set','inherit','projectConfig','get','length','912lCHvXE','roleKeys','ACTIVE','name','displayName','21YFFOva','isCurrent','applyUserList','global','roles','defaultApp','11337340IxLvka','membershipStatus','call'];a22_0x3895=function(){return _0x2cde5e;};return a22_0x3895();}export function resolveDefaultAppSource(_0x49d709){const _0x545cf1=a22_0x10ba,_0x11b24f=_0x49d709['projectConfig']['apps']&&typeof _0x49d709[_0x545cf1(0x1c6)]['apps']==='object'?_0x49d709[_0x545cf1(0x1c6)][_0x545cf1(0x1b5)]:{};if(_0x545cf1(0x19f)in _0x49d709[_0x545cf1(0x1c6)])return _0x545cf1(0x1bf);if(Object['keys'](_0x11b24f)[_0x545cf1(0x1c8)]>0x0)return'project';if(_0x49d709['projectConfig'][_0x545cf1(0x1c5)]===![])return null;if(_0x49d709[_0x545cf1(0x1bc)]['defaultApp'])return _0x545cf1(0x19d);return null;}export function getConfigPath(_0x368997={}){const _0x507056=a22_0x10ba,_0x2163bd=_0x368997[_0x507056(0x19d)]?_0x507056(0x19d):_0x507056(0x1bf);return resolveWriteConfigPath(_0x2163bd);}export function readConfig(_0x19641d={}){return readConfigFile(getConfigPath(_0x19641d));}export function writeConfig(_0x57deb9,_0x5ecaf0={}){writeConfigFile(getConfigPath(_0x5ecaf0),_0x57deb9);}export function scopeLabel(_0x5bfdb6){const _0x2b228f=a22_0x10ba;return _0x5bfdb6[_0x2b228f(0x19d)]?_0x2b228f(0x1b0):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a23_0xa231(){const _0x26e44c=[',\x20appCode=','number','App\x20config\x20key\x20not\x20found:\x20','appCode:\x20','Deleted\x20app\x20config\x20','420705mbIzkm','isFinite','1126590eFGxss','validation','586506uPQiti','6QDgvbQ','apiError','delete','646768TCDYNu','3044850JgrXDr','App\x20config\x20server\x20id\x20missing\x20for\x20key=','appCode','app-config','7uQlbuX','/smartapi/app-config/delete','2379576WxdGtL','5082075KuLekE','high-risk-write','get'];a23_0xa231=function(){return _0x26e44c;};return a23_0xa231();}const a23_0x299495=a23_0x1368;(function(_0x35f229,_0x4906a5){const _0x4d053b=a23_0x1368,_0x2af649=_0x35f229();while(!![]){try{const _0x53ce2d=-parseInt(_0x4d053b(0x1c9))/0x1+-parseInt(_0x4d053b(0x1ca))/0x2*(-parseInt(_0x4d053b(0x1dd))/0x3)+parseInt(_0x4d053b(0x1cd))/0x4+-parseInt(_0x4d053b(0x1ce))/0x5+parseInt(_0x4d053b(0x1df))/0x6+parseInt(_0x4d053b(0x1d2))/0x7*(parseInt(_0x4d053b(0x1d4))/0x8)+parseInt(_0x4d053b(0x1d5))/0x9;if(_0x53ce2d===_0x4906a5)break;else _0x2af649['push'](_0x2af649['shift']());}catch(_0x182ba6){_0x2af649['push'](_0x2af649['shift']());}}}(a23_0xa231,0x6aa48));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a23_0x1368(_0x147c3d,_0x38ce0f){_0x147c3d=_0x147c3d-0x1c9;const _0xa23126=a23_0xa231();let _0x1368e4=_0xa23126[_0x147c3d];return _0x1368e4;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const DELETE_PATH=a23_0x299495(0x1d3);export const appConfigDelete={'service':a23_0x299495(0x1d1),'command':a23_0x299495(0x1cc),'description':'Delete\x20one\x20runtime\x20app-config\x20key','risk':a23_0x299495(0x1d6),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0xd89347){readKeyArg(_0xd89347);},async 'dryRun'(_0x279815){const _0x355748=a23_0x299495,_0x38739c=readKeyArg(_0x279815),_0xb891dd=await mustGetByKey(_0x279815[_0x355748(0x1d0)],_0x38739c);return asAppConfigDryRunResult(buildMutationData({'operation':_0x355748(0x1cc),'appCode':_0x279815['appCode'],'key':_0x38739c,'before':projectAppConfig(_0xb891dd),'after':null,'dryRun':!![]}),{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x1dbe23){const _0x4644d4=a23_0x299495,_0x35ab4f=readKeyArg(_0x1dbe23),_0x34e215=await mustGetByKey(_0x1dbe23['appCode'],_0x35ab4f);return await withAppConfigApiBoundary(_0x4644d4(0x1cc),{'appCode':_0x1dbe23[_0x4644d4(0x1d0)],'key':_0x35ab4f},()=>deleteAppConfig({'appCode':_0x1dbe23[_0x4644d4(0x1d0)],'id':requireAppConfigId(_0x34e215,_0x35ab4f,_0x1dbe23[_0x4644d4(0x1d0)])})),{'ok':!![],'data':buildMutationData({'operation':_0x4644d4(0x1cc),'appCode':_0x1dbe23[_0x4644d4(0x1d0)],'key':_0x35ab4f,'before':projectAppConfig(_0x34e215),'after':null,'dryRun':![]}),'message':_0x4644d4(0x1dc)+_0x35ab4f};}};async function mustGetByKey(_0x1af28e,_0xe6af96){const _0x36fc1a=a23_0x299495,_0x372536=await withAppConfigApiBoundary(_0x36fc1a(0x1d7),{'appCode':_0x1af28e,'key':_0xe6af96},()=>getAppConfigByKey(_0x1af28e,_0xe6af96));if(!_0x372536)throw CliErrors[_0x36fc1a(0x1e0)](_0x36fc1a(0x1da)+_0xe6af96,_0x36fc1a(0x1db)+_0x1af28e);return _0x372536;}function requireAppConfigId(_0x1b3cdc,_0x4259a6,_0x2f339a){const _0x56b679=a23_0x299495;if(typeof _0x1b3cdc['id']===_0x56b679(0x1d9)&&Number[_0x56b679(0x1de)](_0x1b3cdc['id'])&&_0x1b3cdc['id']>0x0)return _0x1b3cdc['id'];throw CliErrors[_0x56b679(0x1cb)](_0x56b679(0x1cf)+_0x4259a6+_0x56b679(0x1d8)+_0x2f339a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a24_0x4846ba=a24_0x5050;(function(_0x13f41d,_0xade037){const _0x1251c8=a24_0x5050,_0x2628b7=_0x13f41d();while(!![]){try{const _0x5f465b=-parseInt(_0x1251c8(0x116))/0x1*(parseInt(_0x1251c8(0x114))/0x2)+parseInt(_0x1251c8(0x115))/0x3*(-parseInt(_0x1251c8(0x11f))/0x4)+-parseInt(_0x1251c8(0x126))/0x5*(-parseInt(_0x1251c8(0x118))/0x6)+parseInt(_0x1251c8(0x120))/0x7+-parseInt(_0x1251c8(0x119))/0x8+-parseInt(_0x1251c8(0x125))/0x9+parseInt(_0x1251c8(0x11e))/0xa*(parseInt(_0x1251c8(0x11c))/0xb);if(_0x5f465b===_0xade037)break;else _0x2628b7['push'](_0x2628b7['shift']());}catch(_0x89e0c0){_0x2628b7['push'](_0x2628b7['shift']());}}}(a24_0x92eb,0x7794a));import{getAppConfigByKey}from'../../core/api-client.js';function a24_0x5050(_0x228e34,_0x6fa40){_0x228e34=_0x228e34-0x114;const _0x92eb56=a24_0x92eb();let _0x5050b4=_0x92eb56[_0x228e34];return _0x5050b4;}import{CliErrors}from'../../errors.js';function a24_0x92eb(){const _0xc6f169=['643666mqPcMc','\x20with\x20value\x20redacted','1654662lPQYWE','6418760XGpFRD','appCode:\x20','read','11pSWmGp','bool','15310520rmCiEb','644260jGFwyb','4774511NjgHYH','reveal','appCode','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','Loaded\x20app\x20config\x20','3528216EoyncU','5CxEQKe','get','2GAHNNF','3lVvPyg'];a24_0x92eb=function(){return _0xc6f169;};return a24_0x92eb();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':'app-config','command':a24_0x4846ba(0x127),'description':a24_0x4846ba(0x123),'risk':a24_0x4846ba(0x11b),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0xe6c000){readKeyArg(_0xe6c000);},async 'execute'(_0x41af11){const _0x1f118c=a24_0x4846ba,_0x58ab60=readKeyArg(_0x41af11),_0x5e0c0a=await withAppConfigApiBoundary(_0x1f118c(0x127),{'appCode':_0x41af11[_0x1f118c(0x122)],'key':_0x58ab60},()=>getAppConfigByKey(_0x41af11[_0x1f118c(0x122)],_0x58ab60));if(!_0x5e0c0a)throw CliErrors['validation']('App\x20config\x20key\x20not\x20found:\x20'+_0x58ab60,_0x1f118c(0x11a)+_0x41af11[_0x1f118c(0x122)]);const _0x29e069=projectAppConfig(_0x5e0c0a,{'reveal':_0x41af11[_0x1f118c(0x11d)](_0x1f118c(0x121))});return{'ok':!![],'data':{'config':_0x29e069},'message':_0x41af11[_0x1f118c(0x11d)](_0x1f118c(0x121))?_0x1f118c(0x124)+_0x58ab60+'\x20with\x20value\x20revealed':_0x1f118c(0x124)+_0x58ab60+_0x1f118c(0x117)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14eb24,_0xbc9b45){const _0x3d4bc8=a25_0x488b,_0x36fb48=_0x14eb24();while(!![]){try{const _0x1af1ad=parseInt(_0x3d4bc8(0x8b))/0x1*(parseInt(_0x3d4bc8(0x8c))/0x2)+parseInt(_0x3d4bc8(0x85))/0x3+-parseInt(_0x3d4bc8(0x8d))/0x4*(parseInt(_0x3d4bc8(0x86))/0x5)+parseInt(_0x3d4bc8(0x8a))/0x6+-parseInt(_0x3d4bc8(0x88))/0x7+-parseInt(_0x3d4bc8(0x89))/0x8+parseInt(_0x3d4bc8(0x87))/0x9*(parseInt(_0x3d4bc8(0x84))/0xa);if(_0x1af1ad===_0xbc9b45)break;else _0x36fb48['push'](_0x36fb48['shift']());}catch(_0x1f6993){_0x36fb48['push'](_0x36fb48['shift']());}}}(a25_0x381e,0x66ab0));import{appConfigList}from'../../commands/app-config/list.js';import{appConfigGet}from'../../commands/app-config/get.js';function a25_0x488b(_0x4a3d06,_0x3e062c){_0x4a3d06=_0x4a3d06-0x84;const _0x381e7e=a25_0x381e();let _0x488ba7=_0x381e7e[_0x4a3d06];return _0x488ba7;}import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];function a25_0x381e(){const _0x4e9ee0=['1uhXIXO','1231358etHdsE','8vBoamD','1730620wxBzfe','416055JkcEYs','1503995LISMbp','45hqqOgm','3872141OPrEDj','2181376zlSsDE','1369722NcJHYT'];a25_0x381e=function(){return _0x4e9ee0;};return a25_0x381e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a26_0x216041=a26_0x1e6e;(function(_0xc938d3,_0x3617c0){const _0x4c6673=a26_0x1e6e,_0x5d72c9=_0xc938d3();while(!![]){try{const _0x2401cd=-parseInt(_0x4c6673(0x173))/0x1+-parseInt(_0x4c6673(0x176))/0x2+-parseInt(_0x4c6673(0x172))/0x3*(-parseInt(_0x4c6673(0x171))/0x4)+-parseInt(_0x4c6673(0x16b))/0x5+-parseInt(_0x4c6673(0x16d))/0x6+-parseInt(_0x4c6673(0x16a))/0x7+parseInt(_0x4c6673(0x170))/0x8;if(_0x2401cd===_0x3617c0)break;else _0x5d72c9['push'](_0x5d72c9['shift']());}catch(_0x52b98f){_0x5d72c9['push'](_0x5d72c9['shift']());}}}(a26_0x413e,0x558ac));function a26_0x413e(){const _0x5eb7fc=['113852ojnWqV','21DjIYdj','373537jvSjce','Filter\x20by\x20exact\x20config\x20key','appCode','176740cVrSwZ','trim','read','map','length','str','list','key','\x20app\x20config(s)','1620458qIPyJz','1722440FazDbf','List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','3424356RFlnNk','app-config','string','14078032lZVgEp'];a26_0x413e=function(){return _0x5eb7fc;};return a26_0x413e();}import{listAppConfigs}from'../../core/api-client.js';function a26_0x1e6e(_0x5cfe00,_0x4b6a58){_0x5cfe00=_0x5cfe00-0x164;const _0x413edf=a26_0x413e();let _0x1e6e78=_0x413edf[_0x5cfe00];return _0x1e6e78;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppConfig,readOptionalTags,TAGS_FLAG,validateKey,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigList={'service':a26_0x216041(0x16e),'command':a26_0x216041(0x167),'description':a26_0x216041(0x16c),'risk':a26_0x216041(0x178),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a26_0x216041(0x168),'type':a26_0x216041(0x16f),'description':a26_0x216041(0x174)},TAGS_FLAG],async 'validate'(_0x130861){const _0x4e68de=a26_0x216041,_0x21e47d=_0x130861[_0x4e68de(0x166)](_0x4e68de(0x168))[_0x4e68de(0x177)]();if(_0x21e47d)validateKey(_0x21e47d);readOptionalTags(_0x130861);},async 'execute'(_0x10a968){const _0x4aae7b=a26_0x216041,_0xcc7c43=_0x10a968['str']('key')['trim']()||undefined,_0x43deea=readOptionalTags(_0x10a968),_0x2cd186=await withAppConfigApiBoundary('list',{'appCode':_0x10a968['appCode']},()=>listAppConfigs(_0x10a968[_0x4aae7b(0x175)],{'key':_0xcc7c43,'tags':_0x43deea})),_0x34e330=_0x2cd186[_0x4aae7b(0x164)](_0x3691d2=>projectAppConfig(_0x3691d2));return{'ok':!![],'data':{'appCode':_0x10a968['appCode'],'count':_0x34e330['length'],'configs':_0x34e330},'message':'Found\x20'+_0x34e330[_0x4aae7b(0x165)]+_0x4aae7b(0x169)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0xf1cf22=a27_0x4561;(function(_0x424369,_0x4f7c85){const _0x329001=a27_0x4561,_0x15fd14=_0x424369();while(!![]){try{const _0x540201=-parseInt(_0x329001(0x168))/0x1*(-parseInt(_0x329001(0x151))/0x2)+parseInt(_0x329001(0x15e))/0x3+-parseInt(_0x329001(0x166))/0x4*(-parseInt(_0x329001(0x152))/0x5)+-parseInt(_0x329001(0x167))/0x6*(parseInt(_0x329001(0x150))/0x7)+parseInt(_0x329001(0x161))/0x8*(parseInt(_0x329001(0x159))/0x9)+parseInt(_0x329001(0x15a))/0xa*(parseInt(_0x329001(0x158))/0xb)+-parseInt(_0x329001(0x16c))/0xc;if(_0x540201===_0x4f7c85)break;else _0x15fd14['push'](_0x15fd14['shift']());}catch(_0xfa8cf0){_0x15fd14['push'](_0x15fd14['shift']());}}}(a27_0x5455,0x93bc4));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';function a27_0x4561(_0x970f7,_0xa8d015){_0x970f7=_0x970f7-0x150;const _0x545534=a27_0x5455();let _0x4561dc=_0x545534[_0x970f7];return _0x4561dc;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH=a27_0xf1cf22(0x16a),UPDATE_PATH='/smartapi/app-config/update';function a27_0x5455(){const _0x42559c=['6330249QuFlGB','10xPBEmn','isFinite','tags','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','1387413jFJovn','set','\x20app\x20config\x20','8xgMMTs','high-risk-write',',\x20appCode=','appCode','App\x20config\x20server\x20id\x20missing\x20for\x20key=','236884EUOLPu','6NWBKli','807277GvruUC','update','/smartapi/app-config/create','get','27932136tnUVKW','1433579IRJbhI','2lqRvEm','55HooWXw','file','create','number','Updated','app-config','5643649OlVdpl'];a27_0x5455=function(){return _0x42559c;};return a27_0x5455();}export const appConfigSet={'service':a27_0xf1cf22(0x157),'command':a27_0xf1cf22(0x15f),'description':a27_0xf1cf22(0x15d),'risk':a27_0xf1cf22(0x162),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a27_0xf1cf22(0x153),'type':'string','description':'Read\x20config\x20value\x20from\x20file'}],async 'validate'(_0x491bb3){readKeyArg(_0x491bb3),readOptionalTags(_0x491bb3),assertSingleValueSource(_0x491bb3);},async 'dryRun'(_0x3cec7d){const _0x2b6f77=a27_0xf1cf22,_0x351032=readKeyArg(_0x3cec7d),_0x67e6aa=readOptionalTags(_0x3cec7d),_0x3058ab=assertSingleValueSource(_0x3cec7d);await assertValueSourceReadable(_0x3058ab);const _0x4a533f=await withAppConfigApiBoundary(_0x2b6f77(0x16b),{'appCode':_0x3cec7d[_0x2b6f77(0x164)],'key':_0x351032},()=>getAppConfigByKey(_0x3cec7d['appCode'],_0x351032)),_0x23d256=_0x4a533f?_0x2b6f77(0x169):_0x2b6f77(0x154),_0x3349a2=_0x4a533f?projectAppConfig(_0x4a533f):null,_0x17542a=plannedAppConfig({'appCode':_0x3cec7d[_0x2b6f77(0x164)],'key':_0x351032,'tags':_0x67e6aa??_0x4a533f?.[_0x2b6f77(0x15c)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x23d256,'appCode':_0x3cec7d[_0x2b6f77(0x164)],'key':_0x351032,'before':_0x3349a2,'after':_0x17542a,'dryRun':!![]}),{'method':'POST','url':_0x23d256==='update'?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x4bf760){const _0xed0091=a27_0xf1cf22,_0x232880=readKeyArg(_0x4bf760),_0x4820d6=readOptionalTags(_0x4bf760),_0x4c1e59=await withAppConfigApiBoundary(_0xed0091(0x16b),{'appCode':_0x4bf760[_0xed0091(0x164)],'key':_0x232880},()=>getAppConfigByKey(_0x4bf760['appCode'],_0x232880)),_0xc15bf5=_0x4c1e59?projectAppConfig(_0x4c1e59):null,_0x230b28=_0x4c1e59?_0xed0091(0x169):_0xed0091(0x154),{value:_0x4d1555,warnings:_0x8342d6}=await readAppConfigValue(_0x4bf760),_0x832b87={'appCode':_0x4bf760[_0xed0091(0x164)],'key':_0x232880,'value':_0x4d1555,'tags':_0x4820d6??_0x4c1e59?.[_0xed0091(0x15c)]??undefined};await withAppConfigApiBoundary(_0x230b28,{'appCode':_0x4bf760[_0xed0091(0x164)],'key':_0x232880},async()=>{const _0x24521c=_0xed0091;_0x4c1e59?await updateAppConfig({..._0x832b87,'id':requireAppConfigId(_0x4c1e59,_0x232880,_0x4bf760[_0x24521c(0x164)])}):await createAppConfig(_0x832b87);});const _0x530ceb=await withAppConfigApiBoundary('get',{'appCode':_0x4bf760[_0xed0091(0x164)],'key':_0x232880},()=>getAppConfigByKey(_0x4bf760[_0xed0091(0x164)],_0x232880)),_0x1be8f2=_0x530ceb?projectAppConfig(_0x530ceb):plannedAppConfig({'appCode':_0x4bf760[_0xed0091(0x164)],'key':_0x232880,'tags':_0x832b87['tags'],'hasValue':_0x4d1555!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x230b28,'appCode':_0x4bf760[_0xed0091(0x164)],'key':_0x232880,'before':_0xc15bf5,'after':_0x1be8f2,'dryRun':![],'warnings':_0x8342d6}),'message':(_0x230b28===_0xed0091(0x169)?_0xed0091(0x156):'Created')+_0xed0091(0x160)+_0x232880};}};function requireAppConfigId(_0x3b0ba5,_0x4d4e8b,_0x4b25a6){const _0x591f16=a27_0xf1cf22;if(typeof _0x3b0ba5['id']===_0x591f16(0x155)&&Number[_0x591f16(0x15b)](_0x3b0ba5['id'])&&_0x3b0ba5['id']>0x0)return _0x3b0ba5['id'];throw CliErrors['apiError'](_0x591f16(0x165)+_0x4d4e8b+_0x591f16(0x163)+_0x4b25a6);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x3ece4a=a28_0x3b72;(function(_0x3b72e6,_0x440d75){const _0x329d36=a28_0x3b72,_0x4297a0=_0x3b72e6();while(!![]){try{const _0x2a5bd6=parseInt(_0x329d36(0x108))/0x1*(-parseInt(_0x329d36(0xfd))/0x2)+parseInt(_0x329d36(0xe6))/0x3*(parseInt(_0x329d36(0xdf))/0x4)+-parseInt(_0x329d36(0x101))/0x5*(parseInt(_0x329d36(0xf1))/0x6)+-parseInt(_0x329d36(0xe2))/0x7*(parseInt(_0x329d36(0xfb))/0x8)+parseInt(_0x329d36(0xe9))/0x9+parseInt(_0x329d36(0x104))/0xa*(-parseInt(_0x329d36(0xdd))/0xb)+-parseInt(_0x329d36(0x11b))/0xc*(-parseInt(_0x329d36(0x10c))/0xd);if(_0x2a5bd6===_0x440d75)break;else _0x4297a0['push'](_0x4297a0['shift']());}catch(_0xf62251){_0x4297a0['push'](_0x4297a0['shift']());}}}(a28_0x178d,0x6e530));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a28_0x3ece4a(0x100),'description':'Runtime\x20app-config\x20key','required':!![]};export const VALUE_ARG={'name':'value','description':a28_0x3ece4a(0xe4),'required':![]};export const TAGS_FLAG={'name':a28_0x3ece4a(0xef),'type':'string','description':'Config\x20tags\x20for\x20filtering/display\x20metadata'};export const STDIN_FLAG={'name':a28_0x3ece4a(0xde),'type':a28_0x3ece4a(0xff),'description':a28_0x3ece4a(0x106),'default':![]};export const FROM_ENV_FLAG={'name':a28_0x3ece4a(0x109),'type':a28_0x3ece4a(0x113),'description':a28_0x3ece4a(0xe3)};export const REVEAL_FLAG={'name':a28_0x3ece4a(0xe7),'type':a28_0x3ece4a(0xff),'description':a28_0x3ece4a(0xdc),'default':![]};export function readKeyArg(_0x3584a5){const _0x5a2886=a28_0x3ece4a,_0x5b152c=_0x3584a5[_0x5a2886(0x116)][0x0]?.[_0x5a2886(0x111)]()??'';return validateKey(_0x5b152c),_0x5b152c;}export function readOptionalTags(_0x191134){const _0x199e56=a28_0x3ece4a,_0x26ad1d=_0x191134[_0x199e56(0xf8)](_0x199e56(0xef))['trim']();if(!_0x26ad1d)return undefined;if(_0x26ad1d[_0x199e56(0xfe)]>0x20)throw CliErrors['validation'](_0x199e56(0x11a));return _0x26ad1d;}export function validateKey(_0x1283c6){const _0x1427c3=a28_0x3ece4a;if(!_0x1283c6)throw CliErrors[_0x1427c3(0xec)](_0x1427c3(0x11c));if(_0x1283c6[_0x1427c3(0xfe)]>0x100)throw CliErrors['validation'](_0x1427c3(0x103));}export function projectAppConfig(_0x1e48d3,_0x1a4cc0){const _0x3bbd51=a28_0x3ece4a,_0x5d3b72=_0x1e48d3[_0x3bbd51(0xf5)]!==undefined&&_0x1e48d3['value']!==null&&_0x1e48d3[_0x3bbd51(0xf5)]!=='',_0x4cec6b={'appCode':_0x1e48d3[_0x3bbd51(0xe0)],'key':_0x1e48d3[_0x3bbd51(0x100)],'tags':_0x1e48d3[_0x3bbd51(0xef)]??undefined,'hasValue':_0x5d3b72,'valueRedacted':_0x5d3b72&&!_0x1a4cc0?.[_0x3bbd51(0xe7)],'gmtCreate':_0x1e48d3['gmtCreate'],'gmtModified':_0x1e48d3[_0x3bbd51(0xf7)]};return _0x1a4cc0?.['reveal']&&(_0x4cec6b[_0x3bbd51(0xf5)]=_0x1e48d3['value']??'',_0x4cec6b[_0x3bbd51(0x114)]=![]),_0x4cec6b;}export function plannedAppConfig(_0x165768){const _0x387560=a28_0x3ece4a,_0xbd97cd=_0x165768[_0x387560(0xea)]??!![];return{'appCode':_0x165768['appCode'],'key':_0x165768[_0x387560(0x100)],'tags':_0x165768[_0x387560(0xef)]??undefined,'hasValue':_0xbd97cd,'valueRedacted':_0xbd97cd};}export function buildMutationData(_0x4f5649){const _0x392636=a28_0x3ece4a;return{'operation':_0x4f5649[_0x392636(0xf6)],'selector':{'appCode':_0x4f5649['appCode'],'key':_0x4f5649['key']},'before':_0x4f5649[_0x392636(0xfa)],'after':_0x4f5649['after'],'dryRun':_0x4f5649[_0x392636(0x107)],'warnings':_0x4f5649[_0x392636(0xdb)]??[]};}function a28_0x3b72(_0x12b394,_0xda7f1e){_0x12b394=_0x12b394-0xdb;const _0x178d7f=a28_0x178d();let _0x3b72c3=_0x178d7f[_0x12b394];return _0x3b72c3;}function a28_0x178d(){const _0x5b1bd7=['1268eOaBly','appCode','error','196aMKFCn','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','value\x20is\x20redacted','8499VByBnv','reveal','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','3719016fEAMKr','hasValue','path','validation','App\x20config\x20value\x20source\x20is\x20ambiguous.','defineProperties','tags','apiError','6zqnevU','flag','\x20app\x20config.','appCode:\x20','value','operation','gmtModified','str','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','before','139032YptXtn','push','397690ZUJFVW','length','boolean','key','504635DNaxeW','name','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','10dhsmLU','env','Read\x20config\x20value\x20from\x20stdin','dryRun','1uvkvrU','from-env','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','file','26XVdVVP','key:\x20','data','argument','bool','trim','once','string','valueRedacted','utf8','args','join','kind','url','App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.','1814196tUYoLT','Missing\x20app-config\x20key.','warnings','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','4129169AkHhkz','stdin'];a28_0x178d=function(){return _0x5b1bd7;};return a28_0x178d();}export async function withAppConfigApiBoundary(_0x4b855a,_0x5b9193,_0x3ad697){const _0x4ddcf6=a28_0x3ece4a;try{return await _0x3ad697();}catch{const _0x380604=[_0x4ddcf6(0xf4)+_0x5b9193[_0x4ddcf6(0xe0)]];if(_0x5b9193[_0x4ddcf6(0x100)])_0x380604[_0x4ddcf6(0xfc)](_0x4ddcf6(0x10d)+_0x5b9193[_0x4ddcf6(0x100)]);_0x380604[_0x4ddcf6(0xfc)](_0x4ddcf6(0xe5));throw CliErrors[_0x4ddcf6(0xf0)]('Failed\x20to\x20'+_0x4b855a+_0x4ddcf6(0xf3),_0x380604[_0x4ddcf6(0x117)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x52d109,_0x532bac){const _0x2d5d3f=a28_0x3ece4a;return Object[_0x2d5d3f(0xee)](_0x52d109,{'method':{'value':_0x532bac['method'],'enumerable':![]},'url':{'value':_0x532bac[_0x2d5d3f(0x119)],'enumerable':![]}});}export function assertSingleValueSource(_0x3f1621){const _0x15ebb7=a28_0x3ece4a,_0x438a4b=[];_0x3f1621[_0x15ebb7(0x116)][_0x15ebb7(0xfe)]>0x1&&_0x438a4b[_0x15ebb7(0xfc)]({'kind':_0x15ebb7(0x10f),'value':_0x3f1621['args']['slice'](0x1)[_0x15ebb7(0x117)]('\x20')});const _0x44b1bb=_0x3f1621[_0x15ebb7(0xf2)](_0x15ebb7(0xf5));_0x44b1bb!==undefined&&_0x44b1bb!==null&&_0x438a4b['push']({'kind':_0x15ebb7(0x10f),'value':String(_0x44b1bb)});_0x3f1621[_0x15ebb7(0x110)](_0x15ebb7(0xde))&&_0x438a4b[_0x15ebb7(0xfc)]({'kind':_0x15ebb7(0xde)});const _0x7efd34=_0x3f1621[_0x15ebb7(0xf8)](_0x15ebb7(0x109))[_0x15ebb7(0x111)]();_0x7efd34&&_0x438a4b[_0x15ebb7(0xfc)]({'kind':_0x15ebb7(0x105),'name':_0x7efd34});const _0x21fd5a=_0x3f1621[_0x15ebb7(0xf8)](_0x15ebb7(0x10b))[_0x15ebb7(0x111)]();_0x21fd5a&&_0x438a4b['push']({'kind':'file','path':_0x21fd5a});if(_0x438a4b['length']===0x0)throw CliErrors[_0x15ebb7(0xec)]('Missing\x20app-config\x20value\x20source.',_0x15ebb7(0xf9));if(_0x438a4b[_0x15ebb7(0xfe)]>0x1)throw CliErrors['validation'](_0x15ebb7(0xed),_0x15ebb7(0x10a));return _0x438a4b[0x0];}export async function assertValueSourceReadable(_0x105c0c){const _0x551b5a=a28_0x3ece4a;if(_0x105c0c['kind']==='env'&&!(_0x105c0c[_0x551b5a(0x102)]in process.env))throw CliErrors[_0x551b5a(0xec)]('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x105c0c[_0x551b5a(0x102)]);if(_0x105c0c[_0x551b5a(0x118)]===_0x551b5a(0x10b))try{await access(_0x105c0c[_0x551b5a(0xeb)]);}catch{throw CliErrors[_0x551b5a(0xec)]('Value\x20file\x20is\x20not\x20readable:\x20'+_0x105c0c[_0x551b5a(0xeb)]);}}export async function readAppConfigValue(_0x262f70){const _0x429549=a28_0x3ece4a,_0x4af0e6=assertSingleValueSource(_0x262f70),_0x3b4fbe=[];if(_0x4af0e6['kind']===_0x429549(0x10f))return _0x3b4fbe[_0x429549(0xfc)](_0x429549(0xe8)),{'value':_0x4af0e6[_0x429549(0xf5)]??'','source':_0x4af0e6['kind'],'warnings':_0x3b4fbe};if(_0x4af0e6['kind']===_0x429549(0xde))return{'value':await readStdin(),'source':_0x4af0e6['kind'],'warnings':_0x3b4fbe};if(_0x4af0e6[_0x429549(0x118)]===_0x429549(0x105)){if(!(_0x4af0e6[_0x429549(0x102)]in process.env))throw CliErrors[_0x429549(0xec)]('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x4af0e6[_0x429549(0x102)]);return{'value':process.env[_0x4af0e6.name]??'','source':_0x4af0e6['kind'],'warnings':_0x3b4fbe};}return{'value':await readFile(_0x4af0e6['path'],_0x429549(0x115)),'source':_0x4af0e6[_0x429549(0x118)],'warnings':_0x3b4fbe};}function readStdin(){return new Promise((_0x2f50ec,_0x10f444)=>{const _0x929a38=a28_0x3b72;let _0x10ff4a='';process[_0x929a38(0xde)]['setEncoding']('utf8'),process['stdin']['on'](_0x929a38(0x10e),_0x1c246c=>{_0x10ff4a+=_0x1c246c;}),process[_0x929a38(0xde)]['once']('end',()=>_0x2f50ec(_0x10ff4a)),process[_0x929a38(0xde)][_0x929a38(0x112)](_0x929a38(0xe1),_0x10f444);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a29_0x428db5=a29_0x1c58;(function(_0x24d7dd,_0x60bbff){const _0x55a92c=a29_0x1c58,_0x466696=_0x24d7dd();while(!![]){try{const _0x39febe=-parseInt(_0x55a92c(0x1da))/0x1*(parseInt(_0x55a92c(0x1e1))/0x2)+parseInt(_0x55a92c(0x1df))/0x3*(-parseInt(_0x55a92c(0x1d7))/0x4)+parseInt(_0x55a92c(0x1dc))/0x5*(-parseInt(_0x55a92c(0x1e2))/0x6)+parseInt(_0x55a92c(0x1eb))/0x7+parseInt(_0x55a92c(0x1e5))/0x8+-parseInt(_0x55a92c(0x1e0))/0x9*(parseInt(_0x55a92c(0x1dd))/0xa)+parseInt(_0x55a92c(0x1ee))/0xb;if(_0x39febe===_0x60bbff)break;else _0x466696['push'](_0x466696['shift']());}catch(_0x4751a6){_0x466696['push'](_0x466696['shift']());}}}(a29_0x5d23,0x847ae));import{unlinkSync,existsSync}from'node:fs';function a29_0x5d23(){const _0xbac653=['393615StwzkA','8307HNBybd','2238XmMiYC','5281644qskHVl','✓\x20Logged\x20out','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','3463328HNlpbC','../../auth/auth-server-ui.js','read','yes','!\x20Not\x20logged\x20in','logout','222775RwvkhJ','boolean','Login\x20via\x20browser','28415090xRCEZf','12oOZVbf','login','log','707vqGJNZ','bool','5TgcaAZ','4770WfEvUe','auth'];a29_0x5d23=function(){return _0xbac653;};return a29_0x5d23();}import{cookieFile}from'../../auth/constant.js';function a29_0x1c58(_0x4c4d66,_0x351a1b){_0x4c4d66=_0x4c4d66-0x1d7;const _0x5d23b8=a29_0x5d23();let _0x1c58c6=_0x5d23b8[_0x4c4d66];return _0x1c58c6;}export const authDefinitions=[{'service':a29_0x428db5(0x1de),'command':a29_0x428db5(0x1d8),'description':a29_0x428db5(0x1ed),'risk':a29_0x428db5(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a29_0x428db5(0x1e8),'type':a29_0x428db5(0x1ec),'description':a29_0x428db5(0x1e4),'default':![]}],async 'execute'(_0x27c17d){const _0x2332b0=a29_0x428db5,{runAuthServer:_0x1d8023}=await import(_0x2332b0(0x1e6));return await _0x1d8023({'autoYes':_0x27c17d[_0x2332b0(0x1db)](_0x2332b0(0x1e8)),'nonInteractive':_0x27c17d['nonInteractive']}),{'ok':!![]};}},{'service':a29_0x428db5(0x1de),'command':a29_0x428db5(0x1ea),'description':'Clear\x20login\x20session','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4958c0){const _0x5527ee=a29_0x428db5;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x5527ee(0x1d9)](_0x5527ee(0x1e3))):console['log'](_0x5527ee(0x1e9)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x215100=a30_0x2a23;(function(_0x55a469,_0x27276a){const _0x193b71=a30_0x2a23,_0x2eddc0=_0x55a469();while(!![]){try{const _0x349914=-parseInt(_0x193b71(0x17b))/0x1+parseInt(_0x193b71(0x1bd))/0x2+-parseInt(_0x193b71(0x197))/0x3+-parseInt(_0x193b71(0x1ae))/0x4+-parseInt(_0x193b71(0x19c))/0x5*(-parseInt(_0x193b71(0x18c))/0x6)+parseInt(_0x193b71(0x1c0))/0x7+parseInt(_0x193b71(0x179))/0x8;if(_0x349914===_0x27276a)break;else _0x2eddc0['push'](_0x2eddc0['shift']());}catch(_0x1f5c8b){_0x2eddc0['push'](_0x2eddc0['shift']());}}}(a30_0x3f48,0x7b098));import{createInterface}from'node:readline';import{mkdir,writeFile}from'node:fs/promises';import{dirname,join}from'node:path';function a30_0x2a23(_0x1abb5c,_0x120d83){_0x1abb5c=_0x1abb5c-0x16d;const _0x3f483e=a30_0x3f48();let _0x2a2303=_0x3f483e[_0x1abb5c];return _0x2a2303;}import{listDatasets,listBffDatasetOperations}from'../../core/api-client.js';import{loadAliasMap,resolveAlias}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists}from'../../core/bff/file-system.js';function a30_0x3f48(){const _0x38671b=['description','bff','HOOK\x20requires\x20alias/operation/node\x20options.','appCode','\x22\x20not\x20found.\x20','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','3973848yVvwlf','Scaffold\x20a\x20new\x20BFF\x20function\x20from\x20template','tableName','stderr','stdin','No\x20operation\x20types\x20found\x20for\x20dataset\x20','\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/COMMON/','datasetcode','Function\x20name\x20(valid\x20JS\x20identifier)','\x22.\x20','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','Invalid\x20dataset\x20selection.','find','apiDir','type','1354836GrrzlX','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','Select\x20operation\x20type:','387324yHstxC','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/{appCode}/{scriptName}\x0a\x20*\x20[当前示例]\x20POST\x20/api/endpoint/','str','operationType','TODO:\x20add\x20script\x20description','includes','length','close','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','No\x20datasets\x20found\x20for\x20this\x20app.','File\x20already\x20exists:\x20','before','map','Select\x20trigger\x20node:','function-node','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','10874696BhYdrs','question','337115HZMSJC','keys','alias','HOOK','Trigger\x20node\x20(HOOK\x20only)','Select\x20dataset:','Created\x20','after','/**\x0a\x20*\x20ENDPOINT\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','.js\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Input\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Processing\x20result.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','utf8','entries','string','datasetCode','ENDPOINT','source','COMMON','1670742OLRBUg','\x0a\x20*\x20[脚本名称]\x20','read','name','/**\x0a\x20*\x20COMMON\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','No\x20api.ts\x20found.\x20Run\x20`','Operation\x20type\x20\x22','nonInteractive','functionNode','.js','isInteger','1608021EOOIfJ','join','validation','\x0a\x20*\x20[触发节点]\x20','\x20function:\x20','5BIFRvX','Dataset\x20not\x20found\x20for\x20code\x20\x22','Available\x20aliases:\x20','Operation\x20type\x20(HOOK\x20only)','operation-type','Script\x20type','trim','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','Invalid\x20function\x20name\x20\x22','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','code','write'];a30_0x3f48=function(){return _0x38671b;};return a30_0x3f48();}import{isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const bffCreate={'service':a30_0x215100(0x1a9),'command':'create','description':a30_0x215100(0x1af),'risk':a30_0x215100(0x18e),'flags':[{'name':a30_0x215100(0x1bc),'type':a30_0x215100(0x187),'required':!![],'enum':['COMMON',a30_0x215100(0x189),a30_0x215100(0x17e)],'description':a30_0x215100(0x1a1)},{'name':a30_0x215100(0x18f),'type':a30_0x215100(0x187),'required':!![],'description':a30_0x215100(0x1b6)},{'name':a30_0x215100(0x1a8),'type':a30_0x215100(0x187),'description':'Script\x20description'},{'name':'alias','type':a30_0x215100(0x187),'description':'Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)'},{'name':a30_0x215100(0x1b5),'type':'string','description':'Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)'},{'name':'operation-type','type':a30_0x215100(0x187),'description':a30_0x215100(0x19f)},{'name':'function-node','type':'string','description':a30_0x215100(0x17f),'enum':[a30_0x215100(0x174),a30_0x215100(0x182)]}],async 'validate'(_0x32e12c){const _0x259dc3=a30_0x215100,_0x15b64b=_0x32e12c[_0x259dc3(0x1c2)]('name');if(!isValidBffFunctionName(_0x15b64b))throw CliErrors[_0x259dc3(0x199)](_0x259dc3(0x1a4)+_0x15b64b+_0x259dc3(0x1b8));},async 'execute'(_0x2cfff0){const _0x36e72f=a30_0x215100,_0x136bc2=loadBffProjectConfig(_0x2cfff0[_0x36e72f(0x1ab)]),_0x5ce987=_0x2cfff0[_0x36e72f(0x1c2)]('type'),_0x50cc0c=_0x2cfff0[_0x36e72f(0x1c2)](_0x36e72f(0x18f)),_0x336721=_0x2cfff0[_0x36e72f(0x1c2)](_0x36e72f(0x1a8))||undefined,_0x5d86cb=_0x5ce987==='HOOK'?await resolveHookOptions(_0x136bc2,_0x2cfff0):undefined,_0xfdc6ec=buildFilePath(_0x136bc2,_0x5ce987,_0x50cc0c,_0x5d86cb);if(await fileExists(_0xfdc6ec))throw CliErrors['validation'](_0x36e72f(0x173)+_0xfdc6ec);await mkdir(dirname(_0xfdc6ec),{'recursive':!![]});const _0x31d15a=generateTemplate(_0x5ce987,_0x50cc0c,_0x2cfff0['appCode'],_0x336721,_0x5d86cb);await writeFile(_0xfdc6ec,_0x31d15a,_0x36e72f(0x185));const _0x1026af={'type':_0x5ce987,'name':_0x50cc0c,'path':_0xfdc6ec};if(_0x336721)_0x1026af[_0x36e72f(0x1a8)]=_0x336721;if(_0x5d86cb){if(_0x5d86cb[_0x36e72f(0x17d)])_0x1026af['alias']=_0x5d86cb[_0x36e72f(0x17d)];_0x1026af[_0x36e72f(0x188)]=_0x5d86cb['datasetCode'],_0x1026af['operationType']=_0x5d86cb[_0x36e72f(0x1c3)],_0x1026af[_0x36e72f(0x194)]=_0x5d86cb[_0x36e72f(0x194)];}return{'ok':!![],'data':_0x1026af,'message':_0x36e72f(0x181)+_0x5ce987+_0x36e72f(0x19b)+_0x50cc0c};}};async function resolveHookOptions(_0x5cdc83,_0x407140){const _0x185e23=a30_0x215100,_0x57c59a=loadAliasMap(_0x407140['apiDir'],undefined,resolveApiFilePath(_0x407140[_0x185e23(0x1bb)],_0x407140['appCode'])),_0x189acc=_0x57c59a[_0x185e23(0x16f)]>0x0;let _0x5886ca,_0x46a969,_0x41d053;const _0x516790=_0x407140['str'](_0x185e23(0x17d)),_0x534d0f=_0x407140[_0x185e23(0x1c2)](_0x185e23(0x1b5));if(_0x516790){const _0x21086a=resolveAlias(_0x407140[_0x185e23(0x1bb)],_0x516790,undefined,resolveApiFilePath(_0x407140[_0x185e23(0x1bb)],_0x407140[_0x185e23(0x1ab)]));if(!_0x21086a){const _0x262712=_0x189acc?_0x185e23(0x19e)+_0x57c59a[_0x185e23(0x175)](_0xa7352d=>_0xa7352d[_0x185e23(0x17d)])[_0x185e23(0x198)](',\x20'):_0x185e23(0x191)+CLI_BIN_NAME+_0x185e23(0x171);throw CliErrors[_0x185e23(0x199)]('Alias\x20\x22'+_0x516790+_0x185e23(0x1ac)+_0x262712);}_0x5886ca=_0x516790,_0x46a969=_0x21086a;}else{if(_0x534d0f){_0x46a969=_0x534d0f;const _0x46a473=_0x57c59a[_0x185e23(0x1ba)](_0x5cfbda=>_0x5cfbda[_0x185e23(0x188)]===_0x534d0f);_0x5886ca=_0x46a473?.['alias'];}else{if(_0x407140[_0x185e23(0x193)])throw CliErrors[_0x185e23(0x199)]('--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');else{if(_0x189acc){const _0x117c8c=_0x57c59a[_0x185e23(0x175)](_0x268ba3=>_0x268ba3[_0x185e23(0x17d)]+'\x20('+_0x268ba3[_0x185e23(0x1b0)]+')'),_0x301cdd=await promptSelect(_0x185e23(0x180),_0x117c8c),_0x7c4836=_0x57c59a[_0x301cdd];if(!_0x7c4836)throw CliErrors[_0x185e23(0x199)](_0x185e23(0x1b9));_0x5886ca=_0x7c4836[_0x185e23(0x17d)],_0x46a969=_0x7c4836[_0x185e23(0x188)];}else{const _0x352884=await listDatasets(_0x407140[_0x185e23(0x1ab)]);if(_0x352884[_0x185e23(0x16f)]===0x0)throw CliErrors[_0x185e23(0x199)](_0x185e23(0x172));const _0x22973b=_0x352884[_0x185e23(0x175)](_0x490765=>_0x490765[_0x185e23(0x18f)]+'\x20['+(_0x490765[_0x185e23(0x18a)]??'UNKNOWN')+']\x20('+_0x490765[_0x185e23(0x1a6)]+')'),_0x19387e=await promptSelect(_0x185e23(0x180),_0x22973b),_0x26dfe3=_0x352884[_0x19387e];if(!_0x26dfe3)throw CliErrors[_0x185e23(0x199)]('Invalid\x20dataset\x20selection.');_0x46a969=_0x26dfe3['code'],_0x5886ca=undefined;}}}}const _0x2b5833=await listDatasets(_0x407140[_0x185e23(0x1ab)]),_0xd34134=_0x2b5833[_0x185e23(0x1ba)](_0x5b36f6=>_0x5b36f6[_0x185e23(0x1a6)]===_0x46a969);if(!_0xd34134)throw CliErrors['validation'](_0x185e23(0x19d)+_0x46a969+_0x185e23(0x1b7)+(_0x5886ca?'The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh.':''));_0x41d053=_0xd34134['id'];const _0x1214f5=_0x5886ca??_0x46a969,_0x10aaee=await listBffDatasetOperations(_0x407140[_0x185e23(0x1ab)],_0x41d053),_0x4353d5=_0x10aaee?Object[_0x185e23(0x17c)](_0x10aaee):[];if(_0x4353d5[_0x185e23(0x16f)]===0x0)throw CliErrors[_0x185e23(0x199)](_0x185e23(0x1b3)+_0x1214f5+'.');let _0x52fd8a;const _0x3b4245=_0x407140[_0x185e23(0x1c2)](_0x185e23(0x1a0));if(_0x3b4245){if(!_0x4353d5[_0x185e23(0x16e)](_0x3b4245))throw CliErrors[_0x185e23(0x199)](_0x185e23(0x192)+_0x3b4245+'\x22\x20not\x20found\x20for\x20dataset\x20'+_0x1214f5+'.\x20'+('Available:\x20'+_0x4353d5[_0x185e23(0x198)](',\x20')));_0x52fd8a=_0x3b4245;}else{if(_0x407140[_0x185e23(0x193)])throw CliErrors[_0x185e23(0x199)]('--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');const _0x3e002e=await promptSelect(_0x185e23(0x1bf),_0x4353d5);_0x52fd8a=_0x4353d5[_0x3e002e]??_0x4353d5[0x0];}let _0x15dfc2=normalizeHookFunctionNode(_0x407140['str'](_0x185e23(0x177)));if(!_0x15dfc2){if(_0x407140[_0x185e23(0x1c2)](_0x185e23(0x177)))throw CliErrors['validation'](_0x185e23(0x1ad));if(_0x407140['nonInteractive'])throw CliErrors[_0x185e23(0x199)]('--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');const _0x48c12f=await promptSelect(_0x185e23(0x176),[_0x185e23(0x174),_0x185e23(0x182)]);_0x15dfc2=[_0x185e23(0x174),_0x185e23(0x182)][_0x48c12f]??_0x185e23(0x174);}return{'alias':_0x5886ca,'datasetCode':_0x46a969,'datasetId':_0x41d053,'operationType':_0x52fd8a,'functionNode':_0x15dfc2};}async function promptSelect(_0x30c38f,_0x336415){const _0x1bec4d=a30_0x215100;if(_0x336415[_0x1bec4d(0x16f)]===0x1)return 0x0;for(const [_0x5e5890,_0x423d8c]of _0x336415[_0x1bec4d(0x186)]()){process['stderr'][_0x1bec4d(0x1a7)]('\x20\x20'+(_0x5e5890+0x1)+'.\x20'+_0x423d8c+'\x0a');}const _0x5118b2=createInterface({'input':process[_0x1bec4d(0x1b2)],'output':process[_0x1bec4d(0x1b1)]});while(!![]){const _0x93c947=await new Promise(_0x2bf7e3=>{const _0x3c6f03=_0x1bec4d;_0x5118b2[_0x3c6f03(0x17a)](_0x30c38f+'\x20',_0x2bf7e3);}),_0x3d9f01=Number['parseInt'](_0x93c947[_0x1bec4d(0x1a2)](),0xa);if(Number[_0x1bec4d(0x196)](_0x3d9f01)&&_0x3d9f01>=0x1&&_0x3d9f01<=_0x336415[_0x1bec4d(0x16f)])return _0x5118b2[_0x1bec4d(0x170)](),_0x3d9f01-0x1;process[_0x1bec4d(0x1b1)]['write'](_0x1bec4d(0x1be)+_0x336415[_0x1bec4d(0x16f)]+'.\x0a');}}function buildFilePath(_0xaa7c0a,_0x30ed44,_0x130009,_0x22838e){const _0x14ca25=a30_0x215100;if(_0x30ed44===_0x14ca25(0x17e)){if(!_0x22838e)throw CliErrors['validation'](_0x14ca25(0x1aa));const _0x277f1c=_0x22838e[_0x14ca25(0x17d)]??_0x22838e['datasetCode'];return join(_0xaa7c0a['scriptsRootDir'],_0x14ca25(0x17e),_0x277f1c,_0x22838e[_0x14ca25(0x1c3)],_0x22838e[_0x14ca25(0x194)],_0x130009+_0x14ca25(0x195));}return join(_0xaa7c0a['scriptsRootDir'],_0x30ed44,_0x130009+'.js');}export function generateTemplate(_0x2ba463,_0x26fae0,_0x520dfd,_0x1526de,_0x7a1fc5){const _0x4dfe38=a30_0x215100,_0x21701b=_0x1526de?.[_0x4dfe38(0x1a2)]()||_0x4dfe38(0x16d);if(_0x2ba463===_0x4dfe38(0x18b))return _0x4dfe38(0x190)+_0x21701b+_0x4dfe38(0x18d)+_0x26fae0+_0x4dfe38(0x1b4)+_0x26fae0+_0x4dfe38(0x184)+_0x26fae0+_0x4dfe38(0x178);if(_0x2ba463===_0x4dfe38(0x189))return _0x4dfe38(0x183)+_0x21701b+_0x4dfe38(0x1c1)+_0x520dfd+'/'+_0x26fae0+'\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Request\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Business\x20result\x20(wrapped\x20in\x20response.data).\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x26fae0+_0x4dfe38(0x178);if(!_0x7a1fc5)throw CliErrors[_0x4dfe38(0x199)](_0x4dfe38(0x1a3));return'/**\x0a\x20*\x20HOOK\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20'+_0x21701b+_0x4dfe38(0x1a5)+_0x520dfd+'/'+_0x7a1fc5['datasetCode']+'/'+_0x7a1fc5[_0x4dfe38(0x1c3)]+_0x4dfe38(0x19a)+_0x7a1fc5[_0x4dfe38(0x194)]+'\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Current\x20request\x20params\x20or\x20response\x20result.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Modified\x20params\x20object.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x26fae0+_0x4dfe38(0x178);}
|
|
1
|
+
const a30_0x1fbc69=a30_0x8070;(function(_0x2023c3,_0xecaa1f){const _0x231fc7=a30_0x8070,_0x5d901e=_0x2023c3();while(!![]){try{const _0x14b496=-parseInt(_0x231fc7(0xc1))/0x1+-parseInt(_0x231fc7(0x89))/0x2*(-parseInt(_0x231fc7(0xa3))/0x3)+parseInt(_0x231fc7(0xa7))/0x4+parseInt(_0x231fc7(0x72))/0x5*(parseInt(_0x231fc7(0xb5))/0x6)+-parseInt(_0x231fc7(0xc8))/0x7+-parseInt(_0x231fc7(0xc9))/0x8*(-parseInt(_0x231fc7(0x85))/0x9)+parseInt(_0x231fc7(0xbe))/0xa*(-parseInt(_0x231fc7(0xa1))/0xb);if(_0x14b496===_0xecaa1f)break;else _0x5d901e['push'](_0x5d901e['shift']());}catch(_0x1bec1d){_0x5d901e['push'](_0x5d901e['shift']());}}}(a30_0x3974,0xb703d));import{createInterface}from'node:readline';import{mkdir,writeFile}from'node:fs/promises';import{dirname,join}from'node:path';import{listDatasets,listBffDatasetOperations}from'../../core/api-client.js';import{loadAliasMap,resolveAlias}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a30_0x3974(){const _0x4bf50e=['Select\x20dataset:','create','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','length','trim','File\x20already\x20exists:\x20','before','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','\x20function:\x20','datasetcode','/**\x0a\x20*\x20COMMON\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','4169uSFlMf','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','156JZXaNq','operationType','appCode','parseInt','3621200GiOZAv','.js\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Input\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Processing\x20result.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','description','source','HOOK','write','str','TODO:\x20add\x20script\x20description','ENDPOINT','nonInteractive','No\x20datasets\x20found\x20for\x20this\x20app.','Invalid\x20dataset\x20selection.','Select\x20trigger\x20node:','find','74808axFxXV','Alias\x20\x22','\x22\x20not\x20found.\x20','alias','\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Request\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Business\x20result\x20(wrapped\x20in\x20response.data).\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','UNKNOWN','apiDir','code','78290XDyaMZ','No\x20operation\x20types\x20found\x20for\x20dataset\x20','bff','185752YNeIWC','string','type','Scaffold\x20a\x20new\x20BFF\x20function\x20from\x20template','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/{appCode}/{scriptName}\x0a\x20*\x20[当前示例]\x20POST\x20/api/endpoint/','validation','1219596KyEFVB','5661360ouLekI','\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Current\x20request\x20params\x20or\x20response\x20result.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Modified\x20params\x20object.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','\x22.\x20','name',']\x20(','470SBbvHv','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','/**\x0a\x20*\x20HOOK\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','function-node','question','\x22\x20not\x20found\x20for\x20dataset\x20','isInteger','operation-type','HOOK\x20requires\x20alias/operation/node\x20options.','join','datasetCode','Script\x20description','\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/COMMON/','Script\x20type','Available\x20aliases:\x20','utf8','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','.js','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','18dlXjll','\x0a\x20*\x20[触发节点]\x20','\x20api\x20pull`\x20to\x20refresh.','Available:\x20','22468ImHyVi','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','functionNode','stderr','map','Operation\x20type\x20\x22','Invalid\x20function\x20name\x20\x22','Created\x20','Trigger\x20node\x20(HOOK\x20only)','read','after','Operation\x20type\x20(HOOK\x20only)'];a30_0x3974=function(){return _0x4bf50e;};return a30_0x3974();}import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists}from'../../core/bff/file-system.js';import{isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';function a30_0x8070(_0x5c80dc,_0x3ce30b){_0x5c80dc=_0x5c80dc-0x71;const _0x39746b=a30_0x3974();let _0x80707f=_0x39746b[_0x5c80dc];return _0x80707f;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const bffCreate={'service':a30_0x1fbc69(0xc0),'command':a30_0x1fbc69(0x96),'description':a30_0x1fbc69(0xc4),'risk':a30_0x1fbc69(0x92),'flags':[{'name':'type','type':'string','required':!![],'enum':['COMMON',a30_0x1fbc69(0xaf),'HOOK'],'description':a30_0x1fbc69(0x7f)},{'name':a30_0x1fbc69(0xcc),'type':a30_0x1fbc69(0xc2),'required':!![],'description':'Function\x20name\x20(valid\x20JS\x20identifier)'},{'name':a30_0x1fbc69(0xa9),'type':a30_0x1fbc69(0xc2),'description':a30_0x1fbc69(0x7d)},{'name':a30_0x1fbc69(0xb8),'type':a30_0x1fbc69(0xc2),'description':'Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)'},{'name':a30_0x1fbc69(0x9f),'type':a30_0x1fbc69(0xc2),'description':a30_0x1fbc69(0x73)},{'name':a30_0x1fbc69(0x79),'type':a30_0x1fbc69(0xc2),'description':a30_0x1fbc69(0x94)},{'name':a30_0x1fbc69(0x75),'type':a30_0x1fbc69(0xc2),'description':a30_0x1fbc69(0x91),'enum':[a30_0x1fbc69(0x9c),'after']}],async 'validate'(_0x56408c){const _0x1eadca=a30_0x1fbc69,_0x34d052=_0x56408c[_0x1eadca(0xad)](_0x1eadca(0xcc));if(!isValidBffFunctionName(_0x34d052))throw CliErrors[_0x1eadca(0xc7)](_0x1eadca(0x8f)+_0x34d052+_0x1eadca(0x9d));},async 'execute'(_0x294699){const _0x387e4b=a30_0x1fbc69,_0x179062=loadBffProjectConfig(_0x294699[_0x387e4b(0xa5)]),_0x441226=_0x294699[_0x387e4b(0xad)](_0x387e4b(0xc3)),_0x333d0d=_0x294699[_0x387e4b(0xad)](_0x387e4b(0xcc)),_0x21a018=_0x294699['str'](_0x387e4b(0xa9))||undefined,_0x2167ed=_0x441226===_0x387e4b(0xab)?await resolveHookOptions(_0x179062,_0x294699):undefined,_0x513681=buildFilePath(_0x179062,_0x441226,_0x333d0d,_0x2167ed);if(await fileExists(_0x513681))throw CliErrors[_0x387e4b(0xc7)](_0x387e4b(0x9b)+_0x513681);await mkdir(dirname(_0x513681),{'recursive':!![]});const _0x44c6ed=generateTemplate(_0x441226,_0x333d0d,_0x294699[_0x387e4b(0xa5)],_0x21a018,_0x2167ed);await writeFile(_0x513681,_0x44c6ed,_0x387e4b(0x81));const _0x4e9f44={'type':_0x441226,'name':_0x333d0d,'path':_0x513681};if(_0x21a018)_0x4e9f44[_0x387e4b(0xa9)]=_0x21a018;if(_0x2167ed){if(_0x2167ed[_0x387e4b(0xb8)])_0x4e9f44[_0x387e4b(0xb8)]=_0x2167ed['alias'];_0x4e9f44[_0x387e4b(0x7c)]=_0x2167ed['datasetCode'],_0x4e9f44[_0x387e4b(0xa4)]=_0x2167ed[_0x387e4b(0xa4)],_0x4e9f44[_0x387e4b(0x8b)]=_0x2167ed[_0x387e4b(0x8b)];}return{'ok':!![],'data':_0x4e9f44,'message':_0x387e4b(0x90)+_0x441226+_0x387e4b(0x9e)+_0x333d0d};}};async function resolveHookOptions(_0x319e3b,_0x55adb6){const _0xfd5a0f=a30_0x1fbc69,_0x4c398e=loadAliasMap(_0x55adb6[_0xfd5a0f(0xbc)],undefined,resolveApiFilePath(_0x55adb6[_0xfd5a0f(0xbc)],_0x55adb6['appCode'])),_0xad0479=_0x4c398e['length']>0x0;let _0x37a94e,_0xd146c,_0x1e14da;const _0x36c368=_0x55adb6['str'](_0xfd5a0f(0xb8)),_0x3a0078=_0x55adb6[_0xfd5a0f(0xad)]('datasetcode');if(_0x36c368){const _0x2b2b01=resolveAlias(_0x55adb6[_0xfd5a0f(0xbc)],_0x36c368,undefined,resolveApiFilePath(_0x55adb6[_0xfd5a0f(0xbc)],_0x55adb6[_0xfd5a0f(0xa5)]));if(!_0x2b2b01){const _0x5ad3b9=_0xad0479?_0xfd5a0f(0x80)+_0x4c398e[_0xfd5a0f(0x8d)](_0x3534a3=>_0x3534a3[_0xfd5a0f(0xb8)])[_0xfd5a0f(0x7b)](',\x20'):'No\x20api.ts\x20found.\x20Run\x20`'+CLI_BIN_NAME+_0xfd5a0f(0x98);throw CliErrors[_0xfd5a0f(0xc7)](_0xfd5a0f(0xb6)+_0x36c368+_0xfd5a0f(0xb7)+_0x5ad3b9);}_0x37a94e=_0x36c368,_0xd146c=_0x2b2b01;}else{if(_0x3a0078){_0xd146c=_0x3a0078;const _0xe0a62d=_0x4c398e['find'](_0x38071b=>_0x38071b['datasetCode']===_0x3a0078);_0x37a94e=_0xe0a62d?.[_0xfd5a0f(0xb8)];}else{if(_0x55adb6[_0xfd5a0f(0xb0)])throw CliErrors[_0xfd5a0f(0xc7)](_0xfd5a0f(0x8a));else{if(_0xad0479){const _0x193c98=_0x4c398e[_0xfd5a0f(0x8d)](_0x1a044e=>_0x1a044e[_0xfd5a0f(0xb8)]+'\x20('+_0x1a044e['tableName']+')'),_0x545aaf=await promptSelect(_0xfd5a0f(0x95),_0x193c98),_0x44a3cf=_0x4c398e[_0x545aaf];if(!_0x44a3cf)throw CliErrors[_0xfd5a0f(0xc7)](_0xfd5a0f(0xb2));_0x37a94e=_0x44a3cf['alias'],_0xd146c=_0x44a3cf[_0xfd5a0f(0x7c)];}else{const _0x499dd8=await listDatasets(_0x55adb6[_0xfd5a0f(0xa5)]);if(_0x499dd8[_0xfd5a0f(0x99)]===0x0)throw CliErrors['validation'](_0xfd5a0f(0xb1));const _0x404d04=_0x499dd8[_0xfd5a0f(0x8d)](_0x55c182=>_0x55c182[_0xfd5a0f(0xcc)]+'\x20['+(_0x55c182[_0xfd5a0f(0xaa)]??_0xfd5a0f(0xbb))+_0xfd5a0f(0x71)+_0x55c182[_0xfd5a0f(0xbd)]+')'),_0x43d794=await promptSelect('Select\x20dataset:',_0x404d04),_0x1f74e5=_0x499dd8[_0x43d794];if(!_0x1f74e5)throw CliErrors[_0xfd5a0f(0xc7)]('Invalid\x20dataset\x20selection.');_0xd146c=_0x1f74e5['code'],_0x37a94e=undefined;}}}}const _0x4f4b22=await listDatasets(_0x55adb6[_0xfd5a0f(0xa5)]),_0x3751eb=_0x4f4b22[_0xfd5a0f(0xb4)](_0x17fa37=>_0x17fa37[_0xfd5a0f(0xbd)]===_0xd146c);if(!_0x3751eb)throw CliErrors[_0xfd5a0f(0xc7)]('Dataset\x20not\x20found\x20for\x20code\x20\x22'+_0xd146c+_0xfd5a0f(0xcb)+(_0x37a94e?'The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`'+CLI_BIN_NAME+_0xfd5a0f(0x87):''));_0x1e14da=_0x3751eb['id'];const _0x575cc5=_0x37a94e??_0xd146c,_0x4fc620=await listBffDatasetOperations(_0x55adb6[_0xfd5a0f(0xa5)],_0x1e14da),_0x5e2126=_0x4fc620?Object['keys'](_0x4fc620):[];if(_0x5e2126[_0xfd5a0f(0x99)]===0x0)throw CliErrors[_0xfd5a0f(0xc7)](_0xfd5a0f(0xbf)+_0x575cc5+'.');let _0x5bb3e3;const _0x2d4bfa=_0x55adb6[_0xfd5a0f(0xad)](_0xfd5a0f(0x79));if(_0x2d4bfa){if(!_0x5e2126['includes'](_0x2d4bfa))throw CliErrors[_0xfd5a0f(0xc7)](_0xfd5a0f(0x8e)+_0x2d4bfa+_0xfd5a0f(0x77)+_0x575cc5+'.\x20'+(_0xfd5a0f(0x88)+_0x5e2126[_0xfd5a0f(0x7b)](',\x20')));_0x5bb3e3=_0x2d4bfa;}else{if(_0x55adb6['nonInteractive'])throw CliErrors[_0xfd5a0f(0xc7)](_0xfd5a0f(0x97));const _0x258380=await promptSelect('Select\x20operation\x20type:',_0x5e2126);_0x5bb3e3=_0x5e2126[_0x258380]??_0x5e2126[0x0];}let _0x39932f=normalizeHookFunctionNode(_0x55adb6[_0xfd5a0f(0xad)](_0xfd5a0f(0x75)));if(!_0x39932f){if(_0x55adb6['str'](_0xfd5a0f(0x75)))throw CliErrors['validation'](_0xfd5a0f(0xba));if(_0x55adb6[_0xfd5a0f(0xb0)])throw CliErrors[_0xfd5a0f(0xc7)]('--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');const _0x36cb80=await promptSelect(_0xfd5a0f(0xb3),['before','after']);_0x39932f=[_0xfd5a0f(0x9c),_0xfd5a0f(0x93)][_0x36cb80]??_0xfd5a0f(0x9c);}return{'alias':_0x37a94e,'datasetCode':_0xd146c,'datasetId':_0x1e14da,'operationType':_0x5bb3e3,'functionNode':_0x39932f};}async function promptSelect(_0x22eac5,_0x365ab6){const _0x4a108e=a30_0x1fbc69;if(_0x365ab6[_0x4a108e(0x99)]===0x1)return 0x0;for(const [_0x2c4752,_0x37ae50]of _0x365ab6['entries']()){process[_0x4a108e(0x8c)][_0x4a108e(0xac)]('\x20\x20'+(_0x2c4752+0x1)+'.\x20'+_0x37ae50+'\x0a');}const _0xeba671=createInterface({'input':process['stdin'],'output':process[_0x4a108e(0x8c)]});while(!![]){const _0x45650b=await new Promise(_0x120dbc=>{const _0x55a97d=_0x4a108e;_0xeba671[_0x55a97d(0x76)](_0x22eac5+'\x20',_0x120dbc);}),_0x1c6b26=Number[_0x4a108e(0xa6)](_0x45650b[_0x4a108e(0x9a)](),0xa);if(Number[_0x4a108e(0x78)](_0x1c6b26)&&_0x1c6b26>=0x1&&_0x1c6b26<=_0x365ab6[_0x4a108e(0x99)])return _0xeba671['close'](),_0x1c6b26-0x1;process[_0x4a108e(0x8c)][_0x4a108e(0xac)](_0x4a108e(0xa2)+_0x365ab6[_0x4a108e(0x99)]+'.\x0a');}}function buildFilePath(_0x44e155,_0x29ff3e,_0x4c36cc,_0x2fd425){const _0x30dedf=a30_0x1fbc69;if(_0x29ff3e==='HOOK'){if(!_0x2fd425)throw CliErrors['validation'](_0x30dedf(0x7a));const _0x30c407=_0x2fd425[_0x30dedf(0xb8)]??_0x2fd425[_0x30dedf(0x7c)];return join(_0x44e155['scriptsRootDir'],_0x30dedf(0xab),_0x30c407,_0x2fd425[_0x30dedf(0xa4)],_0x2fd425[_0x30dedf(0x8b)],_0x4c36cc+_0x30dedf(0x83));}return join(_0x44e155['scriptsRootDir'],_0x29ff3e,_0x4c36cc+_0x30dedf(0x83));}export function generateTemplate(_0x8409f1,_0x179d4a,_0x2166b5,_0x3be789,_0x1b063b){const _0x4774a2=a30_0x1fbc69,_0x1b5ae7=_0x3be789?.[_0x4774a2(0x9a)]()||_0x4774a2(0xae);if(_0x8409f1==='COMMON')return _0x4774a2(0xa0)+_0x1b5ae7+'\x0a\x20*\x20[脚本名称]\x20'+_0x179d4a+_0x4774a2(0x7e)+_0x179d4a+_0x4774a2(0xa8)+_0x179d4a+_0x4774a2(0x82);if(_0x8409f1==='ENDPOINT')return'/**\x0a\x20*\x20ENDPOINT\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20'+_0x1b5ae7+_0x4774a2(0xc6)+_0x2166b5+'/'+_0x179d4a+_0x4774a2(0xb9)+_0x179d4a+_0x4774a2(0x82);if(!_0x1b063b)throw CliErrors[_0x4774a2(0xc7)](_0x4774a2(0x84));return _0x4774a2(0x74)+_0x1b5ae7+_0x4774a2(0xc5)+_0x2166b5+'/'+_0x1b063b[_0x4774a2(0x7c)]+'/'+_0x1b063b[_0x4774a2(0xa4)]+_0x4774a2(0x86)+_0x1b063b['functionNode']+_0x4774a2(0xca)+_0x179d4a+_0x4774a2(0x82);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x5ca5fd=a31_0x3d6d;(function(_0x200d4b,_0x2b4afa){const _0x2541a8=a31_0x3d6d,_0x4ed9a3=_0x200d4b();while(!![]){try{const _0x1079e5=parseInt(_0x2541a8(0x1d2))/0x1+parseInt(_0x2541a8(0x1f4))/0x2+parseInt(_0x2541a8(0x1cc))/0x3+parseInt(_0x2541a8(0x1e4))/0x4+parseInt(_0x2541a8(0x1d5))/0x5+-parseInt(_0x2541a8(0x1d7))/0x6+-parseInt(_0x2541a8(0x1c6))/0x7;if(_0x1079e5===_0x2b4afa)break;else _0x4ed9a3['push'](_0x4ed9a3['shift']());}catch(_0x17d57b){_0x4ed9a3['push'](_0x4ed9a3['shift']());}}}(a31_0x58c2,0xadbd6));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';function a31_0x58c2(){const _0x45b4dd=['apps','\x22\x20not\x20found\x20after\x20ensureLockScope.','1133469TOmuuC','BFF\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a','3079775JWshOg','\x20\x20-\x20','2956038kEHNTV','functions','Would\x20delete\x20','appCode','\x20(local\x20file\x20moved\x20to\x20trash)','validation','startsWith','lastSync','stringify','trashDir','string','POST','Lock\x20scope\x20for\x20app\x20\x22','5375500eeuOrP','bff','scriptsRoot','Multiple\x20functions\x20match\x20\x22','No\x20lock\x20entry\x20found\x20for\x20\x22','Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','length','map','lockFilePath','split','join','\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash','Delete\x20a\x20BFF\x20script\x20from\x20remote\x20and\x20local','Local\x20delete\x20not\x20settled\x20for\x20','Deleted\x20','/api/management/library/scripts/delete','20302YoSDXn','remoteId','high-risk-write','delete','trashedTo','BFF\x20lock\x20file\x20not\x20found.','projectRoot','13602260eQPwgl','find','replace','target','toISOString','str','132123HBNSwo','Function\x20not\x20found:\x20','includes','keys'];a31_0x58c2=function(){return _0x45b4dd;};return a31_0x58c2();}import{deleteBffScript}from'../../core/api-client.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists,resolveLocalFilePathFromLockKey}from'../../core/bff/file-system.js';import{ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';import{sleep}from'../../utils/sleep.js';export const bffDelete={'service':a31_0x5ca5fd(0x1e5),'command':'delete','description':a31_0x5ca5fd(0x1f0),'risk':a31_0x5ca5fd(0x1f6),'flags':[{'name':a31_0x5ca5fd(0x1c9),'type':a31_0x5ca5fd(0x1e1),'required':!![],'description':a31_0x5ca5fd(0x1e9)}],async 'validate'(_0x584c44){const _0x164271=a31_0x5ca5fd,_0x4f57fb=loadBffProjectConfig(_0x584c44['appCode']),_0x26f775=await readBffLockFile(_0x4f57fb['lockFilePath']);if(!_0x26f775)throw CliErrors[_0x164271(0x1dc)](_0x164271(0x1d3));},async 'dryRun'(_0x2043d1){const _0x334c38=a31_0x5ca5fd,_0x558550=loadBffProjectConfig(_0x2043d1[_0x334c38(0x1da)]),_0x1af4fc=await readBffLockFile(_0x558550['lockFilePath']);if(!_0x1af4fc)throw CliErrors[_0x334c38(0x1dc)](_0x334c38(0x1c4));const {appLock:_0x3dafd8}=ensureLockScope(_0x1af4fc,_0x2043d1[_0x334c38(0x1da)],_0x558550[_0x334c38(0x1e6)],'delete'),_0x5c882d=_0x2043d1['str'](_0x334c38(0x1c9)),_0x1882f4=Object[_0x334c38(0x1cf)](_0x3dafd8[_0x334c38(0x1d8)]),_0x536fdd=resolveDeleteTarget(_0x5c882d,_0x1882f4),_0x39efe4=_0x3dafd8[_0x334c38(0x1d8)][_0x536fdd];if(!_0x39efe4)throw CliErrors['validation'](_0x334c38(0x1e8)+_0x536fdd+'\x22.');const _0x5a53d5=resolveLocalFilePathFromLockKey(_0x558550,_0x536fdd),_0x1c7b23=relative(_0x558550['projectRoot'],_0x5a53d5),_0x2f61e0=join(_0x558550['trashDir'],'<timestamp>',_0x1c7b23);return{'method':_0x334c38(0x1e2),'url':_0x334c38(0x1f3),'body':{'appCode':_0x2043d1[_0x334c38(0x1da)],'target':_0x536fdd,'remoteId':_0x39efe4['remoteId'],'localFilePath':_0x5a53d5,'trashedPath':_0x2f61e0},'description':_0x334c38(0x1d9)+_0x536fdd+_0x334c38(0x1ef)};},async 'execute'(_0x40358d){const _0x3f95e7=a31_0x5ca5fd,_0x278635=loadBffProjectConfig(_0x40358d[_0x3f95e7(0x1da)]),_0xb1ded=await readBffLockFile(_0x278635['lockFilePath']);if(!_0xb1ded)throw CliErrors['validation']('BFF\x20lock\x20file\x20not\x20found.');const {lockData:_0x86c957,appLock:_0x5c3fcb}=ensureLockScope(_0xb1ded,_0x40358d[_0x3f95e7(0x1da)],_0x278635['scriptsRoot'],_0x3f95e7(0x1c2)),_0x4ba743=JSON['parse'](JSON[_0x3f95e7(0x1df)](_0x86c957)),_0x3a0e2b=_0x4ba743[_0x3f95e7(0x1d0)][_0x40358d[_0x3f95e7(0x1da)]];if(!_0x3a0e2b)throw new Error(_0x3f95e7(0x1e3)+_0x40358d[_0x3f95e7(0x1da)]+_0x3f95e7(0x1d1));const _0x518faf=_0x40358d[_0x3f95e7(0x1cb)](_0x3f95e7(0x1c9)),_0x331949=Object[_0x3f95e7(0x1cf)](_0x3a0e2b[_0x3f95e7(0x1d8)]),_0x24f858=resolveDeleteTarget(_0x518faf,_0x331949),_0x9b88d4=_0x3a0e2b[_0x3f95e7(0x1d8)][_0x24f858];if(!_0x9b88d4)throw CliErrors[_0x3f95e7(0x1dc)](_0x3f95e7(0x1e8)+_0x24f858+'\x22.');await deleteBffScript(_0x9b88d4['remoteId']),delete _0x3a0e2b[_0x3f95e7(0x1d8)][_0x24f858],_0x3a0e2b[_0x3f95e7(0x1de)]=new Date()[_0x3f95e7(0x1ca)](),await writeBffLockFile(_0x278635[_0x3f95e7(0x1ec)],_0x4ba743);const _0x31729d=resolveLocalFilePathFromLockKey(_0x278635,_0x24f858);let _0xb0fd5f;await fileExists(_0x31729d)&&(_0xb0fd5f=await moveToTrash(_0x278635[_0x3f95e7(0x1c5)],_0x278635[_0x3f95e7(0x1e0)],_0x31729d),await cleanupEmptyDirectories(dirname(_0x31729d),_0x278635['scriptsRootDir']));await waitForDeleteSettlement(_0x278635['lockFilePath'],_0x40358d[_0x3f95e7(0x1da)],_0x24f858,_0x31729d),await sleep(0x96);const _0x46100b={'deleted':_0x24f858,'remoteId':_0x9b88d4[_0x3f95e7(0x1f5)]};if(_0xb0fd5f)_0x46100b[_0x3f95e7(0x1c3)]=_0xb0fd5f;return{'ok':!![],'data':_0x46100b,'message':_0x3f95e7(0x1f2)+_0x24f858+(_0xb0fd5f?_0x3f95e7(0x1db):'')};}};function a31_0x3d6d(_0x23f30a,_0x143263){_0x23f30a=_0x23f30a-0x1c2;const _0x58c27c=a31_0x58c2();let _0x3d6d25=_0x58c27c[_0x23f30a];return _0x3d6d25;}function resolveDeleteTarget(_0x504344,_0xf9b391){const _0x33ff2d=a31_0x5ca5fd;if(_0x504344[_0x33ff2d(0x1ce)]('/')){const _0x37e52c=_0xf9b391[_0x33ff2d(0x1c7)](_0x1533f1=>_0x1533f1===_0x504344);if(!_0x37e52c)throw CliErrors['validation'](_0x33ff2d(0x1cd)+_0x504344);return _0x37e52c;}const _0x56e3f5=_0xf9b391['filter'](_0x422888=>_0x422888[_0x33ff2d(0x1ed)]('/')['at'](-0x1)===_0x504344);if(_0x56e3f5[_0x33ff2d(0x1ea)]===0x0)throw CliErrors['validation']('Function\x20not\x20found:\x20'+_0x504344);if(_0x56e3f5[_0x33ff2d(0x1ea)]>0x1)throw CliErrors[_0x33ff2d(0x1dc)](_0x33ff2d(0x1e7)+_0x504344+_0x33ff2d(0x1d4)+_0x56e3f5[_0x33ff2d(0x1eb)](_0x5abd10=>_0x33ff2d(0x1d6)+_0x5abd10)[_0x33ff2d(0x1ee)]('\x0a'));return _0x56e3f5[0x0];}async function moveToTrash(_0x5a3d1b,_0x352e5c,_0x5b8118){const _0x52790f=a31_0x5ca5fd,_0x34d654=new Date()['toISOString']()[_0x52790f(0x1c8)](/[:.]/g,'-'),_0x5d345e=relative(_0x5a3d1b,_0x5b8118),_0x24c927=join(_0x352e5c,_0x34d654,_0x5d345e);return await mkdir(dirname(_0x24c927),{'recursive':!![]}),await rename(_0x5b8118,_0x24c927),_0x24c927;}async function cleanupEmptyDirectories(_0x22791a,_0x30eb1d){const _0x19f8ac=a31_0x5ca5fd;let _0x5b6a22=resolve(_0x22791a);const _0x17848d=resolve(_0x30eb1d);while(_0x5b6a22[_0x19f8ac(0x1dd)](''+_0x17848d+sep)||_0x5b6a22===_0x17848d){if(_0x5b6a22===_0x17848d)return;try{const _0x5bd697=await readdir(_0x5b6a22);if(_0x5bd697[_0x19f8ac(0x1ea)]>0x0)return;await rmdir(_0x5b6a22);}catch{return;}_0x5b6a22=dirname(_0x5b6a22);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0x2c1a21,_0x5354c4,_0x15923c,_0x432727){const _0x2a5357=a31_0x5ca5fd;for(let _0x240937=0x0;_0x240937<DELETE_SETTLE_RETRY_COUNT;_0x240937+=0x1){const _0x35d42c=await readBffLockFile(_0x2c1a21),_0x4844d4=!!_0x35d42c?.[_0x2a5357(0x1d0)]?.[_0x5354c4]?.[_0x2a5357(0x1d8)]?.[_0x15923c],_0x237c09=await fileExists(_0x432727);if(!_0x4844d4&&!_0x237c09)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error(_0x2a5357(0x1f1)+_0x15923c+'.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a32_0x2a08dc=a32_0xc931;(function(_0x47f06e,_0x98ed02){const _0x33263a=a32_0xc931,_0x2cd747=_0x47f06e();while(!![]){try{const _0x54cdf7=-parseInt(_0x33263a(0xcd))/0x1*(-parseInt(_0x33263a(0xc7))/0x2)+-parseInt(_0x33263a(0xce))/0x3+parseInt(_0x33263a(0xc6))/0x4*(parseInt(_0x33263a(0xd4))/0x5)+-parseInt(_0x33263a(0xd8))/0x6*(-parseInt(_0x33263a(0xca))/0x7)+-parseInt(_0x33263a(0xcf))/0x8+parseInt(_0x33263a(0xd2))/0x9+parseInt(_0x33263a(0xcb))/0xa;if(_0x54cdf7===_0x98ed02)break;else _0x2cd747['push'](_0x2cd747['shift']());}catch(_0x20c826){_0x2cd747['push'](_0x2cd747['shift']());}}}(a32_0x36c9,0xade42));import{getBffScriptInfo}from'../../core/api-client.js';function a32_0xc931(_0x49262f,_0x29851a){_0x49262f=_0x49262f-0xc1;const _0x36c9ef=a32_0x36c9();let _0xc93120=_0x36c9ef[_0x49262f];return _0xc93120;}export const bffDetail={'service':a32_0x2a08dc(0xc2),'command':a32_0x2a08dc(0xd7),'description':a32_0x2a08dc(0xd3),'risk':a32_0x2a08dc(0xc9),'flags':[{'name':'id','type':a32_0x2a08dc(0xd0),'required':!![],'description':a32_0x2a08dc(0xc1)},{'name':'verbose','type':'boolean','description':'Return\x20full\x20raw\x20script\x20object'}],async 'execute'(_0x2888a8){const _0x117ec4=a32_0x2a08dc,_0x1c9cf2=await getBffScriptInfo(_0x2888a8[_0x117ec4(0xd9)]('id')),_0x2792ca=_0x2888a8[_0x117ec4(0xc8)](_0x117ec4(0xcc));if(_0x2792ca)return{'ok':!![],'data':_0x1c9cf2};return{'ok':!![],'data':{'id':_0x1c9cf2['id'],'appCode':_0x1c9cf2[_0x117ec4(0xc3)],'scriptType':_0x1c9cf2[_0x117ec4(0xd6)],'description':_0x1c9cf2[_0x117ec4(0xd5)]||_0x117ec4(0xc4),'createdTime':_0x1c9cf2[_0x117ec4(0xc5)]??'','updatedTime':_0x1c9cf2[_0x117ec4(0xd1)]??'','scriptContent':_0x1c9cf2['scriptContent']??''}};}};function a32_0x36c9(){const _0x33dbe7=['2PcwSBT','bool','read','7CdwVPY','7842420XFdJva','verbose','321298OIgkFn','1462296rrmbCA','6942624ngwfxQ','number','updatedTime','618993DgBUOt','Get\x20BFF\x20script\x20details\x20by\x20ID','215255qienBw','description','scriptType','detail','2259534DmCmji','num','Script\x20ID','bff','appCode','(none)','createdTime','48uknBoX'];a32_0x36c9=function(){return _0x33dbe7;};return a32_0x36c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d58e6,_0x1c8d23){const _0xf85653=a33_0x463c,_0x2625ee=_0x5d58e6();while(!![]){try{const _0x5f4d83=parseInt(_0xf85653(0x126))/0x1*(parseInt(_0xf85653(0x128))/0x2)+parseInt(_0xf85653(0x123))/0x3+parseInt(_0xf85653(0x122))/0x4*(parseInt(_0xf85653(0x12a))/0x5)+parseInt(_0xf85653(0x120))/0x6*(-parseInt(_0xf85653(0x124))/0x7)+-parseInt(_0xf85653(0x121))/0x8*(parseInt(_0xf85653(0x127))/0x9)+-parseInt(_0xf85653(0x129))/0xa+-parseInt(_0xf85653(0x125))/0xb*(parseInt(_0xf85653(0x12b))/0xc);if(_0x5f4d83===_0x1c8d23)break;else _0x2625ee['push'](_0x2625ee['shift']());}catch(_0x4486ce){_0x2625ee['push'](_0x2625ee['shift']());}}}(a33_0x5dfb,0x27f9a));function a33_0x5dfb(){const _0x49646d=['72tPjpQW','1343796zlELTv','344UyGeQf','1308280CfbTkh','508788RsGmRj','7PRFmkS','68101wHUoSi','2RwBCnc','50499jifcbU','170542SDbgXd','10850TjOKUT','5nUNemZ'];a33_0x5dfb=function(){return _0x49646d;};return a33_0x5dfb();}import{bffList}from'../../commands/bff/list.js';import{bffDetail}from'../../commands/bff/detail.js';function a33_0x463c(_0x583678,_0xcd2f28){_0x583678=_0x583678-0x120;const _0x5dfbfc=a33_0x5dfb();let _0x463c67=_0x5dfbfc[_0x583678];return _0x463c67;}import{bffStatus}from'../../commands/bff/status.js';import{bffCreate}from'../../commands/bff/create.js';import{bffPush}from'../../commands/bff/push.js';import{bffPull}from'../../commands/bff/pull.js';import{bffDelete}from'../../commands/bff/delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffCreate,bffPush,bffPull,bffDelete];
|