@lovrabet/rabetbase-cli 2.4.7-beta.1 → 2.4.7-beta.2
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 -4
- 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.d.ts +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/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.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/search.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/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.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/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.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/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.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 +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.d.ts +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.d.ts +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.d.ts +2 -2
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +1 -1
- package/lib/core/bff/utils.d.ts +2 -2
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/sidecar/flags.json +1 -1
- package/skills/rabetbase/SKILL.md +28 -28
- package/skills/rabetbase/guides/backend-function.md +30 -30
- package/skills/rabetbase/guides/best-practices.md +8 -8
- package/skills/rabetbase/guides/bff-creation-workflow.md +16 -16
- package/skills/rabetbase/guides/conflict-detection.md +3 -3
- package/skills/rabetbase/guides/custom-page-workflow.md +8 -8
- package/skills/rabetbase/guides/data-api-guidelines.md +6 -6
- package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +8 -8
- package/skills/rabetbase/guides/sql-creation-workflow.md +2 -2
- package/skills/rabetbase/guides/troubleshooting.md +6 -6
- package/skills/rabetbase/guides/typescript-sdk.md +10 -10
- package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +1 -1
- package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +10 -10
- package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
- package/skills/rabetbase/references/rabetbase-bff-create.md +3 -3
- package/skills/rabetbase/references/rabetbase-bff-delete.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-detail.md +4 -4
- package/skills/rabetbase/references/rabetbase-bff-list.md +8 -8
- package/skills/rabetbase/references/rabetbase-bff-pull.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-push.md +3 -3
- package/skills/rabetbase/references/rabetbase-bff-status.md +1 -1
- package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -3
- package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +3 -3
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/rules/lovrabet_rules.mdc.tpl +7 -7
- package/templates/skill/SKILL.md.tpl +12 -12
package/lib/commands/app/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x5a80bf=a19_0x2fb3;(function(_0x5083ca,_0x4ad755){const _0x4554f0=a19_0x2fb3,_0x5bba34=_0x5083ca();while(!![]){try{const _0x53eb2e=parseInt(_0x4554f0(0xf7))/0x1*(-parseInt(_0x4554f0(0xf6))/0x2)+-parseInt(_0x4554f0(0xea))/0x3*(-parseInt(_0x4554f0(0xd7))/0x4)+-parseInt(_0x4554f0(0xf4))/0x5*(parseInt(_0x4554f0(0xd9))/0x6)+-parseInt(_0x4554f0(0xee))/0x7+parseInt(_0x4554f0(0xf3))/0x8*(-parseInt(_0x4554f0(0xec))/0x9)+-parseInt(_0x4554f0(0xfa))/0xa+parseInt(_0x4554f0(0xe9))/0xb;if(_0x53eb2e===_0x4ad755)break;else _0x5bba34['push'](_0x5bba34['shift']());}catch(_0x50a7a9){_0x5bba34['push'](_0x5bba34['shift']());}}}(a19_0x1a6e,0x3d524));function a19_0x2fb3(_0x5079dc,_0x10c302){_0x5079dc=_0x5079dc-0xd7;const _0x1a6e59=a19_0x1a6e();let _0x2fb364=_0x1a6e59[_0x5079dc];return _0x2fb364;}import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a19_0x1a6e(){const _0x44bad3=['merged','15408lQGYbK','entries','6KxtbpO','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','projectConfig','projectPath','global','boolean','globalPath','validation','appcode','find','.\x20Use\x20`','bool','mergedCli','remote','project','apps','15703292WtPWcP','303gMLUao','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','7263LBsRWt','object','3241091Lipcey','map','defaultApp','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','app','3008uOkKYx','1549980sJdvEO','isCurrent','95594kAHVaZ','1aMyYNp','\x20in\x20','read','4412140pNvxxC','globalConfig','list','inherit','push'];a19_0x1a6e=function(){return _0x44bad3;};return a19_0x1a6e();}import{buildAppProfileListFields}from'../../config/schema.js';import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function buildItemsFromLayer(_0x190ffb,_0x12edb1){const _0x1bac33=a19_0x2fb3,_0x2b0850=[],_0x5f4276=_0x190ffb[_0x1bac33(0xe8)]&&typeof _0x190ffb[_0x1bac33(0xe8)]===_0x1bac33(0xed)?_0x190ffb[_0x1bac33(0xe8)]:{},_0x23fd62=_0x190ffb[_0x1bac33(0xf0)]||undefined;for(const [_0x22a0b7,_0x347607]of Object['entries'](_0x5f4276)){if(!_0x347607||typeof _0x347607!==_0x1bac33(0xed)||!_0x347607['appcode'])continue;_0x2b0850[_0x1bac33(0xfe)]({'name':_0x22a0b7,'appcode':_0x347607[_0x1bac33(0xe1)],'named':!![],'definedIn':_0x12edb1,'isDefault':_0x22a0b7===_0x23fd62,...buildAppProfileListFields(_0x347607)});}return _0x2b0850;}function buildMergedItems(_0x2fec92,_0x21e484){const _0x36ec9b=a19_0x2fb3,{apps:apps={},defaultApp:_0x1d4ea1}=_0x2fec92,_0x473141=_0x21e484[_0x36ec9b(0xfb)][_0x36ec9b(0xe8)]&&typeof _0x21e484[_0x36ec9b(0xfb)][_0x36ec9b(0xe8)]===_0x36ec9b(0xed)?_0x21e484[_0x36ec9b(0xfb)]['apps']:{},_0x35e300=_0x21e484[_0x36ec9b(0xdb)][_0x36ec9b(0xe8)]&&typeof _0x21e484['projectConfig'][_0x36ec9b(0xe8)]===_0x36ec9b(0xed)?_0x21e484[_0x36ec9b(0xdb)][_0x36ec9b(0xe8)]:{},_0x75585=_0x21e484[_0x36ec9b(0xdb)][_0x36ec9b(0xfd)]===![],_0x565b8a=Object[_0x36ec9b(0xd8)](apps),_0x4e972b=_0x565b8a[_0x36ec9b(0xef)](([_0x34178f,_0x4a5399])=>({'name':_0x34178f,'appcode':_0x4a5399[_0x36ec9b(0xe1)],'named':!![],'definedIn':appDefinedIn(_0x34178f,_0x473141,_0x35e300,_0x75585),'isDefault':_0x34178f===_0x1d4ea1,...buildAppProfileListFields(_0x4a5399)}));return _0x4e972b;}function validateAppListFlags(_0x2470d3){const _0x375538=a19_0x2fb3;if(!_0x2470d3[_0x375538(0xe4)](_0x375538(0xe6)))return;if(!_0x2470d3[_0x375538(0xe4)](_0x375538(0xdd))&&!_0x2470d3[_0x375538(0xe4)](_0x375538(0xe7)))return;throw CliErrors[_0x375538(0xe0)](_0x375538(0xf1),_0x375538(0xeb));}async function execute(_0x373c01){const _0x2bcb8d=a19_0x2fb3;validateAppListFlags(_0x373c01);if(_0x373c01[_0x2bcb8d(0xe4)](_0x2bcb8d(0xe6)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x373c01)};const _0x327606=_0x373c01[_0x2bcb8d(0xe4)](_0x2bcb8d(0xdd)),_0x3dfda1=_0x373c01['bool']('project'),_0x429d42=_0x327606?_0x2bcb8d(0xdd):_0x3dfda1?_0x2bcb8d(0xe7):_0x2bcb8d(0xff),{config:_0x5b0289,layers:_0x34f662}=readRawConfigWithLayers(),_0x300b60=resolveDefaultAppSource(_0x34f662),{defaultApp:_0x4a134b}=_0x5b0289;let _0x11277d,_0x36e3ba;switch(_0x429d42){case'global':_0x11277d=buildItemsFromLayer(_0x34f662[_0x2bcb8d(0xfb)],_0x2bcb8d(0xdd)),_0x36e3ba=_0x34f662['globalPath'];break;case _0x2bcb8d(0xe7):_0x11277d=buildItemsFromLayer(_0x34f662['projectConfig'],'project'),_0x36e3ba=_0x34f662[_0x2bcb8d(0xdc)];break;default:_0x11277d=buildMergedItems(_0x5b0289,_0x34f662);break;}enrichAppListItemsWithMergedSelection(_0x11277d,_0x373c01[_0x2bcb8d(0xe5)]);if(_0x11277d['length']===0x0){const _0x562cef=_0x429d42===_0x2bcb8d(0xff)?'':_0x2bcb8d(0xf8)+_0x429d42+'\x20config';return{'ok':!![],'data':[],'message':'No\x20apps\x20configured'+_0x562cef+_0x2bcb8d(0xe3)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.'};}const _0x583c07=_0x11277d[_0x2bcb8d(0xe2)](_0x60595f=>_0x60595f[_0x2bcb8d(0xf5)]===!![]),_0x34c783=_0x4a134b??_0x583c07?.[_0x2bcb8d(0xe1)]??null,_0x452541=_0x429d42==='merged'?{'globalPath':_0x34f662[_0x2bcb8d(0xdf)]??null,'projectPath':_0x34f662[_0x2bcb8d(0xdc)]??null,'defaultApp':_0x34c783,'defaultAppSource':_0x4a134b!=null?_0x300b60:null}:{'scope':_0x429d42,'configPath':_0x36e3ba??null};return{'ok':!![],'data':{'items':_0x11277d,'meta':_0x452541}};}export const appListDefinition={'service':a19_0x5a80bf(0xf2),'command':a19_0x5a80bf(0xfc),'description':'List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','risk':a19_0x5a80bf(0xf9),'auth':'optional','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a19_0x5a80bf(0xe6),'type':a19_0x5a80bf(0xde),'description':a19_0x5a80bf(0xda),'default':![]},{'name':a19_0x5a80bf(0xdd),'type':a19_0x5a80bf(0xde),'description':'Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','default':![]},{'name':a19_0x5a80bf(0xe7),'type':'boolean','description':'Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','default':![]}],async 'validate'(_0x117e7c){validateAppListFlags(_0x117e7c);},'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a20_0x471a(_0x7d13f2,_0x4fb905){_0x7d13f2=_0x7d13f2-0xb7;const _0x548eb6=a20_0x548e();let _0x471a68=_0x548eb6[_0x7d13f2];return _0x471a68;}const a20_0x2b0017=a20_0x471a;(function(_0x12a168,_0xe948ca){const _0x27e229=a20_0x471a,_0x813ee9=_0x12a168();while(!![]){try{const _0x4f4c96=parseInt(_0x27e229(0xba))/0x1+parseInt(_0x27e229(0xc2))/0x2+-parseInt(_0x27e229(0xbb))/0x3*(-parseInt(_0x27e229(0xbd))/0x4)+-parseInt(_0x27e229(0xbf))/0x5*(parseInt(_0x27e229(0xc3))/0x6)+parseInt(_0x27e229(0xb7))/0x7+-parseInt(_0x27e229(0xc7))/0x8+-parseInt(_0x27e229(0xc5))/0x9*(parseInt(_0x27e229(0xb8))/0xa);if(_0x4f4c96===_0xe948ca)break;else _0x813ee9['push'](_0x813ee9['shift']());}catch(_0x4086e3){_0x813ee9['push'](_0x813ee9['shift']());}}}(a20_0x548e,0xc3310));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';import{listRoleUsers}from'../../core/api-client.js';function a20_0x548e(){const _0x584830=['length','4663590xcHhyM','members-list','read','2353886GtMXbe','6gFENaB','List\x20application\x20members\x20with\x20their\x20role\x20memberships','3084057CZCpBH','\x20application\x20member(s)','9732376dnxJMX','Found\x20','7131649lrQakM','10BrJdUu','app','363881GaIsLz','3SClPUx','appCode','2927244KXriSA'];a20_0x548e=function(){return _0x584830;};return a20_0x548e();}export const appMembersListDefinition={'service':a20_0x2b0017(0xb9),'command':a20_0x2b0017(0xc0),'description':a20_0x2b0017(0xc4),'risk':a20_0x2b0017(0xc1),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x392c7c){const _0x36a817=a20_0x2b0017,_0x1b9d4d=projectAppMembers(await listRoleUsers(_0x392c7c[_0x36a817(0xbc)]));return{'ok':!![],'data':{'appCode':_0x392c7c[_0x36a817(0xbc)],'items':_0x1b9d4d,'totalCount':_0x1b9d4d[_0x36a817(0xbe)]},'message':_0x36a817(0xc8)+_0x1b9d4d[_0x36a817(0xbe)]+_0x36a817(0xc6)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49ff56,_0x37f0a6){const _0x1aa6c6=a21_0x3f97,_0x738fa0=_0x49ff56();while(!![]){try{const _0x465f35=parseInt(_0x1aa6c6(0x85))/0x1+parseInt(_0x1aa6c6(0x8d))/0x2+parseInt(_0x1aa6c6(0x88))/0x3+-parseInt(_0x1aa6c6(0x91))/0x4*(-parseInt(_0x1aa6c6(0x8f))/0x5)+-parseInt(_0x1aa6c6(0x89))/0x6*(-parseInt(_0x1aa6c6(0x8e))/0x7)+-parseInt(_0x1aa6c6(0x93))/0x8+-parseInt(_0x1aa6c6(0x8c))/0x9;if(_0x465f35===_0x37f0a6)break;else _0x738fa0['push'](_0x738fa0['shift']());}catch(_0x227535){_0x738fa0['push'](_0x738fa0['shift']());}}}(a21_0x45bb,0x9d03b));import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';function a21_0x45bb(){const _0x46bfc5=['12393243ypwrVq','340606SDJvLA','29897dmamex','5sJBxzW','authRequired','2050044tVUhtc','map','1857448kqdUep','754169EOFNvZ','appDesc','platform','383175aXDnoT','966vITlnK','appCode','cookie'];a21_0x45bb=function(){return _0x46bfc5;};return a21_0x45bb();}function a21_0x3f97(_0x34d849,_0x4ae27f){_0x34d849=_0x34d849-0x85;const _0x45bb32=a21_0x45bb();let _0x3f9740=_0x45bb32[_0x34d849];return _0x3f9740;}import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x2e96f9){const _0x383286=a21_0x3f97,_0x5654c4=_0x2e96f9[_0x383286(0x8b)]||getCookie();if(!_0x5654c4)throw CliErrors[_0x383286(0x90)]();return _0x5654c4;}export async function listRemoteAppDirectory(_0x3cdbe5){const _0x15d62=a21_0x3f97,_0x37dea2=await withActiveCookie(resolveCookie(_0x3cdbe5),()=>listRemoteApps());return{'items':_0x37dea2[_0x15d62(0x92)](_0x5c11f4=>({..._0x5c11f4['id']!=null?{'id':_0x5c11f4['id']}:{},'appCode':_0x5c11f4[_0x15d62(0x8a)],'appName':_0x5c11f4['appName'],..._0x5c11f4[_0x15d62(0x86)]!=null?{'appDesc':_0x5c11f4[_0x15d62(0x86)]}:{}})),'meta':{'source':_0x15d62(0x87)}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59240e,_0x464aef){const _0x1eb820=a22_0x15d5,_0x32cdd2=_0x59240e();while(!![]){try{const _0x350e2d=parseInt(_0x1eb820(0x13f))/0x1*(parseInt(_0x1eb820(0x131))/0x2)+-parseInt(_0x1eb820(0x154))/0x3*(parseInt(_0x1eb820(0x12e))/0x4)+parseInt(_0x1eb820(0x161))/0x5*(parseInt(_0x1eb820(0x132))/0x6)+-parseInt(_0x1eb820(0x147))/0x7*(-parseInt(_0x1eb820(0x14b))/0x8)+-parseInt(_0x1eb820(0x14e))/0x9+-parseInt(_0x1eb820(0x139))/0xa*(parseInt(_0x1eb820(0x142))/0xb)+-parseInt(_0x1eb820(0x138))/0xc*(-parseInt(_0x1eb820(0x151))/0xd);if(_0x350e2d===_0x464aef)break;else _0x32cdd2['push'](_0x32cdd2['shift']());}catch(_0x2e2b5d){_0x32cdd2['push'](_0x32cdd2['shift']());}}}(a22_0x19d8,0xaa700));function a22_0x15d5(_0x5a9753,_0x99a58d){_0x5a9753=_0x5a9753-0x12c;const _0x19d80f=a22_0x19d8();let _0x15d504=_0x19d80f[_0x5a9753];return _0x15d504;}function a22_0x19d8(){const _0x3b2143=['prototype','add','map','globalConfig','values','sort','hasOwnProperty','status','roleKeys','appcode','call','250pRcfAM','both','length','12SQiYJo','membershipStatus','roleId','82Dxinei','152232vYpAae','push','ACTIVE','project','roles','name','3252TNsBWr','666710gBPgSW','defaultApp','currentApp','applyUserList','\x20(global)','projectConfig','27901VWvOsa','isCurrent','global','121cvyCCy','displayName','username','nickname','object','854TbyJZv','isFinite','keys','roleName','18608NdmaKC','appCode','PENDING','8675685TCENJl','has','userId','4602fnrczG','trim','set','396789vYoqAI','apps'];a22_0x19d8=function(){return _0x3b2143;};return a22_0x19d8();}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x572939){const _0x118867=a22_0x15d5,_0x41129c=_0x572939?.[_0x118867(0x152)]();return _0x41129c?_0x41129c:null;}export function projectAppMembers(_0x3d8664){const _0x812297=a22_0x15d5,_0xecee20=new Map(),_0x234f03=[..._0x3d8664][_0x812297(0x15b)]((_0x59bc22,_0x2bd8ee)=>_0x59bc22['id']-_0x2bd8ee['id']),_0xb85997=(_0x2faaf0,_0xa338a7,_0x2c5c3a)=>{const _0x57c219=_0x812297;for(const _0x2234a9 of _0xa338a7){const _0x28e2f6=Number(_0x2234a9[_0x57c219(0x150)]);if(!Number[_0x57c219(0x148)](_0x28e2f6)||_0x28e2f6<=0x0)continue;let _0x28157e=_0xecee20['get'](_0x28e2f6);if(!_0x28157e)_0x28157e={'userId':_0x28e2f6,'username':nullableText(_0x2234a9[_0x57c219(0x144)]),'displayName':nullableText(_0x2234a9['nickname']),'status':_0x2c5c3a,'roles':[],'roleKeys':new Set()},_0xecee20[_0x57c219(0x153)](_0x28e2f6,_0x28157e);else{_0x28157e[_0x57c219(0x144)]??=nullableText(_0x2234a9[_0x57c219(0x144)]),_0x28157e[_0x57c219(0x143)]??=nullableText(_0x2234a9[_0x57c219(0x145)]);if(_0x2c5c3a==='ACTIVE')_0x28157e[_0x57c219(0x15d)]='ACTIVE';}const _0x19065d=_0x2faaf0['id']+':'+_0x2c5c3a;if(_0x28157e[_0x57c219(0x15e)][_0x57c219(0x14f)](_0x19065d))continue;_0x28157e[_0x57c219(0x15e)][_0x57c219(0x157)](_0x19065d),_0x28157e[_0x57c219(0x136)][_0x57c219(0x133)]({'roleId':_0x2faaf0['id'],'roleName':nullableText(_0x2faaf0[_0x57c219(0x14a)]),'roleType':nullableText(_0x2faaf0['roleType']),'membershipStatus':_0x2c5c3a});}};for(const _0x518aeb of _0x234f03){_0xb85997(_0x518aeb,_0x518aeb['userList']??[],'ACTIVE'),_0xb85997(_0x518aeb,_0x518aeb[_0x812297(0x13c)]??[],_0x812297(0x14d));}return[..._0xecee20[_0x812297(0x15a)]()][_0x812297(0x158)](_0xeacf52=>({'userId':_0xeacf52[_0x812297(0x150)],'username':_0xeacf52[_0x812297(0x144)],'displayName':_0xeacf52[_0x812297(0x143)],'status':_0xeacf52[_0x812297(0x15d)],'roles':_0xeacf52['roles'][_0x812297(0x15b)]((_0x122c8a,_0x2a7db7)=>_0x122c8a[_0x812297(0x130)]-_0x2a7db7['roleId']||(_0x122c8a['membershipStatus']===_0x2a7db7[_0x812297(0x12f)]?0x0:_0x122c8a[_0x812297(0x12f)]===_0x812297(0x134)?-0x1:0x1))}))['sort']((_0x3ca399,_0x31e329)=>_0x3ca399[_0x812297(0x150)]-_0x31e329['userId']);}export function enrichAppListItemsWithMergedSelection(_0x46ae53,_0x1b3224){const _0x2f1fa5=a22_0x15d5;if(!_0x1b3224)return;const _0x366347=_0x1b3224[_0x2f1fa5(0x155)]&&typeof _0x1b3224['apps']===_0x2f1fa5(0x146)?_0x1b3224[_0x2f1fa5(0x155)]:{},_0x2db818=Object[_0x2f1fa5(0x149)](_0x366347)[_0x2f1fa5(0x12d)]>0x0;for(const _0x35738c of _0x46ae53){_0x35738c[_0x2f1fa5(0x140)]=![];}const _0x407aed=_0x1b3224[_0x2f1fa5(0x14c)]!=null?String(_0x1b3224[_0x2f1fa5(0x14c)])[_0x2f1fa5(0x152)]():'';if(_0x2db818){const _0x49bd1e=_0x1b3224[_0x2f1fa5(0x13b)]??_0x1b3224[_0x2f1fa5(0x13a)];if(_0x49bd1e)for(const _0x44f34c of _0x46ae53){_0x44f34c['named']===!![]&&_0x44f34c[_0x2f1fa5(0x137)]===_0x49bd1e&&(_0x44f34c['isCurrent']=!![]);}for(const _0x9fa293 of _0x46ae53){if(_0x9fa293['named']!==![])continue;if(_0x1b3224[_0x2f1fa5(0x13a)])continue;_0x407aed&&String(_0x9fa293[_0x2f1fa5(0x15f)]??'')[_0x2f1fa5(0x152)]()===_0x407aed&&(_0x9fa293[_0x2f1fa5(0x140)]=!![]);}return;}if(!_0x407aed)return;for(const _0x3cf03e of _0x46ae53){String(_0x3cf03e[_0x2f1fa5(0x15f)]??'')['trim']()===_0x407aed&&(_0x3cf03e[_0x2f1fa5(0x140)]=!![]);}}export function resolveAppScopeForWrite(_0x58ae67,_0x5419d5,_0x156f4d){const _0x1c1c10=a22_0x15d5;if(_0x5419d5)return _0x1c1c10(0x141);const _0xc120f3=_0x156f4d[_0x1c1c10(0x13e)][_0x1c1c10(0x155)]&&typeof _0x156f4d['projectConfig'][_0x1c1c10(0x155)]===_0x1c1c10(0x146)?_0x156f4d[_0x1c1c10(0x13e)]['apps']:{},_0x40091b=_0x156f4d[_0x1c1c10(0x159)][_0x1c1c10(0x155)]&&typeof _0x156f4d[_0x1c1c10(0x159)][_0x1c1c10(0x155)]==='object'?_0x156f4d[_0x1c1c10(0x159)][_0x1c1c10(0x155)]:{};if(Object['prototype'][_0x1c1c10(0x15c)]['call'](_0xc120f3,_0x58ae67))return _0x1c1c10(0x135);if(Object[_0x1c1c10(0x156)][_0x1c1c10(0x15c)][_0x1c1c10(0x160)](_0x40091b,_0x58ae67))return'global';return _0x1c1c10(0x135);}export function appDefinedIn(_0x33a05f,_0x4b829c,_0x2897b4,_0x46729e){const _0x3433d9=a22_0x15d5;if(_0x46729e)return Object['prototype'][_0x3433d9(0x15c)][_0x3433d9(0x160)](_0x2897b4,_0x33a05f)?_0x3433d9(0x135):_0x3433d9(0x141);const _0x5b2d70=Object[_0x3433d9(0x156)][_0x3433d9(0x15c)][_0x3433d9(0x160)](_0x4b829c,_0x33a05f),_0x1d1a85=Object[_0x3433d9(0x156)]['hasOwnProperty'][_0x3433d9(0x160)](_0x2897b4,_0x33a05f);if(_0x5b2d70&&_0x1d1a85)return _0x3433d9(0x12c);if(_0x1d1a85)return _0x3433d9(0x135);return _0x3433d9(0x141);}export function resolveDefaultAppSource(_0x33f998){const _0x10fe10=a22_0x15d5,_0x5ee19c=_0x33f998[_0x10fe10(0x13e)][_0x10fe10(0x155)]&&typeof _0x33f998[_0x10fe10(0x13e)]['apps']===_0x10fe10(0x146)?_0x33f998[_0x10fe10(0x13e)][_0x10fe10(0x155)]:{};if(_0x10fe10(0x13a)in _0x33f998[_0x10fe10(0x13e)])return _0x10fe10(0x135);if(Object[_0x10fe10(0x149)](_0x5ee19c)[_0x10fe10(0x12d)]>0x0)return _0x10fe10(0x135);if(_0x33f998[_0x10fe10(0x13e)]['inherit']===![])return null;if(_0x33f998[_0x10fe10(0x159)]['defaultApp'])return _0x10fe10(0x141);return null;}export function getConfigPath(_0x27e7f1={}){const _0x239411=a22_0x15d5,_0x1342e1=_0x27e7f1[_0x239411(0x141)]?_0x239411(0x141):'project';return resolveWriteConfigPath(_0x1342e1);}export function readConfig(_0x679c5b={}){return readConfigFile(getConfigPath(_0x679c5b));}export function writeConfig(_0xc614dc,_0x5ef47d={}){writeConfigFile(getConfigPath(_0x5ef47d),_0xc614dc);}export function scopeLabel(_0x7d95c5){const _0x9648a5=a22_0x15d5;return _0x7d95c5[_0x9648a5(0x141)]?_0x9648a5(0x13d):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a23_0x359493=a23_0x4c41;(function(_0x52446d,_0x358210){const _0x22c5ca=a23_0x4c41,_0x36b99d=_0x52446d();while(!![]){try{const _0xb63663=parseInt(_0x22c5ca(0x1f3))/0x1*(-parseInt(_0x22c5ca(0x207))/0x2)+-parseInt(_0x22c5ca(0x1fa))/0x3+parseInt(_0x22c5ca(0x1ff))/0x4*(parseInt(_0x22c5ca(0x203))/0x5)+parseInt(_0x22c5ca(0x1fc))/0x6+-parseInt(_0x22c5ca(0x1f4))/0x7*(-parseInt(_0x22c5ca(0x204))/0x8)+-parseInt(_0x22c5ca(0x200))/0x9+parseInt(_0x22c5ca(0x201))/0xa;if(_0xb63663===_0x358210)break;else _0x36b99d['push'](_0x36b99d['shift']());}catch(_0x43d72c){_0x36b99d['push'](_0x36b99d['shift']());}}}(a23_0x10ff,0x84f19));function a23_0x4c41(_0x329df,_0x10422c){_0x329df=_0x329df-0x1f3;const _0x10ff9d=a23_0x10ff();let _0x4c41b0=_0x10ff9d[_0x329df];return _0x4c41b0;}import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';function a23_0x10ff(){const _0x353b4d=['2823210ayFXLW','App\x20config\x20key\x20not\x20found:\x20','App\x20config\x20server\x20id\x20missing\x20for\x20key=','220Euylmj','7161291NQmCqi','14063250iehzbb','Deleted\x20app\x20config\x20','7790FVyQvo','48zDHyKD','validation','get','927290KbWKnW','high-risk-write','isFinite','1tAingf','93191PkOInF','/smartapi/app-config/delete','number','delete','app-config','appCode:\x20','715641jbWpBL','appCode'];a23_0x10ff=function(){return _0x353b4d;};return a23_0x10ff();}const DELETE_PATH=a23_0x359493(0x1f5);export const appConfigDelete={'service':a23_0x359493(0x1f8),'command':'delete','description':'Delete\x20one\x20runtime\x20app-config\x20key','risk':a23_0x359493(0x208),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x444332){readKeyArg(_0x444332);},async 'dryRun'(_0x4efefd){const _0x1ef289=a23_0x359493,_0x413227=readKeyArg(_0x4efefd),_0x3f7b38=await mustGetByKey(_0x4efefd[_0x1ef289(0x1fb)],_0x413227);return asAppConfigDryRunResult(buildMutationData({'operation':_0x1ef289(0x1f7),'appCode':_0x4efefd[_0x1ef289(0x1fb)],'key':_0x413227,'before':projectAppConfig(_0x3f7b38),'after':null,'dryRun':!![]}),{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x35593e){const _0x513d5f=a23_0x359493,_0xe283c5=readKeyArg(_0x35593e),_0x4495dc=await mustGetByKey(_0x35593e[_0x513d5f(0x1fb)],_0xe283c5);return await withAppConfigApiBoundary('delete',{'appCode':_0x35593e[_0x513d5f(0x1fb)],'key':_0xe283c5},()=>deleteAppConfig({'appCode':_0x35593e[_0x513d5f(0x1fb)],'id':requireAppConfigId(_0x4495dc,_0xe283c5,_0x35593e[_0x513d5f(0x1fb)])})),{'ok':!![],'data':buildMutationData({'operation':_0x513d5f(0x1f7),'appCode':_0x35593e[_0x513d5f(0x1fb)],'key':_0xe283c5,'before':projectAppConfig(_0x4495dc),'after':null,'dryRun':![]}),'message':_0x513d5f(0x202)+_0xe283c5};}};async function mustGetByKey(_0x3eb0df,_0x3ff4ff){const _0x46393d=a23_0x359493,_0x30a886=await withAppConfigApiBoundary(_0x46393d(0x206),{'appCode':_0x3eb0df,'key':_0x3ff4ff},()=>getAppConfigByKey(_0x3eb0df,_0x3ff4ff));if(!_0x30a886)throw CliErrors[_0x46393d(0x205)](_0x46393d(0x1fd)+_0x3ff4ff,_0x46393d(0x1f9)+_0x3eb0df);return _0x30a886;}function requireAppConfigId(_0x558929,_0xfeb979,_0x209de8){const _0x2dc94a=a23_0x359493;if(typeof _0x558929['id']===_0x2dc94a(0x1f6)&&Number[_0x2dc94a(0x209)](_0x558929['id'])&&_0x558929['id']>0x0)return _0x558929['id'];throw CliErrors['apiError'](_0x2dc94a(0x1fe)+_0xfeb979+',\x20appCode='+_0x209de8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a24_0x52e192=a24_0x35b2;(function(_0x40a6a1,_0x51834d){const _0xa046ab=a24_0x35b2,_0x15a271=_0x40a6a1();while(!![]){try{const _0x35ac58=parseInt(_0xa046ab(0x1b1))/0x1*(parseInt(_0xa046ab(0x1b2))/0x2)+parseInt(_0xa046ab(0x1aa))/0x3*(-parseInt(_0xa046ab(0x1b9))/0x4)+parseInt(_0xa046ab(0x1ab))/0x5*(parseInt(_0xa046ab(0x1b6))/0x6)+-parseInt(_0xa046ab(0x1b8))/0x7*(-parseInt(_0xa046ab(0x1ad))/0x8)+parseInt(_0xa046ab(0x1b5))/0x9*(parseInt(_0xa046ab(0x1af))/0xa)+parseInt(_0xa046ab(0x1a8))/0xb*(-parseInt(_0xa046ab(0x1ac))/0xc)+parseInt(_0xa046ab(0x1ae))/0xd;if(_0x35ac58===_0x51834d)break;else _0x15a271['push'](_0x15a271['shift']());}catch(_0x100ec8){_0x15a271['push'](_0x15a271['shift']());}}}(a24_0x88d6,0x7ed82));function a24_0x35b2(_0x3bdef2,_0x66c919){_0x3bdef2=_0x3bdef2-0x1a5;const _0x88d699=a24_0x88d6();let _0x35b274=_0x88d699[_0x3bdef2];return _0x35b274;}import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a24_0x88d6(){const _0x33e201=['appCode','bool','301697JIFebu','\x20with\x20value\x20redacted','195OPVzSR','310iRGUFR','240QcHaJh','241048gWhHJz','337259tlEZvE','136870wPLrSa','\x20with\x20value\x20revealed','29579LZbypU','24KIukUR','validation','read','513VxblBw','17718URzZGi','reveal','91yzFNbQ','41092UaNgOA','appCode:\x20','App\x20config\x20key\x20not\x20found:\x20','app-config'];a24_0x88d6=function(){return _0x33e201;};return a24_0x88d6();}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a24_0x52e192(0x1a5),'command':'get','description':'Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','risk':a24_0x52e192(0x1b4),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x269e7d){readKeyArg(_0x269e7d);},async 'execute'(_0x50fed8){const _0x2f8a51=a24_0x52e192,_0x3914d8=readKeyArg(_0x50fed8),_0x570dbe=await withAppConfigApiBoundary('get',{'appCode':_0x50fed8['appCode'],'key':_0x3914d8},()=>getAppConfigByKey(_0x50fed8[_0x2f8a51(0x1a6)],_0x3914d8));if(!_0x570dbe)throw CliErrors[_0x2f8a51(0x1b3)](_0x2f8a51(0x1bb)+_0x3914d8,_0x2f8a51(0x1ba)+_0x50fed8[_0x2f8a51(0x1a6)]);const _0x122765=projectAppConfig(_0x570dbe,{'reveal':_0x50fed8[_0x2f8a51(0x1a7)]('reveal')});return{'ok':!![],'data':{'config':_0x122765},'message':_0x50fed8[_0x2f8a51(0x1a7)](_0x2f8a51(0x1b7))?'Loaded\x20app\x20config\x20'+_0x3914d8+_0x2f8a51(0x1b0):'Loaded\x20app\x20config\x20'+_0x3914d8+_0x2f8a51(0x1a9)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19b070,_0x39c8f1){const _0x19a31e=a25_0x2471,_0x30e7f6=_0x19b070();while(!![]){try{const _0x24fd03=parseInt(_0x19a31e(0x102))/0x1+-parseInt(_0x19a31e(0x105))/0x2+-parseInt(_0x19a31e(0x108))/0x3+-parseInt(_0x19a31e(0x104))/0x4+parseInt(_0x19a31e(0x106))/0x5+-parseInt(_0x19a31e(0x107))/0x6*(-parseInt(_0x19a31e(0x103))/0x7)+-parseInt(_0x19a31e(0x109))/0x8;if(_0x24fd03===_0x39c8f1)break;else _0x30e7f6['push'](_0x30e7f6['shift']());}catch(_0x5c9b06){_0x30e7f6['push'](_0x30e7f6['shift']());}}}(a25_0x1a01,0x44c60));function a25_0x1a01(){const _0x47db22=['222mWuhtp','330039rspdql','963296hMyMKY','335811zYMMrN','80570WOsdFc','854684qoQkHc','489004XmKYPv','1043065ylSAtD'];a25_0x1a01=function(){return _0x47db22;};return a25_0x1a01();}function a25_0x2471(_0x247356,_0x2e053c){_0x247356=_0x247356-0x102;const _0x1a0115=a25_0x1a01();let _0x247115=_0x1a0115[_0x247356];return _0x247115;}import{appConfigList}from'../../commands/app-config/list.js';import{appConfigGet}from'../../commands/app-config/get.js';import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a26_0x5ae6f3=a26_0xa045;function a26_0x28b1(){const _0x357d22=['83200DQCpyG','205522QwWpyf','map','182501LrwqdN','5643UXalzl','\x20app\x20config(s)','14YXCUYE','3111888Avijbs','Filter\x20by\x20exact\x20config\x20key','4652195cGHlFp','trim','key','8290tlKZZH','app-config','appCode','length','6jacCXr','List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','string','Found\x20','1692bafHLT','6gtksdD','str','list','2086696bRLGAZ'];a26_0x28b1=function(){return _0x357d22;};return a26_0x28b1();}function a26_0xa045(_0x1ac0b1,_0x6eb35d){_0x1ac0b1=_0x1ac0b1-0x16c;const _0x28b100=a26_0x28b1();let _0xa045de=_0x28b100[_0x1ac0b1];return _0xa045de;}(function(_0x4780bf,_0x509f86){const _0x2e50d6=a26_0xa045,_0xda6043=_0x4780bf();while(!![]){try{const _0x478b68=parseInt(_0x2e50d6(0x16d))/0x1+parseInt(_0x2e50d6(0x16e))/0x2*(-parseInt(_0x2e50d6(0x17d))/0x3)+-parseInt(_0x2e50d6(0x16c))/0x4+parseInt(_0x2e50d6(0x176))/0x5*(-parseInt(_0x2e50d6(0x182))/0x6)+parseInt(_0x2e50d6(0x173))/0x7*(-parseInt(_0x2e50d6(0x174))/0x8)+-parseInt(_0x2e50d6(0x171))/0x9*(-parseInt(_0x2e50d6(0x179))/0xa)+-parseInt(_0x2e50d6(0x170))/0xb*(-parseInt(_0x2e50d6(0x181))/0xc);if(_0x478b68===_0x509f86)break;else _0xda6043['push'](_0xda6043['shift']());}catch(_0x4124ab){_0xda6043['push'](_0xda6043['shift']());}}}(a26_0x28b1,0x7bb53));import{listAppConfigs}from'../../core/api-client.js';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_0x5ae6f3(0x17a),'command':a26_0x5ae6f3(0x184),'description':a26_0x5ae6f3(0x17e),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'key','type':a26_0x5ae6f3(0x17f),'description':a26_0x5ae6f3(0x175)},TAGS_FLAG],async 'validate'(_0x56fcc3){const _0x6f406d=a26_0x5ae6f3,_0x1add2d=_0x56fcc3[_0x6f406d(0x183)](_0x6f406d(0x178))[_0x6f406d(0x177)]();if(_0x1add2d)validateKey(_0x1add2d);readOptionalTags(_0x56fcc3);},async 'execute'(_0x3dc6fc){const _0x340365=a26_0x5ae6f3,_0x23099d=_0x3dc6fc[_0x340365(0x183)](_0x340365(0x178))[_0x340365(0x177)]()||undefined,_0x3a5749=readOptionalTags(_0x3dc6fc),_0x4f61bb=await withAppConfigApiBoundary('list',{'appCode':_0x3dc6fc['appCode']},()=>listAppConfigs(_0x3dc6fc[_0x340365(0x17b)],{'key':_0x23099d,'tags':_0x3a5749})),_0x5cc85e=_0x4f61bb[_0x340365(0x16f)](_0x214f3e=>projectAppConfig(_0x214f3e));return{'ok':!![],'data':{'appCode':_0x3dc6fc[_0x340365(0x17b)],'count':_0x5cc85e[_0x340365(0x17c)],'configs':_0x5cc85e},'message':_0x340365(0x180)+_0x5cc85e[_0x340365(0x17c)]+_0x340365(0x172)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0xb88e10=a27_0xca13;(function(_0x5d2013,_0x3b8abb){const _0xd36ce5=a27_0xca13,_0x42b59a=_0x5d2013();while(!![]){try{const _0x2bf9ed=-parseInt(_0xd36ce5(0x1a8))/0x1*(parseInt(_0xd36ce5(0x1a7))/0x2)+parseInt(_0xd36ce5(0x1b5))/0x3+parseInt(_0xd36ce5(0x1be))/0x4*(parseInt(_0xd36ce5(0x1b7))/0x5)+parseInt(_0xd36ce5(0x1a4))/0x6*(-parseInt(_0xd36ce5(0x1ae))/0x7)+-parseInt(_0xd36ce5(0x1ab))/0x8*(parseInt(_0xd36ce5(0x1af))/0x9)+-parseInt(_0xd36ce5(0x1a1))/0xa*(parseInt(_0xd36ce5(0x1b0))/0xb)+parseInt(_0xd36ce5(0x1b4))/0xc;if(_0x2bf9ed===_0x3b8abb)break;else _0x42b59a['push'](_0x42b59a['shift']());}catch(_0x321782){_0x42b59a['push'](_0x42b59a['shift']());}}}(a27_0x4be6,0x1dbbc));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';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';function a27_0x4be6(){const _0x14e3b7=['11XDhExZ','isFinite','\x20app\x20config\x20','appCode','3115980YYLAJW','679575TstNUS','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','5zYrEpZ','tags','get','write','Created','App\x20config\x20server\x20id\x20missing\x20for\x20key=','file','724576ZCJDHB','create','/smartapi/app-config/create','1135590MaBLWm','update','string','2622fuKKPa','set','Read\x20config\x20value\x20from\x20file','167892pLrhMA','2rqNvCN',',\x20appCode=','apiError','8kbBljk','/smartapi/app-config/update','Updated','1099haegqK','1759374qwTvTj'];a27_0x4be6=function(){return _0x14e3b7;};return a27_0x4be6();}const CREATE_PATH=a27_0xb88e10(0x1a0),UPDATE_PATH=a27_0xb88e10(0x1ac);function a27_0xca13(_0x113561,_0x131b36){_0x113561=_0x113561-0x1a0;const _0x4be6dc=a27_0x4be6();let _0xca130=_0x4be6dc[_0x113561];return _0xca130;}export const appConfigSet={'service':'app-config','command':a27_0xb88e10(0x1a5),'description':a27_0xb88e10(0x1b6),'risk':a27_0xb88e10(0x1ba),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a27_0xb88e10(0x1bd),'type':a27_0xb88e10(0x1a3),'description':a27_0xb88e10(0x1a6)}],async 'validate'(_0x4f9ed5){readKeyArg(_0x4f9ed5),readOptionalTags(_0x4f9ed5),assertSingleValueSource(_0x4f9ed5);},async 'dryRun'(_0x46964b){const _0x4ca9fd=a27_0xb88e10,_0x425e3e=readKeyArg(_0x46964b),_0x15bed4=readOptionalTags(_0x46964b),_0x475911=assertSingleValueSource(_0x46964b);await assertValueSourceReadable(_0x475911);const _0x5bbfcd=await withAppConfigApiBoundary(_0x4ca9fd(0x1b9),{'appCode':_0x46964b[_0x4ca9fd(0x1b3)],'key':_0x425e3e},()=>getAppConfigByKey(_0x46964b[_0x4ca9fd(0x1b3)],_0x425e3e)),_0x231d4c=_0x5bbfcd?_0x4ca9fd(0x1a2):_0x4ca9fd(0x1bf),_0x1fd83f=_0x5bbfcd?projectAppConfig(_0x5bbfcd):null,_0x398b8a=plannedAppConfig({'appCode':_0x46964b[_0x4ca9fd(0x1b3)],'key':_0x425e3e,'tags':_0x15bed4??_0x5bbfcd?.[_0x4ca9fd(0x1b8)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x231d4c,'appCode':_0x46964b['appCode'],'key':_0x425e3e,'before':_0x1fd83f,'after':_0x398b8a,'dryRun':!![]}),{'method':'POST','url':_0x231d4c==='update'?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x519a0c){const _0x2a0412=a27_0xb88e10,_0x107af1=readKeyArg(_0x519a0c),_0x3dd13d=readOptionalTags(_0x519a0c),_0x4e98de=await withAppConfigApiBoundary(_0x2a0412(0x1b9),{'appCode':_0x519a0c[_0x2a0412(0x1b3)],'key':_0x107af1},()=>getAppConfigByKey(_0x519a0c[_0x2a0412(0x1b3)],_0x107af1)),_0x3d9dd9=_0x4e98de?projectAppConfig(_0x4e98de):null,_0x2effd3=_0x4e98de?_0x2a0412(0x1a2):_0x2a0412(0x1bf),{value:_0x48c86b,warnings:_0x57dd2e}=await readAppConfigValue(_0x519a0c),_0x29e0fa={'appCode':_0x519a0c[_0x2a0412(0x1b3)],'key':_0x107af1,'value':_0x48c86b,'tags':_0x3dd13d??_0x4e98de?.[_0x2a0412(0x1b8)]??undefined};await withAppConfigApiBoundary(_0x2effd3,{'appCode':_0x519a0c[_0x2a0412(0x1b3)],'key':_0x107af1},async()=>{_0x4e98de?await updateAppConfig({..._0x29e0fa,'id':requireAppConfigId(_0x4e98de,_0x107af1,_0x519a0c['appCode'])}):await createAppConfig(_0x29e0fa);});const _0x4154b4=await withAppConfigApiBoundary(_0x2a0412(0x1b9),{'appCode':_0x519a0c[_0x2a0412(0x1b3)],'key':_0x107af1},()=>getAppConfigByKey(_0x519a0c[_0x2a0412(0x1b3)],_0x107af1)),_0x82b5a=_0x4154b4?projectAppConfig(_0x4154b4):plannedAppConfig({'appCode':_0x519a0c['appCode'],'key':_0x107af1,'tags':_0x29e0fa[_0x2a0412(0x1b8)],'hasValue':_0x48c86b!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x2effd3,'appCode':_0x519a0c[_0x2a0412(0x1b3)],'key':_0x107af1,'before':_0x3d9dd9,'after':_0x82b5a,'dryRun':![],'warnings':_0x57dd2e}),'message':(_0x2effd3===_0x2a0412(0x1a2)?_0x2a0412(0x1ad):_0x2a0412(0x1bb))+_0x2a0412(0x1b2)+_0x107af1};}};function requireAppConfigId(_0x2d1777,_0x393c39,_0x14adc9){const _0x5923a4=a27_0xb88e10;if(typeof _0x2d1777['id']==='number'&&Number[_0x5923a4(0x1b1)](_0x2d1777['id'])&&_0x2d1777['id']>0x0)return _0x2d1777['id'];throw CliErrors[_0x5923a4(0x1aa)](_0x5923a4(0x1bc)+_0x393c39+_0x5923a4(0x1a9)+_0x14adc9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a28_0x3bea(){const _0x49db00=['Runtime\x20app-config\x20key','warnings','Value\x20file\x20is\x20not\x20readable:\x20','516831tQXvLF','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','App\x20config\x20value\x20source\x20is\x20ambiguous.','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','16ACHGGK','Failed\x20to\x20','operation','flag','17239354yEwPfE','env','\x20app\x20config.','file','appCode:\x20','kind','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','boolean','Read\x20config\x20value\x20from\x20stdin','value','5255568rvbiTp','tags','Environment\x20variable\x20is\x20not\x20set:\x20','join','str','5234632ROItRk','364mqEsfL','path','stdin','setEncoding','hasValue','utf8','args','trim','before','bool','string','Missing\x20app-config\x20key.','once','gmtModified','4xJZRzh','validation','1074914zxtEXI','3173215WYXPjC','reveal','dryRun','77682jyCmab','argument','valueRedacted','error','appCode','key','name','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','Missing\x20app-config\x20value\x20source.','from-env','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','end','length','value\x20is\x20redacted','apiError','10MlDjQs','push'];a28_0x3bea=function(){return _0x49db00;};return a28_0x3bea();}const a28_0x1a8fb6=a28_0x2c27;(function(_0x535b10,_0x142bf9){const _0x5cdce4=a28_0x2c27,_0x5678a6=_0x535b10();while(!![]){try{const _0x4b039e=parseInt(_0x5cdce4(0xb7))/0x1+parseInt(_0x5cdce4(0xd3))/0x2*(parseInt(_0x5cdce4(0xcf))/0x3)+parseInt(_0x5cdce4(0xb5))/0x4*(parseInt(_0x5cdce4(0xb8))/0x5)+parseInt(_0x5cdce4(0xbb))/0x6*(-parseInt(_0x5cdce4(0xa7))/0x7)+-parseInt(_0x5cdce4(0xa6))/0x8+-parseInt(_0x5cdce4(0xa1))/0x9*(-parseInt(_0x5cdce4(0xca))/0xa)+-parseInt(_0x5cdce4(0x97))/0xb;if(_0x4b039e===_0x142bf9)break;else _0x5678a6['push'](_0x5678a6['shift']());}catch(_0x34c3b){_0x5678a6['push'](_0x5678a6['shift']());}}}(a28_0x3bea,0xbdaea));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a28_0x1a8fb6(0xc0),'description':a28_0x1a8fb6(0xcc),'required':!![]};export const VALUE_ARG={'name':a28_0x1a8fb6(0xa0),'description':'Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','required':![]};export const TAGS_FLAG={'name':a28_0x1a8fb6(0xa2),'type':a28_0x1a8fb6(0xb1),'description':'Config\x20tags\x20for\x20filtering/display\x20metadata'};export const STDIN_FLAG={'name':'stdin','type':a28_0x1a8fb6(0x9e),'description':a28_0x1a8fb6(0x9f),'default':![]};export const FROM_ENV_FLAG={'name':a28_0x1a8fb6(0xc4),'type':a28_0x1a8fb6(0xb1),'description':a28_0x1a8fb6(0xd2)};export const REVEAL_FLAG={'name':'reveal','type':'boolean','description':'Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','default':![]};export function readKeyArg(_0x2a630c){const _0x1e35d2=a28_0x1a8fb6,_0x5098c7=_0x2a630c[_0x1e35d2(0xad)][0x0]?.['trim']()??'';return validateKey(_0x5098c7),_0x5098c7;}export function readOptionalTags(_0x21bcd7){const _0x7b7aab=a28_0x1a8fb6,_0x316b89=_0x21bcd7[_0x7b7aab(0xa5)](_0x7b7aab(0xa2))['trim']();if(!_0x316b89)return undefined;if(_0x316b89[_0x7b7aab(0xc7)]>0x20)throw CliErrors[_0x7b7aab(0xb6)]('App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.');return _0x316b89;}function a28_0x2c27(_0x125c78,_0x439d01){_0x125c78=_0x125c78-0x95;const _0x3beac0=a28_0x3bea();let _0x2c27a0=_0x3beac0[_0x125c78];return _0x2c27a0;}export function validateKey(_0x5deb29){const _0x3357b9=a28_0x1a8fb6;if(!_0x5deb29)throw CliErrors[_0x3357b9(0xb6)](_0x3357b9(0xb2));if(_0x5deb29[_0x3357b9(0xc7)]>0x100)throw CliErrors[_0x3357b9(0xb6)](_0x3357b9(0xc5));}export function projectAppConfig(_0x41945a,_0x18fe40){const _0x4abef7=a28_0x1a8fb6,_0x1ebda8=_0x41945a['value']!==undefined&&_0x41945a[_0x4abef7(0xa0)]!==null&&_0x41945a[_0x4abef7(0xa0)]!=='',_0x167461={'appCode':_0x41945a[_0x4abef7(0xbf)],'key':_0x41945a['key'],'tags':_0x41945a['tags']??undefined,'hasValue':_0x1ebda8,'valueRedacted':_0x1ebda8&&!_0x18fe40?.[_0x4abef7(0xb9)],'gmtCreate':_0x41945a['gmtCreate'],'gmtModified':_0x41945a[_0x4abef7(0xb4)]};return _0x18fe40?.[_0x4abef7(0xb9)]&&(_0x167461[_0x4abef7(0xa0)]=_0x41945a[_0x4abef7(0xa0)]??'',_0x167461[_0x4abef7(0xbd)]=![]),_0x167461;}export function plannedAppConfig(_0x2446ef){const _0x18df36=a28_0x1a8fb6,_0x4e0cae=_0x2446ef[_0x18df36(0xab)]??!![];return{'appCode':_0x2446ef[_0x18df36(0xbf)],'key':_0x2446ef[_0x18df36(0xc0)],'tags':_0x2446ef[_0x18df36(0xa2)]??undefined,'hasValue':_0x4e0cae,'valueRedacted':_0x4e0cae};}export function buildMutationData(_0x3920e0){const _0x3e7e1d=a28_0x1a8fb6;return{'operation':_0x3920e0[_0x3e7e1d(0x95)],'selector':{'appCode':_0x3920e0[_0x3e7e1d(0xbf)],'key':_0x3920e0[_0x3e7e1d(0xc0)]},'before':_0x3920e0[_0x3e7e1d(0xaf)],'after':_0x3920e0['after'],'dryRun':_0x3920e0[_0x3e7e1d(0xba)],'warnings':_0x3920e0[_0x3e7e1d(0xcd)]??[]};}export async function withAppConfigApiBoundary(_0x7fddf,_0x5aea8a,_0x571ed2){const _0x178fbb=a28_0x1a8fb6;try{return await _0x571ed2();}catch{const _0x4ab4b6=[_0x178fbb(0x9b)+_0x5aea8a[_0x178fbb(0xbf)]];if(_0x5aea8a[_0x178fbb(0xc0)])_0x4ab4b6[_0x178fbb(0xcb)]('key:\x20'+_0x5aea8a[_0x178fbb(0xc0)]);_0x4ab4b6[_0x178fbb(0xcb)](_0x178fbb(0xc8));throw CliErrors[_0x178fbb(0xc9)](_0x178fbb(0xd4)+_0x7fddf+_0x178fbb(0x99),_0x4ab4b6[_0x178fbb(0xa4)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x3f82d7,_0x4ba1d7){return Object['defineProperties'](_0x3f82d7,{'method':{'value':_0x4ba1d7['method'],'enumerable':![]},'url':{'value':_0x4ba1d7['url'],'enumerable':![]}});}export function assertSingleValueSource(_0xf29c58){const _0x26c732=a28_0x1a8fb6,_0x46a9a0=[];_0xf29c58[_0x26c732(0xad)][_0x26c732(0xc7)]>0x1&&_0x46a9a0['push']({'kind':_0x26c732(0xbc),'value':_0xf29c58[_0x26c732(0xad)]['slice'](0x1)['join']('\x20')});const _0x3b5f63=_0xf29c58[_0x26c732(0x96)]('value');_0x3b5f63!==undefined&&_0x3b5f63!==null&&_0x46a9a0[_0x26c732(0xcb)]({'kind':_0x26c732(0xbc),'value':String(_0x3b5f63)});_0xf29c58[_0x26c732(0xb0)](_0x26c732(0xa9))&&_0x46a9a0[_0x26c732(0xcb)]({'kind':_0x26c732(0xa9)});const _0x2af5c5=_0xf29c58[_0x26c732(0xa5)](_0x26c732(0xc4))[_0x26c732(0xae)]();_0x2af5c5&&_0x46a9a0[_0x26c732(0xcb)]({'kind':_0x26c732(0x98),'name':_0x2af5c5});const _0x432c8e=_0xf29c58[_0x26c732(0xa5)](_0x26c732(0x9a))[_0x26c732(0xae)]();_0x432c8e&&_0x46a9a0[_0x26c732(0xcb)]({'kind':_0x26c732(0x9a),'path':_0x432c8e});if(_0x46a9a0['length']===0x0)throw CliErrors[_0x26c732(0xb6)](_0x26c732(0xc3),_0x26c732(0x9d));if(_0x46a9a0[_0x26c732(0xc7)]>0x1)throw CliErrors['validation'](_0x26c732(0xd1),_0x26c732(0xc2));return _0x46a9a0[0x0];}export async function assertValueSourceReadable(_0x16b05a){const _0x528961=a28_0x1a8fb6;if(_0x16b05a[_0x528961(0x9c)]==='env'&&!(_0x16b05a[_0x528961(0xc1)]in process.env))throw CliErrors[_0x528961(0xb6)](_0x528961(0xa3)+_0x16b05a[_0x528961(0xc1)]);if(_0x16b05a[_0x528961(0x9c)]===_0x528961(0x9a))try{await access(_0x16b05a[_0x528961(0xa8)]);}catch{throw CliErrors['validation'](_0x528961(0xce)+_0x16b05a['path']);}}export async function readAppConfigValue(_0x1a3493){const _0x9dd2b9=a28_0x1a8fb6,_0x7acd41=assertSingleValueSource(_0x1a3493),_0x2ea237=[];if(_0x7acd41[_0x9dd2b9(0x9c)]==='argument')return _0x2ea237[_0x9dd2b9(0xcb)](_0x9dd2b9(0xd0)),{'value':_0x7acd41[_0x9dd2b9(0xa0)]??'','source':_0x7acd41[_0x9dd2b9(0x9c)],'warnings':_0x2ea237};if(_0x7acd41[_0x9dd2b9(0x9c)]===_0x9dd2b9(0xa9))return{'value':await readStdin(),'source':_0x7acd41[_0x9dd2b9(0x9c)],'warnings':_0x2ea237};if(_0x7acd41[_0x9dd2b9(0x9c)]==='env'){if(!(_0x7acd41[_0x9dd2b9(0xc1)]in process.env))throw CliErrors[_0x9dd2b9(0xb6)](_0x9dd2b9(0xa3)+_0x7acd41[_0x9dd2b9(0xc1)]);return{'value':process.env[_0x7acd41.name]??'','source':_0x7acd41[_0x9dd2b9(0x9c)],'warnings':_0x2ea237};}return{'value':await readFile(_0x7acd41[_0x9dd2b9(0xa8)],_0x9dd2b9(0xac)),'source':_0x7acd41[_0x9dd2b9(0x9c)],'warnings':_0x2ea237};}function readStdin(){return new Promise((_0x474a74,_0x1b9737)=>{const _0x490e22=a28_0x2c27;let _0x2e43c7='';process['stdin'][_0x490e22(0xaa)](_0x490e22(0xac)),process[_0x490e22(0xa9)]['on']('data',_0x1dc79a=>{_0x2e43c7+=_0x1dc79a;}),process['stdin']['once'](_0x490e22(0xc6),()=>_0x474a74(_0x2e43c7)),process[_0x490e22(0xa9)][_0x490e22(0xb3)](_0x490e22(0xbe),_0x1b9737);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a29_0x15a9e7=a29_0x4f0b;(function(_0x52c1eb,_0x21ac7e){const _0x47a6f8=a29_0x4f0b,_0x363fc7=_0x52c1eb();while(!![]){try{const _0x344d82=-parseInt(_0x47a6f8(0xe5))/0x1*(-parseInt(_0x47a6f8(0xf3))/0x2)+-parseInt(_0x47a6f8(0xe8))/0x3*(parseInt(_0x47a6f8(0xe1))/0x4)+parseInt(_0x47a6f8(0xdd))/0x5+-parseInt(_0x47a6f8(0xdc))/0x6+-parseInt(_0x47a6f8(0xe7))/0x7*(parseInt(_0x47a6f8(0xde))/0x8)+parseInt(_0x47a6f8(0xf0))/0x9*(-parseInt(_0x47a6f8(0xf4))/0xa)+-parseInt(_0x47a6f8(0xe3))/0xb*(-parseInt(_0x47a6f8(0xf2))/0xc);if(_0x344d82===_0x21ac7e)break;else _0x363fc7['push'](_0x363fc7['shift']());}catch(_0x2444d3){_0x363fc7['push'](_0x363fc7['shift']());}}}(a29_0xe83f,0x729a4));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../../auth/constant.js';function a29_0xe83f(){const _0xb5c174=['25725036tXONSp','900884mwNQMj','7438630tIMLvQ','../../auth/auth-server-ui.js','4478454UmGxpS','3142645XlByeh','1368DVRWiB','auth','write','77296mSffNC','Login\x20via\x20browser','11FxlsJJ','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','1dkZdoe','✓\x20Logged\x20out','24808XEDntG','102zgYczJ','yes','nonInteractive','log','login','!\x20Not\x20logged\x20in','Clear\x20login\x20session','read','9IGedzG','logout'];a29_0xe83f=function(){return _0xb5c174;};return a29_0xe83f();}function a29_0x4f0b(_0x2538f4,_0x4a96e1){_0x2538f4=_0x2538f4-0xdc;const _0xe83fa7=a29_0xe83f();let _0x4f0b85=_0xe83fa7[_0x2538f4];return _0x4f0b85;}export const authDefinitions=[{'service':a29_0x15a9e7(0xdf),'command':a29_0x15a9e7(0xec),'description':a29_0x15a9e7(0xe2),'risk':a29_0x15a9e7(0xef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a29_0x15a9e7(0xe9),'type':'boolean','description':a29_0x15a9e7(0xe4),'default':![]}],async 'execute'(_0x547be8){const _0x44a0d9=a29_0x15a9e7,{runAuthServer:_0x498b4a}=await import(_0x44a0d9(0xf5));return await _0x498b4a({'autoYes':_0x547be8['bool']('yes'),'nonInteractive':_0x547be8[_0x44a0d9(0xea)]}),{'ok':!![]};}},{'service':a29_0x15a9e7(0xdf),'command':a29_0x15a9e7(0xf1),'description':a29_0x15a9e7(0xee),'risk':a29_0x15a9e7(0xe0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x49c597){const _0x55abb1=a29_0x15a9e7;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x55abb1(0xeb)](_0x55abb1(0xe6))):console['log'](_0x55abb1(0xed)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x5308de=a30_0x58c3;(function(_0x5eaa3f,_0x2a6251){const _0x1103eb=a30_0x58c3,_0x3bc0f1=_0x5eaa3f();while(!![]){try{const _0xa937a=parseInt(_0x1103eb(0xfd))/0x1+parseInt(_0x1103eb(0xb0))/0x2*(-parseInt(_0x1103eb(0xbc))/0x3)+parseInt(_0x1103eb(0xdb))/0x4+-parseInt(_0x1103eb(0xc4))/0x5+parseInt(_0x1103eb(0xe2))/0x6*(-parseInt(_0x1103eb(0xcc))/0x7)+parseInt(_0x1103eb(0xbe))/0x8*(-parseInt(_0x1103eb(0xd1))/0x9)+parseInt(_0x1103eb(0xa8))/0xa;if(_0xa937a===_0x2a6251)break;else _0x3bc0f1['push'](_0x3bc0f1['shift']());}catch(_0x170d28){_0x3bc0f1['push'](_0x3bc0f1['shift']());}}}(a30_0xa4ab,0x468ae));function a30_0x58c3(_0x14c888,_0x4aa9cb){_0x14c888=_0x14c888-0xa8;const _0xa4abde=a30_0xa4ab();let _0x58c391=_0xa4abde[_0x14c888];return _0x58c391;}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';import{loadBffProjectConfig}from'../../core/bff/config.js';function a30_0xa4ab(){const _0x52b9d5=['length','\x20api\x20pull`\x20to\x20refresh.','.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22','1969170Qqunqi','\x0a\x20*\x20[平台配置]\x20','functionNode','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','/data/dataset/','map','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','7kxjPPF','apiDir','stderr','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','\x22.\x20','3951FEgphd','join','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)',']\x20(','alias','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','validation','datasetId','trim','Select\x20dataset:','869392jdRwds','find','当前请求参数','scriptsRootDir','nonInteractive','No\x20datasets\x20found\x20for\x20this\x20app.','ENDPOINT','2324406nzogis','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20','source','Select\x20trigger\x20node:','keys','str','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','修改后的响应结果','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','operation-type','Invalid\x20function\x20name\x20\x22','datasetcode','HOOK','/**\x0a\x20*\x20','#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/','.js','Alias\x20\x22','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20','parseInt','appCode','entries','description','/COMMON/','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','Trigger\x20node\x20(HOOK\x20only)','161097vjLPmG','Available\x20aliases:\x20','code','datasetCode','type','Invalid\x20dataset\x20selection.','close','after','\x22\x20not\x20found\x20for\x20dataset\x20','Script\x20description','operationType','No\x20api.ts\x20found.\x20Run\x20`','write','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','Created\x20','utf8','COMMON','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','12399850NrSMXU','Function\x20name\x20(valid\x20JS\x20identifier)','string','bff','Operation\x20type\x20(HOOK\x20only)','stdin','isInteger','/ENDPOINT/','13466cfXPxo','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','HOOK\x20requires\x20alias/operation/node\x20options.','Operation\x20type\x20\x22','\x22,\x20params\x20})\x0a','当前响应结果','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','Dataset\x20not\x20found\x20for\x20code\x20\x22','before','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','UNKNOWN','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20','159MmqIxj','name','3488wyGLWb','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20请求参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','.js\x0a\x20*\x20[触发节点]\x20'];a30_0xa4ab=function(){return _0x52b9d5;};return a30_0xa4ab();}import{fileExists}from'../../core/bff/file-system.js';import{DEFAULT_BFF_SCRIPT_DESCRIPTION,isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getAppBaseUrl}from'../../constant/domain.js';export const bffCreate={'service':a30_0x5308de(0xab),'command':'create','description':'Scaffold\x20a\x20new\x20BFF\x20function\x20from\x20template','risk':'read','flags':[{'name':a30_0x5308de(0x101),'type':a30_0x5308de(0xaa),'required':!![],'enum':[a30_0x5308de(0x10d),'ENDPOINT','HOOK'],'description':'Script\x20type'},{'name':a30_0x5308de(0xbd),'type':a30_0x5308de(0xaa),'required':!![],'description':a30_0x5308de(0xa9)},{'name':a30_0x5308de(0xf9),'type':a30_0x5308de(0xaa),'description':a30_0x5308de(0x106)},{'name':a30_0x5308de(0xd5),'type':a30_0x5308de(0xaa),'description':a30_0x5308de(0xd3)},{'name':a30_0x5308de(0xee),'type':'string','description':a30_0x5308de(0xe8)},{'name':a30_0x5308de(0xec),'type':a30_0x5308de(0xaa),'description':a30_0x5308de(0xac)},{'name':'function-node','type':a30_0x5308de(0xaa),'description':a30_0x5308de(0xfc),'enum':[a30_0x5308de(0xb8),a30_0x5308de(0x104)]}],async 'validate'(_0xd6abab){const _0x2cf079=a30_0x5308de,_0xf075d8=_0xd6abab[_0x2cf079(0xe7)](_0x2cf079(0xbd));if(!isValidBffFunctionName(_0xf075d8))throw CliErrors[_0x2cf079(0xd7)](_0x2cf079(0xed)+_0xf075d8+_0x2cf079(0xcb));},async 'execute'(_0xf7363c){const _0x2f9430=a30_0x5308de,_0x92cff4=loadBffProjectConfig(_0xf7363c[_0x2f9430(0xf7)]),_0x5d0641=_0xf7363c['str'](_0x2f9430(0x101)),_0x3039ea=_0xf7363c[_0x2f9430(0xe7)](_0x2f9430(0xbd)),_0x1b3587=_0xf7363c[_0x2f9430(0xe7)](_0x2f9430(0xf9))||undefined,_0x1d2c9a=_0x5d0641===_0x2f9430(0xef)?await resolveHookOptions(_0x92cff4,_0xf7363c):undefined,_0x12e31d=buildFilePath(_0x92cff4,_0x5d0641,_0x3039ea,_0x1d2c9a);if(await fileExists(_0x12e31d))throw CliErrors['validation']('File\x20already\x20exists:\x20'+_0x12e31d);await mkdir(dirname(_0x12e31d),{'recursive':!![]});const _0x2b1aa0=generateTemplate(_0x5d0641,_0x3039ea,_0xf7363c[_0x2f9430(0xf7)],_0x1b3587,_0x1d2c9a);await writeFile(_0x12e31d,_0x2b1aa0,_0x2f9430(0x10c));const _0x275b6e={'type':_0x5d0641,'name':_0x3039ea,'path':_0x12e31d};if(_0x1b3587)_0x275b6e[_0x2f9430(0xf9)]=_0x1b3587;if(_0x1d2c9a){if(_0x1d2c9a['alias'])_0x275b6e['alias']=_0x1d2c9a['alias'];_0x275b6e[_0x2f9430(0x100)]=_0x1d2c9a[_0x2f9430(0x100)],_0x275b6e[_0x2f9430(0x107)]=_0x1d2c9a['operationType'],_0x275b6e[_0x2f9430(0xc6)]=_0x1d2c9a[_0x2f9430(0xc6)];}return{'ok':!![],'data':_0x275b6e,'message':_0x2f9430(0x10b)+_0x5d0641+'\x20function:\x20'+_0x3039ea};}};async function resolveHookOptions(_0x2da768,_0x6fb653){const _0x52c5de=a30_0x5308de,_0x643331=loadAliasMap(_0x6fb653[_0x52c5de(0xcd)],undefined,resolveApiFilePath(_0x6fb653[_0x52c5de(0xcd)],_0x6fb653[_0x52c5de(0xf7)])),_0x4d6479=_0x643331['length']>0x0;let _0x585b38,_0x297f12,_0x49c109;const _0x13cb46=_0x6fb653[_0x52c5de(0xe7)](_0x52c5de(0xd5)),_0x1acc3c=_0x6fb653[_0x52c5de(0xe7)](_0x52c5de(0xee));if(_0x13cb46){const _0x10c5b9=resolveAlias(_0x6fb653[_0x52c5de(0xcd)],_0x13cb46,undefined,resolveApiFilePath(_0x6fb653['apiDir'],_0x6fb653[_0x52c5de(0xf7)]));if(!_0x10c5b9){const _0x23100e=_0x4d6479?_0x52c5de(0xfe)+_0x643331[_0x52c5de(0xca)](_0x19767e=>_0x19767e[_0x52c5de(0xd5)])[_0x52c5de(0xd2)](',\x20'):_0x52c5de(0x108)+CLI_BIN_NAME+_0x52c5de(0xc8);throw CliErrors['validation'](_0x52c5de(0xf4)+_0x13cb46+'\x22\x20not\x20found.\x20'+_0x23100e);}_0x585b38=_0x13cb46,_0x297f12=_0x10c5b9;}else{if(_0x1acc3c){_0x297f12=_0x1acc3c;const _0x5c150e=_0x643331[_0x52c5de(0xdc)](_0x40310d=>_0x40310d[_0x52c5de(0x100)]===_0x1acc3c);_0x585b38=_0x5c150e?.['alias'];}else{if(_0x6fb653[_0x52c5de(0xdf)])throw CliErrors[_0x52c5de(0xd7)](_0x52c5de(0xe9));else{if(_0x4d6479){const _0x5c6df1=_0x643331[_0x52c5de(0xca)](_0x392b23=>_0x392b23['alias']+'\x20('+_0x392b23['tableName']+')'),_0x5178d5=await promptSelect(_0x52c5de(0xda),_0x5c6df1),_0x2684be=_0x643331[_0x5178d5];if(!_0x2684be)throw CliErrors['validation'](_0x52c5de(0x102));_0x585b38=_0x2684be[_0x52c5de(0xd5)],_0x297f12=_0x2684be[_0x52c5de(0x100)];}else{const _0x48f0a2=await listDatasets(_0x6fb653[_0x52c5de(0xf7)]);if(_0x48f0a2[_0x52c5de(0xc1)]===0x0)throw CliErrors['validation'](_0x52c5de(0xe0));const _0x4c9e1d=_0x48f0a2[_0x52c5de(0xca)](_0x27b0e1=>_0x27b0e1[_0x52c5de(0xbd)]+'\x20['+(_0x27b0e1[_0x52c5de(0xe4)]??_0x52c5de(0xba))+_0x52c5de(0xd4)+_0x27b0e1[_0x52c5de(0xff)]+')'),_0x491c57=await promptSelect(_0x52c5de(0xda),_0x4c9e1d),_0x14563e=_0x48f0a2[_0x491c57];if(!_0x14563e)throw CliErrors[_0x52c5de(0xd7)](_0x52c5de(0x102));_0x297f12=_0x14563e[_0x52c5de(0xff)],_0x585b38=undefined;}}}}const _0x5cf3ec=await listDatasets(_0x6fb653[_0x52c5de(0xf7)]),_0x21ce78=_0x5cf3ec['find'](_0x9a1907=>_0x9a1907[_0x52c5de(0xff)]===_0x297f12);if(!_0x21ce78)throw CliErrors[_0x52c5de(0xd7)](_0x52c5de(0xb7)+_0x297f12+_0x52c5de(0xd0)+(_0x585b38?_0x52c5de(0xcf)+CLI_BIN_NAME+_0x52c5de(0xc2):''));_0x49c109=_0x21ce78['id'];const _0x53d687=_0x585b38??_0x297f12,_0xfb0bb7=await listBffDatasetOperations(_0x6fb653[_0x52c5de(0xf7)],_0x49c109),_0x1c9224=_0xfb0bb7?Object[_0x52c5de(0xe6)](_0xfb0bb7):[];if(_0x1c9224[_0x52c5de(0xc1)]===0x0)throw CliErrors['validation']('No\x20operation\x20types\x20found\x20for\x20dataset\x20'+_0x53d687+'.');let _0x5da2be;const _0x36168e=_0x6fb653['str'](_0x52c5de(0xec));if(_0x36168e){if(!_0x1c9224['includes'](_0x36168e))throw CliErrors[_0x52c5de(0xd7)](_0x52c5de(0xb3)+_0x36168e+_0x52c5de(0x105)+_0x53d687+'.\x20'+('Available:\x20'+_0x1c9224['join'](',\x20')));_0x5da2be=_0x36168e;}else{if(_0x6fb653[_0x52c5de(0xdf)])throw CliErrors['validation'](_0x52c5de(0xfb));const _0x52351e=await promptSelect('Select\x20operation\x20type:',_0x1c9224);_0x5da2be=_0x1c9224[_0x52351e]??_0x1c9224[0x0];}let _0x329764=normalizeHookFunctionNode(_0x6fb653[_0x52c5de(0xe7)]('function-node'));if(!_0x329764){if(_0x6fb653[_0x52c5de(0xe7)]('function-node'))throw CliErrors[_0x52c5de(0xd7)]('--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.');if(_0x6fb653[_0x52c5de(0xdf)])throw CliErrors[_0x52c5de(0xd7)](_0x52c5de(0xb9));const _0x176812=await promptSelect(_0x52c5de(0xe5),['before',_0x52c5de(0x104)]);_0x329764=[_0x52c5de(0xb8),'after'][_0x176812]??_0x52c5de(0xb8);}return{'alias':_0x585b38,'datasetCode':_0x297f12,'datasetId':_0x49c109,'operationType':_0x5da2be,'functionNode':_0x329764};}async function promptSelect(_0x3e66da,_0x45c1eb){const _0x22cdc4=a30_0x5308de;if(_0x45c1eb['length']===0x1)return 0x0;for(const [_0x3d4799,_0x38cb26]of _0x45c1eb[_0x22cdc4(0xf8)]()){process[_0x22cdc4(0xce)][_0x22cdc4(0x109)]('\x20\x20'+(_0x3d4799+0x1)+'.\x20'+_0x38cb26+'\x0a');}const _0x4f1bc7=createInterface({'input':process[_0x22cdc4(0xad)],'output':process[_0x22cdc4(0xce)]});while(!![]){const _0x370fc8=await new Promise(_0x2bfaac=>{_0x4f1bc7['question'](_0x3e66da+'\x20',_0x2bfaac);}),_0x152a01=Number[_0x22cdc4(0xf6)](_0x370fc8['trim'](),0xa);if(Number[_0x22cdc4(0xae)](_0x152a01)&&_0x152a01>=0x1&&_0x152a01<=_0x45c1eb[_0x22cdc4(0xc1)])return _0x4f1bc7[_0x22cdc4(0x103)](),_0x152a01-0x1;process[_0x22cdc4(0xce)][_0x22cdc4(0x109)]('\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20'+_0x45c1eb[_0x22cdc4(0xc1)]+'.\x0a');}}function buildFilePath(_0x21e9f4,_0x584f4d,_0x421ade,_0x4e0105){const _0x1d15cf=a30_0x5308de;if(_0x584f4d===_0x1d15cf(0xef)){if(!_0x4e0105)throw CliErrors[_0x1d15cf(0xd7)](_0x1d15cf(0xb2));const _0x36d9b0=_0x4e0105['alias']??_0x4e0105[_0x1d15cf(0x100)];return join(_0x21e9f4[_0x1d15cf(0xde)],_0x1d15cf(0xef),_0x36d9b0,_0x4e0105['operationType'],_0x4e0105['functionNode'],_0x421ade+_0x1d15cf(0xf3));}return join(_0x21e9f4[_0x1d15cf(0xde)],_0x584f4d,_0x421ade+'.js');}export function generateTemplate(_0x3b6c73,_0x155276,_0x147189,_0x3e6bf2,_0x2f00fa){const _0x576642=a30_0x5308de,_0x391dad=_0x3e6bf2?.[_0x576642(0xd9)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x410588=getAppBaseUrl(_0x147189),_0x5b7849='\x20*\x20[依赖数据集]\x20无(如有依赖,填写数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20类型与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)';if(_0x3b6c73==='COMMON')return'/**\x0a\x20*\x20'+_0x391dad+_0x576642(0x10e)+_0x155276+_0x576642(0xc5)+_0x410588+_0x576642(0xb6)+_0x147189+_0x576642(0xfa)+_0x155276+_0x576642(0xc3)+_0x155276+_0x576642(0xb4)+_0x5b7849+_0x576642(0xbf)+_0x155276+_0x576642(0xd6);if(_0x3b6c73===_0x576642(0xe1))return'/**\x0a\x20*\x20'+_0x391dad+_0x576642(0xe3)+_0x155276+_0x576642(0xf2)+_0x147189+'/'+_0x155276+_0x576642(0xc5)+_0x410588+_0x576642(0xb6)+_0x147189+_0x576642(0xaf)+_0x155276+'.js\x0a'+_0x5b7849+'\x0a\x20*\x20[参数字段]\x20按实际请求体为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20HTTP\x20请求体参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充业务返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x155276+_0x576642(0xd6);if(!_0x2f00fa)throw CliErrors['validation'](_0x576642(0x10a));const _0x5cf7d3=_0x2f00fa['alias']??_0x2f00fa['datasetCode'],_0x2143a7=_0x2f00fa[_0x576642(0xc6)]===_0x576642(0xb8)?_0x576642(0xdd):_0x576642(0xb5),_0x59b1fe=_0x2f00fa[_0x576642(0xc6)]===_0x576642(0xb8)?'修改后的请求参数':_0x576642(0xea);return _0x576642(0xf0)+_0x391dad+_0x576642(0xbb)+_0x155276+_0x576642(0xc7)+_0x147189+'/'+_0x2f00fa['datasetCode']+'/'+_0x2f00fa[_0x576642(0x107)]+_0x576642(0xc5)+_0x410588+_0x576642(0xc9)+_0x2f00fa[_0x576642(0xd8)]+_0x576642(0xf1)+_0x147189+'/HOOK/'+_0x5cf7d3+'/'+_0x2f00fa['operationType']+'/'+_0x2f00fa[_0x576642(0xc6)]+'/'+_0x155276+_0x576642(0xc0)+_0x2f00fa[_0x576642(0xc6)]+'\x0a'+_0x5b7849+_0x576642(0xeb)+_0x2143a7+_0x576642(0xf5)+_0x59b1fe+_0x576642(0xb1)+_0x155276+_0x576642(0xd6);}
|
|
1
|
+
const a30_0xbfa9ce=a30_0x41d6;(function(_0x52f96c,_0x1edd1e){const _0x321073=a30_0x41d6,_0x2d349b=_0x52f96c();while(!![]){try{const _0x2679c2=parseInt(_0x321073(0x211))/0x1+parseInt(_0x321073(0x1f9))/0x2*(parseInt(_0x321073(0x233))/0x3)+parseInt(_0x321073(0x1e7))/0x4*(-parseInt(_0x321073(0x22a))/0x5)+parseInt(_0x321073(0x23b))/0x6*(-parseInt(_0x321073(0x1fa))/0x7)+parseInt(_0x321073(0x1de))/0x8*(parseInt(_0x321073(0x20e))/0x9)+parseInt(_0x321073(0x1fd))/0xa+parseInt(_0x321073(0x203))/0xb*(parseInt(_0x321073(0x21b))/0xc);if(_0x2679c2===_0x1edd1e)break;else _0x2d349b['push'](_0x2d349b['shift']());}catch(_0x19fee3){_0x2d349b['push'](_0x2d349b['shift']());}}}(a30_0x245b,0x764bb));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';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists}from'../../core/bff/file-system.js';function a30_0x41d6(_0x27b8b2,_0x4aabca){_0x27b8b2=_0x27b8b2-0x1d8;const _0x245b76=a30_0x245b();let _0x41d60d=_0x245b76[_0x27b8b2];return _0x41d60d;}import{DEFAULT_BFF_SCRIPT_DESCRIPTION,isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a30_0x245b(){const _0x25577f=['--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','question','HOOK\x20requires\x20alias/operation/node\x20options.','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','map','Trigger\x20node\x20(HOOK\x20only)','496XLglUc','Operation\x20type\x20(HOOK\x20only)','validation','functionNode','alias','stderr','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20请求参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','join','utf8','18708xSZcZT','trim','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','write','\x22\x20not\x20found.\x20','stdin','Select\x20dataset:','datasetCode','\x20function:\x20','keys','当前响应结果','string','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','修改后的响应结果','.js\x0a\x20*\x20[触发节点]\x20','HOOK','/**\x0a\x20*\x20','122XvZpxY','10115SVGzpw','datasetcode','/ENDPOINT/','7171160sBSMrB','read','function-node','\x22.\x20','Invalid\x20function\x20name\x20\x22','修改后的请求参数','2893OAKWgV','type','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','\x0a\x20*\x20[平台配置]\x20','length','/COMMON/','UNKNOWN','Operation\x20type\x20\x22','str','tableName','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','3528olzQtD','Dataset\x20not\x20found\x20for\x20code\x20\x22','Select\x20operation\x20type:','631267ZThpFs','\x20*\x20[依赖数据集]\x20无(如有依赖,填写数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20类型与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','/HOOK/','Invalid\x20dataset\x20selection.','No\x20datasets\x20found\x20for\x20this\x20app.','close','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','operation-type','File\x20already\x20exists:\x20','8724sAWdfx','name','scriptsRootDir','before','appCode','Available\x20aliases:\x20','isInteger','.js\x0a','Script\x20description','operationType','description','datasetId','Select\x20trigger\x20node:','.js','ENDPOINT','370xAoNra','\x22\x20not\x20found\x20for\x20dataset\x20','#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','includes','COMMON','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20','nonInteractive','当前请求参数','3522CGarnw','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20','after','code','Function\x20name\x20(valid\x20JS\x20identifier)','apiDir','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','find','3342uLSJAn','create','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.',']\x20(','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/'];a30_0x245b=function(){return _0x25577f;};return a30_0x245b();}import{getAppBaseUrl}from'../../constant/domain.js';export const bffCreate={'service':'bff','command':a30_0xbfa9ce(0x23c),'description':'Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','risk':a30_0xbfa9ce(0x1fe),'flags':[{'name':a30_0xbfa9ce(0x204),'type':a30_0xbfa9ce(0x1f3),'required':!![],'enum':[a30_0xbfa9ce(0x22e),a30_0xbfa9ce(0x229),a30_0xbfa9ce(0x1f7)],'description':'Script\x20type'},{'name':'name','type':a30_0xbfa9ce(0x1f3),'required':!![],'description':a30_0xbfa9ce(0x237)},{'name':a30_0xbfa9ce(0x225),'type':'string','description':a30_0xbfa9ce(0x223)},{'name':a30_0xbfa9ce(0x1e2),'type':a30_0xbfa9ce(0x1f3),'description':'Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)'},{'name':a30_0xbfa9ce(0x1fb),'type':a30_0xbfa9ce(0x1f3),'description':a30_0xbfa9ce(0x1db)},{'name':a30_0xbfa9ce(0x219),'type':a30_0xbfa9ce(0x1f3),'description':a30_0xbfa9ce(0x1df)},{'name':'function-node','type':a30_0xbfa9ce(0x1f3),'description':a30_0xbfa9ce(0x1dd),'enum':[a30_0xbfa9ce(0x21e),a30_0xbfa9ce(0x235)]}],async 'validate'(_0x10590d){const _0x417636=a30_0xbfa9ce,_0x123768=_0x10590d[_0x417636(0x20b)](_0x417636(0x21c));if(!isValidBffFunctionName(_0x123768))throw CliErrors[_0x417636(0x1e0)](_0x417636(0x201)+_0x123768+'\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).');},async 'execute'(_0x2fc2ef){const _0x3b3f34=a30_0xbfa9ce,_0x2ab690=loadBffProjectConfig(_0x2fc2ef['appCode']),_0x3b5d8c=_0x2fc2ef[_0x3b3f34(0x20b)](_0x3b3f34(0x204)),_0x217068=_0x2fc2ef[_0x3b3f34(0x20b)](_0x3b3f34(0x21c)),_0x32629f=_0x2fc2ef[_0x3b3f34(0x20b)]('description')||undefined,_0x4ec753=_0x3b5d8c===_0x3b3f34(0x1f7)?await resolveHookOptions(_0x2ab690,_0x2fc2ef):undefined,_0x2774d6=buildFilePath(_0x2ab690,_0x3b5d8c,_0x217068,_0x4ec753);if(await fileExists(_0x2774d6))throw CliErrors[_0x3b3f34(0x1e0)](_0x3b3f34(0x21a)+_0x2774d6);await mkdir(dirname(_0x2774d6),{'recursive':!![]});const _0x1c9a04=generateTemplate(_0x3b5d8c,_0x217068,_0x2fc2ef[_0x3b3f34(0x21f)],_0x32629f,_0x4ec753);await writeFile(_0x2774d6,_0x1c9a04,_0x3b3f34(0x1e6));const _0x541c60={'type':_0x3b5d8c,'name':_0x217068,'path':_0x2774d6};if(_0x32629f)_0x541c60[_0x3b3f34(0x225)]=_0x32629f;if(_0x4ec753){if(_0x4ec753[_0x3b3f34(0x1e2)])_0x541c60[_0x3b3f34(0x1e2)]=_0x4ec753['alias'];_0x541c60['datasetCode']=_0x4ec753[_0x3b3f34(0x1ef)],_0x541c60[_0x3b3f34(0x224)]=_0x4ec753[_0x3b3f34(0x224)],_0x541c60[_0x3b3f34(0x1e1)]=_0x4ec753[_0x3b3f34(0x1e1)];}return{'ok':!![],'data':_0x541c60,'message':'Created\x20'+_0x3b5d8c+_0x3b3f34(0x1f0)+_0x217068};}};async function resolveHookOptions(_0x793776,_0x1b382b){const _0x1eaf3b=a30_0xbfa9ce,_0x8e9592=loadAliasMap(_0x1b382b[_0x1eaf3b(0x238)],undefined,resolveApiFilePath(_0x1b382b[_0x1eaf3b(0x238)],_0x1b382b[_0x1eaf3b(0x21f)])),_0x1819b0=_0x8e9592['length']>0x0;let _0x8b24e6,_0x2cd925,_0x2a69df;const _0x5a4b58=_0x1b382b[_0x1eaf3b(0x20b)](_0x1eaf3b(0x1e2)),_0x1825fd=_0x1b382b[_0x1eaf3b(0x20b)]('datasetcode');if(_0x5a4b58){const _0x70cdea=resolveAlias(_0x1b382b['apiDir'],_0x5a4b58,undefined,resolveApiFilePath(_0x1b382b[_0x1eaf3b(0x238)],_0x1b382b[_0x1eaf3b(0x21f)]));if(!_0x70cdea){const _0x30473f=_0x1819b0?_0x1eaf3b(0x220)+_0x8e9592[_0x1eaf3b(0x1dc)](_0x2ee120=>_0x2ee120[_0x1eaf3b(0x1e2)])[_0x1eaf3b(0x1e5)](',\x20'):'No\x20api.ts\x20found.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.';throw CliErrors[_0x1eaf3b(0x1e0)]('Alias\x20\x22'+_0x5a4b58+_0x1eaf3b(0x1ec)+_0x30473f);}_0x8b24e6=_0x5a4b58,_0x2cd925=_0x70cdea;}else{if(_0x1825fd){_0x2cd925=_0x1825fd;const _0x1c0a3c=_0x8e9592[_0x1eaf3b(0x23a)](_0x43a8d4=>_0x43a8d4[_0x1eaf3b(0x1ef)]===_0x1825fd);_0x8b24e6=_0x1c0a3c?.[_0x1eaf3b(0x1e2)];}else{if(_0x1b382b[_0x1eaf3b(0x231)])throw CliErrors[_0x1eaf3b(0x1e0)](_0x1eaf3b(0x239));else{if(_0x1819b0){const _0x2c5b5f=_0x8e9592[_0x1eaf3b(0x1dc)](_0x372e8c=>_0x372e8c[_0x1eaf3b(0x1e2)]+'\x20('+_0x372e8c[_0x1eaf3b(0x20c)]+')'),_0x2c7b95=await promptSelect(_0x1eaf3b(0x1ee),_0x2c5b5f),_0x11d720=_0x8e9592[_0x2c7b95];if(!_0x11d720)throw CliErrors[_0x1eaf3b(0x1e0)](_0x1eaf3b(0x214));_0x8b24e6=_0x11d720[_0x1eaf3b(0x1e2)],_0x2cd925=_0x11d720[_0x1eaf3b(0x1ef)];}else{const _0x54f92a=await listDatasets(_0x1b382b[_0x1eaf3b(0x21f)]);if(_0x54f92a[_0x1eaf3b(0x207)]===0x0)throw CliErrors[_0x1eaf3b(0x1e0)](_0x1eaf3b(0x215));const _0x18e910=_0x54f92a[_0x1eaf3b(0x1dc)](_0x5a6d6c=>_0x5a6d6c[_0x1eaf3b(0x21c)]+'\x20['+(_0x5a6d6c['source']??_0x1eaf3b(0x209))+_0x1eaf3b(0x23e)+_0x5a6d6c[_0x1eaf3b(0x236)]+')'),_0x1ac8d2=await promptSelect(_0x1eaf3b(0x1ee),_0x18e910),_0x2bfe0f=_0x54f92a[_0x1ac8d2];if(!_0x2bfe0f)throw CliErrors[_0x1eaf3b(0x1e0)]('Invalid\x20dataset\x20selection.');_0x2cd925=_0x2bfe0f[_0x1eaf3b(0x236)],_0x8b24e6=undefined;}}}}const _0x4ce75b=await listDatasets(_0x1b382b[_0x1eaf3b(0x21f)]),_0x44dd41=_0x4ce75b[_0x1eaf3b(0x23a)](_0x2d8486=>_0x2d8486['code']===_0x2cd925);if(!_0x44dd41)throw CliErrors['validation'](_0x1eaf3b(0x20f)+_0x2cd925+_0x1eaf3b(0x200)+(_0x8b24e6?_0x1eaf3b(0x1ea)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh.':''));_0x2a69df=_0x44dd41['id'];const _0x5e7ef1=_0x8b24e6??_0x2cd925,_0x348958=await listBffDatasetOperations(_0x1b382b[_0x1eaf3b(0x21f)],_0x2a69df),_0x819004=_0x348958?Object[_0x1eaf3b(0x1f1)](_0x348958):[];if(_0x819004['length']===0x0)throw CliErrors[_0x1eaf3b(0x1e0)]('No\x20operation\x20types\x20found\x20for\x20dataset\x20'+_0x5e7ef1+'.');let _0x209fac;const _0x51f55d=_0x1b382b[_0x1eaf3b(0x20b)]('operation-type');if(_0x51f55d){if(!_0x819004[_0x1eaf3b(0x22d)](_0x51f55d))throw CliErrors[_0x1eaf3b(0x1e0)](_0x1eaf3b(0x20a)+_0x51f55d+_0x1eaf3b(0x22b)+_0x5e7ef1+'.\x20'+('Available:\x20'+_0x819004[_0x1eaf3b(0x1e5)](',\x20')));_0x209fac=_0x51f55d;}else{if(_0x1b382b[_0x1eaf3b(0x231)])throw CliErrors[_0x1eaf3b(0x1e0)](_0x1eaf3b(0x1d8));const _0x5cec95=await promptSelect(_0x1eaf3b(0x210),_0x819004);_0x209fac=_0x819004[_0x5cec95]??_0x819004[0x0];}let _0x5e698a=normalizeHookFunctionNode(_0x1b382b['str'](_0x1eaf3b(0x1ff)));if(!_0x5e698a){if(_0x1b382b[_0x1eaf3b(0x20b)](_0x1eaf3b(0x1ff)))throw CliErrors[_0x1eaf3b(0x1e0)]('--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.');if(_0x1b382b[_0x1eaf3b(0x231)])throw CliErrors['validation'](_0x1eaf3b(0x23d));const _0x518b08=await promptSelect(_0x1eaf3b(0x227),[_0x1eaf3b(0x21e),_0x1eaf3b(0x235)]);_0x5e698a=[_0x1eaf3b(0x21e),_0x1eaf3b(0x235)][_0x518b08]??_0x1eaf3b(0x21e);}return{'alias':_0x8b24e6,'datasetCode':_0x2cd925,'datasetId':_0x2a69df,'operationType':_0x209fac,'functionNode':_0x5e698a};}async function promptSelect(_0x516d4e,_0x28b0d8){const _0x4443b6=a30_0xbfa9ce;if(_0x28b0d8[_0x4443b6(0x207)]===0x1)return 0x0;for(const [_0x1094ce,_0x30c696]of _0x28b0d8['entries']()){process[_0x4443b6(0x1e3)][_0x4443b6(0x1eb)]('\x20\x20'+(_0x1094ce+0x1)+'.\x20'+_0x30c696+'\x0a');}const _0x267024=createInterface({'input':process[_0x4443b6(0x1ed)],'output':process['stderr']});while(!![]){const _0x1bac68=await new Promise(_0x582e9f=>{const _0x2f2c0e=_0x4443b6;_0x267024[_0x2f2c0e(0x1d9)](_0x516d4e+'\x20',_0x582e9f);}),_0x3d8fd5=Number['parseInt'](_0x1bac68[_0x4443b6(0x1e8)](),0xa);if(Number[_0x4443b6(0x221)](_0x3d8fd5)&&_0x3d8fd5>=0x1&&_0x3d8fd5<=_0x28b0d8['length'])return _0x267024[_0x4443b6(0x216)](),_0x3d8fd5-0x1;process[_0x4443b6(0x1e3)]['write'](_0x4443b6(0x1e9)+_0x28b0d8[_0x4443b6(0x207)]+'.\x0a');}}function buildFilePath(_0x4d5017,_0x1cf5fd,_0x337970,_0x2edea1){const _0x2823de=a30_0xbfa9ce;if(_0x1cf5fd==='HOOK'){if(!_0x2edea1)throw CliErrors[_0x2823de(0x1e0)](_0x2823de(0x1da));const _0x1e516d=_0x2edea1[_0x2823de(0x1e2)]??_0x2edea1[_0x2823de(0x1ef)];return join(_0x4d5017[_0x2823de(0x21d)],_0x2823de(0x1f7),_0x1e516d,_0x2edea1[_0x2823de(0x224)],_0x2edea1['functionNode'],_0x337970+_0x2823de(0x228));}return join(_0x4d5017[_0x2823de(0x21d)],_0x1cf5fd,_0x337970+_0x2823de(0x228));}export function generateTemplate(_0x260b7c,_0x4b998e,_0x48aa82,_0x5e7163,_0x5315e0){const _0xe498c9=a30_0xbfa9ce,_0x40d236=_0x5e7163?.[_0xe498c9(0x1e8)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x52594d=getAppBaseUrl(_0x48aa82),_0x571855=_0xe498c9(0x212);if(_0x260b7c===_0xe498c9(0x22e))return _0xe498c9(0x1f8)+_0x40d236+_0xe498c9(0x217)+_0x4b998e+'\x0a\x20*\x20[平台配置]\x20'+_0x52594d+_0xe498c9(0x20d)+_0x48aa82+_0xe498c9(0x208)+_0x4b998e+'.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22'+_0x4b998e+'\x22,\x20params\x20})\x0a'+_0x571855+_0xe498c9(0x1e4)+_0x4b998e+_0xe498c9(0x22f);if(_0x260b7c===_0xe498c9(0x229))return _0xe498c9(0x1f8)+_0x40d236+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20'+_0x4b998e+_0xe498c9(0x23f)+_0x48aa82+'/'+_0x4b998e+_0xe498c9(0x206)+_0x52594d+_0xe498c9(0x20d)+_0x48aa82+_0xe498c9(0x1fc)+_0x4b998e+_0xe498c9(0x222)+_0x571855+'\x0a\x20*\x20[参数字段]\x20按实际请求体为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20HTTP\x20请求体参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充业务返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x4b998e+'(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a';if(!_0x5315e0)throw CliErrors[_0xe498c9(0x1e0)](_0xe498c9(0x218));const _0x55af06=_0x5315e0[_0xe498c9(0x1e2)]??_0x5315e0[_0xe498c9(0x1ef)],_0x25e28c=_0x5315e0[_0xe498c9(0x1e1)]===_0xe498c9(0x21e)?_0xe498c9(0x232):_0xe498c9(0x1f2),_0x3914f5=_0x5315e0['functionNode']===_0xe498c9(0x21e)?_0xe498c9(0x202):_0xe498c9(0x1f5);return _0xe498c9(0x1f8)+_0x40d236+_0xe498c9(0x234)+_0x4b998e+'\x0a\x20*\x20[接口路径]\x20POST\x20/api/'+_0x48aa82+'/'+_0x5315e0['datasetCode']+'/'+_0x5315e0[_0xe498c9(0x224)]+_0xe498c9(0x206)+_0x52594d+'/data/dataset/'+_0x5315e0[_0xe498c9(0x226)]+_0xe498c9(0x22c)+_0x48aa82+_0xe498c9(0x213)+_0x55af06+'/'+_0x5315e0[_0xe498c9(0x224)]+'/'+_0x5315e0[_0xe498c9(0x1e1)]+'/'+_0x4b998e+_0xe498c9(0x1f6)+_0x5315e0['functionNode']+'\x0a'+_0x571855+_0xe498c9(0x1f4)+_0x25e28c+_0xe498c9(0x230)+_0x3914f5+_0xe498c9(0x205)+_0x4b998e+_0xe498c9(0x22f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a31_0x13bd35=a31_0x4930;(function(_0x19ecd4,_0x7f77fc){const _0x483a48=a31_0x4930,_0x492380=_0x19ecd4();while(!![]){try{const _0xa952b5=parseInt(_0x483a48(0x18f))/0x1+parseInt(_0x483a48(0x1b7))/0x2+parseInt(_0x483a48(0x19f))/0x3*(parseInt(_0x483a48(0x1b1))/0x4)+-parseInt(_0x483a48(0x1a9))/0x5+-parseInt(_0x483a48(0x1b8))/0x6+parseInt(_0x483a48(0x1b4))/0x7+-parseInt(_0x483a48(0x19c))/0x8*(parseInt(_0x483a48(0x18c))/0x9);if(_0xa952b5===_0x7f77fc)break;else _0x492380['push'](_0x492380['shift']());}catch(_0x113964){_0x492380['push'](_0x492380['shift']());}}}(a31_0x9982,0x26da3));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';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';function a31_0x9982(){const _0x5be08c=['Lock\x20scope\x20for\x20app\x20\x22','Backend\x20Function\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','map','522200nafJqO','Function\x20not\x20found:\x20','apps','scriptsRoot','Would\x20delete\x20','keys','Backend\x20Function\x20lock\x20file\x20not\x20found.','target','8BVNibK','delete','\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a','1313515StkmmB','Delete\x20a\x20Backend\x20Function\x20script\x20from\x20remote\x20and\x20local','startsWith','314942GWZoBm','305238KPTyGo','3870kFtQTI','lockFilePath','remoteId','228298EXqZJB','appCode','<timestamp>','parse','includes','filter','stringify','projectRoot','trashDir','length','high-risk-write','POST','\x20\x20-\x20','4928GqFvyp','functions','validation','8877FtirQp','\x22\x20not\x20found\x20after\x20ensureLockScope.','trashedTo','Multiple\x20functions\x20match\x20\x22','str','\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash','No\x20lock\x20entry\x20found\x20for\x20\x22'];a31_0x9982=function(){return _0x5be08c;};return a31_0x9982();}import{CliErrors}from'../../errors.js';import{sleep}from'../../utils/sleep.js';export const bffDelete={'service':'bff','command':a31_0x13bd35(0x1b2),'description':a31_0x13bd35(0x1b5),'risk':a31_0x13bd35(0x199),'flags':[{'name':a31_0x13bd35(0x1b0),'type':'string','required':!![],'description':'Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name'}],async 'validate'(_0xedadec){const _0x4e953b=a31_0x13bd35,_0x220cdf=loadBffProjectConfig(_0xedadec[_0x4e953b(0x190)]),_0x4d5a41=await readBffLockFile(_0x220cdf[_0x4e953b(0x18d)]);if(!_0x4d5a41)throw CliErrors[_0x4e953b(0x19e)](_0x4e953b(0x1a7));},async 'dryRun'(_0x4bdc7c){const _0x128bf6=a31_0x13bd35,_0x14bb37=loadBffProjectConfig(_0x4bdc7c[_0x128bf6(0x190)]),_0x25d6a2=await readBffLockFile(_0x14bb37[_0x128bf6(0x18d)]);if(!_0x25d6a2)throw CliErrors[_0x128bf6(0x19e)](_0x128bf6(0x1af));const {appLock:_0x385223}=ensureLockScope(_0x25d6a2,_0x4bdc7c[_0x128bf6(0x190)],_0x14bb37['scriptsRoot'],_0x128bf6(0x1b2)),_0x38bfc7=_0x4bdc7c[_0x128bf6(0x1a3)]('target'),_0x274093=Object[_0x128bf6(0x1ae)](_0x385223['functions']),_0x10839d=resolveDeleteTarget(_0x38bfc7,_0x274093),_0x371623=_0x385223[_0x128bf6(0x19d)][_0x10839d];if(!_0x371623)throw CliErrors[_0x128bf6(0x19e)](_0x128bf6(0x1a5)+_0x10839d+'\x22.');const _0x1e21b9=resolveLocalFilePathFromLockKey(_0x14bb37,_0x10839d),_0x2ed5e5=relative(_0x14bb37[_0x128bf6(0x196)],_0x1e21b9),_0x568534=join(_0x14bb37[_0x128bf6(0x197)],_0x128bf6(0x191),_0x2ed5e5);return{'method':_0x128bf6(0x19a),'url':'/api/management/library/scripts/delete','body':{'appCode':_0x4bdc7c[_0x128bf6(0x190)],'target':_0x10839d,'remoteId':_0x371623[_0x128bf6(0x18e)],'localFilePath':_0x1e21b9,'trashedPath':_0x568534},'description':_0x128bf6(0x1ad)+_0x10839d+_0x128bf6(0x1a4)};},async 'execute'(_0x4e60f1){const _0x4d7b43=a31_0x13bd35,_0x450119=loadBffProjectConfig(_0x4e60f1[_0x4d7b43(0x190)]),_0x2d0b1f=await readBffLockFile(_0x450119[_0x4d7b43(0x18d)]);if(!_0x2d0b1f)throw CliErrors[_0x4d7b43(0x19e)](_0x4d7b43(0x1af));const {lockData:_0x26ffc1,appLock:_0x4b552d}=ensureLockScope(_0x2d0b1f,_0x4e60f1['appCode'],_0x450119[_0x4d7b43(0x1ac)],_0x4d7b43(0x1b2)),_0x2ef690=JSON[_0x4d7b43(0x192)](JSON[_0x4d7b43(0x195)](_0x26ffc1)),_0xa00329=_0x2ef690['apps'][_0x4e60f1[_0x4d7b43(0x190)]];if(!_0xa00329)throw new Error(_0x4d7b43(0x1a6)+_0x4e60f1[_0x4d7b43(0x190)]+_0x4d7b43(0x1a0));const _0x56f168=_0x4e60f1['str'](_0x4d7b43(0x1b0)),_0x243766=Object[_0x4d7b43(0x1ae)](_0xa00329[_0x4d7b43(0x19d)]),_0xb48a56=resolveDeleteTarget(_0x56f168,_0x243766),_0x526912=_0xa00329['functions'][_0xb48a56];if(!_0x526912)throw CliErrors['validation'](_0x4d7b43(0x1a5)+_0xb48a56+'\x22.');await deleteBffScript(_0x526912[_0x4d7b43(0x18e)]),delete _0xa00329[_0x4d7b43(0x19d)][_0xb48a56],_0xa00329['lastSync']=new Date()['toISOString'](),await writeBffLockFile(_0x450119['lockFilePath'],_0x2ef690);const _0x4f3002=resolveLocalFilePathFromLockKey(_0x450119,_0xb48a56);let _0x577443;await fileExists(_0x4f3002)&&(_0x577443=await moveToTrash(_0x450119[_0x4d7b43(0x196)],_0x450119[_0x4d7b43(0x197)],_0x4f3002),await cleanupEmptyDirectories(dirname(_0x4f3002),_0x450119['scriptsRootDir']));await waitForDeleteSettlement(_0x450119[_0x4d7b43(0x18d)],_0x4e60f1[_0x4d7b43(0x190)],_0xb48a56,_0x4f3002),await sleep(0x96);const _0xd2f552={'deleted':_0xb48a56,'remoteId':_0x526912[_0x4d7b43(0x18e)]};if(_0x577443)_0xd2f552[_0x4d7b43(0x1a1)]=_0x577443;return{'ok':!![],'data':_0xd2f552,'message':'Deleted\x20'+_0xb48a56+(_0x577443?'\x20(local\x20file\x20moved\x20to\x20trash)':'')};}};function resolveDeleteTarget(_0x178647,_0x1508bf){const _0x5d69df=a31_0x13bd35;if(_0x178647[_0x5d69df(0x193)]('/')){const _0x6a2d47=_0x1508bf['find'](_0x5e4f35=>_0x5e4f35===_0x178647);if(!_0x6a2d47)throw CliErrors[_0x5d69df(0x19e)](_0x5d69df(0x1aa)+_0x178647);return _0x6a2d47;}const _0x1268ed=_0x1508bf[_0x5d69df(0x194)](_0x18bf62=>_0x18bf62['split']('/')['at'](-0x1)===_0x178647);if(_0x1268ed[_0x5d69df(0x198)]===0x0)throw CliErrors[_0x5d69df(0x19e)](_0x5d69df(0x1aa)+_0x178647);if(_0x1268ed[_0x5d69df(0x198)]>0x1)throw CliErrors[_0x5d69df(0x19e)](_0x5d69df(0x1a2)+_0x178647+_0x5d69df(0x1b3)+_0x1268ed[_0x5d69df(0x1a8)](_0x325596=>_0x5d69df(0x19b)+_0x325596)['join']('\x0a'));return _0x1268ed[0x0];}function a31_0x4930(_0x1c28b8,_0x5ed14c){_0x1c28b8=_0x1c28b8-0x18c;const _0x9982d7=a31_0x9982();let _0x49304e=_0x9982d7[_0x1c28b8];return _0x49304e;}async function moveToTrash(_0x51b090,_0x5c4e4d,_0x56f57f){const _0x51afa9=new Date()['toISOString']()['replace'](/[:.]/g,'-'),_0x4b176a=relative(_0x51b090,_0x56f57f),_0x4b16b5=join(_0x5c4e4d,_0x51afa9,_0x4b176a);return await mkdir(dirname(_0x4b16b5),{'recursive':!![]}),await rename(_0x56f57f,_0x4b16b5),_0x4b16b5;}async function cleanupEmptyDirectories(_0x373c37,_0x3fdf62){const _0x6dc880=a31_0x13bd35;let _0x1f9061=resolve(_0x373c37);const _0x3ab43c=resolve(_0x3fdf62);while(_0x1f9061[_0x6dc880(0x1b6)](''+_0x3ab43c+sep)||_0x1f9061===_0x3ab43c){if(_0x1f9061===_0x3ab43c)return;try{const _0x1eefa3=await readdir(_0x1f9061);if(_0x1eefa3[_0x6dc880(0x198)]>0x0)return;await rmdir(_0x1f9061);}catch{return;}_0x1f9061=dirname(_0x1f9061);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0x36078e,_0x5e7121,_0x2cb6ac,_0x2dfe60){const _0x1c69f6=a31_0x13bd35;for(let _0x206999=0x0;_0x206999<DELETE_SETTLE_RETRY_COUNT;_0x206999+=0x1){const _0x2b45ca=await readBffLockFile(_0x36078e),_0x3083a6=!!_0x2b45ca?.[_0x1c69f6(0x1ab)]?.[_0x5e7121]?.['functions']?.[_0x2cb6ac],_0x52191e=await fileExists(_0x2dfe60);if(!_0x3083a6&&!_0x52191e)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error('Local\x20delete\x20not\x20settled\x20for\x20'+_0x2cb6ac+'.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a32_0x3ce5(){const _0x53a99d=['Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','1876904iQEWQB','1qcZWpT','verbose','bff','createdTime','1103684fgJvqU','updatedTime','12nawhXt','functionName','description','335505chSsbZ','scriptContent','scriptType','read','num','1905oPCqiS','33728bjXfXx','13866WOGhyW','994OYaZDR','appCode','Script\x20ID','boolean','detail','1440538fxqGLz','Return\x20full\x20raw\x20script\x20object','20ssmzQH','3011427bidixl'];a32_0x3ce5=function(){return _0x53a99d;};return a32_0x3ce5();}const a32_0x2e8064=a32_0x893c;(function(_0x1ba369,_0x88ea12){const _0x5e590b=a32_0x893c,_0x4a51a1=_0x1ba369();while(!![]){try{const _0x58c0b5=-parseInt(_0x5e590b(0x1df))/0x1*(-parseInt(_0x5e590b(0x1c7))/0x2)+parseInt(_0x5e590b(0x1cc))/0x3+parseInt(_0x5e590b(0x1de))/0x4+-parseInt(_0x5e590b(0x1d1))/0x5*(parseInt(_0x5e590b(0x1d3))/0x6)+parseInt(_0x5e590b(0x1d4))/0x7*(-parseInt(_0x5e590b(0x1d2))/0x8)+parseInt(_0x5e590b(0x1dc))/0x9*(parseInt(_0x5e590b(0x1db))/0xa)+-parseInt(_0x5e590b(0x1d9))/0xb*(-parseInt(_0x5e590b(0x1c9))/0xc);if(_0x58c0b5===_0x88ea12)break;else _0x4a51a1['push'](_0x4a51a1['shift']());}catch(_0x461887){_0x4a51a1['push'](_0x4a51a1['shift']());}}}(a32_0x3ce5,0x6ed10));import{getBffScriptInfo}from'../../core/api-client.js';function a32_0x893c(_0x4c947e,_0x145d82){_0x4c947e=_0x4c947e-0x1c6;const _0x3ce5e3=a32_0x3ce5();let _0x893c83=_0x3ce5e3[_0x4c947e];return _0x893c83;}export const bffDetail={'service':a32_0x2e8064(0x1e1),'command':a32_0x2e8064(0x1d8),'description':a32_0x2e8064(0x1dd),'risk':a32_0x2e8064(0x1cf),'flags':[{'name':'id','type':'number','required':!![],'description':a32_0x2e8064(0x1d6)},{'name':'verbose','type':a32_0x2e8064(0x1d7),'description':a32_0x2e8064(0x1da)}],async 'execute'(_0x39d93b){const _0x588d22=a32_0x2e8064,_0xf4c4df=await getBffScriptInfo(_0x39d93b[_0x588d22(0x1d0)]('id')),_0x4681e7=_0x39d93b['bool'](_0x588d22(0x1e0));if(_0x4681e7)return{'ok':!![],'data':_0xf4c4df};return{'ok':!![],'data':{'id':_0xf4c4df['id'],'functionName':_0xf4c4df[_0x588d22(0x1ca)]??'','version':_0xf4c4df['version']??'','updateUserName':_0xf4c4df['updateUserName']??'','appCode':_0xf4c4df[_0x588d22(0x1d5)],'scriptType':_0xf4c4df[_0x588d22(0x1ce)],'description':_0xf4c4df[_0x588d22(0x1cb)]||'(none)','createdTime':_0xf4c4df[_0x588d22(0x1c6)]??'','updatedTime':_0xf4c4df[_0x588d22(0x1c8)]??'','scriptContent':_0xf4c4df[_0x588d22(0x1cd)]??''}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d2643,_0x4e0f3f){const _0x3a29f9=a33_0x3117,_0x11c24e=_0x2d2643();while(!![]){try{const _0x2d40a7=parseInt(_0x3a29f9(0x81))/0x1+-parseInt(_0x3a29f9(0x89))/0x2+-parseInt(_0x3a29f9(0x82))/0x3+-parseInt(_0x3a29f9(0x84))/0x4*(parseInt(_0x3a29f9(0x88))/0x5)+-parseInt(_0x3a29f9(0x85))/0x6+parseInt(_0x3a29f9(0x87))/0x7*(parseInt(_0x3a29f9(0x86))/0x8)+-parseInt(_0x3a29f9(0x83))/0x9;if(_0x2d40a7===_0x4e0f3f)break;else _0x11c24e['push'](_0x11c24e['shift']());}catch(_0xd6ab){_0x11c24e['push'](_0x11c24e['shift']());}}}(a33_0x5151,0x34cbf));import{bffList}from'../../commands/bff/list.js';function a33_0x3117(_0x3a4bc8,_0x4eadd3){_0x3a4bc8=_0x3a4bc8-0x81;const _0x51517d=a33_0x5151();let _0x311747=_0x51517d[_0x3a4bc8];return _0x311747;}import{bffDetail}from'../../commands/bff/detail.js';import{bffStatus}from'../../commands/bff/status.js';import{bffCreate}from'../../commands/bff/create.js';import{bffPush}from'../../commands/bff/push.js';function a33_0x5151(){const _0x40c619=['288824VzDzRb','378773uwdQLp','230862OaFIHA','587754ytETkw','389224zWWlYy','66912bvQbhE','32QRwQUd','407071UzcljY','5uLLLrS'];a33_0x5151=function(){return _0x40c619;};return a33_0x5151();}import{bffPull}from'../../commands/bff/pull.js';import{bffDelete}from'../../commands/bff/delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffCreate,bffPush,bffPull,bffDelete];
|