@lovrabet/rabetbase-cli 2.5.1 → 2.5.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/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.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.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/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 +3 -11
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- 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/domain-routing-sync.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/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.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/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +0 -2
- 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 +0 -2
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.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/supported-flags.d.ts +2 -0
- package/lib/framework/supported-flags.js +1 -0
- package/lib/framework/types.d.ts +2 -4
- 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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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 -1
- package/skills/rabetbase/SKILL.md +3 -3
- package/skills/rabetbase/references/rabetbase-deployment-sync.md +16 -44
- package/skills/rabetbase.manifest.json +3 -3
- package/lib/config/deployment-sync.d.ts +0 -10
- package/lib/config/deployment-sync.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14380d,_0x38d29a){const _0xecfe0b=a19_0x17c6,_0x76553=_0x14380d();while(!![]){try{const _0x4ea09a=-parseInt(_0xecfe0b(0x170))/0x1*(-parseInt(_0xecfe0b(0x171))/0x2)+parseInt(_0xecfe0b(0x16b))/0x3+-parseInt(_0xecfe0b(0x175))/0x4+-parseInt(_0xecfe0b(0x16d))/0x5+parseInt(_0xecfe0b(0x174))/0x6*(-parseInt(_0xecfe0b(0x16e))/0x7)+-parseInt(_0xecfe0b(0x172))/0x8*(parseInt(_0xecfe0b(0x16f))/0x9)+-parseInt(_0xecfe0b(0x173))/0xa*(-parseInt(_0xecfe0b(0x16c))/0xb);if(_0x4ea09a===_0x38d29a)break;else _0x76553['push'](_0x76553['shift']());}catch(_0xfc143b){_0x76553['push'](_0x76553['shift']());}}}(a19_0x3af5,0x7a0c9));function a19_0x3af5(){const _0x1d62af=['318rWNWWF','2877088oKGSdQ','1334412PSmllq','11MQFAvz','423045zuydYr','14581QNfyGG','320904MNtFfh','1TmjyUJ','112768UigfDi','128JoPHvk','14835010GTYfrJ'];a19_0x3af5=function(){return _0x1d62af;};return a19_0x3af5();}import{appListDefinition}from'../../commands/app/list.js';import{appMembersListDefinition}from'../../commands/app/members-list.js';function a19_0x17c6(_0x4a0204,_0x4afa36){_0x4a0204=_0x4a0204-0x16b;const _0x3af5e1=a19_0x3af5();let _0x17c61e=_0x3af5e1[_0x4a0204];return _0x17c61e;}export const appDefinitions=[appListDefinition,appMembersListDefinition];
|
package/lib/commands/app/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x51e60c=a20_0xf11c;function a20_0x55e0(){const _0x19b578=['projectConfig','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','1266064OtQPSA','930pnIROT','483815EeEDdQ','768546ByDUIr','bool','name','entries','1490bwgIMw','length','global','36009YAdQnH','push','mergedCli','validation','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','24lsPUtR','No\x20apps\x20configured','app','map','apps','globalConfig','4614ngbhUA','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','7502704HlFrhK','\x20in\x20','2AcxcXc','object','remote','project','isCurrent','851039PRdaNN','defaultApp','appcode','globalPath','boolean','projectPath','keys','find','.\x20Use\x20`','merged'];a20_0x55e0=function(){return _0x19b578;};return a20_0x55e0();}(function(_0x2709e8,_0x36ea47){const _0x3cc23f=a20_0xf11c,_0x3fd566=_0x2709e8();while(!![]){try{const _0x8dd6c1=-parseInt(_0x3cc23f(0x79))/0x1*(parseInt(_0x3cc23f(0x93))/0x2)+parseInt(_0x3cc23f(0x7a))/0x3+-parseInt(_0x3cc23f(0x77))/0x4+-parseInt(_0x3cc23f(0x7e))/0x5*(-parseInt(_0x3cc23f(0x8c))/0x6)+-parseInt(_0x3cc23f(0x98))/0x7*(parseInt(_0x3cc23f(0x86))/0x8)+-parseInt(_0x3cc23f(0x81))/0x9*(-parseInt(_0x3cc23f(0x78))/0xa)+parseInt(_0x3cc23f(0x91))/0xb;if(_0x8dd6c1===_0x36ea47)break;else _0x3fd566['push'](_0x3fd566['shift']());}catch(_0x1480c3){_0x3fd566['push'](_0x3fd566['shift']());}}}(a20_0x55e0,0x5b6a7));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{buildAppProfileListFields}from'../../config/schema.js';import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function buildItemsFromLayer(_0x2f4b11,_0xe3a8ba){const _0x118a50=a20_0xf11c,_0x11b520=[],_0x45b5d3=_0x2f4b11[_0x118a50(0x8a)]&&typeof _0x2f4b11[_0x118a50(0x8a)]===_0x118a50(0x94)?_0x2f4b11[_0x118a50(0x8a)]:{},_0x259cb9=_0x2f4b11[_0x118a50(0x99)]||undefined,_0x3c0112=_0x259cb9??(Object[_0x118a50(0x9e)](_0x45b5d3)[_0x118a50(0x7f)]===0x1?Object['keys'](_0x45b5d3)[0x0]:undefined);for(const [_0x522d29,_0x2e299a]of Object['entries'](_0x45b5d3)){if(!_0x2e299a||typeof _0x2e299a!=='object'||!_0x2e299a['appcode'])continue;_0x11b520[_0x118a50(0x82)]({'name':_0x522d29,'appcode':_0x2e299a['appcode'],'named':!![],'definedIn':_0xe3a8ba,'isDefault':_0x522d29===_0x3c0112,...buildAppProfileListFields(_0x2e299a)});}return _0x11b520;}function buildMergedItems(_0x4ab8a8,_0x1a3c03){const _0x26e77c=a20_0xf11c,{apps:apps={}}=_0x4ab8a8,_0x2d29b2=_0x4ab8a8[_0x26e77c(0x99)],_0x465cfa=_0x2d29b2??(Object[_0x26e77c(0x9e)](apps)['length']===0x1?Object['keys'](apps)[0x0]:undefined),_0x368c3e=_0x1a3c03[_0x26e77c(0x8b)][_0x26e77c(0x8a)]&&typeof _0x1a3c03[_0x26e77c(0x8b)][_0x26e77c(0x8a)]===_0x26e77c(0x94)?_0x1a3c03[_0x26e77c(0x8b)][_0x26e77c(0x8a)]:{},_0x43b710=_0x1a3c03['projectConfig'][_0x26e77c(0x8a)]&&typeof _0x1a3c03['projectConfig'][_0x26e77c(0x8a)]===_0x26e77c(0x94)?_0x1a3c03['projectConfig']['apps']:{},_0x2ae2ff=Object[_0x26e77c(0x7d)](apps),_0x23355d=_0x2ae2ff[_0x26e77c(0x89)](([_0xd2c18e,_0x4bdc13])=>({'name':_0xd2c18e,'appcode':_0x4bdc13[_0x26e77c(0x9a)],'named':!![],'definedIn':appDefinedIn(_0xd2c18e,_0x368c3e,_0x43b710),'isDefault':_0xd2c18e===_0x465cfa,...buildAppProfileListFields(_0x4bdc13)}));return _0x23355d;}function a20_0xf11c(_0x296b45,_0xc1bdef){_0x296b45=_0x296b45-0x76;const _0x55e00f=a20_0x55e0();let _0xf11c53=_0x55e00f[_0x296b45];return _0xf11c53;}function validateAppListFlags(_0x350483){const _0x12681c=a20_0xf11c;if(!_0x350483['bool'](_0x12681c(0x95)))return;if(!_0x350483['bool']('global')&&!_0x350483['bool'](_0x12681c(0x96)))return;throw CliErrors[_0x12681c(0x84)](_0x12681c(0x85),_0x12681c(0x8f));}async function execute(_0x106e9d){const _0x5c52cb=a20_0xf11c;validateAppListFlags(_0x106e9d);if(_0x106e9d['bool']('remote'))return{'ok':!![],'data':await listRemoteAppDirectory(_0x106e9d)};const _0x377756=_0x106e9d[_0x5c52cb(0x7b)](_0x5c52cb(0x80)),_0x440fde=_0x106e9d[_0x5c52cb(0x7b)]('project'),_0x1c3e1d=_0x377756?_0x5c52cb(0x80):_0x440fde?_0x5c52cb(0x96):_0x5c52cb(0xa1),{config:_0x381480,layers:_0x51cbc9}=readRawConfigWithLayers(),_0x4da8ce=resolveDefaultAppSource(_0x51cbc9),{defaultApp:_0x47cfdf}=_0x381480;let _0x382dac,_0x4ac009;switch(_0x1c3e1d){case _0x5c52cb(0x80):_0x382dac=buildItemsFromLayer(_0x51cbc9[_0x5c52cb(0x8b)],_0x5c52cb(0x80)),_0x4ac009=_0x51cbc9[_0x5c52cb(0x9b)];break;case _0x5c52cb(0x96):_0x382dac=buildItemsFromLayer(_0x51cbc9[_0x5c52cb(0xa2)],_0x5c52cb(0x96)),_0x4ac009=_0x51cbc9[_0x5c52cb(0x9d)];break;default:_0x382dac=buildMergedItems(_0x381480,_0x51cbc9);break;}enrichAppListItemsWithMergedSelection(_0x382dac,_0x106e9d[_0x5c52cb(0x83)]);if(_0x382dac[_0x5c52cb(0x7f)]===0x0){const _0x156f12=_0x1c3e1d===_0x5c52cb(0xa1)?'':_0x5c52cb(0x92)+_0x1c3e1d+'\x20config';return{'ok':!![],'data':[],'message':_0x5c52cb(0x87)+_0x156f12+_0x5c52cb(0xa0)+CLI_BIN_NAME+_0x5c52cb(0x8d)};}const _0x44c556=_0x382dac[_0x5c52cb(0x9f)](_0x38e6af=>_0x38e6af[_0x5c52cb(0x97)]===!![]),_0x46a59e=_0x47cfdf??_0x44c556?.[_0x5c52cb(0x7c)]??null,_0x63887d=_0x1c3e1d===_0x5c52cb(0xa1)?{'globalPath':_0x51cbc9[_0x5c52cb(0x9b)]??null,'projectPath':_0x51cbc9[_0x5c52cb(0x9d)]??null,'defaultApp':_0x46a59e,'defaultAppSource':_0x47cfdf!=null?_0x4da8ce:null}:{'scope':_0x1c3e1d,'configPath':_0x4ac009??null};return{'ok':!![],'data':{'items':_0x382dac,'meta':_0x63887d}};}export const appListDefinition={'service':a20_0x51e60c(0x88),'command':'list','description':a20_0x51e60c(0x8e),'risk':'read','auth':'optional','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a20_0x51e60c(0x95),'type':a20_0x51e60c(0x9c),'description':a20_0x51e60c(0x90),'default':![]},{'name':a20_0x51e60c(0x80),'type':a20_0x51e60c(0x9c),'description':a20_0x51e60c(0x76),'default':![]},{'name':a20_0x51e60c(0x96),'type':a20_0x51e60c(0x9c),'description':'Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','default':![]}],async 'validate'(_0x3c194f){validateAppListFlags(_0x3c194f);},'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x4ceee5=a21_0x363e;(function(_0x54b3a9,_0x5123d6){const _0x29e14e=a21_0x363e,_0x41caec=_0x54b3a9();while(!![]){try{const _0x306626=parseInt(_0x29e14e(0x107))/0x1*(parseInt(_0x29e14e(0x108))/0x2)+-parseInt(_0x29e14e(0x104))/0x3*(parseInt(_0x29e14e(0x103))/0x4)+parseInt(_0x29e14e(0xf9))/0x5*(parseInt(_0x29e14e(0x102))/0x6)+parseInt(_0x29e14e(0xfd))/0x7+-parseInt(_0x29e14e(0x100))/0x8*(-parseInt(_0x29e14e(0x106))/0x9)+-parseInt(_0x29e14e(0xfb))/0xa*(-parseInt(_0x29e14e(0x105))/0xb)+-parseInt(_0x29e14e(0xfa))/0xc;if(_0x306626===_0x5123d6)break;else _0x41caec['push'](_0x41caec['shift']());}catch(_0x56e295){_0x41caec['push'](_0x41caec['shift']());}}}(a21_0x175a,0xe74b5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';import{listRoleUsers}from'../../core/api-client.js';function a21_0x363e(_0x1f4ca6,_0xcad61){_0x1f4ca6=_0x1f4ca6-0xf7;const _0x175adc=a21_0x175a();let _0x363e28=_0x175adc[_0x1f4ca6];return _0x363e28;}function a21_0x175a(){const _0x3448cd=['230073ilnxKg','341BDjKMp','123174iuDSOL','25lPRZrv','71138quJebQ','Found\x20','length','25055uvPpaJ','26127912fVlJru','159620rmAVYw','read','10936121JqTxMy','List\x20application\x20members\x20with\x20their\x20role\x20memberships','appCode','496KletBi','app','24QfrcUE','36ZXLPak'];a21_0x175a=function(){return _0x3448cd;};return a21_0x175a();}export const appMembersListDefinition={'service':a21_0x4ceee5(0x101),'command':'members-list','description':a21_0x4ceee5(0xfe),'risk':a21_0x4ceee5(0xfc),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x278e21){const _0x5ce88f=a21_0x4ceee5,_0x158dd3=projectAppMembers(await listRoleUsers(_0x278e21['appCode']));return{'ok':!![],'data':{'appCode':_0x278e21[_0x5ce88f(0xff)],'items':_0x158dd3,'totalCount':_0x158dd3[_0x5ce88f(0xf8)]},'message':_0x5ce88f(0xf7)+_0x158dd3[_0x5ce88f(0xf8)]+'\x20application\x20member(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a22_0x2af7(_0x2d384e,_0x6ea70f){_0x2d384e=_0x2d384e-0xac;const _0x2d6316=a22_0x2d63();let _0x2af771=_0x2d6316[_0x2d384e];return _0x2af771;}(function(_0x512823,_0x52ddeb){const _0x3cb986=a22_0x2af7,_0x4e1763=_0x512823();while(!![]){try{const _0x27c480=parseInt(_0x3cb986(0xb5))/0x1*(parseInt(_0x3cb986(0xb7))/0x2)+parseInt(_0x3cb986(0xb3))/0x3+-parseInt(_0x3cb986(0xb1))/0x4*(-parseInt(_0x3cb986(0xbb))/0x5)+parseInt(_0x3cb986(0xb2))/0x6+parseInt(_0x3cb986(0xac))/0x7*(-parseInt(_0x3cb986(0xb9))/0x8)+parseInt(_0x3cb986(0xad))/0x9+parseInt(_0x3cb986(0xba))/0xa*(-parseInt(_0x3cb986(0xb8))/0xb);if(_0x27c480===_0x52ddeb)break;else _0x4e1763['push'](_0x4e1763['shift']());}catch(_0x3a6b6a){_0x4e1763['push'](_0x4e1763['shift']());}}}(a22_0x2d63,0xaddf2));import{listRemoteApps}from'../../core/api-client.js';function a22_0x2d63(){const _0x528557=['appDesc','123148mSnrRb','8136822IrfWDI','279126sUVToE','map','1VVayIh','appCode','2346664ofElNE','11044dEOsQw','40hJHUPF','18930AUZwGq','55Pvbeae','1436939UGpIHi','6101703DhqKCj','authRequired','platform'];a22_0x2d63=function(){return _0x528557;};return a22_0x2d63();}import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x1f28f2){const _0x1fd7df=a22_0x2af7,_0x2497e5=_0x1f28f2['cookie']||getCookie();if(!_0x2497e5)throw CliErrors[_0x1fd7df(0xae)]();return _0x2497e5;}export async function listRemoteAppDirectory(_0x3a75f6){const _0x4eee1c=a22_0x2af7,_0x2dea98=await withActiveCookie(resolveCookie(_0x3a75f6),()=>listRemoteApps());return{'items':_0x2dea98[_0x4eee1c(0xb4)](_0xe355dd=>({..._0xe355dd['id']!=null?{'id':_0xe355dd['id']}:{},'appCode':_0xe355dd[_0x4eee1c(0xb6)],'appName':_0xe355dd['appName'],..._0xe355dd[_0x4eee1c(0xb0)]!=null?{'appDesc':_0xe355dd[_0x4eee1c(0xb0)]}:{}})),'meta':{'source':_0x4eee1c(0xaf)}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a1bc0,_0x2a5518){const _0x247a18=a23_0x4b2b,_0x536424=_0x3a1bc0();while(!![]){try{const _0x21fe8d=parseInt(_0x247a18(0x9f))/0x1*(parseInt(_0x247a18(0xb7))/0x2)+-parseInt(_0x247a18(0xb0))/0x3*(parseInt(_0x247a18(0x93))/0x4)+-parseInt(_0x247a18(0xc2))/0x5*(parseInt(_0x247a18(0xbe))/0x6)+parseInt(_0x247a18(0xbb))/0x7*(-parseInt(_0x247a18(0xc0))/0x8)+parseInt(_0x247a18(0xbf))/0x9+parseInt(_0x247a18(0xb8))/0xa*(-parseInt(_0x247a18(0xa5))/0xb)+parseInt(_0x247a18(0xb1))/0xc;if(_0x21fe8d===_0x2a5518)break;else _0x536424['push'](_0x536424['shift']());}catch(_0x3147a8){_0x536424['push'](_0x536424['shift']());}}}(a23_0x8f63,0x4f3db));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0xa46ad5){const _0x36ae6b=a23_0x4b2b,_0x2e50b9=_0xa46ad5?.[_0x36ae6b(0xba)]();return _0x2e50b9?_0x2e50b9:null;}export function projectAppMembers(_0x5c48ac){const _0x4d0ff1=a23_0x4b2b,_0x11ba55=new Map(),_0x201db6=[..._0x5c48ac]['sort']((_0x109100,_0x48819d)=>_0x109100['id']-_0x48819d['id']),_0x26433d=(_0x5b2851,_0x54d371,_0x1a4409)=>{const _0x157d1b=a23_0x4b2b;for(const _0x100274 of _0x54d371){const _0x3439ab=Number(_0x100274['userId']);if(!Number[_0x157d1b(0x9c)](_0x3439ab)||_0x3439ab<=0x0)continue;let _0x5d8f06=_0x11ba55[_0x157d1b(0xa3)](_0x3439ab);if(!_0x5d8f06)_0x5d8f06={'userId':_0x3439ab,'username':nullableText(_0x100274[_0x157d1b(0xa2)]),'displayName':nullableText(_0x100274[_0x157d1b(0x91)]),'status':_0x1a4409,'roles':[],'roleKeys':new Set()},_0x11ba55[_0x157d1b(0xa7)](_0x3439ab,_0x5d8f06);else{_0x5d8f06['username']??=nullableText(_0x100274[_0x157d1b(0xa2)]),_0x5d8f06[_0x157d1b(0x96)]??=nullableText(_0x100274[_0x157d1b(0x91)]);if(_0x1a4409===_0x157d1b(0xae))_0x5d8f06['status']='ACTIVE';}const _0x18afc5=_0x5b2851['id']+':'+_0x1a4409;if(_0x5d8f06['roleKeys'][_0x157d1b(0x9e)](_0x18afc5))continue;_0x5d8f06[_0x157d1b(0xb5)][_0x157d1b(0xa1)](_0x18afc5),_0x5d8f06[_0x157d1b(0xb3)][_0x157d1b(0x94)]({'roleId':_0x5b2851['id'],'roleName':nullableText(_0x5b2851['roleName']),'roleType':nullableText(_0x5b2851[_0x157d1b(0xb9)]),'membershipStatus':_0x1a4409});}};for(const _0x2c170e of _0x201db6){_0x26433d(_0x2c170e,_0x2c170e[_0x4d0ff1(0xaf)]??[],_0x4d0ff1(0xae)),_0x26433d(_0x2c170e,_0x2c170e['applyUserList']??[],_0x4d0ff1(0xac));}return[..._0x11ba55[_0x4d0ff1(0x9b)]()]['map'](_0x3c6220=>({'userId':_0x3c6220[_0x4d0ff1(0x97)],'username':_0x3c6220[_0x4d0ff1(0xa2)],'displayName':_0x3c6220[_0x4d0ff1(0x96)],'status':_0x3c6220['status'],'roles':_0x3c6220[_0x4d0ff1(0xb3)][_0x4d0ff1(0xa4)]((_0x134cb7,_0x42593d)=>_0x134cb7['roleId']-_0x42593d[_0x4d0ff1(0xa9)]||(_0x134cb7[_0x4d0ff1(0xb6)]===_0x42593d[_0x4d0ff1(0xb6)]?0x0:_0x134cb7[_0x4d0ff1(0xb6)]===_0x4d0ff1(0xae)?-0x1:0x1))}))[_0x4d0ff1(0xa4)]((_0x40bd4a,_0x10d707)=>_0x40bd4a[_0x4d0ff1(0x97)]-_0x10d707[_0x4d0ff1(0x97)]);}export function enrichAppListItemsWithMergedSelection(_0x175c76,_0xa9a652){const _0x32db8b=a23_0x4b2b;if(!_0xa9a652)return;const _0x1f3017=_0xa9a652['apps']&&typeof _0xa9a652[_0x32db8b(0x90)]===_0x32db8b(0x9a)?_0xa9a652[_0x32db8b(0x90)]:{},_0x48b123=Object['keys'](_0x1f3017)[_0x32db8b(0x9d)]>0x0;for(const _0x5c4e59 of _0x175c76){_0x5c4e59[_0x32db8b(0xb4)]=![];}const _0x5c2fce=_0xa9a652['appCode']!=null?String(_0xa9a652['appCode'])[_0x32db8b(0xba)]():'';if(_0x48b123){const _0x426731=_0xa9a652[_0x32db8b(0xab)]??_0xa9a652[_0x32db8b(0xbc)];if(_0x426731)for(const _0x1d9ff5 of _0x175c76){_0x1d9ff5[_0x32db8b(0xad)]===!![]&&_0x1d9ff5[_0x32db8b(0xa6)]===_0x426731&&(_0x1d9ff5[_0x32db8b(0xb4)]=!![]);}for(const _0x1d8347 of _0x175c76){if(_0x1d8347[_0x32db8b(0xad)]!==![])continue;if(_0xa9a652[_0x32db8b(0xbc)])continue;_0x5c2fce&&String(_0x1d8347[_0x32db8b(0xa0)]??'')[_0x32db8b(0xba)]()===_0x5c2fce&&(_0x1d8347[_0x32db8b(0xb4)]=!![]);}return;}if(!_0x5c2fce)return;for(const _0x3fb1f8 of _0x175c76){String(_0x3fb1f8[_0x32db8b(0xa0)]??'')[_0x32db8b(0xba)]()===_0x5c2fce&&(_0x3fb1f8[_0x32db8b(0xb4)]=!![]);}}export function resolveAppScopeForWrite(_0x1a8ea4,_0x47106e,_0x2bb9bc){const _0x33facf=a23_0x4b2b;if(_0x47106e)return _0x33facf(0xaa);const _0x3cbab1=_0x2bb9bc[_0x33facf(0x98)][_0x33facf(0x90)]&&typeof _0x2bb9bc[_0x33facf(0x98)]['apps']===_0x33facf(0x9a)?_0x2bb9bc[_0x33facf(0x98)][_0x33facf(0x90)]:{},_0x3616d8=_0x2bb9bc[_0x33facf(0x92)][_0x33facf(0x90)]&&typeof _0x2bb9bc[_0x33facf(0x92)][_0x33facf(0x90)]===_0x33facf(0x9a)?_0x2bb9bc[_0x33facf(0x92)][_0x33facf(0x90)]:{};if(Object[_0x33facf(0xc1)][_0x33facf(0x99)][_0x33facf(0x95)](_0x3cbab1,_0x1a8ea4))return'project';if(Object[_0x33facf(0xc1)][_0x33facf(0x99)][_0x33facf(0x95)](_0x3616d8,_0x1a8ea4))return _0x33facf(0xaa);return _0x33facf(0xa8);}export function appDefinedIn(_0x1a7dca,_0x4b1bb7,_0x889ee5){const _0x4c9941=a23_0x4b2b,_0x5b8e33=Object[_0x4c9941(0xc1)]['hasOwnProperty']['call'](_0x4b1bb7,_0x1a7dca),_0x325b2e=Object[_0x4c9941(0xc1)][_0x4c9941(0x99)][_0x4c9941(0x95)](_0x889ee5,_0x1a7dca);if(_0x5b8e33&&_0x325b2e)return'both';if(_0x325b2e)return'project';return'global';}export function resolveDefaultAppSource(_0x7b4cbc){const _0x2cfa80=a23_0x4b2b,_0x249436=_0x7b4cbc[_0x2cfa80(0x98)][_0x2cfa80(0x90)]&&typeof _0x7b4cbc[_0x2cfa80(0x98)][_0x2cfa80(0x90)]==='object'?_0x7b4cbc['projectConfig'][_0x2cfa80(0x90)]:{};if(_0x2cfa80(0xbc)in _0x7b4cbc[_0x2cfa80(0x98)])return _0x2cfa80(0xa8);if(Object[_0x2cfa80(0xb2)](_0x249436)[_0x2cfa80(0x9d)]>0x0)return _0x2cfa80(0xa8);if(Object[_0x2cfa80(0xb2)](_0x7b4cbc[_0x2cfa80(0x98)])[_0x2cfa80(0x9d)]===0x0&&_0x7b4cbc[_0x2cfa80(0x92)]['defaultApp'])return _0x2cfa80(0xaa);return null;}export function getConfigPath(_0x3c9acf={}){const _0x4f5da7=a23_0x4b2b,_0x5a8225=_0x3c9acf[_0x4f5da7(0xaa)]?_0x4f5da7(0xaa):_0x4f5da7(0xa8);return resolveWriteConfigPath(_0x5a8225);}function a23_0x8f63(){const _0x2ba5ea=['22eprIqq','name','set','project','roleId','global','currentApp','PENDING','named','ACTIVE','userList','3HlNjgV','2568300COqEBT','keys','roles','isCurrent','roleKeys','membershipStatus','2gQfVlR','1082580AZKvnj','roleType','trim','7Usuqsc','defaultApp','\x20(global)','216024pPOiMT','402579OiTggD','119608lXEnBy','prototype','35rFHsxB','apps','nickname','globalConfig','395716dlIzQM','push','call','displayName','userId','projectConfig','hasOwnProperty','object','values','isFinite','length','has','648239YONJyd','appcode','add','username','get','sort'];a23_0x8f63=function(){return _0x2ba5ea;};return a23_0x8f63();}function a23_0x4b2b(_0x122fe3,_0x5b9500){_0x122fe3=_0x122fe3-0x90;const _0x8f630c=a23_0x8f63();let _0x4b2b6e=_0x8f630c[_0x122fe3];return _0x4b2b6e;}export function readConfig(_0x353c8b={}){return readConfigFile(getConfigPath(_0x353c8b));}export function writeConfig(_0x49afe9,_0x7d4723={}){writeConfigFile(getConfigPath(_0x7d4723),_0x49afe9);}export function scopeLabel(_0x3cf87c){const _0x1ada24=a23_0x4b2b;return _0x3cf87c[_0x1ada24(0xaa)]?_0x1ada24(0xbd):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a24_0x19526f=a24_0x5191;(function(_0x2e3f9d,_0x2eff5d){const _0x567dde=a24_0x5191,_0x267c75=_0x2e3f9d();while(!![]){try{const _0x231e4a=parseInt(_0x567dde(0x1b3))/0x1*(parseInt(_0x567dde(0x1c9))/0x2)+parseInt(_0x567dde(0x1c5))/0x3+-parseInt(_0x567dde(0x1bc))/0x4+parseInt(_0x567dde(0x1b6))/0x5*(parseInt(_0x567dde(0x1ca))/0x6)+parseInt(_0x567dde(0x1b1))/0x7*(-parseInt(_0x567dde(0x1b8))/0x8)+-parseInt(_0x567dde(0x1bf))/0x9+-parseInt(_0x567dde(0x1be))/0xa*(-parseInt(_0x567dde(0x1c4))/0xb);if(_0x231e4a===_0x2eff5d)break;else _0x267c75['push'](_0x267c75['shift']());}catch(_0x445e5f){_0x267c75['push'](_0x267c75['shift']());}}}(a24_0x5a70,0xcfb67));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a24_0x5a70(){const _0x478cff=['15rYZDVC','apiError','1816KnwhwZ','appCode:\x20','appCode','POST','2338204ucHhmu','get','3521820zanFQB','7862697OIYHFY','Delete\x20one\x20runtime\x20app-config\x20key','App\x20config\x20server\x20id\x20missing\x20for\x20key=','delete','number','11jeyoJV','492591rcUMPx','isFinite',',\x20appCode=','Deleted\x20app\x20config\x20','122842OhWoib','1857354PaahiG','5558uvuKms','validation','17iGtxAW','App\x20config\x20key\x20not\x20found:\x20','app-config'];a24_0x5a70=function(){return _0x478cff;};return a24_0x5a70();}import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const DELETE_PATH='/smartapi/app-config/delete';export const appConfigDelete={'service':a24_0x19526f(0x1b5),'command':a24_0x19526f(0x1c2),'description':a24_0x19526f(0x1c0),'risk':'high-risk-write','args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0xaef65e){readKeyArg(_0xaef65e);},async 'dryRun'(_0x54bdd){const _0x5d6c5b=a24_0x19526f,_0x26afca=readKeyArg(_0x54bdd),_0x118714=await mustGetByKey(_0x54bdd[_0x5d6c5b(0x1ba)],_0x26afca);return asAppConfigDryRunResult(buildMutationData({'operation':_0x5d6c5b(0x1c2),'appCode':_0x54bdd[_0x5d6c5b(0x1ba)],'key':_0x26afca,'before':projectAppConfig(_0x118714),'after':null,'dryRun':!![]}),{'method':_0x5d6c5b(0x1bb),'url':DELETE_PATH});},async 'execute'(_0x41f7be){const _0x11a7f3=a24_0x19526f,_0x281b80=readKeyArg(_0x41f7be),_0x5d120e=await mustGetByKey(_0x41f7be[_0x11a7f3(0x1ba)],_0x281b80);return await withAppConfigApiBoundary('delete',{'appCode':_0x41f7be[_0x11a7f3(0x1ba)],'key':_0x281b80},()=>deleteAppConfig({'appCode':_0x41f7be[_0x11a7f3(0x1ba)],'id':requireAppConfigId(_0x5d120e,_0x281b80,_0x41f7be[_0x11a7f3(0x1ba)])})),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x41f7be['appCode'],'key':_0x281b80,'before':projectAppConfig(_0x5d120e),'after':null,'dryRun':![]}),'message':_0x11a7f3(0x1c8)+_0x281b80};}};function a24_0x5191(_0x541f4b,_0x36e3be){_0x541f4b=_0x541f4b-0x1b1;const _0x5a7021=a24_0x5a70();let _0x519122=_0x5a7021[_0x541f4b];return _0x519122;}async function mustGetByKey(_0x884368,_0x15a73c){const _0x3be4fe=a24_0x19526f,_0x113de9=await withAppConfigApiBoundary(_0x3be4fe(0x1bd),{'appCode':_0x884368,'key':_0x15a73c},()=>getAppConfigByKey(_0x884368,_0x15a73c));if(!_0x113de9)throw CliErrors[_0x3be4fe(0x1b2)](_0x3be4fe(0x1b4)+_0x15a73c,_0x3be4fe(0x1b9)+_0x884368);return _0x113de9;}function requireAppConfigId(_0x5eeb39,_0x2a9895,_0x50bfe3){const _0x1a2bb3=a24_0x19526f;if(typeof _0x5eeb39['id']===_0x1a2bb3(0x1c3)&&Number[_0x1a2bb3(0x1c6)](_0x5eeb39['id'])&&_0x5eeb39['id']>0x0)return _0x5eeb39['id'];throw CliErrors[_0x1a2bb3(0x1b7)](_0x1a2bb3(0x1c1)+_0x2a9895+_0x1a2bb3(0x1c7)+_0x50bfe3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a25_0x50b8(_0x113601,_0x21eea3){_0x113601=_0x113601-0x104;const _0x169b3d=a25_0x169b();let _0x50b831=_0x169b3d[_0x113601];return _0x50b831;}const a25_0x308843=a25_0x50b8;(function(_0xb8f9fb,_0x2e99a5){const _0x43508e=a25_0x50b8,_0x3026a0=_0xb8f9fb();while(!![]){try{const _0xea9ab6=-parseInt(_0x43508e(0x104))/0x1*(parseInt(_0x43508e(0x105))/0x2)+parseInt(_0x43508e(0x10c))/0x3*(parseInt(_0x43508e(0x113))/0x4)+-parseInt(_0x43508e(0x109))/0x5*(-parseInt(_0x43508e(0x107))/0x6)+-parseInt(_0x43508e(0x112))/0x7+-parseInt(_0x43508e(0x10e))/0x8+parseInt(_0x43508e(0x10d))/0x9*(parseInt(_0x43508e(0x115))/0xa)+parseInt(_0x43508e(0x10a))/0xb*(parseInt(_0x43508e(0x110))/0xc);if(_0xea9ab6===_0x2e99a5)break;else _0x3026a0['push'](_0x3026a0['shift']());}catch(_0x49d6f6){_0x3026a0['push'](_0x3026a0['shift']());}}}(a25_0x169b,0xc6542));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a25_0x169b(){const _0x1d4d21=['2316066jgDQVE','18423jrfINR','12344320DlXdaQ','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','68664IUnbkI','\x20with\x20value\x20redacted','4749668DOKEOf','4igyloO','bool','850SgTuAj','get','appCode','read','Loaded\x20app\x20config\x20','app-config','1vErFAZ','2877932gxgRjs','\x20with\x20value\x20revealed','42srVOiD','appCode:\x20','610495XCKpqw','5137RNHvOj','App\x20config\x20key\x20not\x20found:\x20'];a25_0x169b=function(){return _0x1d4d21;};return a25_0x169b();}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a25_0x308843(0x11a),'command':'get','description':a25_0x308843(0x10f),'risk':a25_0x308843(0x118),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x1223e2){readKeyArg(_0x1223e2);},async 'execute'(_0x383c5f){const _0x268bb6=a25_0x308843,_0x1080c7=readKeyArg(_0x383c5f),_0x314cf9=await withAppConfigApiBoundary(_0x268bb6(0x116),{'appCode':_0x383c5f['appCode'],'key':_0x1080c7},()=>getAppConfigByKey(_0x383c5f[_0x268bb6(0x117)],_0x1080c7));if(!_0x314cf9)throw CliErrors['validation'](_0x268bb6(0x10b)+_0x1080c7,_0x268bb6(0x108)+_0x383c5f[_0x268bb6(0x117)]);const _0x391602=projectAppConfig(_0x314cf9,{'reveal':_0x383c5f[_0x268bb6(0x114)]('reveal')});return{'ok':!![],'data':{'config':_0x391602},'message':_0x383c5f['bool']('reveal')?_0x268bb6(0x119)+_0x1080c7+_0x268bb6(0x106):_0x268bb6(0x119)+_0x1080c7+_0x268bb6(0x111)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56e1f8,_0x3f6f1f){const _0x393363=a26_0x1a6d,_0x5483ed=_0x56e1f8();while(!![]){try{const _0x55c6cb=parseInt(_0x393363(0xb0))/0x1+parseInt(_0x393363(0xad))/0x2+parseInt(_0x393363(0xac))/0x3+-parseInt(_0x393363(0xaf))/0x4*(-parseInt(_0x393363(0xa9))/0x5)+-parseInt(_0x393363(0xb1))/0x6*(parseInt(_0x393363(0xae))/0x7)+-parseInt(_0x393363(0xaa))/0x8+-parseInt(_0x393363(0xab))/0x9;if(_0x55c6cb===_0x3f6f1f)break;else _0x5483ed['push'](_0x5483ed['shift']());}catch(_0x53e645){_0x5483ed['push'](_0x5483ed['shift']());}}}(a26_0x4db6,0xd2acc));import{appConfigList}from'../../commands/app-config/list.js';import{appConfigGet}from'../../commands/app-config/get.js';function a26_0x1a6d(_0xaedbd5,_0x57cb33){_0xaedbd5=_0xaedbd5-0xa9;const _0x4db646=a26_0x4db6();let _0x1a6d97=_0x4db646[_0xaedbd5];return _0x1a6d97;}import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';function a26_0x4db6(){const _0x53daa8=['1121973WaRHgc','1724316nIBYZJ','771910zbRAVW','1250352BAfPUB','6768963KzEYDZ','3472149ScInEs','974262bpmZIT','28CFdEMg','4lHUFzD'];a26_0x4db6=function(){return _0x53daa8;};return a26_0x4db6();}export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x2bb2aa=a27_0x5e31;(function(_0x134472,_0x33486a){const _0x3041a9=a27_0x5e31,_0xc73108=_0x134472();while(!![]){try{const _0x15c4a8=-parseInt(_0x3041a9(0x87))/0x1+-parseInt(_0x3041a9(0x74))/0x2*(-parseInt(_0x3041a9(0x83))/0x3)+parseInt(_0x3041a9(0x78))/0x4+-parseInt(_0x3041a9(0x81))/0x5*(parseInt(_0x3041a9(0x73))/0x6)+-parseInt(_0x3041a9(0x80))/0x7+-parseInt(_0x3041a9(0x79))/0x8+parseInt(_0x3041a9(0x7e))/0x9;if(_0x15c4a8===_0x33486a)break;else _0xc73108['push'](_0xc73108['shift']());}catch(_0x9265ef){_0xc73108['push'](_0xc73108['shift']());}}}(a27_0x416f,0x6fc12));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';function a27_0x5e31(_0x51b963,_0x33a9c8){_0x51b963=_0x51b963-0x73;const _0x416f46=a27_0x416f();let _0x5e3115=_0x416f46[_0x51b963];return _0x5e3115;}function a27_0x416f(){const _0x4a7f51=['length','9DKULpl','map','string','app-config','310465ClRBoD','Found\x20','269202NIEWUv','56814rgqtWd','read','str','key','2389444QUnDYa','1547712oAlMkC','Filter\x20by\x20exact\x20config\x20key','list','appCode','\x20app\x20config(s)','9435213aSaJsq','trim','3186365YeWYay','35GgFJhJ'];a27_0x416f=function(){return _0x4a7f51;};return a27_0x416f();}export const appConfigList={'service':a27_0x2bb2aa(0x86),'command':a27_0x2bb2aa(0x7b),'description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':a27_0x2bb2aa(0x75),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a27_0x2bb2aa(0x77),'type':a27_0x2bb2aa(0x85),'description':a27_0x2bb2aa(0x7a)},TAGS_FLAG],async 'validate'(_0x9b334d){const _0x35692d=a27_0x2bb2aa,_0x2b2f4b=_0x9b334d[_0x35692d(0x76)](_0x35692d(0x77))[_0x35692d(0x7f)]();if(_0x2b2f4b)validateKey(_0x2b2f4b);readOptionalTags(_0x9b334d);},async 'execute'(_0x167611){const _0x5f3466=a27_0x2bb2aa,_0x23445e=_0x167611['str'](_0x5f3466(0x77))[_0x5f3466(0x7f)]()||undefined,_0x51a949=readOptionalTags(_0x167611),_0x19bc5f=await withAppConfigApiBoundary('list',{'appCode':_0x167611[_0x5f3466(0x7c)]},()=>listAppConfigs(_0x167611[_0x5f3466(0x7c)],{'key':_0x23445e,'tags':_0x51a949})),_0x35a7ed=_0x19bc5f[_0x5f3466(0x84)](_0x5a4732=>projectAppConfig(_0x5a4732));return{'ok':!![],'data':{'appCode':_0x167611['appCode'],'count':_0x35a7ed[_0x5f3466(0x82)],'configs':_0x35a7ed},'message':_0x5f3466(0x88)+_0x35a7ed[_0x5f3466(0x82)]+_0x5f3466(0x7d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x88f2dd=a28_0x3e41;function a28_0x3e41(_0x43bd93,_0xd21b3){_0x43bd93=_0x43bd93-0x92;const _0x7e09aa=a28_0x7e09();let _0x3e4186=_0x7e09aa[_0x43bd93];return _0x3e4186;}(function(_0x582cda,_0x430d95){const _0x3c64c3=a28_0x3e41,_0x4c82f5=_0x582cda();while(!![]){try{const _0x4408af=parseInt(_0x3c64c3(0x9b))/0x1+parseInt(_0x3c64c3(0x92))/0x2*(-parseInt(_0x3c64c3(0xab))/0x3)+parseInt(_0x3c64c3(0x9a))/0x4*(parseInt(_0x3c64c3(0x96))/0x5)+parseInt(_0x3c64c3(0x9f))/0x6+parseInt(_0x3c64c3(0xa5))/0x7+parseInt(_0x3c64c3(0x9d))/0x8+-parseInt(_0x3c64c3(0x98))/0x9*(parseInt(_0x3c64c3(0xa2))/0xa);if(_0x4408af===_0x430d95)break;else _0x4c82f5['push'](_0x4c82f5['shift']());}catch(_0x512d0e){_0x4c82f5['push'](_0x4c82f5['shift']());}}}(a28_0x7e09,0x33a07));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH=a28_0x88f2dd(0xa9),UPDATE_PATH=a28_0x88f2dd(0xac);export const appConfigSet={'service':a28_0x88f2dd(0xa1),'command':a28_0x88f2dd(0xad),'description':a28_0x88f2dd(0x97),'risk':'write','args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a28_0x88f2dd(0xa4),'type':a28_0x88f2dd(0x93),'description':a28_0x88f2dd(0x9e)}],async 'validate'(_0x370bf5){readKeyArg(_0x370bf5),readOptionalTags(_0x370bf5),assertSingleValueSource(_0x370bf5);},async 'dryRun'(_0x36e701){const _0xb5eb4d=a28_0x88f2dd,_0x2ce209=readKeyArg(_0x36e701),_0x436d27=readOptionalTags(_0x36e701),_0x51985f=assertSingleValueSource(_0x36e701);await assertValueSourceReadable(_0x51985f);const _0x414bac=await withAppConfigApiBoundary(_0xb5eb4d(0xa7),{'appCode':_0x36e701[_0xb5eb4d(0xa3)],'key':_0x2ce209},()=>getAppConfigByKey(_0x36e701[_0xb5eb4d(0xa3)],_0x2ce209)),_0xcaf6d8=_0x414bac?'update':_0xb5eb4d(0xaa),_0x4d32e9=_0x414bac?projectAppConfig(_0x414bac):null,_0x457f5d=plannedAppConfig({'appCode':_0x36e701['appCode'],'key':_0x2ce209,'tags':_0x436d27??_0x414bac?.[_0xb5eb4d(0xa6)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0xcaf6d8,'appCode':_0x36e701[_0xb5eb4d(0xa3)],'key':_0x2ce209,'before':_0x4d32e9,'after':_0x457f5d,'dryRun':!![]}),{'method':_0xb5eb4d(0x95),'url':_0xcaf6d8===_0xb5eb4d(0x99)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x4ac0ff){const _0x40ab32=a28_0x88f2dd,_0x26d3c5=readKeyArg(_0x4ac0ff),_0x321dde=readOptionalTags(_0x4ac0ff),_0x2173f4=await withAppConfigApiBoundary(_0x40ab32(0xa7),{'appCode':_0x4ac0ff[_0x40ab32(0xa3)],'key':_0x26d3c5},()=>getAppConfigByKey(_0x4ac0ff[_0x40ab32(0xa3)],_0x26d3c5)),_0x54fd92=_0x2173f4?projectAppConfig(_0x2173f4):null,_0x4bb084=_0x2173f4?_0x40ab32(0x99):_0x40ab32(0xaa),{value:_0x1b1a78,warnings:_0x5d2f2d}=await readAppConfigValue(_0x4ac0ff),_0x17ec8a={'appCode':_0x4ac0ff[_0x40ab32(0xa3)],'key':_0x26d3c5,'value':_0x1b1a78,'tags':_0x321dde??_0x2173f4?.[_0x40ab32(0xa6)]??undefined};await withAppConfigApiBoundary(_0x4bb084,{'appCode':_0x4ac0ff[_0x40ab32(0xa3)],'key':_0x26d3c5},async()=>{const _0xdb2b29=_0x40ab32;_0x2173f4?await updateAppConfig({..._0x17ec8a,'id':requireAppConfigId(_0x2173f4,_0x26d3c5,_0x4ac0ff[_0xdb2b29(0xa3)])}):await createAppConfig(_0x17ec8a);});const _0x3e61b7=await withAppConfigApiBoundary(_0x40ab32(0xa7),{'appCode':_0x4ac0ff[_0x40ab32(0xa3)],'key':_0x26d3c5},()=>getAppConfigByKey(_0x4ac0ff[_0x40ab32(0xa3)],_0x26d3c5)),_0x224e16=_0x3e61b7?projectAppConfig(_0x3e61b7):plannedAppConfig({'appCode':_0x4ac0ff[_0x40ab32(0xa3)],'key':_0x26d3c5,'tags':_0x17ec8a[_0x40ab32(0xa6)],'hasValue':_0x1b1a78!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x4bb084,'appCode':_0x4ac0ff[_0x40ab32(0xa3)],'key':_0x26d3c5,'before':_0x54fd92,'after':_0x224e16,'dryRun':![],'warnings':_0x5d2f2d}),'message':(_0x4bb084===_0x40ab32(0x99)?_0x40ab32(0x94):'Created')+_0x40ab32(0xa0)+_0x26d3c5};}};function a28_0x7e09(){const _0x39a440=['3213904jIjZTD','Read\x20config\x20value\x20from\x20file','1130640BNVeji','\x20app\x20config\x20','app-config','30Ikloml','appCode','file','2297638chcJvw','tags','get','apiError','/smartapi/app-config/create','create','286095aCpwIT','/smartapi/app-config/update','set','2UtbvcG','string','Updated','POST','5pdAaxk','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','3457737BjvUTM','update','742256FAmeRC','355431fnnWCk',',\x20appCode='];a28_0x7e09=function(){return _0x39a440;};return a28_0x7e09();}function requireAppConfigId(_0xec9939,_0x207505,_0x2e139){const _0x5c2ad2=a28_0x88f2dd;if(typeof _0xec9939['id']==='number'&&Number['isFinite'](_0xec9939['id'])&&_0xec9939['id']>0x0)return _0xec9939['id'];throw CliErrors[_0x5c2ad2(0xa8)]('App\x20config\x20server\x20id\x20missing\x20for\x20key='+_0x207505+_0x5c2ad2(0x9c)+_0x2e139);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x3ec7e2=a29_0x5dc9;(function(_0x40aa18,_0x56461d){const _0x26dece=a29_0x5dc9,_0x3b7a79=_0x40aa18();while(!![]){try{const _0x54d60f=parseInt(_0x26dece(0x1ca))/0x1+-parseInt(_0x26dece(0x1e9))/0x2*(-parseInt(_0x26dece(0x1d2))/0x3)+parseInt(_0x26dece(0x1d1))/0x4*(parseInt(_0x26dece(0x1c9))/0x5)+-parseInt(_0x26dece(0x1f1))/0x6+parseInt(_0x26dece(0x1df))/0x7*(-parseInt(_0x26dece(0x1ed))/0x8)+-parseInt(_0x26dece(0x1eb))/0x9+-parseInt(_0x26dece(0x1b7))/0xa*(parseInt(_0x26dece(0x1ea))/0xb);if(_0x54d60f===_0x56461d)break;else _0x3b7a79['push'](_0x3b7a79['shift']());}catch(_0x2eaa6f){_0x3b7a79['push'](_0x3b7a79['shift']());}}}(a29_0x9568,0xe0b7c));import{access,readFile}from'node:fs/promises';function a29_0x9568(){const _0x149e0f=['7051XbYnLW','2599605bYEZRz','method','578024REwujb','once','dryRun','before','2107674wwpAjo','Missing\x20app-config\x20value\x20source.','Runtime\x20app-config\x20key','reveal','name','push','utf8','36030sLEReG','validation','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','Environment\x20variable\x20is\x20not\x20set:\x20','appCode','path','key','env','Failed\x20to\x20','string','slice','end','setEncoding','kind','after','argument','boolean','args','85YZyjPW','1824187dipnTo','gmtModified','key:\x20','warnings','tags','Read\x20config\x20value\x20from\x20stdin','value\x20is\x20redacted','309588CIrauT','300903MraZPq','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','join','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','url','stdin','length','bool','data','value','Missing\x20app-config\x20key.','trim','7wOSmEo','valueRedacted','\x20app\x20config.','from-env','Value\x20file\x20is\x20not\x20readable:\x20','defineProperties','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','file','str','gmtCreate','16HGTrkU'];a29_0x9568=function(){return _0x149e0f;};return a29_0x9568();}function a29_0x5dc9(_0x2b2fc1,_0x116cd7){_0x2b2fc1=_0x2b2fc1-0x1b3;const _0x956838=a29_0x9568();let _0x5dc9e6=_0x956838[_0x2b2fc1];return _0x5dc9e6;}import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a29_0x3ec7e2(0x1bd),'description':a29_0x3ec7e2(0x1f3),'required':!![]};export const VALUE_ARG={'name':a29_0x3ec7e2(0x1dc),'description':'Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','required':![]};export const TAGS_FLAG={'name':'tags','type':a29_0x3ec7e2(0x1c0),'description':'Config\x20tags\x20for\x20filtering/display\x20metadata'};export const STDIN_FLAG={'name':a29_0x3ec7e2(0x1d8),'type':a29_0x3ec7e2(0x1c7),'description':a29_0x3ec7e2(0x1cf),'default':![]};export const FROM_ENV_FLAG={'name':'from-env','type':a29_0x3ec7e2(0x1c0),'description':a29_0x3ec7e2(0x1e5)};export const REVEAL_FLAG={'name':a29_0x3ec7e2(0x1b3),'type':a29_0x3ec7e2(0x1c7),'description':'Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','default':![]};export function readKeyArg(_0x4bf3c3){const _0x530dda=a29_0x3ec7e2,_0x99c5a5=_0x4bf3c3[_0x530dda(0x1c8)][0x0]?.[_0x530dda(0x1de)]()??'';return validateKey(_0x99c5a5),_0x99c5a5;}export function readOptionalTags(_0x1858b8){const _0x31e350=a29_0x3ec7e2,_0x15edee=_0x1858b8['str']('tags')[_0x31e350(0x1de)]();if(!_0x15edee)return undefined;if(_0x15edee[_0x31e350(0x1d9)]>0x20)throw CliErrors[_0x31e350(0x1b8)]('App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.');return _0x15edee;}export function validateKey(_0x2b3cbf){const _0xd9e9f6=a29_0x3ec7e2;if(!_0x2b3cbf)throw CliErrors[_0xd9e9f6(0x1b8)](_0xd9e9f6(0x1dd));if(_0x2b3cbf[_0xd9e9f6(0x1d9)]>0x100)throw CliErrors[_0xd9e9f6(0x1b8)](_0xd9e9f6(0x1d3));}export function projectAppConfig(_0x25608d,_0xff3101){const _0x597323=a29_0x3ec7e2,_0x32f6a1=_0x25608d[_0x597323(0x1dc)]!==undefined&&_0x25608d[_0x597323(0x1dc)]!==null&&_0x25608d[_0x597323(0x1dc)]!=='',_0x33b5d4={'appCode':_0x25608d['appCode'],'key':_0x25608d[_0x597323(0x1bd)],'tags':_0x25608d[_0x597323(0x1ce)]??undefined,'hasValue':_0x32f6a1,'valueRedacted':_0x32f6a1&&!_0xff3101?.[_0x597323(0x1b3)],'gmtCreate':_0x25608d[_0x597323(0x1e8)],'gmtModified':_0x25608d[_0x597323(0x1cb)]};return _0xff3101?.[_0x597323(0x1b3)]&&(_0x33b5d4[_0x597323(0x1dc)]=_0x25608d[_0x597323(0x1dc)]??'',_0x33b5d4[_0x597323(0x1e0)]=![]),_0x33b5d4;}export function plannedAppConfig(_0x4564f4){const _0x2995bb=a29_0x3ec7e2,_0x5e4a97=_0x4564f4['hasValue']??!![];return{'appCode':_0x4564f4[_0x2995bb(0x1bb)],'key':_0x4564f4[_0x2995bb(0x1bd)],'tags':_0x4564f4[_0x2995bb(0x1ce)]??undefined,'hasValue':_0x5e4a97,'valueRedacted':_0x5e4a97};}export function buildMutationData(_0x3a7d3d){const _0x2e10d2=a29_0x3ec7e2;return{'operation':_0x3a7d3d['operation'],'selector':{'appCode':_0x3a7d3d['appCode'],'key':_0x3a7d3d['key']},'before':_0x3a7d3d[_0x2e10d2(0x1f0)],'after':_0x3a7d3d[_0x2e10d2(0x1c5)],'dryRun':_0x3a7d3d[_0x2e10d2(0x1ef)],'warnings':_0x3a7d3d[_0x2e10d2(0x1cd)]??[]};}export async function withAppConfigApiBoundary(_0xf4df00,_0x4078ba,_0x425ec6){const _0x3edf34=a29_0x3ec7e2;try{return await _0x425ec6();}catch{const _0x2f72e1=['appCode:\x20'+_0x4078ba['appCode']];if(_0x4078ba[_0x3edf34(0x1bd)])_0x2f72e1['push'](_0x3edf34(0x1cc)+_0x4078ba[_0x3edf34(0x1bd)]);_0x2f72e1[_0x3edf34(0x1b5)](_0x3edf34(0x1d0));throw CliErrors['apiError'](_0x3edf34(0x1bf)+_0xf4df00+_0x3edf34(0x1e1),_0x2f72e1[_0x3edf34(0x1d5)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x20bdb7,_0x3f62e2){const _0x1ebf67=a29_0x3ec7e2;return Object[_0x1ebf67(0x1e4)](_0x20bdb7,{'method':{'value':_0x3f62e2[_0x1ebf67(0x1ec)],'enumerable':![]},'url':{'value':_0x3f62e2[_0x1ebf67(0x1d7)],'enumerable':![]}});}export function assertSingleValueSource(_0x2aa77a){const _0x81ba3e=a29_0x3ec7e2,_0x3a169a=[];_0x2aa77a[_0x81ba3e(0x1c8)][_0x81ba3e(0x1d9)]>0x1&&_0x3a169a[_0x81ba3e(0x1b5)]({'kind':_0x81ba3e(0x1c6),'value':_0x2aa77a[_0x81ba3e(0x1c8)][_0x81ba3e(0x1c1)](0x1)[_0x81ba3e(0x1d5)]('\x20')});const _0x5f21b7=_0x2aa77a['flag'](_0x81ba3e(0x1dc));_0x5f21b7!==undefined&&_0x5f21b7!==null&&_0x3a169a[_0x81ba3e(0x1b5)]({'kind':_0x81ba3e(0x1c6),'value':String(_0x5f21b7)});_0x2aa77a[_0x81ba3e(0x1da)](_0x81ba3e(0x1d8))&&_0x3a169a[_0x81ba3e(0x1b5)]({'kind':'stdin'});const _0x31b658=_0x2aa77a[_0x81ba3e(0x1e7)](_0x81ba3e(0x1e2))[_0x81ba3e(0x1de)]();_0x31b658&&_0x3a169a[_0x81ba3e(0x1b5)]({'kind':_0x81ba3e(0x1be),'name':_0x31b658});const _0x285bb5=_0x2aa77a[_0x81ba3e(0x1e7)]('file')['trim']();_0x285bb5&&_0x3a169a[_0x81ba3e(0x1b5)]({'kind':_0x81ba3e(0x1e6),'path':_0x285bb5});if(_0x3a169a['length']===0x0)throw CliErrors['validation'](_0x81ba3e(0x1f2),_0x81ba3e(0x1b9));if(_0x3a169a[_0x81ba3e(0x1d9)]>0x1)throw CliErrors[_0x81ba3e(0x1b8)]('App\x20config\x20value\x20source\x20is\x20ambiguous.',_0x81ba3e(0x1d6));return _0x3a169a[0x0];}export async function assertValueSourceReadable(_0x5dbfbe){const _0x35416d=a29_0x3ec7e2;if(_0x5dbfbe['kind']==='env'&&!(_0x5dbfbe[_0x35416d(0x1b4)]in process.env))throw CliErrors[_0x35416d(0x1b8)]('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x5dbfbe[_0x35416d(0x1b4)]);if(_0x5dbfbe[_0x35416d(0x1c4)]===_0x35416d(0x1e6))try{await access(_0x5dbfbe['path']);}catch{throw CliErrors[_0x35416d(0x1b8)](_0x35416d(0x1e3)+_0x5dbfbe['path']);}}export async function readAppConfigValue(_0x156d9c){const _0x2820d1=a29_0x3ec7e2,_0x4ce756=assertSingleValueSource(_0x156d9c),_0x1d009c=[];if(_0x4ce756[_0x2820d1(0x1c4)]===_0x2820d1(0x1c6))return _0x1d009c['push'](_0x2820d1(0x1d4)),{'value':_0x4ce756[_0x2820d1(0x1dc)]??'','source':_0x4ce756['kind'],'warnings':_0x1d009c};if(_0x4ce756[_0x2820d1(0x1c4)]===_0x2820d1(0x1d8))return{'value':await readStdin(),'source':_0x4ce756[_0x2820d1(0x1c4)],'warnings':_0x1d009c};if(_0x4ce756[_0x2820d1(0x1c4)]===_0x2820d1(0x1be)){if(!(_0x4ce756[_0x2820d1(0x1b4)]in process.env))throw CliErrors[_0x2820d1(0x1b8)](_0x2820d1(0x1ba)+_0x4ce756[_0x2820d1(0x1b4)]);return{'value':process.env[_0x4ce756.name]??'','source':_0x4ce756[_0x2820d1(0x1c4)],'warnings':_0x1d009c};}return{'value':await readFile(_0x4ce756[_0x2820d1(0x1bc)],'utf8'),'source':_0x4ce756['kind'],'warnings':_0x1d009c};}function readStdin(){return new Promise((_0x136136,_0x2ac139)=>{const _0x23f1a2=a29_0x5dc9;let _0x2853a1='';process[_0x23f1a2(0x1d8)][_0x23f1a2(0x1c3)](_0x23f1a2(0x1b6)),process[_0x23f1a2(0x1d8)]['on'](_0x23f1a2(0x1db),_0x2b2982=>{_0x2853a1+=_0x2b2982;}),process[_0x23f1a2(0x1d8)][_0x23f1a2(0x1ee)](_0x23f1a2(0x1c2),()=>_0x136136(_0x2853a1)),process[_0x23f1a2(0x1d8)][_0x23f1a2(0x1ee)]('error',_0x2ac139);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x470aee=a30_0x3b9d;(function(_0x3c2143,_0x596c52){const _0x274f62=a30_0x3b9d,_0x157daa=_0x3c2143();while(!![]){try{const _0x53bcd2=parseInt(_0x274f62(0x85))/0x1*(parseInt(_0x274f62(0x8d))/0x2)+-parseInt(_0x274f62(0x96))/0x3+-parseInt(_0x274f62(0x8a))/0x4+-parseInt(_0x274f62(0x8f))/0x5*(-parseInt(_0x274f62(0x83))/0x6)+parseInt(_0x274f62(0x94))/0x7+-parseInt(_0x274f62(0x98))/0x8*(-parseInt(_0x274f62(0x95))/0x9)+parseInt(_0x274f62(0x88))/0xa;if(_0x53bcd2===_0x596c52)break;else _0x157daa['push'](_0x157daa['shift']());}catch(_0x5da0b){_0x157daa['push'](_0x157daa['shift']());}}}(a30_0x3da4,0xf280f));import{unlinkSync,existsSync}from'node:fs';function a30_0x3da4(){const _0x3f592d=['2EjbLft','logout','2599785locFQO','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','log','bool','Login\x20via\x20browser','3887555XfofYr','981LumwOV','4262976xAUDgC','write','66272iRqPRk','nonInteractive','12sroMzA','✓\x20Logged\x20out','1132707xWzBui','Clear\x20login\x20session','!\x20Not\x20logged\x20in','5413610yRiNBS','auth','7032064UzaUrO','login','../../auth/auth-server-ui.js'];a30_0x3da4=function(){return _0x3f592d;};return a30_0x3da4();}import{cookieFile}from'../../auth/constant.js';function a30_0x3b9d(_0x5a3b35,_0x33283d){_0x5a3b35=_0x5a3b35-0x83;const _0x3da40e=a30_0x3da4();let _0x3b9dfd=_0x3da40e[_0x5a3b35];return _0x3b9dfd;}export const authDefinitions=[{'service':a30_0x470aee(0x89),'command':a30_0x470aee(0x8b),'description':a30_0x470aee(0x93),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'yes','type':'boolean','description':a30_0x470aee(0x90),'default':![]}],async 'execute'(_0x2cc653){const _0x5c8cfc=a30_0x470aee,{runAuthServer:_0x4b9b21}=await import(_0x5c8cfc(0x8c));return await _0x4b9b21({'autoYes':_0x2cc653[_0x5c8cfc(0x92)]('yes'),'nonInteractive':_0x2cc653[_0x5c8cfc(0x99)]}),{'ok':!![]};}},{'service':a30_0x470aee(0x89),'command':a30_0x470aee(0x8e),'description':a30_0x470aee(0x86),'risk':a30_0x470aee(0x97),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xf5b4bb){const _0x3eb3e5=a30_0x470aee;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3eb3e5(0x91)](_0x3eb3e5(0x84))):console[_0x3eb3e5(0x91)](_0x3eb3e5(0x87)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a31_0x551895=a31_0x57d4;(function(_0x559496,_0x887581){const _0xa4f9cc=a31_0x57d4,_0x271a1b=_0x559496();while(!![]){try{const _0x4f27ac=parseInt(_0xa4f9cc(0x187))/0x1+parseInt(_0xa4f9cc(0x181))/0x2*(parseInt(_0xa4f9cc(0x1c8))/0x3)+-parseInt(_0xa4f9cc(0x172))/0x4+parseInt(_0xa4f9cc(0x190))/0x5+-parseInt(_0xa4f9cc(0x16b))/0x6*(-parseInt(_0xa4f9cc(0x1a1))/0x7)+-parseInt(_0xa4f9cc(0x184))/0x8+parseInt(_0xa4f9cc(0x1b3))/0x9*(parseInt(_0xa4f9cc(0x168))/0xa);if(_0x4f27ac===_0x887581)break;else _0x271a1b['push'](_0x271a1b['shift']());}catch(_0x347872){_0x271a1b['push'](_0x271a1b['shift']());}}}(a31_0x1708,0xb7e5c));import{createInterface}from'node:readline';import{mkdir,writeFile}from'node:fs/promises';import{dirname,join}from'node:path';function a31_0x57d4(_0x410542,_0x3e35a6){_0x410542=_0x410542-0x161;const _0x1708ed=a31_0x1708();let _0x57d4dc=_0x1708ed[_0x410542];return _0x57d4dc;}import{listDatasets,listBffDatasetOperations}from'../../core/api-client.js';import{loadAliasMap,resolveAlias}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists}from'../../core/bff/file-system.js';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_0x551895(0x19e),'command':a31_0x551895(0x193),'description':'Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','risk':a31_0x551895(0x19a),'flags':[{'name':'type','type':a31_0x551895(0x175),'required':!![],'enum':[a31_0x551895(0x1be),a31_0x551895(0x171),a31_0x551895(0x192)],'description':a31_0x551895(0x1b0)},{'name':'name','type':a31_0x551895(0x175),'required':!![],'description':a31_0x551895(0x1c5)},{'name':a31_0x551895(0x17d),'type':a31_0x551895(0x175),'description':'Script\x20description'},{'name':a31_0x551895(0x177),'type':a31_0x551895(0x175),'description':a31_0x551895(0x1b7)},{'name':a31_0x551895(0x16f),'type':a31_0x551895(0x175),'description':a31_0x551895(0x198)},{'name':'operation-type','type':a31_0x551895(0x175),'description':a31_0x551895(0x1ac)},{'name':'function-node','type':a31_0x551895(0x175),'description':'Trigger\x20node\x20(HOOK\x20only)','enum':[a31_0x551895(0x1bb),a31_0x551895(0x1c1)]}],async 'validate'(_0x17f89a){const _0xa6927d=a31_0x551895,_0x11251d=_0x17f89a[_0xa6927d(0x1cd)](_0xa6927d(0x16d));if(!isValidBffFunctionName(_0x11251d))throw CliErrors['validation'](_0xa6927d(0x197)+_0x11251d+_0xa6927d(0x1c3));},async 'execute'(_0x3e68c0){const _0x55a107=a31_0x551895,_0x188d83=loadBffProjectConfig(_0x3e68c0[_0x55a107(0x1af)]),_0x5a9368=_0x3e68c0[_0x55a107(0x1cd)](_0x55a107(0x1c2)),_0xff10a1=_0x3e68c0[_0x55a107(0x1cd)](_0x55a107(0x16d)),_0x4b5bee=_0x3e68c0['str'](_0x55a107(0x17d))||undefined,_0x32bcc4=_0x5a9368==='HOOK'?await resolveHookOptions(_0x188d83,_0x3e68c0):undefined,_0x4713b2=buildFilePath(_0x188d83,_0x5a9368,_0xff10a1,_0x32bcc4);if(await fileExists(_0x4713b2))throw CliErrors[_0x55a107(0x16c)](_0x55a107(0x1b2)+_0x4713b2);await mkdir(dirname(_0x4713b2),{'recursive':!![]});const _0xdcba58=generateTemplate(_0x5a9368,_0xff10a1,_0x3e68c0[_0x55a107(0x1af)],_0x4b5bee,_0x32bcc4);await writeFile(_0x4713b2,_0xdcba58,'utf8');const _0x4d4389={'type':_0x5a9368,'name':_0xff10a1,'path':_0x4713b2};if(_0x4b5bee)_0x4d4389[_0x55a107(0x17d)]=_0x4b5bee;if(_0x32bcc4){if(_0x32bcc4['alias'])_0x4d4389[_0x55a107(0x177)]=_0x32bcc4[_0x55a107(0x177)];_0x4d4389[_0x55a107(0x1a5)]=_0x32bcc4[_0x55a107(0x1a5)],_0x4d4389[_0x55a107(0x18b)]=_0x32bcc4[_0x55a107(0x18b)],_0x4d4389[_0x55a107(0x178)]=_0x32bcc4[_0x55a107(0x178)];}return{'ok':!![],'data':_0x4d4389,'message':_0x55a107(0x1bf)+_0x5a9368+_0x55a107(0x17a)+_0xff10a1};}};async function resolveHookOptions(_0x453f02,_0x486824){const _0x9b1c0e=a31_0x551895,_0xfb910e=loadAliasMap(_0x486824[_0x9b1c0e(0x186)],undefined,resolveApiFilePath(_0x486824[_0x9b1c0e(0x186)],_0x486824['appCode'])),_0xd82778=_0xfb910e[_0x9b1c0e(0x196)]>0x0;let _0x30e697,_0x5ee55d,_0x5a8ac3;const _0x3a8489=_0x486824['str'](_0x9b1c0e(0x177)),_0x13315b=_0x486824[_0x9b1c0e(0x1cd)](_0x9b1c0e(0x16f));if(_0x3a8489){const _0x2a0710=resolveAlias(_0x486824[_0x9b1c0e(0x186)],_0x3a8489,undefined,resolveApiFilePath(_0x486824[_0x9b1c0e(0x186)],_0x486824[_0x9b1c0e(0x1af)]));if(!_0x2a0710){const _0x407014=_0xd82778?_0x9b1c0e(0x164)+_0xfb910e['map'](_0x223e8e=>_0x223e8e[_0x9b1c0e(0x177)])[_0x9b1c0e(0x167)](',\x20'):_0x9b1c0e(0x1ae)+CLI_BIN_NAME+_0x9b1c0e(0x1b6);throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x18f)+_0x3a8489+_0x9b1c0e(0x1c7)+_0x407014);}_0x30e697=_0x3a8489,_0x5ee55d=_0x2a0710;}else{if(_0x13315b){_0x5ee55d=_0x13315b;const _0x173064=_0xfb910e[_0x9b1c0e(0x18a)](_0x1879ef=>_0x1879ef[_0x9b1c0e(0x1a5)]===_0x13315b);_0x30e697=_0x173064?.[_0x9b1c0e(0x177)];}else{if(_0x486824[_0x9b1c0e(0x165)])throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x1c0));else{if(_0xd82778){const _0x245343=_0xfb910e[_0x9b1c0e(0x169)](_0x1933f=>_0x1933f[_0x9b1c0e(0x177)]+'\x20('+_0x1933f[_0x9b1c0e(0x17f)]+')'),_0x2b4cac=await promptSelect(_0x9b1c0e(0x17b),_0x245343),_0x440a0e=_0xfb910e[_0x2b4cac];if(!_0x440a0e)throw CliErrors['validation'](_0x9b1c0e(0x1a2));_0x30e697=_0x440a0e[_0x9b1c0e(0x177)],_0x5ee55d=_0x440a0e[_0x9b1c0e(0x1a5)];}else{const _0x2c51af=await listDatasets(_0x486824[_0x9b1c0e(0x1af)]);if(_0x2c51af[_0x9b1c0e(0x196)]===0x0)throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x1cb));const _0xd9f78e=_0x2c51af['map'](_0x3c2c3a=>_0x3c2c3a['name']+'\x20['+(_0x3c2c3a[_0x9b1c0e(0x1c9)]??_0x9b1c0e(0x1a6))+_0x9b1c0e(0x1a8)+_0x3c2c3a[_0x9b1c0e(0x174)]+')'),_0x3be937=await promptSelect(_0x9b1c0e(0x17b),_0xd9f78e),_0x4b0c52=_0x2c51af[_0x3be937];if(!_0x4b0c52)throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x1a2));_0x5ee55d=_0x4b0c52[_0x9b1c0e(0x174)],_0x30e697=undefined;}}}}const _0x878a23=await listDatasets(_0x486824[_0x9b1c0e(0x1af)]),_0x1a9aee=_0x878a23[_0x9b1c0e(0x18a)](_0x5828f5=>_0x5828f5['code']===_0x5ee55d);if(!_0x1a9aee)throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x18d)+_0x5ee55d+_0x9b1c0e(0x194)+(_0x30e697?_0x9b1c0e(0x1cf)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh.':''));_0x5a8ac3=_0x1a9aee['id'];const _0x40bb1e=_0x30e697??_0x5ee55d,_0x2e3825=await listBffDatasetOperations(_0x486824['appCode'],_0x5a8ac3),_0x566353=_0x2e3825?Object[_0x9b1c0e(0x182)](_0x2e3825):[];if(_0x566353[_0x9b1c0e(0x196)]===0x0)throw CliErrors[_0x9b1c0e(0x16c)]('No\x20operation\x20types\x20found\x20for\x20dataset\x20'+_0x40bb1e+'.');let _0xf6ea2;const _0x198afd=_0x486824[_0x9b1c0e(0x1cd)](_0x9b1c0e(0x1c6));if(_0x198afd){if(!_0x566353[_0x9b1c0e(0x195)](_0x198afd))throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x18c)+_0x198afd+_0x9b1c0e(0x1b9)+_0x40bb1e+'.\x20'+('Available:\x20'+_0x566353[_0x9b1c0e(0x167)](',\x20')));_0xf6ea2=_0x198afd;}else{if(_0x486824[_0x9b1c0e(0x165)])throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x1ca));const _0x696b8e=await promptSelect(_0x9b1c0e(0x1c4),_0x566353);_0xf6ea2=_0x566353[_0x696b8e]??_0x566353[0x0];}let _0x681173=normalizeHookFunctionNode(_0x486824[_0x9b1c0e(0x1cd)](_0x9b1c0e(0x17c)));if(!_0x681173){if(_0x486824[_0x9b1c0e(0x1cd)](_0x9b1c0e(0x17c)))throw CliErrors[_0x9b1c0e(0x16c)](_0x9b1c0e(0x1a0));if(_0x486824[_0x9b1c0e(0x165)])throw CliErrors['validation'](_0x9b1c0e(0x1ad));const _0x2decd7=await promptSelect(_0x9b1c0e(0x1aa),[_0x9b1c0e(0x1bb),_0x9b1c0e(0x1c1)]);_0x681173=[_0x9b1c0e(0x1bb),_0x9b1c0e(0x1c1)][_0x2decd7]??_0x9b1c0e(0x1bb);}return{'alias':_0x30e697,'datasetCode':_0x5ee55d,'datasetId':_0x5a8ac3,'operationType':_0xf6ea2,'functionNode':_0x681173};}function a31_0x1708(){const _0x47ec71=['ENDPOINT','5048596pafrTh','datasetId','code','string','#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','alias','functionNode','stderr','\x20function:\x20','Select\x20dataset:','function-node','description','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','tableName','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','92840bNYKFI','keys','question','11044752PdexGZ','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/','apiDir','1156423LJaiix','当前请求参数','.js\x0a','find','operationType','Operation\x20type\x20\x22','Dataset\x20not\x20found\x20for\x20code\x20\x22','.js','Alias\x20\x22','1306490tmrSJD','\x0a\x20*\x20[平台配置]\x20','HOOK','create','\x22.\x20','includes','length','Invalid\x20function\x20name\x20\x22','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','read','/HOOK/','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','修改后的请求参数','bff','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','666827ntSSih','Invalid\x20dataset\x20selection.','scriptsRootDir','.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22','datasetCode','UNKNOWN','HOOK\x20requires\x20alias/operation/node\x20options.',']\x20(','stdin','Select\x20trigger\x20node:','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','Operation\x20type\x20(HOOK\x20only)','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','No\x20api.ts\x20found.\x20Run\x20`','appCode','Script\x20type','/data/dataset/','File\x20already\x20exists:\x20','2512665BKbtvN','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','trim','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)','/COMMON/','\x22\x20not\x20found\x20for\x20dataset\x20','\x22,\x20params\x20})\x0a','before','close','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','COMMON','Created\x20','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','after','type','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','Select\x20operation\x20type:','Function\x20name\x20(valid\x20JS\x20identifier)','operation-type','\x22\x20not\x20found.\x20','6QyghHp','source','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','No\x20datasets\x20found\x20for\x20this\x20app.','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20','str','/**\x0a\x20*\x20','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','parseInt','/ENDPOINT/','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20','write','Available\x20aliases:\x20','nonInteractive','修改后的响应结果','join','30PPPRSb','map','entries','66pYOiRJ','validation','name','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','datasetcode','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20'];a31_0x1708=function(){return _0x47ec71;};return a31_0x1708();}async function promptSelect(_0x258311,_0x5ee207){const _0x58e430=a31_0x551895;if(_0x5ee207[_0x58e430(0x196)]===0x1)return 0x0;for(const [_0x4f9fcc,_0x53ba5c]of _0x5ee207[_0x58e430(0x16a)]()){process[_0x58e430(0x179)][_0x58e430(0x163)]('\x20\x20'+(_0x4f9fcc+0x1)+'.\x20'+_0x53ba5c+'\x0a');}const _0x5a1031=createInterface({'input':process[_0x58e430(0x1a9)],'output':process[_0x58e430(0x179)]});while(!![]){const _0x231d29=await new Promise(_0x2d2488=>{const _0x3031c5=_0x58e430;_0x5a1031[_0x3031c5(0x183)](_0x258311+'\x20',_0x2d2488);}),_0x19766c=Number[_0x58e430(0x1d0)](_0x231d29[_0x58e430(0x1b5)](),0xa);if(Number['isInteger'](_0x19766c)&&_0x19766c>=0x1&&_0x19766c<=_0x5ee207[_0x58e430(0x196)])return _0x5a1031[_0x58e430(0x1bc)](),_0x19766c-0x1;process[_0x58e430(0x179)][_0x58e430(0x163)](_0x58e430(0x17e)+_0x5ee207[_0x58e430(0x196)]+'.\x0a');}}function buildFilePath(_0x49ef55,_0x3aad98,_0x129469,_0x1736ea){const _0x5759c7=a31_0x551895;if(_0x3aad98===_0x5759c7(0x192)){if(!_0x1736ea)throw CliErrors[_0x5759c7(0x16c)](_0x5759c7(0x1a7));const _0x1856ce=_0x1736ea['alias']??_0x1736ea[_0x5759c7(0x1a5)];return join(_0x49ef55[_0x5759c7(0x1a3)],_0x5759c7(0x192),_0x1856ce,_0x1736ea[_0x5759c7(0x18b)],_0x1736ea[_0x5759c7(0x178)],_0x129469+_0x5759c7(0x18e));}return join(_0x49ef55[_0x5759c7(0x1a3)],_0x3aad98,_0x129469+_0x5759c7(0x18e));}export function generateTemplate(_0x11fcc6,_0xc4815c,_0x358d4a,_0x183fb3,_0x4bccc6){const _0x2c4fc1=a31_0x551895,_0x2ac23b=_0x183fb3?.[_0x2c4fc1(0x1b5)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x3c13f4=getAppBaseUrl(_0x358d4a),_0x486d28=_0x2c4fc1(0x1ab);if(_0x11fcc6===_0x2c4fc1(0x1be))return _0x2c4fc1(0x1ce)+_0x2ac23b+_0x2c4fc1(0x19c)+_0xc4815c+'\x0a\x20*\x20[平台配置]\x20'+_0x3c13f4+_0x2c4fc1(0x1bd)+_0x358d4a+_0x2c4fc1(0x1b8)+_0xc4815c+_0x2c4fc1(0x1a4)+_0xc4815c+_0x2c4fc1(0x1ba)+_0x486d28+'\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'+_0xc4815c+'(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a';if(_0x11fcc6===_0x2c4fc1(0x171))return _0x2c4fc1(0x1ce)+_0x2ac23b+_0x2c4fc1(0x162)+_0xc4815c+_0x2c4fc1(0x185)+_0x358d4a+'/'+_0xc4815c+_0x2c4fc1(0x191)+_0x3c13f4+_0x2c4fc1(0x1bd)+_0x358d4a+_0x2c4fc1(0x161)+_0xc4815c+_0x2c4fc1(0x189)+_0x486d28+'\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'+_0xc4815c+'(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a';if(!_0x4bccc6)throw CliErrors[_0x2c4fc1(0x16c)](_0x2c4fc1(0x19f));const _0x3bbd64=_0x4bccc6['alias']??_0x4bccc6[_0x2c4fc1(0x1a5)],_0x41abff=_0x4bccc6[_0x2c4fc1(0x178)]===_0x2c4fc1(0x1bb)?_0x2c4fc1(0x188):'当前响应结果',_0x54cba4=_0x4bccc6[_0x2c4fc1(0x178)]===_0x2c4fc1(0x1bb)?_0x2c4fc1(0x19d):_0x2c4fc1(0x166);return _0x2c4fc1(0x1ce)+_0x2ac23b+_0x2c4fc1(0x1cc)+_0xc4815c+_0x2c4fc1(0x199)+_0x358d4a+'/'+_0x4bccc6[_0x2c4fc1(0x1a5)]+'/'+_0x4bccc6[_0x2c4fc1(0x18b)]+_0x2c4fc1(0x191)+_0x3c13f4+_0x2c4fc1(0x1b1)+_0x4bccc6[_0x2c4fc1(0x173)]+_0x2c4fc1(0x176)+_0x358d4a+_0x2c4fc1(0x19b)+_0x3bbd64+'/'+_0x4bccc6[_0x2c4fc1(0x18b)]+'/'+_0x4bccc6[_0x2c4fc1(0x178)]+'/'+_0xc4815c+'.js\x0a\x20*\x20[触发节点]\x20'+_0x4bccc6[_0x2c4fc1(0x178)]+'\x0a'+_0x486d28+_0x2c4fc1(0x180)+_0x41abff+_0x2c4fc1(0x170)+_0x54cba4+_0x2c4fc1(0x1b4)+_0xc4815c+_0x2c4fc1(0x16e);}
|
|
1
|
+
const a31_0x34d248=a31_0x2e61;(function(_0x2f99b6,_0x391270){const _0x25004e=a31_0x2e61,_0x3bc2d2=_0x2f99b6();while(!![]){try{const _0x20e46c=-parseInt(_0x25004e(0x157))/0x1+parseInt(_0x25004e(0x16c))/0x2*(-parseInt(_0x25004e(0x164))/0x3)+parseInt(_0x25004e(0x154))/0x4+-parseInt(_0x25004e(0x15d))/0x5+-parseInt(_0x25004e(0x14f))/0x6+-parseInt(_0x25004e(0x130))/0x7*(parseInt(_0x25004e(0x11f))/0x8)+-parseInt(_0x25004e(0x151))/0x9*(-parseInt(_0x25004e(0x16f))/0xa);if(_0x20e46c===_0x391270)break;else _0x3bc2d2['push'](_0x3bc2d2['shift']());}catch(_0x14fdfa){_0x3bc2d2['push'](_0x3bc2d2['shift']());}}}(a31_0x491c,0xece26));import{createInterface}from'node:readline';import{mkdir,writeFile}from'node:fs/promises';import{dirname,join}from'node:path';import{listDatasets,listBffDatasetOperations}from'../../core/api-client.js';import{loadAliasMap,resolveAlias}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists}from'../../core/bff/file-system.js';import{DEFAULT_BFF_SCRIPT_DESCRIPTION,isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';function a31_0x2e61(_0x2e5cd0,_0x47d130){_0x2e5cd0=_0x2e5cd0-0x10d;const _0x491c57=a31_0x491c();let _0x2e6138=_0x491c57[_0x2e5cd0];return _0x2e6138;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getAppBaseUrl}from'../../constant/domain.js';export const bffCreate={'service':a31_0x34d248(0x168),'command':'create','description':a31_0x34d248(0x123),'risk':a31_0x34d248(0x139),'flags':[{'name':a31_0x34d248(0x138),'type':a31_0x34d248(0x111),'required':!![],'enum':[a31_0x34d248(0x14e),a31_0x34d248(0x15a),a31_0x34d248(0x146)],'description':a31_0x34d248(0x118)},{'name':a31_0x34d248(0x152),'type':a31_0x34d248(0x111),'required':!![],'description':a31_0x34d248(0x135)},{'name':a31_0x34d248(0x12d),'type':a31_0x34d248(0x111),'description':a31_0x34d248(0x143)},{'name':a31_0x34d248(0x15f),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)'},{'name':a31_0x34d248(0x179),'type':a31_0x34d248(0x111),'description':a31_0x34d248(0x136)},{'name':a31_0x34d248(0x128),'type':'string','description':a31_0x34d248(0x11a)},{'name':a31_0x34d248(0x167),'type':'string','description':'Trigger\x20node\x20(HOOK\x20only)','enum':[a31_0x34d248(0x170),'after']}],async 'validate'(_0x35cd09){const _0x2d9971=a31_0x34d248,_0x5dc4ec=_0x35cd09[_0x2d9971(0x174)](_0x2d9971(0x152));if(!isValidBffFunctionName(_0x5dc4ec))throw CliErrors[_0x2d9971(0x141)]('Invalid\x20function\x20name\x20\x22'+_0x5dc4ec+_0x2d9971(0x13c));},async 'execute'(_0x5abe77){const _0x4b0151=a31_0x34d248,_0x337eb3=loadBffProjectConfig(_0x5abe77['appCode']),_0x4793f2=_0x5abe77[_0x4b0151(0x174)](_0x4b0151(0x138)),_0x45c418=_0x5abe77[_0x4b0151(0x174)]('name'),_0x36aeaa=_0x5abe77[_0x4b0151(0x174)]('description')||undefined,_0x2ce6ab=_0x4793f2===_0x4b0151(0x146)?await resolveHookOptions(_0x337eb3,_0x5abe77):undefined,_0x3b657b=buildFilePath(_0x337eb3,_0x4793f2,_0x45c418,_0x2ce6ab);if(await fileExists(_0x3b657b))throw CliErrors[_0x4b0151(0x141)](_0x4b0151(0x11e)+_0x3b657b);await mkdir(dirname(_0x3b657b),{'recursive':!![]});const _0x496883=generateTemplate(_0x4793f2,_0x45c418,_0x5abe77[_0x4b0151(0x12f)],_0x36aeaa,_0x2ce6ab);await writeFile(_0x3b657b,_0x496883,_0x4b0151(0x149));const _0x224d83={'type':_0x4793f2,'name':_0x45c418,'path':_0x3b657b};if(_0x36aeaa)_0x224d83[_0x4b0151(0x12d)]=_0x36aeaa;if(_0x2ce6ab){if(_0x2ce6ab['alias'])_0x224d83[_0x4b0151(0x15f)]=_0x2ce6ab['alias'];_0x224d83[_0x4b0151(0x10e)]=_0x2ce6ab[_0x4b0151(0x10e)],_0x224d83[_0x4b0151(0x11c)]=_0x2ce6ab[_0x4b0151(0x11c)],_0x224d83[_0x4b0151(0x155)]=_0x2ce6ab[_0x4b0151(0x155)];}return{'ok':!![],'data':_0x224d83,'message':_0x4b0151(0x15c)+_0x4793f2+_0x4b0151(0x120)+_0x45c418};}};async function resolveHookOptions(_0x2cedb3,_0x3cf21f){const _0x166a16=a31_0x34d248,_0x3fcbda=loadAliasMap(_0x3cf21f[_0x166a16(0x178)],undefined,resolveApiFilePath(_0x3cf21f[_0x166a16(0x178)],_0x3cf21f[_0x166a16(0x12f)])),_0x21997d=_0x3fcbda[_0x166a16(0x140)]>0x0;let _0x3920aa,_0x5b18c2,_0x4259ea;const _0x3dba9b=_0x3cf21f[_0x166a16(0x174)]('alias'),_0x3b7321=_0x3cf21f[_0x166a16(0x174)]('datasetcode');if(_0x3dba9b){const _0x501de3=resolveAlias(_0x3cf21f[_0x166a16(0x178)],_0x3dba9b,undefined,resolveApiFilePath(_0x3cf21f[_0x166a16(0x178)],_0x3cf21f['appCode']));if(!_0x501de3){const _0x1121ee=_0x21997d?_0x166a16(0x13f)+_0x3fcbda[_0x166a16(0x125)](_0x33cde3=>_0x33cde3[_0x166a16(0x15f)])['join'](',\x20'):_0x166a16(0x13d)+CLI_BIN_NAME+_0x166a16(0x161);throw CliErrors[_0x166a16(0x141)](_0x166a16(0x17a)+_0x3dba9b+_0x166a16(0x13b)+_0x1121ee);}_0x3920aa=_0x3dba9b,_0x5b18c2=_0x501de3;}else{if(_0x3b7321){_0x5b18c2=_0x3b7321;const _0x482abb=_0x3fcbda[_0x166a16(0x144)](_0x42c84d=>_0x42c84d['datasetCode']===_0x3b7321);_0x3920aa=_0x482abb?.['alias'];}else{if(_0x3cf21f[_0x166a16(0x15e)])throw CliErrors[_0x166a16(0x141)](_0x166a16(0x131));else{if(_0x21997d){const _0x315349=_0x3fcbda['map'](_0x1cb195=>_0x1cb195['alias']+'\x20('+_0x1cb195['tableName']+')'),_0x323212=await promptSelect(_0x166a16(0x16e),_0x315349),_0x16ac2b=_0x3fcbda[_0x323212];if(!_0x16ac2b)throw CliErrors[_0x166a16(0x141)](_0x166a16(0x124));_0x3920aa=_0x16ac2b[_0x166a16(0x15f)],_0x5b18c2=_0x16ac2b[_0x166a16(0x10e)];}else{const _0x3ea256=await listDatasets(_0x3cf21f[_0x166a16(0x12f)]);if(_0x3ea256[_0x166a16(0x140)]===0x0)throw CliErrors[_0x166a16(0x141)](_0x166a16(0x116));const _0x3c83cb=_0x3ea256[_0x166a16(0x125)](_0x34cdb1=>_0x34cdb1[_0x166a16(0x152)]+'\x20['+(_0x34cdb1[_0x166a16(0x147)]??_0x166a16(0x115))+_0x166a16(0x142)+_0x34cdb1[_0x166a16(0x16a)]+')'),_0xa13539=await promptSelect(_0x166a16(0x16e),_0x3c83cb),_0x5e9b2a=_0x3ea256[_0xa13539];if(!_0x5e9b2a)throw CliErrors[_0x166a16(0x141)]('Invalid\x20dataset\x20selection.');_0x5b18c2=_0x5e9b2a[_0x166a16(0x16a)],_0x3920aa=undefined;}}}}const _0x4752c1=await listDatasets(_0x3cf21f[_0x166a16(0x12f)]),_0x1cf1b9=_0x4752c1['find'](_0xfbb915=>_0xfbb915[_0x166a16(0x16a)]===_0x5b18c2);if(!_0x1cf1b9)throw CliErrors[_0x166a16(0x141)](_0x166a16(0x113)+_0x5b18c2+_0x166a16(0x15b)+(_0x3920aa?_0x166a16(0x16b)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh.':''));_0x4259ea=_0x1cf1b9['id'];const _0x3105b3=_0x3920aa??_0x5b18c2,_0x4803ce=await listBffDatasetOperations(_0x3cf21f[_0x166a16(0x12f)],_0x4259ea),_0x1a9345=_0x4803ce?Object[_0x166a16(0x12a)](_0x4803ce):[];if(_0x1a9345[_0x166a16(0x140)]===0x0)throw CliErrors['validation'](_0x166a16(0x171)+_0x3105b3+'.');let _0x128df6;const _0x828eb0=_0x3cf21f['str'](_0x166a16(0x128));if(_0x828eb0){if(!_0x1a9345[_0x166a16(0x14a)](_0x828eb0))throw CliErrors[_0x166a16(0x141)](_0x166a16(0x160)+_0x828eb0+_0x166a16(0x162)+_0x3105b3+'.\x20'+(_0x166a16(0x14d)+_0x1a9345[_0x166a16(0x176)](',\x20')));_0x128df6=_0x828eb0;}else{if(_0x3cf21f['nonInteractive'])throw CliErrors[_0x166a16(0x141)](_0x166a16(0x148));const _0x5b57fe=await promptSelect(_0x166a16(0x166),_0x1a9345);_0x128df6=_0x1a9345[_0x5b57fe]??_0x1a9345[0x0];}let _0x44f107=normalizeHookFunctionNode(_0x3cf21f[_0x166a16(0x174)](_0x166a16(0x167)));if(!_0x44f107){if(_0x3cf21f[_0x166a16(0x174)](_0x166a16(0x167)))throw CliErrors[_0x166a16(0x141)](_0x166a16(0x172));if(_0x3cf21f[_0x166a16(0x15e)])throw CliErrors[_0x166a16(0x141)](_0x166a16(0x122));const _0xc6fc2e=await promptSelect(_0x166a16(0x137),[_0x166a16(0x170),_0x166a16(0x150)]);_0x44f107=[_0x166a16(0x170),_0x166a16(0x150)][_0xc6fc2e]??'before';}return{'alias':_0x3920aa,'datasetCode':_0x5b18c2,'datasetId':_0x4259ea,'operationType':_0x128df6,'functionNode':_0x44f107};}async function promptSelect(_0x26c3ac,_0x41908c){const _0x389af9=a31_0x34d248;if(_0x41908c[_0x389af9(0x140)]===0x1)return 0x0;for(const [_0x1e3a80,_0x259523]of _0x41908c[_0x389af9(0x10f)]()){process[_0x389af9(0x121)][_0x389af9(0x127)]('\x20\x20'+(_0x1e3a80+0x1)+'.\x20'+_0x259523+'\x0a');}const _0x2b58bb=createInterface({'input':process[_0x389af9(0x129)],'output':process[_0x389af9(0x121)]});while(!![]){const _0x11dfe9=await new Promise(_0x242d01=>{const _0x4bfb4d=_0x389af9;_0x2b58bb[_0x4bfb4d(0x132)](_0x26c3ac+'\x20',_0x242d01);}),_0xc2158d=Number[_0x389af9(0x14b)](_0x11dfe9[_0x389af9(0x145)](),0xa);if(Number['isInteger'](_0xc2158d)&&_0xc2158d>=0x1&&_0xc2158d<=_0x41908c['length'])return _0x2b58bb[_0x389af9(0x14c)](),_0xc2158d-0x1;process['stderr'][_0x389af9(0x127)](_0x389af9(0x119)+_0x41908c[_0x389af9(0x140)]+'.\x0a');}}function a31_0x491c(){const _0x3ba6f9=['validation',']\x20(','Script\x20description','find','trim','HOOK','source','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','utf8','includes','parseInt','close','Available:\x20','COMMON','8325120TdkIBV','after','1872099VUQptL','name','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','6096044VVJuCV','functionNode','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','1134995SeRdif','/COMMON/','scriptsRootDir','ENDPOINT','\x22.\x20','Created\x20','1729905JhiAJf','nonInteractive','alias','Operation\x20type\x20\x22','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','\x22\x20not\x20found\x20for\x20dataset\x20','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','96966NLEqBB','当前请求参数','Select\x20operation\x20type:','function-node','bff','.js','code','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','114rNojGb','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','Select\x20dataset:','270STwLFy','before','No\x20operation\x20types\x20found\x20for\x20dataset\x20','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20','str','\x22,\x20params\x20})\x0a','join','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','apiDir','datasetcode','Alias\x20\x22','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','datasetCode','entries','\x0a\x20*\x20[平台配置]\x20','string','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','Dataset\x20not\x20found\x20for\x20code\x20\x22','/ENDPOINT/','UNKNOWN','No\x20datasets\x20found\x20for\x20this\x20app.','.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22','Script\x20type','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','Operation\x20type\x20(HOOK\x20only)','当前响应结果','operationType','HOOK\x20requires\x20alias/operation/node\x20options.','File\x20already\x20exists:\x20','160IzZiIJ','\x20function:\x20','stderr','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','Invalid\x20dataset\x20selection.','map','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/','write','operation-type','stdin','keys','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','datasetId','description','.js\x0a\x20*\x20[触发节点]\x20','appCode','510713sUmtkH','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','question','/HOOK/','/**\x0a\x20*\x20','Function\x20name\x20(valid\x20JS\x20identifier)','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','Select\x20trigger\x20node:','type','read','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20','\x22\x20not\x20found.\x20','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','No\x20api.ts\x20found.\x20Run\x20`','\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','Available\x20aliases:\x20','length'];a31_0x491c=function(){return _0x3ba6f9;};return a31_0x491c();}function buildFilePath(_0x289585,_0x8ac0a9,_0x196e67,_0x2c8720){const _0x319159=a31_0x34d248;if(_0x8ac0a9===_0x319159(0x146)){if(!_0x2c8720)throw CliErrors['validation'](_0x319159(0x11d));const _0x590bcb=_0x2c8720['alias']??_0x2c8720[_0x319159(0x10e)];return join(_0x289585['scriptsRootDir'],_0x319159(0x146),_0x590bcb,_0x2c8720[_0x319159(0x11c)],_0x2c8720[_0x319159(0x155)],_0x196e67+_0x319159(0x169));}return join(_0x289585[_0x319159(0x159)],_0x8ac0a9,_0x196e67+_0x319159(0x169));}export function generateTemplate(_0x1c6547,_0x19b405,_0x51798e,_0x56cfe5,_0xa3dfb1){const _0x465524=a31_0x34d248,_0x9dd8c6=_0x56cfe5?.['trim']()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x4b4af0=getAppBaseUrl(_0x51798e),_0x19f1d6=_0x465524(0x16d);if(_0x1c6547===_0x465524(0x14e))return _0x465524(0x134)+_0x9dd8c6+_0x465524(0x12b)+_0x19b405+_0x465524(0x110)+_0x4b4af0+_0x465524(0x10d)+_0x51798e+_0x465524(0x158)+_0x19b405+_0x465524(0x117)+_0x19b405+_0x465524(0x175)+_0x19f1d6+'\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'+_0x19b405+_0x465524(0x177);if(_0x1c6547===_0x465524(0x15a))return _0x465524(0x134)+_0x9dd8c6+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20'+_0x19b405+_0x465524(0x126)+_0x51798e+'/'+_0x19b405+_0x465524(0x110)+_0x4b4af0+'/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/'+_0x51798e+_0x465524(0x114)+_0x19b405+'.js\x0a'+_0x19f1d6+_0x465524(0x13e)+_0x19b405+_0x465524(0x177);if(!_0xa3dfb1)throw CliErrors['validation'](_0x465524(0x112));const _0x51b016=_0xa3dfb1[_0x465524(0x15f)]??_0xa3dfb1[_0x465524(0x10e)],_0x5c7376=_0xa3dfb1[_0x465524(0x155)]==='before'?_0x465524(0x165):_0x465524(0x11b),_0xc7130c=_0xa3dfb1['functionNode']===_0x465524(0x170)?'修改后的请求参数':'修改后的响应结果';return _0x465524(0x134)+_0x9dd8c6+_0x465524(0x173)+_0x19b405+_0x465524(0x163)+_0x51798e+'/'+_0xa3dfb1[_0x465524(0x10e)]+'/'+_0xa3dfb1[_0x465524(0x11c)]+_0x465524(0x110)+_0x4b4af0+'/data/dataset/'+_0xa3dfb1[_0x465524(0x12c)]+'#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/'+_0x51798e+_0x465524(0x133)+_0x51b016+'/'+_0xa3dfb1[_0x465524(0x11c)]+'/'+_0xa3dfb1[_0x465524(0x155)]+'/'+_0x19b405+_0x465524(0x12e)+_0xa3dfb1[_0x465524(0x155)]+'\x0a'+_0x19f1d6+_0x465524(0x153)+_0x5c7376+_0x465524(0x13a)+_0xc7130c+_0x465524(0x156)+_0x19b405+_0x465524(0x177);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a32_0x42bb6d=a32_0x3eed;(function(_0x1bde72,_0x1cd9a3){const _0x5221a2=a32_0x3eed,_0x3ead1b=_0x1bde72();while(!![]){try{const _0x3aff25=-parseInt(_0x5221a2(0xe6))/0x1*(-parseInt(_0x5221a2(0xe1))/0x2)+parseInt(_0x5221a2(0xde))/0x3*(parseInt(_0x5221a2(0xf6))/0x4)+-parseInt(_0x5221a2(0xd7))/0x5*(parseInt(_0x5221a2(0xd4))/0x6)+-parseInt(_0x5221a2(0xc9))/0x7*(parseInt(_0x5221a2(0xfe))/0x8)+-parseInt(_0x5221a2(0xd6))/0x9*(-parseInt(_0x5221a2(0xf4))/0xa)+parseInt(_0x5221a2(0xf5))/0xb+parseInt(_0x5221a2(0xfc))/0xc;if(_0x3aff25===_0x1cd9a3)break;else _0x3ead1b['push'](_0x3ead1b['shift']());}catch(_0x4d7730){_0x3ead1b['push'](_0x3ead1b['shift']());}}}(a32_0x1ef8,0xef695));function a32_0x1ef8(){const _0x172f67=['6SmcKpv','stringify','replace','32NDtEim','filter','trashedTo','Would\x20delete\x20','functions','68066jkLDup','Delete\x20a\x20Backend\x20Function\x20script\x20from\x20remote\x20and\x20local','str','Function\x20not\x20found:\x20','projectRoot','split','scriptsRootDir','Lock\x20scope\x20for\x20app\x20\x22','scriptsRoot','validation','Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','Multiple\x20functions\x20match\x20\x22','toISOString','bff','2177660QxOhrM','15998631EGSvKg','1170044WjZyxk','parse','find','Backend\x20Function\x20lock\x20file\x20not\x20found.','<timestamp>','lastSync','4199448LnzSpS','appCode','75288PSGQfa','apps','target','string','high-risk-write','1393DkvWgL','Local\x20delete\x20not\x20settled\x20for\x20','delete','Backend\x20Function\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','\x20\x20-\x20','join','trashDir','Deleted\x20','length','remoteId','startsWith','3810PNhZLw','\x20(local\x20file\x20moved\x20to\x20trash)','45CYGKKU','13495zLyvQK','lockFilePath','\x22\x20not\x20found\x20after\x20ensureLockScope.','POST','keys','No\x20lock\x20entry\x20found\x20for\x20\x22','/api/management/library/scripts/delete'];a32_0x1ef8=function(){return _0x172f67;};return a32_0x1ef8();}import{mkdir,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{deleteBffScript}from'../../core/api-client.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists,resolveLocalFilePathFromLockKey}from'../../core/bff/file-system.js';import{ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';function a32_0x3eed(_0x47d350,_0x5a4a85){_0x47d350=_0x47d350-0xc8;const _0x1ef888=a32_0x1ef8();let _0x3eed95=_0x1ef888[_0x47d350];return _0x3eed95;}import{CliErrors}from'../../errors.js';import{sleep}from'../../utils/sleep.js';export const bffDelete={'service':a32_0x42bb6d(0xf3),'command':a32_0x42bb6d(0xcb),'description':a32_0x42bb6d(0xe7),'risk':a32_0x42bb6d(0xc8),'flags':[{'name':a32_0x42bb6d(0x100),'type':a32_0x42bb6d(0x101),'required':!![],'description':a32_0x42bb6d(0xf0)}],async 'validate'(_0x447f51){const _0x477529=a32_0x42bb6d,_0xccfe5f=loadBffProjectConfig(_0x447f51[_0x477529(0xfd)]),_0x4af587=await readBffLockFile(_0xccfe5f[_0x477529(0xd8)]);if(!_0x4af587)throw CliErrors[_0x477529(0xef)](_0x477529(0xcc));},async 'dryRun'(_0x363957){const _0x5044d6=a32_0x42bb6d,_0x3a41d6=loadBffProjectConfig(_0x363957[_0x5044d6(0xfd)]),_0x154fe7=await readBffLockFile(_0x3a41d6[_0x5044d6(0xd8)]);if(!_0x154fe7)throw CliErrors[_0x5044d6(0xef)](_0x5044d6(0xf9));const {appLock:_0x21775b}=ensureLockScope(_0x154fe7,_0x363957['appCode'],_0x3a41d6[_0x5044d6(0xee)],_0x5044d6(0xcb)),_0xf64f33=_0x363957[_0x5044d6(0xe8)]('target'),_0x4d312c=Object[_0x5044d6(0xdb)](_0x21775b[_0x5044d6(0xe5)]),_0x159efd=resolveDeleteTarget(_0xf64f33,_0x4d312c),_0x80c33a=_0x21775b[_0x5044d6(0xe5)][_0x159efd];if(!_0x80c33a)throw CliErrors[_0x5044d6(0xef)]('No\x20lock\x20entry\x20found\x20for\x20\x22'+_0x159efd+'\x22.');const _0x24ad06=resolveLocalFilePathFromLockKey(_0x3a41d6,_0x159efd),_0x1115ea=relative(_0x3a41d6[_0x5044d6(0xea)],_0x24ad06),_0x467f6c=join(_0x3a41d6[_0x5044d6(0xcf)],_0x5044d6(0xfa),_0x1115ea);return{'method':_0x5044d6(0xda),'url':_0x5044d6(0xdd),'body':{'appCode':_0x363957['appCode'],'target':_0x159efd,'remoteId':_0x80c33a['remoteId'],'localFilePath':_0x24ad06,'trashedPath':_0x467f6c},'description':_0x5044d6(0xe4)+_0x159efd+'\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash'};},async 'execute'(_0x37941a){const _0x5ddfdf=a32_0x42bb6d,_0x26402e=loadBffProjectConfig(_0x37941a[_0x5ddfdf(0xfd)]),_0x568355=await readBffLockFile(_0x26402e[_0x5ddfdf(0xd8)]);if(!_0x568355)throw CliErrors[_0x5ddfdf(0xef)](_0x5ddfdf(0xf9));const {lockData:_0x1a632b,appLock:_0x32da94}=ensureLockScope(_0x568355,_0x37941a[_0x5ddfdf(0xfd)],_0x26402e[_0x5ddfdf(0xee)],_0x5ddfdf(0xcb)),_0x525ebd=JSON[_0x5ddfdf(0xf7)](JSON[_0x5ddfdf(0xdf)](_0x1a632b)),_0x2b7417=_0x525ebd['apps'][_0x37941a[_0x5ddfdf(0xfd)]];if(!_0x2b7417)throw new Error(_0x5ddfdf(0xed)+_0x37941a[_0x5ddfdf(0xfd)]+_0x5ddfdf(0xd9));const _0x4896b6=_0x37941a[_0x5ddfdf(0xe8)](_0x5ddfdf(0x100)),_0x523c8c=Object[_0x5ddfdf(0xdb)](_0x2b7417[_0x5ddfdf(0xe5)]),_0x142622=resolveDeleteTarget(_0x4896b6,_0x523c8c),_0x123b6c=_0x2b7417[_0x5ddfdf(0xe5)][_0x142622];if(!_0x123b6c)throw CliErrors[_0x5ddfdf(0xef)](_0x5ddfdf(0xdc)+_0x142622+'\x22.');await deleteBffScript(_0x123b6c[_0x5ddfdf(0xd2)]),delete _0x2b7417[_0x5ddfdf(0xe5)][_0x142622],_0x2b7417[_0x5ddfdf(0xfb)]=new Date()[_0x5ddfdf(0xf2)](),await writeBffLockFile(_0x26402e[_0x5ddfdf(0xd8)],_0x525ebd);const _0x1f7447=resolveLocalFilePathFromLockKey(_0x26402e,_0x142622);let _0x5cefde;await fileExists(_0x1f7447)&&(_0x5cefde=await moveToTrash(_0x26402e[_0x5ddfdf(0xea)],_0x26402e[_0x5ddfdf(0xcf)],_0x1f7447),await cleanupEmptyDirectories(dirname(_0x1f7447),_0x26402e[_0x5ddfdf(0xec)]));await waitForDeleteSettlement(_0x26402e[_0x5ddfdf(0xd8)],_0x37941a[_0x5ddfdf(0xfd)],_0x142622,_0x1f7447),await sleep(0x96);const _0x345a00={'deleted':_0x142622,'remoteId':_0x123b6c[_0x5ddfdf(0xd2)]};if(_0x5cefde)_0x345a00[_0x5ddfdf(0xe3)]=_0x5cefde;return{'ok':!![],'data':_0x345a00,'message':_0x5ddfdf(0xd0)+_0x142622+(_0x5cefde?_0x5ddfdf(0xd5):'')};}};function resolveDeleteTarget(_0x318555,_0x4be999){const _0x1c47bb=a32_0x42bb6d;if(_0x318555['includes']('/')){const _0x5e7227=_0x4be999[_0x1c47bb(0xf8)](_0xacee09=>_0xacee09===_0x318555);if(!_0x5e7227)throw CliErrors[_0x1c47bb(0xef)](_0x1c47bb(0xe9)+_0x318555);return _0x5e7227;}const _0x4b02bb=_0x4be999[_0x1c47bb(0xe2)](_0x153dfd=>_0x153dfd[_0x1c47bb(0xeb)]('/')['at'](-0x1)===_0x318555);if(_0x4b02bb[_0x1c47bb(0xd1)]===0x0)throw CliErrors['validation'](_0x1c47bb(0xe9)+_0x318555);if(_0x4b02bb[_0x1c47bb(0xd1)]>0x1)throw CliErrors[_0x1c47bb(0xef)](_0x1c47bb(0xf1)+_0x318555+'\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a'+_0x4b02bb['map'](_0x11727a=>_0x1c47bb(0xcd)+_0x11727a)[_0x1c47bb(0xce)]('\x0a'));return _0x4b02bb[0x0];}async function moveToTrash(_0x4385c6,_0x2866be,_0x3340ec){const _0x1b2db0=a32_0x42bb6d,_0xd12d37=new Date()[_0x1b2db0(0xf2)]()[_0x1b2db0(0xe0)](/[:.]/g,'-'),_0x2be1c7=relative(_0x4385c6,_0x3340ec),_0x10514c=join(_0x2866be,_0xd12d37,_0x2be1c7);return await mkdir(dirname(_0x10514c),{'recursive':!![]}),await rename(_0x3340ec,_0x10514c),_0x10514c;}async function cleanupEmptyDirectories(_0x498221,_0x14f078){const _0x370381=a32_0x42bb6d;let _0x430dae=resolve(_0x498221);const _0x26d36b=resolve(_0x14f078);while(_0x430dae[_0x370381(0xd3)](''+_0x26d36b+sep)||_0x430dae===_0x26d36b){if(_0x430dae===_0x26d36b)return;try{const _0x527c7d=await readdir(_0x430dae);if(_0x527c7d[_0x370381(0xd1)]>0x0)return;await rmdir(_0x430dae);}catch{return;}_0x430dae=dirname(_0x430dae);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0x2e0f80,_0x1d7291,_0x546999,_0x37a467){const _0x234366=a32_0x42bb6d;for(let _0x473314=0x0;_0x473314<DELETE_SETTLE_RETRY_COUNT;_0x473314+=0x1){const _0x31ba6c=await readBffLockFile(_0x2e0f80),_0x45b571=!!_0x31ba6c?.[_0x234366(0xff)]?.[_0x1d7291]?.[_0x234366(0xe5)]?.[_0x546999],_0x275d5d=await fileExists(_0x37a467);if(!_0x45b571&&!_0x275d5d)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error(_0x234366(0xca)+_0x546999+'.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x4a8fd4=a33_0x5216;(function(_0x32e7fb,_0x54790d){const _0x493f5b=a33_0x5216,_0x35a53f=_0x32e7fb();while(!![]){try{const _0x47d74c=-parseInt(_0x493f5b(0x144))/0x1+parseInt(_0x493f5b(0x13e))/0x2+parseInt(_0x493f5b(0x14b))/0x3*(parseInt(_0x493f5b(0x14e))/0x4)+-parseInt(_0x493f5b(0x149))/0x5*(-parseInt(_0x493f5b(0x143))/0x6)+parseInt(_0x493f5b(0x155))/0x7+-parseInt(_0x493f5b(0x14f))/0x8+parseInt(_0x493f5b(0x150))/0x9;if(_0x47d74c===_0x54790d)break;else _0x35a53f['push'](_0x35a53f['shift']());}catch(_0x17f21b){_0x35a53f['push'](_0x35a53f['shift']());}}}(a33_0x531b,0x66d37));import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':a33_0x4a8fd4(0x146),'command':a33_0x4a8fd4(0x148),'description':'Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','risk':a33_0x4a8fd4(0x145),'flags':[{'name':'id','type':'number','required':!![],'description':a33_0x4a8fd4(0x151)},{'name':a33_0x4a8fd4(0x14a),'type':a33_0x4a8fd4(0x142),'description':a33_0x4a8fd4(0x154)}],async 'execute'(_0x20bbfd){const _0x206b5e=a33_0x4a8fd4,_0x490fc1=await getBffScriptInfo(_0x20bbfd['num']('id')),_0x30321d=_0x20bbfd[_0x206b5e(0x14d)](_0x206b5e(0x14a));if(_0x30321d)return{'ok':!![],'data':_0x490fc1};return{'ok':!![],'data':{'id':_0x490fc1['id'],'functionName':_0x490fc1[_0x206b5e(0x153)]??'','version':_0x490fc1[_0x206b5e(0x140)]??'','updateUserName':_0x490fc1[_0x206b5e(0x152)]??'','appCode':_0x490fc1['appCode'],'scriptType':_0x490fc1[_0x206b5e(0x147)],'description':_0x490fc1[_0x206b5e(0x13f)]||_0x206b5e(0x141),'createdTime':_0x490fc1['createdTime']??'','updatedTime':_0x490fc1[_0x206b5e(0x14c)]??'','scriptContent':_0x490fc1['scriptContent']??''}};}};function a33_0x5216(_0x51775b,_0x1b6c18){_0x51775b=_0x51775b-0x13e;const _0x531bf1=a33_0x531b();let _0x52162e=_0x531bf1[_0x51775b];return _0x52162e;}function a33_0x531b(){const _0x2115ce=['verbose','653451btomcg','updatedTime','bool','8OIjHkd','4205040vCQSFO','91575MrRYIv','Script\x20ID','updateUserName','functionName','Return\x20full\x20raw\x20script\x20object','5815131FXFUHM','378942tiTwKH','description','version','(none)','boolean','12HPcwAP','787996UEOJJM','read','bff','scriptType','detail','671970wGxhNl'];a33_0x531b=function(){return _0x2115ce;};return a33_0x531b();}
|