@lovrabet/rabetbase-cli 2.5.1-beta.1 → 2.5.1-beta.3
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.d.ts +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.d.ts +107 -0
- package/lib/commands/dataset/field-restore.js +1 -0
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
- package/lib/commands/dataset/user-deleted-field-list.js +1 -0
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.d.ts +28 -0
- package/lib/commands/deployment/auto-sync.js +1 -0
- package/lib/commands/deployment/index.d.ts +2 -0
- package/lib/commands/deployment/index.js +1 -0
- package/lib/commands/deployment/sync.d.ts +2 -0
- package/lib/commands/deployment/sync.js +1 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/deployment-sync.d.ts +10 -0
- package/lib/config/deployment-sync.js +1 -0
- package/lib/config/domain-config.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-routing.js +1 -1
- package/lib/config/schema.d.ts +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +2 -0
- 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 +2 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +35 -16
- 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.d.ts +30 -0
- package/lib/core/kb-search-client.js +1 -0
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +5 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +12 -6
- package/skills/rabetbase/references/rabetbase-config.md +4 -1
- package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
- package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
- package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
- package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
- package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
- package/skills/rabetbase/references/rabetbase-init.md +2 -0
- package/skills/rabetbase/references/rabetbase-kb.md +7 -7
- package/skills/rabetbase.manifest.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x4b89(_0x393109,_0x4bf208){_0x393109=_0x393109-0x17d;const _0xb0db7a=a205_0xb0db();let _0x4b89a9=_0xb0db7a[_0x393109];return _0x4b89a9;}(function(_0x1ba793,_0x5672e5){const _0xaf1eb1=a205_0x4b89,_0x4e4044=_0x1ba793();while(!![]){try{const _0x12b134=parseInt(_0xaf1eb1(0x190))/0x1+parseInt(_0xaf1eb1(0x18c))/0x2+-parseInt(_0xaf1eb1(0x18d))/0x3+-parseInt(_0xaf1eb1(0x196))/0x4+-parseInt(_0xaf1eb1(0x180))/0x5*(-parseInt(_0xaf1eb1(0x186))/0x6)+parseInt(_0xaf1eb1(0x17d))/0x7+-parseInt(_0xaf1eb1(0x181))/0x8;if(_0x12b134===_0x5672e5)break;else _0x4e4044['push'](_0x4e4044['shift']());}catch(_0x3688c6){_0x4e4044['push'](_0x4e4044['shift']());}}}(a205_0xb0db,0xf1fb6));import{CliErrors}from'../../errors.js';function a205_0xb0db(){const _0x2fdbf6=['154506AMpWpl','sort','Tenant\x20\x22','ADMIN','values','MEMBER','2175106tDLpOE','3122679rVerUx','username','status','1027237AVDSZv','adminFlag','userId','some','validation','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','7539664bbRSqD','7912387ZeoEyM','get','role','255FNZgOR','5131720lUWiJw','isFinite','set','displayName','tenantCode'];a205_0xb0db=function(){return _0x2fdbf6;};return a205_0xb0db();}function textOrNull(_0x52fa4f){const _0x408007=_0x52fa4f?.['trim']();return _0x408007?_0x408007:null;}export function projectTenantMembers(_0xd8f5f0){const _0x54d863=a205_0x4b89,_0x3e461c=new Map();for(const _0x3ffc80 of _0xd8f5f0){const _0x2a402d=Number(_0x3ffc80[_0x54d863(0x192)]);if(!Number[_0x54d863(0x182)](_0x2a402d)||_0x2a402d<=0x0)continue;const _0x2b2d70={'userId':_0x2a402d,'username':textOrNull(_0x3ffc80[_0x54d863(0x18e)]),'displayName':textOrNull(_0x3ffc80['nickname']),'role':_0x3ffc80[_0x54d863(0x191)]===!![]?_0x54d863(0x189):_0x54d863(0x18b),'status':textOrNull(_0x3ffc80[_0x54d863(0x18f)])},_0x21725d=_0x3e461c[_0x54d863(0x17e)](_0x2a402d);if(!_0x21725d){_0x3e461c[_0x54d863(0x183)](_0x2a402d,_0x2b2d70);continue;}_0x21725d['username']??=_0x2b2d70[_0x54d863(0x18e)],_0x21725d[_0x54d863(0x184)]??=_0x2b2d70[_0x54d863(0x184)],_0x21725d[_0x54d863(0x18f)]??=_0x2b2d70[_0x54d863(0x18f)];if(_0x2b2d70[_0x54d863(0x17f)]===_0x54d863(0x189))_0x21725d[_0x54d863(0x17f)]=_0x54d863(0x189);}return[..._0x3e461c[_0x54d863(0x18a)]()][_0x54d863(0x187)]((_0x30efe1,_0x3a8815)=>_0x30efe1[_0x54d863(0x192)]-_0x3a8815['userId']);}export function assertTenantAccessible(_0x4af66f,_0x286037){const _0x1687c6=a205_0x4b89;if(_0x286037[_0x1687c6(0x193)](_0x384f56=>_0x384f56[_0x1687c6(0x185)]===_0x4af66f))return;throw CliErrors[_0x1687c6(0x194)](_0x1687c6(0x188)+_0x4af66f+_0x1687c6(0x195),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0xb86a4b=a206_0xbbf6;(function(_0x1182cd,_0x459921){const _0x44b9c5=a206_0xbbf6,_0x2bb2e1=_0x1182cd();while(!![]){try{const _0x53a3c7=parseInt(_0x44b9c5(0x204))/0x1+-parseInt(_0x44b9c5(0x1fa))/0x2*(parseInt(_0x44b9c5(0x1f4))/0x3)+parseInt(_0x44b9c5(0x1fd))/0x4+parseInt(_0x44b9c5(0x209))/0x5*(-parseInt(_0x44b9c5(0x20d))/0x6)+parseInt(_0x44b9c5(0x1f7))/0x7*(-parseInt(_0x44b9c5(0x207))/0x8)+-parseInt(_0x44b9c5(0x1f6))/0x9*(-parseInt(_0x44b9c5(0x1f3))/0xa)+parseInt(_0x44b9c5(0x206))/0xb*(parseInt(_0x44b9c5(0x1f8))/0xc);if(_0x53a3c7===_0x459921)break;else _0x2bb2e1['push'](_0x2bb2e1['shift']());}catch(_0x4aee55){_0x2bb2e1['push'](_0x2bb2e1['shift']());}}}(a206_0xf5b9,0x44f11));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a206_0xb86a4b(0x1f9),CURRENT_BINDING_WARNING=a206_0xb86a4b(0x1fc);function readDingTalkUserId(_0x2c7106){const _0x1f2c48=a206_0xb86a4b,_0x17def4=_0x2c7106[_0x1f2c48(0x203)](_0x1f2c48(0x208))[_0x1f2c48(0x20a)]();if(!_0x17def4)throw CliErrors[_0x1f2c48(0x1fb)]('--ding-talk-user-id\x20cannot\x20be\x20empty.',_0x1f2c48(0x202));return _0x17def4;}function a206_0xbbf6(_0x40920d,_0x17ab7b){_0x40920d=_0x40920d-0x1f3;const _0xf5b93=a206_0xf5b9();let _0xbbf631=_0xf5b93[_0x40920d];return _0xbbf631;}function buildBindingData(_0x261dcd,_0x59dd82){const _0x47d4f1=a206_0xb86a4b;return{'operation':_0x47d4f1(0x20c),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x261dcd},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x261dcd,'bound':!![]},'dryRun':_0x59dd82,'backend':{'method':_0x47d4f1(0x200),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a206_0xb86a4b(0x201),'command':a206_0xb86a4b(0x1f5),'description':a206_0xb86a4b(0x20b),'risk':a206_0xb86a4b(0x20e),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a206_0xb86a4b(0x208),'type':'string','required':!![],'description':a206_0xb86a4b(0x1fe)}],async 'validate'(_0x181f02){readDingTalkUserId(_0x181f02);},async 'dryRun'(_0x451d76){const _0x20efcc=a206_0xb86a4b,_0x63c1df=readDingTalkUserId(_0x451d76);return asDryRunResult(buildBindingData(_0x63c1df,!![]),{'method':_0x20efcc(0x200),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x24dafa){const _0x1e6581=a206_0xb86a4b,_0x11e6b7=readDingTalkUserId(_0x24dafa),_0x14eacc=await bindDingTalkSandboxAccount(_0x11e6b7);if(_0x14eacc!==!![])throw CliErrors['apiError'](_0x1e6581(0x1ff),_0x1e6581(0x205));return{'ok':!![],'data':buildBindingData(_0x11e6b7,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};function a206_0xf5b9(){const _0x3fadb3=['ding-talk-user-id','95GjbTIs','trim','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','bind','111666rgTchZ','write','2240lVYvgs','9EqgxGx','dingding-sandbox-bind','15354BCubEx','448iapvcI','13836Hyaarb','dingtalk','119722xBLzkN','validation','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','701448rrsCNz','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','POST','user-account','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','str','151921DJGvjB','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','4642oQRcTr','47552yoUnMb'];a206_0xf5b9=function(){return _0x3fadb3;};return a206_0xf5b9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d8d27,_0x34e156){const _0x151484=a207_0xbf6f,_0x174611=_0x5d8d27();while(!![]){try{const _0x3dae33=-parseInt(_0x151484(0x87))/0x1*(parseInt(_0x151484(0x8d))/0x2)+-parseInt(_0x151484(0x8c))/0x3*(-parseInt(_0x151484(0x8a))/0x4)+-parseInt(_0x151484(0x85))/0x5*(-parseInt(_0x151484(0x88))/0x6)+-parseInt(_0x151484(0x81))/0x7*(parseInt(_0x151484(0x84))/0x8)+parseInt(_0x151484(0x80))/0x9*(parseInt(_0x151484(0x83))/0xa)+parseInt(_0x151484(0x8b))/0xb*(-parseInt(_0x151484(0x82))/0xc)+parseInt(_0x151484(0x89))/0xd*(parseInt(_0x151484(0x86))/0xe);if(_0x3dae33===_0x34e156)break;else _0x174611['push'](_0x174611['shift']());}catch(_0x584998){_0x174611['push'](_0x174611['shift']());}}}(a207_0x2ca5,0x21a05));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a207_0xbf6f(_0x23582f,_0x41197d){_0x23582f=_0x23582f-0x80;const _0x2ca5ad=a207_0x2ca5();let _0xbf6fea=_0x2ca5ad[_0x23582f];return _0xbf6fea;}function a207_0x2ca5(){const _0x5ebbd1=['1864AInusM','1277565WLICCs','120134FyfTCG','3ozCeqw','6gMqvDw','117ICMRGm','868OgbYTE','77CzwVUT','3507IOMQBN','170842KMBRUD','9VLkocW','2422UkCWbR','430800XFpiAC','1394990Wgrymt'];a207_0x2ca5=function(){return _0x5ebbd1;};return a207_0x2ca5();}export const userAccountDefinitions=[dingTalkSandboxBind];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x298892=a208_0x4f44;function a208_0x2782(){const _0x488d24=['472284ZyGzBT','6LZVmYk','28ASoyEp','workspace\x20add','520055oiBimX','name','App\x20profile\x20name','536562vGTBbg','1030808SeUmng','workspace','1206317wlGOup','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','10698660NpTFGB','write','119589GuDuEc'];a208_0x2782=function(){return _0x488d24;};return a208_0x2782();}(function(_0x15e2ac,_0x5a2e36){const _0x8dc395=a208_0x4f44,_0xe6bae0=_0x15e2ac();while(!![]){try{const _0xb703f=-parseInt(_0x8dc395(0x192))/0x1+-parseInt(_0x8dc395(0x18a))/0x2+-parseInt(_0x8dc395(0x191))/0x3+-parseInt(_0x8dc395(0x194))/0x4*(-parseInt(_0x8dc395(0x187))/0x5)+-parseInt(_0x8dc395(0x193))/0x6*(parseInt(_0x8dc395(0x18d))/0x7)+-parseInt(_0x8dc395(0x18b))/0x8+parseInt(_0x8dc395(0x18f))/0x9;if(_0xb703f===_0x5a2e36)break;else _0xe6bae0['push'](_0xe6bae0['shift']());}catch(_0x5da27d){_0xe6bae0['push'](_0xe6bae0['shift']());}}}(a208_0x2782,0xcbe87));function a208_0x4f44(_0x2bf1d4,_0xd095fb){_0x2bf1d4=_0x2bf1d4-0x186;const _0x2782ac=a208_0x2782();let _0x4f44ae=_0x2782ac[_0x2bf1d4];return _0x4f44ae;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a208_0x298892(0x18c),'command':'add','description':a208_0x298892(0x18e),'risk':a208_0x298892(0x190),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a208_0x298892(0x188),'description':a208_0x298892(0x189),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0xb4cd4f=>validateAppName(_0xb4cd4f,a208_0x298892(0x186)),'execute':_0x3b6acd=>runAppAdd(_0x3b6acd,a208_0x298892(0x186))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x469172=a209_0x45c8;(function(_0x1c5dea,_0x5a1fe3){const _0x10214d=a209_0x45c8,_0x289663=_0x1c5dea();while(!![]){try{const _0x43f97c=parseInt(_0x10214d(0x1ca))/0x1*(parseInt(_0x10214d(0x1cb))/0x2)+parseInt(_0x10214d(0x1b5))/0x3*(parseInt(_0x10214d(0x1c1))/0x4)+-parseInt(_0x10214d(0x1a7))/0x5*(-parseInt(_0x10214d(0x19e))/0x6)+-parseInt(_0x10214d(0x192))/0x7+parseInt(_0x10214d(0x197))/0x8+-parseInt(_0x10214d(0x1ad))/0x9*(-parseInt(_0x10214d(0x1ba))/0xa)+-parseInt(_0x10214d(0x1a3))/0xb*(parseInt(_0x10214d(0x1b9))/0xc);if(_0x43f97c===_0x5a1fe3)break;else _0x289663['push'](_0x289663['shift']());}catch(_0x346b8a){_0x289663['push'](_0x289663['shift']());}}}(a209_0x1743,0xc000b));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../../config/deployment-sync.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a209_0x469172(0x199),SAFE_PROFILE_KEYS=[a209_0x469172(0x1bc),a209_0x469172(0x19b),a209_0x469172(0x1a6),a209_0x469172(0x1c8),a209_0x469172(0x1b4),a209_0x469172(0x1ae),a209_0x469172(0x1ac),a209_0x469172(0x1c2)],workspaceFlags=[{'name':'app','type':a209_0x469172(0x1c9),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':'appcode','type':a209_0x469172(0x1c9),'description':a209_0x469172(0x19c)},{'name':a209_0x469172(0x19b),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1a2),'enum':[...RABETBASE_ENV_VALUES]},{'name':a209_0x469172(0x1a6),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1b3)},{'name':a209_0x469172(0x19d),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a209_0x469172(0x1c6),'description':a209_0x469172(0x191)},{'name':a209_0x469172(0x1ae),'type':a209_0x469172(0x1c9),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a209_0x469172(0x1ac),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1c5)},...getDeploymentSyncProfileFlagDefs()];function isRecord(_0x4f0d31){const _0x1f83bc=a209_0x469172;return!!_0x4f0d31&&typeof _0x4f0d31===_0x1f83bc(0x19f)&&!Array[_0x1f83bc(0x198)](_0x4f0d31);}function assertValidAppcode(_0x59358b){const _0x2785ff=a209_0x469172,{valid:_0x21b9f8,message:_0x3a29b4}=validateAppcode(_0x59358b);if(!_0x21b9f8)throw CliErrors[_0x2785ff(0x1bf)](_0x2785ff(0x1c0)+_0x59358b,_0x3a29b4);}function a209_0x1743(){const _0x566ad1=['isArray','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',').\x20Config:\x20','env','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','defaultFormat','6dEuiuN','object','workspace.','use','Target\x20environment','386661kKKlJH','.\x20Credentials:\x20not\x20written.','trim','apiDir','7783235tiBylN','\x20--appcode\x20<code>`.','workspace','updated','app','locale','3222927YcpKER','riskLevel','Missing\x20workspace\x20app\x20selector.','Workspace\x20','initialized','str','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','pageSize','2775IreNsQ','globalConfig','Initialize\x20the\x20current\x20workspace\x20app\x20binding','apps','1296JrrdPS','20NgdNFa','Use\x20`','appcode','write','\x20(appcode:\x20','validation','Invalid\x20appcode:\x20','6788PNYqhu','deploymentSync','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20workspace\x20','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','number','\x20--app\x20','format','string','859642eRlvGi','2jKwpWW','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','7643139UmSXMu','\x22\x20not\x20found.','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','init','7779264tcrkjf'];a209_0x1743=function(){return _0x566ad1;};return a209_0x1743();}function sanitizeProfile(_0x13569d){if(!isRecord(_0x13569d))return{};const _0x3eee79={};for(const _0x2186f5 of SAFE_PROFILE_KEYS){if(_0x13569d[_0x2186f5]!==undefined)_0x3eee79[_0x2186f5]=_0x13569d[_0x2186f5];}return _0x3eee79;}function cloneProfile(_0x53c854){return isRecord(_0x53c854)?{..._0x53c854}:{};}function collectWorkspaceProfileOverrides(_0x185855){const _0x39717f=a209_0x469172,_0x210c40={},_0x38f8c7=_0x185855[_0x39717f(0x1b2)]('env'),_0x5c22bf=_0x185855[_0x39717f(0x1b2)]('apiDir'),_0x366694=_0x185855[_0x39717f(0x1b2)](_0x39717f(0x19d)),_0x14bfa7=_0x185855['flag'](_0x39717f(0x1b4)),_0x139b7b=_0x185855[_0x39717f(0x1b2)](_0x39717f(0x1ae)),_0x18c8f1=_0x185855[_0x39717f(0x1b2)]('locale');if(_0x38f8c7)_0x210c40[_0x39717f(0x19b)]=_0x38f8c7;if(_0x5c22bf)_0x210c40[_0x39717f(0x1a6)]=_0x5c22bf;if(_0x366694)_0x210c40[_0x39717f(0x1c8)]=_0x366694;if(_0x14bfa7!==undefined&&_0x14bfa7!=='')_0x210c40[_0x39717f(0x1b4)]=Number(_0x14bfa7);if(_0x139b7b)_0x210c40[_0x39717f(0x1ae)]=_0x139b7b;if(_0x18c8f1)_0x210c40[_0x39717f(0x1ac)]=_0x18c8f1;const _0xc78fa9=collectDeploymentSyncProfile(_0x5e5254=>_0x185855[_0x39717f(0x1b2)](_0x5e5254));if(_0xc78fa9)_0x210c40['deploymentSync']=_0xc78fa9;return _0x210c40;}async function validateWorkspaceArgs(_0x2477fd){const _0x5c20a3=a209_0x469172,_0x11187c=_0x2477fd[_0x5c20a3(0x1b2)](_0x5c20a3(0x1ab))[_0x5c20a3(0x1a5)](),_0x206867=_0x2477fd[_0x5c20a3(0x1b2)](_0x5c20a3(0x1bc))[_0x5c20a3(0x1a5)]();if(!_0x11187c&&!_0x206867)throw CliErrors[_0x5c20a3(0x1bf)](_0x5c20a3(0x1af),_0x5c20a3(0x1bb)+CLI_BIN_NAME+_0x5c20a3(0x195)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x206867)assertValidAppcode(_0x206867);}function a209_0x45c8(_0x4925d1,_0xbf1d6a){_0x4925d1=_0x4925d1-0x191;const _0x1743ab=a209_0x1743();let _0x45c8b9=_0x1743ab[_0x4925d1];return _0x45c8b9;}function resolveKnownApps(){const _0x614c9e=a209_0x469172,{config:_0x2f4468,layers:_0x443d40}=readRawConfigWithLayers(),_0xf00b80=isRecord(_0x2f4468[_0x614c9e(0x1b8)])?_0x2f4468[_0x614c9e(0x1b8)]:{},_0x1a0302=isRecord(_0x443d40[_0x614c9e(0x1b6)]['apps'])?_0x443d40[_0x614c9e(0x1b6)][_0x614c9e(0x1b8)]:{};return{..._0x1a0302,..._0xf00b80};}async function configureWorkspace(_0x53fa7f,_0x2d204d){const _0x57dce8=a209_0x469172,_0x2dcf8f=_0x53fa7f[_0x57dce8(0x1b2)]('app')[_0x57dce8(0x1a5)](),_0x36f1f5=_0x53fa7f[_0x57dce8(0x1b2)](_0x57dce8(0x1bc))[_0x57dce8(0x1a5)](),_0x3b4201=_0x2dcf8f||_0x36f1f5;if(!_0x3b4201)throw CliErrors[_0x57dce8(0x1bf)](_0x57dce8(0x1af),_0x57dce8(0x1bb)+CLI_BIN_NAME+_0x57dce8(0x195)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x36f1f5)assertValidAppcode(_0x36f1f5);const _0x1f7501=resolveWriteConfigPath('project'),_0x23d012=readConfigFile(_0x1f7501),_0x1eda55=resolveKnownApps(),_0x104550=isRecord(_0x23d012[_0x57dce8(0x1b8)])?{..._0x23d012['apps']}:{},_0x43afa7=cloneProfile(_0x104550[_0x3b4201]),_0x2672cc=sanitizeProfile(_0x1eda55[_0x3b4201]),_0x5cc13e=_0x36f1f5?{}:_0x2672cc,_0x50b66b=_0x36f1f5||_0x5cc13e['appcode'];if(!_0x50b66b){const _0x421553=Object['keys'](_0x1eda55),_0x504edc=_0x421553['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x57dce8(0x1c4)+_0x2d204d+_0x57dce8(0x1c7)+_0x3b4201+_0x57dce8(0x1a8):_0x57dce8(0x194)+_0x421553['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x3b4201+_0x57dce8(0x193),_0x504edc);}assertValidAppcode(String(_0x50b66b));const _0x1a1234={..._0x5cc13e,..._0x43afa7,'appcode':String(_0x50b66b),...collectWorkspaceProfileOverrides(_0x53fa7f)};return _0x104550[_0x3b4201]=_0x1a1234,_0x23d012[_0x57dce8(0x1b8)]=_0x104550,normalizeStoredDefaultApp(_0x23d012,_0x3b4201),delete _0x23d012[_0x57dce8(0x1bc)],delete _0x23d012[_0x57dce8(0x1ab)],_0x1a1234[_0x57dce8(0x19b)]&&(_0x23d012[_0x57dce8(0x19b)]=_0x1a1234[_0x57dce8(0x19b)]),writeConfigFile(_0x1f7501,_0x23d012),{'ok':!![],'message':_0x57dce8(0x1b0)+(_0x2d204d===_0x57dce8(0x196)?_0x57dce8(0x1b1):_0x57dce8(0x1aa))+':\x20'+_0x3b4201+_0x57dce8(0x1be)+_0x1a1234[_0x57dce8(0x1bc)]+_0x57dce8(0x19a)+_0x1f7501+_0x57dce8(0x1a4),'data':{'operation':_0x57dce8(0x1a0)+_0x2d204d,'configPath':_0x1f7501,'app':_0x3b4201,'appcode':_0x1a1234[_0x57dce8(0x1bc)],'env':_0x1a1234['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a209_0x469172(0x1a9),'command':'init','description':a209_0x469172(0x1b7),'risk':a209_0x469172(0x1bd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4bb5f6=>configureWorkspace(_0x4bb5f6,a209_0x469172(0x196))},workspaceUseDefinition={'service':a209_0x469172(0x1a9),'command':'use','description':a209_0x469172(0x1c3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xcb9edb=>configureWorkspace(_0xcb9edb,a209_0x469172(0x1a1))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0xfc76(_0x2dc9b7,_0x48335b){_0x2dc9b7=_0x2dc9b7-0xcb;const _0x3b8e10=a210_0x3b8e();let _0xfc7676=_0x3b8e10[_0x2dc9b7];return _0xfc7676;}const a210_0x3f14f0=a210_0xfc76;function a210_0x3b8e(){const _0x52754e=['4750UhlSOg','35ILiwzn','remove','70551inBdhL','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','552AYdSOe','write','8150mseLJk','workspace\x20remove','4xhwBGu','333174JXKlSv','3727867WmfEAA','1199418cSldwX','3447DyTEUN','184YcDeKO'];a210_0x3b8e=function(){return _0x52754e;};return a210_0x3b8e();}(function(_0x13ba22,_0x1e562d){const _0x1bfb80=a210_0xfc76,_0x3b162a=_0x13ba22();while(!![]){try{const _0x2cca80=parseInt(_0x1bfb80(0xcd))/0x1+parseInt(_0x1bfb80(0xd3))/0x2*(-parseInt(_0x1bfb80(0xd4))/0x3)+-parseInt(_0x1bfb80(0xcf))/0x4*(parseInt(_0x1bfb80(0xd9))/0x5)+-parseInt(_0x1bfb80(0xd6))/0x6+parseInt(_0x1bfb80(0xcb))/0x7*(-parseInt(_0x1bfb80(0xd8))/0x8)+parseInt(_0x1bfb80(0xd7))/0x9*(parseInt(_0x1bfb80(0xd1))/0xa)+parseInt(_0x1bfb80(0xd5))/0xb;if(_0x2cca80===_0x1e562d)break;else _0x3b162a['push'](_0x3b162a['shift']());}catch(_0x2fb846){_0x3b162a['push'](_0x3b162a['shift']());}}}(a210_0x3b8e,0x291a7));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a210_0x3f14f0(0xcc),'description':a210_0x3f14f0(0xce),'risk':a210_0x3f14f0(0xd0),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x53ccbd=>validateAppName(_0x53ccbd,a210_0x3f14f0(0xd2)),'execute':_0x26316e=>runAppRemove(_0x26316e,a210_0x3f14f0(0xd2))};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FlagDef } from "../framework/types.js";
|
|
2
|
+
export declare const AUTO_DEPLOYMENT_TARGET_ENVS: readonly ["dev", "test", "pre"];
|
|
3
|
+
export type AutoDeploymentTargetEnv = typeof AUTO_DEPLOYMENT_TARGET_ENVS[number];
|
|
4
|
+
export interface DeploymentSyncProfile {
|
|
5
|
+
dbLinkId: number;
|
|
6
|
+
targetEnv: AutoDeploymentTargetEnv;
|
|
7
|
+
}
|
|
8
|
+
export declare function getDeploymentSyncProfileFlagDefs(): FlagDef[];
|
|
9
|
+
export declare function collectDeploymentSyncProfile(getFlagValue: (name: string) => string): DeploymentSyncProfile | undefined;
|
|
10
|
+
export declare function validateDeploymentSyncProfile(value: unknown): DeploymentSyncProfile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a211_0x505755=a211_0x3a5d;(function(_0xea7ebb,_0xaf1e9c){const _0x8de9ec=a211_0x3a5d,_0x3a185c=_0xea7ebb();while(!![]){try{const _0x14dc81=-parseInt(_0x8de9ec(0xa1))/0x1+-parseInt(_0x8de9ec(0xb7))/0x2*(parseInt(_0x8de9ec(0xa6))/0x3)+parseInt(_0x8de9ec(0xb4))/0x4+parseInt(_0x8de9ec(0xaa))/0x5+-parseInt(_0x8de9ec(0xa0))/0x6+parseInt(_0x8de9ec(0xae))/0x7+-parseInt(_0x8de9ec(0xb0))/0x8;if(_0x14dc81===_0xaf1e9c)break;else _0x3a185c['push'](_0x3a185c['shift']());}catch(_0x2ce8a7){_0x3a185c['push'](_0x3a185c['shift']());}}}(a211_0x3f8c,0x7f74a));import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=['dev',a211_0x505755(0xb3),a211_0x505755(0xaf)];export function getDeploymentSyncProfileFlagDefs(){const _0x3576b8=a211_0x505755;return[{'name':_0x3576b8(0xa5),'type':_0x3576b8(0xa7),'description':_0x3576b8(0xb1)},{'name':_0x3576b8(0xb2),'type':'string','enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x3576b8(0x9f)}];}export function collectDeploymentSyncProfile(_0x322581){const _0x228a8a=a211_0x505755,_0x2b2702=_0x322581('deployment-db-id')[_0x228a8a(0x9e)](),_0x1deea7=_0x322581(_0x228a8a(0xb2))[_0x228a8a(0x9e)]();if(!_0x2b2702&&!_0x1deea7)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x2b2702?Number(_0x2b2702):undefined,'targetEnv':_0x1deea7||undefined});}function a211_0x3f8c(){const _0x155b60=['object','validation','deployment-db-id','6pSdyjG','number','isArray','join','2097915gsRSbq','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','string','4640468KRFAHR','pre','100120wUZNdG','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','deployment-target-env','test','2590460CpObXj','includes','targetEnv','26426CtsDJi','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','trim','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','3915654ThnKkn','516514jPMEKe','--deployment-target-env\x20must\x20be\x20one\x20of:\x20'];a211_0x3f8c=function(){return _0x155b60;};return a211_0x3f8c();}function a211_0x3a5d(_0x591e1b,_0x5317d6){_0x591e1b=_0x591e1b-0x9d;const _0x3f8cf8=a211_0x3f8c();let _0x3a5d3e=_0x3f8cf8[_0x591e1b];return _0x3a5d3e;}export function validateDeploymentSyncProfile(_0x493eca){const _0x297809=a211_0x505755;if(!_0x493eca||typeof _0x493eca!==_0x297809(0xa3)||Array[_0x297809(0xa8)](_0x493eca))throw CliErrors[_0x297809(0xa4)](_0x297809(0xab));const _0x5d6600=_0x493eca,_0x499c71=Number(_0x5d6600['dbLinkId']);if(!Number['isSafeInteger'](_0x499c71)||_0x499c71<=0x0)throw CliErrors[_0x297809(0xa4)](_0x297809(0x9d));const _0x4b3672=typeof _0x5d6600[_0x297809(0xb6)]===_0x297809(0xad)?_0x5d6600[_0x297809(0xb6)][_0x297809(0x9e)]():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x297809(0xb5)](_0x4b3672))throw CliErrors['validation'](_0x297809(0xa2)+AUTO_DEPLOYMENT_TARGET_ENVS[_0x297809(0xa9)](',\x20')+'.',_0x297809(0xac));return{'dbLinkId':_0x499c71,'targetEnv':_0x4b3672};}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
1
|
+
export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
2
2
|
export type DomainConfigField = (typeof DOMAIN_CONFIG_FIELDS)[number];
|
|
3
3
|
export type DomainConfig = Partial<Record<DomainConfigField, string>>;
|
|
4
4
|
/** Old domain keys accepted only while reading existing configuration. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x15538a=a212_0x2762;(function(_0x1117fd,_0xbc0e5a){const _0x157bd0=a212_0x2762,_0x262dd5=_0x1117fd();while(!![]){try{const _0x453426=parseInt(_0x157bd0(0x1d0))/0x1+parseInt(_0x157bd0(0x1ef))/0x2*(parseInt(_0x157bd0(0x1d5))/0x3)+parseInt(_0x157bd0(0x1cf))/0x4*(parseInt(_0x157bd0(0x1dc))/0x5)+parseInt(_0x157bd0(0x1e3))/0x6*(parseInt(_0x157bd0(0x1f5))/0x7)+parseInt(_0x157bd0(0x1e0))/0x8+parseInt(_0x157bd0(0x1db))/0x9*(parseInt(_0x157bd0(0x1d7))/0xa)+-parseInt(_0x157bd0(0x1dd))/0xb;if(_0x453426===_0xbc0e5a)break;else _0x262dd5['push'](_0x262dd5['shift']());}catch(_0xfe98b9){_0x262dd5['push'](_0x262dd5['shift']());}}}(a212_0x3b70,0xbf6c6));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=['userDomain',a212_0x15538a(0x1c6),a212_0x15538a(0x1ea),a212_0x15538a(0x1ca),a212_0x15538a(0x1f4),'kbSearchDomain',a212_0x15538a(0x1ee),'localDomain',a212_0x15538a(0x1ce)];const DOMAIN_FLAGS={'userDomain':a212_0x15538a(0x1e6),'apiDomain':a212_0x15538a(0x1d6),'runtimeDomain':'runtime-domain','skillDomain':a212_0x15538a(0x1f0),'kbDomain':'kb-domain','kbSearchDomain':a212_0x15538a(0x1df),'appDomain':'app-domain','localDomain':a212_0x15538a(0x1de),'certificateDomain':a212_0x15538a(0x1cd)};function a212_0x3b70(){const _0x36ea2d=['213lwIXVe','api-domain','119230OpnNGS','validation','https:','parse','819hoKFgM','230450IShLum','36556245FWnIvs','local-domain','kb-search-domain','8087344HQvwvY','isArray','agentDomain','6bwIelM','platformDomain','username','user-domain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','skillHubDomain','Invalid\x20','runtimeDomain','password','length','keys','appDomain','17764udQjfI','skill-domain',':\x20\x22','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Allowed\x20fields:\x20','kbDomain','663236kzFyrb','string','Invalid\x20domain\x20config\x20JSON:\x20','domain-config','apiDomain','hash','trim','join','skillDomain','Domain\x20config\x20file\x20not\x20found:\x20','includes','certificate-domain','certificateDomain','28uJoSuo','963454jEeMeK','str','origin',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','protocol'];a212_0x3b70=function(){return _0x36ea2d;};return a212_0x3b70();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x15538a(0x1e2),a212_0x15538a(0x1e4),a212_0x15538a(0x1e8)];export function normalizeDomainOrigin(_0xbdb5f9,_0x31686a){const _0x2acd9c=a212_0x15538a;if(typeof _0x31686a!==_0x2acd9c(0x1f6)||!_0x31686a[_0x2acd9c(0x1c8)]())throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x30e329;try{_0x30e329=new URL(_0x31686a[_0x2acd9c(0x1c8)]());}catch{throw CliErrors[_0x2acd9c(0x1d8)]('Invalid\x20'+_0xbdb5f9+_0x2acd9c(0x1f1)+_0x31686a+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x30e329[_0x2acd9c(0x1d4)]!==_0x2acd9c(0x1d9)||_0x30e329[_0x2acd9c(0x1e5)]||_0x30e329[_0x2acd9c(0x1eb)]||_0x30e329['pathname']!=='/'&&_0x30e329['pathname']!==''||_0x30e329['search']||_0x30e329[_0x2acd9c(0x1c7)])throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+_0x2acd9c(0x1d3),_0x2acd9c(0x1e7));return _0x30e329[_0x2acd9c(0x1d2)];}export function readDomainConfig(_0x4cd9e2){const _0x1d301a=a212_0x15538a,_0x4bb350=isAbsolute(_0x4cd9e2)?_0x4cd9e2:resolve(process['cwd'](),_0x4cd9e2);if(!existsSync(_0x4bb350))throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1cb)+_0x4bb350);let _0x3ddd66;try{_0x3ddd66=JSON[_0x1d301a(0x1da)](readFileSync(_0x4bb350,'utf8'));}catch{throw CliErrors['validation'](_0x1d301a(0x1f7)+_0x4bb350);}if(!_0x3ddd66||typeof _0x3ddd66!=='object'||Array[_0x1d301a(0x1e1)](_0x3ddd66))throw CliErrors[_0x1d301a(0x1d8)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x261e6d=_0x3ddd66,_0x213d82=Object[_0x1d301a(0x1ed)](_0x261e6d)['filter'](_0x316946=>!DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1cc)](_0x316946));if(_0x213d82[_0x1d301a(0x1ec)]>0x0)throw CliErrors[_0x1d301a(0x1d8)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x213d82[_0x1d301a(0x1c9)](',\x20'),_0x1d301a(0x1f3)+DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1c9)](',\x20'));const _0x55ab02={};for(const _0x3d8e40 of DOMAIN_CONFIG_FIELDS){_0x261e6d[_0x3d8e40]!==undefined&&(_0x55ab02[_0x3d8e40]=normalizeDomainOrigin(_0x3d8e40,_0x261e6d[_0x3d8e40]));}if(Object[_0x1d301a(0x1ed)](_0x55ab02)[_0x1d301a(0x1ec)]===0x0)throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1f2));return _0x55ab02;}function a212_0x2762(_0xb719b8,_0x5755f1){_0xb719b8=_0xb719b8-0x1c5;const _0x3b70d8=a212_0x3b70();let _0x2762d7=_0x3b70d8[_0xb719b8];return _0x2762d7;}export function resolveDomainFlags(_0x5bd2e4){const _0x162c0b=a212_0x15538a,_0x3da20e=(_0x5bd2e4[_0x162c0b(0x1d1)](_0x162c0b(0x1c5))||'')[_0x162c0b(0x1c8)](),_0x3b0737=_0x3da20e?readDomainConfig(_0x3da20e):{};for(const _0x5af01b of DOMAIN_CONFIG_FIELDS){const _0x22ff24=(_0x5bd2e4[_0x162c0b(0x1d1)](DOMAIN_FLAGS[_0x5af01b])||'')[_0x162c0b(0x1c8)]();if(_0x22ff24)_0x3b0737[_0x5af01b]=normalizeDomainOrigin(_0x5af01b,_0x22ff24);}return _0x3b0737;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x447964,_0x181a70){const _0x278ee3=a213_0x34cf,_0x30d1eb=_0x447964();while(!![]){try{const _0x2cb940=parseInt(_0x278ee3(0xe6))/0x1*(parseInt(_0x278ee3(0xe0))/0x2)+-parseInt(_0x278ee3(0xea))/0x3+parseInt(_0x278ee3(0xde))/0x4*(-parseInt(_0x278ee3(0xdd))/0x5)+parseInt(_0x278ee3(0xe9))/0x6*(parseInt(_0x278ee3(0xe2))/0x7)+-parseInt(_0x278ee3(0xeb))/0x8*(parseInt(_0x278ee3(0xe8))/0x9)+parseInt(_0x278ee3(0xdc))/0xa+parseInt(_0x278ee3(0xdb))/0xb;if(_0x2cb940===_0x181a70)break;else _0x30d1eb['push'](_0x30d1eb['shift']());}catch(_0x389a25){_0x30d1eb['push'](_0x30d1eb['shift']());}}}(a213_0x2eed,0x20bbc));import{writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';function a213_0x2eed(){const _0x544df5=['421998Nbohja','466521UqgAMm','8YCAeBd','assets','stringify','196559AjhQUp','2648510AdeVxZ','60ETePFT','29180WDLPXn','/cert/lovrabet-dev.json','22patUeT','local','7XzMcDS','independent','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','utf8','16457vmTPhr','http://localhost','1412613KFwaPy'];a213_0x2eed=function(){return _0x544df5;};return a213_0x2eed();}export const PROJECT_ROUTING_FILE_NAME='rabetbase.routing.json';export const PROJECT_ROUTING_PROTOCOL='lovrabet-project-routing/v1';export function getProjectRoutingManifest(){const _0x247cd4=a213_0x34cf,_0x59a678=getActiveRegion(),_0x376cdb=isIndependentDeployment(),_0x227ab8=getOfficialRoutingProfile(_0x59a678),_0x2d631d=getLocalDomain(),_0x58f713=getCertificateDomain();if(!!_0x2d631d!==!!_0x58f713)throw new Error(_0x247cd4(0xe4));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x376cdb?_0x247cd4(0xe3):'official','region':_0x376cdb?null:_0x59a678,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0x227ab8[_0x247cd4(0xd9)],'local':_0x2d631d&&_0x58f713?{'origin':_0x2d631d,'certificateUrl':_0x58f713+_0x247cd4(0xdf)}:_0x376cdb?{'origin':_0x247cd4(0xe7)}:_0x227ab8[_0x247cd4(0xe1)]};}function a213_0x34cf(_0x49693b,_0x59bb45){_0x49693b=_0x49693b-0xd9;const _0x2eed8b=a213_0x2eed();let _0x34cf27=_0x2eed8b[_0x49693b];return _0x34cf27;}export function writeProjectRoutingManifest(_0xe16ffb){const _0x349d53=a213_0x34cf,_0x41c63b=getProjectRoutingManifest(),_0x1011b6=join(_0xe16ffb,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0x1011b6,JSON[_0x349d53(0xda)](_0x41c63b,null,0x2)+'\x0a',_0x349d53(0xe5)),{'path':_0x1011b6,'manifest':_0x41c63b};}
|
package/lib/config/schema.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FlagDef } from "../framework/types.js";
|
|
2
2
|
export { DEFAULT_CONFIG_VALUES } from "../constant/defaults.js";
|
|
3
|
-
export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
3
|
+
export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
4
4
|
export interface ConfigMetadataFields {
|
|
5
5
|
version?: string;
|
|
6
6
|
createdAt?: string;
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a214_0x5cf831=a214_0x59af;function a214_0x59af(_0x2f39e1,_0x5831a9){_0x2f39e1=_0x2f39e1-0x1b6;const _0x50dd13=a214_0x50dd();let _0x59afd6=_0x50dd13[_0x2f39e1];return _0x59afd6;}(function(_0x239883,_0x36af06){const _0x58ecaf=a214_0x59af,_0x23846c=_0x239883();while(!![]){try{const _0x1ecc85=parseInt(_0x58ecaf(0x1db))/0x1*(-parseInt(_0x58ecaf(0x1d8))/0x2)+-parseInt(_0x58ecaf(0x1bb))/0x3+-parseInt(_0x58ecaf(0x1d3))/0x4*(-parseInt(_0x58ecaf(0x1cf))/0x5)+-parseInt(_0x58ecaf(0x1b6))/0x6*(parseInt(_0x58ecaf(0x1ce))/0x7)+parseInt(_0x58ecaf(0x1d0))/0x8+parseInt(_0x58ecaf(0x1e6))/0x9+parseInt(_0x58ecaf(0x1d7))/0xa*(parseInt(_0x58ecaf(0x1e2))/0xb);if(_0x1ecc85===_0x36af06)break;else _0x23846c['push'](_0x23846c['shift']());}catch(_0x2f4b4a){_0x23846c['push'](_0x23846c['shift']());}}}(a214_0x50dd,0x976c3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey','locale',a214_0x5cf831(0x1d1),a214_0x5cf831(0x1d2),a214_0x5cf831(0x1c4),a214_0x5cf831(0x1cc),a214_0x5cf831(0x1e9),a214_0x5cf831(0x1bd),a214_0x5cf831(0x1d9),a214_0x5cf831(0x1de),'kbSearchDomain','appDomain',a214_0x5cf831(0x1c6),a214_0x5cf831(0x1da)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a214_0x5cf831(0x1ba),'env',a214_0x5cf831(0x1dc),a214_0x5cf831(0x1d1),a214_0x5cf831(0x1e5),a214_0x5cf831(0x1cd),a214_0x5cf831(0x1e4),a214_0x5cf831(0x1c4),'userDomain',a214_0x5cf831(0x1e9),a214_0x5cf831(0x1bd),a214_0x5cf831(0x1d9),a214_0x5cf831(0x1de),'kbSearchDomain',a214_0x5cf831(0x1c1),a214_0x5cf831(0x1c6),a214_0x5cf831(0x1da)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x25bb66){const _0x17bc2a=a214_0x5cf831;return[..._0x25bb66][_0x17bc2a(0x1d4)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x360e3e){const _0x325086=a214_0x5cf831;return TOP_LEVEL_CONFIG_KEYS[_0x325086(0x1bf)](_0x360e3e);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3a76e2=a214_0x5cf831;return _0x3a76e2(0x1e7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a214_0x5cf831(0x1be),'apiDir':a214_0x5cf831(0x1e4),'cookie':a214_0x5cf831(0x1e5),'accessKey':a214_0x5cf831(0x1cd),'defaultFormat':a214_0x5cf831(0x1d1),'pageSize':a214_0x5cf831(0x1eb),'riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x120f6c=a214_0x5cf831;return[{'name':_0x120f6c(0x1be),'type':_0x120f6c(0x1e8),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x120f6c(0x1e4),'type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c5)},{'name':_0x120f6c(0x1e5),'type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c0),'hidden':!![]},{'name':_0x120f6c(0x1cd),'type':'string','description':_0x120f6c(0x1c3),'hidden':!![]},{'name':'defaultFormat','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c8),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x120f6c(0x1eb),'type':_0x120f6c(0x1dd),'description':_0x120f6c(0x1d6)},{'name':'riskLevel','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1cb),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1e1)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0xf1e87f){const _0x5c28bd=a214_0x5cf831,_0x3717dc={};for(const [_0x403b6f,_0x4ada63]of Object[_0x5c28bd(0x1ca)](APP_PROFILE_FLAG_KEY_MAP)){const _0x49d61d=_0xf1e87f(_0x403b6f);if(!_0x49d61d)continue;_0x3717dc[_0x4ada63]=_0x4ada63===_0x5c28bd(0x1eb)?Number(_0x49d61d):_0x49d61d;}const _0x326371=collectDeploymentSyncProfile(_0xf1e87f);if(_0x326371)_0x3717dc[_0x5c28bd(0x1ea)]=_0x326371;return _0x3717dc;}function a214_0x50dd(){const _0x3dca2a=['10EueKmj','1787768PvOYBe','format','riskLevel','2046804pGgFbW','join','filter','Default\x20page\x20size','10axKfLR','2ComoAt','skillDomain','certificateDomain','755215xmxZyh','locale','number','kbDomain','keys','defaultApp','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','13555003LGqRzu','apps','apiDir','cookie','500697bgHzax','Config\x20key\x20(','string','apiDomain','deploymentSync','pageSize','6nbwsRl','inherit','en-US','app','appcode','2678382GnvuMg','toLowerCase','runtimeDomain','env','has','Auth\x20cookie','appDomain','trim','Access\x20key','region','API\x20directory\x20path','localDomain','zh-CN','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','length','entries','Risk\x20level','userDomain','accessKey','1865801wDEjhj'];a214_0x50dd=function(){return _0x3dca2a;};return a214_0x50dd();}export function buildAppProfileListFields(_0x330a95){const _0xba7299=a214_0x5cf831;return{'env':_0x330a95[_0xba7299(0x1be)]??null,'apiDir':_0x330a95['apiDir']??null,'hasCookie':!!_0x330a95[_0xba7299(0x1e5)],'hasAccessKey':!!_0x330a95['accessKey'],'format':_0x330a95['format']??null,'pageSize':_0x330a95[_0xba7299(0x1eb)]??null,'riskLevel':_0x330a95[_0xba7299(0x1d2)]??null,'locale':_0x330a95[_0xba7299(0x1dc)]??null,'deploymentSync':_0x330a95[_0xba7299(0x1ea)]??null};}export function buildAppDoctorFields(_0x36f353,_0x30f4a7){const _0x11425d=a214_0x5cf831;return{'env':{'value':_0x36f353[_0x11425d(0x1be)]||_0x30f4a7[_0x11425d(0x1be)],'source':_0x36f353[_0x11425d(0x1be)]?'app':'inherit'},'apiDir':{'value':_0x36f353[_0x11425d(0x1e4)]||_0x30f4a7[_0x11425d(0x1e4)],'source':_0x36f353['apiDir']?_0x11425d(0x1b9):_0x11425d(0x1b7)},'cookie':{'value':_0x36f353[_0x11425d(0x1e5)]||_0x30f4a7['cookie'],'source':_0x36f353['cookie']?_0x11425d(0x1b9):_0x11425d(0x1b7)},'accessKey':{'value':_0x36f353[_0x11425d(0x1cd)]||_0x30f4a7[_0x11425d(0x1cd)],'source':_0x36f353[_0x11425d(0x1cd)]?'app':_0x11425d(0x1b7)}};}export function buildCanonicalAppConfig(_0x5b4c4c,_0x1e035b){const _0x40a698=a214_0x5cf831,_0x4c4e59=_0x5b4c4c['map'](_0x386c81=>String(_0x386c81||'')[_0x40a698(0x1c2)]())[_0x40a698(0x1d5)](Boolean);if(_0x4c4e59[_0x40a698(0x1c9)]===0x0)return{};const _0x163088={};for(const _0xef67c0 of _0x4c4e59){_0x163088[_0xef67c0]=_0x1e035b?{'appcode':_0xef67c0,'env':_0x1e035b}:{'appcode':_0xef67c0};}return _0x4c4e59[_0x40a698(0x1c9)]>0x1?{'apps':_0x163088,'defaultApp':_0x4c4e59[0x0]}:{'apps':_0x163088};}export function normalizeStoredDefaultApp(_0x42384a,_0x24517f){const _0x49b73f=a214_0x5cf831,_0x313e5e=_0x42384a[_0x49b73f(0x1e3)]&&typeof _0x42384a['apps']==='object'?_0x42384a[_0x49b73f(0x1e3)]:{},_0x18f967=Object['keys'](_0x313e5e);if(_0x18f967[_0x49b73f(0x1c9)]<=0x1)return delete _0x42384a[_0x49b73f(0x1e0)],undefined;const _0x34e793=typeof _0x42384a[_0x49b73f(0x1e0)]===_0x49b73f(0x1e8)&&_0x313e5e[_0x42384a[_0x49b73f(0x1e0)]]?_0x42384a[_0x49b73f(0x1e0)]:undefined,_0x2f6787=_0x24517f&&_0x313e5e[_0x24517f]?_0x24517f:_0x34e793;if(_0x2f6787)return _0x42384a[_0x49b73f(0x1e0)]=_0x2f6787,_0x2f6787;return delete _0x42384a['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x882260,_0x2d0620){const _0x28f7f3=a214_0x5cf831,{appCodes:appCodes=[],env:_0x4bddc7,metadata:_0x9e2d12}=_0x2d0620,_0x5da6c2={..._0x882260,..._0x9e2d12||{}};delete _0x5da6c2[_0x28f7f3(0x1ba)],delete _0x5da6c2[_0x28f7f3(0x1b9)];if(_0x4bddc7)_0x5da6c2[_0x28f7f3(0x1be)]=_0x4bddc7;else!_0x5da6c2[_0x28f7f3(0x1be)]&&(_0x5da6c2['env']=DEFAULT_CONFIG_VALUES['env']);const _0x1d0f71=buildCanonicalAppConfig(appCodes,_0x5da6c2['env']);if(Object[_0x28f7f3(0x1df)](_0x1d0f71)['length']>0x0){_0x5da6c2['apps']=_0x1d0f71[_0x28f7f3(0x1e3)];if(_0x1d0f71[_0x28f7f3(0x1e0)])_0x5da6c2['defaultApp']=_0x1d0f71[_0x28f7f3(0x1e0)];else delete _0x5da6c2[_0x28f7f3(0x1e0)];}return _0x5da6c2;}const LOCALE_MAP={'zh':a214_0x5cf831(0x1c7),'zh-cn':a214_0x5cf831(0x1c7),'zh_cn':a214_0x5cf831(0x1c7),'en':a214_0x5cf831(0x1b8),'en-us':a214_0x5cf831(0x1b8),'en_us':a214_0x5cf831(0x1b8)};export function normalizeLocale(_0x4e0c57){const _0xf9d877=a214_0x5cf831;if(!_0x4e0c57)return null;return LOCALE_MAP[_0x4e0c57[_0xf9d877(0x1bc)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a215_0x4581(){const _0x534c22=['4729398NRNNRp','1823814jQpgSg','917922IQtmTq','374375gYlUeE','4bEYtaD','/templates/projects','/config/index.json','6164949nfZcIO','https://g.lovrabet.com/dist/rabetbase-cli','1691830HIAajn','2869570ULDQns','4fjfRDx','8daktuU'];a215_0x4581=function(){return _0x534c22;};return a215_0x4581();}const a215_0x23cf2c=a215_0x133f;(function(_0x19d336,_0x22aaa8){const _0xa62420=a215_0x133f,_0x30b184=_0x19d336();while(!![]){try{const _0x5ebb5a=-parseInt(_0xa62420(0x181))/0x1+parseInt(_0xa62420(0x182))/0x2*(-parseInt(_0xa62420(0x180))/0x3)+parseInt(_0xa62420(0x189))/0x4*(parseInt(_0xa62420(0x187))/0x5)+parseInt(_0xa62420(0x18b))/0x6+parseInt(_0xa62420(0x185))/0x7*(parseInt(_0xa62420(0x18a))/0x8)+-parseInt(_0xa62420(0x18c))/0x9+-parseInt(_0xa62420(0x188))/0xa;if(_0x5ebb5a===_0x22aaa8)break;else _0x30b184['push'](_0x30b184['shift']());}catch(_0x1a3d98){_0x30b184['push'](_0x30b184['shift']());}}}(a215_0x4581,0x81bb4));export const RABETBASE_CDN_BASE_URL=a215_0x23cf2c(0x186);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a215_0x23cf2c(0x184);function a215_0x133f(_0x5df91b,_0x2abb78){_0x5df91b=_0x5df91b-0x180;const _0x458189=a215_0x4581();let _0x133fe9=_0x458189[_0x5df91b];return _0x133fe9;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a215_0x23cf2c(0x183);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a210_0x2609dc=a210_0x53d4;(function(_0x288504,_0x22d835){const _0xe1d59=a210_0x53d4,_0x156858=_0x288504();while(!![]){try{const _0x4449b5=-parseInt(_0xe1d59(0x9d))/0x1*(-parseInt(_0xe1d59(0xa3))/0x2)+parseInt(_0xe1d59(0xb6))/0x3*(-parseInt(_0xe1d59(0x10f))/0x4)+-parseInt(_0xe1d59(0xdc))/0x5*(parseInt(_0xe1d59(0xf3))/0x6)+parseInt(_0xe1d59(0x105))/0x7*(parseInt(_0xe1d59(0xde))/0x8)+-parseInt(_0xe1d59(0xc6))/0x9*(parseInt(_0xe1d59(0x93))/0xa)+parseInt(_0xe1d59(0xef))/0xb*(-parseInt(_0xe1d59(0xe7))/0xc)+parseInt(_0xe1d59(0xee))/0xd*(parseInt(_0xe1d59(0xf1))/0xe);if(_0x4449b5===_0x22d835)break;else _0x156858['push'](_0x156858['shift']());}catch(_0x41dd0e){_0x156858['push'](_0x156858['shift']());}}}(a210_0xb20c,0x9b0af));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a210_0x2609dc(0xbd);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a210_0x2609dc(0xe1),'description':'Override\x20appcode','hint':a210_0x2609dc(0xa5)},{'name':'app','meowKey':a210_0x2609dc(0xc0),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a210_0x2609dc(0x10e)},{'name':a210_0x2609dc(0xbe),'meowKey':a210_0x2609dc(0xbe),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb5),'hint':a210_0x2609dc(0xff)},{'name':a210_0x2609dc(0xac),'meowKey':a210_0x2609dc(0xac),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb2),'hint':a210_0x2609dc(0xa4)},{'name':'jq','meowKey':'jq','type':a210_0x2609dc(0xe1),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a210_0x2609dc(0xb4)},{'name':'dry-run','meowKey':a210_0x2609dc(0xf8),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xb3)},{'name':a210_0x2609dc(0xd5),'meowKey':a210_0x2609dc(0xd5),'type':'boolean','description':a210_0x2609dc(0xe9)},{'name':a210_0x2609dc(0xf6),'meowKey':'nonInteractive','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xd7)},{'name':a210_0x2609dc(0xf9),'meowKey':a210_0x2609dc(0xf9),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xc4)},{'name':a210_0x2609dc(0xae),'meowKey':a210_0x2609dc(0xae),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a210_0x2609dc(0xb1),'hidden':!![]},{'name':a210_0x2609dc(0xc8),'meowKey':a210_0x2609dc(0xc8),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xf7)},{'name':a210_0x2609dc(0xe3),'meowKey':a210_0x2609dc(0xe3),'type':a210_0x2609dc(0xe1),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a210_0x2609dc(0xd2)},{'name':a210_0x2609dc(0x9e),'meowKey':a210_0x2609dc(0x9e),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x10b),'hidden':!![]},{'name':a210_0x2609dc(0x99),'meowKey':a210_0x2609dc(0x99),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xec),'hidden':!![]},{'name':a210_0x2609dc(0x9a),'meowKey':'query','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x96),'hidden':!![]},{'name':a210_0x2609dc(0xad),'meowKey':a210_0x2609dc(0xad),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x110),'hidden':!![]},{'name':a210_0x2609dc(0xaa),'meowKey':a210_0x2609dc(0xaa),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xe6),'hidden':!![]},{'name':a210_0x2609dc(0x92),'meowKey':'watch','type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':a210_0x2609dc(0xc9),'meowKey':a210_0x2609dc(0xc9),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xe5),'hidden':!![]},{'name':a210_0x2609dc(0xd8),'meowKey':a210_0x2609dc(0xd8),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb9),'hidden':!![]},{'name':'datasetcode','meowKey':a210_0x2609dc(0xcd),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a210_0x2609dc(0xbf),'meowKey':'all','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xcb),'hidden':!![]},{'name':a210_0x2609dc(0xfb),'meowKey':'enableBffSave','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xd9),'hidden':!![]},{'name':'id','meowKey':'id','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x9c),'hidden':!![]},{'name':a210_0x2609dc(0xa8),'meowKey':a210_0x2609dc(0xa8),'type':a210_0x2609dc(0xe1),'description':'Type\x20filter','hidden':!![]},{'name':a210_0x2609dc(0xa1),'meowKey':a210_0x2609dc(0xa1),'type':a210_0x2609dc(0xe1),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a210_0x2609dc(0xe1),'description':'SQL\x20code','hidden':!![]},{'name':'sql-name','meowKey':a210_0x2609dc(0x8d),'type':'string','description':a210_0x2609dc(0x111),'hidden':!![]},{'name':a210_0x2609dc(0xaf),'meowKey':a210_0x2609dc(0xaf),'type':'string','description':a210_0x2609dc(0x111),'hidden':!![]},{'name':a210_0x2609dc(0xb7),'meowKey':'dbId','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x112),'hidden':!![]},{'name':a210_0x2609dc(0xcc),'meowKey':'dbid','type':a210_0x2609dc(0xe1),'description':'DB\x20ID','hidden':!![]},{'name':a210_0x2609dc(0xfd),'meowKey':a210_0x2609dc(0xfd),'type':'string','description':a210_0x2609dc(0xce),'hidden':!![]},{'name':a210_0x2609dc(0x100),'meowKey':a210_0x2609dc(0xdb),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xbb),'hidden':!![]},{'name':a210_0x2609dc(0xd6),'meowKey':a210_0x2609dc(0xd6),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xdf),'hidden':!![]},{'name':a210_0x2609dc(0x9b),'meowKey':a210_0x2609dc(0x9b),'type':'string','description':a210_0x2609dc(0xc5),'hidden':!![]},{'name':a210_0x2609dc(0xeb),'meowKey':a210_0x2609dc(0xeb),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xbc),'hidden':!![]},{'name':a210_0x2609dc(0x10c),'meowKey':a210_0x2609dc(0x10c),'type':'string','description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a210_0x2609dc(0x107),'type':a210_0x2609dc(0xe1),'description':'SQL\x20string','hidden':!![]},{'name':a210_0x2609dc(0xe2),'meowKey':a210_0x2609dc(0xe2),'type':a210_0x2609dc(0xe1),'description':'Schemas','hidden':!![]},{'name':a210_0x2609dc(0xca),'meowKey':'operation','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xd3),'hidden':!![]},{'name':'target','meowKey':a210_0x2609dc(0xda),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xe0),'hidden':!![]},{'name':a210_0x2609dc(0xa6),'meowKey':a210_0x2609dc(0xf5),'type':'boolean','description':a210_0x2609dc(0xdd),'hidden':!![]},{'name':a210_0x2609dc(0xc2),'meowKey':a210_0x2609dc(0xc2),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xfa),'hidden':!![]},{'name':a210_0x2609dc(0x94),'meowKey':a210_0x2609dc(0x94),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x91),'hidden':!![]},{'name':a210_0x2609dc(0x8f),'meowKey':a210_0x2609dc(0x8f),'type':'string','description':a210_0x2609dc(0x10a),'hidden':!![]},{'name':a210_0x2609dc(0x90),'meowKey':a210_0x2609dc(0x90),'type':a210_0x2609dc(0xea),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a210_0x2609dc(0xf2),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x106),'hidden':!![]},{'name':a210_0x2609dc(0x98),'meowKey':a210_0x2609dc(0x98),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xf0),'hidden':!![]},{'name':a210_0x2609dc(0xa2),'meowKey':a210_0x2609dc(0xa2),'type':a210_0x2609dc(0xea),'description':'Force\x20overwrite','hidden':!![]},{'name':a210_0x2609dc(0xd4),'meowKey':a210_0x2609dc(0xd4),'type':a210_0x2609dc(0xea),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a210_0x2609dc(0xc7),'meowKey':a210_0x2609dc(0xc7),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0x101),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xba),'hidden':!![]},{'name':a210_0x2609dc(0xa9),'meowKey':a210_0x2609dc(0xe4),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xed),'hidden':!![]},{'name':a210_0x2609dc(0xd1),'meowKey':'label','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x9f),'hidden':!![]},{'name':a210_0x2609dc(0xfe),'meowKey':a210_0x2609dc(0x10d),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a210_0x2609dc(0x95),'meowKey':'sort','type':'string','description':a210_0x2609dc(0xc3),'hidden':!![]},{'name':a210_0x2609dc(0x109),'meowKey':a210_0x2609dc(0xf4),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xa0),'hidden':!![]},{'name':a210_0x2609dc(0x103),'meowKey':a210_0x2609dc(0xc1),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x8e),'hidden':!![]},{'name':a210_0x2609dc(0x102),'meowKey':'expectedChildrenCount','type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a210_0x2609dc(0xfc),'meowKey':'menuIds','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xa7),'hidden':!![]},{'name':'task-id','meowKey':a210_0x2609dc(0xd0),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xab),'hidden':!![]},{'name':a210_0x2609dc(0xcf),'meowKey':a210_0x2609dc(0x108),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xd3),'hidden':!![]},{'name':'function-node','meowKey':a210_0x2609dc(0xb8),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb0),'hidden':!![]}];function a210_0xb20c(){const _0x3ee1ae=['Read\x20value\x20from\x20environment\x20variable','sql','operationType','expect-parent-id','Tags','Name','code','parentId','<name>','908AvCwUl','Maximum\x20search\x20hits','SQL\x20name','DB\x20ID','sqlName','Expected\x20current\x20menu\x20path','tags','stdin','Config\x20value','watch','269130WukSBO','value','sort','Search\x20query','appcode','reveal','title','query','pagesize','Record\x20ID','5PYVfVU','name','Menu\x20label','Expected\x20current\x20parent\x20menu\x20id','file','force','124170zuKLcu','json\x20|\x20pretty\x20|\x20compress','<code>','skip-imports','Comma-separated\x20menu\x20IDs','type','expected-count','clear','Asynchronous\x20task\x20ID','format','topk','project','sqlname','Function\x20node','Alias\x20for\x20--non-interactive','Output\x20format','Preview\x20operation\x20without\x20executing','<expr>','Environment','1329CNwdjE','db-id','functionNode','JSON\x20params','Verbose\x20output','Description\x20file','Keyword\x20filter','@lovrabet/rabetbase-cli','env','all','app','expectPath','key','Menu\x20sort\x20value','Use\x20global\x20config\x20scope','Page\x20size','135PGTPaU','remote','help','output','operation','Apply\x20to\x20all','dbid','datasetcode','Description','operation-type','taskId','label','zh-CN\x20|\x20en-US','Operation\x20type','confirm','yes','page','Force\x20non-interactive\x20mode\x20(CI)','params','Enable\x20Backend\x20Function\x20save','target','descriptionFile','125VTCcCk','Skip\x20import\x20generation','3417832nBlgWm','Page\x20number','Target\x20path','string','schemas','locale','expectedCount','Output\x20path','Clear','108KNFQaD','dry-run','Skip\x20confirmation\x20for\x20high-risk\x20writes','boolean','keyword','Title','Expected\x20affected\x20count','13YelRZm','49071hZpVNj','Reveal\x20sensitive\x20value','11742934hcbjXb','fromEnv','95274wVyvVE','expectParentId','skipImports','non-interactive','Show\x20help','dryRun','global','Config\x20key','enable-bff-save','menu-ids','description','parent-id','production\x20|\x20daily','description-file','Use\x20remote','expected-children-count','expect-path','map','7kbTwlC'];a210_0xb20c=function(){return _0x3ee1ae;};return a210_0xb20c();}export const PIPELINE_FLAG_NAMES=new Set([a210_0x2609dc(0x97),a210_0x2609dc(0xc0),a210_0x2609dc(0xbe),a210_0x2609dc(0xac),'jq',a210_0x2609dc(0xe8),'yes',a210_0x2609dc(0xf6),'ci']);function a210_0x53d4(_0x11fe91,_0x1d7a56){_0x11fe91=_0x11fe91-0x8d;const _0xb20caf=a210_0xb20c();let _0x53d493=_0xb20caf[_0x11fe91];return _0x53d493;}export function buildMeowFlags(){const _0x4e646a=a210_0x2609dc;return Object['fromEntries'](GLOBAL_FLAGS[_0x4e646a(0x104)](_0x438bb8=>[_0x438bb8['meowKey'],{'type':_0x438bb8[_0x4e646a(0xa8)]}]));}
|
|
1
|
+
const a216_0x2143f3=a216_0x5b5d;(function(_0x31b8eb,_0x5b56e8){const _0x212bbc=a216_0x5b5d,_0x5ee4d1=_0x31b8eb();while(!![]){try{const _0x13506a=parseInt(_0x212bbc(0xfe))/0x1*(parseInt(_0x212bbc(0xe5))/0x2)+-parseInt(_0x212bbc(0x164))/0x3+parseInt(_0x212bbc(0x121))/0x4+-parseInt(_0x212bbc(0x14b))/0x5*(parseInt(_0x212bbc(0x12a))/0x6)+-parseInt(_0x212bbc(0xde))/0x7*(-parseInt(_0x212bbc(0x155))/0x8)+-parseInt(_0x212bbc(0x106))/0x9+parseInt(_0x212bbc(0xe2))/0xa*(parseInt(_0x212bbc(0x102))/0xb);if(_0x13506a===_0x5b56e8)break;else _0x5ee4d1['push'](_0x5ee4d1['shift']());}catch(_0x1b977c){_0x5ee4d1['push'](_0x5ee4d1['shift']());}}}(a216_0x22ef,0x7e17b));function a216_0x22ef(){const _0xcbf66=['target','description-file','dryRun','7CLrZdQ','Maximum\x20search\x20hits','targetEnv','appcode','670vwGgTH','Watch\x20mode','sql-name','2JKRXVz','Schemas','operation','sqlcode','global','expectPath','functionNode','Description\x20file','env','Tags','expected-count','boolean','zh-CN\x20|\x20en-US','Confirm\x20destructive\x20action','skipImports','output','dry-run','page','confirm','JSON\x20params','Asynchronous\x20task\x20ID','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','topk','sqlname','target-env','473461qLsDNV','Force\x20non-interactive\x20mode\x20(CI)','dbId','title','5093ObXTQm','Use\x20global\x20config\x20scope','value','DB\x20ID','8682633AfZjuc','parentId','Menu\x20sort\x20value','map','SQL\x20string','pagesize','Comma-separated\x20metadata\x20codes','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Operation\x20type','stdin','<expr>','yes','query','Select\x20app\x20profile\x20by\x20name','nonInteractive','code','Target\x20connection\x20environment','operation-type','remote','help','keyword','Description','Record\x20ID','format','Use\x20project\x20config\x20scope','production\x20|\x20daily','<name>','3402200CeYMwz','non-interactive','descriptionFile','app','Force\x20overwrite','datasetcode','Config\x20key','Rabetbase\x20CLI','Read\x20value\x20from\x20environment\x20variable','1902nIyXPP','Menu\x20label','task-id','expectParentId','Config\x20value','Show\x20help','expect-path','Title','menuIds','rabetbase','expect-parent-id','all','Page\x20number','@lovrabet/rabetbase-cli','watch','description','locale','sql','enable-bff-save','Alias\x20for\x20--non-interactive','fromEnv','force','sort','project','Preview\x20operation\x20without\x20executing','meowKey','verbose','taskId','type','File\x20path','Enable\x20Backend\x20Function\x20save','Name','Expected\x20current\x20parent\x20menu\x20id','13385qdNauE','dbid','Reveal\x20sensitive\x20value','Skip\x20import\x20generation','Use\x20remote','Environment','SQL\x20code','label','file','expectedCount','8026328MTlbTt','codes','key','direct','expected-children-count','reveal','json\x20|\x20pretty\x20|\x20compress','tags','Keyword\x20filter','operationType','menu-ids','params','Dataset\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectedChildrenCount','85506WeMkQY','schemas','Apply\x20to\x20all','string','Page\x20size','parent-id','name','Search\x20query','SQL\x20name','sqlName'];a216_0x22ef=function(){return _0xcbf66;};return a216_0x22ef();}export const CLI_BIN_NAME=a216_0x2143f3(0x133);export const CLI_DISPLAY_NAME=a216_0x2143f3(0x128);export const NPM_PACKAGE_NAME=a216_0x2143f3(0x137);export const GLOBAL_FLAGS=[{'name':a216_0x2143f3(0xe1),'meowKey':a216_0x2143f3(0xe1),'type':a216_0x2143f3(0x167),'description':'Override\x20appcode','hint':'<code>'},{'name':a216_0x2143f3(0x124),'meowKey':'app','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x113),'hint':a216_0x2143f3(0x120)},{'name':a216_0x2143f3(0xed),'meowKey':'env','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x150),'hint':a216_0x2143f3(0x11f)},{'name':'format','meowKey':a216_0x2143f3(0x11d),'type':'string','description':'Output\x20format','hint':a216_0x2143f3(0x15b)},{'name':'jq','meowKey':'jq','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10d),'hint':a216_0x2143f3(0x110)},{'name':a216_0x2143f3(0xf5),'meowKey':a216_0x2143f3(0xdd),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x142)},{'name':a216_0x2143f3(0x111),'meowKey':a216_0x2143f3(0x111),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x162)},{'name':a216_0x2143f3(0x122),'meowKey':a216_0x2143f3(0x114),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0xff)},{'name':a216_0x2143f3(0xe9),'meowKey':a216_0x2143f3(0xe9),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x103)},{'name':a216_0x2143f3(0x141),'meowKey':'project','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x11e)},{'name':'ci','meowKey':'ci','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x13d),'hidden':!![]},{'name':a216_0x2143f3(0x119),'meowKey':a216_0x2143f3(0x119),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x12f)},{'name':a216_0x2143f3(0x13a),'meowKey':a216_0x2143f3(0x13a),'type':'string','description':a216_0x2143f3(0xfa),'hidden':!![],'hint':a216_0x2143f3(0xf1)},{'name':a216_0x2143f3(0x16a),'meowKey':'name','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x149),'hidden':!![]},{'name':'title','meowKey':a216_0x2143f3(0x101),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x131),'hidden':!![]},{'name':a216_0x2143f3(0x112),'meowKey':a216_0x2143f3(0x112),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xd8),'hidden':!![]},{'name':a216_0x2143f3(0xfb),'meowKey':a216_0x2143f3(0xfb),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xdf),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a216_0x2143f3(0xf0),'description':'Clear','hidden':!![]},{'name':a216_0x2143f3(0x138),'meowKey':a216_0x2143f3(0x138),'type':'boolean','description':a216_0x2143f3(0xe3),'hidden':!![]},{'name':a216_0x2143f3(0xf4),'meowKey':a216_0x2143f3(0xf4),'type':a216_0x2143f3(0x167),'description':'Output\x20path','hidden':!![]},{'name':a216_0x2143f3(0x160),'meowKey':a216_0x2143f3(0x160),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xf8),'hidden':!![]},{'name':a216_0x2143f3(0x126),'meowKey':a216_0x2143f3(0x126),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x161),'hidden':!![]},{'name':a216_0x2143f3(0x135),'meowKey':'all','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x166),'hidden':!![]},{'name':a216_0x2143f3(0x13c),'meowKey':'enableBffSave','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x148),'hidden':!![]},{'name':'id','meowKey':'id','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x11c),'hidden':!![]},{'name':a216_0x2143f3(0x146),'meowKey':'type','type':a216_0x2143f3(0x167),'description':'Type\x20filter','hidden':!![]},{'name':a216_0x2143f3(0x153),'meowKey':a216_0x2143f3(0x153),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x147),'hidden':!![]},{'name':a216_0x2143f3(0xe8),'meowKey':a216_0x2143f3(0xe8),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x151),'hidden':!![]},{'name':a216_0x2143f3(0xe4),'meowKey':a216_0x2143f3(0xda),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xd9),'hidden':!![]},{'name':a216_0x2143f3(0xfc),'meowKey':a216_0x2143f3(0xfc),'type':'string','description':a216_0x2143f3(0xd9),'hidden':!![]},{'name':'db-id','meowKey':a216_0x2143f3(0x100),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x105),'hidden':!![]},{'name':a216_0x2143f3(0x14c),'meowKey':a216_0x2143f3(0x14c),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a216_0x2143f3(0x139),'meowKey':a216_0x2143f3(0x139),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x11b),'hidden':!![]},{'name':a216_0x2143f3(0xdc),'meowKey':a216_0x2143f3(0x123),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xec),'hidden':!![]},{'name':a216_0x2143f3(0xf6),'meowKey':a216_0x2143f3(0xf6),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x136),'hidden':!![]},{'name':a216_0x2143f3(0x10b),'meowKey':a216_0x2143f3(0x10b),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x168),'hidden':!![]},{'name':'keyword','meowKey':a216_0x2143f3(0x11a),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x15d),'hidden':!![]},{'name':a216_0x2143f3(0x115),'meowKey':a216_0x2143f3(0x115),'type':a216_0x2143f3(0x167),'description':'Code\x20filter','hidden':!![]},{'name':a216_0x2143f3(0x13b),'meowKey':a216_0x2143f3(0x13b),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10a),'hidden':!![]},{'name':a216_0x2143f3(0x165),'meowKey':a216_0x2143f3(0x165),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xe6),'hidden':!![]},{'name':a216_0x2143f3(0xe7),'meowKey':'operation','type':'string','description':'Operation\x20type','hidden':!![]},{'name':a216_0x2143f3(0xdb),'meowKey':'target','type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a216_0x2143f3(0xf3),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14e),'hidden':!![]},{'name':'key','meowKey':a216_0x2143f3(0x157),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x127),'hidden':!![]},{'name':'value','meowKey':a216_0x2143f3(0x104),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x12e),'hidden':!![]},{'name':a216_0x2143f3(0x15c),'meowKey':a216_0x2143f3(0x15c),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xee),'hidden':!![]},{'name':a216_0x2143f3(0x10f),'meowKey':a216_0x2143f3(0x10f),'type':a216_0x2143f3(0xf0),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a216_0x2143f3(0x13e),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x129),'hidden':!![]},{'name':a216_0x2143f3(0x15a),'meowKey':'reveal','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14d),'hidden':!![]},{'name':a216_0x2143f3(0x13f),'meowKey':a216_0x2143f3(0x13f),'type':'boolean','description':a216_0x2143f3(0x125),'hidden':!![]},{'name':a216_0x2143f3(0xf7),'meowKey':a216_0x2143f3(0xf7),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0xf2),'hidden':!![]},{'name':a216_0x2143f3(0x118),'meowKey':a216_0x2143f3(0x118),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14f),'hidden':!![]},{'name':a216_0x2143f3(0x144),'meowKey':a216_0x2143f3(0x144),'type':a216_0x2143f3(0xf0),'description':'Verbose\x20output','hidden':!![]},{'name':a216_0x2143f3(0xef),'meowKey':a216_0x2143f3(0x154),'type':a216_0x2143f3(0x167),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a216_0x2143f3(0x152),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x12b),'hidden':!![]},{'name':a216_0x2143f3(0x169),'meowKey':a216_0x2143f3(0x107),'type':a216_0x2143f3(0x167),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a216_0x2143f3(0x140),'meowKey':a216_0x2143f3(0x140),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x108),'hidden':!![]},{'name':a216_0x2143f3(0x134),'meowKey':a216_0x2143f3(0x12d),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x14a),'hidden':!![]},{'name':a216_0x2143f3(0x130),'meowKey':a216_0x2143f3(0xea),'type':a216_0x2143f3(0x167),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a216_0x2143f3(0x159),'meowKey':a216_0x2143f3(0x163),'type':a216_0x2143f3(0x167),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a216_0x2143f3(0x15f),'meowKey':a216_0x2143f3(0x132),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a216_0x2143f3(0x12c),'meowKey':a216_0x2143f3(0x145),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xf9),'hidden':!![]},{'name':a216_0x2143f3(0x117),'meowKey':a216_0x2143f3(0x15e),'type':'string','description':a216_0x2143f3(0x10e),'hidden':!![]},{'name':'function-node','meowKey':a216_0x2143f3(0xeb),'type':a216_0x2143f3(0x167),'description':'Function\x20node','hidden':!![]},{'name':a216_0x2143f3(0xfd),'meowKey':a216_0x2143f3(0xe0),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x116),'hidden':!![]},{'name':a216_0x2143f3(0x158),'meowKey':a216_0x2143f3(0x158),'type':a216_0x2143f3(0xf0),'description':'Use\x20the\x20base\x20database\x20connection','hidden':!![]},{'name':a216_0x2143f3(0x156),'meowKey':a216_0x2143f3(0x156),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a216_0x2143f3(0xe1),a216_0x2143f3(0x124),a216_0x2143f3(0xed),'format','jq',a216_0x2143f3(0xf5),'yes','non-interactive','ci']);function a216_0x5b5d(_0x37e3a2,_0x2d52ae){_0x37e3a2=_0x37e3a2-0xd8;const _0x22ef7d=a216_0x22ef();let _0x5b5d1a=_0x22ef7d[_0x37e3a2];return _0x5b5d1a;}export function buildMeowFlags(){const _0x265a9b=a216_0x2143f3;return Object['fromEntries'](GLOBAL_FLAGS[_0x265a9b(0x109)](_0x515cb0=>[_0x515cb0[_0x265a9b(0x143)],{'type':_0x515cb0[_0x265a9b(0x146)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a217_0x5755(_0x4b6558,_0x565df3){_0x4b6558=_0x4b6558-0x1c9;const _0x2580cb=a217_0x2580();let _0x575594=_0x2580cb[_0x4b6558];return _0x575594;}const a217_0x56de83=a217_0x5755;(function(_0x2eb88b,_0x3b0f2e){const _0x4b1e1b=a217_0x5755,_0x591988=_0x2eb88b();while(!![]){try{const _0x510305=parseInt(_0x4b1e1b(0x1d2))/0x1*(parseInt(_0x4b1e1b(0x1d5))/0x2)+-parseInt(_0x4b1e1b(0x1c9))/0x3+-parseInt(_0x4b1e1b(0x1ca))/0x4*(-parseInt(_0x4b1e1b(0x1d7))/0x5)+-parseInt(_0x4b1e1b(0x1d3))/0x6+parseInt(_0x4b1e1b(0x1cb))/0x7*(parseInt(_0x4b1e1b(0x1ce))/0x8)+parseInt(_0x4b1e1b(0x1cf))/0x9+parseInt(_0x4b1e1b(0x1d0))/0xa*(-parseInt(_0x4b1e1b(0x1d4))/0xb);if(_0x510305===_0x3b0f2e)break;else _0x591988['push'](_0x591988['shift']());}catch(_0x54849f){_0x591988['push'](_0x591988['shift']());}}}(a217_0x2580,0xc9137));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a217_0x56de83(0x1d1),'format':'compress','locale':a217_0x56de83(0x1d6),'riskLevel':a217_0x56de83(0x1cd),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a217_0x56de83(0x1cc);function a217_0x2580(){const _0x1976b9=['1155642TxcifF','3205084tknadZ','346444qSMrCS','compress','write','184QaFIXr','3279051WJMrya','9353420yDnFpt','production','852227MKXSFA','5267514jNLPgj','22ofQnnh','2MHlvmD','en-US','10bQiOEN'];a217_0x2580=function(){return _0x1976b9;};return a217_0x2580();}
|
package/lib/constant/domain.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare function initDomains(domains?: {
|
|
|
9
9
|
runtimeDomain?: string;
|
|
10
10
|
skillDomain?: string;
|
|
11
11
|
kbDomain?: string;
|
|
12
|
+
kbSearchDomain?: string;
|
|
12
13
|
appDomain?: string;
|
|
13
14
|
localDomain?: string;
|
|
14
15
|
certificateDomain?: string;
|
|
@@ -19,6 +20,7 @@ export declare const getApiDomain: () => string;
|
|
|
19
20
|
export declare const getRuntimeDomain: () => string;
|
|
20
21
|
export declare const getSkillDomain: () => string;
|
|
21
22
|
export declare const getKbDomain: () => string;
|
|
23
|
+
export declare function getKbSearchDomain(): string;
|
|
22
24
|
export declare const getAppDomain: () => string;
|
|
23
25
|
export declare const getActiveRegion: () => "global" | "id" | "cn";
|
|
24
26
|
export declare const getLocalDomain: () => string | undefined;
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x2969bd=a218_0x54f3;(function(_0x57e07d,_0x39bcac){const _0x86db0a=a218_0x54f3,_0x2c1921=_0x57e07d();while(!![]){try{const _0x5a9ab3=-parseInt(_0x86db0a(0x126))/0x1*(-parseInt(_0x86db0a(0x12b))/0x2)+parseInt(_0x86db0a(0x130))/0x3+parseInt(_0x86db0a(0x137))/0x4*(-parseInt(_0x86db0a(0x131))/0x5)+parseInt(_0x86db0a(0x132))/0x6+parseInt(_0x86db0a(0x123))/0x7+-parseInt(_0x86db0a(0x134))/0x8*(-parseInt(_0x86db0a(0x11f))/0x9)+-parseInt(_0x86db0a(0x12a))/0xa;if(_0x5a9ab3===_0x39bcac)break;else _0x2c1921['push'](_0x2c1921['shift']());}catch(_0x1127f1){_0x2c1921['push'](_0x2c1921['shift']());}}}(a218_0x3306,0xbd08b));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';function a218_0x54f3(_0x272155,_0x40f5fb){_0x272155=_0x272155-0x11b;const _0x330600=a218_0x3306();let _0x54f32b=_0x330600[_0x272155];return _0x54f32b;}import{CliErrors}from'../errors.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbSearchDomain,customAppDomain,customLocalDomain,customCertificateDomain,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x36b823=a218_0x54f3,_0x5f4152=getOfficialRoutingProfile(activeRegion);return _0x5f4152[_0x36b823(0x11c)][isProduction(getEnv())?_0x36b823(0x12e):'preview'];}export function initDomains(_0x3fc56d){const _0x8996d=a218_0x54f3;customApiDomain=_0x3fc56d?.['apiDomain'],customUserDomain=_0x3fc56d?.['userDomain'],customRuntimeDomain=_0x3fc56d?.[_0x8996d(0x11e)],customSkillDomain=_0x3fc56d?.[_0x8996d(0x12f)],customKbDomain=_0x3fc56d?.[_0x8996d(0x129)],customKbSearchDomain=_0x3fc56d?.['kbSearchDomain'],customAppDomain=_0x3fc56d?.[_0x8996d(0x122)],customLocalDomain=_0x3fc56d?.['localDomain'],customCertificateDomain=_0x3fc56d?.[_0x8996d(0x139)],activeRegion=_0x3fc56d?.[_0x8996d(0x121)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a218_0x2969bd(0x120)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a218_0x2969bd(0x133)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a218_0x2969bd(0x136)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export function getKbSearchDomain(){const _0x47b2d1=a218_0x2969bd;if(customKbSearchDomain)return customKbSearchDomain;if(activeRegion==='cn')return isProduction(getEnv())?_0x47b2d1(0x12c):_0x47b2d1(0x11d);throw CliErrors[_0x47b2d1(0x135)]('Knowledge\x20search\x20is\x20not\x20registered\x20for\x20region\x20\x22'+activeRegion+'\x22.',_0x47b2d1(0x13a));}export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a218_0x2969bd(0x11b)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customKbSearchDomain||customAppDomain||customLocalDomain||customCertificateDomain);}function a218_0x3306(){const _0x44f24b=['trim','/web-app/app/','33tFuRSo','/app/','hostname','kbDomain','5344070nvYIew','69226qAQjIv','https://kb-service.lovrabet.com','origin','primary','skillDomain','635334SwjHcK','10ZPuFwS','2119602dqUOlD','api','169320wsVqml','validation','runtime','3056512JMQXQG','global','certificateDomain','Configure\x20an\x20explicit\x20kbSearchDomain\x20for\x20an\x20independent\x20deployment.','app','serviceDomains','https://kb-service-daily.lovrabet.com','runtimeDomain','117TtPvEv','user','region','appDomain','5981689NQhirk'];a218_0x3306=function(){return _0x44f24b;};return a218_0x3306();}export function getSdkClientRoutingConfig(){const _0x3c3b5e=a218_0x2969bd;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x3c3b5e(0x136)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x3c3b5e(0x138))return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x555e54=>{const _0x5454d0=a218_0x2969bd,_0x5a5b7a=encodeURIComponent(_0x555e54[_0x5454d0(0x124)]());return isProduction(getEnv())?getAppDomain()+_0x5454d0(0x127)+_0x5a5b7a:getAppDomain()+_0x5454d0(0x125)+_0x5a5b7a;};export const getPublishedAppDomain=_0x3deb5f=>{const _0x486943=a218_0x2969bd,_0x4e097e=new URL(getAppDomain());return _0x4e097e[_0x486943(0x128)]=_0x3deb5f[_0x486943(0x124)]()+'.'+_0x4e097e['hostname'],_0x4e097e[_0x486943(0x12d)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a219_0xc8a83b=a219_0x5bf4;(function(_0x2f466b,_0x243bd6){const _0x31dac8=a219_0x5bf4,_0x31225a=_0x2f466b();while(!![]){try{const _0x552b19=parseInt(_0x31dac8(0x1e8))/0x1+-parseInt(_0x31dac8(0x1e0))/0x2+parseInt(_0x31dac8(0x1e5))/0x3*(parseInt(_0x31dac8(0x1dd))/0x4)+-parseInt(_0x31dac8(0x1e9))/0x5*(parseInt(_0x31dac8(0x1e6))/0x6)+-parseInt(_0x31dac8(0x1e7))/0x7*(-parseInt(_0x31dac8(0x1dc))/0x8)+-parseInt(_0x31dac8(0x1ea))/0x9*(parseInt(_0x31dac8(0x1e3))/0xa)+-parseInt(_0x31dac8(0x1df))/0xb*(parseInt(_0x31dac8(0x1e1))/0xc);if(_0x552b19===_0x243bd6)break;else _0x31225a['push'](_0x31225a['shift']());}catch(_0x88c91f){_0x31225a['push'](_0x31225a['shift']());}}}(a219_0x327f,0x451ac));export const RABETBASE_ENV_VALUES=[a219_0xc8a83b(0x1eb),a219_0xc8a83b(0x1e2)];export function normalizeEnv(_0x19f154){const _0x15ef6c=a219_0xc8a83b;return _0x19f154===_0x15ef6c(0x1e4)?_0x15ef6c(0x1eb):_0x19f154;}export function isProduction(_0x2f80e3){const _0x1c7d26=a219_0xc8a83b;return normalizeEnv(_0x2f80e3)===_0x1c7d26(0x1eb);}export function isDaily(_0x83e976){const _0x264eef=a219_0xc8a83b;return normalizeEnv(_0x83e976)===_0x264eef(0x1e2);}export function isDev(_0xf391df){const _0x4fbfd9=a219_0xc8a83b,_0x248195=normalizeEnv(_0xf391df);return _0x248195===_0x4fbfd9(0x1de)||_0x248195==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a219_0xc8a83b(0x1eb));export function getEnv(){return env;}function a219_0x327f(){const _0x3bc276=['135TYfJsE','production','152UBDpZc','172vBOuZV','development','33KzXzEB','941336uVKpie','303192XBidsN','daily','37820AjsNIo','online','27624rEKZbr','165234LCmnWD','65254CIzTvn','340725DBhJri','5bANqjX'];a219_0x327f=function(){return _0x3bc276;};return a219_0x327f();}function a219_0x5bf4(_0x2d8590,_0x451a65){_0x2d8590=_0x2d8590-0x1dc;const _0x327f40=a219_0x327f();let _0x5bf41f=_0x327f40[_0x2d8590];return _0x5bf41f;}export function initEnv(_0xc97205){env=normalizeEnv(_0xc97205);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x3bd8a5=a220_0x4b32;(function(_0x38310a,_0x5ac712){const _0x655bf4=a220_0x4b32,_0x51e138=_0x38310a();while(!![]){try{const _0x143bad=parseInt(_0x655bf4(0x7b))/0x1+-parseInt(_0x655bf4(0x81))/0x2*(-parseInt(_0x655bf4(0x7e))/0x3)+parseInt(_0x655bf4(0x77))/0x4+-parseInt(_0x655bf4(0x84))/0x5*(-parseInt(_0x655bf4(0x7f))/0x6)+-parseInt(_0x655bf4(0x76))/0x7*(parseInt(_0x655bf4(0x78))/0x8)+-parseInt(_0x655bf4(0x83))/0x9*(-parseInt(_0x655bf4(0x79))/0xa)+-parseInt(_0x655bf4(0x82))/0xb*(parseInt(_0x655bf4(0x7c))/0xc);if(_0x143bad===_0x5ac712)break;else _0x51e138['push'](_0x51e138['shift']());}catch(_0x194d45){_0x51e138['push'](_0x51e138['shift']());}}}(a220_0x4e63,0xc4ee0));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a220_0x3bd8a5(0x7d),a220_0x3bd8a5(0x7a),a220_0x3bd8a5(0x80)];function a220_0x4b32(_0x2a5148,_0x3b3daa){_0x2a5148=_0x2a5148-0x76;const _0x4e63f9=a220_0x4e63();let _0x4b32eb=_0x4e63f9[_0x2a5148];return _0x4b32eb;}function a220_0x4e63(){const _0x4848f4=['113710DjZJqU','pretty','1552983JyIHtr','411876afbtge','json','21IUjgtA','6dCdfit','compress','59308PVxcAR','99JmxmMb','45boRoOO','203275iBufxO','16135LrrmLC','1695160xNCCTH','4048bRBwRK'];a220_0x4e63=function(){return _0x4848f4;};return a220_0x4e63();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a221_0x1788(_0x489cfc,_0x54e294){_0x489cfc=_0x489cfc-0x127;const _0x20dff3=a221_0x20df();let _0x178823=_0x20dff3[_0x489cfc];return _0x178823;}function a221_0x20df(){const _0x1b1e1f=['319847KxZIXD','13221DMPLTy','474kbSSpe','540741DZysvJ','./src/api','322730hjuMZn','408DCAfLZ','78466dcbqJg','33278heUVsL','1592840FBXKXy','6tNgBcJ','3940jhiQRB','8ZMnloI'];a221_0x20df=function(){return _0x1b1e1f;};return a221_0x20df();}const a221_0x7358c6=a221_0x1788;(function(_0x4a11a0,_0xd4146b){const _0x2b5394=a221_0x1788,_0x31562e=_0x4a11a0();while(!![]){try{const _0x10406b=-parseInt(_0x2b5394(0x130))/0x1*(parseInt(_0x2b5394(0x12d))/0x2)+parseInt(_0x2b5394(0x129))/0x3*(parseInt(_0x2b5394(0x132))/0x4)+parseInt(_0x2b5394(0x12b))/0x5+parseInt(_0x2b5394(0x128))/0x6*(-parseInt(_0x2b5394(0x12e))/0x7)+parseInt(_0x2b5394(0x12f))/0x8+parseInt(_0x2b5394(0x127))/0x9*(-parseInt(_0x2b5394(0x131))/0xa)+-parseInt(_0x2b5394(0x133))/0xb*(-parseInt(_0x2b5394(0x12c))/0xc);if(_0x10406b===_0xd4146b)break;else _0x31562e['push'](_0x31562e['shift']());}catch(_0x5323b1){_0x31562e['push'](_0x31562e['shift']());}}}(a221_0x20df,0x67465));export const DEFAULT_API_DIR=a221_0x7358c6(0x12a);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4538ac,_0xc5d2c0){const _0x491b6c=a222_0x2a4f,_0x21c04c=_0x4538ac();while(!![]){try{const _0x286bdd=-parseInt(_0x491b6c(0x82))/0x1+-parseInt(_0x491b6c(0x7d))/0x2*(-parseInt(_0x491b6c(0x7e))/0x3)+parseInt(_0x491b6c(0x7f))/0x4+-parseInt(_0x491b6c(0x85))/0x5*(parseInt(_0x491b6c(0x80))/0x6)+-parseInt(_0x491b6c(0x83))/0x7+-parseInt(_0x491b6c(0x7c))/0x8+parseInt(_0x491b6c(0x86))/0x9;if(_0x286bdd===_0xc5d2c0)break;else _0x21c04c['push'](_0x21c04c['shift']());}catch(_0x2963dd){_0x21c04c['push'](_0x21c04c['shift']());}}}(a222_0x2252,0x8582d));export const LOVRABET_REGION_VALUES=['cn','id','global'];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a222_0x2a4f(_0x49e5a9,_0x490ae5){_0x49e5a9=_0x49e5a9-0x7c;const _0x2252f1=a222_0x2252();let _0x2a4fc9=_0x2252f1[_0x49e5a9];return _0x2a4fc9;}export const DEFAULT_LOVRABET_REGION='cn';function a222_0x2252(){const _0x476ddf=['4230oozXUK','20414871fjYMRK','2973776ZifIpg','390428TIfpfW','3uQzVec','2347452rnJbEN','6420GsEeCf','includes','471635xoPgSI','5284706eQzejQ','string'];a222_0x2252=function(){return _0x476ddf;};return a222_0x2252();}export function isLovrabetRegion(_0xc8bc74){const _0xad6a00=a222_0x2a4f;return typeof _0xc8bc74===_0xad6a00(0x84)&&LOVRABET_REGION_VALUES[_0xad6a00(0x81)](_0xc8bc74);}export function isEnabledLovrabetRegion(_0x37fdd5){const _0x3b32a1=a222_0x2a4f;return typeof _0x37fdd5===_0x3b32a1(0x84)&&ENABLED_LOVRABET_REGION_VALUES[_0x3b32a1(0x81)](_0x37fdd5);}export function normalizeLovrabetRegion(_0x3ef909){if(_0x3ef909==='china')return'cn';if(_0x3ef909==='indonesia')return'id';return isLovrabetRegion(_0x3ef909)?_0x3ef909:DEFAULT_LOVRABET_REGION;}
|