@lovrabet/rabetbase-cli 2.5.1-beta.3 → 2.5.1-beta.4
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.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/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.js +1 -1
- 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 +0 -2
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/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 +1 -1
- package/skills/rabetbase/references/rabetbase-config.md +2 -5
- package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
- package/skills/rabetbase/references/rabetbase-init.md +0 -2
- package/skills/rabetbase/references/rabetbase-kb.md +3 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x1ce234=a199_0x4494;(function(_0x28d858,_0x4c795a){const _0xac3120=a199_0x4494,_0x24b81b=_0x28d858();while(!![]){try{const _0x5b10c5=-parseInt(_0xac3120(0x83))/0x1+parseInt(_0xac3120(0x88))/0x2*(parseInt(_0xac3120(0x93))/0x3)+parseInt(_0xac3120(0x8b))/0x4*(parseInt(_0xac3120(0x9f))/0x5)+-parseInt(_0xac3120(0xa5))/0x6+-parseInt(_0xac3120(0x7e))/0x7*(-parseInt(_0xac3120(0x9e))/0x8)+parseInt(_0xac3120(0x82))/0x9*(-parseInt(_0xac3120(0x8d))/0xa)+parseInt(_0xac3120(0x85))/0xb*(parseInt(_0xac3120(0x80))/0xc);if(_0x5b10c5===_0x4c795a)break;else _0x24b81b['push'](_0x24b81b['shift']());}catch(_0x243caa){_0x24b81b['push'](_0x24b81b['shift']());}}}(a199_0x218c,0xe9303));function a199_0x218c(){const _0x249226=['status','\x20missing,\x20','sqls','\x20modified,\x20','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','paging','\x20remote-only','sqlName','totalCount','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','252304iWzXvL','209555zdbtqp','length','sql','boolean','lockFilePath','appCode','2058606bsbaHq','259hIZMPX','remote','696uwwnPF','lockKey','8532QWOuAE','981163LaBmXx','map','221639cALAlf','hash','sqlRoot','93066kEmwxq','relativePath','sqlCode','48DdkAxi','filePath','7370wMHnrL','\x20added,\x20','\x20unchanged','push','tableData','has','9Qnappg'];a199_0x218c=function(){return _0x249226;};return a199_0x218c();}import{listSqlQueries}from'../../core/api-client.js';function a199_0x4494(_0x48d4b7,_0x4fde61){_0x48d4b7=_0x48d4b7-0x7e;const _0x218c1f=a199_0x218c();let _0x4494fc=_0x218c1f[_0x48d4b7];return _0x4494fc;}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x4c725b){const _0x1d3da5=a199_0x4494,_0x34732a=[];let _0x5e2c80=0x1;while(!![]){const _0x496572=await listSqlQueries(_0x4c725b,{'currentPage':_0x5e2c80,'pageSize':PAGE_SIZE}),_0x3e7509=_0x496572[_0x1d3da5(0x91)]??[];_0x34732a[_0x1d3da5(0x90)](..._0x3e7509[_0x1d3da5(0x84)](_0x17c234=>_0x17c234[_0x1d3da5(0x8a)]));if(_0x3e7509[_0x1d3da5(0xa0)]===0x0)break;const _0x549e26=_0x496572[_0x1d3da5(0x99)]?.[_0x1d3da5(0x9c)];if(_0x549e26!=null?_0x34732a[_0x1d3da5(0xa0)]>=_0x549e26:_0x3e7509[_0x1d3da5(0xa0)]<PAGE_SIZE)break;_0x5e2c80++;}return _0x34732a;}export const sqlStatus={'service':a199_0x1ce234(0xa1),'command':a199_0x1ce234(0x94),'description':a199_0x1ce234(0x98),'risk':'read','flags':[{'name':'remote','type':a199_0x1ce234(0xa2),'description':a199_0x1ce234(0x9d)}],async 'execute'(_0x23c303){const _0x3bb166=a199_0x1ce234,_0x2af0ad=loadSqlProjectConfig(_0x23c303['appCode']),_0x1c83c9=await readSqlLockFile(_0x2af0ad[_0x3bb166(0xa3)]),{appLock:_0x4e5cd1}=ensureSqlLockScope(_0x1c83c9??createEmptySqlLock(),_0x2af0ad['appCode'],_0x2af0ad[_0x3bb166(0x87)],_0x3bb166(0x94)),_0x63ec4b=await scanLocalSqlQueries(_0x2af0ad),_0x4dd94f=[],_0x5c9da9=[],_0x76dec4=[],_0x58a549=[],_0x1cee69=new Set(_0x63ec4b[_0x3bb166(0x84)](_0x377ea4=>_0x377ea4[_0x3bb166(0x81)]));for(const _0x118d6a of _0x63ec4b){const _0x13bc54=await computeSqlFileHash(_0x118d6a[_0x3bb166(0x8c)]),_0x523117=_0x4e5cd1[_0x3bb166(0x96)][_0x118d6a[_0x3bb166(0x81)]],_0x466dd1=!!_0x523117&&_0x523117['path']!==_0x118d6a[_0x3bb166(0x89)],_0x224601=!!_0x523117&&!!_0x118d6a[_0x3bb166(0x9b)]&&_0x523117['sqlName']!==_0x118d6a[_0x3bb166(0x9b)];if(!_0x523117)_0x4dd94f[_0x3bb166(0x90)](_0x118d6a[_0x3bb166(0x81)]);else _0x523117[_0x3bb166(0x86)]!==_0x13bc54||_0x466dd1||_0x224601?_0x5c9da9[_0x3bb166(0x90)](_0x118d6a[_0x3bb166(0x81)]):_0x76dec4[_0x3bb166(0x90)](_0x118d6a[_0x3bb166(0x81)]);}for(const _0x1d53c2 of Object['keys'](_0x4e5cd1['sqls'])){!_0x1cee69[_0x3bb166(0x92)](_0x1d53c2)&&_0x58a549[_0x3bb166(0x90)](_0x1d53c2);}const _0x56112a=[];if(_0x23c303['bool'](_0x3bb166(0x7f))){const _0x357c63=await fetchAllSqlCodes(_0x23c303[_0x3bb166(0xa4)]);for(const _0x3cab5c of _0x357c63){!_0x1cee69[_0x3bb166(0x92)](_0x3cab5c)&&!_0x4e5cd1['sqls'][_0x3cab5c]&&_0x56112a['push'](_0x3cab5c);}}const _0x276624=_0x4dd94f[_0x3bb166(0xa0)]===0x0&&_0x5c9da9[_0x3bb166(0xa0)]===0x0&&_0x58a549['length']===0x0&&_0x56112a[_0x3bb166(0xa0)]===0x0;return{'ok':!![],'data':{'added':_0x4dd94f,'modified':_0x5c9da9,'missing':_0x58a549,'unchanged':_0x76dec4,'remoteOnly':_0x56112a},'message':_0x276624?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x4dd94f[_0x3bb166(0xa0)]+_0x3bb166(0x8e)+_0x5c9da9[_0x3bb166(0xa0)]+_0x3bb166(0x97)+_0x58a549['length']+_0x3bb166(0x95)+_0x76dec4[_0x3bb166(0xa0)]+_0x3bb166(0x8f)+(_0x56112a['length']>0x0?',\x20'+_0x56112a[_0x3bb166(0xa0)]+_0x3bb166(0x9a):'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x117e9f=a200_0x3b51;(function(_0x2ec054,_0x5f4d02){const _0x209a2c=a200_0x3b51,_0x5465f5=_0x2ec054();while(!![]){try{const _0x29c703=-parseInt(_0x209a2c(0x228))/0x1+parseInt(_0x209a2c(0x214))/0x2*(parseInt(_0x209a2c(0x22c))/0x3)+parseInt(_0x209a2c(0x21d))/0x4+parseInt(_0x209a2c(0x227))/0x5+-parseInt(_0x209a2c(0x1f5))/0x6*(-parseInt(_0x209a2c(0x1fa))/0x7)+-parseInt(_0x209a2c(0x225))/0x8*(-parseInt(_0x209a2c(0x223))/0x9)+-parseInt(_0x209a2c(0x1fe))/0xa;if(_0x29c703===_0x5f4d02)break;else _0x5465f5['push'](_0x5465f5['shift']());}catch(_0x58794b){_0x5465f5['push'](_0x5465f5['shift']());}}}(a200_0x3025,0xe7790));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a200_0x3025(){const _0xe477a=['3231728xBVAlC','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','string','tables','indexes','Provide\x20--file\x20or\x20--sql','252BgERYZ','length','131776WJrjOE','type','8930480DlAqMd','1666079iCZdhB','validate','columnNames','cwd','3FzvCHx','schemas','Dataset\x20\x22','appCode','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','trim','from','message','flagMissing','sql','get','reason','filter','push','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','flatMap','1686FbGBqy','size','pkField','index_name','dbtableConfig','39186fGGsCB','File\x20not\x20found:\x20','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','unshift','34984680VFGHdt','file','utf-8','toLowerCase','primary','\x22\x20not\x20found\x20in\x20any\x20dataset','split','index_columns','validation','parameters','sqlType','str','bool','isSelectOnly','isDangerous','columns','tableName','indexName','dataset','map','\x22\x20not\x20found\x20or\x20not\x20accessible','schemaWarnings','2968754yoASMv','isArray','valid','name','joinAudit','fields','read','find','check-indexes'];a200_0x3025=function(){return _0xe477a;};return a200_0x3025();}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';function a200_0x3b51(_0x525386,_0x485acc){_0x525386=_0x525386-0x1e6;const _0x3025d5=a200_0x3025();let _0x3b512f=_0x3025d5[_0x525386];return _0x3b512f;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a200_0x117e9f(0x1ee),'command':a200_0x117e9f(0x229),'description':a200_0x117e9f(0x21e),'risk':a200_0x117e9f(0x21a),'flags':[{'name':a200_0x117e9f(0x1ff),'type':a200_0x117e9f(0x21f),'description':a200_0x117e9f(0x1f3)},{'name':a200_0x117e9f(0x1ee),'type':a200_0x117e9f(0x21f),'description':a200_0x117e9f(0x1fc)},{'name':a200_0x117e9f(0x1e6),'type':'string','description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'},{'name':a200_0x117e9f(0x21c),'type':'boolean','description':a200_0x117e9f(0x1e9)}],async 'execute'(_0x526cdf){const _0x46135b=a200_0x117e9f,_0x5ad3a1=_0x526cdf['str']('file'),_0x5ddba5=_0x526cdf[_0x46135b(0x209)](_0x46135b(0x1ee)),_0x51c5b7=_0x526cdf[_0x46135b(0x209)](_0x46135b(0x1e6)),_0x42459a=_0x526cdf[_0x46135b(0x20a)]('check-indexes');if(!_0x5ad3a1&&!_0x5ddba5)throw CliErrors[_0x46135b(0x1ed)](_0x46135b(0x1ff),_0x46135b(0x222));if(_0x42459a&&!_0x51c5b7)throw CliErrors[_0x46135b(0x206)]('--check-indexes\x20requires\x20--schemas.');let _0x59561f;if(_0x5ad3a1){const _0x4e0778=resolve(process[_0x46135b(0x22b)](),_0x5ad3a1);if(!existsSync(_0x4e0778))throw CliErrors[_0x46135b(0x206)](_0x46135b(0x1fb)+_0x4e0778);_0x59561f=readFileSync(_0x4e0778,_0x46135b(0x200));}else _0x59561f=_0x5ddba5;const _0x1d232a=validateSql(_0x59561f),_0x47ec2a={'valid':_0x1d232a[_0x46135b(0x216)],'sqlType':_0x1d232a[_0x46135b(0x208)][_0x46135b(0x226)],'isSelectOnly':_0x1d232a[_0x46135b(0x208)][_0x46135b(0x20b)],'isDangerous':_0x1d232a['sqlType'][_0x46135b(0x20c)],'tables':_0x1d232a[_0x46135b(0x220)],'parameters':_0x1d232a[_0x46135b(0x207)],'message':_0x1d232a[_0x46135b(0x1ec)]};_0x1d232a['sqlType'][_0x46135b(0x1f0)]&&(_0x47ec2a[_0x46135b(0x1f0)]=_0x1d232a['sqlType'][_0x46135b(0x1f0)]);if(_0x51c5b7&&_0x1d232a[_0x46135b(0x216)]){const _0xee5ccb=_0x51c5b7[_0x46135b(0x204)](',')['map'](_0x2b3361=>_0x2b3361[_0x46135b(0x1ea)]())[_0x46135b(0x1f1)](Boolean),_0xcd760a=[],_0x23cf7e=[],_0x83f2ca=filterDbTableBackedDatasets(await listDatasets(_0x526cdf[_0x46135b(0x1e8)])),_0x2cdebf=new Map(_0x83f2ca[_0x46135b(0x211)](_0x851114=>[_0x851114['dbtableConfig']?.[_0x46135b(0x20e)]?.[_0x46135b(0x201)](),_0x851114]));for(const _0x44df9e of _0x1d232a['tables']){const _0x578928=_0x2cdebf[_0x46135b(0x1ef)](_0x44df9e[_0x46135b(0x201)]());!_0x578928&&_0xcd760a[_0x46135b(0x1f2)]('Table\x20\x22'+_0x44df9e+_0x46135b(0x203));}for(const _0x37c0a7 of _0xee5ccb){let _0x4befaa;try{_0x4befaa=await getDatasetDetail(_0x37c0a7);}catch{_0xcd760a[_0x46135b(0x1f2)](_0x46135b(0x1e7)+_0x37c0a7+_0x46135b(0x212));continue;}assertDatasetIsDbTableBacked(_0x4befaa,'SQL\x20schema\x20validation');const _0x8a9f5d=Array[_0x46135b(0x215)](_0x4befaa[_0x46135b(0x219)])?_0x4befaa[_0x46135b(0x219)]:[],_0x2bbd6c=new Set(_0x8a9f5d[_0x46135b(0x211)](_0xcd9b06=>_0xcd9b06[_0x46135b(0x217)]?.[_0x46135b(0x201)]())),_0x5785db=_0x4befaa[_0x46135b(0x1f9)]?.[_0x46135b(0x20e)]||_0x4befaa[_0x46135b(0x20e)]||_0x37c0a7;_0x47ec2a['schema:'+_0x5785db]={'code':_0x37c0a7,'tableName':_0x5785db,'fieldCount':_0x2bbd6c[_0x46135b(0x1f6)],'fields':Array[_0x46135b(0x1eb)](_0x2bbd6c)};if(_0x42459a){const _0x318f7b=normalizeDatasetIndexes(_0x4befaa);_0x23cf7e[_0x46135b(0x1f2)]({'tableName':_0x5785db,..._0x318f7b});}}_0xcd760a['length']>0x0&&(_0x47ec2a[_0x46135b(0x213)]=_0xcd760a),_0x42459a&&(_0x47ec2a[_0x46135b(0x218)]=auditSqlJoinIndexes(_0x59561f,_0x23cf7e));}return{'ok':_0x1d232a['valid'],'data':_0x47ec2a,'message':_0x1d232a[_0x46135b(0x1ec)]};}};function normalizeDatasetIndexes(_0x19d048){const _0x591d4e=a200_0x117e9f,_0x53989d=Array[_0x591d4e(0x215)](_0x19d048?.[_0x591d4e(0x210)]?.[_0x591d4e(0x221)])?_0x19d048[_0x591d4e(0x210)][_0x591d4e(0x221)]:Array[_0x591d4e(0x215)](_0x19d048?.[_0x591d4e(0x221)])?_0x19d048[_0x591d4e(0x221)]:[],_0x55e357=_0x53989d[_0x591d4e(0x1f4)](_0x2fa03e=>{const _0x48c631=_0x591d4e,_0x2ad5bc=Array['isArray'](_0x2fa03e?.[_0x48c631(0x205)])?_0x2fa03e[_0x48c631(0x205)]:Array['isArray'](_0x2fa03e?.[_0x48c631(0x22a)])?_0x2fa03e['columnNames']:Array[_0x48c631(0x215)](_0x2fa03e?.[_0x48c631(0x20d)])?_0x2fa03e['columns']:[],_0x204369=_0x2ad5bc['filter'](_0x52a608=>typeof _0x52a608===_0x48c631(0x21f))[_0x48c631(0x211)](_0x4ee1b6=>_0x4ee1b6[_0x48c631(0x1ea)]())[_0x48c631(0x1f1)](Boolean);if(_0x204369[_0x48c631(0x224)]===0x0)return[];const _0x97ccf2=[_0x2fa03e?.[_0x48c631(0x20f)],_0x2fa03e?.[_0x48c631(0x1f8)],_0x2fa03e?.[_0x48c631(0x217)]][_0x48c631(0x21b)](_0x53dfb3=>typeof _0x53dfb3===_0x48c631(0x21f)&&_0x53dfb3[_0x48c631(0x1ea)]()),_0x2e832f=[_0x2fa03e?.['index_type'],_0x2fa03e?.['type']][_0x48c631(0x21b)](_0x387d9e=>typeof _0x387d9e===_0x48c631(0x21f)&&_0x387d9e[_0x48c631(0x1ea)]());return[{..._0x97ccf2?{'name':_0x97ccf2[_0x48c631(0x1ea)]()}:{},..._0x2e832f?{'type':_0x2e832f['trim']()}:{},'columns':_0x204369}];}),_0x37657f=[..._0x55e357],_0x3dc48d=typeof _0x19d048?.[_0x591d4e(0x1f9)]?.[_0x591d4e(0x1f7)]===_0x591d4e(0x21f)?_0x19d048[_0x591d4e(0x1f9)][_0x591d4e(0x1f7)][_0x591d4e(0x204)](',')[_0x591d4e(0x211)](_0x513fae=>_0x513fae[_0x591d4e(0x1ea)]())[_0x591d4e(0x1f1)](Boolean):[];return _0x3dc48d[_0x591d4e(0x224)]>0x0&&_0x37657f[_0x591d4e(0x1fd)]({'type':_0x591d4e(0x202),'columns':_0x3dc48d}),{'indexes':_0x37657f,'metadataAvailable':_0x55e357['length']>0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a201_0x24cb(){const _0x47eecb=['558682xgQuxX','490936TbKtNh','3787805FXLrOs','3399184phzVkm','5rbDTIP','33249mBVtCQ','603hPoZtr','3472188sCiIBA','1611714NoAbyw'];a201_0x24cb=function(){return _0x47eecb;};return a201_0x24cb();}function a201_0xb77a(_0xc0aa20,_0xe4f30b){_0xc0aa20=_0xc0aa20-0x1e9;const _0x24cb73=a201_0x24cb();let _0xb77a26=_0x24cb73[_0xc0aa20];return _0xb77a26;}(function(_0x45d5d9,_0x4163b9){const _0x182966=a201_0xb77a,_0x17b2c2=_0x45d5d9();while(!![]){try{const _0x2ec1d8=-parseInt(_0x182966(0x1ea))/0x1+parseInt(_0x182966(0x1eb))/0x2+parseInt(_0x182966(0x1f0))/0x3+-parseInt(_0x182966(0x1ee))/0x4+parseInt(_0x182966(0x1ef))/0x5*(-parseInt(_0x182966(0x1e9))/0x6)+-parseInt(_0x182966(0x1ed))/0x7+-parseInt(_0x182966(0x1ec))/0x8*(-parseInt(_0x182966(0x1f1))/0x9);if(_0x2ec1d8===_0x4163b9)break;else _0x17b2c2['push'](_0x17b2c2['shift']());}catch(_0x48bcca){_0x17b2c2['push'](_0x17b2c2['shift']());}}}(a201_0x24cb,0xc85d2));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a202_0x11513a=a202_0x1df4;(function(_0x3e09d2,_0x3cbf7e){const _0x362c5b=a202_0x1df4,_0x14de13=_0x3e09d2();while(!![]){try{const _0x5c33ae=-parseInt(_0x362c5b(0xac))/0x1+parseInt(_0x362c5b(0xb0))/0x2*(-parseInt(_0x362c5b(0xaa))/0x3)+parseInt(_0x362c5b(0xb3))/0x4*(parseInt(_0x362c5b(0x9f))/0x5)+-parseInt(_0x362c5b(0xa2))/0x6+-parseInt(_0x362c5b(0xab))/0x7*(-parseInt(_0x362c5b(0xb1))/0x8)+-parseInt(_0x362c5b(0xa6))/0x9*(parseInt(_0x362c5b(0x9b))/0xa)+parseInt(_0x362c5b(0xa9))/0xb;if(_0x5c33ae===_0x3cbf7e)break;else _0x14de13['push'](_0x14de13['shift']());}catch(_0x3a8d53){_0x14de13['push'](_0x14de13['shift']());}}}(a202_0x9d79,0x5a90d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a202_0x9d79(){const _0x5d6f39=['3501aIUfzk','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','read','9331091ZuvWDW','1192749NziveW','259609GDaNHU','306263kPTGvR','apiError','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','2kzCkBC','96GxFvVa','taskId','347092qUhAvW','cookie','14230VPmofN','task','string','flagMissing','25cLqgSC','str','task-id','593040ugtMJX','isTerminal','appCode','compress'];a202_0x9d79=function(){return _0x5d6f39;};return a202_0x9d79();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a202_0x1df4(_0x14db8f,_0x18c7a2){_0x14db8f=_0x14db8f-0x9b;const _0x9d7909=a202_0x9d79();let _0x1df4a6=_0x9d7909[_0x14db8f];return _0x1df4a6;}export const taskStatus={'service':a202_0x11513a(0x9c),'command':'status','description':a202_0x11513a(0xae),'risk':a202_0x11513a(0xa8),'defaultOutputFormat':a202_0x11513a(0xa5),'structuredErrors':!![],'flags':[{'name':'task-id','type':a202_0x11513a(0x9d),'required':!![],'description':a202_0x11513a(0xaf)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x586f1e){const _0x186230=a202_0x11513a;if(!_0x586f1e[_0x186230(0xa0)](_0x186230(0xa1))['trim']())throw CliErrors[_0x186230(0x9e)](_0x186230(0xa1));},async 'execute'(_0x3ec3fb){const _0x58cae1=a202_0x11513a,_0x167216=_0x3ec3fb[_0x58cae1(0xa0)](_0x58cae1(0xa1))['trim'](),_0x160396=normalizeAsyncTask(await getAsyncTaskStatus(_0x167216,_0x3ec3fb[_0x58cae1(0xa4)],_0x3ec3fb[_0x58cae1(0xb4)]));if(_0x160396[_0x58cae1(0xb2)]!==_0x167216)throw CliErrors[_0x58cae1(0xad)](_0x58cae1(0xa7)+_0x167216+',\x20received\x20'+_0x160396[_0x58cae1(0xb2)]+'.');const _0x33ce97=buildAsyncTaskStatusCommand(_0x160396['taskId'],_0x3ec3fb[_0x58cae1(0xa4)]);return{'ok':!![],'message':asyncTaskMessage(_0x160396),'data':{'appCode':_0x3ec3fb[_0x58cae1(0xa4)],..._0x160396,'query':_0x160396[_0x58cae1(0xa3)]?null:{'command':_0x33ce97}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a203_0x553a(_0x4b4555,_0x6d0248){_0x4b4555=_0x4b4555-0xfe;const _0x4c7ecd=a203_0x4c7e();let _0x553aa5=_0x4c7ecd[_0x4b4555];return _0x553aa5;}(function(_0x1d7ba6,_0x273d25){const _0x5724f1=a203_0x553a,_0x33b936=_0x1d7ba6();while(!![]){try{const _0x1ce355=-parseInt(_0x5724f1(0x100))/0x1+-parseInt(_0x5724f1(0x106))/0x2+parseInt(_0x5724f1(0x105))/0x3*(-parseInt(_0x5724f1(0xfe))/0x4)+-parseInt(_0x5724f1(0x104))/0x5+parseInt(_0x5724f1(0x103))/0x6*(parseInt(_0x5724f1(0x102))/0x7)+-parseInt(_0x5724f1(0x101))/0x8+parseInt(_0x5724f1(0xff))/0x9;if(_0x1ce355===_0x273d25)break;else _0x33b936['push'](_0x33b936['shift']());}catch(_0x265cb6){_0x33b936['push'](_0x33b936['shift']());}}}(a203_0x4c7e,0x29bb3));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a203_0x4c7e(){const _0x44c7b9=['51614cHWNrn','452JbbvWa','5907024nTrrGr','233777gcqvYu','361808siNPfD','343wzRWKI','29922YALoaQ','909475lUsLps','6453muyChj'];a203_0x4c7e=function(){return _0x44c7b9;};return a203_0x4c7e();}export const tenantDefinitions=[tenantMembersListDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x4784d4=a204_0x1a69;function a204_0x5790(){const _0x350f9e=['length','Pass\x20--tenant-code\x20<code>.','1brlVfx','4ZVrVNv','string','11eesnKw','693860zDTxXE','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','21688fwtvDx','457386UWWJRy','read','trim','654DzLgOh','tenant','11626236rwuOHG','5858315eocsni','str','Found\x20','927RpumrG','68376AivQWX','tenant-code','1409277bBlbnF'];a204_0x5790=function(){return _0x350f9e;};return a204_0x5790();}function a204_0x1a69(_0x5413cc,_0x26d56b){_0x5413cc=_0x5413cc-0x1df;const _0x579044=a204_0x5790();let _0x1a6966=_0x579044[_0x5413cc];return _0x1a6966;}(function(_0x117925,_0x29b485){const _0x272e96=a204_0x1a69,_0x2ac581=_0x117925();while(!![]){try{const _0x1f16ed=parseInt(_0x272e96(0x1e5))/0x1*(-parseInt(_0x272e96(0x1ec))/0x2)+parseInt(_0x272e96(0x1e2))/0x3*(-parseInt(_0x272e96(0x1e6))/0x4)+parseInt(_0x272e96(0x1f2))/0x5+parseInt(_0x272e96(0x1ef))/0x6*(-parseInt(_0x272e96(0x1e0))/0x7)+parseInt(_0x272e96(0x1eb))/0x8*(parseInt(_0x272e96(0x1df))/0x9)+parseInt(_0x272e96(0x1e9))/0xa+-parseInt(_0x272e96(0x1e8))/0xb*(-parseInt(_0x272e96(0x1f1))/0xc);if(_0x1f16ed===_0x29b485)break;else _0x2ac581['push'](_0x2ac581['shift']());}catch(_0x5defa9){_0x2ac581['push'](_0x2ac581['shift']());}}}(a204_0x5790,0xb13d3));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a204_0x4784d4(0x1f0),'command':'members-list','description':a204_0x4784d4(0x1ea),'risk':a204_0x4784d4(0x1ed),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'tenant-code','type':a204_0x4784d4(0x1e7),'required':!![],'description':'Exact\x20tenant\x20code'}],async 'validate'(_0x134a6c){const _0x3d158d=a204_0x4784d4;if(!_0x134a6c[_0x3d158d(0x1f3)](_0x3d158d(0x1e1))[_0x3d158d(0x1ee)]())throw CliErrors['flagMissing']('tenant-code',_0x3d158d(0x1e4));},async 'execute'(_0x2f9aab){const _0x4e4b5b=a204_0x4784d4,_0x1fccb4=_0x2f9aab[_0x4e4b5b(0x1f3)](_0x4e4b5b(0x1e1))[_0x4e4b5b(0x1ee)](),_0x5455f6=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x1fccb4,_0x5455f6);const _0x36b807=projectTenantMembers(await listTenantDirectoryMembers(_0x1fccb4));return{'ok':!![],'data':{'tenantCode':_0x1fccb4,'items':_0x36b807,'totalCount':_0x36b807[_0x4e4b5b(0x1e3)]},'message':_0x4e4b5b(0x1f4)+_0x36b807[_0x4e4b5b(0x1e3)]+'\x20tenant\x20member(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x434e93,_0x1c94a0){const _0x404f94=a205_0x4199,_0x4c38ab=_0x434e93();while(!![]){try{const _0x1b18e7=parseInt(_0x404f94(0x104))/0x1+parseInt(_0x404f94(0x116))/0x2+parseInt(_0x404f94(0x103))/0x3+-parseInt(_0x404f94(0x106))/0x4+-parseInt(_0x404f94(0x115))/0x5*(parseInt(_0x404f94(0x108))/0x6)+parseInt(_0x404f94(0x113))/0x7*(parseInt(_0x404f94(0x10e))/0x8)+-parseInt(_0x404f94(0x101))/0x9*(-parseInt(_0x404f94(0x10f))/0xa);if(_0x1b18e7===_0x1c94a0)break;else _0x4c38ab['push'](_0x4c38ab['shift']());}catch(_0x22ee8e){_0x4c38ab['push'](_0x4c38ab['shift']());}}}(a205_0x51f4,0x1d9bd));import{CliErrors}from'../../errors.js';function textOrNull(_0x570a89){const _0x143558=a205_0x4199,_0x560312=_0x570a89?.[_0x143558(0x102)]();return _0x560312?_0x560312:null;}export function projectTenantMembers(_0x3e90bd){const _0x4afc1f=a205_0x4199,_0x12076a=new Map();for(const _0x1f908e of _0x3e90bd){const _0x43d2f0=Number(_0x1f908e[_0x4afc1f(0x109)]);if(!Number['isFinite'](_0x43d2f0)||_0x43d2f0<=0x0)continue;const _0x16ad1b={'userId':_0x43d2f0,'username':textOrNull(_0x1f908e[_0x4afc1f(0x10c)]),'displayName':textOrNull(_0x1f908e[_0x4afc1f(0x112)]),'role':_0x1f908e['adminFlag']===!![]?'ADMIN':_0x4afc1f(0x118),'status':textOrNull(_0x1f908e[_0x4afc1f(0x110)])},_0x4055a1=_0x12076a[_0x4afc1f(0x111)](_0x43d2f0);if(!_0x4055a1){_0x12076a[_0x4afc1f(0x114)](_0x43d2f0,_0x16ad1b);continue;}_0x4055a1[_0x4afc1f(0x10c)]??=_0x16ad1b[_0x4afc1f(0x10c)],_0x4055a1[_0x4afc1f(0x105)]??=_0x16ad1b[_0x4afc1f(0x105)],_0x4055a1[_0x4afc1f(0x110)]??=_0x16ad1b[_0x4afc1f(0x110)];if(_0x16ad1b[_0x4afc1f(0x107)]===_0x4afc1f(0x10a))_0x4055a1[_0x4afc1f(0x107)]=_0x4afc1f(0x10a);}return[..._0x12076a[_0x4afc1f(0x117)]()]['sort']((_0x1c5cb9,_0x2eb7b0)=>_0x1c5cb9[_0x4afc1f(0x109)]-_0x2eb7b0['userId']);}function a205_0x4199(_0x3f1ef3,_0x5dcc4d){_0x3f1ef3=_0x3f1ef3-0x101;const _0x51f48d=a205_0x51f4();let _0x419914=_0x51f48d[_0x3f1ef3];return _0x419914;}export function assertTenantAccessible(_0xa19cc7,_0x2ab357){const _0x2a7af3=a205_0x4199;if(_0x2ab357[_0x2a7af3(0x10d)](_0x19ee7f=>_0x19ee7f['tenantCode']===_0xa19cc7))return;throw CliErrors[_0x2a7af3(0x10b)]('Tenant\x20\x22'+_0xa19cc7+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}function a205_0x51f4(){const _0x3e5bae=['nickname','7ZFVUJM','set','105265RUQHSq','309384bfJJIQ','values','MEMBER','940527sZWsKB','trim','29328ySMXjy','56578QixtMN','displayName','723320yEYKHe','role','18MVXPUT','userId','ADMIN','validation','username','some','317736oXCnnm','10DLBgit','status','get'];a205_0x51f4=function(){return _0x3e5bae;};return a205_0x51f4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a206_0x2c30(){const _0x530df4=['Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','963ywUSJl','6082240fesWwe','1462yFzXYH','apiError','bind','trim','POST','24bHUlsF','449855relzSi','1115188VAHosC','107248TXQnHP','string','user-account','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','18iCJJNU','dingtalk','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','ding-talk-user-id','442835YpOvLe','validation','--ding-talk-user-id\x20cannot\x20be\x20empty.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','2744244EeDrUB','dingding-sandbox-bind'];a206_0x2c30=function(){return _0x530df4;};return a206_0x2c30();}const a206_0x118af3=a206_0x1fea;(function(_0x215624,_0x4def78){const _0x4f6a73=a206_0x1fea,_0x53740c=_0x215624();while(!![]){try{const _0xb27806=-parseInt(_0x4f6a73(0x1c7))/0x1+-parseInt(_0x4f6a73(0x1bf))/0x2*(-parseInt(_0x4f6a73(0x1bd))/0x3)+parseInt(_0x4f6a73(0x1c6))/0x4+parseInt(_0x4f6a73(0x1cf))/0x5*(parseInt(_0x4f6a73(0x1cb))/0x6)+-parseInt(_0x4f6a73(0x1c5))/0x7*(parseInt(_0x4f6a73(0x1c4))/0x8)+parseInt(_0x4f6a73(0x1d3))/0x9+-parseInt(_0x4f6a73(0x1be))/0xa;if(_0xb27806===_0x4def78)break;else _0x53740c['push'](_0x53740c['shift']());}catch(_0x560d48){_0x53740c['push'](_0x53740c['shift']());}}}(a206_0x2c30,0x2aeb6));import{asDryRunResult}from'../../commands/common/dry-run.js';function a206_0x1fea(_0x2c2416,_0x153d07){_0x2c2416=_0x2c2416-0x1bd;const _0x2c30b4=a206_0x2c30();let _0x1fea3b=_0x2c30b4[_0x2c2416];return _0x1fea3b;}import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a206_0x118af3(0x1cc),CURRENT_BINDING_WARNING=a206_0x118af3(0x1ca);function readDingTalkUserId(_0x30ea39){const _0x52808d=a206_0x118af3,_0x220cc4=_0x30ea39['str']('ding-talk-user-id')[_0x52808d(0x1c2)]();if(!_0x220cc4)throw CliErrors[_0x52808d(0x1d0)](_0x52808d(0x1d1),_0x52808d(0x1d5));return _0x220cc4;}function buildBindingData(_0x109984,_0x474b01){const _0x35c8bf=a206_0x118af3;return{'operation':_0x35c8bf(0x1c1),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x109984},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x109984,'bound':!![]},'dryRun':_0x474b01,'backend':{'method':_0x35c8bf(0x1c3),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a206_0x118af3(0x1c9),'command':a206_0x118af3(0x1d4),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a206_0x118af3(0x1ce),'type':a206_0x118af3(0x1c8),'required':!![],'description':a206_0x118af3(0x1d2)}],async 'validate'(_0x29344c){readDingTalkUserId(_0x29344c);},async 'dryRun'(_0x492e49){const _0x41e15c=readDingTalkUserId(_0x492e49);return asDryRunResult(buildBindingData(_0x41e15c,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x379296){const _0x55c27c=a206_0x118af3,_0x4f9606=readDingTalkUserId(_0x379296),_0x1664bb=await bindDingTalkSandboxAccount(_0x4f9606);if(_0x1664bb!==!![])throw CliErrors[_0x55c27c(0x1c0)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.',_0x55c27c(0x1cd));return{'ok':!![],'data':buildBindingData(_0x4f9606,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a207_0x2a0f(){const _0x3f328e=['197770AKFWFH','444nKAOaF','720guKrUD','1886232LeXMiP','5783393Mtuuli','554449Wenwng','1281928tUSAqP','5XyBTIU','4405062nAbhrK','12951RSUKra'];a207_0x2a0f=function(){return _0x3f328e;};return a207_0x2a0f();}(function(_0x4eb865,_0xf85219){const _0x5866b7=a207_0x358f,_0x5fe0a5=_0x4eb865();while(!![]){try{const _0x4c8280=parseInt(_0x5866b7(0xdf))/0x1+-parseInt(_0x5866b7(0xe0))/0x2+parseInt(_0x5866b7(0xe3))/0x3*(parseInt(_0x5866b7(0xe5))/0x4)+-parseInt(_0x5866b7(0xe1))/0x5*(-parseInt(_0x5866b7(0xe2))/0x6)+parseInt(_0x5866b7(0xde))/0x7+parseInt(_0x5866b7(0xdd))/0x8+-parseInt(_0x5866b7(0xe6))/0x9*(parseInt(_0x5866b7(0xe4))/0xa);if(_0x4c8280===_0xf85219)break;else _0x5fe0a5['push'](_0x5fe0a5['shift']());}catch(_0x5c2f08){_0x5fe0a5['push'](_0x5fe0a5['shift']());}}}(a207_0x2a0f,0x941cb));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a207_0x358f(_0x54a9a0,_0x4779fa){_0x54a9a0=_0x54a9a0-0xdd;const _0x2a0f75=a207_0x2a0f();let _0x358f22=_0x2a0f75[_0x54a9a0];return _0x358f22;}export const userAccountDefinitions=[dingTalkSandboxBind];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x422e03=a208_0x1f1c;function a208_0x1f1c(_0x2f09e6,_0x2463c5){_0x2f09e6=_0x2f09e6-0x158;const _0x285189=a208_0x2851();let _0x1f1ca=_0x285189[_0x2f09e6];return _0x1f1ca;}(function(_0x472282,_0x40af32){const _0xedbbfe=a208_0x1f1c,_0x204ebb=_0x472282();while(!![]){try{const _0x3313d2=parseInt(_0xedbbfe(0x15b))/0x1*(parseInt(_0xedbbfe(0x163))/0x2)+parseInt(_0xedbbfe(0x167))/0x3+parseInt(_0xedbbfe(0x15d))/0x4*(parseInt(_0xedbbfe(0x15e))/0x5)+-parseInt(_0xedbbfe(0x15a))/0x6*(parseInt(_0xedbbfe(0x164))/0x7)+-parseInt(_0xedbbfe(0x166))/0x8+parseInt(_0xedbbfe(0x162))/0x9*(-parseInt(_0xedbbfe(0x158))/0xa)+parseInt(_0xedbbfe(0x15f))/0xb;if(_0x3313d2===_0x40af32)break;else _0x204ebb['push'](_0x204ebb['shift']());}catch(_0x47ed7a){_0x204ebb['push'](_0x204ebb['shift']());}}}(a208_0x2851,0x82e61));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a208_0x2851(){const _0x5f2f7d=['2598376rWukTp','109821qsHOWD','20iKgxLV','add','4995786AxxeRA','5WPLoiy','write','364huNhjQ','45635EZedqb','20191369HeJjfy','App\x20profile\x20name','workspace\x20add','4562748STtgIn','1916VcrBfg','7JqBLtD','name'];a208_0x2851=function(){return _0x5f2f7d;};return a208_0x2851();}export const workspaceAddDefinition={'service':'workspace','command':a208_0x422e03(0x159),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a208_0x422e03(0x15c),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a208_0x422e03(0x165),'description':a208_0x422e03(0x160),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x23a229=>validateAppName(_0x23a229,a208_0x422e03(0x161)),'execute':_0x58369e=>runAppAdd(_0x58369e,'workspace\x20add')};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x43a6ae=a209_0x4bee;(function(_0x5a593d,_0x5d2e8b){const _0x48af6c=a209_0x4bee,_0x5773b5=_0x5a593d();while(!![]){try{const _0x2bec97=-parseInt(_0x48af6c(0x205))/0x1*(parseInt(_0x48af6c(0x1ee))/0x2)+parseInt(_0x48af6c(0x216))/0x3*(-parseInt(_0x48af6c(0x209))/0x4)+parseInt(_0x48af6c(0x1ec))/0x5+parseInt(_0x48af6c(0x1f9))/0x6*(-parseInt(_0x48af6c(0x1ff))/0x7)+parseInt(_0x48af6c(0x220))/0x8*(-parseInt(_0x48af6c(0x202))/0x9)+parseInt(_0x48af6c(0x1fb))/0xa+parseInt(_0x48af6c(0x208))/0xb;if(_0x2bec97===_0x5d2e8b)break;else _0x5773b5['push'](_0x5773b5['shift']());}catch(_0x24a0af){_0x5773b5['push'](_0x5773b5['shift']());}}}(a209_0x438e,0x826db));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';function a209_0x438e(){const _0x10c27b=['deploymentSync','\x20workspace\x20use\x20--app\x20<name>`.','1823675akmWwU','\x22\x20not\x20found.','2ImuMLq','workspace.','apps','string','\x20--app\x20','use','workspace','app','.\x20Credentials:\x20not\x20written.','Use\x20`','trim','50916EdHfXU','init','10347850EXLSGM','Initialize\x20the\x20current\x20workspace\x20app\x20binding','isArray','apiDir','434PUgMst','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','9ZhXHBa','env','validation','159305nFiPPt','updated','object','7852229RdsiHp','35648UdbHxx','Missing\x20workspace\x20app\x20selector.','initialized','number','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','write','\x20workspace\x20','format','str','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','globalConfig','198HZeYHD','appcode','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Target\x20environment','project','pageSize','\x20--appcode\x20<code>`.','defaultFormat','\x20(appcode:\x20','flag','2443960HFVcHQ','keys','locale','join','Workspace\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding'];a209_0x438e=function(){return _0x10c27b;};return a209_0x438e();}import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../../config/deployment-sync.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a209_0x43a6ae(0x217),'env',a209_0x43a6ae(0x1fe),a209_0x43a6ae(0x210),'pageSize',a209_0x43a6ae(0x201),a209_0x43a6ae(0x1e6),a209_0x43a6ae(0x1ea)],workspaceFlags=[{'name':a209_0x43a6ae(0x1f5),'type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a209_0x43a6ae(0x217),'type':'string','description':a209_0x43a6ae(0x214)},{'name':a209_0x43a6ae(0x203),'type':a209_0x43a6ae(0x1f1),'description':a209_0x43a6ae(0x219),'enum':[...RABETBASE_ENV_VALUES]},{'name':a209_0x43a6ae(0x1fe),'type':a209_0x43a6ae(0x1f1),'description':a209_0x43a6ae(0x200)},{'name':a209_0x43a6ae(0x21d),'type':a209_0x43a6ae(0x1f1),'description':a209_0x43a6ae(0x20d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a209_0x43a6ae(0x21b),'type':a209_0x43a6ae(0x20c),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a209_0x43a6ae(0x201),'type':'string','description':a209_0x43a6ae(0x213),'enum':[...RISK_LEVEL_VALUES]},{'name':a209_0x43a6ae(0x1e6),'type':'string','description':a209_0x43a6ae(0x218)},...getDeploymentSyncProfileFlagDefs()];function a209_0x4bee(_0x13bb61,_0x550dab){_0x13bb61=_0x13bb61-0x1e5;const _0x438e0c=a209_0x438e();let _0x4beec2=_0x438e0c[_0x13bb61];return _0x4beec2;}function isRecord(_0x21dc91){const _0x546caa=a209_0x43a6ae;return!!_0x21dc91&&typeof _0x21dc91===_0x546caa(0x207)&&!Array[_0x546caa(0x1fd)](_0x21dc91);}function assertValidAppcode(_0x48cdff){const _0x5a5998=a209_0x43a6ae,{valid:_0x260235,message:_0x50d6b3}=validateAppcode(_0x48cdff);if(!_0x260235)throw CliErrors[_0x5a5998(0x204)]('Invalid\x20appcode:\x20'+_0x48cdff,_0x50d6b3);}function sanitizeProfile(_0x3bc436){if(!isRecord(_0x3bc436))return{};const _0x2818b2={};for(const _0x55e05f of SAFE_PROFILE_KEYS){if(_0x3bc436[_0x55e05f]!==undefined)_0x2818b2[_0x55e05f]=_0x3bc436[_0x55e05f];}return _0x2818b2;}function cloneProfile(_0x2acdab){return isRecord(_0x2acdab)?{..._0x2acdab}:{};}function collectWorkspaceProfileOverrides(_0x27b0ad){const _0x424f99=a209_0x43a6ae,_0x37166b={},_0x4c9adf=_0x27b0ad[_0x424f99(0x211)](_0x424f99(0x203)),_0x1763da=_0x27b0ad[_0x424f99(0x211)](_0x424f99(0x1fe)),_0x2aae7c=_0x27b0ad['str'](_0x424f99(0x21d)),_0x311de5=_0x27b0ad[_0x424f99(0x21f)](_0x424f99(0x21b)),_0x316a93=_0x27b0ad['str'](_0x424f99(0x201)),_0x123bfc=_0x27b0ad[_0x424f99(0x211)]('locale');if(_0x4c9adf)_0x37166b[_0x424f99(0x203)]=_0x4c9adf;if(_0x1763da)_0x37166b[_0x424f99(0x1fe)]=_0x1763da;if(_0x2aae7c)_0x37166b[_0x424f99(0x210)]=_0x2aae7c;if(_0x311de5!==undefined&&_0x311de5!=='')_0x37166b['pageSize']=Number(_0x311de5);if(_0x316a93)_0x37166b['riskLevel']=_0x316a93;if(_0x123bfc)_0x37166b[_0x424f99(0x1e6)]=_0x123bfc;const _0x21fec1=collectDeploymentSyncProfile(_0x534a17=>_0x27b0ad[_0x424f99(0x211)](_0x534a17));if(_0x21fec1)_0x37166b['deploymentSync']=_0x21fec1;return _0x37166b;}async function validateWorkspaceArgs(_0x510c54){const _0x44b681=a209_0x43a6ae,_0xbd2775=_0x510c54[_0x44b681(0x211)](_0x44b681(0x1f5))[_0x44b681(0x1f8)](),_0x5e6fb4=_0x510c54[_0x44b681(0x211)](_0x44b681(0x217))[_0x44b681(0x1f8)]();if(!_0xbd2775&&!_0x5e6fb4)throw CliErrors[_0x44b681(0x204)]('Missing\x20workspace\x20app\x20selector.',_0x44b681(0x1f7)+CLI_BIN_NAME+_0x44b681(0x212)+CLI_BIN_NAME+_0x44b681(0x1eb));if(_0x5e6fb4)assertValidAppcode(_0x5e6fb4);}function resolveKnownApps(){const _0x49264d=a209_0x43a6ae,{config:_0x345f53,layers:_0x6b74f4}=readRawConfigWithLayers(),_0x30d540=isRecord(_0x345f53[_0x49264d(0x1f0)])?_0x345f53[_0x49264d(0x1f0)]:{},_0x592c1f=isRecord(_0x6b74f4[_0x49264d(0x215)]['apps'])?_0x6b74f4['globalConfig'][_0x49264d(0x1f0)]:{};return{..._0x592c1f,..._0x30d540};}async function configureWorkspace(_0x5d938b,_0x47bc21){const _0x3bf17b=a209_0x43a6ae,_0xcf5b49=_0x5d938b[_0x3bf17b(0x211)](_0x3bf17b(0x1f5))['trim'](),_0x541538=_0x5d938b[_0x3bf17b(0x211)](_0x3bf17b(0x217))[_0x3bf17b(0x1f8)](),_0x295fde=_0xcf5b49||_0x541538;if(!_0x295fde)throw CliErrors[_0x3bf17b(0x204)](_0x3bf17b(0x20a),_0x3bf17b(0x1f7)+CLI_BIN_NAME+_0x3bf17b(0x212)+CLI_BIN_NAME+_0x3bf17b(0x1eb));if(_0x541538)assertValidAppcode(_0x541538);const _0x5930cf=resolveWriteConfigPath(_0x3bf17b(0x21a)),_0x85b2d6=readConfigFile(_0x5930cf),_0xb23ec7=resolveKnownApps(),_0x928d74=isRecord(_0x85b2d6['apps'])?{..._0x85b2d6[_0x3bf17b(0x1f0)]}:{},_0x10557e=cloneProfile(_0x928d74[_0x295fde]),_0x2ff968=sanitizeProfile(_0xb23ec7[_0x295fde]),_0x38f422=_0x541538?{}:_0x2ff968,_0x4e1c97=_0x541538||_0x38f422['appcode'];if(!_0x4e1c97){const _0x19ab16=Object[_0x3bf17b(0x1e5)](_0xb23ec7),_0x1df1a9=_0x19ab16['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x3bf17b(0x20f)+_0x47bc21+_0x3bf17b(0x1f2)+_0x295fde+_0x3bf17b(0x21c):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x19ab16[_0x3bf17b(0x1e7)](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x295fde+_0x3bf17b(0x1ed),_0x1df1a9);}assertValidAppcode(String(_0x4e1c97));const _0x261604={..._0x38f422,..._0x10557e,'appcode':String(_0x4e1c97),...collectWorkspaceProfileOverrides(_0x5d938b)};return _0x928d74[_0x295fde]=_0x261604,_0x85b2d6[_0x3bf17b(0x1f0)]=_0x928d74,normalizeStoredDefaultApp(_0x85b2d6,_0x295fde),delete _0x85b2d6[_0x3bf17b(0x217)],delete _0x85b2d6[_0x3bf17b(0x1f5)],_0x261604[_0x3bf17b(0x203)]&&(_0x85b2d6[_0x3bf17b(0x203)]=_0x261604[_0x3bf17b(0x203)]),writeConfigFile(_0x5930cf,_0x85b2d6),{'ok':!![],'message':_0x3bf17b(0x1e8)+(_0x47bc21==='init'?_0x3bf17b(0x20b):_0x3bf17b(0x206))+':\x20'+_0x295fde+_0x3bf17b(0x21e)+_0x261604[_0x3bf17b(0x217)]+').\x20Config:\x20'+_0x5930cf+_0x3bf17b(0x1f6),'data':{'operation':_0x3bf17b(0x1ef)+_0x47bc21,'configPath':_0x5930cf,'app':_0x295fde,'appcode':_0x261604['appcode'],'env':_0x261604[_0x3bf17b(0x203)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a209_0x43a6ae(0x1fc),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5b957e=>configureWorkspace(_0x5b957e,a209_0x43a6ae(0x1fa))},workspaceUseDefinition={'service':a209_0x43a6ae(0x1f4),'command':a209_0x43a6ae(0x1f3),'description':a209_0x43a6ae(0x1e9),'risk':a209_0x43a6ae(0x20e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xb9c9b4=>configureWorkspace(_0xb9c9b4,a209_0x43a6ae(0x1f3))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a210_0x243f(_0x57c137,_0x20e2ee){_0x57c137=_0x57c137-0x99;const _0x128448=a210_0x1284();let _0x243fef=_0x128448[_0x57c137];return _0x243fef;}const a210_0x198827=a210_0x243f;(function(_0x46a3b8,_0x4af17a){const _0x13ae90=a210_0x243f,_0x64efd9=_0x46a3b8();while(!![]){try{const _0x49fbd9=-parseInt(_0x13ae90(0x99))/0x1*(parseInt(_0x13ae90(0x9e))/0x2)+-parseInt(_0x13ae90(0x9d))/0x3+-parseInt(_0x13ae90(0xa2))/0x4+parseInt(_0x13ae90(0x9b))/0x5*(parseInt(_0x13ae90(0xa5))/0x6)+-parseInt(_0x13ae90(0xa3))/0x7*(parseInt(_0x13ae90(0x9a))/0x8)+-parseInt(_0x13ae90(0xa6))/0x9+parseInt(_0x13ae90(0xa1))/0xa*(parseInt(_0x13ae90(0xa4))/0xb);if(_0x49fbd9===_0x4af17a)break;else _0x64efd9['push'](_0x64efd9['shift']());}catch(_0x1704d3){_0x64efd9['push'](_0x64efd9['shift']());}}}(a210_0x1284,0x39afa));function a210_0x1284(){const _0x4353a5=['1784960FvWydb','name','146535plqkzX','4OUjixg','workspace\x20remove','workspace','220ymQUkR','6844HcWlbj','7qvdVQH','346852ivrDEt','6PkbPBR','2612430OOFmEl','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','remove','214481TNxElz','357008KmSKlr'];a210_0x1284=function(){return _0x4353a5;};return a210_0x1284();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a210_0x198827(0xa0),'command':a210_0x198827(0xa8),'description':a210_0x198827(0xa7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a210_0x198827(0x9c),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x5c254a=>validateAppName(_0x5c254a,a210_0x198827(0x9f)),'execute':_0x516513=>runAppRemove(_0x516513,a210_0x198827(0x9f))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a211_0x4388(_0x153333,_0x35ed88){_0x153333=_0x153333-0x194;const _0x15330c=a211_0x1533();let _0x43880f=_0x15330c[_0x153333];return _0x43880f;}const a211_0x31dc7b=a211_0x4388;(function(_0x4799d6,_0x1e2387){const _0x548d15=a211_0x4388,_0x2cf645=_0x4799d6();while(!![]){try{const _0x3bdbd1=-parseInt(_0x548d15(0x19e))/0x1+-parseInt(_0x548d15(0x1a8))/0x2*(parseInt(_0x548d15(0x1a3))/0x3)+-parseInt(_0x548d15(0x1a5))/0x4*(-parseInt(_0x548d15(0x1aa))/0x5)+-parseInt(_0x548d15(0x1a1))/0x6*(parseInt(_0x548d15(0x1ab))/0x7)+-parseInt(_0x548d15(0x19b))/0x8+parseInt(_0x548d15(0x198))/0x9*(parseInt(_0x548d15(0x195))/0xa)+parseInt(_0x548d15(0x19a))/0xb;if(_0x3bdbd1===_0x1e2387)break;else _0x2cf645['push'](_0x2cf645['shift']());}catch(_0xd20c00){_0x2cf645['push'](_0x2cf645['shift']());}}}(a211_0x1533,0x2afbb));import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=[a211_0x31dc7b(0x196),'test',a211_0x31dc7b(0x19f)];export function getDeploymentSyncProfileFlagDefs(){const _0x39e375=a211_0x31dc7b;return[{'name':_0x39e375(0x199),'type':_0x39e375(0x1a0),'description':'Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target'},{'name':_0x39e375(0x19c),'type':_0x39e375(0x1a2),'enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x39e375(0x197)}];}export function collectDeploymentSyncProfile(_0x5358b5){const _0x3c2570=a211_0x31dc7b,_0x32e408=_0x5358b5('deployment-db-id')[_0x3c2570(0x1a7)](),_0x2487dd=_0x5358b5(_0x3c2570(0x19c))[_0x3c2570(0x1a7)]();if(!_0x32e408&&!_0x2487dd)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x32e408?Number(_0x32e408):undefined,'targetEnv':_0x2487dd||undefined});}function a211_0x1533(){const _0x361ab1=['4VXZrrK','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','trim','4MqqFwz','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','390855sUmpmD','34174nezrrj','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','validation','isSafeInteger','targetEnv','10LqPcGC','dev','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','12501itdchg','deployment-db-id','9749751IpXQuo','2546904IfaOBo','deployment-target-env','--deployment-target-env\x20must\x20be\x20one\x20of:\x20','188225WwHLFM','pre','number','246dlVptp','string','124638pQdTft','object'];a211_0x1533=function(){return _0x361ab1;};return a211_0x1533();}export function validateDeploymentSyncProfile(_0x388930){const _0x426a20=a211_0x31dc7b;if(!_0x388930||typeof _0x388930!==_0x426a20(0x1a4)||Array['isArray'](_0x388930))throw CliErrors[_0x426a20(0x1ad)](_0x426a20(0x1ac));const _0x5268df=_0x388930,_0x2120b2=Number(_0x5268df['dbLinkId']);if(!Number[_0x426a20(0x1ae)](_0x2120b2)||_0x2120b2<=0x0)throw CliErrors['validation'](_0x426a20(0x1a6));const _0x27b656=typeof _0x5268df[_0x426a20(0x194)]===_0x426a20(0x1a2)?_0x5268df['targetEnv']['trim']():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS['includes'](_0x27b656))throw CliErrors[_0x426a20(0x1ad)](_0x426a20(0x19d)+AUTO_DEPLOYMENT_TARGET_ENVS['join'](',\x20')+'.',_0x426a20(0x1a9));return{'dbLinkId':_0x2120b2,'targetEnv':_0x27b656};}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "
|
|
1
|
+
export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "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
|
+
function a212_0x4d47(_0x549e6b,_0x247198){_0x549e6b=_0x549e6b-0xf8;const _0x3854ef=a212_0x3854();let _0x4d47c8=_0x3854ef[_0x549e6b];return _0x4d47c8;}const a212_0x34d0df=a212_0x4d47;(function(_0x64ba59,_0x2eb68a){const _0x2b8d28=a212_0x4d47,_0x1a1496=_0x64ba59();while(!![]){try{const _0xf7b6f1=-parseInt(_0x2b8d28(0xfd))/0x1*(-parseInt(_0x2b8d28(0xfc))/0x2)+-parseInt(_0x2b8d28(0x109))/0x3*(-parseInt(_0x2b8d28(0x10b))/0x4)+parseInt(_0x2b8d28(0x129))/0x5+parseInt(_0x2b8d28(0x126))/0x6+-parseInt(_0x2b8d28(0x103))/0x7+-parseInt(_0x2b8d28(0x127))/0x8+parseInt(_0x2b8d28(0x106))/0x9;if(_0xf7b6f1===_0x2eb68a)break;else _0x1a1496['push'](_0x1a1496['shift']());}catch(_0xfd88a1){_0x1a1496['push'](_0x1a1496['shift']());}}}(a212_0x3854,0x567a9));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a212_0x34d0df(0x124),'apiDomain','runtimeDomain',a212_0x34d0df(0x114),a212_0x34d0df(0x116),a212_0x34d0df(0x10f),a212_0x34d0df(0x101),a212_0x34d0df(0x111)];const DOMAIN_FLAGS={'userDomain':a212_0x34d0df(0x10c),'apiDomain':a212_0x34d0df(0x110),'runtimeDomain':'runtime-domain','skillDomain':a212_0x34d0df(0x12a),'kbDomain':a212_0x34d0df(0x105),'appDomain':'app-domain','localDomain':'local-domain','certificateDomain':'certificate-domain'};function a212_0x3854(){const _0x2bb1d1=['Unsupported\x20domain\x20config\x20field(s):\x20','search','isArray','localDomain','skillHubDomain','3475010jTrNjm','https:','kb-domain','3758247aHPfbl','parse','includes','6knkFMG','Allowed\x20fields:\x20','1155128EeVpgT','user-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','appDomain','api-domain','certificateDomain','Domain\x20config\x20file\x20not\x20found:\x20','cwd','skillDomain','join','kbDomain','utf8',':\x20\x22','platformDomain','string','filter','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','origin','object','length','validation','Invalid\x20domain\x20config\x20JSON:\x20','trim','domain-config','userDomain','Invalid\x20','2194488BkUNrN','5212440pkCFjm','hash','315705eIlXFY','skill-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','pathname','str','keys','agentDomain','8228GwMNEH','19taBwup'];a212_0x3854=function(){return _0x2bb1d1;};return a212_0x3854();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x34d0df(0xfb),a212_0x34d0df(0x119),a212_0x34d0df(0x102)];export function normalizeDomainOrigin(_0x30de5a,_0x2f048b){const _0x48a53f=a212_0x34d0df;if(typeof _0x2f048b!==_0x48a53f(0x11a)||!_0x2f048b['trim']())throw CliErrors[_0x48a53f(0x120)](_0x48a53f(0x125)+_0x30de5a+_0x48a53f(0x10d));let _0x4167e9;try{_0x4167e9=new URL(_0x2f048b[_0x48a53f(0x122)]());}catch{throw CliErrors[_0x48a53f(0x120)](_0x48a53f(0x125)+_0x30de5a+_0x48a53f(0x118)+_0x2f048b+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x4167e9['protocol']!==_0x48a53f(0x104)||_0x4167e9['username']||_0x4167e9['password']||_0x4167e9[_0x48a53f(0xf8)]!=='/'&&_0x4167e9[_0x48a53f(0xf8)]!==''||_0x4167e9[_0x48a53f(0xff)]||_0x4167e9[_0x48a53f(0x128)])throw CliErrors[_0x48a53f(0x120)](_0x48a53f(0x125)+_0x30de5a+_0x48a53f(0x12b),_0x48a53f(0x10e));return _0x4167e9[_0x48a53f(0x11d)];}export function readDomainConfig(_0x4faed2){const _0x3e3790=a212_0x34d0df,_0x43c6e5=isAbsolute(_0x4faed2)?_0x4faed2:resolve(process[_0x3e3790(0x113)](),_0x4faed2);if(!existsSync(_0x43c6e5))throw CliErrors[_0x3e3790(0x120)](_0x3e3790(0x112)+_0x43c6e5);let _0x258c29;try{_0x258c29=JSON[_0x3e3790(0x107)](readFileSync(_0x43c6e5,_0x3e3790(0x117)));}catch{throw CliErrors[_0x3e3790(0x120)](_0x3e3790(0x121)+_0x43c6e5);}if(!_0x258c29||typeof _0x258c29!==_0x3e3790(0x11e)||Array[_0x3e3790(0x100)](_0x258c29))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x148ca0=_0x258c29,_0x2a3152=Object[_0x3e3790(0xfa)](_0x148ca0)[_0x3e3790(0x11b)](_0x31ee20=>!DOMAIN_CONFIG_FIELDS[_0x3e3790(0x108)](_0x31ee20));if(_0x2a3152['length']>0x0)throw CliErrors['validation'](_0x3e3790(0xfe)+_0x2a3152['join'](',\x20'),_0x3e3790(0x10a)+DOMAIN_CONFIG_FIELDS[_0x3e3790(0x115)](',\x20'));const _0x46f819={};for(const _0x65b41c of DOMAIN_CONFIG_FIELDS){_0x148ca0[_0x65b41c]!==undefined&&(_0x46f819[_0x65b41c]=normalizeDomainOrigin(_0x65b41c,_0x148ca0[_0x65b41c]));}if(Object[_0x3e3790(0xfa)](_0x46f819)[_0x3e3790(0x11f)]===0x0)throw CliErrors[_0x3e3790(0x120)](_0x3e3790(0x11c));return _0x46f819;}export function resolveDomainFlags(_0x18214e){const _0x516e81=a212_0x34d0df,_0x306e25=(_0x18214e[_0x516e81(0xf9)](_0x516e81(0x123))||'')[_0x516e81(0x122)](),_0x5ca1d2=_0x306e25?readDomainConfig(_0x306e25):{};for(const _0x539be6 of DOMAIN_CONFIG_FIELDS){const _0x24403d=(_0x18214e[_0x516e81(0xf9)](DOMAIN_FLAGS[_0x539be6])||'')[_0x516e81(0x122)]();if(_0x24403d)_0x5ca1d2[_0x539be6]=normalizeDomainOrigin(_0x539be6,_0x24403d);}return _0x5ca1d2;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x579527,_0x414e7d){const _0x261f59=a213_0x334b,_0x4e7d81=_0x579527();while(!![]){try{const _0x5ba89b=-parseInt(_0x261f59(0x1c7))/0x1*(-parseInt(_0x261f59(0x1c5))/0x2)+-parseInt(_0x261f59(0x1ba))/0x3*(parseInt(_0x261f59(0x1bd))/0x4)+-parseInt(_0x261f59(0x1c1))/0x5+parseInt(_0x261f59(0x1b8))/0x6*(-parseInt(_0x261f59(0x1c3))/0x7)+parseInt(_0x261f59(0x1bf))/0x8+parseInt(_0x261f59(0x1c8))/0x9*(-parseInt(_0x261f59(0x1b9))/0xa)+parseInt(_0x261f59(0x1c0))/0xb*(parseInt(_0x261f59(0x1bb))/0xc);if(_0x5ba89b===_0x414e7d)break;else _0x4e7d81['push'](_0x4e7d81['shift']());}catch(_0x32cc26){_0x4e7d81['push'](_0x4e7d81['shift']());}}}(a213_0x29c3,0xa1337));import{writeFileSync}from'node:fs';function a213_0x29c3(){const _0x3e9d0e=['1017dgZNWk','7692fjZRnL','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','764nRTvSJ','official','8155640ksmOFj','14355tBabNk','859775vddMGO','assets','2571443HRKtNt','/cert/lovrabet-dev.json','78oTrIOs','independent','18701WQVQJq','8582562GLorWH','stringify','utf8','local','12WIoWoW','10ovtIWW'];a213_0x29c3=function(){return _0x3e9d0e;};return a213_0x29c3();}import{join}from'node:path';import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_ROUTING_FILE_NAME='rabetbase.routing.json';function a213_0x334b(_0x343c05,_0x3fef51){_0x343c05=_0x343c05-0x1b7;const _0x29c379=a213_0x29c3();let _0x334b17=_0x29c379[_0x343c05];return _0x334b17;}export const PROJECT_ROUTING_PROTOCOL='lovrabet-project-routing/v1';export function getProjectRoutingManifest(){const _0x579212=a213_0x334b,_0x1a6652=getActiveRegion(),_0x289b6e=isIndependentDeployment(),_0xb8e49f=getOfficialRoutingProfile(_0x1a6652),_0x364352=getLocalDomain(),_0x41abad=getCertificateDomain();if(!!_0x364352!==!!_0x41abad)throw new Error(_0x579212(0x1bc));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x289b6e?_0x579212(0x1c6):_0x579212(0x1be),'region':_0x289b6e?null:_0x1a6652,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0xb8e49f[_0x579212(0x1c2)],'local':_0x364352&&_0x41abad?{'origin':_0x364352,'certificateUrl':_0x41abad+_0x579212(0x1c4)}:_0x289b6e?{'origin':'http://localhost'}:_0xb8e49f[_0x579212(0x1b7)]};}export function writeProjectRoutingManifest(_0x415f81){const _0x5b4a81=a213_0x334b,_0x4c429b=getProjectRoutingManifest(),_0x4becf8=join(_0x415f81,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0x4becf8,JSON[_0x5b4a81(0x1c9)](_0x4c429b,null,0x2)+'\x0a',_0x5b4a81(0x1ca)),{'path':_0x4becf8,'manifest':_0x4c429b};}
|
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", "
|
|
3
|
+
export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "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_0x4a03da=a214_0x5d40;(function(_0x3460c7,_0x205cd1){const _0x1d2ce7=a214_0x5d40,_0x3f5162=_0x3460c7();while(!![]){try{const _0x5be657=-parseInt(_0x1d2ce7(0x143))/0x1*(-parseInt(_0x1d2ce7(0x127))/0x2)+parseInt(_0x1d2ce7(0x142))/0x3*(-parseInt(_0x1d2ce7(0x111))/0x4)+parseInt(_0x1d2ce7(0x118))/0x5*(parseInt(_0x1d2ce7(0x135))/0x6)+-parseInt(_0x1d2ce7(0x147))/0x7*(parseInt(_0x1d2ce7(0x12b))/0x8)+parseInt(_0x1d2ce7(0x126))/0x9*(-parseInt(_0x1d2ce7(0x11a))/0xa)+-parseInt(_0x1d2ce7(0x11f))/0xb*(-parseInt(_0x1d2ce7(0x117))/0xc)+parseInt(_0x1d2ce7(0x12d))/0xd*(parseInt(_0x1d2ce7(0x13b))/0xe);if(_0x5be657===_0x205cd1)break;else _0x3f5162['push'](_0x3f5162['shift']());}catch(_0x4434ee){_0x3f5162['push'](_0x3f5162['shift']());}}}(a214_0x46ee,0x4253e));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';function a214_0x5d40(_0x115c52,_0x2f8be1){_0x115c52=_0x115c52-0x10e;const _0x46ee9c=a214_0x46ee();let _0x5d40be=_0x46ee9c[_0x115c52];return _0x5d40be;}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey',a214_0x4a03da(0x13d),a214_0x4a03da(0x13c),'riskLevel','region',a214_0x4a03da(0x131),a214_0x4a03da(0x145),a214_0x4a03da(0x134),a214_0x4a03da(0x13a),a214_0x4a03da(0x119),a214_0x4a03da(0x12e),'localDomain',a214_0x4a03da(0x11b)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a214_0x4a03da(0x133),'env',a214_0x4a03da(0x13d),a214_0x4a03da(0x13c),a214_0x4a03da(0x140),a214_0x4a03da(0x115),a214_0x4a03da(0x13e),a214_0x4a03da(0x137),'userDomain',a214_0x4a03da(0x145),a214_0x4a03da(0x134),'skillDomain',a214_0x4a03da(0x119),'appDomain',a214_0x4a03da(0x11d),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x41ea9a){const _0x4d010a=a214_0x4a03da;return[..._0x41ea9a][_0x4d010a(0x146)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x4e803){const _0x10e416=a214_0x4a03da;return TOP_LEVEL_CONFIG_KEYS[_0x10e416(0x124)](_0x4e803);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4de4cc=a214_0x4a03da;return _0x4de4cc(0x128)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':'apiDir','cookie':a214_0x4a03da(0x140),'accessKey':a214_0x4a03da(0x115),'defaultFormat':'format','pageSize':a214_0x4a03da(0x12c),'riskLevel':a214_0x4a03da(0x11c),'locale':a214_0x4a03da(0x13d)};export function getAppProfileFlagDefs(){const _0x1cde31=a214_0x4a03da;return[{'name':'env','type':'string','description':_0x1cde31(0x112),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1cde31(0x13e),'type':_0x1cde31(0x130),'description':_0x1cde31(0x116)},{'name':_0x1cde31(0x140),'type':_0x1cde31(0x130),'description':_0x1cde31(0x114),'hidden':!![]},{'name':_0x1cde31(0x115),'type':'string','description':_0x1cde31(0x12f),'hidden':!![]},{'name':_0x1cde31(0x122),'type':_0x1cde31(0x130),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1cde31(0x12c),'type':_0x1cde31(0x13f),'description':_0x1cde31(0x138)},{'name':_0x1cde31(0x11c),'type':_0x1cde31(0x130),'description':_0x1cde31(0x125),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x1cde31(0x129)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0x104603){const _0x267d42=a214_0x4a03da,_0x42c8f2={};for(const [_0x38918e,_0x4d042a]of Object[_0x267d42(0x10e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1e02b5=_0x104603(_0x38918e);if(!_0x1e02b5)continue;_0x42c8f2[_0x4d042a]=_0x4d042a===_0x267d42(0x12c)?Number(_0x1e02b5):_0x1e02b5;}const _0x4284bf=collectDeploymentSyncProfile(_0x104603);if(_0x4284bf)_0x42c8f2[_0x267d42(0x11e)]=_0x4284bf;return _0x42c8f2;}export function buildAppProfileListFields(_0x1e42e2){const _0x598dc3=a214_0x4a03da;return{'env':_0x1e42e2[_0x598dc3(0x110)]??null,'apiDir':_0x1e42e2[_0x598dc3(0x13e)]??null,'hasCookie':!!_0x1e42e2[_0x598dc3(0x140)],'hasAccessKey':!!_0x1e42e2[_0x598dc3(0x115)],'format':_0x1e42e2[_0x598dc3(0x13c)]??null,'pageSize':_0x1e42e2[_0x598dc3(0x12c)]??null,'riskLevel':_0x1e42e2[_0x598dc3(0x11c)]??null,'locale':_0x1e42e2['locale']??null,'deploymentSync':_0x1e42e2['deploymentSync']??null};}export function buildAppDoctorFields(_0x3951cd,_0x23bee1){const _0x21a49a=a214_0x4a03da;return{'env':{'value':_0x3951cd[_0x21a49a(0x110)]||_0x23bee1[_0x21a49a(0x110)],'source':_0x3951cd[_0x21a49a(0x110)]?_0x21a49a(0x113):_0x21a49a(0x141)},'apiDir':{'value':_0x3951cd[_0x21a49a(0x13e)]||_0x23bee1['apiDir'],'source':_0x3951cd['apiDir']?_0x21a49a(0x113):_0x21a49a(0x141)},'cookie':{'value':_0x3951cd[_0x21a49a(0x140)]||_0x23bee1[_0x21a49a(0x140)],'source':_0x3951cd[_0x21a49a(0x140)]?_0x21a49a(0x113):_0x21a49a(0x141)},'accessKey':{'value':_0x3951cd[_0x21a49a(0x115)]||_0x23bee1['accessKey'],'source':_0x3951cd[_0x21a49a(0x115)]?_0x21a49a(0x113):_0x21a49a(0x141)}};}export function buildCanonicalAppConfig(_0x2510d4,_0x3acc05){const _0x5d3046=a214_0x4a03da,_0x4a1a1d=_0x2510d4[_0x5d3046(0x120)](_0x41a4a7=>String(_0x41a4a7||'')[_0x5d3046(0x148)]())[_0x5d3046(0x132)](Boolean);if(_0x4a1a1d[_0x5d3046(0x121)]===0x0)return{};const _0x3e002f={};for(const _0x34aeb4 of _0x4a1a1d){_0x3e002f[_0x34aeb4]=_0x3acc05?{'appcode':_0x34aeb4,'env':_0x3acc05}:{'appcode':_0x34aeb4};}return _0x4a1a1d[_0x5d3046(0x121)]>0x1?{'apps':_0x3e002f,'defaultApp':_0x4a1a1d[0x0]}:{'apps':_0x3e002f};}export function normalizeStoredDefaultApp(_0x5d5fdc,_0x4fc8b1){const _0x169aef=a214_0x4a03da,_0x42cfb3=_0x5d5fdc[_0x169aef(0x12a)]&&typeof _0x5d5fdc[_0x169aef(0x12a)]==='object'?_0x5d5fdc['apps']:{},_0x3e5841=Object[_0x169aef(0x139)](_0x42cfb3);if(_0x3e5841[_0x169aef(0x121)]<=0x1)return delete _0x5d5fdc[_0x169aef(0x136)],undefined;const _0x4263e4=typeof _0x5d5fdc[_0x169aef(0x136)]==='string'&&_0x42cfb3[_0x5d5fdc[_0x169aef(0x136)]]?_0x5d5fdc[_0x169aef(0x136)]:undefined,_0x3e74fc=_0x4fc8b1&&_0x42cfb3[_0x4fc8b1]?_0x4fc8b1:_0x4263e4;if(_0x3e74fc)return _0x5d5fdc['defaultApp']=_0x3e74fc,_0x3e74fc;return delete _0x5d5fdc[_0x169aef(0x136)],undefined;}export function buildCanonicalProjectConfig(_0x100238,_0x558240){const _0x23b7ae=a214_0x4a03da,{appCodes:appCodes=[],env:_0xe9f8ea,metadata:_0x1ef841}=_0x558240,_0x11c174={..._0x100238,..._0x1ef841||{}};delete _0x11c174['appcode'],delete _0x11c174[_0x23b7ae(0x113)];if(_0xe9f8ea)_0x11c174['env']=_0xe9f8ea;else!_0x11c174[_0x23b7ae(0x110)]&&(_0x11c174['env']=DEFAULT_CONFIG_VALUES[_0x23b7ae(0x110)]);const _0x3515cb=buildCanonicalAppConfig(appCodes,_0x11c174[_0x23b7ae(0x110)]);if(Object[_0x23b7ae(0x139)](_0x3515cb)[_0x23b7ae(0x121)]>0x0){_0x11c174[_0x23b7ae(0x12a)]=_0x3515cb[_0x23b7ae(0x12a)];if(_0x3515cb['defaultApp'])_0x11c174[_0x23b7ae(0x136)]=_0x3515cb[_0x23b7ae(0x136)];else delete _0x11c174[_0x23b7ae(0x136)];}return _0x11c174;}function a214_0x46ee(){const _0x24ba4b=['5376BnyizQ','5uFiKLt','kbDomain','29620ClGFly','certificateDomain','riskLevel','localDomain','deploymentSync','6534QsnfmV','map','length','defaultFormat','zh-CN','has','Risk\x20level','1476VysPpZ','14562xEHxzo','Config\x20key\x20(','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','apps','24792dbGWbt','pageSize','5224336Pfsmtd','appDomain','Access\x20key','string','userDomain','filter','appcode','runtimeDomain','2497374AbOCUO','defaultApp','region','Default\x20page\x20size','keys','skillDomain','14pFxqzh','format','locale','apiDir','number','cookie','inherit','848046FJntdh','48JRvrYG','toLowerCase','apiDomain','join','889BDrwtl','trim','entries','en-US','env','4VFNfto','Target\x20environment','app','Auth\x20cookie','accessKey','API\x20directory\x20path'];a214_0x46ee=function(){return _0x24ba4b;};return a214_0x46ee();}const LOCALE_MAP={'zh':a214_0x4a03da(0x123),'zh-cn':'zh-CN','zh_cn':a214_0x4a03da(0x123),'en':a214_0x4a03da(0x10f),'en-us':'en-US','en_us':a214_0x4a03da(0x10f)};export function normalizeLocale(_0x2e368f){const _0x146321=a214_0x4a03da;if(!_0x2e368f)return null;return LOCALE_MAP[_0x2e368f[_0x146321(0x144)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a215_0x1f6918=a215_0x47d7;(function(_0x457718,_0x530f09){const _0x58eb51=a215_0x47d7,_0x7da272=_0x457718();while(!![]){try{const _0x1a9ce1=parseInt(_0x58eb51(0x11b))/0x1+-parseInt(_0x58eb51(0x126))/0x2*(-parseInt(_0x58eb51(0x125))/0x3)+parseInt(_0x58eb51(0x11f))/0x4+parseInt(_0x58eb51(0x123))/0x5*(parseInt(_0x58eb51(0x121))/0x6)+parseInt(_0x58eb51(0x11c))/0x7+parseInt(_0x58eb51(0x11d))/0x8+-parseInt(_0x58eb51(0x11e))/0x9*(parseInt(_0x58eb51(0x124))/0xa);if(_0x1a9ce1===_0x530f09)break;else _0x7da272['push'](_0x7da272['shift']());}catch(_0x39dc87){_0x7da272['push'](_0x7da272['shift']());}}}(a215_0x40f9,0x6b10a));function a215_0x47d7(_0x3d4c61,_0x33d2d5){_0x3d4c61=_0x3d4c61-0x11b;const _0x40f94a=a215_0x40f9();let _0x47d70e=_0x40f94a[_0x3d4c61];return _0x47d70e;}export const RABETBASE_CDN_BASE_URL=a215_0x1f6918(0x122);function a215_0x40f9(){const _0x5e25f0=['835072MOzCpi','912968xQufBT','4533280jLgnVY','18ZWjnpn','2459604LQPTep','/config/index.json','6EIIcad','https://g.lovrabet.com/dist/rabetbase-cli','82165bHkRWp','12456830VpeUPx','33uXwwtq','139348ZhafCK'];a215_0x40f9=function(){return _0x5e25f0;};return a215_0x40f9();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a215_0x1f6918(0x120);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
|