@lovrabet/rabetbase-cli 2.5.0 → 2.5.1-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/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/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.d.ts +7 -0
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.d.ts +1 -1
- package/lib/commands/config/init.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/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-restore.d.ts +107 -0
- package/lib/commands/dataset/field-restore.js +1 -0
- 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/dataset/user-deleted-field-list.d.ts +36 -0
- package/lib/commands/dataset/user-deleted-field-list.js +1 -0
- 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/table-diff-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/deployment/auto-sync.d.ts +28 -0
- package/lib/commands/deployment/auto-sync.js +1 -0
- package/lib/commands/deployment/index.d.ts +2 -0
- package/lib/commands/deployment/index.js +1 -0
- package/lib/commands/deployment/sync.d.ts +2 -0
- package/lib/commands/deployment/sync.js +1 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/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/deployment-sync.d.ts +10 -0
- package/lib/config/deployment-sync.js +1 -0
- package/lib/config/domain-config.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-routing.d.ts +30 -0
- package/lib/config/project-routing.js +1 -0
- package/lib/config/schema.d.ts +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.d.ts +7 -2
- 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/region.d.ts +2 -2
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +115 -0
- package/lib/constant/routing-profile.js +1 -0
- package/lib/context/app-resolver.d.ts +2 -0
- 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 +35 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +4 -0
- 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/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 +1 -2
- package/skills/rabetbase/SKILL.md +20 -9
- package/skills/rabetbase/guides/frontend-development.md +2 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
- package/skills/rabetbase/guides/typescript-sdk.md +42 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
- package/skills/rabetbase/references/rabetbase-config.md +9 -5
- package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
- package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
- package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
- package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
- package/skills/rabetbase/references/rabetbase-init.md +11 -5
- package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
- package/skills/rabetbase.manifest.json +6 -3
- package/templates/README.md +13 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c6da0,_0x1d729e){const _0x34b954=a19_0x4382,_0x2edb83=_0x1c6da0();while(!![]){try{const _0x3cfd46=parseInt(_0x34b954(0x14b))/0x1*(-parseInt(_0x34b954(0x14c))/0x2)+parseInt(_0x34b954(0x14e))/0x3*(-parseInt(_0x34b954(0x14f))/0x4)+parseInt(_0x34b954(0x14a))/0x5+-parseInt(_0x34b954(0x147))/0x6+parseInt(_0x34b954(0x150))/0x7+parseInt(_0x34b954(0x14d))/0x8+-parseInt(_0x34b954(0x149))/0x9*(-parseInt(_0x34b954(0x148))/0xa);if(_0x3cfd46===_0x1d729e)break;else _0x2edb83['push'](_0x2edb83['shift']());}catch(_0x54fe9d){_0x2edb83['push'](_0x2edb83['shift']());}}}(a19_0xef22,0xb6ba5));function a19_0xef22(){const _0x38e3b9=['209259ZIUCzw','6rvKnyb','9682080jtpjvI','3364665aRKGbG','4YOboWY','3776710skwkMx','6543288whPilH','500NapZLW','79686UEPhTd','6979215FEsDLH'];a19_0xef22=function(){return _0x38e3b9;};return a19_0xef22();}function a19_0x4382(_0x165382,_0x34d65a){_0x165382=_0x165382-0x147;const _0xef22b6=a19_0xef22();let _0x4382c8=_0xef22b6[_0x165382];return _0x4382c8;}import{appListDefinition}from'../../commands/app/list.js';import{appMembersListDefinition}from'../../commands/app/members-list.js';export const appDefinitions=[appListDefinition,appMembersListDefinition];
|
package/lib/commands/app/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x2dbe00=a20_0xd4c3;(function(_0x2449af,_0x5da7c0){const _0x5c6a4e=a20_0xd4c3,_0x3b538c=_0x2449af();while(!![]){try{const _0x13b745=-parseInt(_0x5c6a4e(0x1e1))/0x1+-parseInt(_0x5c6a4e(0x1d7))/0x2+parseInt(_0x5c6a4e(0x1db))/0x3*(parseInt(_0x5c6a4e(0x1da))/0x4)+-parseInt(_0x5c6a4e(0x1f5))/0x5*(parseInt(_0x5c6a4e(0x1f3))/0x6)+parseInt(_0x5c6a4e(0x204))/0x7+parseInt(_0x5c6a4e(0x1de))/0x8*(-parseInt(_0x5c6a4e(0x1fd))/0x9)+parseInt(_0x5c6a4e(0x1e2))/0xa*(parseInt(_0x5c6a4e(0x1fa))/0xb);if(_0x13b745===_0x5da7c0)break;else _0x3b538c['push'](_0x3b538c['shift']());}catch(_0x1e546b){_0x3b538c['push'](_0x3b538c['shift']());}}}(a20_0x503d,0x79b49));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{buildAppProfileListFields}from'../../config/schema.js';import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';function a20_0x503d(){const _0x222c57=['\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','read','8tOiqrP','list','globalPath','247051ngFetf','2770XJuOqV','\x20in\x20','appcode','projectConfig','merged','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','app','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','keys','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','global','entries','.\x20Use\x20`','optional','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','project','globalConfig','5245320VWKdoX','apps','5qceJGX','object','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','No\x20apps\x20configured','isCurrent','79706KqVtii','\x20config','boolean','4463892THMXDH','map','name','defaultApp','bool','projectPath','length','1312157dZrYmc','find','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','827592okEijJ','remote','mergedCli','524FWZOAu','7671fGtixL'];a20_0x503d=function(){return _0x222c57;};return a20_0x503d();}import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function buildItemsFromLayer(_0x258679,_0x5d0753){const _0x21c2d8=a20_0xd4c3,_0x83ba34=[],_0x743dc6=_0x258679['apps']&&typeof _0x258679[_0x21c2d8(0x1f4)]===_0x21c2d8(0x1f6)?_0x258679[_0x21c2d8(0x1f4)]:{},_0x15679c=_0x258679[_0x21c2d8(0x200)]||undefined,_0x47d77e=_0x15679c??(Object[_0x21c2d8(0x1ea)](_0x743dc6)[_0x21c2d8(0x203)]===0x1?Object['keys'](_0x743dc6)[0x0]:undefined);for(const [_0x2e5e2d,_0x2dc326]of Object[_0x21c2d8(0x1ed)](_0x743dc6)){if(!_0x2dc326||typeof _0x2dc326!==_0x21c2d8(0x1f6)||!_0x2dc326[_0x21c2d8(0x1e4)])continue;_0x83ba34['push']({'name':_0x2e5e2d,'appcode':_0x2dc326[_0x21c2d8(0x1e4)],'named':!![],'definedIn':_0x5d0753,'isDefault':_0x2e5e2d===_0x47d77e,...buildAppProfileListFields(_0x2dc326)});}return _0x83ba34;}function buildMergedItems(_0x4dff89,_0x8f5c50){const _0x4eabda=a20_0xd4c3,{apps:apps={}}=_0x4dff89,_0x488ea7=_0x4dff89[_0x4eabda(0x200)],_0x404308=_0x488ea7??(Object[_0x4eabda(0x1ea)](apps)['length']===0x1?Object[_0x4eabda(0x1ea)](apps)[0x0]:undefined),_0x3b6660=_0x8f5c50[_0x4eabda(0x1f2)][_0x4eabda(0x1f4)]&&typeof _0x8f5c50['globalConfig'][_0x4eabda(0x1f4)]==='object'?_0x8f5c50['globalConfig'][_0x4eabda(0x1f4)]:{},_0x346ea0=_0x8f5c50['projectConfig']['apps']&&typeof _0x8f5c50['projectConfig']['apps']===_0x4eabda(0x1f6)?_0x8f5c50[_0x4eabda(0x1e5)][_0x4eabda(0x1f4)]:{},_0x13d7d4=Object['entries'](apps),_0x529dbf=_0x13d7d4[_0x4eabda(0x1fe)](([_0xa3126f,_0x5ad1b6])=>({'name':_0xa3126f,'appcode':_0x5ad1b6[_0x4eabda(0x1e4)],'named':!![],'definedIn':appDefinedIn(_0xa3126f,_0x3b6660,_0x346ea0),'isDefault':_0xa3126f===_0x404308,...buildAppProfileListFields(_0x5ad1b6)}));return _0x529dbf;}function validateAppListFlags(_0x22366d){const _0x4f5996=a20_0xd4c3;if(!_0x22366d[_0x4f5996(0x201)](_0x4f5996(0x1d8)))return;if(!_0x22366d['bool']('global')&&!_0x22366d[_0x4f5996(0x201)](_0x4f5996(0x1f1)))return;throw CliErrors['validation'](_0x4f5996(0x1f0),_0x4f5996(0x1eb));}async function execute(_0x4104ba){const _0x1b0d37=a20_0xd4c3;validateAppListFlags(_0x4104ba);if(_0x4104ba['bool'](_0x1b0d37(0x1d8)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x4104ba)};const _0x745bce=_0x4104ba[_0x1b0d37(0x201)]('global'),_0x591658=_0x4104ba[_0x1b0d37(0x201)](_0x1b0d37(0x1f1)),_0x5c2563=_0x745bce?_0x1b0d37(0x1ec):_0x591658?_0x1b0d37(0x1f1):'merged',{config:_0x3da396,layers:_0x74879b}=readRawConfigWithLayers(),_0x2c0503=resolveDefaultAppSource(_0x74879b),{defaultApp:_0x5caea9}=_0x3da396;let _0x2c1f12,_0x42706d;switch(_0x5c2563){case _0x1b0d37(0x1ec):_0x2c1f12=buildItemsFromLayer(_0x74879b['globalConfig'],'global'),_0x42706d=_0x74879b[_0x1b0d37(0x1e0)];break;case'project':_0x2c1f12=buildItemsFromLayer(_0x74879b[_0x1b0d37(0x1e5)],'project'),_0x42706d=_0x74879b[_0x1b0d37(0x202)];break;default:_0x2c1f12=buildMergedItems(_0x3da396,_0x74879b);break;}enrichAppListItemsWithMergedSelection(_0x2c1f12,_0x4104ba[_0x1b0d37(0x1d9)]);if(_0x2c1f12[_0x1b0d37(0x203)]===0x0){const _0x5eb8c8=_0x5c2563===_0x1b0d37(0x1e6)?'':_0x1b0d37(0x1e3)+_0x5c2563+_0x1b0d37(0x1fb);return{'ok':!![],'data':[],'message':_0x1b0d37(0x1f8)+_0x5eb8c8+_0x1b0d37(0x1ee)+CLI_BIN_NAME+_0x1b0d37(0x1dc)};}const _0x5c5897=_0x2c1f12[_0x1b0d37(0x1d5)](_0x314015=>_0x314015[_0x1b0d37(0x1f9)]===!![]),_0x4f16ea=_0x5caea9??_0x5c5897?.[_0x1b0d37(0x1ff)]??null,_0x26de29=_0x5c2563===_0x1b0d37(0x1e6)?{'globalPath':_0x74879b[_0x1b0d37(0x1e0)]??null,'projectPath':_0x74879b[_0x1b0d37(0x202)]??null,'defaultApp':_0x4f16ea,'defaultAppSource':_0x5caea9!=null?_0x2c0503:null}:{'scope':_0x5c2563,'configPath':_0x42706d??null};return{'ok':!![],'data':{'items':_0x2c1f12,'meta':_0x26de29}};}function a20_0xd4c3(_0x2359f9,_0x476ec1){_0x2359f9=_0x2359f9-0x1d5;const _0x503df3=a20_0x503d();let _0xd4c340=_0x503df3[_0x2359f9];return _0xd4c340;}export const appListDefinition={'service':a20_0x2dbe00(0x1e8),'command':a20_0x2dbe00(0x1df),'description':a20_0x2dbe00(0x1f7),'risk':a20_0x2dbe00(0x1dd),'auth':a20_0x2dbe00(0x1ef),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a20_0x2dbe00(0x1d8),'type':a20_0x2dbe00(0x1fc),'description':a20_0x2dbe00(0x1d6),'default':![]},{'name':'global','type':a20_0x2dbe00(0x1fc),'description':a20_0x2dbe00(0x1e9),'default':![]},{'name':a20_0x2dbe00(0x1f1),'type':a20_0x2dbe00(0x1fc),'description':a20_0x2dbe00(0x1e7),'default':![]}],async 'validate'(_0x5b33fe){validateAppListFlags(_0x5b33fe);},'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a21_0x5805(_0x55474e,_0x116a28){_0x55474e=_0x55474e-0x144;const _0x1e2236=a21_0x1e22();let _0x580595=_0x1e2236[_0x55474e];return _0x580595;}const a21_0x8cf0fa=a21_0x5805;(function(_0x24cadd,_0x27d681){const _0x59add0=a21_0x5805,_0x5e8e8b=_0x24cadd();while(!![]){try{const _0x2a37be=-parseInt(_0x59add0(0x153))/0x1+parseInt(_0x59add0(0x14d))/0x2+parseInt(_0x59add0(0x147))/0x3+parseInt(_0x59add0(0x154))/0x4*(-parseInt(_0x59add0(0x146))/0x5)+parseInt(_0x59add0(0x152))/0x6*(-parseInt(_0x59add0(0x14a))/0x7)+parseInt(_0x59add0(0x149))/0x8*(-parseInt(_0x59add0(0x14c))/0x9)+-parseInt(_0x59add0(0x14f))/0xa*(-parseInt(_0x59add0(0x14e))/0xb);if(_0x2a37be===_0x27d681)break;else _0x5e8e8b['push'](_0x5e8e8b['shift']());}catch(_0x374b93){_0x5e8e8b['push'](_0x5e8e8b['shift']());}}}(a21_0x1e22,0xcd2f0));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a21_0x1e22(){const _0x4b24ad=['7718073dBPjnZ','70UDGMYy','List\x20application\x20members\x20with\x20their\x20role\x20memberships','app','6ejosVW','1512669RbOeCk','6044ayBAFq','\x20application\x20member(s)','read','appCode','4755kjZlvS','903996tzGcRT','length','112cSKuWK','3183033pvaxVz','members-list','972531qhhdIt','1089548BIpwRB'];a21_0x1e22=function(){return _0x4b24ad;};return a21_0x1e22();}import{projectAppMembers}from'../../commands/app/shared.js';import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':a21_0x8cf0fa(0x151),'command':a21_0x8cf0fa(0x14b),'description':a21_0x8cf0fa(0x150),'risk':a21_0x8cf0fa(0x144),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1d75cb){const _0xc4d5bf=a21_0x8cf0fa,_0x5c4337=projectAppMembers(await listRoleUsers(_0x1d75cb[_0xc4d5bf(0x145)]));return{'ok':!![],'data':{'appCode':_0x1d75cb[_0xc4d5bf(0x145)],'items':_0x5c4337,'totalCount':_0x5c4337[_0xc4d5bf(0x148)]},'message':'Found\x20'+_0x5c4337[_0xc4d5bf(0x148)]+_0xc4d5bf(0x155)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a22_0x3e13(){const _0x47f9c7=['20BawtEg','5838krcdbz','8770581yMnAsZ','3068510VHVULj','2136783XGJgck','appDesc','appCode','24090TdsvMZ','platform','cookie','map','502qymrKu','8UcdDqb','1024200UoQtaJ','8841kwoIWv','appName','authRequired','10681KXcjid'];a22_0x3e13=function(){return _0x47f9c7;};return a22_0x3e13();}(function(_0x2f1c67,_0x488a75){const _0x230404=a22_0x41d5,_0x4cb8b9=_0x2f1c67();while(!![]){try{const _0x59842d=-parseInt(_0x230404(0x71))/0x1*(parseInt(_0x230404(0x7c))/0x2)+-parseInt(_0x230404(0x75))/0x3+-parseInt(_0x230404(0x7d))/0x4*(parseInt(_0x230404(0x74))/0x5)+parseInt(_0x230404(0x72))/0x6*(parseInt(_0x230404(0x7f))/0x7)+parseInt(_0x230404(0x7e))/0x8+-parseInt(_0x230404(0x73))/0x9+-parseInt(_0x230404(0x78))/0xa*(-parseInt(_0x230404(0x82))/0xb);if(_0x59842d===_0x488a75)break;else _0x4cb8b9['push'](_0x4cb8b9['shift']());}catch(_0x9ae0c2){_0x4cb8b9['push'](_0x4cb8b9['shift']());}}}(a22_0x3e13,0xbdaa5));import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x3028d1){const _0x55f681=a22_0x41d5,_0x38b1ee=_0x3028d1[_0x55f681(0x7a)]||getCookie();if(!_0x38b1ee)throw CliErrors[_0x55f681(0x81)]();return _0x38b1ee;}function a22_0x41d5(_0x3b59a4,_0x2f5b03){_0x3b59a4=_0x3b59a4-0x71;const _0x3e1325=a22_0x3e13();let _0x41d54f=_0x3e1325[_0x3b59a4];return _0x41d54f;}export async function listRemoteAppDirectory(_0x28360b){const _0x4f103f=a22_0x41d5,_0x2e767d=await withActiveCookie(resolveCookie(_0x28360b),()=>listRemoteApps());return{'items':_0x2e767d[_0x4f103f(0x7b)](_0x5b7d6c=>({..._0x5b7d6c['id']!=null?{'id':_0x5b7d6c['id']}:{},'appCode':_0x5b7d6c[_0x4f103f(0x77)],'appName':_0x5b7d6c[_0x4f103f(0x80)],..._0x5b7d6c[_0x4f103f(0x76)]!=null?{'appDesc':_0x5b7d6c['appDesc']}:{}})),'meta':{'source':_0x4f103f(0x79)}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14af72,_0x1bfe1d){const _0xac51b9=a23_0x140a,_0x4db8a2=_0x14af72();while(!![]){try{const _0x38fdae=parseInt(_0xac51b9(0x160))/0x1+parseInt(_0xac51b9(0x138))/0x2*(parseInt(_0xac51b9(0x163))/0x3)+-parseInt(_0xac51b9(0x14c))/0x4*(parseInt(_0xac51b9(0x140))/0x5)+parseInt(_0xac51b9(0x145))/0x6*(parseInt(_0xac51b9(0x147))/0x7)+parseInt(_0xac51b9(0x157))/0x8*(parseInt(_0xac51b9(0x153))/0x9)+-parseInt(_0xac51b9(0x15e))/0xa+-parseInt(_0xac51b9(0x15d))/0xb;if(_0x38fdae===_0x1bfe1d)break;else _0x4db8a2['push'](_0x4db8a2['shift']());}catch(_0x5d335f){_0x4db8a2['push'](_0x4db8a2['shift']());}}}(a23_0x41a2,0x5f057));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a23_0x41a2(){const _0x3cf59c=['\x20(global)','displayName','named','project','projectConfig','11743644exFefk','7150010SnYhMM','roleType','565664zXQlNW','keys','roleKeys','1105809EPOfXj','status','trim','length','push','object','4ZoTXtf','membershipStatus','isFinite','ACTIVE','roles','username','appCode','add','727005KSeKAV','PENDING','isCurrent','appcode','roleId','12PmZPtz','defaultApp','1063090Awlvdo','sort','apps','userList','has','4ILWdeM','globalConfig','global','values','set','userId','prototype','9SEoLgx','both','call','hasOwnProperty','5684824iudypp'];a23_0x41a2=function(){return _0x3cf59c;};return a23_0x41a2();}function a23_0x140a(_0x56bbcb,_0x48ca22){_0x56bbcb=_0x56bbcb-0x138;const _0x41a231=a23_0x41a2();let _0x140a15=_0x41a231[_0x56bbcb];return _0x140a15;}function nullableText(_0x34eb41){const _0x149ba5=_0x34eb41?.['trim']();return _0x149ba5?_0x149ba5:null;}export function projectAppMembers(_0x4fe61d){const _0x2d5028=a23_0x140a,_0x52d909=new Map(),_0x172f46=[..._0x4fe61d][_0x2d5028(0x148)]((_0x44183a,_0x41dcf4)=>_0x44183a['id']-_0x41dcf4['id']),_0x4229c9=(_0x433461,_0x5e4a8f,_0x34933a)=>{const _0x221500=_0x2d5028;for(const _0x43ff0e of _0x5e4a8f){const _0x27f13d=Number(_0x43ff0e[_0x221500(0x151)]);if(!Number[_0x221500(0x13a)](_0x27f13d)||_0x27f13d<=0x0)continue;let _0x50dcc8=_0x52d909['get'](_0x27f13d);if(!_0x50dcc8)_0x50dcc8={'userId':_0x27f13d,'username':nullableText(_0x43ff0e[_0x221500(0x13d)]),'displayName':nullableText(_0x43ff0e['nickname']),'status':_0x34933a,'roles':[],'roleKeys':new Set()},_0x52d909[_0x221500(0x150)](_0x27f13d,_0x50dcc8);else{_0x50dcc8[_0x221500(0x13d)]??=nullableText(_0x43ff0e[_0x221500(0x13d)]),_0x50dcc8[_0x221500(0x159)]??=nullableText(_0x43ff0e['nickname']);if(_0x34933a===_0x221500(0x13b))_0x50dcc8[_0x221500(0x164)]='ACTIVE';}const _0x51a8a4=_0x433461['id']+':'+_0x34933a;if(_0x50dcc8[_0x221500(0x162)][_0x221500(0x14b)](_0x51a8a4))continue;_0x50dcc8[_0x221500(0x162)][_0x221500(0x13f)](_0x51a8a4),_0x50dcc8[_0x221500(0x13c)][_0x221500(0x167)]({'roleId':_0x433461['id'],'roleName':nullableText(_0x433461['roleName']),'roleType':nullableText(_0x433461[_0x221500(0x15f)]),'membershipStatus':_0x34933a});}};for(const _0x423cb8 of _0x172f46){_0x4229c9(_0x423cb8,_0x423cb8[_0x2d5028(0x14a)]??[],_0x2d5028(0x13b)),_0x4229c9(_0x423cb8,_0x423cb8['applyUserList']??[],_0x2d5028(0x141));}return[..._0x52d909[_0x2d5028(0x14f)]()]['map'](_0x415d56=>({'userId':_0x415d56[_0x2d5028(0x151)],'username':_0x415d56[_0x2d5028(0x13d)],'displayName':_0x415d56[_0x2d5028(0x159)],'status':_0x415d56[_0x2d5028(0x164)],'roles':_0x415d56['roles'][_0x2d5028(0x148)]((_0x4f9d7e,_0x29714c)=>_0x4f9d7e[_0x2d5028(0x144)]-_0x29714c['roleId']||(_0x4f9d7e['membershipStatus']===_0x29714c[_0x2d5028(0x139)]?0x0:_0x4f9d7e[_0x2d5028(0x139)]===_0x2d5028(0x13b)?-0x1:0x1))}))[_0x2d5028(0x148)]((_0xd25305,_0x305bb8)=>_0xd25305[_0x2d5028(0x151)]-_0x305bb8[_0x2d5028(0x151)]);}export function enrichAppListItemsWithMergedSelection(_0x28e1c0,_0x4dcbc5){const _0x1d0df0=a23_0x140a;if(!_0x4dcbc5)return;const _0x47633e=_0x4dcbc5[_0x1d0df0(0x149)]&&typeof _0x4dcbc5['apps']===_0x1d0df0(0x168)?_0x4dcbc5['apps']:{},_0x3d22d1=Object['keys'](_0x47633e)['length']>0x0;for(const _0x67ffd9 of _0x28e1c0){_0x67ffd9[_0x1d0df0(0x142)]=![];}const _0x3c0bf3=_0x4dcbc5[_0x1d0df0(0x13e)]!=null?String(_0x4dcbc5[_0x1d0df0(0x13e)])[_0x1d0df0(0x165)]():'';if(_0x3d22d1){const _0x29e768=_0x4dcbc5['currentApp']??_0x4dcbc5['defaultApp'];if(_0x29e768)for(const _0x273dc7 of _0x28e1c0){_0x273dc7[_0x1d0df0(0x15a)]===!![]&&_0x273dc7['name']===_0x29e768&&(_0x273dc7['isCurrent']=!![]);}for(const _0x2412ca of _0x28e1c0){if(_0x2412ca[_0x1d0df0(0x15a)]!==![])continue;if(_0x4dcbc5[_0x1d0df0(0x146)])continue;_0x3c0bf3&&String(_0x2412ca[_0x1d0df0(0x143)]??'')['trim']()===_0x3c0bf3&&(_0x2412ca[_0x1d0df0(0x142)]=!![]);}return;}if(!_0x3c0bf3)return;for(const _0x3d18a4 of _0x28e1c0){String(_0x3d18a4[_0x1d0df0(0x143)]??'')['trim']()===_0x3c0bf3&&(_0x3d18a4[_0x1d0df0(0x142)]=!![]);}}export function resolveAppScopeForWrite(_0x90b612,_0x3bfbc4,_0x39d4a1){const _0x41001c=a23_0x140a;if(_0x3bfbc4)return _0x41001c(0x14e);const _0x192b2a=_0x39d4a1[_0x41001c(0x15c)][_0x41001c(0x149)]&&typeof _0x39d4a1[_0x41001c(0x15c)]['apps']===_0x41001c(0x168)?_0x39d4a1[_0x41001c(0x15c)]['apps']:{},_0x2f52be=_0x39d4a1['globalConfig']['apps']&&typeof _0x39d4a1[_0x41001c(0x14d)][_0x41001c(0x149)]==='object'?_0x39d4a1['globalConfig'][_0x41001c(0x149)]:{};if(Object[_0x41001c(0x152)]['hasOwnProperty'][_0x41001c(0x155)](_0x192b2a,_0x90b612))return _0x41001c(0x15b);if(Object[_0x41001c(0x152)][_0x41001c(0x156)][_0x41001c(0x155)](_0x2f52be,_0x90b612))return _0x41001c(0x14e);return _0x41001c(0x15b);}export function appDefinedIn(_0x37499c,_0x42709c,_0xa157e6){const _0x439f94=a23_0x140a,_0x3fbde4=Object['prototype'][_0x439f94(0x156)][_0x439f94(0x155)](_0x42709c,_0x37499c),_0x191ad1=Object[_0x439f94(0x152)]['hasOwnProperty']['call'](_0xa157e6,_0x37499c);if(_0x3fbde4&&_0x191ad1)return _0x439f94(0x154);if(_0x191ad1)return _0x439f94(0x15b);return _0x439f94(0x14e);}export function resolveDefaultAppSource(_0x408290){const _0x492cb0=a23_0x140a,_0x453a7a=_0x408290['projectConfig'][_0x492cb0(0x149)]&&typeof _0x408290['projectConfig']['apps']===_0x492cb0(0x168)?_0x408290[_0x492cb0(0x15c)]['apps']:{};if(_0x492cb0(0x146)in _0x408290[_0x492cb0(0x15c)])return _0x492cb0(0x15b);if(Object[_0x492cb0(0x161)](_0x453a7a)[_0x492cb0(0x166)]>0x0)return _0x492cb0(0x15b);if(Object[_0x492cb0(0x161)](_0x408290[_0x492cb0(0x15c)])[_0x492cb0(0x166)]===0x0&&_0x408290[_0x492cb0(0x14d)][_0x492cb0(0x146)])return'global';return null;}export function getConfigPath(_0x1454bf={}){const _0x27cea9=a23_0x140a,_0xc7b7aa=_0x1454bf['global']?_0x27cea9(0x14e):_0x27cea9(0x15b);return resolveWriteConfigPath(_0xc7b7aa);}export function readConfig(_0x4efc43={}){return readConfigFile(getConfigPath(_0x4efc43));}export function writeConfig(_0x73051e,_0x142375={}){writeConfigFile(getConfigPath(_0x142375),_0x73051e);}export function scopeLabel(_0x4af882){const _0x17c059=a23_0x140a;return _0x4af882[_0x17c059(0x14e)]?_0x17c059(0x158):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a24_0x12baf5=a24_0x170f;(function(_0x3d17a7,_0x4971b4){const _0x42a0a8=a24_0x170f,_0x4392eb=_0x3d17a7();while(!![]){try{const _0x4f95be=parseInt(_0x42a0a8(0xda))/0x1*(parseInt(_0x42a0a8(0xf3))/0x2)+-parseInt(_0x42a0a8(0xde))/0x3+-parseInt(_0x42a0a8(0xe9))/0x4*(parseInt(_0x42a0a8(0xeb))/0x5)+-parseInt(_0x42a0a8(0xe3))/0x6*(-parseInt(_0x42a0a8(0xdc))/0x7)+-parseInt(_0x42a0a8(0xf0))/0x8+parseInt(_0x42a0a8(0xe6))/0x9*(parseInt(_0x42a0a8(0xec))/0xa)+parseInt(_0x42a0a8(0xef))/0xb;if(_0x4f95be===_0x4971b4)break;else _0x4392eb['push'](_0x4392eb['shift']());}catch(_0x5d39bd){_0x4392eb['push'](_0x4392eb['shift']());}}}(a24_0xbd94,0xd5391));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';const DELETE_PATH=a24_0x12baf5(0xf1);export const appConfigDelete={'service':a24_0x12baf5(0xdb),'command':a24_0x12baf5(0xee),'description':a24_0x12baf5(0xe8),'risk':a24_0x12baf5(0xf2),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x44459d){readKeyArg(_0x44459d);},async 'dryRun'(_0x3ada28){const _0x16fa03=a24_0x12baf5,_0x4f9b2c=readKeyArg(_0x3ada28),_0x259e8c=await mustGetByKey(_0x3ada28['appCode'],_0x4f9b2c);return asAppConfigDryRunResult(buildMutationData({'operation':_0x16fa03(0xee),'appCode':_0x3ada28[_0x16fa03(0xe2)],'key':_0x4f9b2c,'before':projectAppConfig(_0x259e8c),'after':null,'dryRun':!![]}),{'method':_0x16fa03(0xed),'url':DELETE_PATH});},async 'execute'(_0x4189f7){const _0x17c2b6=a24_0x12baf5,_0x59a8d5=readKeyArg(_0x4189f7),_0x34dd44=await mustGetByKey(_0x4189f7[_0x17c2b6(0xe2)],_0x59a8d5);return await withAppConfigApiBoundary(_0x17c2b6(0xee),{'appCode':_0x4189f7[_0x17c2b6(0xe2)],'key':_0x59a8d5},()=>deleteAppConfig({'appCode':_0x4189f7[_0x17c2b6(0xe2)],'id':requireAppConfigId(_0x34dd44,_0x59a8d5,_0x4189f7[_0x17c2b6(0xe2)])})),{'ok':!![],'data':buildMutationData({'operation':_0x17c2b6(0xee),'appCode':_0x4189f7['appCode'],'key':_0x59a8d5,'before':projectAppConfig(_0x34dd44),'after':null,'dryRun':![]}),'message':_0x17c2b6(0xe7)+_0x59a8d5};}};async function mustGetByKey(_0x2698be,_0x393e8c){const _0x2dd912=a24_0x12baf5,_0x174546=await withAppConfigApiBoundary(_0x2dd912(0xe5),{'appCode':_0x2698be,'key':_0x393e8c},()=>getAppConfigByKey(_0x2698be,_0x393e8c));if(!_0x174546)throw CliErrors[_0x2dd912(0xea)](_0x2dd912(0xdd)+_0x393e8c,'appCode:\x20'+_0x2698be);return _0x174546;}function a24_0x170f(_0x195ed1,_0x1d7867){_0x195ed1=_0x195ed1-0xda;const _0xbd948d=a24_0xbd94();let _0x170ff6=_0xbd948d[_0x195ed1];return _0x170ff6;}function requireAppConfigId(_0x3c7cef,_0xfbb24e,_0x344545){const _0x565739=a24_0x12baf5;if(typeof _0x3c7cef['id']===_0x565739(0xdf)&&Number['isFinite'](_0x3c7cef['id'])&&_0x3c7cef['id']>0x0)return _0x3c7cef['id'];throw CliErrors[_0x565739(0xe1)](_0x565739(0xe4)+_0xfbb24e+_0x565739(0xe0)+_0x344545);}function a24_0xbd94(){const _0x44f296=['/smartapi/app-config/delete','high-risk-write','2QNPAsA','1681235HNrGRd','app-config','4430223rTXXCF','App\x20config\x20key\x20not\x20found:\x20','4546200zBfBrY','number',',\x20appCode=','apiError','appCode','6txImUE','App\x20config\x20server\x20id\x20missing\x20for\x20key=','get','4567842KXlNJC','Deleted\x20app\x20config\x20','Delete\x20one\x20runtime\x20app-config\x20key','4qhqevM','validation','2312260xHsjWx','10bduQza','POST','delete','2870615KVPFEC','1851312JtBgXR'];a24_0xbd94=function(){return _0x44f296;};return a24_0xbd94();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x4a92b7=a25_0x269d;(function(_0x2a6f05,_0x435665){const _0x7b34d7=a25_0x269d,_0x502653=_0x2a6f05();while(!![]){try{const _0x2cff56=parseInt(_0x7b34d7(0x1d2))/0x1*(-parseInt(_0x7b34d7(0x1cc))/0x2)+parseInt(_0x7b34d7(0x1c6))/0x3*(parseInt(_0x7b34d7(0x1d3))/0x4)+-parseInt(_0x7b34d7(0x1ca))/0x5+parseInt(_0x7b34d7(0x1d6))/0x6+parseInt(_0x7b34d7(0x1d4))/0x7+-parseInt(_0x7b34d7(0x1c7))/0x8+parseInt(_0x7b34d7(0x1c5))/0x9*(parseInt(_0x7b34d7(0x1c9))/0xa);if(_0x2cff56===_0x435665)break;else _0x502653['push'](_0x502653['shift']());}catch(_0x4a2828){_0x502653['push'](_0x502653['shift']());}}}(a25_0x277d,0x2ab5e));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a25_0x269d(_0x197f0a,_0xd82d86){_0x197f0a=_0x197f0a-0x1c4;const _0x277dfc=a25_0x277d();let _0x269d6e=_0x277dfc[_0x197f0a];return _0x269d6e;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a25_0x277d(){const _0x2092f4=['14voFKha','appCode','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','App\x20config\x20key\x20not\x20found:\x20','bool','\x20with\x20value\x20revealed','19037rcIKOs','149972LCRszk','923244fBRLNU','validation','736578tyMyKi','reveal','682092ncsGZx','21ucoHBx','1996168jDSzem','\x20with\x20value\x20redacted','20CyDFlD','554800rMrCky','Loaded\x20app\x20config\x20'];a25_0x277d=function(){return _0x2092f4;};return a25_0x277d();}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':'app-config','command':'get','description':a25_0x4a92b7(0x1ce),'risk':'read','args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x169220){readKeyArg(_0x169220);},async 'execute'(_0x4a9193){const _0x1eecb8=a25_0x4a92b7,_0x4c86eb=readKeyArg(_0x4a9193),_0x36864c=await withAppConfigApiBoundary('get',{'appCode':_0x4a9193[_0x1eecb8(0x1cd)],'key':_0x4c86eb},()=>getAppConfigByKey(_0x4a9193[_0x1eecb8(0x1cd)],_0x4c86eb));if(!_0x36864c)throw CliErrors[_0x1eecb8(0x1d5)](_0x1eecb8(0x1cf)+_0x4c86eb,'appCode:\x20'+_0x4a9193['appCode']);const _0x27db50=projectAppConfig(_0x36864c,{'reveal':_0x4a9193[_0x1eecb8(0x1d0)](_0x1eecb8(0x1c4))});return{'ok':!![],'data':{'config':_0x27db50},'message':_0x4a9193[_0x1eecb8(0x1d0)](_0x1eecb8(0x1c4))?_0x1eecb8(0x1cb)+_0x4c86eb+_0x1eecb8(0x1d1):_0x1eecb8(0x1cb)+_0x4c86eb+_0x1eecb8(0x1c8)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x385fe0,_0x17e402){const _0x3d1078=a26_0x57db,_0x494dea=_0x385fe0();while(!![]){try{const _0x3e24a1=-parseInt(_0x3d1078(0x1a1))/0x1+-parseInt(_0x3d1078(0x19f))/0x2*(parseInt(_0x3d1078(0x1a3))/0x3)+-parseInt(_0x3d1078(0x1a7))/0x4*(parseInt(_0x3d1078(0x19d))/0x5)+-parseInt(_0x3d1078(0x19e))/0x6*(parseInt(_0x3d1078(0x19c))/0x7)+-parseInt(_0x3d1078(0x1a4))/0x8*(parseInt(_0x3d1078(0x1a0))/0x9)+parseInt(_0x3d1078(0x1a8))/0xa*(-parseInt(_0x3d1078(0x1a5))/0xb)+-parseInt(_0x3d1078(0x1a6))/0xc*(-parseInt(_0x3d1078(0x1a2))/0xd);if(_0x3e24a1===_0x17e402)break;else _0x494dea['push'](_0x494dea['shift']());}catch(_0x1efbbf){_0x494dea['push'](_0x494dea['shift']());}}}(a26_0x29cd,0x52584));import{appConfigList}from'../../commands/app-config/list.js';function a26_0x57db(_0x40c090,_0x594ff0){_0x40c090=_0x40c090-0x19c;const _0x29cda0=a26_0x29cd();let _0x57db68=_0x29cda0[_0x40c090];return _0x57db68;}function a26_0x29cd(){const _0x4ce281=['13BObxiU','651MQglWQ','8sVFTdG','1745931RUuSKR','29947872UuIcER','67308gPhkVC','40ozUasz','1954939debQSU','145ezuFce','6bXlNEa','142pjWEKj','3661182SFezJD','334023dBknhe'];a26_0x29cd=function(){return _0x4ce281;};return a26_0x29cd();}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
|
-
function
|
|
1
|
+
const a27_0x586a8e=a27_0x341c;function a27_0x341c(_0x3eb67f,_0x541b1f){_0x3eb67f=_0x3eb67f-0x13b;const _0x3f76f1=a27_0x3f76();let _0x341c6b=_0x3f76f1[_0x3eb67f];return _0x341c6b;}function a27_0x3f76(){const _0x5ebddb=['Filter\x20by\x20exact\x20config\x20key','List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','690WiEyHj','list','3370PeipME','6949098VwWGYt','9tGSRlu','12843032xwzpRf','key','str','read','4845825jgNEaf','appCode','Found\x20','3219528udwePg','trim','\x20app\x20config(s)','length','223176xUUqEB','3037783cdkOPa','map'];a27_0x3f76=function(){return _0x5ebddb;};return a27_0x3f76();}(function(_0x1033e3,_0x4877b2){const _0x2b3087=a27_0x341c,_0x2912b1=_0x1033e3();while(!![]){try{const _0xea447=-parseInt(_0x2b3087(0x146))/0x1*(-parseInt(_0x2b3087(0x148))/0x2)+-parseInt(_0x2b3087(0x13d))/0x3+-parseInt(_0x2b3087(0x141))/0x4+parseInt(_0x2b3087(0x14f))/0x5+parseInt(_0x2b3087(0x149))/0x6+parseInt(_0x2b3087(0x142))/0x7+-parseInt(_0x2b3087(0x14b))/0x8*(parseInt(_0x2b3087(0x14a))/0x9);if(_0xea447===_0x4877b2)break;else _0x2912b1['push'](_0x2912b1['shift']());}catch(_0x18c11b){_0x2912b1['push'](_0x2912b1['shift']());}}}(a27_0x3f76,0xf19b2));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':'app-config','command':a27_0x586a8e(0x147),'description':a27_0x586a8e(0x145),'risk':a27_0x586a8e(0x14e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a27_0x586a8e(0x14c),'type':'string','description':a27_0x586a8e(0x144)},TAGS_FLAG],async 'validate'(_0x22d815){const _0x1660a1=a27_0x586a8e,_0x91fa55=_0x22d815[_0x1660a1(0x14d)](_0x1660a1(0x14c))[_0x1660a1(0x13e)]();if(_0x91fa55)validateKey(_0x91fa55);readOptionalTags(_0x22d815);},async 'execute'(_0x48d148){const _0x13056a=a27_0x586a8e,_0x233dca=_0x48d148['str'](_0x13056a(0x14c))[_0x13056a(0x13e)]()||undefined,_0x5ca2ba=readOptionalTags(_0x48d148),_0x3b99ef=await withAppConfigApiBoundary(_0x13056a(0x147),{'appCode':_0x48d148[_0x13056a(0x13b)]},()=>listAppConfigs(_0x48d148[_0x13056a(0x13b)],{'key':_0x233dca,'tags':_0x5ca2ba})),_0x2e3469=_0x3b99ef[_0x13056a(0x143)](_0x35d54a=>projectAppConfig(_0x35d54a));return{'ok':!![],'data':{'appCode':_0x48d148['appCode'],'count':_0x2e3469['length'],'configs':_0x2e3469},'message':_0x13056a(0x13c)+_0x2e3469[_0x13056a(0x140)]+_0x13056a(0x13f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a28_0x382231=a28_0x2fb0;(function(_0x3fe9ad,_0x2efd5a){const _0x1ce310=a28_0x2fb0,_0x35f0e3=_0x3fe9ad();while(!![]){try{const _0x112399=parseInt(_0x1ce310(0xa0))/0x1*(-parseInt(_0x1ce310(0x9d))/0x2)+parseInt(_0x1ce310(0x8a))/0x3+parseInt(_0x1ce310(0x8c))/0x4+-parseInt(_0x1ce310(0x95))/0x5+parseInt(_0x1ce310(0xa1))/0x6+parseInt(_0x1ce310(0x97))/0x7+parseInt(_0x1ce310(0x93))/0x8*(-parseInt(_0x1ce310(0x99))/0x9);if(_0x112399===_0x2efd5a)break;else _0x35f0e3['push'](_0x35f0e3['shift']());}catch(_0x2c502d){_0x35f0e3['push'](_0x35f0e3['shift']());}}}(a28_0xf305,0x1d8d0));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';function a28_0x2fb0(_0x3d464d,_0x441140){_0x3d464d=_0x3d464d-0x87;const _0xf3059e=a28_0xf305();let _0x2fb0dd=_0xf3059e[_0x3d464d];return _0x2fb0dd;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH=a28_0x382231(0x87),UPDATE_PATH='/smartapi/app-config/update';export const appConfigSet={'service':a28_0x382231(0x8e),'command':a28_0x382231(0x9f),'description':a28_0x382231(0x91),'risk':a28_0x382231(0x94),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a28_0x382231(0x96),'type':a28_0x382231(0x8f),'description':a28_0x382231(0x98)}],async 'validate'(_0xcc87b3){readKeyArg(_0xcc87b3),readOptionalTags(_0xcc87b3),assertSingleValueSource(_0xcc87b3);},async 'dryRun'(_0xc0c748){const _0x4a9edb=a28_0x382231,_0xed5837=readKeyArg(_0xc0c748),_0xc4bdf3=readOptionalTags(_0xc0c748),_0x29f896=assertSingleValueSource(_0xc0c748);await assertValueSourceReadable(_0x29f896);const _0xcb37ca=await withAppConfigApiBoundary(_0x4a9edb(0x8b),{'appCode':_0xc0c748[_0x4a9edb(0x8d)],'key':_0xed5837},()=>getAppConfigByKey(_0xc0c748[_0x4a9edb(0x8d)],_0xed5837)),_0xf2b739=_0xcb37ca?_0x4a9edb(0x90):_0x4a9edb(0x9a),_0x101e92=_0xcb37ca?projectAppConfig(_0xcb37ca):null,_0x524751=plannedAppConfig({'appCode':_0xc0c748[_0x4a9edb(0x8d)],'key':_0xed5837,'tags':_0xc4bdf3??_0xcb37ca?.[_0x4a9edb(0x9c)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0xf2b739,'appCode':_0xc0c748['appCode'],'key':_0xed5837,'before':_0x101e92,'after':_0x524751,'dryRun':!![]}),{'method':_0x4a9edb(0x9b),'url':_0xf2b739===_0x4a9edb(0x90)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x3a8850){const _0xfbf34d=a28_0x382231,_0x1f37b7=readKeyArg(_0x3a8850),_0x5049a8=readOptionalTags(_0x3a8850),_0x59a61b=await withAppConfigApiBoundary('get',{'appCode':_0x3a8850[_0xfbf34d(0x8d)],'key':_0x1f37b7},()=>getAppConfigByKey(_0x3a8850[_0xfbf34d(0x8d)],_0x1f37b7)),_0x24b9ac=_0x59a61b?projectAppConfig(_0x59a61b):null,_0xba0ebf=_0x59a61b?_0xfbf34d(0x90):_0xfbf34d(0x9a),{value:_0x9d0d10,warnings:_0x1af905}=await readAppConfigValue(_0x3a8850),_0x43837b={'appCode':_0x3a8850[_0xfbf34d(0x8d)],'key':_0x1f37b7,'value':_0x9d0d10,'tags':_0x5049a8??_0x59a61b?.[_0xfbf34d(0x9c)]??undefined};await withAppConfigApiBoundary(_0xba0ebf,{'appCode':_0x3a8850[_0xfbf34d(0x8d)],'key':_0x1f37b7},async()=>{const _0x4b79f4=_0xfbf34d;_0x59a61b?await updateAppConfig({..._0x43837b,'id':requireAppConfigId(_0x59a61b,_0x1f37b7,_0x3a8850[_0x4b79f4(0x8d)])}):await createAppConfig(_0x43837b);});const _0xef0295=await withAppConfigApiBoundary('get',{'appCode':_0x3a8850[_0xfbf34d(0x8d)],'key':_0x1f37b7},()=>getAppConfigByKey(_0x3a8850[_0xfbf34d(0x8d)],_0x1f37b7)),_0x237272=_0xef0295?projectAppConfig(_0xef0295):plannedAppConfig({'appCode':_0x3a8850['appCode'],'key':_0x1f37b7,'tags':_0x43837b[_0xfbf34d(0x9c)],'hasValue':_0x9d0d10!==''});return{'ok':!![],'data':buildMutationData({'operation':_0xba0ebf,'appCode':_0x3a8850[_0xfbf34d(0x8d)],'key':_0x1f37b7,'before':_0x24b9ac,'after':_0x237272,'dryRun':![],'warnings':_0x1af905}),'message':(_0xba0ebf==='update'?_0xfbf34d(0xa2):_0xfbf34d(0x88))+'\x20app\x20config\x20'+_0x1f37b7};}};function a28_0xf305(){const _0xf3b0a2=['545934ykCptH','get','377484Utjsmq','appCode','app-config','string','update','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key',',\x20appCode=','10456kbijAd','write','1101000FglvAz','file','1587040TIqiUJ','Read\x20config\x20value\x20from\x20file','189UEttsm','create','POST','tags','194JSyrVX','apiError','set','1882taEtPv','289032XtonoC','Updated','/smartapi/app-config/create','Created','App\x20config\x20server\x20id\x20missing\x20for\x20key='];a28_0xf305=function(){return _0xf3b0a2;};return a28_0xf305();}function requireAppConfigId(_0x52fb75,_0x58d324,_0x37e396){const _0x587888=a28_0x382231;if(typeof _0x52fb75['id']==='number'&&Number['isFinite'](_0x52fb75['id'])&&_0x52fb75['id']>0x0)return _0x52fb75['id'];throw CliErrors[_0x587888(0x9e)](_0x587888(0x89)+_0x58d324+_0x587888(0x92)+_0x37e396);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x3ad2a6=a29_0x16a4;(function(_0x1b90bd,_0xed0bd9){const _0x49f2d9=a29_0x16a4,_0x3dcb6a=_0x1b90bd();while(!![]){try{const _0x5ebe3f=-parseInt(_0x49f2d9(0x108))/0x1+parseInt(_0x49f2d9(0xf1))/0x2+parseInt(_0x49f2d9(0x112))/0x3*(-parseInt(_0x49f2d9(0x121))/0x4)+-parseInt(_0x49f2d9(0x105))/0x5+parseInt(_0x49f2d9(0x113))/0x6*(parseInt(_0x49f2d9(0x11e))/0x7)+parseInt(_0x49f2d9(0x118))/0x8*(parseInt(_0x49f2d9(0x128))/0x9)+parseInt(_0x49f2d9(0xee))/0xa;if(_0x5ebe3f===_0xed0bd9)break;else _0x3dcb6a['push'](_0x3dcb6a['shift']());}catch(_0x749d87){_0x3dcb6a['push'](_0x3dcb6a['shift']());}}}(a29_0x3372,0x2daff));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a29_0x3ad2a6(0xf6),'description':'Runtime\x20app-config\x20key','required':!![]};function a29_0x3372(){const _0x4eed4a=['value','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','push','argument','name','from-env','Failed\x20to\x20','key:\x20','160015VQDgBG','method','\x20app\x20config.','244022cIAwHg','operation','warnings','path','App\x20config\x20value\x20source\x20is\x20ambiguous.','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','utf8','tags','bool','519753VgqsAm','1063830rQxxRo','appCode:\x20','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','data','Value\x20file\x20is\x20not\x20readable:\x20','8WMEzdB','dryRun','Missing\x20app-config\x20value\x20source.','once','end','gmtModified','7aWxmkm','string','kind','4mJmtJc','flag','Config\x20tags\x20for\x20filtering/display\x20metadata','valueRedacted','file','Missing\x20app-config\x20key.','validation','365499uyVHZL','Environment\x20variable\x20is\x20not\x20set:\x20','App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','join','appCode','boolean','env','532370jDVYQU','gmtCreate','stdin','730516nqqoYg','setEncoding','value\x20is\x20redacted','trim','args','key','length','url','hasValue','Read\x20config\x20value\x20from\x20stdin','str','reveal'];a29_0x3372=function(){return _0x4eed4a;};return a29_0x3372();}export const VALUE_ARG={'name':'value','description':a29_0x3ad2a6(0xfe),'required':![]};export const TAGS_FLAG={'name':a29_0x3ad2a6(0x110),'type':a29_0x3ad2a6(0x11f),'description':a29_0x3ad2a6(0x123)};export const STDIN_FLAG={'name':a29_0x3ad2a6(0xf0),'type':a29_0x3ad2a6(0xec),'description':a29_0x3ad2a6(0xfa),'default':![]};export const FROM_ENV_FLAG={'name':a29_0x3ad2a6(0x102),'type':a29_0x3ad2a6(0x11f),'description':'Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable'};export const REVEAL_FLAG={'name':a29_0x3ad2a6(0xfc),'type':a29_0x3ad2a6(0xec),'description':a29_0x3ad2a6(0x10e),'default':![]};export function readKeyArg(_0x3b28b0){const _0x58e12b=a29_0x3ad2a6,_0x3309a0=_0x3b28b0[_0x58e12b(0xf5)][0x0]?.['trim']()??'';return validateKey(_0x3309a0),_0x3309a0;}export function readOptionalTags(_0x43946e){const _0xc558ef=a29_0x3ad2a6,_0x272e2b=_0x43946e['str'](_0xc558ef(0x110))[_0xc558ef(0xf4)]();if(!_0x272e2b)return undefined;if(_0x272e2b[_0xc558ef(0xf7)]>0x20)throw CliErrors[_0xc558ef(0x127)](_0xc558ef(0xe8));return _0x272e2b;}export function validateKey(_0x42bb9c){const _0x504424=a29_0x3ad2a6;if(!_0x42bb9c)throw CliErrors['validation'](_0x504424(0x126));if(_0x42bb9c['length']>0x100)throw CliErrors[_0x504424(0x127)](_0x504424(0x10d));}export function projectAppConfig(_0x1be3b2,_0x4bbce7){const _0x2f937d=a29_0x3ad2a6,_0x37ca45=_0x1be3b2['value']!==undefined&&_0x1be3b2[_0x2f937d(0xfd)]!==null&&_0x1be3b2[_0x2f937d(0xfd)]!=='',_0x421b19={'appCode':_0x1be3b2[_0x2f937d(0xeb)],'key':_0x1be3b2[_0x2f937d(0xf6)],'tags':_0x1be3b2[_0x2f937d(0x110)]??undefined,'hasValue':_0x37ca45,'valueRedacted':_0x37ca45&&!_0x4bbce7?.[_0x2f937d(0xfc)],'gmtCreate':_0x1be3b2[_0x2f937d(0xef)],'gmtModified':_0x1be3b2[_0x2f937d(0x11d)]};return _0x4bbce7?.[_0x2f937d(0xfc)]&&(_0x421b19[_0x2f937d(0xfd)]=_0x1be3b2[_0x2f937d(0xfd)]??'',_0x421b19[_0x2f937d(0x124)]=![]),_0x421b19;}export function plannedAppConfig(_0x3f081a){const _0x5d0a16=a29_0x3ad2a6,_0x4905d0=_0x3f081a[_0x5d0a16(0xf9)]??!![];return{'appCode':_0x3f081a[_0x5d0a16(0xeb)],'key':_0x3f081a['key'],'tags':_0x3f081a[_0x5d0a16(0x110)]??undefined,'hasValue':_0x4905d0,'valueRedacted':_0x4905d0};}export function buildMutationData(_0x35f82f){const _0x16c243=a29_0x3ad2a6;return{'operation':_0x35f82f[_0x16c243(0x109)],'selector':{'appCode':_0x35f82f[_0x16c243(0xeb)],'key':_0x35f82f[_0x16c243(0xf6)]},'before':_0x35f82f['before'],'after':_0x35f82f['after'],'dryRun':_0x35f82f[_0x16c243(0x119)],'warnings':_0x35f82f[_0x16c243(0x10a)]??[]};}export async function withAppConfigApiBoundary(_0x184329,_0x40c247,_0x51a74d){const _0x5d9762=a29_0x3ad2a6;try{return await _0x51a74d();}catch{const _0xf1ba4f=[_0x5d9762(0x114)+_0x40c247[_0x5d9762(0xeb)]];if(_0x40c247['key'])_0xf1ba4f[_0x5d9762(0xff)](_0x5d9762(0x104)+_0x40c247[_0x5d9762(0xf6)]);_0xf1ba4f['push'](_0x5d9762(0xf3));throw CliErrors['apiError'](_0x5d9762(0x103)+_0x184329+_0x5d9762(0x107),_0xf1ba4f[_0x5d9762(0xea)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x3b6318,_0x5ab7b7){const _0x9a5bf7=a29_0x3ad2a6;return Object['defineProperties'](_0x3b6318,{'method':{'value':_0x5ab7b7[_0x9a5bf7(0x106)],'enumerable':![]},'url':{'value':_0x5ab7b7[_0x9a5bf7(0xf8)],'enumerable':![]}});}function a29_0x16a4(_0x58a9c9,_0x13e9b7){_0x58a9c9=_0x58a9c9-0xe7;const _0x33727e=a29_0x3372();let _0x16a452=_0x33727e[_0x58a9c9];return _0x16a452;}export function assertSingleValueSource(_0x5754f7){const _0x3f48b3=a29_0x3ad2a6,_0x169646=[];_0x5754f7[_0x3f48b3(0xf5)][_0x3f48b3(0xf7)]>0x1&&_0x169646[_0x3f48b3(0xff)]({'kind':'argument','value':_0x5754f7['args']['slice'](0x1)[_0x3f48b3(0xea)]('\x20')});const _0x31ef56=_0x5754f7[_0x3f48b3(0x122)](_0x3f48b3(0xfd));_0x31ef56!==undefined&&_0x31ef56!==null&&_0x169646[_0x3f48b3(0xff)]({'kind':_0x3f48b3(0x100),'value':String(_0x31ef56)});_0x5754f7[_0x3f48b3(0x111)](_0x3f48b3(0xf0))&&_0x169646['push']({'kind':_0x3f48b3(0xf0)});const _0x55caf6=_0x5754f7[_0x3f48b3(0xfb)](_0x3f48b3(0x102))['trim']();_0x55caf6&&_0x169646[_0x3f48b3(0xff)]({'kind':_0x3f48b3(0xed),'name':_0x55caf6});const _0x107a54=_0x5754f7[_0x3f48b3(0xfb)](_0x3f48b3(0x125))['trim']();_0x107a54&&_0x169646[_0x3f48b3(0xff)]({'kind':_0x3f48b3(0x125),'path':_0x107a54});if(_0x169646['length']===0x0)throw CliErrors[_0x3f48b3(0x127)](_0x3f48b3(0x11a),_0x3f48b3(0xe9));if(_0x169646[_0x3f48b3(0xf7)]>0x1)throw CliErrors[_0x3f48b3(0x127)](_0x3f48b3(0x10c),_0x3f48b3(0x115));return _0x169646[0x0];}export async function assertValueSourceReadable(_0x328c94){const _0x48b543=a29_0x3ad2a6;if(_0x328c94['kind']===_0x48b543(0xed)&&!(_0x328c94[_0x48b543(0x101)]in process.env))throw CliErrors[_0x48b543(0x127)](_0x48b543(0xe7)+_0x328c94['name']);if(_0x328c94['kind']===_0x48b543(0x125))try{await access(_0x328c94['path']);}catch{throw CliErrors['validation'](_0x48b543(0x117)+_0x328c94[_0x48b543(0x10b)]);}}export async function readAppConfigValue(_0x1ca696){const _0x527745=a29_0x3ad2a6,_0x573372=assertSingleValueSource(_0x1ca696),_0x3a524c=[];if(_0x573372[_0x527745(0x120)]==='argument')return _0x3a524c[_0x527745(0xff)]('Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.'),{'value':_0x573372[_0x527745(0xfd)]??'','source':_0x573372[_0x527745(0x120)],'warnings':_0x3a524c};if(_0x573372[_0x527745(0x120)]===_0x527745(0xf0))return{'value':await readStdin(),'source':_0x573372[_0x527745(0x120)],'warnings':_0x3a524c};if(_0x573372['kind']===_0x527745(0xed)){if(!(_0x573372[_0x527745(0x101)]in process.env))throw CliErrors[_0x527745(0x127)](_0x527745(0xe7)+_0x573372['name']);return{'value':process.env[_0x573372.name]??'','source':_0x573372[_0x527745(0x120)],'warnings':_0x3a524c};}return{'value':await readFile(_0x573372['path'],'utf8'),'source':_0x573372[_0x527745(0x120)],'warnings':_0x3a524c};}function readStdin(){return new Promise((_0x316c23,_0x2df832)=>{const _0x21d43=a29_0x16a4;let _0x2cf94d='';process[_0x21d43(0xf0)][_0x21d43(0xf2)](_0x21d43(0x10f)),process['stdin']['on'](_0x21d43(0x116),_0x3b6547=>{_0x2cf94d+=_0x3b6547;}),process[_0x21d43(0xf0)][_0x21d43(0x11b)](_0x21d43(0x11c),()=>_0x316c23(_0x2cf94d)),process[_0x21d43(0xf0)][_0x21d43(0x11b)]('error',_0x2df832);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a30_0x4f82(_0x4bb7f2,_0x391968){_0x4bb7f2=_0x4bb7f2-0xad;const _0x4e9ae8=a30_0x4e9a();let _0x4f82f1=_0x4e9ae8[_0x4bb7f2];return _0x4f82f1;}const a30_0x3588d4=a30_0x4f82;(function(_0x1871a2,_0x45ca2a){const _0x2ecda2=a30_0x4f82,_0x4b1bae=_0x1871a2();while(!![]){try{const _0x1d66b4=-parseInt(_0x2ecda2(0xc2))/0x1+-parseInt(_0x2ecda2(0xb2))/0x2*(-parseInt(_0x2ecda2(0xb0))/0x3)+parseInt(_0x2ecda2(0xc0))/0x4*(parseInt(_0x2ecda2(0xb8))/0x5)+parseInt(_0x2ecda2(0xb4))/0x6*(parseInt(_0x2ecda2(0xaf))/0x7)+parseInt(_0x2ecda2(0xb3))/0x8+-parseInt(_0x2ecda2(0xb7))/0x9*(-parseInt(_0x2ecda2(0xc1))/0xa)+-parseInt(_0x2ecda2(0xbf))/0xb*(parseInt(_0x2ecda2(0xc3))/0xc);if(_0x1d66b4===_0x45ca2a)break;else _0x4b1bae['push'](_0x4b1bae['shift']());}catch(_0x4e7e3a){_0x4b1bae['push'](_0x4b1bae['shift']());}}}(a30_0x4e9a,0xee502));function a30_0x4e9a(){const _0x452690=['boolean','logout','495066ARRAqG','12128btqzdC','40jINPuW','1178724sFgfdx','1104xoVbpw','bool','✓\x20Logged\x20out','5075DLlXDE','3hdiCdQ','yes','3809006ctJGdX','1108528rgEEpu','8190MGnyCl','write','!\x20Not\x20logged\x20in','3097818KAawtA','3110FTHXsr','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','log','auth','Clear\x20login\x20session'];a30_0x4e9a=function(){return _0x452690;};return a30_0x4e9a();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':a30_0x3588d4(0xbb),'command':'login','description':'Login\x20via\x20browser','risk':a30_0x3588d4(0xb5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a30_0x3588d4(0xb1),'type':a30_0x3588d4(0xbd),'description':a30_0x3588d4(0xb9),'default':![]}],async 'execute'(_0x4d6380){const _0x3510ae=a30_0x3588d4,{runAuthServer:_0x3752b5}=await import('../../auth/auth-server-ui.js');return await _0x3752b5({'autoYes':_0x4d6380[_0x3510ae(0xad)](_0x3510ae(0xb1)),'nonInteractive':_0x4d6380['nonInteractive']}),{'ok':!![]};}},{'service':'auth','command':a30_0x3588d4(0xbe),'description':a30_0x3588d4(0xbc),'risk':a30_0x3588d4(0xb5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5c135f){const _0x4db81a=a30_0x3588d4;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x4db81a(0xba)](_0x4db81a(0xae))):console[_0x4db81a(0xba)](_0x4db81a(0xb6)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a31_0x50caba=a31_0x26df;(function(_0x479532,_0x40c860){const _0x105bac=a31_0x26df,_0x34aa5c=_0x479532();while(!![]){try{const _0x29c95f=parseInt(_0x105bac(0x18c))/0x1+parseInt(_0x105bac(0x18e))/0x2*(-parseInt(_0x105bac(0x198))/0x3)+parseInt(_0x105bac(0x195))/0x4+parseInt(_0x105bac(0x1b9))/0x5+-parseInt(_0x105bac(0x1a5))/0x6*(parseInt(_0x105bac(0x19d))/0x7)+-parseInt(_0x105bac(0x18d))/0x8*(-parseInt(_0x105bac(0x1dc))/0x9)+parseInt(_0x105bac(0x187))/0xa;if(_0x29c95f===_0x40c860)break;else _0x34aa5c['push'](_0x34aa5c['shift']());}catch(_0x5d69c4){_0x34aa5c['push'](_0x34aa5c['shift']());}}}(a31_0x1312,0x209d9));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';function a31_0x1312(){const _0x3e0872=['join','HOOK\x20requires\x20alias/operation/node\x20options.','.js\x0a\x20*\x20[触发节点]\x20','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','str','keys','No\x20datasets\x20found\x20for\x20this\x20app.','datasetId','390130PojfPM','map','/HOOK/','\x22.\x20','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','No\x20api.ts\x20found.\x20Run\x20`','nonInteractive','修改后的请求参数','appCode','Select\x20operation\x20type:','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','trim','string','.js','after','Select\x20trigger\x20node:','question','length','stdin','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','Invalid\x20dataset\x20selection.','validation','tableName','functionNode','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','/COMMON/','apiDir','Select\x20dataset:','isInteger','name','修改后的响应结果','utf8','No\x20operation\x20types\x20found\x20for\x20dataset\x20','418959OxUPAG','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','.js\x0a','stderr','close','before','当前响应结果','\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[平台配置]\x20','/data/dataset/','Operation\x20type\x20(HOOK\x20only)','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','Trigger\x20node\x20(HOOK\x20only)','description','Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','operation-type','alias','scriptsRootDir','write','1020160WqltbI','\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','\x22,\x20params\x20})\x0a','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20',']\x20(','194618dDCZaP','8mIJClO','2SIgDRg','COMMON','code','includes','\x20api\x20pull`\x20to\x20refresh.','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','222884CFMIow','Created\x20','bff','382191nHyJPx','/**\x0a\x20*\x20','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','operationType','ENDPOINT','7ZWlAxg','datasetCode','Alias\x20\x22','\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','type','\x22\x20not\x20found\x20for\x20dataset\x20','function-node','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','1295652WCLgKR','File\x20already\x20exists:\x20','Script\x20type','/ENDPOINT/','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)','HOOK','Invalid\x20function\x20name\x20\x22','Dataset\x20not\x20found\x20for\x20code\x20\x22','Operation\x20type\x20\x22','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','Script\x20description','find'];a31_0x1312=function(){return _0x3e0872;};return a31_0x1312();}import{resolveApiFilePath}from'../../context.js';function a31_0x26df(_0x8796a9,_0x9a2a36){_0x8796a9=_0x8796a9-0x176;const _0x131217=a31_0x1312();let _0x26df4c=_0x131217[_0x8796a9];return _0x26df4c;}import{loadBffProjectConfig}from'../../core/bff/config.js';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':a31_0x50caba(0x197),'command':'create','description':a31_0x50caba(0x182),'risk':'read','flags':[{'name':a31_0x50caba(0x1a1),'type':a31_0x50caba(0x1c5),'required':!![],'enum':[a31_0x50caba(0x18f),a31_0x50caba(0x19c),a31_0x50caba(0x1aa)],'description':a31_0x50caba(0x1a7)},{'name':'name','type':a31_0x50caba(0x1c5),'required':!![],'description':'Function\x20name\x20(valid\x20JS\x20identifier)'},{'name':a31_0x50caba(0x181),'type':'string','description':a31_0x50caba(0x1af)},{'name':a31_0x50caba(0x184),'type':'string','description':a31_0x50caba(0x1a9)},{'name':'datasetcode','type':'string','description':a31_0x50caba(0x1b4)},{'name':a31_0x50caba(0x183),'type':'string','description':a31_0x50caba(0x17e)},{'name':'function-node','type':a31_0x50caba(0x1c5),'description':a31_0x50caba(0x180),'enum':[a31_0x50caba(0x179),a31_0x50caba(0x1c7)]}],async 'validate'(_0x1d2712){const _0x165444=a31_0x50caba,_0x58bc59=_0x1d2712['str'](_0x165444(0x1d8));if(!isValidBffFunctionName(_0x58bc59))throw CliErrors[_0x165444(0x1d0)](_0x165444(0x1ab)+_0x58bc59+_0x165444(0x193));},async 'execute'(_0x23bb61){const _0x369fd7=a31_0x50caba,_0x53161a=loadBffProjectConfig(_0x23bb61[_0x369fd7(0x1c1)]),_0xfa163f=_0x23bb61[_0x369fd7(0x1b5)](_0x369fd7(0x1a1)),_0x1e737d=_0x23bb61[_0x369fd7(0x1b5)](_0x369fd7(0x1d8)),_0x5d1ea1=_0x23bb61[_0x369fd7(0x1b5)](_0x369fd7(0x181))||undefined,_0x96d584=_0xfa163f===_0x369fd7(0x1aa)?await resolveHookOptions(_0x53161a,_0x23bb61):undefined,_0x5722a6=buildFilePath(_0x53161a,_0xfa163f,_0x1e737d,_0x96d584);if(await fileExists(_0x5722a6))throw CliErrors['validation'](_0x369fd7(0x1a6)+_0x5722a6);await mkdir(dirname(_0x5722a6),{'recursive':!![]});const _0x2e6e75=generateTemplate(_0xfa163f,_0x1e737d,_0x23bb61[_0x369fd7(0x1c1)],_0x5d1ea1,_0x96d584);await writeFile(_0x5722a6,_0x2e6e75,_0x369fd7(0x1da));const _0x2bf052={'type':_0xfa163f,'name':_0x1e737d,'path':_0x5722a6};if(_0x5d1ea1)_0x2bf052['description']=_0x5d1ea1;if(_0x96d584){if(_0x96d584['alias'])_0x2bf052['alias']=_0x96d584['alias'];_0x2bf052[_0x369fd7(0x19e)]=_0x96d584[_0x369fd7(0x19e)],_0x2bf052[_0x369fd7(0x19b)]=_0x96d584['operationType'],_0x2bf052[_0x369fd7(0x1d2)]=_0x96d584['functionNode'];}return{'ok':!![],'data':_0x2bf052,'message':_0x369fd7(0x196)+_0xfa163f+'\x20function:\x20'+_0x1e737d};}};async function resolveHookOptions(_0x5b471b,_0x1567ac){const _0x2ac6c7=a31_0x50caba,_0x410479=loadAliasMap(_0x1567ac['apiDir'],undefined,resolveApiFilePath(_0x1567ac[_0x2ac6c7(0x1d5)],_0x1567ac[_0x2ac6c7(0x1c1)])),_0x1f8436=_0x410479[_0x2ac6c7(0x1ca)]>0x0;let _0x55e6a2,_0x4f6d40,_0x13cee1;const _0x4c2613=_0x1567ac[_0x2ac6c7(0x1b5)](_0x2ac6c7(0x184)),_0x49acba=_0x1567ac[_0x2ac6c7(0x1b5)]('datasetcode');if(_0x4c2613){const _0x4bf6c4=resolveAlias(_0x1567ac[_0x2ac6c7(0x1d5)],_0x4c2613,undefined,resolveApiFilePath(_0x1567ac[_0x2ac6c7(0x1d5)],_0x1567ac['appCode']));if(!_0x4bf6c4){const _0x5356b8=_0x1f8436?'Available\x20aliases:\x20'+_0x410479['map'](_0x5a7d7e=>_0x5a7d7e[_0x2ac6c7(0x184)])[_0x2ac6c7(0x1b1)](',\x20'):_0x2ac6c7(0x1be)+CLI_BIN_NAME+_0x2ac6c7(0x19a);throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x19f)+_0x4c2613+'\x22\x20not\x20found.\x20'+_0x5356b8);}_0x55e6a2=_0x4c2613,_0x4f6d40=_0x4bf6c4;}else{if(_0x49acba){_0x4f6d40=_0x49acba;const _0x302c75=_0x410479[_0x2ac6c7(0x1b0)](_0xc29bd6=>_0xc29bd6[_0x2ac6c7(0x19e)]===_0x49acba);_0x55e6a2=_0x302c75?.[_0x2ac6c7(0x184)];}else{if(_0x1567ac['nonInteractive'])throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x1ce));else{if(_0x1f8436){const _0x486963=_0x410479[_0x2ac6c7(0x1ba)](_0x41d44e=>_0x41d44e[_0x2ac6c7(0x184)]+'\x20('+_0x41d44e[_0x2ac6c7(0x1d1)]+')'),_0x12d1b1=await promptSelect('Select\x20dataset:',_0x486963),_0x5b80d6=_0x410479[_0x12d1b1];if(!_0x5b80d6)throw CliErrors[_0x2ac6c7(0x1d0)]('Invalid\x20dataset\x20selection.');_0x55e6a2=_0x5b80d6[_0x2ac6c7(0x184)],_0x4f6d40=_0x5b80d6[_0x2ac6c7(0x19e)];}else{const _0x3c00aa=await listDatasets(_0x1567ac[_0x2ac6c7(0x1c1)]);if(_0x3c00aa[_0x2ac6c7(0x1ca)]===0x0)throw CliErrors['validation'](_0x2ac6c7(0x1b7));const _0x324488=_0x3c00aa[_0x2ac6c7(0x1ba)](_0x36aa55=>_0x36aa55[_0x2ac6c7(0x1d8)]+'\x20['+(_0x36aa55['source']??'UNKNOWN')+_0x2ac6c7(0x18b)+_0x36aa55['code']+')'),_0x39404d=await promptSelect(_0x2ac6c7(0x1d6),_0x324488),_0x2d4953=_0x3c00aa[_0x39404d];if(!_0x2d4953)throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x1cf));_0x4f6d40=_0x2d4953['code'],_0x55e6a2=undefined;}}}}const _0x534f43=await listDatasets(_0x1567ac[_0x2ac6c7(0x1c1)]),_0x306fc1=_0x534f43[_0x2ac6c7(0x1b0)](_0x27da5d=>_0x27da5d[_0x2ac6c7(0x190)]===_0x4f6d40);if(!_0x306fc1)throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x1ac)+_0x4f6d40+_0x2ac6c7(0x1bc)+(_0x55e6a2?'The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`'+CLI_BIN_NAME+_0x2ac6c7(0x192):''));_0x13cee1=_0x306fc1['id'];const _0x37f2e9=_0x55e6a2??_0x4f6d40,_0x564f98=await listBffDatasetOperations(_0x1567ac['appCode'],_0x13cee1),_0x1033a8=_0x564f98?Object[_0x2ac6c7(0x1b6)](_0x564f98):[];if(_0x1033a8[_0x2ac6c7(0x1ca)]===0x0)throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x1db)+_0x37f2e9+'.');let _0x13ced3;const _0x8c6ee3=_0x1567ac[_0x2ac6c7(0x1b5)](_0x2ac6c7(0x183));if(_0x8c6ee3){if(!_0x1033a8[_0x2ac6c7(0x191)](_0x8c6ee3))throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x1ad)+_0x8c6ee3+_0x2ac6c7(0x1a2)+_0x37f2e9+'.\x20'+('Available:\x20'+_0x1033a8[_0x2ac6c7(0x1b1)](',\x20')));_0x13ced3=_0x8c6ee3;}else{if(_0x1567ac[_0x2ac6c7(0x1bf)])throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x17f));const _0x1e45ce=await promptSelect(_0x2ac6c7(0x1c2),_0x1033a8);_0x13ced3=_0x1033a8[_0x1e45ce]??_0x1033a8[0x0];}let _0x2d25fe=normalizeHookFunctionNode(_0x1567ac[_0x2ac6c7(0x1b5)]('function-node'));if(!_0x2d25fe){if(_0x1567ac[_0x2ac6c7(0x1b5)](_0x2ac6c7(0x1a3)))throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x1cd));if(_0x1567ac[_0x2ac6c7(0x1bf)])throw CliErrors[_0x2ac6c7(0x1d0)](_0x2ac6c7(0x1dd));const _0xa7b599=await promptSelect(_0x2ac6c7(0x1c8),['before',_0x2ac6c7(0x1c7)]);_0x2d25fe=[_0x2ac6c7(0x179),_0x2ac6c7(0x1c7)][_0xa7b599]??_0x2ac6c7(0x179);}return{'alias':_0x55e6a2,'datasetCode':_0x4f6d40,'datasetId':_0x13cee1,'operationType':_0x13ced3,'functionNode':_0x2d25fe};}async function promptSelect(_0x35412f,_0x2ed7c9){const _0x1050c7=a31_0x50caba;if(_0x2ed7c9[_0x1050c7(0x1ca)]===0x1)return 0x0;for(const [_0x1aada5,_0x4c66e0]of _0x2ed7c9['entries']()){process[_0x1050c7(0x177)][_0x1050c7(0x186)]('\x20\x20'+(_0x1aada5+0x1)+'.\x20'+_0x4c66e0+'\x0a');}const _0x127b8a=createInterface({'input':process[_0x1050c7(0x1cb)],'output':process[_0x1050c7(0x177)]});while(!![]){const _0x3c6205=await new Promise(_0x508c40=>{const _0x40dc4f=_0x1050c7;_0x127b8a[_0x40dc4f(0x1c9)](_0x35412f+'\x20',_0x508c40);}),_0x4ece8c=Number['parseInt'](_0x3c6205[_0x1050c7(0x1c4)](),0xa);if(Number[_0x1050c7(0x1d7)](_0x4ece8c)&&_0x4ece8c>=0x1&&_0x4ece8c<=_0x2ed7c9[_0x1050c7(0x1ca)])return _0x127b8a[_0x1050c7(0x178)](),_0x4ece8c-0x1;process[_0x1050c7(0x177)][_0x1050c7(0x186)](_0x1050c7(0x1ae)+_0x2ed7c9[_0x1050c7(0x1ca)]+'.\x0a');}}function buildFilePath(_0x2cfc2e,_0x34bb91,_0x24d0b8,_0x3139d5){const _0x31f5d8=a31_0x50caba;if(_0x34bb91===_0x31f5d8(0x1aa)){if(!_0x3139d5)throw CliErrors[_0x31f5d8(0x1d0)](_0x31f5d8(0x1b2));const _0x11191b=_0x3139d5[_0x31f5d8(0x184)]??_0x3139d5[_0x31f5d8(0x19e)];return join(_0x2cfc2e[_0x31f5d8(0x185)],_0x31f5d8(0x1aa),_0x11191b,_0x3139d5[_0x31f5d8(0x19b)],_0x3139d5[_0x31f5d8(0x1d2)],_0x24d0b8+_0x31f5d8(0x1c6));}return join(_0x2cfc2e[_0x31f5d8(0x185)],_0x34bb91,_0x24d0b8+_0x31f5d8(0x1c6));}export function generateTemplate(_0x46f4fc,_0x5d48e8,_0x28fd4f,_0x45f514,_0x15d2f6){const _0x4e923e=a31_0x50caba,_0x421ab9=_0x45f514?.[_0x4e923e(0x1c4)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x3ed8a3=getAppBaseUrl(_0x28fd4f),_0x643b56=_0x4e923e(0x1d3);if(_0x46f4fc===_0x4e923e(0x18f))return _0x4e923e(0x199)+_0x421ab9+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20'+_0x5d48e8+_0x4e923e(0x17c)+_0x3ed8a3+_0x4e923e(0x1cc)+_0x28fd4f+_0x4e923e(0x1d4)+_0x5d48e8+'.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22'+_0x5d48e8+_0x4e923e(0x189)+_0x643b56+_0x4e923e(0x188)+_0x5d48e8+_0x4e923e(0x194);if(_0x46f4fc===_0x4e923e(0x19c))return _0x4e923e(0x199)+_0x421ab9+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20'+_0x5d48e8+'\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/'+_0x28fd4f+'/'+_0x5d48e8+_0x4e923e(0x17c)+_0x3ed8a3+_0x4e923e(0x1cc)+_0x28fd4f+_0x4e923e(0x1a8)+_0x5d48e8+_0x4e923e(0x176)+_0x643b56+_0x4e923e(0x1a0)+_0x5d48e8+_0x4e923e(0x194);if(!_0x15d2f6)throw CliErrors[_0x4e923e(0x1d0)](_0x4e923e(0x1bd));const _0x583b8b=_0x15d2f6['alias']??_0x15d2f6['datasetCode'],_0x5eebba=_0x15d2f6[_0x4e923e(0x1d2)]===_0x4e923e(0x179)?'当前请求参数':_0x4e923e(0x17a),_0x36412d=_0x15d2f6[_0x4e923e(0x1d2)]===_0x4e923e(0x179)?_0x4e923e(0x1c0):_0x4e923e(0x1d9);return _0x4e923e(0x199)+_0x421ab9+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20'+_0x5d48e8+_0x4e923e(0x1a4)+_0x28fd4f+'/'+_0x15d2f6['datasetCode']+'/'+_0x15d2f6[_0x4e923e(0x19b)]+_0x4e923e(0x17c)+_0x3ed8a3+_0x4e923e(0x17d)+_0x15d2f6[_0x4e923e(0x1b8)]+'#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/'+_0x28fd4f+_0x4e923e(0x1bb)+_0x583b8b+'/'+_0x15d2f6[_0x4e923e(0x19b)]+'/'+_0x15d2f6[_0x4e923e(0x1d2)]+'/'+_0x5d48e8+_0x4e923e(0x1b3)+_0x15d2f6['functionNode']+'\x0a'+_0x643b56+_0x4e923e(0x17b)+_0x5eebba+_0x4e923e(0x18a)+_0x36412d+_0x4e923e(0x1c3)+_0x5d48e8+_0x4e923e(0x194);}
|
|
1
|
+
const a31_0xc5e9df=a31_0x5007;(function(_0x5b68b5,_0x16f99f){const _0x34d099=a31_0x5007,_0x7e912=_0x5b68b5();while(!![]){try{const _0x43964d=-parseInt(_0x34d099(0x18c))/0x1+parseInt(_0x34d099(0x1c1))/0x2*(-parseInt(_0x34d099(0x1b2))/0x3)+parseInt(_0x34d099(0x1c7))/0x4*(parseInt(_0x34d099(0x1a2))/0x5)+parseInt(_0x34d099(0x1cf))/0x6*(-parseInt(_0x34d099(0x171))/0x7)+-parseInt(_0x34d099(0x1b6))/0x8*(parseInt(_0x34d099(0x193))/0x9)+-parseInt(_0x34d099(0x1a6))/0xa*(parseInt(_0x34d099(0x1cc))/0xb)+parseInt(_0x34d099(0x1a4))/0xc*(parseInt(_0x34d099(0x1b7))/0xd);if(_0x43964d===_0x16f99f)break;else _0x7e912['push'](_0x7e912['shift']());}catch(_0x106768){_0x7e912['push'](_0x7e912['shift']());}}}(a31_0x439b,0x83c18));import{createInterface}from'node:readline';import{mkdir,writeFile}from'node:fs/promises';import{dirname,join}from'node:path';function a31_0x5007(_0x616c5f,_0x2e656f){_0x616c5f=_0x616c5f-0x168;const _0x439b1d=a31_0x439b();let _0x5007f3=_0x439b1d[_0x616c5f];return _0x5007f3;}import{listDatasets,listBffDatasetOperations}from'../../core/api-client.js';import{loadAliasMap,resolveAlias}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a31_0x439b(){const _0x4a90d0=['str','datasetId','Script\x20description','\x20function:\x20','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20','string','21fanbyy','stdin','nonInteractive','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','.js\x0a','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','Invalid\x20dataset\x20selection.','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','ENDPOINT','validation','utf8','entries','map','question','after','operation-type','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','alias','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','tableName','scriptsRootDir','Script\x20type','code','\x22,\x20params\x20})\x0a','701007MssBMy','name','Select\x20operation\x20type:','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','Available\x20aliases:\x20','trim','9FEptZe','/data/dataset/','description','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','function-node','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/','No\x20datasets\x20found\x20for\x20this\x20app.','#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','type','/**\x0a\x20*\x20','create','before','当前响应结果','.js','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','88295DOJJgK','datasetcode','62052CBWhzN','\x22\x20not\x20found\x20for\x20dataset\x20','4670sYnMFA','length','Select\x20dataset:','UNKNOWN','operationType','/HOOK/','appCode','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','join','COMMON','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.',']\x20(','30KewpGt','apiDir','Alias\x20\x22','isInteger','5048504GbjytH','7579FiaqLP','HOOK','datasetCode','No\x20operation\x20types\x20found\x20for\x20dataset\x20','Function\x20name\x20(valid\x20JS\x20identifier)','includes','\x0a\x20*\x20[平台配置]\x20','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)','修改后的请求参数','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','15796VbQmFV','HOOK\x20requires\x20alias/operation/node\x20options.','Dataset\x20not\x20found\x20for\x20code\x20\x22','Operation\x20type\x20\x22','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','\x22\x20not\x20found.\x20','8ucRoHe','find','No\x20api.ts\x20found.\x20Run\x20`','stderr','functionNode','4796iBXZWS','/COMMON/','write','1791354JLBqez','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','Available:\x20','/ENDPOINT/','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','Invalid\x20function\x20name\x20\x22'];a31_0x439b=function(){return _0x4a90d0;};return a31_0x439b();}import{loadBffProjectConfig}from'../../core/bff/config.js';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':'bff','command':a31_0xc5e9df(0x19d),'description':a31_0xc5e9df(0x176),'risk':'read','flags':[{'name':a31_0xc5e9df(0x19b),'type':'string','required':!![],'enum':[a31_0xc5e9df(0x1af),a31_0xc5e9df(0x17b),a31_0xc5e9df(0x1b8)],'description':a31_0xc5e9df(0x189)},{'name':'name','type':'string','required':!![],'description':a31_0xc5e9df(0x1bb)},{'name':a31_0xc5e9df(0x195),'type':a31_0xc5e9df(0x170),'description':a31_0xc5e9df(0x16d)},{'name':a31_0xc5e9df(0x184),'type':a31_0xc5e9df(0x170),'description':a31_0xc5e9df(0x1be)},{'name':a31_0xc5e9df(0x1a3),'type':'string','description':'Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)'},{'name':'operation-type','type':a31_0xc5e9df(0x170),'description':'Operation\x20type\x20(HOOK\x20only)'},{'name':'function-node','type':a31_0xc5e9df(0x170),'description':'Trigger\x20node\x20(HOOK\x20only)','enum':[a31_0xc5e9df(0x19e),'after']}],async 'validate'(_0x734ec4){const _0x34d72a=a31_0xc5e9df,_0x460735=_0x734ec4[_0x34d72a(0x16b)](_0x34d72a(0x18d));if(!isValidBffFunctionName(_0x460735))throw CliErrors[_0x34d72a(0x17c)](_0x34d72a(0x16a)+_0x460735+_0x34d72a(0x1d0));},async 'execute'(_0x406e2c){const _0x3ff7c4=a31_0xc5e9df,_0xbd2826=loadBffProjectConfig(_0x406e2c[_0x3ff7c4(0x1ac)]),_0x33fd89=_0x406e2c[_0x3ff7c4(0x16b)](_0x3ff7c4(0x19b)),_0x454edc=_0x406e2c['str'](_0x3ff7c4(0x18d)),_0x201206=_0x406e2c[_0x3ff7c4(0x16b)](_0x3ff7c4(0x195))||undefined,_0x1a8f74=_0x33fd89===_0x3ff7c4(0x1b8)?await resolveHookOptions(_0xbd2826,_0x406e2c):undefined,_0x328690=buildFilePath(_0xbd2826,_0x33fd89,_0x454edc,_0x1a8f74);if(await fileExists(_0x328690))throw CliErrors[_0x3ff7c4(0x17c)]('File\x20already\x20exists:\x20'+_0x328690);await mkdir(dirname(_0x328690),{'recursive':!![]});const _0x31fc78=generateTemplate(_0x33fd89,_0x454edc,_0x406e2c[_0x3ff7c4(0x1ac)],_0x201206,_0x1a8f74);await writeFile(_0x328690,_0x31fc78,_0x3ff7c4(0x17d));const _0x101a61={'type':_0x33fd89,'name':_0x454edc,'path':_0x328690};if(_0x201206)_0x101a61['description']=_0x201206;if(_0x1a8f74){if(_0x1a8f74['alias'])_0x101a61[_0x3ff7c4(0x184)]=_0x1a8f74['alias'];_0x101a61['datasetCode']=_0x1a8f74[_0x3ff7c4(0x1b9)],_0x101a61['operationType']=_0x1a8f74[_0x3ff7c4(0x1aa)],_0x101a61['functionNode']=_0x1a8f74[_0x3ff7c4(0x1cb)];}return{'ok':!![],'data':_0x101a61,'message':'Created\x20'+_0x33fd89+_0x3ff7c4(0x16e)+_0x454edc};}};async function resolveHookOptions(_0x522aae,_0x34fb87){const _0x5e65ca=a31_0xc5e9df,_0x52f774=loadAliasMap(_0x34fb87[_0x5e65ca(0x1b3)],undefined,resolveApiFilePath(_0x34fb87[_0x5e65ca(0x1b3)],_0x34fb87[_0x5e65ca(0x1ac)])),_0x238d02=_0x52f774[_0x5e65ca(0x1a7)]>0x0;let _0x280de7,_0x3359b7,_0x52054f;const _0x48e061=_0x34fb87[_0x5e65ca(0x16b)](_0x5e65ca(0x184)),_0x31f08d=_0x34fb87['str'](_0x5e65ca(0x1a3));if(_0x48e061){const _0x23b86e=resolveAlias(_0x34fb87['apiDir'],_0x48e061,undefined,resolveApiFilePath(_0x34fb87[_0x5e65ca(0x1b3)],_0x34fb87[_0x5e65ca(0x1ac)]));if(!_0x23b86e){const _0xfdeda6=_0x238d02?_0x5e65ca(0x191)+_0x52f774[_0x5e65ca(0x17f)](_0xfde0cf=>_0xfde0cf['alias'])[_0x5e65ca(0x1ae)](',\x20'):_0x5e65ca(0x1c9)+CLI_BIN_NAME+_0x5e65ca(0x178);throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x1b4)+_0x48e061+_0x5e65ca(0x1c6)+_0xfdeda6);}_0x280de7=_0x48e061,_0x3359b7=_0x23b86e;}else{if(_0x31f08d){_0x3359b7=_0x31f08d;const _0x472001=_0x52f774[_0x5e65ca(0x1c8)](_0x36561f=>_0x36561f[_0x5e65ca(0x1b9)]===_0x31f08d);_0x280de7=_0x472001?.['alias'];}else{if(_0x34fb87['nonInteractive'])throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x1c5));else{if(_0x238d02){const _0x1e8252=_0x52f774[_0x5e65ca(0x17f)](_0x167b72=>_0x167b72[_0x5e65ca(0x184)]+'\x20('+_0x167b72[_0x5e65ca(0x187)]+')'),_0xbe5758=await promptSelect(_0x5e65ca(0x1a8),_0x1e8252),_0x218e9c=_0x52f774[_0xbe5758];if(!_0x218e9c)throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x179));_0x280de7=_0x218e9c[_0x5e65ca(0x184)],_0x3359b7=_0x218e9c['datasetCode'];}else{const _0x1b17de=await listDatasets(_0x34fb87[_0x5e65ca(0x1ac)]);if(_0x1b17de['length']===0x0)throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x199));const _0x2d482e=_0x1b17de[_0x5e65ca(0x17f)](_0x55492c=>_0x55492c[_0x5e65ca(0x18d)]+'\x20['+(_0x55492c['source']??_0x5e65ca(0x1a9))+_0x5e65ca(0x1b1)+_0x55492c[_0x5e65ca(0x18a)]+')'),_0x2eaba4=await promptSelect(_0x5e65ca(0x1a8),_0x2d482e),_0x37af5d=_0x1b17de[_0x2eaba4];if(!_0x37af5d)throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x179));_0x3359b7=_0x37af5d[_0x5e65ca(0x18a)],_0x280de7=undefined;}}}}const _0x444056=await listDatasets(_0x34fb87[_0x5e65ca(0x1ac)]),_0x2e49d6=_0x444056[_0x5e65ca(0x1c8)](_0x45d4f5=>_0x45d4f5[_0x5e65ca(0x18a)]===_0x3359b7);if(!_0x2e49d6)throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x1c3)+_0x3359b7+'\x22.\x20'+(_0x280de7?_0x5e65ca(0x183)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh.':''));_0x52054f=_0x2e49d6['id'];const _0x3f93ad=_0x280de7??_0x3359b7,_0x488640=await listBffDatasetOperations(_0x34fb87[_0x5e65ca(0x1ac)],_0x52054f),_0x174815=_0x488640?Object['keys'](_0x488640):[];if(_0x174815[_0x5e65ca(0x1a7)]===0x0)throw CliErrors['validation'](_0x5e65ca(0x1ba)+_0x3f93ad+'.');let _0x308a5a;const _0xc0694f=_0x34fb87[_0x5e65ca(0x16b)](_0x5e65ca(0x182));if(_0xc0694f){if(!_0x174815[_0x5e65ca(0x1bc)](_0xc0694f))throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x1c4)+_0xc0694f+_0x5e65ca(0x1a5)+_0x3f93ad+'.\x20'+(_0x5e65ca(0x1d1)+_0x174815[_0x5e65ca(0x1ae)](',\x20')));_0x308a5a=_0xc0694f;}else{if(_0x34fb87[_0x5e65ca(0x173)])throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x1a1));const _0x2c5133=await promptSelect(_0x5e65ca(0x18e),_0x174815);_0x308a5a=_0x174815[_0x2c5133]??_0x174815[0x0];}let _0x5497ef=normalizeHookFunctionNode(_0x34fb87[_0x5e65ca(0x16b)](_0x5e65ca(0x197)));if(!_0x5497ef){if(_0x34fb87['str'](_0x5e65ca(0x197)))throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x1b0));if(_0x34fb87[_0x5e65ca(0x173)])throw CliErrors[_0x5e65ca(0x17c)](_0x5e65ca(0x175));const _0x17aac2=await promptSelect('Select\x20trigger\x20node:',['before',_0x5e65ca(0x181)]);_0x5497ef=[_0x5e65ca(0x19e),_0x5e65ca(0x181)][_0x17aac2]??_0x5e65ca(0x19e);}return{'alias':_0x280de7,'datasetCode':_0x3359b7,'datasetId':_0x52054f,'operationType':_0x308a5a,'functionNode':_0x5497ef};}async function promptSelect(_0x147dbf,_0x2a6cc6){const _0x2f2557=a31_0xc5e9df;if(_0x2a6cc6[_0x2f2557(0x1a7)]===0x1)return 0x0;for(const [_0x377c9b,_0x1fbca7]of _0x2a6cc6[_0x2f2557(0x17e)]()){process[_0x2f2557(0x1ca)][_0x2f2557(0x1ce)]('\x20\x20'+(_0x377c9b+0x1)+'.\x20'+_0x1fbca7+'\x0a');}const _0x5478c0=createInterface({'input':process[_0x2f2557(0x172)],'output':process['stderr']});while(!![]){const _0x2f7e22=await new Promise(_0x1e1300=>{const _0x4f5499=_0x2f2557;_0x5478c0[_0x4f5499(0x180)](_0x147dbf+'\x20',_0x1e1300);}),_0xba3d6f=Number['parseInt'](_0x2f7e22[_0x2f2557(0x192)](),0xa);if(Number[_0x2f2557(0x1b5)](_0xba3d6f)&&_0xba3d6f>=0x1&&_0xba3d6f<=_0x2a6cc6[_0x2f2557(0x1a7)])return _0x5478c0['close'](),_0xba3d6f-0x1;process[_0x2f2557(0x1ca)][_0x2f2557(0x1ce)](_0x2f2557(0x186)+_0x2a6cc6[_0x2f2557(0x1a7)]+'.\x0a');}}function buildFilePath(_0x5b6c70,_0x5bc081,_0x5abc5e,_0x2c2a49){const _0x323a7b=a31_0xc5e9df;if(_0x5bc081===_0x323a7b(0x1b8)){if(!_0x2c2a49)throw CliErrors[_0x323a7b(0x17c)](_0x323a7b(0x1c2));const _0x19580d=_0x2c2a49[_0x323a7b(0x184)]??_0x2c2a49[_0x323a7b(0x1b9)];return join(_0x5b6c70['scriptsRootDir'],'HOOK',_0x19580d,_0x2c2a49[_0x323a7b(0x1aa)],_0x2c2a49[_0x323a7b(0x1cb)],_0x5abc5e+_0x323a7b(0x1a0));}return join(_0x5b6c70[_0x323a7b(0x188)],_0x5bc081,_0x5abc5e+_0x323a7b(0x1a0));}export function generateTemplate(_0x332c5c,_0xa5a985,_0x510104,_0x23f39a,_0x4621ee){const _0x2eb562=a31_0xc5e9df,_0x3a43bf=_0x23f39a?.[_0x2eb562(0x192)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x33e932=getAppBaseUrl(_0x510104),_0x49909b=_0x2eb562(0x1c0);if(_0x332c5c===_0x2eb562(0x1af))return _0x2eb562(0x19c)+_0x3a43bf+_0x2eb562(0x196)+_0xa5a985+_0x2eb562(0x1bd)+_0x33e932+_0x2eb562(0x185)+_0x510104+_0x2eb562(0x1cd)+_0xa5a985+'.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22'+_0xa5a985+_0x2eb562(0x18b)+_0x49909b+'\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'+_0xa5a985+_0x2eb562(0x169);if(_0x332c5c===_0x2eb562(0x17b))return _0x2eb562(0x19c)+_0x3a43bf+_0x2eb562(0x16f)+_0xa5a985+_0x2eb562(0x198)+_0x510104+'/'+_0xa5a985+_0x2eb562(0x1bd)+_0x33e932+_0x2eb562(0x185)+_0x510104+_0x2eb562(0x168)+_0xa5a985+_0x2eb562(0x177)+_0x49909b+'\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'+_0xa5a985+_0x2eb562(0x169);if(!_0x4621ee)throw CliErrors[_0x2eb562(0x17c)](_0x2eb562(0x190));const _0x28c4c9=_0x4621ee['alias']??_0x4621ee['datasetCode'],_0x3bffc6=_0x4621ee[_0x2eb562(0x1cb)]===_0x2eb562(0x19e)?'当前请求参数':_0x2eb562(0x19f),_0x6c1c37=_0x4621ee[_0x2eb562(0x1cb)]==='before'?_0x2eb562(0x1bf):'修改后的响应结果';return'/**\x0a\x20*\x20'+_0x3a43bf+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20'+_0xa5a985+_0x2eb562(0x18f)+_0x510104+'/'+_0x4621ee[_0x2eb562(0x1b9)]+'/'+_0x4621ee[_0x2eb562(0x1aa)]+_0x2eb562(0x1bd)+_0x33e932+_0x2eb562(0x194)+_0x4621ee[_0x2eb562(0x16c)]+_0x2eb562(0x19a)+_0x510104+_0x2eb562(0x1ab)+_0x28c4c9+'/'+_0x4621ee[_0x2eb562(0x1aa)]+'/'+_0x4621ee[_0x2eb562(0x1cb)]+'/'+_0xa5a985+'.js\x0a\x20*\x20[触发节点]\x20'+_0x4621ee[_0x2eb562(0x1cb)]+'\x0a'+_0x49909b+_0x2eb562(0x1ad)+_0x3bffc6+_0x2eb562(0x174)+_0x6c1c37+_0x2eb562(0x17a)+_0xa5a985+_0x2eb562(0x169);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a32_0x533b19=a32_0x2c03;(function(_0x3a7fae,_0x5e46c1){const _0x233280=a32_0x2c03,_0x1729c7=_0x3a7fae();while(!![]){try{const _0x1e292f=-parseInt(_0x233280(0xe0))/0x1*(parseInt(_0x233280(0xea))/0x2)+parseInt(_0x233280(0x108))/0x3+parseInt(_0x233280(0x10e))/0x4*(-parseInt(_0x233280(0xfe))/0x5)+parseInt(_0x233280(0xf1))/0x6*(-parseInt(_0x233280(0xf6))/0x7)+-parseInt(_0x233280(0xff))/0x8+parseInt(_0x233280(0x110))/0x9*(parseInt(_0x233280(0x113))/0xa)+parseInt(_0x233280(0x107))/0xb;if(_0x1e292f===_0x5e46c1)break;else _0x1729c7['push'](_0x1729c7['shift']());}catch(_0xe4c164){_0x1729c7['push'](_0x1729c7['shift']());}}}(a32_0x5f51,0x7b104));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';function a32_0x2c03(_0x5a6ad0,_0x39588b){_0x5a6ad0=_0x5a6ad0-0xdd;const _0x5f51ea=a32_0x5f51();let _0x2c0339=_0x5f51ea[_0x5a6ad0];return _0x2c0339;}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';import{CliErrors}from'../../errors.js';import{sleep}from'../../utils/sleep.js';export const bffDelete={'service':a32_0x533b19(0xe2),'command':a32_0x533b19(0x112),'description':'Delete\x20a\x20Backend\x20Function\x20script\x20from\x20remote\x20and\x20local','risk':a32_0x533b19(0xe4),'flags':[{'name':a32_0x533b19(0x111),'type':a32_0x533b19(0xee),'required':!![],'description':a32_0x533b19(0x109)}],async 'validate'(_0x3b026a){const _0x583248=a32_0x533b19,_0x520ed7=loadBffProjectConfig(_0x3b026a['appCode']),_0x1d620b=await readBffLockFile(_0x520ed7[_0x583248(0xe8)]);if(!_0x1d620b)throw CliErrors[_0x583248(0xf5)](_0x583248(0xef));},async 'dryRun'(_0x39ca72){const _0x3fe281=a32_0x533b19,_0x195d6c=loadBffProjectConfig(_0x39ca72['appCode']),_0x13cf3c=await readBffLockFile(_0x195d6c[_0x3fe281(0xe8)]);if(!_0x13cf3c)throw CliErrors[_0x3fe281(0xf5)](_0x3fe281(0xfb));const {appLock:_0x5a3362}=ensureLockScope(_0x13cf3c,_0x39ca72[_0x3fe281(0xf4)],_0x195d6c['scriptsRoot'],'delete'),_0x33cded=_0x39ca72['str']('target'),_0x1f7bfa=Object[_0x3fe281(0x100)](_0x5a3362[_0x3fe281(0x103)]),_0x52018e=resolveDeleteTarget(_0x33cded,_0x1f7bfa),_0x907b86=_0x5a3362[_0x3fe281(0x103)][_0x52018e];if(!_0x907b86)throw CliErrors['validation']('No\x20lock\x20entry\x20found\x20for\x20\x22'+_0x52018e+'\x22.');const _0xff5eb5=resolveLocalFilePathFromLockKey(_0x195d6c,_0x52018e),_0x3dd476=relative(_0x195d6c[_0x3fe281(0xe7)],_0xff5eb5),_0x3716bb=join(_0x195d6c[_0x3fe281(0x10a)],_0x3fe281(0xe9),_0x3dd476);return{'method':_0x3fe281(0x102),'url':_0x3fe281(0xdf),'body':{'appCode':_0x39ca72[_0x3fe281(0xf4)],'target':_0x52018e,'remoteId':_0x907b86['remoteId'],'localFilePath':_0xff5eb5,'trashedPath':_0x3716bb},'description':_0x3fe281(0xf7)+_0x52018e+_0x3fe281(0xed)};},async 'execute'(_0x1c6aa9){const _0xa96713=a32_0x533b19,_0x387cfa=loadBffProjectConfig(_0x1c6aa9[_0xa96713(0xf4)]),_0x6de092=await readBffLockFile(_0x387cfa[_0xa96713(0xe8)]);if(!_0x6de092)throw CliErrors[_0xa96713(0xf5)](_0xa96713(0xfb));const {lockData:_0x201a11,appLock:_0x1f3346}=ensureLockScope(_0x6de092,_0x1c6aa9['appCode'],_0x387cfa[_0xa96713(0xde)],_0xa96713(0x112)),_0x13a666=JSON[_0xa96713(0xf2)](JSON[_0xa96713(0x104)](_0x201a11)),_0xa502d8=_0x13a666[_0xa96713(0x10f)][_0x1c6aa9['appCode']];if(!_0xa502d8)throw new Error(_0xa96713(0xf9)+_0x1c6aa9['appCode']+_0xa96713(0x105));const _0x2c52b9=_0x1c6aa9[_0xa96713(0xe3)](_0xa96713(0x111)),_0x2a6b41=Object[_0xa96713(0x100)](_0xa502d8[_0xa96713(0x103)]),_0x2491ca=resolveDeleteTarget(_0x2c52b9,_0x2a6b41),_0x443db7=_0xa502d8[_0xa96713(0x103)][_0x2491ca];if(!_0x443db7)throw CliErrors[_0xa96713(0xf5)](_0xa96713(0xe1)+_0x2491ca+'\x22.');await deleteBffScript(_0x443db7[_0xa96713(0xfa)]),delete _0xa502d8[_0xa96713(0x103)][_0x2491ca],_0xa502d8['lastSync']=new Date()[_0xa96713(0xfc)](),await writeBffLockFile(_0x387cfa['lockFilePath'],_0x13a666);const _0x225b34=resolveLocalFilePathFromLockKey(_0x387cfa,_0x2491ca);let _0x3122a8;await fileExists(_0x225b34)&&(_0x3122a8=await moveToTrash(_0x387cfa[_0xa96713(0xe7)],_0x387cfa[_0xa96713(0x10a)],_0x225b34),await cleanupEmptyDirectories(dirname(_0x225b34),_0x387cfa['scriptsRootDir']));await waitForDeleteSettlement(_0x387cfa[_0xa96713(0xe8)],_0x1c6aa9['appCode'],_0x2491ca,_0x225b34),await sleep(0x96);const _0x3ebc0d={'deleted':_0x2491ca,'remoteId':_0x443db7['remoteId']};if(_0x3122a8)_0x3ebc0d[_0xa96713(0x10c)]=_0x3122a8;return{'ok':!![],'data':_0x3ebc0d,'message':'Deleted\x20'+_0x2491ca+(_0x3122a8?_0xa96713(0xeb):'')};}};function a32_0x5f51(){const _0x4f7bf3=['1564715HTkYbZ','5021384uwMXki','keys','startsWith','POST','functions','stringify','\x22\x20not\x20found\x20after\x20ensureLockScope.','split','13685815CYlGiu','2850816khVhEF','Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','trashDir','join','trashedTo','Local\x20delete\x20not\x20settled\x20for\x20','8trbmdo','apps','12537caTMZR','target','delete','830qGbOUe','replace','scriptsRoot','/api/management/library/scripts/delete','1wpxjPs','No\x20lock\x20entry\x20found\x20for\x20\x22','bff','str','high-risk-write','Multiple\x20functions\x20match\x20\x22','map','projectRoot','lockFilePath','<timestamp>','741710vtueIJ','\x20(local\x20file\x20moved\x20to\x20trash)','Function\x20not\x20found:\x20','\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash','string','Backend\x20Function\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','includes','1089444MQWzQV','parse','length','appCode','validation','7NEUkQr','Would\x20delete\x20','\x20\x20-\x20','Lock\x20scope\x20for\x20app\x20\x22','remoteId','Backend\x20Function\x20lock\x20file\x20not\x20found.','toISOString','find'];a32_0x5f51=function(){return _0x4f7bf3;};return a32_0x5f51();}function resolveDeleteTarget(_0x4ae887,_0x1d71f6){const _0x145a60=a32_0x533b19;if(_0x4ae887[_0x145a60(0xf0)]('/')){const _0x2b0631=_0x1d71f6[_0x145a60(0xfd)](_0x2b0f5e=>_0x2b0f5e===_0x4ae887);if(!_0x2b0631)throw CliErrors[_0x145a60(0xf5)](_0x145a60(0xec)+_0x4ae887);return _0x2b0631;}const _0x569afd=_0x1d71f6['filter'](_0x2eff82=>_0x2eff82[_0x145a60(0x106)]('/')['at'](-0x1)===_0x4ae887);if(_0x569afd[_0x145a60(0xf3)]===0x0)throw CliErrors[_0x145a60(0xf5)](_0x145a60(0xec)+_0x4ae887);if(_0x569afd['length']>0x1)throw CliErrors['validation'](_0x145a60(0xe5)+_0x4ae887+'\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a'+_0x569afd[_0x145a60(0xe6)](_0x331f68=>_0x145a60(0xf8)+_0x331f68)[_0x145a60(0x10b)]('\x0a'));return _0x569afd[0x0];}async function moveToTrash(_0x152511,_0xa9db7c,_0x18a071){const _0x2f6e94=a32_0x533b19,_0x4031cf=new Date()[_0x2f6e94(0xfc)]()[_0x2f6e94(0xdd)](/[:.]/g,'-'),_0x1cb59b=relative(_0x152511,_0x18a071),_0xf25ac1=join(_0xa9db7c,_0x4031cf,_0x1cb59b);return await mkdir(dirname(_0xf25ac1),{'recursive':!![]}),await rename(_0x18a071,_0xf25ac1),_0xf25ac1;}async function cleanupEmptyDirectories(_0x219732,_0x1d8869){const _0x3aa25c=a32_0x533b19;let _0x5213e7=resolve(_0x219732);const _0x16af8a=resolve(_0x1d8869);while(_0x5213e7[_0x3aa25c(0x101)](''+_0x16af8a+sep)||_0x5213e7===_0x16af8a){if(_0x5213e7===_0x16af8a)return;try{const _0x470b46=await readdir(_0x5213e7);if(_0x470b46[_0x3aa25c(0xf3)]>0x0)return;await rmdir(_0x5213e7);}catch{return;}_0x5213e7=dirname(_0x5213e7);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0x179733,_0x1e04ca,_0x4bd0bb,_0x437aa3){const _0x722c83=a32_0x533b19;for(let _0x1cca55=0x0;_0x1cca55<DELETE_SETTLE_RETRY_COUNT;_0x1cca55+=0x1){const _0x4a29ba=await readBffLockFile(_0x179733),_0x4d44f7=!!_0x4a29ba?.[_0x722c83(0x10f)]?.[_0x1e04ca]?.[_0x722c83(0x103)]?.[_0x4bd0bb],_0x1e8fbe=await fileExists(_0x437aa3);if(!_0x4d44f7&&!_0x1e8fbe)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error(_0x722c83(0x10d)+_0x4bd0bb+'.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a33_0x24f9(_0x390358,_0x44d98a){_0x390358=_0x390358-0x73;const _0x14face=a33_0x14fa();let _0x24f98a=_0x14face[_0x390358];return _0x24f98a;}function a33_0x14fa(){const _0x3c8ea4=['description','bool','27879LGVGBB','verbose','8501465uKkhgw','24OBZHUT','4934941EDcVwR','number','27KwHemz','764AXmTFl','4333544qRWUYS','Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','Script\x20ID','scriptContent','14561jzIKdp','2534izAyOh','bff','detail','appCode','scriptType','40TTwqQr','version','(none)','92mnMpdT','30306JsZMOK','10618686DMQMEz','Return\x20full\x20raw\x20script\x20object','read','functionName'];a33_0x14fa=function(){return _0x3c8ea4;};return a33_0x14fa();}const a33_0x1ef758=a33_0x24f9;(function(_0x44b728,_0x443403){const _0x16eeaa=a33_0x24f9,_0x355bb5=_0x44b728();while(!![]){try{const _0x1e4205=-parseInt(_0x16eeaa(0x7f))/0x1*(-parseInt(_0x16eeaa(0x88))/0x2)+parseInt(_0x16eeaa(0x73))/0x3*(parseInt(_0x16eeaa(0x7a))/0x4)+parseInt(_0x16eeaa(0x75))/0x5+parseInt(_0x16eeaa(0x89))/0x6*(parseInt(_0x16eeaa(0x80))/0x7)+parseInt(_0x16eeaa(0x7b))/0x8*(-parseInt(_0x16eeaa(0x79))/0x9)+parseInt(_0x16eeaa(0x85))/0xa*(-parseInt(_0x16eeaa(0x77))/0xb)+parseInt(_0x16eeaa(0x76))/0xc*(-parseInt(_0x16eeaa(0x8a))/0xd);if(_0x1e4205===_0x443403)break;else _0x355bb5['push'](_0x355bb5['shift']());}catch(_0x3bcb56){_0x355bb5['push'](_0x355bb5['shift']());}}}(a33_0x14fa,0xe0ad5));import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':a33_0x1ef758(0x81),'command':a33_0x1ef758(0x82),'description':a33_0x1ef758(0x7c),'risk':a33_0x1ef758(0x8c),'flags':[{'name':'id','type':a33_0x1ef758(0x78),'required':!![],'description':a33_0x1ef758(0x7d)},{'name':'verbose','type':'boolean','description':a33_0x1ef758(0x8b)}],async 'execute'(_0x4ca4fe){const _0x37ef93=a33_0x1ef758,_0x544efb=await getBffScriptInfo(_0x4ca4fe['num']('id')),_0x5cd33e=_0x4ca4fe[_0x37ef93(0x8f)](_0x37ef93(0x74));if(_0x5cd33e)return{'ok':!![],'data':_0x544efb};return{'ok':!![],'data':{'id':_0x544efb['id'],'functionName':_0x544efb[_0x37ef93(0x8d)]??'','version':_0x544efb[_0x37ef93(0x86)]??'','updateUserName':_0x544efb['updateUserName']??'','appCode':_0x544efb[_0x37ef93(0x83)],'scriptType':_0x544efb[_0x37ef93(0x84)],'description':_0x544efb[_0x37ef93(0x8e)]||_0x37ef93(0x87),'createdTime':_0x544efb['createdTime']??'','updatedTime':_0x544efb['updatedTime']??'','scriptContent':_0x544efb[_0x37ef93(0x7e)]??''}};}};
|